Home
last modified time | relevance | path

Searched refs:DevicePostureController (Results 1 – 25 of 48) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/sensors/
DPostureDependentProximitySensorTest.java19 import static com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_CLOSED;
35 import com.android.systemui.statusbar.policy.DevicePostureController;
53 @Mock private DevicePostureController mDevicePostureController;
57 @Captor private ArgumentCaptor<DevicePostureController.Callback> mPostureListenerCaptor =
58 ArgumentCaptor.forClass(DevicePostureController.Callback.class);
59 private DevicePostureController.Callback mPostureListener;
85 @DevicePostureController.DevicePostureInt int proxExistsForPosture) { in setupProximitySensors()
89 mPrimaryProxSensors = new ThresholdSensor[DevicePostureController.SUPPORTED_POSTURES_SIZE]; in setupProximitySensors()
91 new ThresholdSensor[DevicePostureController.SUPPORTED_POSTURES_SIZE]; in setupProximitySensors()
92 for (int i = 0; i < DevicePostureController.SUPPORTED_POSTURES_SIZE; i++) { in setupProximitySensors()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/shared/model/
DDevicePosture.kt19 import com.android.systemui.statusbar.policy.DevicePostureController
30 fun toPosture(@DevicePostureController.DevicePostureInt posture: Int): DevicePosture { in toPosture()
32 DevicePostureController.DEVICE_POSTURE_CLOSED -> CLOSED in toPosture()
33 DevicePostureController.DEVICE_POSTURE_HALF_OPENED -> HALF_OPENED in toPosture()
34 DevicePostureController.DEVICE_POSTURE_OPENED -> OPENED in toPosture()
35 DevicePostureController.DEVICE_POSTURE_FLIPPED -> FLIPPED in toPosture()
36 DevicePostureController.DEVICE_POSTURE_UNKNOWN -> UNKNOWN in toPosture()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/data/repository/
DDevicePostureRepositoryTest.kt24 import com.android.systemui.statusbar.policy.DevicePostureController
47 @Mock private lateinit var devicePostureController: DevicePostureController
48 @Captor private lateinit var callback: ArgumentCaptor<DevicePostureController.Callback>
65 .thenReturn(DevicePostureController.DEVICE_POSTURE_FLIPPED) in postureChangesArePropagated()
71 callback.value.onPostureChanged(DevicePostureController.DEVICE_POSTURE_UNKNOWN) in postureChangesArePropagated()
74 callback.value.onPostureChanged(DevicePostureController.DEVICE_POSTURE_CLOSED) in postureChangesArePropagated()
77 callback.value.onPostureChanged(DevicePostureController.DEVICE_POSTURE_HALF_OPENED) in postureChangesArePropagated()
80 callback.value.onPostureChanged(DevicePostureController.DEVICE_POSTURE_OPENED) in postureChangesArePropagated()
83 callback.value.onPostureChanged(DevicePostureController.DEVICE_POSTURE_FLIPPED) in postureChangesArePropagated()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DTabletopModeController.java21 import static com.android.wm.shell.common.DevicePostureController.DEVICE_POSTURE_HALF_OPENED;
22 import static com.android.wm.shell.common.DevicePostureController.DEVICE_POSTURE_UNKNOWN;
54 DevicePostureController.OnDevicePostureChangedListener,
78 private final DevicePostureController mDevicePostureController;
96 @DevicePostureController.DevicePostureInt
110 DevicePostureController postureController, in TabletopModeController()
180 public void onDevicePostureChanged(@DevicePostureController.DevicePostureInt int posture) { in onDevicePostureChanged()
195 @DevicePostureController.DevicePostureInt int newPosture, in onDevicePostureOrDisplayRotationChanged()
212 private boolean isHalfOpened(@DevicePostureController.DevicePostureInt int posture) { in isHalfOpened()
DDevicePostureController.java46 public class DevicePostureController { class
72 public DevicePostureController( in DevicePostureController() method in DevicePostureController
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/sensors/
DPostureDependentProximitySensor.java22 import com.android.systemui.statusbar.policy.DevicePostureController;
43 private final DevicePostureController mDevicePostureController;
51 DevicePostureController devicePostureController in PostureDependentProximitySensor()
108 + DevicePostureController.devicePostureToString(mDevicePosture)); in chooseSensors()
134 private final DevicePostureController.Callback mDevicePostureCallback =
147 DevicePostureController.devicePostureToString(mDevicePosture), super.toString()); in toString()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/repository/
DDevicePostureRepository.kt24 import com.android.systemui.statusbar.policy.DevicePostureController in <lambda>()
41 private val postureController: DevicePostureController,
55 val callback = DevicePostureController.Callback { sendPostureUpdate(it) } in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/keyguard/
DKeyguardPatternViewControllerTest.kt34 import com.android.systemui.statusbar.policy.DevicePostureController
35 import com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_HALF_OPENED
36 import com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_OPENED
85 @Mock private lateinit var mPostureController: DevicePostureController
90 @Captor lateinit var postureCallbackCaptor: ArgumentCaptor<DevicePostureController.Callback>
142 val postureCallback: DevicePostureController.Callback = postureCallbackCaptor.value in onDevicePostureChanged_deviceOpened_propagatedToPatternView()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DDevicePostureControllerImplTest.kt26 import com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_CLOSED
27 import com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_FLIPPED
28 import com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_HALF_OPENED
29 import com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_OPENED
30 import com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_UNKNOWN
31 import com.android.systemui.statusbar.policy.DevicePostureController.SUPPORTED_POSTURES_SIZE
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DKeyguardBypassControllerTest.kt36 import com.android.systemui.statusbar.policy.DevicePostureController
37 import com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_CLOSED
38 import com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_FLIPPED
39 import com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_OPENED
40 import com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_UNKNOWN
76 private lateinit var postureControllerCallback: DevicePostureController.Callback
82 @Mock private lateinit var devicePostureController: DevicePostureController
100 ArgumentCaptor.forClass(DevicePostureController.Callback::class.java)
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeScreenBrightness.java44 import com.android.systemui.statusbar.policy.DevicePostureController;
80 private final DevicePostureController mDevicePostureController;
87 @DevicePostureController.DevicePostureInt
114 DevicePostureController devicePostureController, in DozeScreenBrightness()
344 idpw.println("posture=" + DevicePostureController.devicePostureToString(mDevicePosture)); in dump()
347 private final DevicePostureController.Callback mDevicePostureCallback =
348 new DevicePostureController.Callback() {
DDozeSensors.java54 import com.android.systemui.statusbar.policy.DevicePostureController;
101 private final DevicePostureController mDevicePostureController;
124 @DevicePostureController.DevicePostureInt
159 DevicePostureController devicePostureController, in DozeSensors()
336 Sensor[] sensorMap = new Sensor[DevicePostureController.SUPPORTED_POSTURES_SIZE]; in findSensors()
497 + DevicePostureController.devicePostureToString(mDevicePosture)); in dump()
540 private @DevicePostureController.DevicePostureInt int mPosture;
589 DevicePostureController.DEVICE_POSTURE_UNKNOWN, in TriggerSensor()
605 @DevicePostureController.DevicePostureInt int posture, in TriggerSensor()
625 public boolean setPosture(@DevicePostureController.DevicePostureInt int posture) { in setPosture()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/
DDevicePostureControllerTest.java58 private DevicePostureController.OnDevicePostureChangedListener mOnDevicePostureChangedListener;
60 private DevicePostureController mDevicePostureController;
65 mDevicePostureController = new DevicePostureController(mContext, mShellInit, mMainExecutor); in setUp()
DTabletopModeControllerTest.java21 import static com.android.wm.shell.common.DevicePostureController.DEVICE_POSTURE_CLOSED;
22 import static com.android.wm.shell.common.DevicePostureController.DEVICE_POSTURE_HALF_OPENED;
23 import static com.android.wm.shell.common.DevicePostureController.DEVICE_POSTURE_OPENED;
84 private DevicePostureController mDevicePostureController;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DDevicePostureController.java19 import static com.android.systemui.statusbar.policy.DevicePostureController.Callback;
30 public interface DevicePostureController extends CallbackController<Callback> { interface
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardPinViewController.java33 import com.android.systemui.statusbar.policy.DevicePostureController;
39 private final DevicePostureController mPostureController;
40 private final DevicePostureController.Callback mPostureCallback = posture ->
62 DevicePostureController postureController, FeatureFlags featureFlags, in KeyguardPinViewController()
DKeyguardPasswordView.java32 import static com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_CLOSED;
33 import static com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_UNKNOWN;
59 import com.android.systemui.statusbar.policy.DevicePostureController;
73 @DevicePostureController.DevicePostureInt
138 void onDevicePostureChanged(@DevicePostureController.DevicePostureInt int posture) { in onDevicePostureChanged()
DKeyguardPINView.java24 import static com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_CLOSED;
25 import static com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_HALF_OPE…
26 import static com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_UNKNOWN;
45 import com.android.systemui.statusbar.policy.DevicePostureController.DevicePostureInt;
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/rotation/ui/mapper/
DRotationLockTileMapper.kt27 import com.android.systemui.statusbar.policy.DevicePostureController
36 private val devicePostureController: DevicePostureController
83 DevicePostureController.DEVICE_POSTURE_CLOSED in getSecondaryLabelWithPosture()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardPinViewControllerTest.kt40 import com.android.systemui.statusbar.policy.DevicePostureController
41 import com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_HALF_OPENED
42 import com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_OPENED
98 @Mock lateinit var postureController: DevicePostureController
107 @Captor lateinit var postureCallbackCaptor: ArgumentCaptor<DevicePostureController.Callback>
180 val postureCallback: DevicePostureController.Callback = postureCallbackCaptor.value in onDevicePostureChanged_deviceOpened_propagatedToPatternView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardBypassController.kt38 import com.android.systemui.statusbar.policy.DevicePostureController in <lambda>()
39 import com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_UNKNOWN in <lambda>()
40 import com.android.systemui.statusbar.policy.DevicePostureController.DevicePostureInt in <lambda>()
61 devicePostureController: DevicePostureController, in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeScreenBrightnessTest.java56 import com.android.systemui.statusbar.policy.DevicePostureController;
96 DevicePostureController mDevicePostureController;
311 DevicePostureController.DEVICE_POSTURE_CLOSED); in testSensorsSupportPostures_closed()
350 DevicePostureController.DEVICE_POSTURE_OPENED); in testSensorsSupportPostures_open()
387 ArgumentCaptor<DevicePostureController.Callback> postureCallbackCaptor = in testSensorsSupportPostures_swapPostures()
388 ArgumentCaptor.forClass(DevicePostureController.Callback.class); in testSensorsSupportPostures_swapPostures()
393 DevicePostureController.DEVICE_POSTURE_OPENED); in testSensorsSupportPostures_swapPostures()
423 DevicePostureController.DEVICE_POSTURE_CLOSED); in testSensorsSupportPostures_swapPostures()
DDozeSensorsTest.java56 import com.android.systemui.statusbar.policy.DevicePostureController;
103 private DevicePostureController mDevicePostureController;
309 DevicePostureController.DEVICE_POSTURE_CLOSED); in testPostureStartStateClosed_registersCorrectSensor()
330 DevicePostureController.DEVICE_POSTURE_CLOSED); in testPostureChange_registersCorrectSensor()
340 triggerSensor.setPosture(DevicePostureController.DEVICE_POSTURE_OPENED); in testPostureChange_registersCorrectSensor()
359 DevicePostureController.DEVICE_POSTURE_HALF_OPENED); in testPostureChange_noSensorChange()
368 triggerSensor.setPosture(DevicePostureController.DEVICE_POSTURE_OPENED); in testPostureChange_noSensorChange()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/rotation/ui/mapper/
DRotationLockTileMapperTest.kt31 import com.android.systemui.statusbar.policy.DevicePostureController
51 .thenReturn(DevicePostureController.DEVICE_POSTURE_CLOSED) in setup()
140 .thenReturn(DevicePostureController.DEVICE_POSTURE_OPENED) in deviceFoldableAndNotClosed_secondaryLabelIsFoldableSpecific()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/policy/
DDevicePostureControllerKosmos.kt22 val Kosmos.devicePostureController by Kosmos.Fixture { mock<DevicePostureController>() } in <lambda>()

12