Home
last modified time | relevance | path

Searched refs:deviceStateManager (Results 1 – 4 of 4) sorted by relevance

/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DScreenDeviceInfo.java113 DeviceStateManager deviceStateManager = getContext().getSystemService( in addDeviceStatesIfAvailable() local
117 if (deviceStateManager != null) { in addDeviceStatesIfAvailable()
118 store.addArrayResult("device_states", getDeviceStateIdentifiers(deviceStateManager)); in addDeviceStatesIfAvailable()
132 private int[] getDeviceStateIdentifiers(@NonNull DeviceStateManager deviceStateManager) { in getDeviceStateIdentifiers() argument
134 final List<DeviceState> deviceStates = deviceStateManager.getSupportedDeviceStates(); in getDeviceStateIdentifiers()
141 return getDeviceStateIdentifiersUsingReflection(deviceStateManager); in getDeviceStateIdentifiers()
151 @NonNull DeviceStateManager deviceStateManager) { in getDeviceStateIdentifiersUsingReflection()
152 Method getSupportedStatesMethod = getMethod(deviceStateManager.getClass(), in getDeviceStateIdentifiersUsingReflection()
159 final int[] identifiers = (int[]) getSupportedStatesMethod.invoke(deviceStateManager); in getDeviceStateIdentifiersUsingReflection()
/cts/tests/camera/utils/src/android/hardware/cts/helpers/
DCameraUtils.java295 DeviceStateManager deviceStateManager = in isDeviceFoldable() local
297 if (deviceStateManager == null) { in isDeviceFoldable()
302 Set<Integer> supportedStates = deviceStateManager.getSupportedDeviceStates().stream().map( in isDeviceFoldable()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestListAdapter.java909 DeviceStateManager deviceStateManager = mContext.getSystemService(DeviceStateManager.class); in isFoldableDevice() local
910 if (deviceStateManager == null) { in isFoldableDevice()
913 Set<Integer> supportedStates = deviceStateManager.getSupportedDeviceStates().stream().map( in isFoldableDevice()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/layout/
DExtensionWindowLayoutComponentTest.java795 DeviceStateManager deviceStateManager = mContext.getSystemService(DeviceStateManager.class); in isHalfOpenedSupported() local
797 final List<DeviceState> supportedStates = deviceStateManager.getSupportedDeviceStates(); in isHalfOpenedSupported()