/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | DeviceStateMonitorTest.java | 123 STATE_ON 129 private static final int STATE_ON = 1; field in DeviceStateMonitorTest 222 updateState(state, STATE_ON); in verifySetUnsolResponseFilter() 241 updateState(STATE_TYPE_SCREEN, STATE_ON); in testSetUnsolResponseFilter_noReduandantCall() 246 updateState(STATE_TYPE_CHARGING, STATE_ON); in testSetUnsolResponseFilter_noReduandantCall() 250 updateState(STATE_TYPE_POWER_SAVE_MODE, STATE_ON); in testSetUnsolResponseFilter_noReduandantCall() 258 updateState(STATE_TYPE_SCREEN, STATE_ON); in testScreenOnOff() 273 updateState(STATE_TYPE_SCREEN, STATE_ON); in testScreenOnOffwithRadioToggle() 283 updateState(STATE_TYPE_SCREEN, STATE_ON); in testScreenOnOffwithRadioToggle() 373 updateState(STATE_TYPE_CHARGING, STATE_ON); in testComputeCellInfoMinInternal() [all …]
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | BatteryStatsBackgroundStatsTest.java | 62 bi.updateTimeBasesLocked(false, Display.STATE_ON, cur, cur); // off battery in testBgTimeBase() 83 bi.updateTimeBasesLocked(true, Display.STATE_ON, cur, cur); // on battery in testBgTimeBase() 105 bi.updateTimeBasesLocked(false, Display.STATE_ON, cur, cur); // off battery in testBgTimeBase() 131 bi.updateTimeBasesLocked(false, Display.STATE_ON, cur, cur); in testScreenOffBgTimeBase() 136 bi.updateTimeBasesLocked(true, Display.STATE_ON, cur, cur); in testScreenOffBgTimeBase() 152 bi.updateTimeBasesLocked(true, Display.STATE_ON, cur, cur); in testScreenOffBgTimeBase() 157 bi.updateTimeBasesLocked(false, Display.STATE_ON, cur, cur); in testScreenOffBgTimeBase() 177 bi.updateTimeBasesLocked(true, Display.STATE_ON, curr, curr); // on battery in testWifiScan() 191 bi.updateTimeBasesLocked(false, Display.STATE_ON, curr, curr); // off battery in testWifiScan() 232 bi.updateTimeBasesLocked(true, Display.STATE_ON, curr, curr); // on battery in doTestAppBluetoothScanInternal() [all …]
|
D | ScreenPowerCalculatorTest.java | 64 batteryStats.noteScreenStateLocked(0, Display.STATE_ON, 0, 0, 0); in testMeasuredEnergyBasedModel() 66 new int[]{Display.STATE_ON}, 0); in testMeasuredEnergyBasedModel() 71 new int[]{Display.STATE_ON}, 15 * MINUTE_IN_MS); in testMeasuredEnergyBasedModel() 80 new int[]{Display.STATE_ON}, 60 * MINUTE_IN_MS); in testMeasuredEnergyBasedModel() 151 final int[] screenStates = new int[]{Display.STATE_ON, Display.STATE_OFF}; in testMeasuredEnergyBasedModel_multiDisplay() 168 screenStates[1] = Display.STATE_ON; in testMeasuredEnergyBasedModel_multiDisplay() 243 batteryStats.noteScreenStateLocked(0, Display.STATE_ON, 0, 0, 0); in testPowerProfileBasedModel() 316 batteryStats.noteScreenStateLocked(0, Display.STATE_ON, 0, 0, 0); in testPowerProfileBasedModel_multiDisplay() 332 batteryStats.noteScreenStateLocked(1, Display.STATE_ON, 80 * MINUTE_IN_MS, in testPowerProfileBasedModel_multiDisplay()
|
D | BatteryStatsSensorTest.java | 93 bi.updateTimeBasesLocked(false, Display.STATE_ON, curr, curr); in testCountingWhileOffBattery() 129 bi.updateTimeBasesLocked(true, Display.STATE_ON, curr, curr); in testCountingWhileOnBattery() 164 bi.updateTimeBasesLocked(true, Display.STATE_ON, curr, curr); in testBatteryStatusOnToOff() 173 bi.updateTimeBasesLocked(false, Display.STATE_ON, curr, curr); in testBatteryStatusOnToOff() 210 bi.updateTimeBasesLocked(false, Display.STATE_ON, curr, curr); in testBatteryStatusOffToOn() 228 bi.updateTimeBasesLocked(true, Display.STATE_ON, curr, curr); in testBatteryStatusOffToOn() 261 bi.updateTimeBasesLocked(true, Display.STATE_ON, curr, curr); in testPooledBackgroundUsage()
|
D | BatteryStatsCpuTimesTest.java | 223 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testUpdateClusterSpeedTimes() 278 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testReadKernelUidCpuTimesLocked() 351 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testReadKernelUidCpuTimesLocked_isolatedUid() 439 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testReadKernelUidCpuTimesLocked_invalidUid() 484 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testReadKernelUidCpuTimesLocked_withPartialTimers() 567 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testReadKernelUidCpuFreqTimesLocked() 642 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testReadKernelUidCpuFreqTimesLocked_perClusterTimesAvailable() 751 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testReadKernelUidCpuFreqTimesLocked_partialTimers() 862 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testReadKernelUidCpuFreqTimesLocked_freqsChanged() 937 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testReadKernelUidCpuFreqTimesLocked_isolatedUid() [all …]
|
D | BatteryStatsNoteTest.java | 392 bi.updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testNoteUidProcessStateLocked() 464 bi.updateTimeBasesLocked(false, Display.STATE_ON, 20, 20); in testUpdateTimeBasesLocked() 467 bi.updateTimeBasesLocked(true, Display.STATE_ON, 30, 30); in testUpdateTimeBasesLocked() 485 bi.updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testNoteScreenStateLocked() 486 bi.noteScreenStateLocked(0, Display.STATE_ON); in testNoteScreenStateLocked() 493 bi.noteScreenStateLocked(0, Display.STATE_ON); in testNoteScreenStateLocked() 495 assertEquals(Display.STATE_ON, bi.getScreenState()); in testNoteScreenStateLocked() 511 assertEquals(Display.STATE_ON, bi.getScreenState()); in testNoteScreenStateLocked() 517 assertEquals(Display.STATE_ON, bi.getScreenState()); in testNoteScreenStateLocked() 542 bi.noteScreenStateLocked(0, Display.STATE_ON); in testNoteScreenStateLocked_multiDisplay() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | DisplayTest.java | 36 Display.STATE_ON, 66 Display.STATE_ON, in isActiveState() 83 Display.STATE_ON, in isOnState()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | AppTransitionTests.java | 103 final DisplayContent dc = createNewDisplay(Display.STATE_ON); in testKeyguardOverride() 119 final DisplayContent dc = createNewDisplay(Display.STATE_ON); in testKeyguardUnoccludeOcclude() 135 final DisplayContent dc = createNewDisplay(Display.STATE_ON); in testKeyguardKeep() 150 final DisplayContent dc = createNewDisplay(Display.STATE_ON); in testCrashing() 165 final DisplayContent dc = createNewDisplay(Display.STATE_ON); in testKeepKeyguard_withCrashing() 180 final DisplayContent dc = createNewDisplay(Display.STATE_ON); in testSkipTransitionAnimation() 282 final DisplayContent dc1 = createNewDisplay(Display.STATE_ON); in testAppTransitionStateForMultiDisplay() 283 final DisplayContent dc2 = createNewDisplay(Display.STATE_ON); in testAppTransitionStateForMultiDisplay() 311 final DisplayContent dc1 = createNewDisplay(Display.STATE_ON); in testCleanAppTransitionWhenRootTaskReparent() 312 final DisplayContent dc2 = createNewDisplay(Display.STATE_ON); in testCleanAppTransitionWhenRootTaskReparent() [all …]
|
D | WindowContextListenerControllerTests.java | 21 import static android.view.Display.STATE_ON; 95 mDefaultDisplay.getDisplayInfo().state = STATE_ON; in setUp() 96 mDisplayContent.getDisplayInfo().state = STATE_ON; in setUp() 263 dualDisplayContent.getDisplayInfo().state = STATE_ON; in testImeSwitchDialogWindowTokenRemovedOnDualDisplayContent_ListenToImeContainer() 312 info.state = STATE_ON; in testConfigUpdateForSuspendedWindowContext()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/ |
D | DisplayBrightnessStrategySelectorTest.java | 257 new StrategySelectionRequest(displayPowerRequest, Display.STATE_ON, in selectStrategySelectsOverrideStrategyWhenValid() 270 new StrategySelectionRequest(displayPowerRequest, Display.STATE_ON, in selectStrategySelectsTemporaryStrategyWhenValid() 284 new StrategySelectionRequest(displayPowerRequest, Display.STATE_ON, in selectStrategySelectsBoostStrategyWhenValid() 298 new StrategySelectionRequest(displayPowerRequest, Display.STATE_ON, in selectStrategySelectsInvalidStrategyWhenNoStrategyIsValid() 309 new StrategySelectionRequest(displayPowerRequest, Display.STATE_ON, in selectStrategySelectsFollowerStrategyWhenValid() 327 new StrategySelectionRequest(displayPowerRequest, Display.STATE_ON, in selectStrategySelectsOffloadStrategyWhenValid() 351 new StrategySelectionRequest(displayPowerRequest, Display.STATE_ON, in selectStrategy_selectsAutomaticStrategyWhenValid() 354 verify(mAutomaticBrightnessStrategy).setAutoBrightnessState(Display.STATE_ON, in selectStrategy_selectsAutomaticStrategyWhenValid() 374 new StrategySelectionRequest(displayPowerRequest, Display.STATE_ON, in selectStrategy_selectsAutomaticFallbackStrategyWhenValid() 392 new StrategySelectionRequest(displayPowerRequest, Display.STATE_ON, in selectStrategyDoesNotSelectOffloadStrategyWhenFeatureFlagDisabled() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bluetooth/qsdialog/ |
D | BluetoothStateInteractor.kt | 21 import android.bluetooth.BluetoothAdapter.STATE_ON 56 if (bluetoothState == STATE_ON || bluetoothState == STATE_OFF) { in <lambda>() 63 bluetoothState == STATE_ON, in <lambda>()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/clamper/ |
D | BrightnessClamperControllerTest.java | 19 import static android.view.Display.STATE_ON; 158 mClamperController.clamp(mMockRequest, initialBrightness, initialSlowChange, STATE_ON); in testClamp_AppliesModifier() 177 initialSlowChange, STATE_ON); in testClamp_inactiveClamperNotApplied() 201 initialSlowChange, STATE_ON); in testClamp_activeClamperApplied_brightnessAboveMax() 225 initialSlowChange, STATE_ON); in testClamp_activeClamperApplied_brightnessBelowMax() 249 initialSlowChange, STATE_ON); in testClamp_activeClamperAppliedTwoTimes_keepsSlowChange() 252 initialSlowChange, STATE_ON); in testClamp_activeClamperAppliedTwoTimes_keepsSlowChange() 277 initialSlowChange, STATE_ON); in testAmbientLuxChanges()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/state/ |
D | DisplayStateControllerTest.java | 89 Display.STATE_ON, DISPLAY_ENABLED, !DISPLAY_IN_TRANSITION); in updateProximityStateEvaluatesDimPolicyAsExpected() 97 Display.STATE_ON, DISPLAY_ENABLED, !DISPLAY_IN_TRANSITION); in updateProximityStateEvaluatesDimBrightAsExpected() 114 Display.STATE_ON); in updateProximityStateWorksAsExpectedWhenDisplayDisabled() 132 Display.STATE_ON); in updateProximityStateWorksAsExpectedWhenTransitionPhase() 150 Display.STATE_ON); in updateProximityStateWorksAsExpectedWhenScreenOffBecauseOfProximity()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeScreenStatePreventingAdapterTest.java | 64 mWrapper.setDozeScreenState(Display.STATE_ON); in forwards_setDozeScreenState_on() 65 verify(mInner).setDozeScreenState(Display.STATE_ON); in forwards_setDozeScreenState_on() 77 verify(mInner).setDozeScreenState(Display.STATE_ON); in forwards_setDozeScreenState_doze()
|
D | DozeSuspendScreenStatePreventingAdapterTest.java | 61 mWrapper.setDozeScreenState(Display.STATE_ON); in forwards_setDozeScreenState_on() 62 verify(mInner).setDozeScreenState(Display.STATE_ON); in forwards_setDozeScreenState_on()
|
D | DozeScreenStateTest.java | 133 assertEquals(Display.STATE_ON, mServiceFake.screenState); in testScreen_onInPulse() 161 assertEquals(Display.STATE_ON, mServiceFake.screenState); in testScreen_onInDockedAod() 276 assertEquals(Display.STATE_ON, mServiceFake.screenState); in testDelayEnterDozeScreenState_whenUdfpsFingerDown() 304 assertEquals(Display.STATE_ON, mServiceFake.screenState); in testDelayExitPulsingScreenState_whenUdfpsFingerDown()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | BluetoothCallback.java | 24 import static android.bluetooth.BluetoothAdapter.STATE_ON; 188 STATE_ON,
|
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/ |
D | PowerGroupTest.java | 262 /* dozeScreenStateOverride= */ Display.STATE_ON, in testUpdateWhileAwake_UpdatesDisplayPowerRequest() 302 /* dozeScreenStateOverride= */ Display.STATE_ON, in testUpdateWhileDozing_UpdatesDisplayPowerRequest() 319 assertThat(displayPowerRequest.dozeScreenState).isEqualTo(Display.STATE_ON); in testUpdateWhileDozing_UpdatesDisplayPowerRequest() 341 /* dozeScreenStateOverride= */ Display.STATE_ON, in testUpdateWhileDozing_DozeAfterScreenOff() 379 /* dozeScreenStateOverride= */ Display.STATE_ON, in testUpdateQuiescent() 417 /* dozeScreenStateOverride= */ Display.STATE_ON, in testUpdateWhileAsleep_UpdatesDisplayPowerRequest() 456 /* dozeScreenStateOverride= */ Display.STATE_ON, in testUpdateWhileDreamingWithScreenBrightWakelock_UpdatesDisplayPowerRequest() 493 /* dozeScreenStateOverride= */ Display.STATE_ON, in testUpdateWhileAwakeBootNotComplete_UpdatesDisplayPowerRequest() 531 /* dozeScreenStateOverride= */ Display.STATE_ON, in testUpdateWhileAwakeUserActivityScreenBright_UpdatesDisplayPowerRequest() 568 /* dozeScreenStateOverride= */ Display.STATE_ON, in testUpdateWhileAwakeScreenBrightnessBoostInProgress_UpdatesDisplayPowerRequest()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/strategy/ |
D | AutomaticBrightnessStrategyTest.java | 111 int targetDisplayState = Display.STATE_ON; in testAutoBrightnessState_AutoBrightnessDisabled() 183 int targetDisplayState = Display.STATE_ON; in testAutoBrightnessState_BrightnessReasonIsOverride() 233 int targetDisplayState = Display.STATE_ON; in testAutoBrightnessState_DisplayIsOn() 274 mAutomaticBrightnessStrategy.setAutoBrightnessState(Display.STATE_ON, in testAutoBrightnessState_modeSwitch() 283 mAutomaticBrightnessStrategy.setAutoBrightnessState(Display.STATE_ON, in testAutoBrightnessState_modeSwitch() 307 int targetDisplayState = Display.STATE_ON; in accommodateUserBrightnessChangesWorksAsExpected() 452 mAutomaticBrightnessStrategy.setAutoBrightnessState(Display.STATE_ON, true, in isAutoBrightnessValid_returnsFalseWhenBrightnessIsInvalid() 468 mAutomaticBrightnessStrategy.setAutoBrightnessState(Display.STATE_ON, true, in isAutoBrightnessValid_returnsTrueWhenBrightnessIsValid_adjustsAutoBrightness() 545 Display.STATE_ON, mock(BrightnessConfiguration.class), in updateBrightness_constructsDisplayBrightnessState_withAdjustmentTempAdjustmentFlag()
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | AutomaticBrightnessControllerTest.java | 196 false /* userChanged= */, DisplayPowerRequest.POLICY_BRIGHT, Display.STATE_ON, in setupController() 302 false /* userChanged= */, DisplayPowerRequest.POLICY_BRIGHT, Display.STATE_ON, in testUserAddUserDataPoint() 326 false /* userChanged= */, DisplayPowerRequest.POLICY_BRIGHT, Display.STATE_ON, in testRecalculateSplines() 360 /* userChanged= */ false, DisplayPowerRequest.POLICY_BRIGHT, Display.STATE_ON, in testShortTermModelTimesOut() 400 false /* userChanged= */, DisplayPowerRequest.POLICY_BRIGHT, Display.STATE_ON, in testShortTermModelDoesntTimeOut() 440 /* userChanged= */ false, DisplayPowerRequest.POLICY_BRIGHT, Display.STATE_ON, in testShortTermModelIsRestoredWhenSwitchingWithinTimeout() 486 /* userChanged= */ false, DisplayPowerRequest.POLICY_BRIGHT, Display.STATE_ON, in testShortTermModelNotRestoredAfterTimeout() 573 false /* userChanged= */, DisplayPowerRequest.POLICY_BRIGHT, Display.STATE_ON, in testSwitchToIdleMappingStrategy() 600 false /* userChanged= */, DisplayPowerRequest.POLICY_BRIGHT, Display.STATE_ON, in testSwitchToIdleMappingStrategy() 762 Display.STATE_ON, /* shouldResetShortTermModel= */ true); [all …]
|
D | DisplayPowerProximityStateControllerTest.java | 287 DisplayManagerInternal.DisplayPowerRequest.class), Display.STATE_ON); in evaluateProximityStateWhenScreenOffBecauseOfPositiveProximity() 338 DisplayManagerInternal.DisplayPowerRequest.class), Display.STATE_ON); in evaluateProximityStateNotWaitingForNegativeProximityAndNotUsingProxSensor() 391 Display.STATE_ON); in enableProximitySensor() 413 Display.STATE_ON); in setScreenOffBecauseOfPositiveProximityState()
|
/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | FlashlightPowerStatsProcessor.java | 34 ? STATE_ON in getBinaryState()
|
D | AudioPowerStatsProcessor.java | 34 ? STATE_ON in getBinaryState()
|
D | VideoPowerStatsProcessor.java | 34 ? STATE_ON in getBinaryState()
|
D | BinaryStatePowerStatsProcessor.java | 34 static final int STATE_ON = 1; field in BinaryStatePowerStatsProcessor 38 STATE_ON, 104 if (state == STATE_ON) { in noteStateChange()
|