Home
last modified time | relevance | path

Searched refs:STATE_OFF (Results 1 – 25 of 82) sorted by relevance

1234

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DDeviceStateMonitorTest.java122 STATE_OFF,
128 private static final int STATE_OFF = 0; field in DeviceStateMonitorTest
169 updateState(STATE_TYPE_RIL_CONNECTED, STATE_OFF); in updateAllStatesToOff()
170 updateState(STATE_TYPE_SCREEN, STATE_OFF); in updateAllStatesToOff()
171 updateState(STATE_TYPE_POWER_SAVE_MODE, STATE_OFF); in updateAllStatesToOff()
172 updateState(STATE_TYPE_CHARGING, STATE_OFF); in updateAllStatesToOff()
173 updateState(STATE_TYPE_TETHERING, STATE_OFF); in updateAllStatesToOff()
174 updateState(STATE_TYPE_RADIO_AVAILABLE, STATE_OFF); in updateAllStatesToOff()
175 updateState(STATE_TYPE_WIFI_CONNECTED, STATE_OFF); in updateAllStatesToOff()
176 updateState(STATE_TYPE_ALWAYS_SIGNAL_STRENGTH_REPORTED, STATE_OFF); in updateAllStatesToOff()
[all …]
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DAmbientDisplayPowerCalculatorTest.java65 stats.noteScreenStateLocked(0, Display.STATE_OFF, 120 * MINUTE_IN_MS, 120 * MINUTE_IN_MS, in testMeasuredEnergyBasedModel()
69 new int[]{Display.STATE_OFF}, 120 * MINUTE_IN_MS); in testMeasuredEnergyBasedModel()
94 final int[] screenStates = new int[] {Display.STATE_OFF, Display.STATE_OFF}; in testMeasuredEnergyBasedModel_multiDisplay()
116 screenStates[0] = Display.STATE_OFF; in testMeasuredEnergyBasedModel_multiDisplay()
124 screenStates[1] = Display.STATE_OFF; in testMeasuredEnergyBasedModel_multiDisplay()
153 stats.noteScreenStateLocked(0, Display.STATE_OFF, 120 * MINUTE_IN_MS, 120 * MINUTE_IN_MS, in testPowerProfileBasedModel()
177 stats.noteScreenStateLocked(1, Display.STATE_OFF, 0, 0, 0); in testPowerProfileBasedModel_multiDisplay()
182 stats.noteScreenStateLocked(0, Display.STATE_OFF, 120 * MINUTE_IN_MS, 120 * MINUTE_IN_MS, in testPowerProfileBasedModel_multiDisplay()
184 stats.noteScreenStateLocked(1, Display.STATE_OFF, 150 * MINUTE_IN_MS, 150 * MINUTE_IN_MS, in testPowerProfileBasedModel_multiDisplay()
DScreenPowerCalculatorTest.java82 batteryStats.noteScreenStateLocked(0, Display.STATE_OFF, in testMeasuredEnergyBasedModel()
151 final int[] screenStates = new int[]{Display.STATE_ON, Display.STATE_OFF}; in testMeasuredEnergyBasedModel_multiDisplay()
167 screenStates[0] = Display.STATE_OFF; in testMeasuredEnergyBasedModel_multiDisplay()
180 screenStates[1] = Display.STATE_OFF; in testMeasuredEnergyBasedModel_multiDisplay()
256 batteryStats.noteScreenStateLocked(0, Display.STATE_OFF, in testPowerProfileBasedModel()
317 batteryStats.noteScreenStateLocked(1, Display.STATE_OFF, 0, 0, 0); in testPowerProfileBasedModel_multiDisplay()
330 batteryStats.noteScreenStateLocked(0, Display.STATE_OFF, in testPowerProfileBasedModel_multiDisplay()
338 batteryStats.noteScreenStateLocked(1, Display.STATE_OFF, 110 * MINUTE_IN_MS, in testPowerProfileBasedModel_multiDisplay()
DBatteryStatsNoteTest.java113 bi.updateTimeBasesLocked(true, Display.STATE_OFF, 0, 0); in testNoteBluetoothScanResultLocked()
147 bi.updateTimeBasesLocked(true, Display.STATE_OFF, 0, 0); in testNoteStartWakeLocked()
186 bi.updateTimeBasesLocked(true, Display.STATE_OFF, 0, 0); in testNoteStartWakeLocked_isolatedUid()
228 bi.updateTimeBasesLocked(true, Display.STATE_OFF, 0, 0); in testNoteStartWakeLocked_isolatedUidRace()
275 bi.updateTimeBasesLocked(true, Display.STATE_OFF, 0, 0); in testNoteLongPartialWakelockStart_isolatedUid()
330 bi.updateTimeBasesLocked(true, Display.STATE_OFF, 0, 0); in testNoteLongPartialWakelockStart_isolatedUidRace()
460 bi.updateTimeBasesLocked(false, Display.STATE_OFF, 0, 0); in testUpdateTimeBasesLocked()
472 bi.updateTimeBasesLocked(true, Display.STATE_OFF, 40, 40); in testUpdateTimeBasesLocked()
498 bi.noteScreenStateLocked(0, Display.STATE_OFF); in testNoteScreenStateLocked()
500 assertEquals(Display.STATE_OFF, bi.getScreenState()); in testNoteScreenStateLocked()
[all …]
DBatteryStatsImplTest.java266 mBatteryStatsImpl.updateTimeBasesLocked(true, Display.STATE_OFF, mMockClock.uptime * 1000, in testUpdateProcStateCpuTimes()
470 mBatteryStatsImpl.updateTimeBasesLocked(true, Display.STATE_OFF, 0, 0); in testMulticastWakelockAcqRel()
493 mBatteryStatsImpl.updateTimeBasesLocked(true, Display.STATE_OFF, 0, 0); in testMulticastWakelockAcqNoRel()
519 mBatteryStatsImpl.updateTimeBasesLocked(true, Display.STATE_OFF, 0, 0); in testMulticastWakelockAcqAcqRelRel()
549 mBatteryStatsImpl.updateTimeBasesLocked(true, Display.STATE_OFF, 0, 0); in testMulticastWakelockAcqRelAcqRel()
577 mBatteryStatsImpl.updateTimeBasesLocked(true, Display.STATE_OFF, 0, 0); in testGetWakeLockStats()
715 mBatteryStatsImpl.updateTimeBasesLocked(true, Display.STATE_OFF, 0, 0); in kernelWakelocks()
760 mBatteryStatsImpl.updateTimeBasesLocked(true, Display.STATE_OFF, 0, 0); in testGetBluetoothBatteryStats()
799 mBatteryStatsImpl.updateTimeBasesLocked(true, Display.STATE_OFF, 0, 0); in testGetNetworkActivityBytes_multipleUpdates()
/frameworks/base/core/tests/coretests/src/android/view/
DDisplayTest.java35 Display.STATE_OFF,
47 Display.STATE_OFF, in isSuspendedState()
75 Display.STATE_OFF in isOffState()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/state/
DDisplayStateControllerTest.java69 assertTrue(Display.STATE_OFF == stateAndReason.first); in updateProximityStateEvaluatesStateOffPolicyAsExpected()
72 Display.STATE_OFF); in updateProximityStateEvaluatesStateOffPolicyAsExpected()
111 assertTrue(Display.STATE_OFF == stateAndReason.first); in updateProximityStateWorksAsExpectedWhenDisplayDisabled()
129 assertTrue(Display.STATE_OFF == stateAndReason.first); in updateProximityStateWorksAsExpectedWhenTransitionPhase()
147 assertTrue(Display.STATE_OFF == stateAndReason.first); in updateProximityStateWorksAsExpectedWhenScreenOffBecauseOfProximity()
182 assertTrue(Display.STATE_OFF == stateAndReason.first); in dozeScreenStateOverrideToDozeSuspend_OffPolicy_displayRemainOff()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayPowerState.java109 mScreenBrightness = (displayState != Display.STATE_OFF) ? PowerManager.BRIGHTNESS_MAX in DisplayPowerState()
195 if (mScreenState != Display.STATE_OFF) { in setSdrScreenBrightness()
222 if (mScreenState != Display.STATE_OFF) { in setScreenBrightness()
294 if (mScreenState != Display.STATE_OFF) { in setColorFadeLevel()
406 float brightnessState = mScreenState != Display.STATE_OFF
408 float sdrBrightnessState = mScreenState != Display.STATE_OFF
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverStateMachine.java117 private static final int STATE_OFF = BatterySaverStateMachineProto.STATE_OFF; field in BatterySaverStateMachine
256 mState = STATE_OFF; in BatterySaverStateMachine()
642 case STATE_OFF: { in updateStateLocked()
676 mState = STATE_OFF; in updateStateLocked()
684 mState = STATE_OFF; in updateStateLocked()
694 mState = STATE_OFF; in updateStateLocked()
711 mState = STATE_OFF; in updateStateLocked()
715 mState = STATE_OFF; in updateStateLocked()
719 mState = STATE_OFF; in updateStateLocked()
737 mState = STATE_OFF; in updateStateLocked()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DBluetoothCallback.java23 import static android.bluetooth.BluetoothAdapter.STATE_OFF;
186 STATE_OFF,
/frameworks/rs/tests/java_api/LivePreview/src/com/android/rs/livepreview/
DCameraPreviewActivity.java83 private static final int STATE_OFF = 0; field in CameraPreviewActivity
86 private int mState = STATE_OFF;
250 mState = STATE_OFF; in shutdownCamera()
255 if (mState != STATE_OFF) { in startPreview()
259 mState = STATE_OFF; in startPreview()
/frameworks/base/services/core/java/com/android/server/display/state/
DDisplayStateController.java67 state = Display.STATE_OFF; in updateDisplayState()
93 state = Display.STATE_OFF; in updateDisplayState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeScreenStateTest.java114 assertEquals(Display.STATE_OFF, mServiceFake.screenState); in testScreen_offInDoze()
143 assertEquals(Display.STATE_OFF, mServiceFake.screenState); in testScreen_offInRequestPulseWithoutAoD()
153 assertEquals(Display.STATE_OFF, mServiceFake.screenState); in testScreen_offInRequestPulseWithAoD()
242 assertEquals(Display.STATE_OFF, mServiceFake.screenState); in test_animatesPausing()
258 assertEquals(Display.STATE_OFF, mServiceFake.screenState); in test_animatesOff()
DDozeScreenStatePreventingAdapterTest.java70 mWrapper.setDozeScreenState(Display.STATE_OFF); in forwards_setDozeScreenState_off()
71 verify(mInner).setDozeScreenState(Display.STATE_OFF); in forwards_setDozeScreenState_off()
DDozeSuspendScreenStatePreventingAdapterTest.java67 mWrapper.setDozeScreenState(Display.STATE_OFF); in forwards_setDozeScreenState_off()
68 verify(mInner).setDozeScreenState(Display.STATE_OFF); in forwards_setDozeScreenState_off()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bluetooth/qsdialog/
DBluetoothStateInteractor.kt20 import android.bluetooth.BluetoothAdapter.STATE_OFF
56 if (bluetoothState == STATE_ON || bluetoothState == STATE_OFF) { in <lambda>()
/frameworks/base/services/core/java/com/android/server/power/stats/
DBinaryStatePowerStatsProcessor.java33 static final int STATE_OFF = 0; field in BinaryStatePowerStatsProcessor
37 STATE_OFF,
49 private @BinaryState int mLastState = STATE_OFF;
98 mLastState = STATE_OFF; in start()
DVideoPowerStatsProcessor.java35 : STATE_OFF; in getBinaryState()
DAudioPowerStatsProcessor.java35 : STATE_OFF; in getBinaryState()
DFlashlightPowerStatsProcessor.java35 : STATE_OFF; in getBinaryState()
DCameraPowerStatsProcessor.java35 : STATE_OFF; in getBinaryState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeMachine.java125 : Display.STATE_OFF; in screenState()
127 return parameters.getDisplayNeedsBlanking() ? Display.STATE_OFF in screenState()
132 return Display.STATE_OFF; in screenState()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowContextListenerControllerTests.java20 import static android.view.Display.STATE_OFF;
294 mContainer.getDisplayContent().getDisplayInfo().state = STATE_OFF; in testConfigUpdateForSuspendedWindowContext()
329 mContainer.getDisplayContent().getDisplayInfo().state = STATE_OFF; in testReportConfigUpdateForSuspendedWindowProviderService()
/frameworks/base/tests/Codegen/src/com/android/codegentest/
DSampleDataClass.java94 public static final int STATE_OFF = 0; field in SampleDataClass
381 STATE_OFF,
393 case STATE_OFF: in stateToString()
594 && !(mState == STATE_OFF) in SampleDataClass()
599 + "STATE_OFF(" + STATE_OFF + "), " in SampleDataClass()
1075 && !(mState == STATE_OFF) in setState()
1080 + "STATE_OFF(" + STATE_OFF + "), " in setState()
1491 && !(mState == STATE_OFF) in SampleDataClass()
1496 + "STATE_OFF(" + STATE_OFF + "), " in SampleDataClass()
/frameworks/base/services/tests/wmtests/src/com/android/server/policy/
DPowerKeyGestureTests.java54 mPhoneWindowManager.overrideDisplayState(Display.STATE_OFF); in testPowerSinglePress()

1234