Home
last modified time | relevance | path

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

/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/area/
DWindowAreaComponentImpl.java19 import static android.hardware.devicestate.DeviceStateManager.INVALID_DEVICE_STATE_IDENTIFIER;
84 private int mCurrentDeviceState = INVALID_DEVICE_STATE_IDENTIFIER;
150 if (mCurrentDeviceState == INVALID_DEVICE_STATE_IDENTIFIER) { in addRearDisplayStatusListener()
315 if (mCurrentDeviceState == INVALID_DEVICE_STATE_IDENTIFIER) { in addRearDisplayPresentationStatusListener()
476 if (mRearDisplayState == INVALID_DEVICE_STATE_IDENTIFIER) { in getCurrentRearDisplayModeStatus()
513 if (mRearDisplayState == INVALID_DEVICE_STATE_IDENTIFIER) { in updateRearDisplayStatusListeners()
525 if (mConcurrentDisplayState == INVALID_DEVICE_STATE_IDENTIFIER) { in getCurrentRearDisplayPresentationModeStatus()
548 if (mConcurrentDisplayState == INVALID_DEVICE_STATE_IDENTIFIER) { in updateRearDisplayPresentationStatusListeners()
/frameworks/base/core/java/android/hardware/devicestate/
DDeviceStateUtil.java19 import static android.hardware.devicestate.DeviceStateManager.INVALID_DEVICE_STATE_IDENTIFIER;
56 return INVALID_DEVICE_STATE_IDENTIFIER; in calculateBaseStateIdentifier()
DDeviceStateManager.java53 public static final int INVALID_DEVICE_STATE_IDENTIFIER = -1; field in DeviceStateManager
/frameworks/base/services/foldables/devicestateprovider/src/com/android/server/policy/
DFoldableDeviceStateProvider.java22 import static android.hardware.devicestate.DeviceStateManager.INVALID_DEVICE_STATE_IDENTIFIER;
106 private int mLastReportedState = INVALID_DEVICE_STATE_IDENTIFIER;
274 int stateToReport = INVALID_DEVICE_STATE_IDENTIFIER; in notifyDeviceStateChangedIfNeeded()
283 int newState = INVALID_DEVICE_STATE_IDENTIFIER; in notifyDeviceStateChangedIfNeeded()
311 if (newState == INVALID_DEVICE_STATE_IDENTIFIER) { in notifyDeviceStateChangedIfNeeded()
316 if (newState != INVALID_DEVICE_STATE_IDENTIFIER && newState != mLastReportedState) { in notifyDeviceStateChangedIfNeeded()
322 if (stateToReport != INVALID_DEVICE_STATE_IDENTIFIER) { in notifyDeviceStateChangedIfNeeded()
550 || lastState == INVALID_DEVICE_STATE_IDENTIFIER; in createTentModeClosedState()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/common/
DDeviceStateManagerFoldingFeatureProducer.java19 import static android.hardware.devicestate.DeviceStateManager.INVALID_DEVICE_STATE_IDENTIFIER;
75 new DeviceState.Configuration.Builder(INVALID_DEVICE_STATE_IDENTIFIER,
170 new DeviceState.Configuration.Builder(INVALID_DEVICE_STATE_IDENTIFIER, in onListenersChanged()
/frameworks/base/services/core/java/com/android/server/policy/
DDeviceStateProviderImpl.java19 import static android.hardware.devicestate.DeviceStateManager.INVALID_DEVICE_STATE_IDENTIFIER;
303 private int mLastReportedState = INVALID_DEVICE_STATE_IDENTIFIER;
523 int stateToReport = INVALID_DEVICE_STATE_IDENTIFIER; in notifyDeviceStateChangedIfNeeded()
529 int newState = INVALID_DEVICE_STATE_IDENTIFIER; in notifyDeviceStateChangedIfNeeded()
558 if (newState == INVALID_DEVICE_STATE_IDENTIFIER) { in notifyDeviceStateChangedIfNeeded()
563 if (newState != INVALID_DEVICE_STATE_IDENTIFIER && newState != mLastReportedState) { in notifyDeviceStateChangedIfNeeded()
569 if (stateToReport != INVALID_DEVICE_STATE_IDENTIFIER) { in notifyDeviceStateChangedIfNeeded()
/frameworks/base/services/core/java/com/android/server/display/
DLogicalDisplayMapper.java201 private int mDeviceState = DeviceStateManager.INVALID_DEVICE_STATE_IDENTIFIER;
202 private int mPendingDeviceState = DeviceStateManager.INVALID_DEVICE_STATE_IDENTIFIER;
204 DeviceStateManager.INVALID_DEVICE_STATE_IDENTIFIER;
486 mDeviceStateToBeAppliedAfterBoot = DeviceStateManager.INVALID_DEVICE_STATE_IDENTIFIER; in setDeviceStateLocked()
537 != DeviceStateManager.INVALID_DEVICE_STATE_IDENTIFIER) { in onBootCompleted()
593 return currentState != DeviceStateManager.INVALID_DEVICE_STATE_IDENTIFIER in shouldDeviceBePutToSleep()
623 mPendingDeviceState = DeviceStateManager.INVALID_DEVICE_STATE_IDENTIFIER; in transitionToPendingStateLocked()
629 if (mPendingDeviceState == DeviceStateManager.INVALID_DEVICE_STATE_IDENTIFIER) { in finishStateTransitionLocked()
DDeviceStateToLayoutMap.java54 public static final int STATE_DEFAULT = DeviceStateManager.INVALID_DEVICE_STATE_IDENTIFIER;
/frameworks/base/services/tests/servicestests/src/com/android/server/devicestate/
DDeviceStateManagerServiceTest.java19 import static android.hardware.devicestate.DeviceStateManager.INVALID_DEVICE_STATE_IDENTIFIER;
209 () -> mProvider.setState(INVALID_DEVICE_STATE_IDENTIFIER)); in baseStateChanged_invalidState()
305 assertEquals(info.baseState.getIdentifier(), INVALID_DEVICE_STATE_IDENTIFIER); in getDeviceStateInfo_baseStateAndCommittedStateNotSet() local
306 assertEquals(info.currentState.getIdentifier(), INVALID_DEVICE_STATE_IDENTIFIER); in getDeviceStateInfo_baseStateAndCommittedStateNotSet() local
672 mService.getBinderService().requestState(token, INVALID_DEVICE_STATE_IDENTIFIER, in requestState_invalidState()
808 INVALID_DEVICE_STATE_IDENTIFIER, 0 /* flags */); in requestBaseState_invalidState()
903 private int mLastDeviceStateRequestedToConfigure = INVALID_DEVICE_STATE_IDENTIFIER;
/frameworks/base/services/core/java/com/android/server/devicestate/
DDeviceStateManagerService.java24 import static android.hardware.devicestate.DeviceStateManager.INVALID_DEVICE_STATE_IDENTIFIER;
116 new DeviceState.Configuration.Builder(INVALID_DEVICE_STATE_IDENTIFIER,
476 if (rearDisplayIdentifier != INVALID_DEVICE_STATE_IDENTIFIER) { in setRearDisplayStateLocked()
DDeviceStateNotificationController.java326 if (identifier == DeviceStateManager.INVALID_DEVICE_STATE_IDENTIFIER) { in loadNotificationInfos()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DLogicalDisplayMapperTest.java19 import static android.hardware.devicestate.DeviceStateManager.INVALID_DEVICE_STATE_IDENTIFIER;
706 INVALID_DEVICE_STATE_IDENTIFIER, in testDeviceShouldNotBePutToSleep()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java7266 private int mDeviceState = DeviceStateManager.INVALID_DEVICE_STATE_IDENTIFIER;
/frameworks/base/core/api/
Dtest-current.txt1675 field public static final int INVALID_DEVICE_STATE_IDENTIFIER = -1; // 0xffffffff