Searched refs:deviceStateManager (Results 1 – 4 of 4) sorted by relevance
113 DeviceStateManager deviceStateManager = getContext().getSystemService( in addDeviceStatesIfAvailable() local117 if (deviceStateManager != null) { in addDeviceStatesIfAvailable()118 store.addArrayResult("device_states", getDeviceStateIdentifiers(deviceStateManager)); in addDeviceStatesIfAvailable()132 private int[] getDeviceStateIdentifiers(@NonNull DeviceStateManager deviceStateManager) { in getDeviceStateIdentifiers() argument134 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()
295 DeviceStateManager deviceStateManager = in isDeviceFoldable() local297 if (deviceStateManager == null) { in isDeviceFoldable()302 Set<Integer> supportedStates = deviceStateManager.getSupportedDeviceStates().stream().map( in isDeviceFoldable()
909 DeviceStateManager deviceStateManager = mContext.getSystemService(DeviceStateManager.class); in isFoldableDevice() local910 if (deviceStateManager == null) { in isFoldableDevice()913 Set<Integer> supportedStates = deviceStateManager.getSupportedDeviceStates().stream().map( in isFoldableDevice()
795 DeviceStateManager deviceStateManager = mContext.getSystemService(DeviceStateManager.class); in isHalfOpenedSupported() local797 final List<DeviceState> supportedStates = deviceStateManager.getSupportedDeviceStates(); in isHalfOpenedSupported()