Program: 195105
Project: 195105
Buggy source:
protected PhoneStatusBarView makeStatusBarView(){
  final Context context=mContext;
  Resources res=context.getResources();
  updateDisplaySize();
  updateResources();
  mStatusBarWindow=(StatusBarWindowView)View.inflate(context,R.layout.super_status_bar,null);
  mStatusBarWindow.mService=this;
  mStatusBarWindow.setOnTouchListener(new View.OnTouchListener(){
    @Override public boolean onTouch(    View v,    MotionEvent event){
      checkUserAutohide(v,event);
      if (event.getAction() == MotionEvent.ACTION_DOWN) {
        if (mExpandedVisible) {
          animateCollapsePanels();
        }
      }
      return mStatusBarWindow.onTouchEvent(event);
    }
  }
);
  mStatusBarView=(PhoneStatusBarView)mStatusBarWindow.findViewById(R.id.status_bar);
  mStatusBarView.setBar(this);
  PanelHolder holder=(PanelHolder)mStatusBarWindow.findViewById(R.id.panel_holder);
  mStatusBarView.setPanelHolder(holder);
  mNotificationPanel=(NotificationPanelView)mStatusBarWindow.findViewById(R.id.notification_panel);
  mNotificationPanel.setStatusBar(this);
  if (!ActivityManager.isHighEndGfx()) {
    mStatusBarWindow.setBackground(null);
    mNotificationPanel.setBackground(new FastColorDrawable(context.getColor(R.color.notification_panel_solid_background)));
  }
  mHeadsUpManager=new HeadsUpManager(context,mNotificationPanel.getViewTreeObserver());
  mHeadsUpManager.setBar(this);
  mHeadsUpManager.addListener(this);
  mHeadsUpManager.addListener(mNotificationPanel);
  mNotificationPanel.setHeadsUpManager(mHeadsUpManager);
  mNotificationData.setHeadsUpManager(mHeadsUpManager);
  if (MULTIUSER_DEBUG) {
    mNotificationPanelDebugText=(TextView)mNotificationPanel.findViewById(R.id.header_debug_info);
    mNotificationPanelDebugText.setVisibility(View.VISIBLE);
  }
  updateShowSearchHoldoff();
  try {
    boolean showNav=mWindowManagerService.hasNavigationBar();
    if (DEBUG)     Log.v(TAG,"String_Node_Str" + showNav);
    if (showNav) {
      mNavigationBarView=(NavigationBarView)View.inflate(context,R.layout.navigation_bar,null);
      mNavigationBarView.setDisabledFlags(mDisabled1);
      mNavigationBarView.setBar(this);
      mNavigationBarView.setOnVerticalChangedListener(new NavigationBarView.OnVerticalChangedListener(){
        @Override public void onVerticalChanged(        boolean isVertical){
          if (mAssistManager != null) {
            mAssistManager.onConfigurationChanged();
          }
          mNotificationPanel.setQsScrimEnabled(!isVertical);
        }
      }
);
      mNavigationBarView.setOnTouchListener(new View.OnTouchListener(){
        @Override public boolean onTouch(        View v,        MotionEvent event){
          checkUserAutohide(v,event);
          return false;
        }
      }
);
    }
  }
 catch (  RemoteException ex) {
  }
  mAssistManager=new AssistManager(this,context);
  mPixelFormat=PixelFormat.OPAQUE;
  mStackScroller=(NotificationStackScrollLayout)mStatusBarWindow.findViewById(R.id.notification_stack_scroller);
  mStackScroller.setLongPressListener(getNotificationLongClicker());
  mStackScroller.setPhoneStatusBar(this);
  mStackScroller.setGroupManager(mGroupManager);
  mStackScroller.setHeadsUpManager(mHeadsUpManager);
  mGroupManager.setOnGroupChangeListener(mStackScroller);
  mKeyguardIconOverflowContainer=(NotificationOverflowContainer)LayoutInflater.from(mContext).inflate(R.layout.status_bar_notification_keyguard_overflow,mStackScroller,false);
  mKeyguardIconOverflowContainer.setOnActivatedListener(this);
  mKeyguardIconOverflowContainer.setOnClickListener(mOverflowClickListener);
  mStackScroller.addView(mKeyguardIconOverflowContainer);
  SpeedBumpView speedBump=(SpeedBumpView)LayoutInflater.from(mContext).inflate(R.layout.status_bar_notification_speed_bump,mStackScroller,false);
  mStackScroller.setSpeedBumpView(speedBump);
  mEmptyShadeView=(EmptyShadeView)LayoutInflater.from(mContext).inflate(R.layout.status_bar_no_notifications,mStackScroller,false);
  mStackScroller.setEmptyShadeView(mEmptyShadeView);
  mDismissView=(DismissView)LayoutInflater.from(mContext).inflate(R.layout.status_bar_notification_dismiss_all,mStackScroller,false);
  mDismissView.setOnButtonClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      MetricsLogger.action(mContext,MetricsLogger.ACTION_DISMISS_ALL_NOTES);
      clearAllNotifications();
    }
  }
);
  mStackScroller.setDismissView(mDismissView);
  mExpandedContents=mStackScroller;
  mBackdrop=(BackDropView)mStatusBarWindow.findViewById(R.id.backdrop);
  mBackdropFront=(ImageView)mBackdrop.findViewById(R.id.backdrop_front);
  mBackdropBack=(ImageView)mBackdrop.findViewById(R.id.backdrop_back);
  ScrimView scrimBehind=(ScrimView)mStatusBarWindow.findViewById(R.id.scrim_behind);
  ScrimView scrimInFront=(ScrimView)mStatusBarWindow.findViewById(R.id.scrim_in_front);
  View headsUpScrim=mStatusBarWindow.findViewById(R.id.heads_up_scrim);
  mScrimController=new ScrimController(scrimBehind,scrimInFront,headsUpScrim,mScrimSrcModeEnabled);
  mHeadsUpManager.addListener(mScrimController);
  mStackScroller.setScrimController(mScrimController);
  mScrimController.setBackDropView(mBackdrop);
  mStatusBarView.setScrimController(mScrimController);
  mDozeScrimController=new DozeScrimController(mScrimController,context);
  mHeader=(StatusBarHeaderView)mStatusBarWindow.findViewById(R.id.header);
  mHeader.setActivityStarter(this);
  mKeyguardStatusBar=(KeyguardStatusBarView)mStatusBarWindow.findViewById(R.id.keyguard_header);
  mKeyguardStatusView=mStatusBarWindow.findViewById(R.id.keyguard_status_view);
  mKeyguardBottomArea=(KeyguardBottomAreaView)mStatusBarWindow.findViewById(R.id.keyguard_bottom_area);
  mKeyguardBottomArea.setActivityStarter(this);
  mKeyguardBottomArea.setAssistManager(mAssistManager);
  mKeyguardIndicationController=new KeyguardIndicationController(mContext,(KeyguardIndicationTextView)mStatusBarWindow.findViewById(R.id.keyguard_indication_text));
  mKeyguardBottomArea.setKeyguardIndicationController(mKeyguardIndicationController);
  setAreThereNotifications();
  mIconController=new StatusBarIconController(mContext,mStatusBarView,mKeyguardStatusBar,this);
  mHandlerThread=new HandlerThread(TAG,Process.THREAD_PRIORITY_BACKGROUND);
  mHandlerThread.start();
  mLocationController=new LocationControllerImpl(mContext);
  mBatteryController=new BatteryController(mContext);
  mBatteryController.addStateChangedCallback(new BatteryStateChangeCallback(){
    @Override public void onPowerSaveChanged(){
      mHandler.post(mCheckBarModes);
      if (mDozeServiceHost != null) {
        mDozeServiceHost.firePowerSaveChanged(mBatteryController.isPowerSave());
      }
    }
    @Override public void onBatteryLevelChanged(    int level,    boolean pluggedIn,    boolean charging){
    }
  }
);
  mNetworkController=new NetworkControllerImpl(mContext,mHandlerThread.getLooper());
  mHotspotController=new HotspotControllerImpl(mContext);
  mBluetoothController=new BluetoothControllerImpl(mContext,mHandlerThread.getLooper());
  mSecurityController=new SecurityControllerImpl(mContext);
  if (mContext.getResources().getBoolean(R.bool.config_showRotationLock)) {
    mRotationLockController=new RotationLockControllerImpl(mContext);
  }
  mUserInfoController=new UserInfoController(mContext);
  mVolumeComponent=getComponent(VolumeComponent.class);
  if (mVolumeComponent != null) {
    mZenModeController=mVolumeComponent.getZenController();
  }
  mCastController=new CastControllerImpl(mContext);
  final SignalClusterView signalCluster=(SignalClusterView)mStatusBarView.findViewById(R.id.signal_cluster);
  final SignalClusterView signalClusterKeyguard=(SignalClusterView)mKeyguardStatusBar.findViewById(R.id.signal_cluster);
  final SignalClusterView signalClusterQs=(SignalClusterView)mHeader.findViewById(R.id.signal_cluster);
  mNetworkController.addSignalCluster(signalCluster);
  mNetworkController.addSignalCluster(signalClusterKeyguard);
  mNetworkController.addSignalCluster(signalClusterQs);
  signalCluster.setSecurityController(mSecurityController);
  signalCluster.setNetworkController(mNetworkController);
  signalClusterKeyguard.setSecurityController(mSecurityController);
  signalClusterKeyguard.setNetworkController(mNetworkController);
  signalClusterQs.setSecurityController(mSecurityController);
  signalClusterQs.setNetworkController(mNetworkController);
  final boolean isAPhone=mNetworkController.hasVoiceCallingFeature();
  if (isAPhone) {
    mNetworkController.addEmergencyListener(new NetworkControllerImpl.EmergencyListener(){
      @Override public void setEmergencyCallsOnly(      boolean emergencyOnly){
        mHeader.setShowEmergencyCallsOnly(emergencyOnly);
      }
    }
);
  }
  mFlashlightController=new FlashlightController(mContext);
  mKeyguardBottomArea.setFlashlightController(mFlashlightController);
  mKeyguardBottomArea.setPhoneStatusBar(this);
  mAccessibilityController=new AccessibilityController(mContext);
  mKeyguardBottomArea.setAccessibilityController(mAccessibilityController);
  mNextAlarmController=new NextAlarmController(mContext);
  mKeyguardMonitor=new KeyguardMonitor();
  if (UserSwitcherController.isUserSwitcherAvailable(UserManager.get(mContext))) {
    mUserSwitcherController=new UserSwitcherController(mContext,mKeyguardMonitor);
  }
  mKeyguardUserSwitcher=new KeyguardUserSwitcher(mContext,(ViewStub)mStatusBarWindow.findViewById(R.id.keyguard_user_switcher),mKeyguardStatusBar,mNotificationPanel,mUserSwitcherController);
  mQSPanel=(QSPanel)mStatusBarWindow.findViewById(R.id.quick_settings_panel);
  if (mQSPanel != null) {
    final QSTileHost qsh=new QSTileHost(mContext,this,mBluetoothController,mLocationController,mRotationLockController,mNetworkController,mZenModeController,mHotspotController,mCastController,mFlashlightController,mUserSwitcherController,mKeyguardMonitor,mSecurityController);
    mQSPanel.setHost(qsh);
    mQSPanel.setTiles(qsh.getTiles());
    mBrightnessMirrorController=new BrightnessMirrorController(mStatusBarWindow);
    mQSPanel.setBrightnessMirror(mBrightnessMirrorController);
    mHeader.setQSPanel(mQSPanel);
    qsh.setCallback(new QSTileHost.Callback(){
      @Override public void onTilesChanged(){
        mQSPanel.setTiles(qsh.getTiles());
      }
    }
);
  }
  mHeader.setUserInfoController(mUserInfoController);
  mKeyguardStatusBar.setUserInfoController(mUserInfoController);
  mUserInfoController.reloadUserInfo();
  mHeader.setBatteryController(mBatteryController);
  ((BatteryMeterView)mStatusBarView.findViewById(R.id.battery)).setBatteryController(mBatteryController);
  mKeyguardStatusBar.setBatteryController(mBatteryController);
  mHeader.setNextAlarmController(mNextAlarmController);
  PowerManager pm=(PowerManager)mContext.getSystemService(Context.POWER_SERVICE);
  mBroadcastReceiver.onReceive(mContext,new Intent(pm.isScreenOn() ? Intent.ACTION_SCREEN_ON : Intent.ACTION_SCREEN_OFF));
  IntentFilter filter=new IntentFilter();
  filter.addAction(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);
  filter.addAction(Intent.ACTION_SCREEN_OFF);
  filter.addAction(Intent.ACTION_SCREEN_ON);
  if (DEBUG_MEDIA_FAKE_ARTWORK) {
    filter.addAction("String_Node_Str");
  }
  filter.addAction(ACTION_DEMO);
  context.registerReceiverAsUser(mBroadcastReceiver,UserHandle.ALL,filter,null,null);
  resetUserSetupObserver();
  ThreadedRenderer.overrideProperty("String_Node_Str","String_Node_Str");
  ThreadedRenderer.overrideProperty("String_Node_Str",String.valueOf(1.5f));
  return mStatusBarView;
}

Fixed version (ground truth):
protected PhoneStatusBarView makeStatusBarView(){
  final Context context=mContext;
  Resources res=context.getResources();
  updateDisplaySize();
  updateResources();
  mStatusBarWindow=(StatusBarWindowView)View.inflate(context,R.layout.super_status_bar,null);
  mStatusBarWindow.mService=this;
  mStatusBarWindow.setOnTouchListener(new View.OnTouchListener(){
    @Override public boolean onTouch(    View v,    MotionEvent event){
      checkUserAutohide(v,event);
      if (event.getAction() == MotionEvent.ACTION_DOWN) {
        if (mExpandedVisible) {
          animateCollapsePanels();
        }
      }
      return mStatusBarWindow.onTouchEvent(event);
    }
  }
);
  mStatusBarView=(PhoneStatusBarView)mStatusBarWindow.findViewById(R.id.status_bar);
  mStatusBarView.setBar(this);
  PanelHolder holder=(PanelHolder)mStatusBarWindow.findViewById(R.id.panel_holder);
  mStatusBarView.setPanelHolder(holder);
  mNotificationPanel=(NotificationPanelView)mStatusBarWindow.findViewById(R.id.notification_panel);
  mNotificationPanel.setStatusBar(this);
  if (!ActivityManager.isHighEndGfx()) {
    mStatusBarWindow.setBackground(null);
    mNotificationPanel.setBackground(new FastColorDrawable(context.getColor(R.color.notification_panel_solid_background)));
  }
  mHeadsUpManager=new HeadsUpManager(context,mStatusBarWindow);
  mHeadsUpManager.setBar(this);
  mHeadsUpManager.addListener(this);
  mHeadsUpManager.addListener(mNotificationPanel);
  mNotificationPanel.setHeadsUpManager(mHeadsUpManager);
  mNotificationData.setHeadsUpManager(mHeadsUpManager);
  if (MULTIUSER_DEBUG) {
    mNotificationPanelDebugText=(TextView)mNotificationPanel.findViewById(R.id.header_debug_info);
    mNotificationPanelDebugText.setVisibility(View.VISIBLE);
  }
  updateShowSearchHoldoff();
  try {
    boolean showNav=mWindowManagerService.hasNavigationBar();
    if (DEBUG)     Log.v(TAG,"String_Node_Str" + showNav);
    if (showNav) {
      mNavigationBarView=(NavigationBarView)View.inflate(context,R.layout.navigation_bar,null);
      mNavigationBarView.setDisabledFlags(mDisabled1);
      mNavigationBarView.setBar(this);
      mNavigationBarView.setOnVerticalChangedListener(new NavigationBarView.OnVerticalChangedListener(){
        @Override public void onVerticalChanged(        boolean isVertical){
          if (mAssistManager != null) {
            mAssistManager.onConfigurationChanged();
          }
          mNotificationPanel.setQsScrimEnabled(!isVertical);
        }
      }
);
      mNavigationBarView.setOnTouchListener(new View.OnTouchListener(){
        @Override public boolean onTouch(        View v,        MotionEvent event){
          checkUserAutohide(v,event);
          return false;
        }
      }
);
    }
  }
 catch (  RemoteException ex) {
  }
  mAssistManager=new AssistManager(this,context);
  mPixelFormat=PixelFormat.OPAQUE;
  mStackScroller=(NotificationStackScrollLayout)mStatusBarWindow.findViewById(R.id.notification_stack_scroller);
  mStackScroller.setLongPressListener(getNotificationLongClicker());
  mStackScroller.setPhoneStatusBar(this);
  mStackScroller.setGroupManager(mGroupManager);
  mStackScroller.setHeadsUpManager(mHeadsUpManager);
  mGroupManager.setOnGroupChangeListener(mStackScroller);
  mKeyguardIconOverflowContainer=(NotificationOverflowContainer)LayoutInflater.from(mContext).inflate(R.layout.status_bar_notification_keyguard_overflow,mStackScroller,false);
  mKeyguardIconOverflowContainer.setOnActivatedListener(this);
  mKeyguardIconOverflowContainer.setOnClickListener(mOverflowClickListener);
  mStackScroller.addView(mKeyguardIconOverflowContainer);
  SpeedBumpView speedBump=(SpeedBumpView)LayoutInflater.from(mContext).inflate(R.layout.status_bar_notification_speed_bump,mStackScroller,false);
  mStackScroller.setSpeedBumpView(speedBump);
  mEmptyShadeView=(EmptyShadeView)LayoutInflater.from(mContext).inflate(R.layout.status_bar_no_notifications,mStackScroller,false);
  mStackScroller.setEmptyShadeView(mEmptyShadeView);
  mDismissView=(DismissView)LayoutInflater.from(mContext).inflate(R.layout.status_bar_notification_dismiss_all,mStackScroller,false);
  mDismissView.setOnButtonClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      MetricsLogger.action(mContext,MetricsLogger.ACTION_DISMISS_ALL_NOTES);
      clearAllNotifications();
    }
  }
);
  mStackScroller.setDismissView(mDismissView);
  mExpandedContents=mStackScroller;
  mBackdrop=(BackDropView)mStatusBarWindow.findViewById(R.id.backdrop);
  mBackdropFront=(ImageView)mBackdrop.findViewById(R.id.backdrop_front);
  mBackdropBack=(ImageView)mBackdrop.findViewById(R.id.backdrop_back);
  ScrimView scrimBehind=(ScrimView)mStatusBarWindow.findViewById(R.id.scrim_behind);
  ScrimView scrimInFront=(ScrimView)mStatusBarWindow.findViewById(R.id.scrim_in_front);
  View headsUpScrim=mStatusBarWindow.findViewById(R.id.heads_up_scrim);
  mScrimController=new ScrimController(scrimBehind,scrimInFront,headsUpScrim,mScrimSrcModeEnabled);
  mHeadsUpManager.addListener(mScrimController);
  mStackScroller.setScrimController(mScrimController);
  mScrimController.setBackDropView(mBackdrop);
  mStatusBarView.setScrimController(mScrimController);
  mDozeScrimController=new DozeScrimController(mScrimController,context);
  mHeader=(StatusBarHeaderView)mStatusBarWindow.findViewById(R.id.header);
  mHeader.setActivityStarter(this);
  mKeyguardStatusBar=(KeyguardStatusBarView)mStatusBarWindow.findViewById(R.id.keyguard_header);
  mKeyguardStatusView=mStatusBarWindow.findViewById(R.id.keyguard_status_view);
  mKeyguardBottomArea=(KeyguardBottomAreaView)mStatusBarWindow.findViewById(R.id.keyguard_bottom_area);
  mKeyguardBottomArea.setActivityStarter(this);
  mKeyguardBottomArea.setAssistManager(mAssistManager);
  mKeyguardIndicationController=new KeyguardIndicationController(mContext,(KeyguardIndicationTextView)mStatusBarWindow.findViewById(R.id.keyguard_indication_text));
  mKeyguardBottomArea.setKeyguardIndicationController(mKeyguardIndicationController);
  setAreThereNotifications();
  mIconController=new StatusBarIconController(mContext,mStatusBarView,mKeyguardStatusBar,this);
  mHandlerThread=new HandlerThread(TAG,Process.THREAD_PRIORITY_BACKGROUND);
  mHandlerThread.start();
  mLocationController=new LocationControllerImpl(mContext);
  mBatteryController=new BatteryController(mContext);
  mBatteryController.addStateChangedCallback(new BatteryStateChangeCallback(){
    @Override public void onPowerSaveChanged(){
      mHandler.post(mCheckBarModes);
      if (mDozeServiceHost != null) {
        mDozeServiceHost.firePowerSaveChanged(mBatteryController.isPowerSave());
      }
    }
    @Override public void onBatteryLevelChanged(    int level,    boolean pluggedIn,    boolean charging){
    }
  }
);
  mNetworkController=new NetworkControllerImpl(mContext,mHandlerThread.getLooper());
  mHotspotController=new HotspotControllerImpl(mContext);
  mBluetoothController=new BluetoothControllerImpl(mContext,mHandlerThread.getLooper());
  mSecurityController=new SecurityControllerImpl(mContext);
  if (mContext.getResources().getBoolean(R.bool.config_showRotationLock)) {
    mRotationLockController=new RotationLockControllerImpl(mContext);
  }
  mUserInfoController=new UserInfoController(mContext);
  mVolumeComponent=getComponent(VolumeComponent.class);
  if (mVolumeComponent != null) {
    mZenModeController=mVolumeComponent.getZenController();
  }
  mCastController=new CastControllerImpl(mContext);
  final SignalClusterView signalCluster=(SignalClusterView)mStatusBarView.findViewById(R.id.signal_cluster);
  final SignalClusterView signalClusterKeyguard=(SignalClusterView)mKeyguardStatusBar.findViewById(R.id.signal_cluster);
  final SignalClusterView signalClusterQs=(SignalClusterView)mHeader.findViewById(R.id.signal_cluster);
  mNetworkController.addSignalCluster(signalCluster);
  mNetworkController.addSignalCluster(signalClusterKeyguard);
  mNetworkController.addSignalCluster(signalClusterQs);
  signalCluster.setSecurityController(mSecurityController);
  signalCluster.setNetworkController(mNetworkController);
  signalClusterKeyguard.setSecurityController(mSecurityController);
  signalClusterKeyguard.setNetworkController(mNetworkController);
  signalClusterQs.setSecurityController(mSecurityController);
  signalClusterQs.setNetworkController(mNetworkController);
  final boolean isAPhone=mNetworkController.hasVoiceCallingFeature();
  if (isAPhone) {
    mNetworkController.addEmergencyListener(new NetworkControllerImpl.EmergencyListener(){
      @Override public void setEmergencyCallsOnly(      boolean emergencyOnly){
        mHeader.setShowEmergencyCallsOnly(emergencyOnly);
      }
    }
);
  }
  mFlashlightController=new FlashlightController(mContext);
  mKeyguardBottomArea.setFlashlightController(mFlashlightController);
  mKeyguardBottomArea.setPhoneStatusBar(this);
  mAccessibilityController=new AccessibilityController(mContext);
  mKeyguardBottomArea.setAccessibilityController(mAccessibilityController);
  mNextAlarmController=new NextAlarmController(mContext);
  mKeyguardMonitor=new KeyguardMonitor();
  if (UserSwitcherController.isUserSwitcherAvailable(UserManager.get(mContext))) {
    mUserSwitcherController=new UserSwitcherController(mContext,mKeyguardMonitor);
  }
  mKeyguardUserSwitcher=new KeyguardUserSwitcher(mContext,(ViewStub)mStatusBarWindow.findViewById(R.id.keyguard_user_switcher),mKeyguardStatusBar,mNotificationPanel,mUserSwitcherController);
  mQSPanel=(QSPanel)mStatusBarWindow.findViewById(R.id.quick_settings_panel);
  if (mQSPanel != null) {
    final QSTileHost qsh=new QSTileHost(mContext,this,mBluetoothController,mLocationController,mRotationLockController,mNetworkController,mZenModeController,mHotspotController,mCastController,mFlashlightController,mUserSwitcherController,mKeyguardMonitor,mSecurityController);
    mQSPanel.setHost(qsh);
    mQSPanel.setTiles(qsh.getTiles());
    mBrightnessMirrorController=new BrightnessMirrorController(mStatusBarWindow);
    mQSPanel.setBrightnessMirror(mBrightnessMirrorController);
    mHeader.setQSPanel(mQSPanel);
    qsh.setCallback(new QSTileHost.Callback(){
      @Override public void onTilesChanged(){
        mQSPanel.setTiles(qsh.getTiles());
      }
    }
);
  }
  mHeader.setUserInfoController(mUserInfoController);
  mKeyguardStatusBar.setUserInfoController(mUserInfoController);
  mUserInfoController.reloadUserInfo();
  mHeader.setBatteryController(mBatteryController);
  ((BatteryMeterView)mStatusBarView.findViewById(R.id.battery)).setBatteryController(mBatteryController);
  mKeyguardStatusBar.setBatteryController(mBatteryController);
  mHeader.setNextAlarmController(mNextAlarmController);
  PowerManager pm=(PowerManager)mContext.getSystemService(Context.POWER_SERVICE);
  mBroadcastReceiver.onReceive(mContext,new Intent(pm.isScreenOn() ? Intent.ACTION_SCREEN_ON : Intent.ACTION_SCREEN_OFF));
  IntentFilter filter=new IntentFilter();
  filter.addAction(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);
  filter.addAction(Intent.ACTION_SCREEN_OFF);
  filter.addAction(Intent.ACTION_SCREEN_ON);
  if (DEBUG_MEDIA_FAKE_ARTWORK) {
    filter.addAction("String_Node_Str");
  }
  filter.addAction(ACTION_DEMO);
  context.registerReceiverAsUser(mBroadcastReceiver,UserHandle.ALL,filter,null,null);
  resetUserSetupObserver();
  ThreadedRenderer.overrideProperty("String_Node_Str","String_Node_Str");
  ThreadedRenderer.overrideProperty("String_Node_Str",String.valueOf(1.5f));
  return mStatusBarView;
}