Home
last modified time | relevance | path

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

123

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DDeviceStateMonitorTest.java106 STATE_ON
112 private static final int STATE_ON = 1; field in DeviceStateMonitorTest
191 updateState(state, STATE_ON); in verifySetUnsolResponseFilter()
210 updateState(STATE_TYPE_SCREEN, STATE_ON); in testSetUnsolResponseFilter_noReduandantCall()
215 updateState(STATE_TYPE_CHARGING, STATE_ON); in testSetUnsolResponseFilter_noReduandantCall()
219 updateState(STATE_TYPE_POWER_SAVE_MODE, STATE_ON); in testSetUnsolResponseFilter_noReduandantCall()
227 updateState(STATE_TYPE_SCREEN, STATE_ON); in testScreenOnOff()
319 updateState(STATE_TYPE_CHARGING, STATE_ON); in testComputeCellInfoMinInternal()
324 updateState(STATE_TYPE_SCREEN, STATE_ON); in testComputeCellInfoMinInternal()
330 updateState(STATE_TYPE_WIFI_CONNECTED, STATE_ON); in testComputeCellInfoMinInternal()
[all …]
/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 …]
DBatteryStatsNoteTest.java142 bi.updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testNoteUidProcessStateLocked()
213 bi.updateTimeBasesLocked(false, Display.STATE_ON, 20, 20); in testUpdateTimeBasesLocked()
216 bi.updateTimeBasesLocked(true, Display.STATE_ON, 30, 30); in testUpdateTimeBasesLocked()
233 bi.updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testNoteScreenStateLocked()
234 bi.noteScreenStateLocked(Display.STATE_ON); in testNoteScreenStateLocked()
238 bi.noteScreenStateLocked(Display.STATE_ON); in testNoteScreenStateLocked()
240 assertEquals(bi.getScreenState(), Display.STATE_ON); in testNoteScreenStateLocked()
267 bi.noteScreenStateLocked(Display.STATE_ON); in testNoteScreenStateTimersLocked()
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.java204 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testUpdateClusterSpeedTimes()
249 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testReadKernelUidCpuTimesLocked()
322 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testReadKernelUidCpuTimesLocked_isolatedUid()
411 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testReadKernelUidCpuTimesLocked_invalidUid()
457 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testReadKernelUidCpuTimesLocked_withPartialTimers()
540 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testReadKernelUidCpuFreqTimesLocked()
615 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testReadKernelUidCpuFreqTimesLocked_perClusterTimesAvailable()
719 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testReadKernelUidCpuFreqTimesLocked_partialTimers()
823 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testReadKernelUidCpuFreqTimesLocked_freqsChanged()
898 updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testReadKernelUidCpuFreqTimesLocked_isolatedUid()
[all …]
DBatteryStatsImplTest.java78 mBatteryStatsImpl.updateTimeBasesLocked(false, Display.STATE_ON, 0, 0); in testUpdateProcStateCpuTimes()
235 mBatteryStatsImpl.updateTimeBasesLocked(false, Display.STATE_ON, 0, 0); in testCopyFromAllUidsCpuTimes()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DAppTransitionTests.java122 final DisplayContent dc1 = createNewDisplay(Display.STATE_ON); in testAppTransitionStateForMultiDisplay()
123 final DisplayContent dc2 = createNewDisplay(Display.STATE_ON); in testAppTransitionStateForMultiDisplay()
158 final DisplayContent dc1 = createNewDisplay(Display.STATE_ON); in testCleanAppTransitionWhenTaskStackReparent()
159 final DisplayContent dc2 = createNewDisplay(Display.STATE_ON); in testCleanAppTransitionWhenTaskStackReparent()
190 DisplayContent dc = createNewDisplay(Display.STATE_ON); in testLoadAnimationSafely()
197 final DisplayContent dc = createNewDisplay(Display.STATE_ON); in testCancelRemoteAnimationWhenFreeze()
DAppChangeTransitionTests.java141 final DisplayContent dc1 = createNewDisplay(Display.STATE_ON); in testNoChangeWhenMoveDisplay()
/frameworks/base/core/java/android/bluetooth/
DBluetoothAdapter.java168 STATE_ON,
190 public static final int STATE_ON = 12; field in BluetoothAdapter
237 case STATE_ON: in nameForState()
866 return getState() == BluetoothAdapter.STATE_ON; in isEnabled()
883 return (state == BluetoothAdapter.STATE_ON in isLeEnabled()
1056 if (getLeState() == STATE_ON) { in getLeAccess()
1222 if (getState() != STATE_ON) { in getUuids()
1254 if (getState() != STATE_ON) { in setName()
1280 if (getState() != STATE_ON) { in getBluetoothClass()
1309 if (getState() != STATE_ON) { in setBluetoothClass()
[all …]
DBluetoothAvrcpPlayerSettings.java73 public static final int STATE_ON = 0x01; field in BluetoothAvrcpPlayerSettings
DBluetoothAvrcpController.java235 return mAdapter.getState() == BluetoothAdapter.STATE_ON; in isEnabled()
/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.java98 assertEquals(Display.STATE_ON, mServiceFake.screenState); in testScreen_onInPulse()
/frameworks/base/services/core/java/com/android/server/
DBluetoothManagerService.java303 if (!waitForState(Set.of(BluetoothAdapter.STATE_BLE_ON, BluetoothAdapter.STATE_ON))) { in onFactoryReset()
322 } else if (state == BluetoothAdapter.STATE_ON) { in onFactoryReset()
385 } else if (st == BluetoothAdapter.STATE_ON) { in onAirplaneModeChanged()
703 return getState() == BluetoothAdapter.STATE_ON; in isEnabled()
806 if (mBluetooth != null && (mBluetooth.getState() != BluetoothAdapter.STATE_ON)) { in disableBleScanMode()
886 if (mState == BluetoothAdapter.STATE_ON in enableBle()
1389 if (!mEnable || state != BluetoothAdapter.STATE_ON) { in bindService()
1848 if (mState != BluetoothAdapter.STATE_ON) { in handleMessage()
1871 if (mState == BluetoothAdapter.STATE_ON) { in handleMessage()
1995 waitForState(Set.of(BluetoothAdapter.STATE_ON)); in handleMessage()
[all …]
DBluetoothAirplaneModeListener.java208 return adapter.getLeState() == BluetoothAdapter.STATE_ON; in isBluetoothOn()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayPowerController.java807 state = Display.STATE_ON; in updatePowerState()
872 && (state == Display.STATE_ON || autoBrightnessEnabledInDoze) in updatePowerState()
1025 if (state == Display.STATE_ON) { in updatePowerState()
1044 state == Display.STATE_ON && mSkipRampState != RAMP_STATE_SKIP_NONE; in updatePowerState()
1086 if (state == Display.STATE_ON && mDisplayWhiteBalanceSettings.isEnabled()) { in updatePowerState()
1146 mDozing = state != Display.STATE_ON; in updatePowerState()
1312 if (target != Display.STATE_ON) {
1346 if (target == Display.STATE_ON) {
1350 if (!setScreenState(Display.STATE_ON)) {
1375 && mPowerState.getScreenState() == Display.STATE_ON) {
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeScreenStatePreventingAdapter.java38 state = Display.STATE_ON; in setDozeScreenState()
DDozeMachine.java104 return parameters.shouldControlScreenOff() ? Display.STATE_ON in screenState()
111 return Display.STATE_ON; in screenState()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DBluetoothDiscoverableTimeoutReceiver.java79 localBluetoothAdapter.getState() == BluetoothAdapter.STATE_ON) { in onReceive()
DLocalBluetoothAdapter.java209 if (state == BluetoothAdapter.STATE_ON) { in setBluetoothStateInt()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImplTest.java188 mBluetoothControllerImpl.onBluetoothStateChanged(BluetoothAdapter.STATE_ON); in testOnBluetoothStateChange_updatesBluetoothState()
190 assertEquals(BluetoothAdapter.STATE_ON, mBluetoothControllerImpl.getBluetoothState()); in testOnBluetoothStateChange_updatesBluetoothState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/
DKeyboardUI.java222 if ((btState == BluetoothAdapter.STATE_TURNING_ON || btState == BluetoothAdapter.STATE_ON) in processKeyboardState()
235 if (btState != BluetoothAdapter.STATE_ON) { in processKeyboardState()
377 if (bluetoothState == BluetoothAdapter.STATE_ON && mState == STATE_WAITING_FOR_BLUETOOTH) { in onBluetoothStateChangedInternal()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DNavigationBarButtonTest.java109 return display != null && display.getState() == Display.STATE_ON; in isDisplayOn()
/frameworks/base/tests/DozeTest/src/com/android/dreams/dozetest/
DDozeTestDream.java54 private static final int DISPLAY_STATE_WHEN_DOZING = Display.STATE_ON;

123