Home
last modified time | relevance | path

Searched refs:mCarUxRestrictionsUtil (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/qc/
DQCFooterViewControllerTest.java61 private CarUxRestrictionsUtil mCarUxRestrictionsUtil; field in QCFooterViewControllerTest
90 doReturn(mCarUxRestrictionsUtil).when(() -> CarUxRestrictionsUtil.getInstance(any())); in setUp()
112 verify(mCarUxRestrictionsUtil, never()).register(any()); in onAttachedToWindow_enableWhileDriving_doNotRegisterListener()
120 verify(mCarUxRestrictionsUtil).register(any()); in onAttachedToWindow_disableWhileDriving_registerListener()
130 verify(mCarUxRestrictionsUtil).register(captor.capture()); in onRestrictionsChanged_registeredListener_setQCFooterViewEnabled()
146 verify(mCarUxRestrictionsUtil, never()).unregister(any()); in onDetachedFromWindow_enableWhileDriving_doNotUnregisterListener()
156 verify(mCarUxRestrictionsUtil).unregister(any()); in onDetachedFromWindow_disableWhileDriving_unregisterListener()
DDataSubscriptionControllerTest.java103 private CarUxRestrictionsUtil mCarUxRestrictionsUtil; field in DataSubscriptionControllerTest
128 doReturn(mCarUxRestrictionsUtil).when(() -> CarUxRestrictionsUtil.getInstance(any())); in setUp()
147 verify(mCarUxRestrictionsUtil).register(any()); in setAnchorView_viewNotNull_popUpDisplay()
161 verify(mCarUxRestrictionsUtil).unregister(any()); in setAnchorView_viewNull_popUpNotDisplay()
271 doReturn(mCarUxRestrictionsUtil).when(() -> CarUxRestrictionsUtil.getInstance(any())); in onRestrictionsChanged_optimizationRequired_proactiveMsgDismissed()
278 verify(mCarUxRestrictionsUtil).register(captor.capture()); in onRestrictionsChanged_optimizationRequired_proactiveMsgDismissed()
292 doReturn(mCarUxRestrictionsUtil).when(() -> CarUxRestrictionsUtil.getInstance(any())); in onRestrictionsChanged_optimizationRequired_buttonDismissedInReactiveMsg()
299 verify(mCarUxRestrictionsUtil).register(captor.capture()); in onRestrictionsChanged_optimizationRequired_buttonDismissedInReactiveMsg()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/statusicon/
DStatusIconPanelViewController.java93 private CarUxRestrictionsUtil mCarUxRestrictionsUtil; field in StatusIconPanelViewController
219 if (mIsDisabledWhileDriving && mCarUxRestrictionsUtil.getCurrentRestrictions() in onInit()
280 mCarUxRestrictionsUtil = CarUxRestrictionsUtil.getInstance(mContext); in onViewAttached()
281 mCarUxRestrictionsUtil.register(mUxRestrictionsChangedListener); in onViewAttached()
289 if (mCarUxRestrictionsUtil != null) { in onViewDetached()
290 mCarUxRestrictionsUtil.unregister(mUxRestrictionsChangedListener); in onViewDetached()
/packages/services/Car/car_product/distant_display/apps/CarDistantDisplaySystemUI/src/com/android/systemui/car/distantdisplay/common/
DTaskViewController.java97 private CarUxRestrictionsUtil mCarUxRestrictionsUtil; field in TaskViewController
225 mCarUxRestrictionsUtil = CarUxRestrictionsUtil.getInstance(mContext); in initialize()
226 mCarUxRestrictionsUtil.register(mOnUxRestrictionsChangedListener); in initialize()
312 int uxr = mCarUxRestrictionsUtil.getCurrentRestrictions().getActiveRestrictions(); in changeDisplayForTask()