Buggy code:
public class StatusBarManagerService extends IStatusBarService . Stub { private static final String TAG = "StatusBarManagerService" ; private static final boolean SPEW = false ; private final Context mContext ; private final WindowManagerService mWindowManager ; private Handler mHandler = new Handler ( ) ; private NotificationDelegate mNotificationDelegate ; private volatile IStatusBar mBar ; private StatusBarIconList mIcons = new StatusBarIconList ( ) ; private final ArrayList < StatusBarManagerService . DisableRecord > mDisableRecords = new ArrayList < StatusBarManagerService . DisableRecord > ( ) ; private IBinder mSysUiVisToken = new Binder ( ) ; private int mDisabled1 = 0 ; private int mDisabled2 = 0 ; private Object mLock = new Object ( ) ; private int mSystemUiVisibility = 0 ; private boolean mMenuVisible = false ; private int mImeWindowVis = 0 ; private int mImeBackDisposition ; private boolean mShowImeSwitcher ; private IBinder mImeToken = null ; private int mCurrentUserId ; private class DisableRecord implements IBinder . DeathRecipient { int userId ; String pkg ; int what1 ; int what2 ; IBinder token ; public void binderDied ( ) { } } public StatusBarManagerService ( Context context , WindowManagerService windowManager ) { } private final StatusBarManagerInternal mInternalService = new StatusBarManagerInternal ( ) { private boolean mNotificationLightOn ; @ Override public void setNotificationDelegate ( NotificationDelegate delegate ) { } @ Override public void buzzBeepBlinked ( ) { } @ Override public void notificationLightPulse ( int argb , int onMillis , int offMillis ) { } @ Override public void notificationLightOff ( ) { } @ Override public void showScreenPinningRequest ( ) { } @ Override public void showAssistDisclosure ( ) { } @ Override public void startAssist ( Bundle args ) { } @ Override public void onCameraLaunchGestureDetected ( int source ) { } } ; @ Override public void expandNotificationsPanel ( ) { } @ Override public void collapsePanels ( ) { } @ Override public void expandSettingsPanel ( ) { } @ Override public void disable ( int what , IBinder token , String pkg ) { } @ Override public void disableForUser ( int what , IBinder token , String pkg , int userId ) { } @ Override public void disable2 ( int what , IBinder token , String pkg ) { <START_BUG> disableForUser ( what , token , pkg , mCurrentUserId ) ; <END_BUG> } @ Override public void disable2ForUser ( int what , IBinder token , String pkg , int userId ) { } private void disableLocked ( int userId , int what , IBinder token , String pkg , int whichFlag ) { } @ Override public void setIcon ( String slot , String iconPackage , int iconId , int iconLevel , String contentDescription ) { } @ Override public void setIconVisibility ( String slot , boolean visible ) { } @ Override public void removeIcon ( String slot ) { } @ Override public void topAppWindowChanged ( final boolean menuVisible ) { } @ Override public void setImeWindowStatus ( final IBinder token , final int vis , final int backDisposition , final boolean showImeSwitcher ) { } @ Override public void setSystemUiVisibility ( int vis , int mask , String cause ) { } private void updateUiVisibilityLocked ( final int vis , final int mask ) { } @ Override public void toggleRecentApps ( ) { } @ Override public void preloadRecentApps ( ) { } @ Override public void cancelPreloadRecentApps ( ) { } @ Override public void showRecentApps ( boolean triggeredFromAltTab ) { } @ Override public void hideRecentApps ( boolean triggeredFromAltTab , boolean triggeredFromHomeKey ) { } @ Override public void setCurrentUser ( int newUserId ) { } @ Override public void setWindowState ( int window , int state ) { } @ Override public void appTransitionPending ( ) { } @ Override public void appTransitionCancelled ( ) { } @ Override public void appTransitionStarting ( long statusBarAnimationsStartTime , long statusBarAnimationsDuration ) { } @ Override public void startAssist ( Bundle args ) { } private void enforceStatusBar ( ) { } private void enforceExpandStatusBar ( ) { } private void enforceStatusBarService ( ) { } @ Override public void registerStatusBar ( IStatusBar bar , StatusBarIconList iconList , int [ ] switches , List < IBinder > binders ) { } @ Override public void onPanelRevealed ( boolean clearNotificationEffects , int numItems ) { } @ Override public void clearNotificationEffects ( ) throws RemoteException { } @ Override public void onPanelHidden ( ) throws RemoteException { } @ Override public void onNotificationClick ( String key ) { } @ Override public void onNotificationActionClick ( String key , int actionIndex ) { } @ Override public void onNotificationError ( String pkg , String tag , int id , int uid , int initialPid , String message , int userId ) { } @ Override public void onNotificationClear ( String pkg , String tag , int id , int userId ) { } @ Override public void onNotificationVisibilityChanged ( NotificationVisibility [ ] newlyVisibleKeys , NotificationVisibility [ ] noLongerVisibleKeys ) throws RemoteException { } @ Override public void onNotificationExpansionChanged ( String key , boolean userAction , boolean expanded ) throws RemoteException { } @ Override public void onClearAllNotifications ( int userId ) { } void manageDisableListLocked ( int userId , int what , IBinder token , String pkg , int which ) { } int gatherDisableActionsLocked ( int userId , int which ) { } protected void dump ( FileDescriptor fd , PrintWriter pw , String [ ] args ) { } }

Fix:
disable2ForUser ( what , token , pkg , mCurrentUserId ) ;