/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | DeviceStateMonitorTest.java | 111 STATE_ON 117 private static final int STATE_ON = 1; field in DeviceStateMonitorTest 201 updateState(state, STATE_ON); in verifySetUnsolResponseFilter() 220 updateState(STATE_TYPE_SCREEN, STATE_ON); in testSetUnsolResponseFilter_noReduandantCall() 225 updateState(STATE_TYPE_CHARGING, STATE_ON); in testSetUnsolResponseFilter_noReduandantCall() 229 updateState(STATE_TYPE_POWER_SAVE_MODE, STATE_ON); in testSetUnsolResponseFilter_noReduandantCall() 237 updateState(STATE_TYPE_SCREEN, STATE_ON); in testScreenOnOff() 329 updateState(STATE_TYPE_CHARGING, STATE_ON); in testComputeCellInfoMinInternal() 334 updateState(STATE_TYPE_SCREEN, STATE_ON); in testComputeCellInfoMinInternal() 340 updateState(STATE_TYPE_WIFI_CONNECTED, STATE_ON); in testComputeCellInfoMinInternal() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | AppTransitionTests.java | 76 final DisplayContent dc = createNewDisplay(Display.STATE_ON); in testKeyguardOverride() 91 final DisplayContent dc = createNewDisplay(Display.STATE_ON); in testKeyguardKeep() 106 final DisplayContent dc = createNewDisplay(Display.STATE_ON); in testCrashing() 121 final DisplayContent dc = createNewDisplay(Display.STATE_ON); in testKeepKeyguard_withCrashing() 136 final DisplayContent dc = createNewDisplay(Display.STATE_ON); in testSkipTransitionAnimation() 152 final DisplayContent dc1 = createNewDisplay(Display.STATE_ON); in testAppTransitionStateForMultiDisplay() 153 final DisplayContent dc2 = createNewDisplay(Display.STATE_ON); in testAppTransitionStateForMultiDisplay() 182 final DisplayContent dc1 = createNewDisplay(Display.STATE_ON); in testCleanAppTransitionWhenRootTaskReparent() 183 final DisplayContent dc2 = createNewDisplay(Display.STATE_ON); in testCleanAppTransitionWhenRootTaskReparent() 211 DisplayContent dc = createNewDisplay(Display.STATE_ON); in testLoadAnimationSafely() [all …]
|
D | AppChangeTransitionTests.java | 138 final DisplayContent dc1 = createNewDisplay(Display.STATE_ON); in testNoChangeOnOldDisplayWhenMoveDisplay()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsBackgroundStatsTest.java | 50 bi.updateTimeBasesLocked(false, Display.STATE_ON, cur, cur); // off battery in testBgTimeBase() 71 bi.updateTimeBasesLocked(true, Display.STATE_ON, cur, cur); // on battery in testBgTimeBase() 93 bi.updateTimeBasesLocked(false, Display.STATE_ON, cur, cur); // off battery in testBgTimeBase() 118 bi.updateTimeBasesLocked(false, Display.STATE_ON, cur, cur); in testScreenOffBgTimeBase() 123 bi.updateTimeBasesLocked(true, Display.STATE_ON, cur, cur); in testScreenOffBgTimeBase() 139 bi.updateTimeBasesLocked(true, Display.STATE_ON, cur, cur); in testScreenOffBgTimeBase() 144 bi.updateTimeBasesLocked(false, Display.STATE_ON, cur, cur); in testScreenOffBgTimeBase() 163 bi.updateTimeBasesLocked(true, Display.STATE_ON, curr, curr); // on battery in testWifiScan() 177 bi.updateTimeBasesLocked(false, Display.STATE_ON, curr, curr); // off battery in testWifiScan() 216 bi.updateTimeBasesLocked(true, Display.STATE_ON, curr, curr); // on battery in doTestAppBluetoothScanInternal() [all …]
|
D | ScreenPowerCalculatorTest.java | 53 batteryStats.noteScreenStateLocked(Display.STATE_ON, 0, 0, 0); in testMeasuredEnergyBasedModel() 54 batteryStats.updateDisplayMeasuredEnergyStatsLocked(0, Display.STATE_ON, 0); in testMeasuredEnergyBasedModel() 58 batteryStats.updateDisplayMeasuredEnergyStatsLocked(200_000_000, Display.STATE_ON, in testMeasuredEnergyBasedModel() 67 batteryStats.updateDisplayMeasuredEnergyStatsLocked(300_000_000, Display.STATE_ON, in testMeasuredEnergyBasedModel() 133 batteryStats.noteScreenStateLocked(Display.STATE_ON, 0, 0, 0); in testPowerProfileBasedModel()
|
D | BatteryStatsNoteTest.java | 144 bi.updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testNoteUidProcessStateLocked() 215 bi.updateTimeBasesLocked(false, Display.STATE_ON, 20, 20); in testUpdateTimeBasesLocked() 218 bi.updateTimeBasesLocked(true, Display.STATE_ON, 30, 30); in testUpdateTimeBasesLocked() 235 bi.updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testNoteScreenStateLocked() 236 bi.noteScreenStateLocked(Display.STATE_ON); in testNoteScreenStateLocked() 240 bi.noteScreenStateLocked(Display.STATE_ON); in testNoteScreenStateLocked() 242 assertEquals(bi.getScreenState(), Display.STATE_ON); in testNoteScreenStateLocked() 269 bi.noteScreenStateLocked(Display.STATE_ON); in testNoteScreenStateTimersLocked() 545 screen = Display.STATE_ON; in testUpdateDisplayMeasuredEnergyStatsLocked() 583 screen = Display.STATE_ON; in testUpdateDisplayMeasuredEnergyStatsLocked()
|
D | BatteryStatsSensorTest.java | 80 bi.updateTimeBasesLocked(false, Display.STATE_ON, curr, curr); in testCountingWhileOffBattery() 116 bi.updateTimeBasesLocked(true, Display.STATE_ON, curr, curr); in testCountingWhileOnBattery() 151 bi.updateTimeBasesLocked(true, Display.STATE_ON, curr, curr); in testBatteryStatusOnToOff() 160 bi.updateTimeBasesLocked(false, Display.STATE_ON, curr, curr); in testBatteryStatusOnToOff() 197 bi.updateTimeBasesLocked(false, Display.STATE_ON, curr, curr); in testBatteryStatusOffToOn() 215 bi.updateTimeBasesLocked(true, Display.STATE_ON, curr, curr); in testBatteryStatusOffToOn() 249 bi.updateTimeBasesLocked(true, Display.STATE_ON, curr, curr); in testPooledBackgroundUsage()
|
D | BatteryStatsCpuTimesTest.java | 209 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testUpdateClusterSpeedTimes() 254 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testReadKernelUidCpuTimesLocked() 327 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testReadKernelUidCpuTimesLocked_isolatedUid() 415 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testReadKernelUidCpuTimesLocked_invalidUid() 460 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testReadKernelUidCpuTimesLocked_withPartialTimers() 543 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testReadKernelUidCpuFreqTimesLocked() 618 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testReadKernelUidCpuFreqTimesLocked_perClusterTimesAvailable() 722 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testReadKernelUidCpuFreqTimesLocked_partialTimers() 826 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testReadKernelUidCpuFreqTimesLocked_freqsChanged() 901 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testReadKernelUidCpuFreqTimesLocked_isolatedUid() [all …]
|
D | AmbientDisplayPowerCalculatorTest.java | 46 stats.updateDisplayMeasuredEnergyStatsLocked(300_000_000, Display.STATE_ON, 0); in testMeasuredEnergyBasedModel()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeScreenStatePreventingAdapterTest.java | 55 mWrapper.setDozeScreenState(Display.STATE_ON); in forwards_setDozeScreenState_on() 56 verify(mInner).setDozeScreenState(Display.STATE_ON); in forwards_setDozeScreenState_on() 68 verify(mInner).setDozeScreenState(Display.STATE_ON); in forwards_setDozeScreenState_doze()
|
D | DozeSuspendScreenStatePreventingAdapterTest.java | 55 mWrapper.setDozeScreenState(Display.STATE_ON); in forwards_setDozeScreenState_on() 56 verify(mInner).setDozeScreenState(Display.STATE_ON); in forwards_setDozeScreenState_on()
|
D | DozeScreenStateTest.java | 108 assertEquals(Display.STATE_ON, mServiceFake.screenState); in testScreen_onInPulse() 136 assertEquals(Display.STATE_ON, mServiceFake.screenState); in testScreen_onInDockedAod()
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothAdapter.java | 183 STATE_ON, 205 public static final int STATE_ON = 12; field in BluetoothAdapter 252 case STATE_ON: in nameForState() 935 return getState() == BluetoothAdapter.STATE_ON; in isEnabled() 953 return (state == BluetoothAdapter.STATE_ON in isLeEnabled() 1161 if (getLeState() == STATE_ON) { in getLeAccess() 1357 if (getState() != STATE_ON) { in getUuids() 1391 if (getState() != STATE_ON) { in setName() 1419 if (getState() != STATE_ON) { in getBluetoothClass() 1452 if (getState() != STATE_ON) { in setBluetoothClass() [all …]
|
D | BluetoothAvrcpPlayerSettings.java | 73 public static final int STATE_ON = 0x01; field in BluetoothAvrcpPlayerSettings
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeScreenStatePreventingAdapter.java | 38 state = Display.STATE_ON; in setDozeScreenState()
|
D | DozeMachine.java | 122 return parameters.shouldControlScreenOff() ? Display.STATE_ON in screenState() 130 return Display.STATE_ON; in screenState()
|
/frameworks/base/services/core/java/com/android/server/ |
D | BluetoothManagerService.java | 320 if (!waitForState(Set.of(BluetoothAdapter.STATE_BLE_ON, BluetoothAdapter.STATE_ON))) { in onFactoryReset() 339 } else if (state == BluetoothAdapter.STATE_ON) { in onFactoryReset() 403 } else if (st == BluetoothAdapter.STATE_ON) { in onAirplaneModeChanged() 736 return getState() == BluetoothAdapter.STATE_ON; in isEnabled() 897 if (mBluetooth != null && (mBluetooth.getState() != BluetoothAdapter.STATE_ON)) { in disableBleScanMode() 982 if (mState == BluetoothAdapter.STATE_ON in enableBle() 1336 if (mState != BluetoothAdapter.STATE_ON) { in bindBluetoothProfileService() 1503 if (state != BluetoothAdapter.STATE_ON) { in bindService() 1969 if (mState != BluetoothAdapter.STATE_ON) { in handleMessage() 1992 if (mState == BluetoothAdapter.STATE_ON) { in handleMessage() [all …]
|
D | BluetoothModeChangeHelper.java | 95 return adapter.getLeState() == BluetoothAdapter.STATE_ON; in isBluetoothOn()
|
/frameworks/base/tests/Codegen/src/com/android/codegentest/ |
D | SampleDataClass.java | 93 public static final int STATE_ON = 1; field in SampleDataClass 374 STATE_ON, 385 case STATE_ON: in stateToString() 584 if (!(mState == STATE_ON) in SampleDataClass() 589 + "STATE_ON(" + STATE_ON + "), " in SampleDataClass() 1054 if (!(mState == STATE_ON) in setState() 1059 + "STATE_ON(" + STATE_ON + "), " in setState() 1451 if (!(mState == STATE_ON) in SampleDataClass() 1456 + "STATE_ON(" + STATE_ON + "), " in SampleDataClass()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayPowerController.java | 1031 state = Display.STATE_ON; in updatePowerState() 1121 && (state == Display.STATE_ON || autoBrightnessEnabledInDoze) in updatePowerState() 1307 if (state == Display.STATE_ON) { in updatePowerState() 1327 state == Display.STATE_ON && mSkipRampState != RAMP_STATE_SKIP_NONE; in updatePowerState() 1411 if (state == Display.STATE_ON && mDisplayWhiteBalanceSettings.isEnabled()) { in updatePowerState() 1471 mDozing = state != Display.STATE_ON; in updatePowerState() 1717 if (target != Display.STATE_ON) { in animateScreenStateChange() 1751 if (target == Display.STATE_ON) { in animateScreenStateChange() 1755 if (!setScreenState(Display.STATE_ON)) { in animateScreenStateChange() 1780 && mPowerState.getScreenState() == Display.STATE_ON) { in animateScreenStateChange() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | BluetoothDiscoverableTimeoutReceiver.java | 78 localBluetoothAdapter.getState() == BluetoothAdapter.STATE_ON) { in onReceive()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | BluetoothControllerImplTest.java | 174 mBluetoothControllerImpl.onBluetoothStateChanged(BluetoothAdapter.STATE_ON); in testOnBluetoothStateChange_updatesBluetoothState() 176 assertEquals(BluetoothAdapter.STATE_ON, mBluetoothControllerImpl.getBluetoothState()); in testOnBluetoothStateChange_updatesBluetoothState()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/ |
D | KeyboardUI.java | 226 if ((btState == BluetoothAdapter.STATE_TURNING_ON || btState == BluetoothAdapter.STATE_ON) in processKeyboardState() 239 if (btState != BluetoothAdapter.STATE_ON) { in processKeyboardState() 381 if (bluetoothState == BluetoothAdapter.STATE_ON && mState == STATE_WAITING_FOR_BLUETOOTH) { in onBluetoothStateChangedInternal()
|
/frameworks/base/core/java/android/view/ |
D | Display.java | 375 public static final int STATE_ON = ViewProtoEnums.DISPLAY_STATE_ON; // 2 field in Display 1632 case STATE_ON: in stateToString() 1671 return state == STATE_ON || state == STATE_VR; in isActiveState() 1688 return state == STATE_ON || state == STATE_VR || state == STATE_ON_SUSPEND; in isOnState()
|
/frameworks/base/tests/DozeTest/src/com/android/dreams/dozetest/ |
D | DozeTestDream.java | 54 private static final int DISPLAY_STATE_WHEN_DOZING = Display.STATE_ON;
|