/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
H A D | DozeScreenStatePreventingAdapterTest.java | 54 mWrapper.setDozeScreenState(Display.STATE_ON); 55 verify(mInner).setDozeScreenState(Display.STATE_ON); 67 verify(mInner).setDozeScreenState(Display.STATE_ON); 73 verify(mInner).setDozeScreenState(Display.STATE_ON);
|
H A D | DozeSuspendScreenStatePreventingAdapterTest.java | 54 mWrapper.setDozeScreenState(Display.STATE_ON); 55 verify(mInner).setDozeScreenState(Display.STATE_ON);
|
H A D | DozeScreenStateTest.java | 83 assertEquals(Display.STATE_ON, mServiceFake.screenState);
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
H A D | BatteryStatsBackgroundStatsTest.java | 48 bi.updateTimeBasesLocked(false, Display.STATE_ON, cur, cur); // off battery 69 bi.updateTimeBasesLocked(true, Display.STATE_ON, cur, cur); // on battery 91 bi.updateTimeBasesLocked(false, Display.STATE_ON, cur, cur); // off battery 116 bi.updateTimeBasesLocked(false, Display.STATE_ON, cur, cur); 121 bi.updateTimeBasesLocked(true, Display.STATE_ON, cur, cur); 137 bi.updateTimeBasesLocked(true, Display.STATE_ON, cur, cur); 142 bi.updateTimeBasesLocked(false, Display.STATE_ON, cur, cur); 161 bi.updateTimeBasesLocked(true, Display.STATE_ON, curr, curr); // on battery 175 bi.updateTimeBasesLocked(false, Display.STATE_ON, curr, curr); // off battery 204 bi.updateTimeBasesLocked(true, Display.STATE_ON, cur [all...] |
H A D | BatteryStatsNoteTest.java | 129 bi.updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); 205 bi.updateTimeBasesLocked(false, Display.STATE_ON, 20, 20); 208 bi.updateTimeBasesLocked(true, Display.STATE_ON, 30, 30); 223 bi.updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); 224 bi.noteScreenStateLocked(Display.STATE_ON); 228 bi.noteScreenStateLocked(Display.STATE_ON); 230 assertEquals(bi.getScreenState(), Display.STATE_ON);
|
H A D | BatteryStatsSensorTest.java | 78 bi.updateTimeBasesLocked(false, Display.STATE_ON, curr, curr); 114 bi.updateTimeBasesLocked(true, Display.STATE_ON, curr, curr); 149 bi.updateTimeBasesLocked(true, Display.STATE_ON, curr, curr); 158 bi.updateTimeBasesLocked(false, Display.STATE_ON, curr, curr); 195 bi.updateTimeBasesLocked(false, Display.STATE_ON, curr, curr); 213 bi.updateTimeBasesLocked(true, Display.STATE_ON, curr, curr); 247 bi.updateTimeBasesLocked(true, Display.STATE_ON, curr, curr);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
H A D | DozeScreenStatePreventingAdapter.java | 37 state = Display.STATE_ON;
|
H A D | DozeMachine.java | 99 return Display.STATE_ON;
|
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothAdapter.java | 144 * {@link #STATE_ON}, 154 * {@link #STATE_ON}, 161 @IntDef({STATE_OFF, STATE_TURNING_ON, STATE_ON, STATE_TURNING_OFF, STATE_BLE_TURNING_ON, 172 * clients should wait for {@link #STATE_ON} before attempting to 179 public static final int STATE_ON = 12; field in class:BluetoothAdapter 212 case STATE_ON: return "ON"; 499 * works in Bluetooth state STATE_ON 512 * works in Bluetooth state STATE_ON 700 * <code>getBluetoothState() == STATE_ON</code> 721 * <p>This returns true if current state is either STATE_ON o [all...] |
H A D | BluetoothAvrcpPlayerSettings.java | 73 public static final int STATE_ON = 0x01; field in class:BluetoothAvrcpPlayerSettings
|
H A D | BluetoothAvrcpController.java | 308 return mAdapter.getState() == BluetoothAdapter.STATE_ON;
|
H A D | BluetoothPan.java | 390 return mAdapter.getState() == BluetoothAdapter.STATE_ON;
|
H A D | BluetoothPbapClient.java | 320 if (adapter != null && adapter.getState() == BluetoothAdapter.STATE_ON) {
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
H A D | BluetoothDiscoverableTimeoutReceiver.java | 79 localBluetoothAdapter.getState() == BluetoothAdapter.STATE_ON) {
|
H A D | LocalBluetoothAdapter.java | 200 if (state == BluetoothAdapter.STATE_ON) {
|
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | DisplayPowerController.java | 276 // Whether or not to skip the initial brightness ramps into STATE_ON. 636 state = Display.STATE_ON; 689 && (state == Display.STATE_ON || autoBrightnessEnabledInDoze) 694 mPowerRequest.screenAutoBrightnessAdjustment, state != Display.STATE_ON, 781 if (state == Display.STATE_ON) { 798 if ((state == Display.STATE_ON 861 mDozing = state != Display.STATE_ON; 1000 if (target != Display.STATE_ON) { 1034 if (target == Display.STATE_ON) { 1038 if (!setScreenState(Display.STATE_ON)) { [all...] |
H A D | DisplayDeviceInfo.java | 261 public int state = Display.STATE_ON;
|
H A D | DisplayPowerState.java | 87 mScreenState = Display.STATE_ON;
|
/frameworks/base/tests/DozeTest/src/com/android/dreams/dozetest/ |
H A D | DozeTestDream.java | 52 // for testing purposes it is convenient to use Display.STATE_ON so the 54 private static final int DISPLAY_STATE_WHEN_DOZING = Display.STATE_ON;
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | BluetoothManagerService.java | 301 } else if (st == BluetoothAdapter.STATE_ON){ 669 if (mBluetooth != null && (mBluetooth.getState() != BluetoothAdapter.STATE_ON)) { 737 // This triggers transition to STATE_ON 1610 if (newState == BluetoothAdapter.STATE_ON || 1657 (mState == BluetoothAdapter.STATE_ON)) { 1658 bluetoothStateChangeHandler(BluetoothAdapter.STATE_ON, 1728 bluetoothStateChangeHandler(mState, BluetoothAdapter.STATE_ON); 1736 bluetoothStateChangeHandler(BluetoothAdapter.STATE_ON, 1952 } else if (newState == BluetoothAdapter.STATE_ON) { 1953 boolean isUp = (newState == BluetoothAdapter.STATE_ON); [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/ |
H A D | KeyboardUI.java | 221 if ((btState == BluetoothAdapter.STATE_TURNING_ON || btState == BluetoothAdapter.STATE_ON) 234 if (btState != BluetoothAdapter.STATE_ON) { 377 if (bluetoothState == BluetoothAdapter.STATE_ON && mState == STATE_WAITING_FOR_BLUETOOTH) {
|
/frameworks/base/core/java/android/view/ |
H A D | Display.java | 283 public static final int STATE_ON = 2; field in class:Display 996 * @return The state of the display: one of {@link #STATE_OFF}, {@link #STATE_ON}, 1108 case STATE_ON:
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
H A D | CachedBluetoothDeviceTest.java | 74 when(mAdapter.getBluetoothState()).thenReturn(BluetoothAdapter.STATE_ON);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | DeviceStateMonitor.java | 383 // Anything other than STATE_ON is treated as screen off, such as STATE_DOZE, 385 if (display.getState() == Display.STATE_ON) {
|
/frameworks/base/core/java/android/nfc/ |
H A D | NfcAdapter.java | 195 * {@link #STATE_ON}, 202 public static final int STATE_ON = 3; field in class:NfcAdapter 699 return sService.getState() == STATE_ON; 709 * <p>Returns one of {@link #STATE_ON}, {@link #STATE_TURNING_ON}, 713 * <code>{@link #getAdapterState()} == {@link #STATE_ON}</code>
|