Searched refs:DevicePostureController (Results 1 – 25 of 48) sorted by relevance
12
19 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 …]
19 import com.android.systemui.statusbar.policy.DevicePostureController30 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()
24 import com.android.systemui.statusbar.policy.DevicePostureController47 @Mock private lateinit var devicePostureController: DevicePostureController48 @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()
21 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.DevicePostureInt110 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()
46 public class DevicePostureController { class72 public DevicePostureController( in DevicePostureController() method in DevicePostureController
22 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()
24 import com.android.systemui.statusbar.policy.DevicePostureController in <lambda>()41 private val postureController: DevicePostureController,55 val callback = DevicePostureController.Callback { sendPostureUpdate(it) } in <lambda>()
34 import com.android.systemui.statusbar.policy.DevicePostureController35 import com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_HALF_OPENED36 import com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_OPENED85 @Mock private lateinit var mPostureController: DevicePostureController90 @Captor lateinit var postureCallbackCaptor: ArgumentCaptor<DevicePostureController.Callback>142 val postureCallback: DevicePostureController.Callback = postureCallbackCaptor.value in onDevicePostureChanged_deviceOpened_propagatedToPatternView()
26 import com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_CLOSED27 import com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_FLIPPED28 import com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_HALF_OPENED29 import com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_OPENED30 import com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_UNKNOWN31 import com.android.systemui.statusbar.policy.DevicePostureController.SUPPORTED_POSTURES_SIZE
36 import com.android.systemui.statusbar.policy.DevicePostureController37 import com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_CLOSED38 import com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_FLIPPED39 import com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_OPENED40 import com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_UNKNOWN76 private lateinit var postureControllerCallback: DevicePostureController.Callback82 @Mock private lateinit var devicePostureController: DevicePostureController100 ArgumentCaptor.forClass(DevicePostureController.Callback::class.java)
44 import com.android.systemui.statusbar.policy.DevicePostureController;80 private final DevicePostureController mDevicePostureController;87 @DevicePostureController.DevicePostureInt114 DevicePostureController devicePostureController, in DozeScreenBrightness()344 idpw.println("posture=" + DevicePostureController.devicePostureToString(mDevicePosture)); in dump()347 private final DevicePostureController.Callback mDevicePostureCallback =348 new DevicePostureController.Callback() {
54 import com.android.systemui.statusbar.policy.DevicePostureController;101 private final DevicePostureController mDevicePostureController;124 @DevicePostureController.DevicePostureInt159 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 …]
58 private DevicePostureController.OnDevicePostureChangedListener mOnDevicePostureChangedListener;60 private DevicePostureController mDevicePostureController;65 mDevicePostureController = new DevicePostureController(mContext, mShellInit, mMainExecutor); in setUp()
21 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;
19 import static com.android.systemui.statusbar.policy.DevicePostureController.Callback;30 public interface DevicePostureController extends CallbackController<Callback> { interface
33 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()
32 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.DevicePostureInt138 void onDevicePostureChanged(@DevicePostureController.DevicePostureInt int posture) { in onDevicePostureChanged()
24 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;
27 import com.android.systemui.statusbar.policy.DevicePostureController36 private val devicePostureController: DevicePostureController83 DevicePostureController.DEVICE_POSTURE_CLOSED in getSecondaryLabelWithPosture()
40 import com.android.systemui.statusbar.policy.DevicePostureController41 import com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_HALF_OPENED42 import com.android.systemui.statusbar.policy.DevicePostureController.DEVICE_POSTURE_OPENED98 @Mock lateinit var postureController: DevicePostureController107 @Captor lateinit var postureCallbackCaptor: ArgumentCaptor<DevicePostureController.Callback>180 val postureCallback: DevicePostureController.Callback = postureCallbackCaptor.value in onDevicePostureChanged_deviceOpened_propagatedToPatternView()
38 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>()
56 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()
56 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()
31 import com.android.systemui.statusbar.policy.DevicePostureController51 .thenReturn(DevicePostureController.DEVICE_POSTURE_CLOSED) in setup()140 .thenReturn(DevicePostureController.DEVICE_POSTURE_OPENED) in deviceFoldableAndNotClosed_secondaryLabelIsFoldableSpecific()
22 val Kosmos.devicePostureController by Kosmos.Fixture { mock<DevicePostureController>() } in <lambda>()