Home
last modified time | relevance | path

Searched refs:mCarUxRestrictionsManager (Results 1 – 5 of 5) 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/apps/Car/Settings/src/com/android/car/settings/common/
DCarUxRestrictionsHelper.java36 @Nullable private CarUxRestrictionsManager mCarUxRestrictionsManager; field in CarUxRestrictionsHelper
47 mCarUxRestrictionsManager = (CarUxRestrictionsManager) in CarUxRestrictionsHelper()
49 if (mCarUxRestrictionsManager != null) { in CarUxRestrictionsHelper()
50 mCarUxRestrictionsManager.registerListener(mListener); in CarUxRestrictionsHelper()
52 mCarUxRestrictionsManager.getCurrentCarUxRestrictions()); in CarUxRestrictionsHelper()
71 if (mCarUxRestrictionsManager != null) { in destroy()
72 mCarUxRestrictionsManager.unregisterListener(); in destroy()
73 mCarUxRestrictionsManager = null; in destroy()
/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/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()