java/com/android/incallui/ProximitySensor.java
/** Used to save when the UI goes in and out of the foreground. */
Used to save when the UI goes in and out of the foreground.
Used to save when the UI goes in and out of the foreground .
public void onInCallShowing(boolean showing) {
    if (showing) {
      mUiShowing = true;
    } else if (mPowerManager.isScreenOn()) {
      mUiShowing = false;
    }
    updateProximitySensorMode();
  }
public void onInCallShowing ( boolean showing ) { if ( showing ) { mUiShowing = true ; } else if ( mPowerManager . isScreenOn ( ) ) { mUiShowing = false ; } updateProximitySensorMode ( ) ; }
Used to save when the UI goes in and out of the foreground.
Used to save when the UI goes in and out of the foreground .
// We only consider the UI not showing for instances where another app took the foreground. // If we stopped showing because the screen is off, we still consider that showing.