Home
last modified time | relevance | path

Searched refs:STATE_ON (Results 1 – 25 of 42) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeScreenStatePreventingAdapterTest.java54 mWrapper.setDozeScreenState(Display.STATE_ON); in forwards_setDozeScreenState_on()
55 verify(mInner).setDozeScreenState(Display.STATE_ON); in forwards_setDozeScreenState_on()
67 verify(mInner).setDozeScreenState(Display.STATE_ON); in forwards_setDozeScreenState_doze()
73 verify(mInner).setDozeScreenState(Display.STATE_ON); in forwards_setDozeScreenState_doze_suspend()
/frameworks/base/core/java/android/bluetooth/
DBluetoothAdapter.java161 @IntDef({STATE_OFF, STATE_TURNING_ON, STATE_ON, STATE_TURNING_OFF, STATE_BLE_TURNING_ON,
179 public static final int STATE_ON = 12; field in BluetoothAdapter
212 case STATE_ON: return "ON"; in nameForState()
729 return (state == BluetoothAdapter.STATE_ON || state == BluetoothAdapter.STATE_BLE_ON); in isLeEnabled()
763 if (state == BluetoothAdapter.STATE_ON || state == BluetoothAdapter.STATE_BLE_ON) { in disableBLE()
904 if (getLeState() == STATE_ON) in getLeAccess()
1060 if (getState() != STATE_ON) return null; in getUuids()
1088 if (getState() != STATE_ON) return false; in setName()
1118 if (getState() != STATE_ON) return SCAN_MODE_NONE; in getScanMode()
1159 if (getState() != STATE_ON) return false; in setScanMode()
[all …]
DBluetoothAvrcpPlayerSettings.java73 public static final int STATE_ON = 0x01; field in BluetoothAvrcpPlayerSettings
DBluetoothAvrcpController.java305 if (mAdapter.getState() == BluetoothAdapter.STATE_ON) return true; in isEnabled()
DBluetoothPbapClient.java314 if (adapter != null && adapter.getState() == BluetoothAdapter.STATE_ON) { in isEnabled()
DBluetoothPan.java389 if (mAdapter.getState() == BluetoothAdapter.STATE_ON) return true; in isEnabled()
DBluetoothSap.java418 if (adapter != null && adapter.getState() == BluetoothAdapter.STATE_ON) in isEnabled()
DBluetoothMap.java394 if (adapter != null && adapter.getState() == BluetoothAdapter.STATE_ON) return true; in isEnabled()
DBluetoothA2dpSink.java502 if (mAdapter.getState() == BluetoothAdapter.STATE_ON) return true; in isEnabled()
DBluetoothMapClient.java411 if (adapter != null && adapter.getState() == BluetoothAdapter.STATE_ON) return true; in isEnabled()
DBluetoothHealth.java544 if (adapter != null && adapter.getState() == BluetoothAdapter.STATE_ON) return true; in isEnabled()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayPowerController.java610 state = Display.STATE_ON; in updatePowerState()
663 && (state == Display.STATE_ON || autoBrightnessEnabledInDoze) in updatePowerState()
668 mPowerRequest.screenAutoBrightnessAdjustment, state != Display.STATE_ON, in updatePowerState()
755 if (state == Display.STATE_ON) { in updatePowerState()
772 if ((state == Display.STATE_ON in updatePowerState()
835 mDozing = state != Display.STATE_ON; in updatePowerState()
964 if (target != Display.STATE_ON) {
980 if (target == Display.STATE_ON) {
984 if (!setScreenState(Display.STATE_ON)) {
1009 && mPowerState.getScreenState() == Display.STATE_ON) {
[all …]
DDisplayPowerState.java85 mScreenState = Display.STATE_ON; in DisplayPowerState()
DDisplayDeviceInfo.java255 public int state = Display.STATE_ON;
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeScreenStatePreventingAdapter.java44 state = Display.STATE_ON; in setDozeScreenState()
/frameworks/base/services/core/java/com/android/server/
DBluetoothManagerService.java301 } else if (st == BluetoothAdapter.STATE_ON){
669 if (mBluetooth != null && (mBluetooth.getState() != BluetoothAdapter.STATE_ON)) { in disableBleScanMode()
1610 if (newState == BluetoothAdapter.STATE_ON || in handleMessage()
1657 (mState == BluetoothAdapter.STATE_ON)) { in handleMessage()
1658 bluetoothStateChangeHandler(BluetoothAdapter.STATE_ON, in handleMessage()
1728 bluetoothStateChangeHandler(mState, BluetoothAdapter.STATE_ON); in handleMessage()
1736 bluetoothStateChangeHandler(BluetoothAdapter.STATE_ON, in handleMessage()
1952 } else if (newState == BluetoothAdapter.STATE_ON) { in bluetoothStateChangeHandler()
1953 boolean isUp = (newState == BluetoothAdapter.STATE_ON); in bluetoothStateChangeHandler()
1992 if (mBluetooth.getState() == BluetoothAdapter.STATE_ON) return true; in waitForOnOff()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DBluetoothDiscoverableTimeoutReceiver.java79 localBluetoothAdapter.getState() == BluetoothAdapter.STATE_ON) { in onReceive()
DLocalBluetoothAdapter.java196 if (state == BluetoothAdapter.STATE_ON) { in setBluetoothStateInt()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/
DKeyboardUI.java221 if ((btState == BluetoothAdapter.STATE_TURNING_ON || btState == BluetoothAdapter.STATE_ON) in processKeyboardState()
234 if (btState != BluetoothAdapter.STATE_ON) { in processKeyboardState()
377 if (bluetoothState == BluetoothAdapter.STATE_ON && mState == STATE_WAITING_FOR_BLUETOOTH) { in onBluetoothStateChangedInternal()
/frameworks/base/tests/DozeTest/src/com/android/dreams/dozetest/
DDozeTestDream.java54 private static final int DISPLAY_STATE_WHEN_DOZING = Display.STATE_ON;
/frameworks/base/core/java/android/view/
DDisplay.java276 public static final int STATE_ON = 2; field in Display
1098 case STATE_ON: in stateToString()
/frameworks/base/core/java/android/nfc/
DNfcAdapter.java203 public static final int STATE_ON = 3; field in NfcAdapter
683 return sService.getState() == STATE_ON; in isEnabled()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DDeviceStateMonitor.java385 if (display.getState() == Display.STATE_ON) { in isScreenOn()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImpl.java226 mEnabled = bluetoothState == BluetoothAdapter.STATE_ON in onBluetoothStateChanged()
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothTestUtils.java136 case BluetoothAdapter.STATE_ON: in onReceive()
441 if (state == BluetoothAdapter.STATE_ON) { in enable()
460 BluetoothAdapter.STATE_ON)); in enable()

12