Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/bluetooth/
DBluetoothAdapter.java156 @IntDef({STATE_OFF, STATE_TURNING_ON, STATE_ON, STATE_TURNING_OFF, STATE_BLE_TURNING_ON,
174 public static final int STATE_ON = 12; field in BluetoothAdapter
638 if (state == BluetoothAdapter.STATE_ON) { in isLeEnabled()
703 if (state == BluetoothAdapter.STATE_ON) { in disableBLE()
862 if(getLeState() == STATE_ON) in getLeAccess()
1045 if (getState() != STATE_ON) return null; in getUuids()
1074 if (getState() != STATE_ON) return false; in setName()
1105 if (getState() != STATE_ON) return SCAN_MODE_NONE; in getScanMode()
1146 if (getState() != STATE_ON) return false; in setScanMode()
1160 if (getState() != STATE_ON) return false; in setScanMode()
[all …]
DBluetoothAvrcpPlayerSettings.java73 public static final int STATE_ON = 0x01; field in BluetoothAvrcpPlayerSettings
DBluetoothPan.java388 if (mAdapter.getState() == BluetoothAdapter.STATE_ON) return true; in isEnabled()
DBluetoothPbapClient.java313 if (adapter != null && adapter.getState() == BluetoothAdapter.STATE_ON) { in isEnabled()
DBluetoothA2dpSink.java501 if (mAdapter.getState() == BluetoothAdapter.STATE_ON) return true; in isEnabled()
DBluetoothAvrcpController.java402 if (mAdapter.getState() == BluetoothAdapter.STATE_ON) return true; in isEnabled()
DBluetoothMap.java394 if (adapter != null && adapter.getState() == BluetoothAdapter.STATE_ON) return true; in isEnabled()
DBluetoothSap.java417 if (adapter != null && adapter.getState() == BluetoothAdapter.STATE_ON) in isEnabled()
DBluetoothA2dp.java553 if (mAdapter.getState() == BluetoothAdapter.STATE_ON) return true; in isEnabled()
DBluetoothHealth.java543 if (adapter != null && adapter.getState() == BluetoothAdapter.STATE_ON) return true; in isEnabled()
DBluetoothInputDevice.java498 if (mAdapter.getState() == BluetoothAdapter.STATE_ON) return true; in isEnabled()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayPowerController.java565 state = Display.STATE_ON; in updatePowerState()
617 && (state == Display.STATE_ON || autoBrightnessEnabledInDoze) in updatePowerState()
622 mPowerRequest.screenAutoBrightnessAdjustment, state != Display.STATE_ON, in updatePowerState()
704 if (state == Display.STATE_ON || state == Display.STATE_DOZE) { in updatePowerState()
848 if (target != Display.STATE_ON) {
864 if (target == Display.STATE_ON) {
868 if (!setScreenState(Display.STATE_ON)) {
894 && mPowerState.getScreenState() == Display.STATE_ON) {
DDisplayDeviceInfo.java241 public int state = Display.STATE_ON;
DDisplayPowerState.java85 mScreenState = Display.STATE_ON; in DisplayPowerState()
DVirtualDisplayAdapter.java333 mInfo.state = mSurface != null ? Display.STATE_ON : Display.STATE_OFF; in getDisplayDeviceInfoLocked()
/frameworks/base/services/core/java/com/android/server/
DBluetoothManagerService.java227 } else if (st == BluetoothAdapter.STATE_ON){
491 if (mBluetooth != null && (mBluetooth.getState() != BluetoothAdapter.STATE_ON)) { in disableBleScanMode()
1378 if (newState == BluetoothAdapter.STATE_ON || in handleMessage()
1422 (mState == BluetoothAdapter.STATE_ON)) { in handleMessage()
1423 bluetoothStateChangeHandler(BluetoothAdapter.STATE_ON, in handleMessage()
1487 bluetoothStateChangeHandler(mState, BluetoothAdapter.STATE_ON); in handleMessage()
1494 bluetoothStateChangeHandler(BluetoothAdapter.STATE_ON, in handleMessage()
1705 } else if (newState == BluetoothAdapter.STATE_ON) { in bluetoothStateChangeHandler()
1706 boolean isUp = (newState==BluetoothAdapter.STATE_ON); in bluetoothStateChangeHandler()
1746 if (mBluetooth.getState() == BluetoothAdapter.STATE_ON) return true; in waitForOnOff()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DBluetoothDiscoverableTimeoutReceiver.java77 localBluetoothAdapter.getState() == BluetoothAdapter.STATE_ON) { in onReceive()
DLocalBluetoothAdapter.java192 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/tests/bluetoothtests/src/android/bluetooth/
DBluetoothTestUtils.java134 case BluetoothAdapter.STATE_ON: in onReceive()
433 case BluetoothAdapter.STATE_ON: in enable()
458 if (state == BluetoothAdapter.STATE_ON in enable()
476 state, BluetoothAdapter.STATE_ON, firedFlags, mask)); in enable()
501 case BluetoothAdapter.STATE_ON: in disable()
/frameworks/base/core/java/android/view/
DDisplay.java262 public static final int STATE_ON = 2; field in Display
959 case STATE_ON: in stateToString()
/frameworks/base/core/java/android/nfc/
DNfcAdapter.java202 public static final int STATE_ON = 3; field in NfcAdapter
658 return sService.getState() == STATE_ON; in isEnabled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImpl.java195 mEnabled = bluetoothState == BluetoothAdapter.STATE_ON; in onBluetoothStateChanged()
DClock.java181 if (getDisplay().getState() == Display.STATE_ON) { in updateShowSeconds()

12