Home
last modified time | relevance | path

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

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/defaultapps/
DDefaultAppEntryBasePreferenceControllerTest.java74 DefaultAppInfo defaultAppInfo = mock(DefaultAppInfo.class); in refreshUi_hasDefaultAppWithLabel_summaryAndIconAreSet() local
75 when(defaultAppInfo.loadLabel()).thenReturn(TEST_LABEL); in refreshUi_hasDefaultAppWithLabel_summaryAndIconAreSet()
76 when(defaultAppInfo.loadIcon()).thenReturn(mContext.getDrawable(R.drawable.test_icon)); in refreshUi_hasDefaultAppWithLabel_summaryAndIconAreSet()
77 mController.setCurrentDefaultAppInfo(defaultAppInfo); in refreshUi_hasDefaultAppWithLabel_summaryAndIconAreSet()
87 DefaultAppInfo defaultAppInfo = mock(DefaultAppInfo.class); in refreshUi_hasDefaultAppWithoutLabel_summaryAndIconAreNotSet() local
88 when(defaultAppInfo.loadLabel()).thenReturn(null); in refreshUi_hasDefaultAppWithoutLabel_summaryAndIconAreNotSet()
89 when(defaultAppInfo.loadIcon()).thenReturn(null); in refreshUi_hasDefaultAppWithoutLabel_summaryAndIconAreNotSet()
90 mController.setCurrentDefaultAppInfo(defaultAppInfo); in refreshUi_hasDefaultAppWithoutLabel_summaryAndIconAreNotSet()
132 protected void setCurrentDefaultAppInfo(DefaultAppInfo defaultAppInfo) { in setCurrentDefaultAppInfo() argument
133 mDefaultAppInfo = defaultAppInfo; in setCurrentDefaultAppInfo()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/assist/
DDefaultVoiceInputPickerPreferenceControllerTest.java152 List<DefaultAppInfo> defaultAppInfo = mPreferenceController.getCandidates(); in getCandidates_oneIsSameAsAssistant_sameOneIsEnabled() local
153 assertThat(defaultAppInfo).hasSize(1); in getCandidates_oneIsSameAsAssistant_sameOneIsEnabled()
155 assertThat(defaultAppInfo.get(0)).isNotNull(); in getCandidates_oneIsSameAsAssistant_sameOneIsEnabled()
156 assertThat(defaultAppInfo.get(0).enabled).isTrue(); in getCandidates_oneIsSameAsAssistant_sameOneIsEnabled()
168 List<DefaultAppInfo> defaultAppInfo = mPreferenceController.getCandidates(); in getCandidates_oneIsSameAsAssistant_differentOneIsDisabled() local
169 assertThat(defaultAppInfo).hasSize(1); in getCandidates_oneIsSameAsAssistant_differentOneIsDisabled()
171 assertThat(defaultAppInfo.get(0)).isNotNull(); in getCandidates_oneIsSameAsAssistant_differentOneIsDisabled()
172 assertThat(defaultAppInfo.get(0).enabled).isFalse(); in getCandidates_oneIsSameAsAssistant_differentOneIsDisabled()
186 DefaultAppInfo defaultAppInfo = null; in getCandidates_voiceRecognitionInfo_IsEnabled() local
190 defaultAppInfo = info; in getCandidates_voiceRecognitionInfo_IsEnabled()
[all …]
/packages/apps/Settings/src/com/android/settings/nfc/
DNfcPaymentPreferenceController.java153 final PaymentAppInfo defaultAppInfo = mPaymentBackend.getDefaultApp(); in onClick() local
154 if (defaultAppInfo != null && defaultAppInfo.settingsComponent != null) { in onClick()
156 settingsIntent.setComponent(defaultAppInfo.settingsComponent); in onClick()
DDefaultPaymentSettings.java71 PaymentAppInfo defaultAppInfo = mPaymentBackend.getDefaultApp(); in getDefaultKey() local
72 if (defaultAppInfo != null) { in getDefaultKey()
73 return defaultAppInfo.componentName.flattenToString() + " " in getDefaultKey()
74 + defaultAppInfo.userHandle.getIdentifier(); in getDefaultKey()