protected IStatusBarService getStatusBarService() {
   synchronized (mServiceAquireLock) {
     if (mStatusBarService == null) {
       mStatusBarService =
           IStatusBarService.Stub.asInterface(ServiceManager.getService("statusbar"));
     }
     return mStatusBarService;
   }
 }
예제 #2
0
  public NavigationBarView(Context context, AttributeSet attrs) {
    super(context, attrs);

    mHidden = false;

    mDisplay =
        ((WindowManager) context.getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
    mBarService =
        IStatusBarService.Stub.asInterface(ServiceManager.getService(Context.STATUS_BAR_SERVICE));

    final Resources res = mContext.getResources();
    mBarSize = res.getDimensionPixelSize(R.dimen.navigation_bar_size);
    mVertical = false;
    mShowMenu = false;
    mDelegateHelper = new DelegateViewHelper(this);

    getIcons(res);
  }
 public NavigationBarTransitions(NavigationBarView view) {
   super(view, R.drawable.nav_background);
   mView = view;
   mBarService =
       IStatusBarService.Stub.asInterface(ServiceManager.getService(Context.STATUS_BAR_SERVICE));
 }