Searched refs:mCarUxRestrictionsManager (Results 1 – 7 of 7) sorted by relevance
36 @Nullable private CarUxRestrictionsManager mCarUxRestrictionsManager; field in CarUxRestrictionsHelper52 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()
62 private CarUxRestrictionsManager mCarUxRestrictionsManager; field in MainActivity124 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 …]
60 private CarUxRestrictionsManager mCarUxRestrictionsManager; field in CarUxRestrictionsManagerTest71 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()
39 private CarUxRestrictionsManager mCarUxRestrictionsManager; field in CarUxRestrictionManagerWrapper88 mCarUxRestrictionsManager = carUxRestrictionsManager; in setCarUxRestrictionsManager()90 mCarUxRestrictionsManager.registerListener(this); in setCarUxRestrictionsManager()103 if (mCarUxRestrictionsManager == null) { in getCurrentCarUxRestrictions()106 return mCarUxRestrictionsManager.getCurrentCarUxRestrictions(); in getCurrentCarUxRestrictions()
27 private final CarUxRestrictionsManager mCarUxRestrictionsManager; field in CarDriverDistractionManagerAdapter33 mCarUxRestrictionsManager = (CarUxRestrictionsManager) mCar.getCarManager( in CarDriverDistractionManagerAdapter()45 return mCarUxRestrictionsManager == null in allowedToBeDistracted()46 || !mCarUxRestrictionsManager.getCurrentCarUxRestrictions() in allowedToBeDistracted()
44 private final CarUxRestrictionsManager mCarUxRestrictionsManager; field in NonDODisabledTaskProvider58 mCarUxRestrictionsManager = (CarUxRestrictionsManager) mCar.getCarManager( in NonDODisabledTaskProvider()60 mCarUxRestrictionsManager.registerListener(NonDODisabledTaskProvider.this); in NonDODisabledTaskProvider()65 mCarUxRestrictionsManager.getCurrentCarUxRestrictions()); in NonDODisabledTaskProvider()74 mCarUxRestrictionsManager.unregisterListener(); in terminate()
55 private CarUxRestrictionsManager mCarUxRestrictionsManager; field in NonDODisabledTaskProviderTest76 mCarUxRestrictionsManager); in setup()91 when(mCarUxRestrictionsManager.getCurrentCarUxRestrictions()).thenReturn( in init_parkState_isDistractionOptimizationRequired_setFalse()103 when(mCarUxRestrictionsManager.getCurrentCarUxRestrictions()).thenReturn( in init_driveState_isDistractionOptimizationRequired_setTrue()