Home
last modified time | relevance | path

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

/packages/apps/Car/Notification/src/com/android/car/notification/
DNotificationClickHandlerFactory.java78 private CarAssistUtils mCarAssistUtils; field in NotificationClickHandlerFactory
86 mCarAssistUtils = null; in NotificationClickHandlerFactory()
93 mCarAssistUtils = carAssistUtils; in setCarAssistUtils()
193 if (mCarAssistUtils == null) {
194 mCarAssistUtils = new CarAssistUtils(context);
203 mCarAssistUtils.requestAssistantVoiceAction(
226 if (mCarAssistUtils == null) {
227 mCarAssistUtils = new CarAssistUtils(context);
236 mCarAssistUtils.requestAssistantVoiceAction(
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/template/
DCarNotificationActionsViewTest.java88 private CarAssistUtils mCarAssistUtils; field in CarNotificationActionsViewTest
135 when(mCarAssistUtils.hasActiveAssistant()).thenReturn(true); in setup()
136 when(mCarAssistUtils.isFallbackAssistantEnabled()).thenReturn(false); in setup()
215 when(mCarAssistUtils.hasActiveAssistant()).thenReturn(false); in onBind_carCompatibleMessage_noAssistantNoFallback_playButtonIsHidden()
216 when(mCarAssistUtils.isFallbackAssistantEnabled()).thenReturn(false); in onBind_carCompatibleMessage_noAssistantNoFallback_playButtonIsHidden()
230 when(mCarAssistUtils.hasActiveAssistant()).thenReturn(false); in onBind_carCompatibleMessage_noAssistantWithFallback_playButtonIsVisible()
231 when(mCarAssistUtils.isFallbackAssistantEnabled()).thenReturn(true); in onBind_carCompatibleMessage_noAssistantWithFallback_playButtonIsVisible()
465 mCarAssistUtils) { in finishInflateWithIsCall()
/packages/apps/Car/Notification/src/com/android/car/notification/template/
DCarNotificationActionsView.java69 private final CarAssistUtils mCarAssistUtils; field in CarNotificationActionsView
126 mCarAssistUtils = carAssistUtils; in CarNotificationActionsView()
200 boolean canPlayMessage = mEnablePlay && mCarAssistUtils.hasActiveAssistant() in bind()
201 || mCarAssistUtils.isFallbackAssistantEnabled(); in bind()
202 boolean canReplyMessage = mEnableDirectReply && mCarAssistUtils.hasActiveAssistant() in bind()
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
DNotificationClickHandlerFactoryTest.java110 private CarAssistUtils mCarAssistUtils; field in NotificationClickHandlerFactoryTest
167 mNotificationClickHandlerFactory.setCarAssistUtils(mCarAssistUtils); in setUp()
317 verify(mCarAssistUtils, never()).requestAssistantVoiceAction(any(), any(), any()); in onClickPlayClickHandler_notCarCompatibleMessage_returnsImmediately()
325 verify(mCarAssistUtils).requestAssistantVoiceAction(any(), any(), any()); in onClickPlayClickHandler_isCarCompatibleMessage_requestsAssistantVoiceAction()