Buggy code:
private boolean mVolumeVisible ; private int mBluetoothHeadsetState ; private boolean mBluetoothA2dpConnected ; private int mBluetoothHidState ; private int mBluetoothPbapState ; private boolean mBluetoothEnabled ; private static final int [ ] [ ] sWifiSignalImages = new int [ ] [ ] { new int [ ] { drawable . stat_sys_wifi_signal_1 , drawable . stat_sys_wifi_signal_2 , drawable . stat_sys_wifi_signal_3 , drawable . stat_sys_wifi_signal_4 } , new int [ ] { drawable . stat_sys_wifi_signal_1_fully , drawable . stat_sys_wifi_signal_2_fully , drawable . stat_sys_wifi_signal_3_fully , drawable . stat_sys_wifi_signal_4_fully } } ; private static final int sWifiTemporarilyNotConnectedImage = drawable . stat_sys_wifi_signal_0 ; private int mLastWifiSignalLevel = - 1 ; private boolean mIsWifiConnected = false ; private static final int [ ] [ ] sWimaxSignalImages = new int [ ] [ ] { new int [ ] { drawable . stat_sys_wimax_signal_1 , drawable . stat_sys_wimax_signal_2 , drawable . stat_sys_wimax_signal_3 , drawable . stat_sys_wimax_signal_4 } , new int [ ] { drawable . stat_sys_wimax_signal_1_fully , drawable . stat_sys_wimax_signal_2_fully , drawable . stat_sys_wimax_signal_3_fully , drawable . stat_sys_wimax_signal_4_fully } } ; private static final int sWimaxTemporarilyNotConnectedImage = drawable . stat_sys_wimax_signal_0 ; private int mLastWimaxSignalLevel = - 1 ; private boolean mIsWimaxConnected = false ; private WimaxSettingsHelper mWimaxSettingsHelper ; private int mInetCondition = 0 ; private BroadcastReceiver mIntentReceiver = new BroadcastReceiver ( ) { @ Override public void onReceive ( Context context , Intent intent ) { } } ; private boolean mShowCmBattery ; class SettingsObserver extends ContentObserver { SettingsObserver ( Handler handler ) { } void observe ( ) { } @ Override public void onChange ( boolean selfChange ) { } } private boolean mPhoneSignalHidden ; public StatusBarPolicy ( Context context ) { } private final void updateAlarm ( Intent intent ) { } private final void updateSyncState ( Intent intent ) { } private final void updateBattery ( Intent intent ) { } private void onBatteryLow ( Intent intent ) { } private void onBatteryOkay ( Intent intent ) { } private void setBatteryLevel ( View parent , int id , int height , int background , int level ) { } private void showLowBatteryWarning ( ) { } private final void updateCallState ( int state ) { } private OnDismissListener mLowBatteryListener = new DialogInterface . OnDismissListener ( ) { public void onDismiss ( DialogInterface dialog ) { } } ; private void scheduleCloseBatteryView ( ) { } private void closeLastBatteryView ( ) { } private void updateConnectivity ( Intent intent ) { } private PhoneStateListener mPhoneStateListener = new PhoneStateListener ( ) { @ Override public void onSignalStrengthsChanged ( SignalStrength signalStrength ) { } @ Override public void onServiceStateChanged ( ServiceState state ) { } @ Override public void onCallStateChanged ( int state , String incomingNumber ) { } @ Override public void onDataConnectionStateChanged ( int state , int networkType ) { } @ Override public void onDataActivity ( int direction ) { } } ; private final void updateSimState ( Intent intent ) { } private boolean isCdma ( ) { } private boolean isEvdo ( ) { } private boolean hasService ( ) { } private final void updateSignalStrength ( ) { } private int getCdmaLevel ( ) { } private int getEvdoLevel ( ) { } private final void updateDataNetType ( int net ) { } private final void updateDataIcon ( ) { } private final void updateVolume ( ) { } private final void updateBluetooth ( Intent intent ) { } private final void updateWifi ( Intent intent ) { } private final void updateWimax ( Intent intent ) { final String action = intent . getAction ( ) ; if ( action . equals ( WIMAX_ENABLED_CHANGED_ACTION ) ) { int wimaxStatus = intent . getIntExtra ( CURRENT_WIMAX_ENABLED_STATE , WIMAX_ENABLED_STATE_UNKNOWN ) ; final boolean enabled = wimaxStatus == ( WimaxConstants . WIMAX_ENABLED_STATE_ENABLED ) ; if ( ! enabled ) { mService . setIconVisibility ( "wimax" , false ) ; } } else if ( action . equals ( NETWORK_STATE_CHANGED_ACTION ) ) { final NetworkInfo networkInfo = ( ( NetworkInfo ) ( intent . getParcelableExtra ( EXTRA_NETWORK_INFO ) ) ) ; int iconId ; if ( ( networkInfo != null ) && ( networkInfo . isConnected ( ) ) ) { mIsWimaxConnected = true ; if ( ( mLastWimaxSignalLevel ) == ( - 1 ) ) { iconId = StatusBarPolicy . sWimaxSignalImages [ mInetCondition ] [ 0 ] ; } else { if ( ( mLastWimaxSignalLevel ) > 3 ) { mLastWimaxSignalLevel = 3 ; } else if ( ( mLastWimaxSignalLevel ) <= 0 ) { mLastWimaxSignalLevel = 0 ; } iconId = StatusBarPolicy . sWimaxSignalImages [ mInetCondition ] [ mLastWimaxSignalLevel ] ; } mService . setIconVisibility ( "wimax" , true ) ; } else { mIsWimaxConnected = false ; iconId = StatusBarPolicy . sWimaxSignalImages [ mInetCondition ] [ 0 ] ; mService . setIconVisibility ( "wimax" , false ) ; } mService . setIcon ( "wimax" , iconId , 0 ) ; } else if ( action . equals ( RSSI_CHANGED_ACTION ) ) { int rssi = intent . getIntExtra ( EXTRA_NEW_RSSI_LEVEL , ( - 200 ) ) ; <START_BUG> int newSignalLevel = mWimaxSettingsHelper . calculateSignalLevel ( rssi , 4 ) ; <END_BUG> int iconId ; if ( newSignalLevel > 3 ) { newSignalLevel = 3 ; } else if ( ( mLastWimaxSignalLevel ) <= 0 ) { newSignalLevel = 0 ; } if ( newSignalLevel != ( mLastWimaxSignalLevel ) ) { mLastWimaxSignalLevel = newSignalLevel ; if ( mIsWimaxConnected ) { iconId = StatusBarPolicy . sWimaxSignalImages [ mInetCondition ] [ newSignalLevel ] ; } else { iconId = StatusBarPolicy . sWimaxTemporarilyNotConnectedImage ; } mService . setIcon ( "wimax" , iconId , 0 ) ; } } } private final void updateGps ( Intent intent ) { } private final void updateTTY ( Intent intent ) { } private final void updateCdmaRoamingIcon ( ServiceState state ) { } private class StatusBarHandler extends Handler { @ Override public void handleMessage ( Message msg ) { } } private void updateSettings ( ) { } }

Fix:
int newSignalLevel = rssi ;