Home
last modified time | relevance | path

Searched refs:mCarUxRestrictionsManager (Results 1 – 7 of 7) sorted by relevance

/packages/services/Car/tests/UxRestrictionsSample/src/com/google/android/car/uxr/sample/
DMainActivity.java60 private CarUxRestrictionsManager mCarUxRestrictionsManager; field in MainActivity
113 mCarUxRestrictionsManager = (CarUxRestrictionsManager) mCar.getCarManager( in onCreate()
122 if (mCarUxRestrictionsManager != null) { in onCreate()
123 mCarUxRestrictionsManager.registerListener(mUxRChangeListener); in onCreate()
124 updateUxRText(mCarUxRestrictionsManager.getCurrentCarUxRestrictions()); in onCreate()
143 if (mCarUxRestrictionsManager != null) { in onDestroy()
144 mCarUxRestrictionsManager.unregisterListener(); in onDestroy()
215 if (mCarUxRestrictionsManager == null) { in togglePassengerMode()
219 String mode = mCarUxRestrictionsManager.getRestrictionMode(); in togglePassengerMode()
222 mCarUxRestrictionsManager.setRestrictionMode(UX_RESTRICTION_MODE_PASSENGER); in togglePassengerMode()
[all …]
/packages/services/Car/tests/CarLibTests/src/android/car/
DCarUxRestrictionsManagerTest.java50 CarUxRestrictionsManager mCarUxRestrictionsManager; field in CarUxRestrictionsManagerTest
62 mCarUxRestrictionsManager = in setUp()
69 assertThat(mCarUxRestrictionsManager.getCurrentCarUxRestrictions().getActiveRestrictions()) in getRestrictions_noRestrictionsSet_noRestrictionsPresent()
77 assertThat(mCarUxRestrictionsManager.getCurrentCarUxRestrictions().getActiveRestrictions()) in setUxRestrictions_restrictionsRegistered()
87 assertThat(mCarUxRestrictionsManager.getCurrentCarUxRestrictions().getActiveRestrictions()) in clearUxRestrictions_restrictionsCleared()
98 mCarUxRestrictionsManager.registerListener(mListener); in isListenerRegistered_listenerSet_returnsTrue()
105 mCarUxRestrictionsManager.registerListener(mListener); in setUxRestrictions_listenerRegistered_listenerTriggered()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DCarUxRestrictionsHelper.java40 @Nullable private CarUxRestrictionsManager mCarUxRestrictionsManager; field in CarUxRestrictionsHelper
102 mCarUxRestrictionsManager = (CarUxRestrictionsManager)
104 mCarUxRestrictionsManager.registerListener(mListener);
107 mCarUxRestrictionsManager.getCurrentCarUxRestrictions());
116 mCarUxRestrictionsManager.unregisterListener();
117 mCarUxRestrictionsManager = null;
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarUxRestrictionManagerWrapper.java39 private CarUxRestrictionsManager mCarUxRestrictionsManager; field in CarUxRestrictionManagerWrapper
88 mCarUxRestrictionsManager = carUxRestrictionsManager; in setCarUxRestrictionsManager()
90 mCarUxRestrictionsManager.registerListener(this); in setCarUxRestrictionsManager()
103 if (mCarUxRestrictionsManager == null) { in getCurrentCarUxRestrictions()
106 return mCarUxRestrictionsManager.getCurrentCarUxRestrictions(); in getCurrentCarUxRestrictions()
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/
DAppGridActivity.java85 private CarUxRestrictionsManager mCarUxRestrictionsManager; field in AppGridActivity
117 mCarUxRestrictionsManager = (CarUxRestrictionsManager) mCar.getCarManager(
120 mCarUxRestrictionsManager
123 mCarUxRestrictionsManager.registerListener(
138 mCarUxRestrictionsManager = null;
276 if (mCarUxRestrictionsManager != null) { in onStop()
277 mCarUxRestrictionsManager.unregisterListener(); in onStop()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarActivityViewDisplayIdTest.java106 mCarUxRestrictionsManager.reportVirtualDisplayToPhysicalDisplay(virtualDisplayId, in testThrowsExceptionOnReportingNonExistingDisplay()
118 () -> mCarUxRestrictionsManager.reportVirtualDisplayToPhysicalDisplay( in testThrowsExceptionOnReportingNonExistingDisplay()
131 () -> mCarUxRestrictionsManager.reportVirtualDisplayToPhysicalDisplay( in testThrowsExceptionOnReportingNonOwningDisplay()
DCarActivityViewDisplayIdTestBase.java64 protected CarUxRestrictionsManager mCarUxRestrictionsManager; field in CarActivityViewDisplayIdTestBase
70 mCarUxRestrictionsManager = (CarUxRestrictionsManager) in setUp()
89 return mCarUxRestrictionsManager.getMappedPhysicalDisplayOfVirtualDisplay(displayId); in getMappedPhysicalDisplayOfVirtualDisplay()