Home
last modified time | relevance | path

Searched refs:getCurrentService (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/assist/
DDefaultVoiceInputPickerEntryPreferenceControllerTest.java106 ExtendedMockito.when(VoiceInputUtils.getCurrentService(mContext)).thenReturn( in setUp()
121 ExtendedMockito.when(VoiceInputUtils.getCurrentService(mContext)).thenReturn( in getAvailabilityStatus_sameComponents_returnsConditionallyUnavailable()
132 ExtendedMockito.when(VoiceInputUtils.getCurrentService(mContext)).thenReturn( in getAvailabilityStatus_sameComponents_returnsConditionallyUnavailable_zoneWrite()
144 ExtendedMockito.when(VoiceInputUtils.getCurrentService(mContext)).thenReturn( in getAvailabilityStatus_sameComponents_returnsConditionallyUnavailable_zoneRead()
156 ExtendedMockito.when(VoiceInputUtils.getCurrentService(mContext)).thenReturn( in getAvailabilityStatus_sameComponents_returnsConditionallyUnavailable_zoneHidden()
168 ExtendedMockito.when(VoiceInputUtils.getCurrentService(mContext)).thenReturn(null); in getAvailabilityStatus_bothNull_returnsConditionallyUnavailable()
177 ExtendedMockito.when(VoiceInputUtils.getCurrentService(mContext)).thenReturn(null); in getAvailabilityStatus_bothNull_returnsConditionallyUnavailable_zoneWrite()
187 ExtendedMockito.when(VoiceInputUtils.getCurrentService(mContext)).thenReturn(null); in getAvailabilityStatus_bothNull_returnsConditionallyUnavailable_zoneRead()
197 ExtendedMockito.when(VoiceInputUtils.getCurrentService(mContext)).thenReturn(null); in getAvailabilityStatus_bothNull_returnsConditionallyUnavailable_zoneHidden()
DVoiceInputUtilsTest.java46 assertThat(VoiceInputUtils.getCurrentService(mContext)).isNull(); in getCurrentService_nullInteraction_nullRecognition_returnsNull()
55 assertThat(VoiceInputUtils.getCurrentService(mContext)).isNull(); in getCurrentService_emptyInteraction_emptyRecognition_returnsNull()
66 assertThat(VoiceInputUtils.getCurrentService(mContext)).isEqualTo(interaction); in getCurrentService_hasInteraction_returnsInteraction()
76 assertThat(VoiceInputUtils.getCurrentService(mContext)).isEqualTo(recognition); in getCurrentService_noInteraction_hasRecognition_returnsRecogntion()
DDefaultVoiceInputPickerPreferenceControllerTest.java87 ExtendedMockito.when(VoiceInputUtils.getCurrentService(mContext)).thenReturn( in setUp()
199 ExtendedMockito.when(VoiceInputUtils.getCurrentService(mContext)).thenReturn(null); in getCurrentDefaultKey_defaultIsNull_returnsNull()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessibility/
DAccessibilityShortcutFragment.java59 final String currentService = getCurrentService(getContext()); in onCreatePreferences()
87 final String currentService = getCurrentService(getContext()); in updateServicePrefSummary()
116 static String getCurrentService(Context context) { in getCurrentService() method in AccessibilityShortcutFragment
DAccessibilityShortcutServiceFragment.java54 AccessibilityShortcutFragment.getCurrentService(getContext());
87 final String currentService = AccessibilityShortcutFragment.getCurrentService(getContext()); in onCreatePreferences()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/accessibility/
DAccessibilityShortcutServiceState.java74 final String currentService = AccessibilityShortcutState.getCurrentService(mContext); in onCreate()
151 final String currentService = AccessibilityShortcutState.getCurrentService( in onPreferenceChange()
178 final String currentService = AccessibilityShortcutState.getCurrentService(mContext); in updateSelection()
DAccessibilityShortcutState.java136 final String currentService = getCurrentService(mContext); in updateServicePrefSummary()
173 public static String getCurrentService(Context context) { in getCurrentService() method in AccessibilityShortcutState
/packages/apps/Settings/src/com/android/settings/language/
DDefaultVoiceInputPicker.java70 final ComponentName currentService = getCurrentService(mHelper); in getDefaultKey()
90 public static ComponentName getCurrentService(VoiceInputHelper helper) { in getCurrentService() method in DefaultVoiceInputPicker
DDefaultVoiceInputPreferenceController.java130 final ComponentName currentService = DefaultVoiceInputPicker.getCurrentService(mHelper); in getDefaultAppKey()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/assist/
DDefaultVoiceInputPickerEntryPreferenceController.java81 ComponentName currentVoiceService = VoiceInputUtils.getCurrentService(getContext()); in getDefaultAvailabilityStatus()
104 VoiceInputUtils.getCurrentService(getContext())); in getCurrentDefaultAppInfo()
DDefaultVoiceInputPickerPreferenceController.java61 VoiceInputUtils.getCurrentService(getContext()))) { in DefaultVoiceInputPickerPreferenceController()
93 ComponentName cn = VoiceInputUtils.getCurrentService(getContext()); in getCurrentDefaultKey()
DVoiceInputUtils.java34 static ComponentName getCurrentService(Context context) { in getCurrentService() method in VoiceInputUtils