Home
last modified time | relevance | path

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

/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/
DDevicePostureControllerTest.java60 private DevicePostureController mDevicePostureController; field in DevicePostureControllerTest
65 mDevicePostureController = new DevicePostureController(mContext, mShellInit, mMainExecutor); in setUp()
70 verify(mShellInit, times(1)).addInitCallback(any(), eq(mDevicePostureController)); in instantiateController_addInitCallback()
75 mDevicePostureController.registerOnDevicePostureChangedListener( in registerOnDevicePostureChangedListener_callbackCurrentPosture()
83 mDevicePostureController.registerOnDevicePostureChangedListener( in onDevicePostureChanged_differentPosture_callbackListener()
90 mDevicePostureController.onDevicePostureChanged(differentDevicePosture); in onDevicePostureChanged_differentPosture_callbackListener()
98 mDevicePostureController.registerOnDevicePostureChangedListener( in onDevicePostureChanged_samePosture_doesNotCallbackListener()
105 mDevicePostureController.onDevicePostureChanged(sameDevicePosture); in onDevicePostureChanged_samePosture_doesNotCallbackListener()
DTabletopModeControllerTest.java84 private DevicePostureController mDevicePostureController; field in TabletopModeControllerTest
101 mDevicePostureController, mDisplayController, mMainExecutor); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/sensors/
DPostureDependentProximitySensor.java43 private final DevicePostureController mDevicePostureController; field in PostureDependentProximitySensor
61 mDevicePostureController = devicePostureController; in PostureDependentProximitySensor()
63 mDevicePosture = mDevicePostureController.getDevicePosture(); in PostureDependentProximitySensor()
64 mDevicePostureController.addCallback(mDevicePostureCallback); in PostureDependentProximitySensor()
72 mDevicePostureController.removeCallback(mDevicePostureCallback); in destroy()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeScreenBrightnessTest.java96 DevicePostureController mDevicePostureController; field in DozeScreenBrightnessTest
136 mDevicePostureController, in setUp()
259 mDevicePostureController, in testPulsing_withoutLightSensor_setsAoDDimmingScrimTransparent()
297 mDevicePostureController, in testNullSensor()
310 when(mDevicePostureController.getDevicePosture()).thenReturn( in testSensorsSupportPostures_closed()
329 mDevicePostureController, in testSensorsSupportPostures_closed()
349 when(mDevicePostureController.getDevicePosture()).thenReturn( in testSensorsSupportPostures_open()
368 mDevicePostureController, in testSensorsSupportPostures_open()
389 reset(mDevicePostureController); in testSensorsSupportPostures_swapPostures()
392 when(mDevicePostureController.getDevicePosture()).thenReturn( in testSensorsSupportPostures_swapPostures()
[all …]
DDozeSensorsTest.java103 private DevicePostureController mDevicePostureController; field in DozeSensorsTest
439 mDevicePostureController, mSelectedUserInteractor); in testGesturesAllInitiallyRespectSettings()
484 mDevicePostureController, mSelectedUserInteractor); in liftToWake_defaultSetting_configDefaultFalse()
503 mDevicePostureController, mSelectedUserInteractor); in liftToWake_defaultSetting_configDefaultTrue()
518 mDevicePostureController, mSelectedUserInteractor); in TestableDozeSensors()
DDozeTriggersTest.java107 private DevicePostureController mDevicePostureController; field in DozeTriggersTest
148 mDevicePostureController, mUserTracker, mSelectedUserInteractor); in setupDozeTriggers()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardInputViewController.java211 private final DevicePostureController mDevicePostureController; field in KeyguardInputViewController.Factory
243 mDevicePostureController = devicePostureController; in Factory()
263 mDevicePostureController, mFeatureFlags, mSelectedUserInteractor); in create()
270 mDevicePostureController, mFeatureFlags, mSelectedUserInteractor, in create()
277 mDevicePostureController, mFeatureFlags, mSelectedUserInteractor, in create()
DKeyguardUpdateMonitor.java375 private final DevicePostureController mDevicePostureController; field in KeyguardUpdateMonitor
2206 mDevicePostureController = devicePostureController; in KeyguardUpdateMonitor()
2442 mDevicePostureController.addCallback(mPostureCallback); in start()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeScreenBrightness.java80 private final DevicePostureController mDevicePostureController; field in DozeScreenBrightness
121 mDevicePostureController = devicePostureController; in DozeScreenBrightness()
122 mDevicePosture = mDevicePostureController.getDevicePosture(); in DozeScreenBrightness()
138 mDevicePostureController.addCallback(mDevicePostureCallback); in DozeScreenBrightness()
173 mDevicePostureController.removeCallback(mDevicePostureCallback); in onDestroy()
DDozeSensors.java101 private final DevicePostureController mDevicePostureController; field in DozeSensors
176 mDevicePostureController = devicePostureController; in DozeSensors()
177 mDevicePosture = mDevicePostureController.getDevicePosture(); in DozeSensors()
294 mDevicePostureController.addCallback(mDevicePostureCallback); in DozeSensors()
318 mDevicePostureController.removeCallback(mDevicePostureCallback); in destroy()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/sensors/
DPostureDependentProximitySensorTest.java53 @Mock private DevicePostureController mDevicePostureController; field in PostureDependentProximitySensorTest
76 mDevicePostureController in setUp()
170 verify(mDevicePostureController).addCallback(mPostureListenerCaptor.capture()); in capturePostureListener()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DTabletopModeController.java78 private final DevicePostureController mDevicePostureController; field in TabletopModeController
114 mDevicePostureController = postureController; in TabletopModeController()
122 mDevicePostureController.registerOnDevicePostureChangedListener(this); in onInit()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumeDialogImpl.java309 private final DevicePostureController mDevicePostureController; field in VolumeDialogImpl
391 mDevicePostureController = devicePostureController; in VolumeDialogImpl()
392 if (mDevicePostureController != null) { in VolumeDialogImpl()
393 int initialPosture = mDevicePostureController.getDevicePosture(); in VolumeDialogImpl()
433 if (mDevicePostureController != null) { in init()
434 mDevicePostureController.addCallback(mDevicePostureControllerCallback); in init()
444 if (mDevicePostureController != null) { in destroy()
445 mDevicePostureController.removeCallback(mDevicePostureControllerCallback); in destroy()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardUpdateMonitorTest.java226 private DevicePostureController mDevicePostureController; field in KeyguardUpdateMonitorTest
322 when(mDevicePostureController.getDevicePosture()).thenReturn(DEVICE_POSTURE_UNKNOWN); in setup()
2435 mFaceWakeUpTriggersConfig, mDevicePostureController, in TestableKeyguardUpdateMonitor()