Home
last modified time | relevance | path

Searched refs:DeviceStateManager (Results 1 – 25 of 66) sorted by relevance

123

/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/unfold/system/
DDeviceStateManagerFoldProvider.kt18 import android.hardware.devicestate.DeviceStateManager
29 constructor(private val deviceStateManager: DeviceStateManager, private val context: Context) :
33 ConcurrentHashMap<FoldCallback, DeviceStateManager.DeviceStateCallback>()
47 DeviceStateManager.FoldStateListener(context, { listener.onFoldUpdated(it) }) in <lambda>()
/frameworks/base/services/core/java/com/android/server/audio/
DRotationHelper.java20 import android.hardware.devicestate.DeviceStateManager;
21 import android.hardware.devicestate.DeviceStateManager.FoldStateListener;
94 sContext.getSystemService(DeviceStateManager.class) in enable()
101 sContext.getSystemService(DeviceStateManager.class) in disable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DDeviceStateRotationLockSettingController.java24 import android.hardware.devicestate.DeviceStateManager;
51 private final DeviceStateManager mDeviceStateManager;
60 private DeviceStateManager.DeviceStateCallback mDeviceStateCallback;
67 DeviceStateManager deviceStateManager, in DeviceStateRotationLockSettingController()
DDevicePostureControllerImpl.java22 import android.hardware.devicestate.DeviceStateManager;
60 Context context, DeviceStateManager deviceStateManager, @Main Executor executor) { in DevicePostureControllerImpl()
88 deviceStateManager.registerCallback(executor, new DeviceStateManager.DeviceStateCallback() { in DevicePostureControllerImpl()
/frameworks/base/packages/SystemUI/src/com/android/systemui/display/data/repository/
DDeviceStateRepository.kt20 import android.hardware.devicestate.DeviceStateManager in <lambda>()
56 deviceStateManager: DeviceStateManager,
64 DeviceStateManager.DeviceStateCallback { state -> in <lambda>()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DDevicePostureController.java22 import android.hardware.devicestate.DeviceStateManager;
106 final DeviceStateManager deviceStateManager = mContext.getSystemService( in onInit()
107 DeviceStateManager.class); in onInit()
/frameworks/base/services/core/java/com/android/server/policy/
DDisplayFoldController.java21 import android.hardware.devicestate.DeviceStateManager;
22 import android.hardware.devicestate.DeviceStateManager.FoldStateListener;
66 DeviceStateManager deviceStateManager = context.getSystemService(DeviceStateManager.class); in DisplayFoldController()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/common/
DDeviceStateManagerFoldingFeatureProducer.java19 import static android.hardware.devicestate.DeviceStateManager.INVALID_DEVICE_STATE_IDENTIFIER;
27 import android.hardware.devicestate.DeviceStateManager;
28 import android.hardware.devicestate.DeviceStateManager.DeviceStateCallback;
96 @NonNull DeviceStateManager deviceStateManager) { in DeviceStateManagerFoldingFeatureProducer()
/frameworks/base/services/core/java/com/android/server/devicestate/
DDeviceStateProvider.java19 import static android.hardware.devicestate.DeviceStateManager.MAXIMUM_DEVICE_STATE_IDENTIFIER;
20 import static android.hardware.devicestate.DeviceStateManager.MINIMUM_DEVICE_STATE_IDENTIFIER;
DDeviceStateManagerShellCommand.java22 import android.hardware.devicestate.DeviceStateManager;
44 private final DeviceStateManager mClient;
48 mClient = service.getContext().getSystemService(DeviceStateManager.class); in DeviceStateManagerShellCommand()
/frameworks/base/packages/SystemUI/src/com/android/systemui/unfold/
DUnfoldLatencyTracker.kt21 import android.hardware.devicestate.DeviceStateManager
49 private val deviceStateManager: DeviceStateManager,
175 DeviceStateManager.FoldStateListener(context, { onFoldEvent(it) }) in <lambda>()
DUnfoldTransitionModule.kt20 import android.hardware.devicestate.DeviceStateManager in <lambda>()
79 deviceStateManager: DeviceStateManager, in <lambda>()
82 ): DeviceStateManager.FoldStateListener { in <lambda>()
83 val listener = DeviceStateManager.FoldStateListener(context) in <lambda>()
DUnfoldLightRevealOverlayAnimation.kt21 import android.hardware.devicestate.DeviceStateManager in <lambda>()
53 private val deviceStateManager: DeviceStateManager, in <lambda>()
179 DeviceStateManager.FoldStateListener( in <lambda>()
DFoldAodAnimationController.kt21 import android.hardware.devicestate.DeviceStateManager in <lambda>()
54 private val deviceStateManager: DeviceStateManager, in <lambda>()
244 DeviceStateManager.FoldStateListener( in <lambda>()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/
DWindowExtensionsImpl.java26 import android.hardware.devicestate.DeviceStateManager;
107 private DeviceStateManager getDeviceStateManager() { in getDeviceStateManager()
108 return Objects.requireNonNull(getApplication().getSystemService(DeviceStateManager.class)); in getDeviceStateManager()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DDeviceStateHelper.java26 import android.hardware.devicestate.DeviceStateManager;
40 context.getSystemService(DeviceStateManager.class) in DeviceStateHelper()
/frameworks/base/packages/SystemUI/src/com/android/systemui/reardisplay/
DRearDisplayDialogController.java27 import android.hardware.devicestate.DeviceStateManager;
75 private DeviceStateManager.DeviceStateCallback mDeviceStateManagerCallback =
222 DeviceStateManager.DeviceStateCallback deviceStateManagerCallback) { in setDeviceStateManagerCallback()
231 private class DeviceStateManagerCallback implements DeviceStateManager.DeviceStateCallback {
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DDeviceStateRotationLockSettingControllerTest.java29 import android.hardware.devicestate.DeviceStateManager;
63 @Mock private DeviceStateManager mDeviceStateManager;
71 private DeviceStateManager.DeviceStateCallback mDeviceStateCallback;
84 ArgumentCaptor<DeviceStateManager.DeviceStateCallback> deviceStateCallbackArgumentCaptor = in setUp()
85 ArgumentCaptor.forClass(DeviceStateManager.DeviceStateCallback.class); in setUp()
DDevicePostureControllerImplTest.kt20 import android.hardware.devicestate.DeviceStateManager
60 @Mock private lateinit var deviceStateManager: DeviceStateManager
62 private lateinit var deviceStateCallback: ArgumentCaptor<DeviceStateManager.DeviceStateCallback>
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDeviceStateControllerTests.java27 import android.hardware.devicestate.DeviceStateManager;
58 private DeviceStateManager mMockDeviceStateManager;
210 mMockDeviceStateManager = mock(DeviceStateManager.class); in build()
211 when(mMockContext.getSystemService(DeviceStateManager.class)) in build()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/unfold/
DUnfoldLatencyTrackerTest.kt19 import android.hardware.devicestate.DeviceStateManager
20 import android.hardware.devicestate.DeviceStateManager.FoldStateListener
48 @Mock lateinit var deviceStateManager: DeviceStateManager
DFoldAodAnimationControllerTest.kt19 import android.hardware.devicestate.DeviceStateManager
20 import android.hardware.devicestate.DeviceStateManager.FoldStateListener
63 @Mock lateinit var deviceStateManager: DeviceStateManager
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/display/data/repository/
DDeviceStateRepositoryTest.kt19 import android.hardware.devicestate.DeviceStateManager
50 private val deviceStateManager = mock<DeviceStateManager>()
52 kotlinArgumentCaptor<DeviceStateManager.DeviceStateCallback>()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/sidecar/
DSampleSidecarImpl.java23 import android.hardware.devicestate.DeviceStateManager;
51 context.getSystemService(DeviceStateManager.class)); in SampleSidecarImpl()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/area/
DWindowAreaComponentImpl.java19 import static android.hardware.devicestate.DeviceStateManager.INVALID_DEVICE_STATE_IDENTIFIER;
24 import android.hardware.devicestate.DeviceStateManager;
58 DeviceStateManager.DeviceStateCallback {
64 private final DeviceStateManager mDeviceStateManager;
102 mDeviceStateManager = context.getSystemService(DeviceStateManager.class); in WindowAreaComponentImpl()

123