Home
last modified time | relevance | path

Searched refs:supportedStates (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/core/java/android/hardware/devicestate/
DDeviceStateInfo.java59 public final ArrayList<DeviceState> supportedStates; field in DeviceStateInfo
81 public DeviceStateInfo(@NonNull ArrayList<DeviceState> supportedStates, DeviceState baseState, in DeviceStateInfo() argument
83 this.supportedStates = supportedStates; in DeviceStateInfo()
93 this(new ArrayList<>(info.supportedStates), info.baseState, info.currentState); in DeviceStateInfo()
103 && Objects.equals(supportedStates, that.supportedStates); in equals()
109 result = 31 * result + supportedStates.hashCode(); in hashCode()
117 if (!supportedStates.equals(other.supportedStates)) { in diff()
131 dest.writeInt(supportedStates.size()); in writeToParcel()
132 for (int i = 0; i < supportedStates.size(); i++) { in writeToParcel()
133 dest.writeTypedObject(supportedStates.get(i).getConfiguration(), flags); in writeToParcel()
[all …]
DDeviceStateUtil.java44 @NonNull List<DeviceState> supportedStates) { in calculateBaseStateIdentifier() argument
46 for (int i = 0; i < supportedStates.size(); i++) { in calculateBaseStateIdentifier()
47 DeviceState stateToCompare = supportedStates.get(i); in calculateBaseStateIdentifier()
52 supportedStates.get(i))) { in calculateBaseStateIdentifier()
53 return supportedStates.get(i).getIdentifier(); in calculateBaseStateIdentifier()
DDeviceStateManagerGlobal.java114 return List.copyOf(currentInfo.supportedStates); in getSupportedDeviceStates()
241 List.copyOf(mLastReceivedInfo.supportedStates)); in registerDeviceStateCallback()
324 List.copyOf(info.supportedStates)); in handleDeviceStateInfoChanged()
DDeviceStateManager.java237 default void onSupportedStatesChanged(@NonNull List<DeviceState> supportedStates) {} in onSupportedStatesChanged() argument
/frameworks/base/core/tests/devicestatetests/src/android/hardware/devicestate/
DDeviceStateInfoTest.java77 final ArrayList<DeviceState> supportedStates = new ArrayList<>( in create() local
82 final DeviceStateInfo info = new DeviceStateInfo(supportedStates, baseState, currentState); in create()
83 assertNotNull(info.supportedStates); in create()
84 assertEquals(supportedStates, info.supportedStates); in create()
91 final ArrayList<DeviceState> supportedStates = new ArrayList<>( in equals() local
96 final DeviceStateInfo info = new DeviceStateInfo(supportedStates, baseState, currentState); in equals()
99 final DeviceStateInfo sameInfo = new DeviceStateInfo(supportedStates, baseState, in equals()
110 final ArrayList<DeviceState> supportedStates = new ArrayList<>( in diff_sameObject() local
115 final DeviceStateInfo info = new DeviceStateInfo(supportedStates, baseState, currentState); in diff_sameObject()
157 final ArrayList<DeviceState> supportedStates = new ArrayList<>( in writeToParcel() local
[all …]
/frameworks/base/services/core/java/com/android/server/devicestate/
DDeviceStateManagerService.java373 List<DeviceState> supportedStates = new ArrayList<>(mDeviceStates.size()); in getSupportedStatesLocked() local
375 supportedStates.add(i, mDeviceStates.valueAt(i)); in getSupportedStatesLocked()
377 return supportedStates; in getSupportedStatesLocked()
382 int[] supportedStates = new int[mDeviceStates.size()]; in getSupportedStateIdentifiersLocked() local
383 for (int i = 0; i < supportedStates.length; i++) { in getSupportedStateIdentifiersLocked()
384 supportedStates[i] = mDeviceStates.valueAt(i).getIdentifier(); in getSupportedStateIdentifiersLocked()
386 return supportedStates; in getSupportedStateIdentifiersLocked()
398 final List<DeviceState> supportedStates = getSupportedStatesLocked(); in getDeviceStateInfoLocked() local
402 return new DeviceStateInfo(new ArrayList<>(supportedStates), baseState, in getDeviceStateInfoLocked()
/frameworks/base/services/foldables/devicestateprovider/src/com/android/server/policy/
DFoldableDeviceStateProvider.java235 List<DeviceState> supportedStates = new ArrayList<>(); in notifySupportedStatesChanged() local
244 supportedStates.add(deviceState); in notifySupportedStatesChanged()
250 supportedStates.toArray(new DeviceState[supportedStates.size()]), reason); in notifySupportedStatesChanged()
/frameworks/base/services/core/java/com/android/server/policy/
DDeviceStateProviderImpl.java495 List<DeviceState> supportedStates = new ArrayList<>(); in notifySupportedStatesChanged() local
512 supportedStates.add(deviceState); in notifySupportedStatesChanged()
517 supportedStates.toArray(new DeviceState[supportedStates.size()]), in notifySupportedStatesChanged()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/area/
DWindowAreaComponentImpl.java453 public void onSupportedStatesChanged(@NonNull List<DeviceState> supportedStates) { in onSupportedStatesChanged() argument
456 mCurrentSupportedDeviceStates = getSupportedStateIdentifiers(supportedStates); in onSupportedStatesChanged()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicestate/
DDeviceStateManagerServiceTest.java245 assertEquals(callback.getLastNotifiedInfo().supportedStates, List.of(DEFAULT_DEVICE_STATE)); in supportedStatesChanged()
288 assertEquals(info.supportedStates, SUPPORTED_DEVICE_STATES); in getDeviceStateInfo()
304 assertEquals(info.supportedStates, SUPPORTED_DEVICE_STATES); in getDeviceStateInfo_baseStateAndCommittedStateNotSet()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayManagerService.java4783 final int[] supportedStates = in getPossibleDisplayInfo() local
4786 Slog.d(TAG, "supportedStates=" + Arrays.toString(supportedStates)); in getPossibleDisplayInfo()
4788 for (int state : supportedStates) { in getPossibleDisplayInfo()