Home
last modified time | relevance | path

Searched refs:mAssistUtils (Results 1 – 20 of 20) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/applications/defaultapps/
DDefaultAssistantPickerEntryPreferenceController.java50 private final AssistUtils mAssistUtils; field in DefaultAssistantPickerEntryPreferenceController
55 mAssistUtils = new AssistUtils(context); in DefaultAssistantPickerEntryPreferenceController()
61 ComponentName cn = mAssistUtils.getAssistComponentForUser(getCurrentProcessUserId()); in getCurrentDefaultAppInfo()
84 ComponentName cn = mAssistUtils.getAssistComponentForUser(getCurrentProcessUserId()); in getSettingIntent()
/packages/apps/Settings/src/com/android/settings/applications/assist/
DDefaultAssistPreferenceController.java42 private final AssistUtils mAssistUtils; field in DefaultAssistPreferenceController
52 mAssistUtils = new AssistUtils(context); in DefaultAssistPreferenceController()
69 final ComponentName cn = mAssistUtils.getAssistComponentForUser(mUserId); in getSettingIntent()
112 final ComponentName cn = mAssistUtils.getAssistComponentForUser(mUserId); in getDefaultAppInfo()
DAssistContextPreferenceController.java45 private final AssistUtils mAssistUtils; field in AssistContextPreferenceController
53 mAssistUtils = new AssistUtils(context); in AssistContextPreferenceController()
63 return mAssistUtils.getAssistComponentForUser(UserHandle.myUserId()) != null; in isAvailable()
DAssistScreenshotPreferenceController.java45 private final AssistUtils mAssistUtils; field in AssistScreenshotPreferenceController
53 mAssistUtils = new AssistUtils(context); in AssistScreenshotPreferenceController()
62 return mAssistUtils.getAssistComponentForUser(UserHandle.myUserId()) != null; in isAvailable()
DDefaultVoiceInputPreferenceController.java44 private AssistUtils mAssistUtils; field in DefaultVoiceInputPreferenceController
52 mAssistUtils = new AssistUtils(context); in DefaultVoiceInputPreferenceController()
66 mAssistUtils.getAssistComponentForUser(mUserId); in isAvailable()
DAssistFlashScreenPreferenceController.java47 private final AssistUtils mAssistUtils; field in AssistFlashScreenPreferenceController
54 mAssistUtils = new AssistUtils(context); in AssistFlashScreenPreferenceController()
139 return mAssistUtils.getAssistComponentForUser(UserHandle.myUserId()); in getCurrentAssist()
DDefaultVoiceInputPicker.java38 private AssistUtils mAssistUtils; field in DefaultVoiceInputPicker
49 mAssistUtils = new AssistUtils(context); in onAttach()
129 return mAssistUtils.getAssistComponentForUser(mUserId); in getCurrentAssist()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/assist/
DDefaultVoiceInputPickerPreferenceController.java40 private final AssistUtils mAssistUtils; field in DefaultVoiceInputPickerPreferenceController
49 mAssistUtils = new AssistUtils(context); in DefaultVoiceInputPickerPreferenceController()
51 if (Objects.equals(mAssistUtils.getAssistComponentForUser(getCurrentProcessUserId()), in DefaultVoiceInputPickerPreferenceController()
53 ComponentName cn = mAssistUtils.getAssistComponentForUser(getCurrentProcessUserId()); in DefaultVoiceInputPickerPreferenceController()
DManageAssistEntryPreferenceController.java37 private final AssistUtils mAssistUtils; field in ManageAssistEntryPreferenceController
42 mAssistUtils = new AssistUtils(context); in ManageAssistEntryPreferenceController()
52 ComponentName cn = mAssistUtils.getAssistComponentForUser(getCurrentProcessUserId()); in getCurrentDefaultAppInfo()
DDefaultVoiceInputPickerEntryPreferenceController.java60 private final AssistUtils mAssistUtils; field in DefaultVoiceInputPickerEntryPreferenceController
66 mAssistUtils = new AssistUtils(context); in DefaultVoiceInputPickerEntryPreferenceController()
72 ComponentName currentAssist = mAssistUtils.getAssistComponentForUser( in getAvailabilityStatus()
DAssistConfigBasePreferenceController.java42 private final AssistUtils mAssistUtils; field in AssistConfigBasePreferenceController
48 mAssistUtils = new AssistUtils(context); in AssistConfigBasePreferenceController()
61 return mAssistUtils.getAssistComponentForUser(userId) != null ? AVAILABLE in getAvailabilityStatus()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/assist/
DDefaultAssistPreferenceController.java42 private final AssistUtils mAssistUtils; field in DefaultAssistPreferenceController
52 mAssistUtils = new AssistUtils(context); in DefaultAssistPreferenceController()
69 final ComponentName cn = mAssistUtils.getAssistComponentForUser(mUserId); in getSettingIntent()
112 final ComponentName cn = mAssistUtils.getAssistComponentForUser(mUserId); in getDefaultAppInfo()
DAssistContextPreferenceController.java45 private final AssistUtils mAssistUtils; field in AssistContextPreferenceController
53 mAssistUtils = new AssistUtils(context); in AssistContextPreferenceController()
63 return mAssistUtils.getAssistComponentForUser(UserHandle.myUserId()) != null; in isAvailable()
DAssistScreenshotPreferenceController.java45 private final AssistUtils mAssistUtils; field in AssistScreenshotPreferenceController
53 mAssistUtils = new AssistUtils(context); in AssistScreenshotPreferenceController()
62 return mAssistUtils.getAssistComponentForUser(UserHandle.myUserId()) != null; in isAvailable()
DDefaultVoiceInputPreferenceController.java44 private AssistUtils mAssistUtils; field in DefaultVoiceInputPreferenceController
52 mAssistUtils = new AssistUtils(context); in DefaultVoiceInputPreferenceController()
66 mAssistUtils.getAssistComponentForUser(mUserId); in isAvailable()
DAssistFlashScreenPreferenceController.java47 private final AssistUtils mAssistUtils; field in AssistFlashScreenPreferenceController
54 mAssistUtils = new AssistUtils(context); in AssistFlashScreenPreferenceController()
139 return mAssistUtils.getAssistComponentForUser(UserHandle.myUserId()); in getCurrentAssist()
DDefaultVoiceInputPicker.java38 private AssistUtils mAssistUtils; field in DefaultVoiceInputPicker
49 mAssistUtils = new AssistUtils(context); in onAttach()
129 return mAssistUtils.getAssistComponentForUser(mUserId); in getCurrentAssist()
/packages/apps/Car/libs/car-assist-client-lib/src/com/android/car/assist/client/
DCarAssistUtils.java71 private final AssistUtils mAssistUtils; field in CarAssistUtils
108 mAssistUtils = new AssistUtils(context); in CarAssistUtils()
119 return mAssistUtils.getActiveServiceComponentName() != null; in hasActiveAssistant()
132 final String activeComponent = mAssistUtils.getActiveServiceComponentName() in assistantIsNotificationListener()
370 if (mAssistUtils.showSessionForActiveService(payloadArguments, in fireAssistantAction()
382 mAssistUtils.getActiveServiceSupportedActions(actionSet, actionCheckCallback); in fireAssistantAction()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarInputServiceTest.java83 @Mock AssistUtils mAssistUtils; field in CarInputServiceTest
96 mTelecomManager, mAssistUtils, mDefaultMainListener, mLastCallSupplier, in setUp()
196 when(mAssistUtils.getAssistComponentForUser(anyInt())) in voiceKey_shortPress_withoutRegisteredEventHandler_triggersAssistUtils()
203 verify(mAssistUtils).showSessionForActiveService( in voiceKey_shortPress_withoutRegisteredEventHandler_triggersAssistUtils()
214 when(mAssistUtils.getAssistComponentForUser(anyInt())) in voiceKey_longPress_withoutRegisteredEventHandler_triggersAssistUtils()
221 verify(mAssistUtils).showSessionForActiveService( in voiceKey_longPress_withoutRegisteredEventHandler_triggersAssistUtils()
230 verifyNoMoreInteractions(ignoreStubs(mAssistUtils)); in voiceKey_longPress_withoutRegisteredEventHandler_triggersAssistUtils()
/packages/services/Car/service/src/com/android/car/
DCarInputService.java148 private final AssistUtils mAssistUtils; field in CarInputService
291 mAssistUtils = assistUtils; in CarInputService()
569 if (mAssistUtils.getAssistComponentForUser(ActivityManager.getCurrentUser()) == null) { in launchDefaultVoiceAssistantHandler()
577 mAssistUtils.showSessionForActiveService(args, in launchDefaultVoiceAssistantHandler()