Home
last modified time | relevance | path

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

/packages/apps/Car/Settings/src/com/android/car/settings/common/
DCarUxRestrictionsHelper.java36 @Nullable private CarUxRestrictionsManager mCarUxRestrictionsManager; field in CarUxRestrictionsHelper
52 mCarUxRestrictionsManager = (CarUxRestrictionsManager) car.getCarManager( in CarUxRestrictionsHelper()
54 if (mCarUxRestrictionsManager != null) { in CarUxRestrictionsHelper()
55 mCarUxRestrictionsManager.registerListener(mListener); in CarUxRestrictionsHelper()
57 mCarUxRestrictionsManager.getCurrentCarUxRestrictions()); in CarUxRestrictionsHelper()
77 if (mCarUxRestrictionsManager != null) { in destroy()
78 mCarUxRestrictionsManager.unregisterListener(); in destroy()
79 mCarUxRestrictionsManager = null; in destroy()
96 if (mCarUxRestrictionsManager == null) { in getCarUxRestrictions()
99 return mCarUxRestrictionsManager.getCurrentCarUxRestrictions(); in getCarUxRestrictions()
/packages/services/Car/tests/UxRestrictionsSample/src/com/google/android/car/uxr/sample/
DMainActivity.java62 private CarUxRestrictionsManager mCarUxRestrictionsManager; field in MainActivity
124 mCarUxRestrictionsManager = (CarUxRestrictionsManager) mCar.getCarManager( in onCreate()
133 if (mCarUxRestrictionsManager != null) { in onCreate()
134 mCarUxRestrictionsManager.registerListener(mUxRChangeListener); in onCreate()
135 updateUxRText(mCarUxRestrictionsManager.getCurrentCarUxRestrictions()); in onCreate()
154 if (mCarUxRestrictionsManager != null) { in onDestroy()
155 mCarUxRestrictionsManager.unregisterListener(); in onDestroy()
241 if (mCarUxRestrictionsManager == null) { in togglePassengerMode()
245 String mode = mCarUxRestrictionsManager.getRestrictionMode(); in togglePassengerMode()
248 mCarUxRestrictionsManager.setRestrictionMode(UX_RESTRICTION_MODE_PASSENGER); in togglePassengerMode()
[all …]
/packages/services/Car/tests/CarLibTests/src/android/car/
DCarUxRestrictionsManagerTest.java60 private CarUxRestrictionsManager mCarUxRestrictionsManager; field in CarUxRestrictionsManagerTest
71 mCarUxRestrictionsManager = in setUp()
81 assertThat(mCarUxRestrictionsManager.getCurrentCarUxRestrictions().getActiveRestrictions()) in getRestrictions_noRestrictionsSet_noRestrictionsPresent()
89 assertThat(mCarUxRestrictionsManager.getCurrentCarUxRestrictions().getActiveRestrictions()) in setUxRestrictions_restrictionsRegistered()
99 assertThat(mCarUxRestrictionsManager.getCurrentCarUxRestrictions().getActiveRestrictions()) in clearUxRestrictions_restrictionsCleared()
110 mCarUxRestrictionsManager.registerListener(mListener); in isListenerRegistered_listenerSet_returnsTrue()
117 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/services/Car/tests/NetworkPreferenceApp/src/com/google/android/car/networking/preferenceupdater/components/
DCarDriverDistractionManagerAdapter.java27 private final CarUxRestrictionsManager mCarUxRestrictionsManager; field in CarDriverDistractionManagerAdapter
33 mCarUxRestrictionsManager = (CarUxRestrictionsManager) mCar.getCarManager( in CarDriverDistractionManagerAdapter()
45 return mCarUxRestrictionsManager == null in allowedToBeDistracted()
46 || !mCarUxRestrictionsManager.getCurrentCarUxRestrictions() in allowedToBeDistracted()
/packages/apps/Car/Launcher/app/src/com/android/car/carlauncher/recents/
DNonDODisabledTaskProvider.java44 private final CarUxRestrictionsManager mCarUxRestrictionsManager; field in NonDODisabledTaskProvider
58 mCarUxRestrictionsManager = (CarUxRestrictionsManager) mCar.getCarManager( in NonDODisabledTaskProvider()
60 mCarUxRestrictionsManager.registerListener(NonDODisabledTaskProvider.this); in NonDODisabledTaskProvider()
65 mCarUxRestrictionsManager.getCurrentCarUxRestrictions()); in NonDODisabledTaskProvider()
74 mCarUxRestrictionsManager.unregisterListener(); in terminate()
/packages/apps/Car/Launcher/app/tests/src/com/android/car/carlauncher/recents/
DNonDODisabledTaskProviderTest.java55 private CarUxRestrictionsManager mCarUxRestrictionsManager; field in NonDODisabledTaskProviderTest
76 mCarUxRestrictionsManager); in setup()
91 when(mCarUxRestrictionsManager.getCurrentCarUxRestrictions()).thenReturn( in init_parkState_isDistractionOptimizationRequired_setFalse()
103 when(mCarUxRestrictionsManager.getCurrentCarUxRestrictions()).thenReturn( in init_driveState_isDistractionOptimizationRequired_setTrue()