Searched refs:STATE_ON (Results 1 - 25 of 47) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
H A DDozeScreenStatePreventingAdapterTest.java54 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 DDozeSuspendScreenStatePreventingAdapterTest.java54 mWrapper.setDozeScreenState(Display.STATE_ON);
55 verify(mInner).setDozeScreenState(Display.STATE_ON);
H A DDozeScreenStateTest.java83 assertEquals(Display.STATE_ON, mServiceFake.screenState);
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
H A DBatteryStatsBackgroundStatsTest.java48 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 DBatteryStatsNoteTest.java129 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 DBatteryStatsSensorTest.java78 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 DDozeScreenStatePreventingAdapter.java37 state = Display.STATE_ON;
H A DDozeMachine.java99 return Display.STATE_ON;
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothAdapter.java144 * {@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 DBluetoothAvrcpPlayerSettings.java73 public static final int STATE_ON = 0x01; field in class:BluetoothAvrcpPlayerSettings
H A DBluetoothAvrcpController.java308 return mAdapter.getState() == BluetoothAdapter.STATE_ON;
H A DBluetoothPan.java390 return mAdapter.getState() == BluetoothAdapter.STATE_ON;
H A DBluetoothPbapClient.java320 if (adapter != null && adapter.getState() == BluetoothAdapter.STATE_ON) {
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DBluetoothDiscoverableTimeoutReceiver.java79 localBluetoothAdapter.getState() == BluetoothAdapter.STATE_ON) {
H A DLocalBluetoothAdapter.java200 if (state == BluetoothAdapter.STATE_ON) {
/frameworks/base/services/core/java/com/android/server/display/
H A DDisplayPowerController.java276 // 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 DDisplayDeviceInfo.java261 public int state = Display.STATE_ON;
H A DDisplayPowerState.java87 mScreenState = Display.STATE_ON;
/frameworks/base/tests/DozeTest/src/com/android/dreams/dozetest/
H A DDozeTestDream.java52 // 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 DBluetoothManagerService.java301 } 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 DKeyboardUI.java221 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 DDisplay.java283 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 DCachedBluetoothDeviceTest.java74 when(mAdapter.getBluetoothState()).thenReturn(BluetoothAdapter.STATE_ON);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DDeviceStateMonitor.java383 // 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 DNfcAdapter.java195 * {@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>

Completed in 439 milliseconds

12