Home
last modified time | relevance | path

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

123

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DDeviceStateMonitorTest.java111 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/
DAppTransitionTests.java76 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 …]
DAppChangeTransitionTests.java138 final DisplayContent dc1 = createNewDisplay(Display.STATE_ON); in testNoChangeOnOldDisplayWhenMoveDisplay()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsBackgroundStatsTest.java50 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 …]
DScreenPowerCalculatorTest.java53 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()
DBatteryStatsNoteTest.java144 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()
DBatteryStatsSensorTest.java80 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()
DBatteryStatsCpuTimesTest.java209 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 …]
DAmbientDisplayPowerCalculatorTest.java46 stats.updateDisplayMeasuredEnergyStatsLocked(300_000_000, Display.STATE_ON, 0); in testMeasuredEnergyBasedModel()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeScreenStatePreventingAdapterTest.java55 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()
DDozeSuspendScreenStatePreventingAdapterTest.java55 mWrapper.setDozeScreenState(Display.STATE_ON); in forwards_setDozeScreenState_on()
56 verify(mInner).setDozeScreenState(Display.STATE_ON); in forwards_setDozeScreenState_on()
DDozeScreenStateTest.java108 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/
DBluetoothAdapter.java183 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 …]
DBluetoothAvrcpPlayerSettings.java73 public static final int STATE_ON = 0x01; field in BluetoothAvrcpPlayerSettings
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeScreenStatePreventingAdapter.java38 state = Display.STATE_ON; in setDozeScreenState()
DDozeMachine.java122 return parameters.shouldControlScreenOff() ? Display.STATE_ON in screenState()
130 return Display.STATE_ON; in screenState()
/frameworks/base/services/core/java/com/android/server/
DBluetoothManagerService.java320 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 …]
DBluetoothModeChangeHelper.java95 return adapter.getLeState() == BluetoothAdapter.STATE_ON; in isBluetoothOn()
/frameworks/base/tests/Codegen/src/com/android/codegentest/
DSampleDataClass.java93 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/
DDisplayPowerController.java1031 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/
DBluetoothDiscoverableTimeoutReceiver.java78 localBluetoothAdapter.getState() == BluetoothAdapter.STATE_ON) { in onReceive()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImplTest.java174 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/
DKeyboardUI.java226 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/
DDisplay.java375 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/
DDozeTestDream.java54 private static final int DISPLAY_STATE_WHEN_DOZING = Display.STATE_ON;

123