Home
last modified time | relevance | path

Searched refs:mDeviceState (Results 1 – 14 of 14) sorted by relevance

/aosp14/frameworks/base/services/core/java/com/android/server/
H A DCachedDeviceStateService.java39 private final CachedDeviceState mDeviceState = new CachedDeviceState(); field in CachedDeviceStateService
45 mDeviceState.setCharging(
51 mDeviceState.setScreenInteractive(true);
54 mDeviceState.setScreenInteractive(false);
66 publishLocalService(CachedDeviceState.Readonly.class, mDeviceState.getReadonlyClient()); in onStart()
78 mDeviceState.setCharging(queryIsCharging()); in onBootPhase()
79 mDeviceState.setScreenInteractive(queryScreenInteractive(getContext())); in onBootPhase()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DDeviceStateRotationLockSettingController.java57 private int mDeviceState = -1; field in DeviceStateRotationLockSettingController
88 readPersistedSetting("deviceStateRotationLockChange", mDeviceState); in setListening()
104 int deviceState = mDeviceState; in onRotationLockStateChanged()
118 int deviceState = mDeviceState; in saveNewRotationLockSetting()
124 mLogger.logUpdateDeviceState(mDeviceState, state); in updateDeviceState()
130 if (mDeviceState == state) { in updateDeviceState()
158 mDeviceState = state; in readPersistedSetting()
172 pw.println("mDeviceState: " + mDeviceState); in dump()
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/os/
H A DLooperStatsPerfTest.java46 private CachedDeviceState mDeviceState; field in LooperStatsPerfTest
53 mDeviceState = new CachedDeviceState(false, false); in setUp()
54 mStats.setDeviceState(mDeviceState.getReadonlyClient()); in setUp()
83 mDeviceState.setCharging(true); in timeCollectionDisabled()
/aosp14/frameworks/base/packages/SettingsLib/DeviceStateRotationLock/src/com.android.settingslib.devicestate/
H A DDeviceStateRotationLockSettingsManager.java383 private final int mDeviceState; field in DeviceStateRotationLockSettingsManager.SettableDeviceState
387 mDeviceState = deviceState; in SettableDeviceState()
393 return mDeviceState; in getDeviceState()
406 return mDeviceState == that.mDeviceState && mIsSettable == that.mIsSettable; in equals()
411 return Objects.hash(mDeviceState, mIsSettable); in hashCode()
417 + "mDeviceState=" + mDeviceState in toString()
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DDisplayRotation.java1698 + mFoldController.mDeviceState); in dump()
1762 private DeviceStateController.DeviceState mDeviceState = field in DisplayRotation.FoldController
1879 if (state != mDeviceState) { in isDeviceInPosture()
1889 return mDeviceState; in getFoldState()
1932 mDeviceState = newState; in foldStateChanged()
1942 mDeviceState = newState; in foldStateChanged()
1949 mDeviceState = newState; in foldStateChanged()
1998 mDeviceState == DeviceStateController.DeviceState.OPEN
2146 final DeviceStateController.DeviceState mDeviceState;
2179 mDeviceState = dr.mFoldController.mDeviceState;
[all …]
H A DPhysicalDisplaySwitchTransitionLauncher.java54 private DeviceState mDeviceState = DeviceState.UNKNOWN; field in PhysicalDisplaySwitchTransitionLauncher
80 boolean isUnfolding = mDeviceState == FOLDED in foldStateChanged()
92 mDeviceState = newDeviceState; in foldStateChanged()
/aosp14/frameworks/base/services/core/java/com/android/server/display/
H A DLogicalDisplayMapper.java186 private int mDeviceState = DeviceStateManager.INVALID_DEVICE_STATE; field in LogicalDisplayMapper
372 + " for the display state " + mDeviceState); in getDisplayInfoForStateLocked()
378 + "), is not available for the display state " + mDeviceState); in getDisplayInfoForStateLocked()
399 ipw.println("mDeviceState=" + mDeviceState); in dumpLocked()
449 resetLayoutLocked(mDeviceState, state, /* transitionValue= */ true); in setDeviceStateLocked()
452 final boolean wakeDevice = shouldDeviceBeWoken(mPendingDeviceState, mDeviceState, in setDeviceStateLocked()
588 mDeviceState = mPendingDeviceState; in transitionToPendingStateLocked()
600 && !mDeviceStatesOnWhichToWakeUp.get(mDeviceState) in finishStateTransitionLocked()
603 && !mDeviceStatesOnWhichToSleep.get(mDeviceState) in finishStateTransitionLocked()
1008 mCurrentLayout = mDeviceStateToLayoutMap.get(mDeviceState); in applyLayoutLocked()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/os/
H A DLooperStatsTest.java48 private CachedDeviceState mDeviceState; field in LooperStatsTest
64 mDeviceState = new CachedDeviceState(); in setUp()
65 mDeviceState.setCharging(false); in setUp()
66 mDeviceState.setScreenInteractive(true); in setUp()
312 mDeviceState.setCharging(true); in testDataNotCollectedOnCharger()
327 mDeviceState.setCharging(true); in testDataCollectedIfIgnoreBatteryStatusFlagSet()
345 mDeviceState.setScreenInteractive(true); in testScreenStateCollected()
354 mDeviceState.setScreenInteractive(false); in testScreenStateCollected()
510 mDeviceState.setScreenInteractive(false); in testScreenStateTrackingDisabled()
515 mDeviceState.setScreenInteractive(true); in testScreenStateTrackingDisabled()
[all …]
H A DBinderCallsStatsTest.java449 mDeviceState.setCharging(true); in testNoDataCollectedOnCharger()
461 mDeviceState.setCharging(true); in testIgnoreBatteryStatusFlag()
475 mDeviceState.setScreenInteractive(false); in testScreenOff()
492 mDeviceState.setScreenInteractive(true); in testScreenOn()
509 mDeviceState.setCharging(true); in testOnCharger()
522 mDeviceState.setCharging(false); in testOnBattery()
728 mDeviceState.setScreenInteractive(false); in testTrackScreenInteractiveDisabled()
733 mDeviceState.setScreenInteractive(true); in testTrackScreenInteractiveDisabled()
794 mDeviceState.setScreenInteractive(true); in testTrackScreenInteractiveDisabled_sampling()
913 mDeviceState.setCharging(true); in testTrackingSpecificWorksourceUid()
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/os/
H A DLooperStats.java54 private CachedDeviceState.Readonly mDeviceState; field in LooperStats
72 mDeviceState = deviceState; in setDeviceState()
147 if (mDeviceState == null) { in deviceStateAllowsCollection()
150 if (mDeviceState.isCharging()) { in deviceStateAllowsCollection()
245 ? mDeviceState.isScreenInteractive() in findEntry()
H A DBinderCallsStats.java117 private CachedDeviceState.Readonly mDeviceState; field in BinderCallsStats
195 mDeviceState = deviceState; in setDeviceState()
298 ? mDeviceState.isScreenInteractive() in processCallEnded()
442 if (mDeviceState == null) { in canCollect()
445 if (mDeviceState.isCharging()) { in canCollect()
/aosp14/frameworks/base/services/core/java/com/android/server/camera/
H A DCameraServiceProxy.java205 private int mDeviceState; field in CameraServiceProxy
677 mDeviceState |= deviceStateFlags; in setDeviceStateFlags()
678 if (mDeviceState != mLastReportedDeviceState) { in setDeviceStateFlags()
697 mDeviceState &= ~deviceStateFlags; in clearDeviceStateFlags()
698 if (mDeviceState != mLastReportedDeviceState) { in clearDeviceStateFlags()
1068 if (notifyDeviceStateChangeLocked(mDeviceState)) { in notifyDeviceStateWithRetriesLocked()
/aosp14/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
H A DSoundTriggerHelper.java120 private SoundTriggerDeviceState mDeviceState = SoundTriggerDeviceState.DISABLE; field in SoundTriggerHelper
610 if (mIsDetached || mDeviceState == state) { in onDeviceStateChanged()
614 mDeviceState = state; in onDeviceStateChanged()
1209 return switch (mDeviceState) { in isRecognitionAllowed()
/aosp14/frameworks/base/services/core/java/com/android/server/power/
H A DPowerManagerService.java7061 private int mDeviceState = DeviceStateManager.INVALID_DEVICE_STATE;
7065 if (mDeviceState != deviceState) {
7066 mDeviceState = deviceState;