Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/bluetooth/
DBluetoothAdapter.java149 public static final int STATE_ON = 12; field in BluetoothAdapter
465 if (getState() != STATE_ON) { in getBluetoothLeAdvertiser()
484 if (getState() != STATE_ON) { in getBluetoothLeScanner()
684 if (getState() != STATE_ON) return null; in getUuids()
709 if (getState() != STATE_ON) return false; in setName()
735 if (getState() != STATE_ON) return SCAN_MODE_NONE; in getScanMode()
773 if (getState() != STATE_ON) return false; in setScanMode()
784 if (getState() != STATE_ON) return false; in setScanMode()
791 if (getState() != STATE_ON) return -1; in getDiscoverableTimeout()
802 if (getState() != STATE_ON) return; in setDiscoverableTimeout()
[all …]
DBluetoothAvrcpController.java246 if (mAdapter.getState() == BluetoothAdapter.STATE_ON) return true; in isEnabled()
DBluetoothA2dpSink.java418 if (mAdapter.getState() == BluetoothAdapter.STATE_ON) return true; in isEnabled()
DBluetoothPan.java373 if (mAdapter.getState() == BluetoothAdapter.STATE_ON) return true; in isEnabled()
DBluetoothMap.java394 if (adapter != null && adapter.getState() == BluetoothAdapter.STATE_ON) return true; in isEnabled()
DBluetoothA2dp.java541 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()
DBluetoothHeadset.java949 if (mAdapter.getState() == BluetoothAdapter.STATE_ON) return true; in isEnabled()
DBluetoothHeadsetClient.java1153 if (mAdapter.getState() == BluetoothAdapter.STATE_ON) return true; in isEnabled()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayPowerController.java543 state = Display.STATE_ON; in updatePowerState()
595 && (state == Display.STATE_ON || autoBrightnessEnabledInDoze) in updatePowerState()
598 mPowerRequest.screenAutoBrightnessAdjustment, state != Display.STATE_ON); in updatePowerState()
673 if (state == Display.STATE_ON || state == Display.STATE_DOZE) { in updatePowerState()
814 if (target == Display.STATE_ON) {
818 if (!setScreenState(Display.STATE_ON)) {
844 && mPowerState.getScreenState() == Display.STATE_ON) {
DDisplayDeviceInfo.java208 public int state = Display.STATE_ON;
DDisplayPowerState.java91 mScreenState = Display.STATE_ON; in DisplayPowerState()
DVirtualDisplayAdapter.java327 mInfo.state = mSurface != null ? Display.STATE_ON : Display.STATE_OFF; in getDisplayDeviceInfoLocked()
/frameworks/base/services/core/java/com/android/server/
DBluetoothManagerService.java1121 if (newState == BluetoothAdapter.STATE_ON) { in handleMessage()
1162 (mState == BluetoothAdapter.STATE_ON)) { in handleMessage()
1163 bluetoothStateChangeHandler(BluetoothAdapter.STATE_ON, in handleMessage()
1230 bluetoothStateChangeHandler(mState, BluetoothAdapter.STATE_ON); in handleMessage()
1237 bluetoothStateChangeHandler(BluetoothAdapter.STATE_ON, in handleMessage()
1384 if (newState == BluetoothAdapter.STATE_ON || newState == BluetoothAdapter.STATE_OFF) { in bluetoothStateChangeHandler()
1385 boolean isUp = (newState==BluetoothAdapter.STATE_ON); in bluetoothStateChangeHandler()
1429 if (mBluetooth.getState() == BluetoothAdapter.STATE_ON) return true; in waitForOnOff()
1433 if (mBluetooth.getState() != BluetoothAdapter.STATE_ON) return true; in waitForOnOff()
/frameworks/base/core/java/android/view/
DDisplay.java227 public static final int STATE_ON = 2; field in Display
837 case STATE_ON: in stateToString()
/frameworks/base/core/java/android/bluetooth/le/
DBluetoothLeUtils.java135 if (adapter == null || adapter.getState() != BluetoothAdapter.STATE_ON) { in checkAdapterStateOn()
/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()
432 case BluetoothAdapter.STATE_ON: in enable()
457 if (state == BluetoothAdapter.STATE_ON in enable()
475 state, BluetoothAdapter.STATE_ON, firedFlags, mask)); in enable()
500 case BluetoothAdapter.STATE_ON: in disable()
/frameworks/base/core/java/android/nfc/
DNfcAdapter.java199 public static final int STATE_ON = 3; field in NfcAdapter
621 return sService.getState() == STATE_ON; in isEnabled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarPolicy.java264 mBluetoothEnabled = (adapter.getState() == BluetoothAdapter.STATE_ON); in updateBluetooth()
/frameworks/base/docs/html/sdk/api_diff/20/
DmissingSinces.txt61 NO DOC BLOCK: android.view.Display Field STATE_ON
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeService.java284 setDozeScreenState(mDisplayStateSupported ? Display.STATE_DOZE : Display.STATE_ON); in turnDisplayOn()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImpl.java413 final boolean enabled = adapterState == BluetoothAdapter.STATE_ON; in setAdapterState()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java3037 if (state == Display.STATE_ON) { in noteScreenStateLocked()
3062 } else if (oldState == Display.STATE_ON) { in noteScreenStateLocked()
3102 if (mScreenState == Display.STATE_ON) { in noteScreenBrightnessLocked()
6639 return mScreenState == Display.STATE_ON; in isScreenOn()
6679 if (mScreenState == Display.STATE_ON) { in resetAllStatsCmdLocked()
6811 final boolean screenOn = mScreenState == Display.STATE_ON; in pullPendingStateUpdatesLocked()
6825 final boolean screenOn = mScreenState == Display.STATE_ON; in setOnBatteryLocked()
7493 if (mOnBattery && mScreenState == Display.STATE_ON in getDischargeAmountScreenOn()
7504 if (mOnBattery && mScreenState == Display.STATE_ON in getDischargeAmountScreenOnSinceCharge()
7515 if (mOnBattery && mScreenState != Display.STATE_ON in getDischargeAmountScreenOff()
[all …]

12