Home
last modified time | relevance | path

Searched refs:infos (Results 1 – 25 of 74) sorted by relevance

123

/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DAccountPreferenceControllerTest.java129 final List<UserInfo> infos = new ArrayList<>(); in onResume_oneProfile_shouldAddOneAccountCategory() local
130 infos.add(new UserInfo(1, "user 1", 0)); in onResume_oneProfile_shouldAddOneAccountCategory()
133 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in onResume_oneProfile_shouldAddOneAccountCategory()
142 final List<UserInfo> infos = new ArrayList<>(); in onResume_twoProfiles_shouldAddTwoAccountCategory() local
143 infos.add(new UserInfo(1, "user 1", 0)); in onResume_twoProfiles_shouldAddTwoAccountCategory()
144 infos.add(new UserInfo(2, "user 2", UserInfo.FLAG_MANAGED_PROFILE)); in onResume_twoProfiles_shouldAddTwoAccountCategory()
147 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in onResume_twoProfiles_shouldAddTwoAccountCategory()
156 final List<UserInfo> infos = new ArrayList<>(); in onResume_noProfileChange_shouldNotAddOrRemoveAccountCategory() local
157 infos.add(new UserInfo(1, "user 1", 0)); in onResume_noProfileChange_shouldNotAddOrRemoveAccountCategory()
158 infos.add(new UserInfo(2, "user 2", UserInfo.FLAG_MANAGED_PROFILE)); in onResume_noProfileChange_shouldNotAddOrRemoveAccountCategory()
[all …]
DEmergencyInfoPreferenceControllerTest.java101 final List<ResolveInfo> infos = new ArrayList<>(); in updateRawDataToIndex_prefAvailable_shouldUpdate() local
102 infos.add(new ResolveInfo()); in updateRawDataToIndex_prefAvailable_shouldUpdate()
105 .thenReturn(infos); in updateRawDataToIndex_prefAvailable_shouldUpdate()
126 final List<ResolveInfo> infos = new ArrayList<>(); in displayPref_prefAvailable_shouldDisplay() local
127 infos.add(new ResolveInfo()); in displayPref_prefAvailable_shouldDisplay()
130 .thenReturn(infos); in displayPref_prefAvailable_shouldDisplay()
140 final List<UserInfo> infos = new ArrayList<>(); in updateState_shouldSetSummary() local
141 infos.add(new UserInfo(1, "user 1", UserInfo.FLAG_MANAGED_PROFILE)); in updateState_shouldSetSummary()
143 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in updateState_shouldSetSummary()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/inputmethod/
DEnabledKeyboardPreferenceControllerTest.java94 List<InputMethodInfo> infos = createInputMethodInfoList(DUMMY_PACKAGE_NAME); in refreshUi_permitAllInputMethods() local
95 getShadowInputMethodManager(mContext).setEnabledInputMethodList(infos); in refreshUi_permitAllInputMethods()
106 List<InputMethodInfo> infos = createInputMethodInfoList(ALLOWED_PACKAGE_NAME); in refreshUi_hasAllowedImeByOrganization() local
107 getShadowInputMethodManager(mContext).setEnabledInputMethodList(infos); in refreshUi_hasAllowedImeByOrganization()
118 List<InputMethodInfo> infos = createInputMethodInfoList(DISALLOWED_PACKAGE_NAME); in refreshUi_disallowedByOrganization() local
119 getShadowInputMethodManager(mContext).setEnabledInputMethodList(infos); in refreshUi_disallowedByOrganization()
128 List<InputMethodInfo> infos = in refreshUi_skipVoiceTyping() local
130 getShadowInputMethodManager(mContext).setInputMethodList(infos); in refreshUi_skipVoiceTyping()
140 List<InputMethodInfo> infos = createInputMethodInfoList(ALLOWED_PACKAGE_NAME); in refreshUi_verifyPreferenceIcon() local
141 getShadowInputMethodManager(mContext).setEnabledInputMethodList(infos); in refreshUi_verifyPreferenceIcon()
[all …]
DKeyboardPreferenceControllerTest.java100 List<InputMethodInfo> infos = new ArrayList<>(); in refreshUi_permitAllInputMethods_hasOneInputMethodInfo() local
102 infos.add(createInputMethodInfo(packageManager, DUMMY_PACKAGE_NAME, DUMMY_LABEL)); in refreshUi_permitAllInputMethods_hasOneInputMethodInfo()
103 getShadowInputMethodManager(mContext).setEnabledInputMethodList(infos); in refreshUi_permitAllInputMethods_hasOneInputMethodInfo()
114 List<InputMethodInfo> infos = new ArrayList<>(); in refreshUi_permitAllInputMethods_hasTwoInputMethodInfo() local
116 infos.add(createInputMethodInfo(packageManager, DUMMY_PACKAGE_NAME, DUMMY_LABEL)); in refreshUi_permitAllInputMethods_hasTwoInputMethodInfo()
117 infos.add(createInputMethodInfo(packageManager, DUMMY_PACKAGE_NAME, DUMMY_LABEL_1)); in refreshUi_permitAllInputMethods_hasTwoInputMethodInfo()
118 getShadowInputMethodManager(mContext).setEnabledInputMethodList(infos); in refreshUi_permitAllInputMethods_hasTwoInputMethodInfo()
130 List<InputMethodInfo> infos = new ArrayList<>(); in refreshUi_permitAllInputMethods_hasThreeInputMethodInfo() local
132 infos.add(createInputMethodInfo(packageManager, DUMMY_PACKAGE_NAME, DUMMY_LABEL)); in refreshUi_permitAllInputMethods_hasThreeInputMethodInfo()
133 infos.add(createInputMethodInfo(packageManager, DUMMY_PACKAGE_NAME, DUMMY_LABEL_1)); in refreshUi_permitAllInputMethods_hasThreeInputMethodInfo()
[all …]
DKeyboardManagementPreferenceControllerTest.java104 List<InputMethodInfo> infos = createInputMethodInfoList(ALLOWED_PACKAGE_NAME, in refreshUi_permitAllInputMethods_preferenceCountIs4() local
108 getShadowInputMethodManager(mContext).setInputMethodList(infos); in refreshUi_permitAllInputMethods_preferenceCountIs4()
109 getShadowInputMethodManager(mContext).setEnabledInputMethodList(infos); in refreshUi_permitAllInputMethods_preferenceCountIs4()
120 List<InputMethodInfo> infos = createInputMethodInfoList(ALLOWED_PACKAGE_NAME, in refreshUi_multiplteAllowedImeByOrganization_allPreferencesVisible() local
124 getShadowInputMethodManager(mContext).setInputMethodList(infos); in refreshUi_multiplteAllowedImeByOrganization_allPreferencesVisible()
125 getShadowInputMethodManager(mContext).setEnabledInputMethodList(infos); in refreshUi_multiplteAllowedImeByOrganization_allPreferencesVisible()
138 List<InputMethodInfo> infos = createInputMethodInfoList(ALLOWED_PACKAGE_NAME, in refreshUi_multipleEnabledInputMethods_allPreferencesEnabled() local
142 getShadowInputMethodManager(mContext).setInputMethodList(infos); in refreshUi_multipleEnabledInputMethods_allPreferencesEnabled()
143 getShadowInputMethodManager(mContext).setEnabledInputMethodList(infos); in refreshUi_multipleEnabledInputMethods_allPreferencesEnabled()
156 List<InputMethodInfo> infos = createInputMethodInfoList(ALLOWED_PACKAGE_NAME, in refreshUi_multipleEnabledInputMethods_allPreferencesChecked() local
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DSuggestedWordsTests.java71 final ArrayList<SuggestedWordInfo> infos = new ArrayList<>(); in createCorrectionWordInfos() local
73 infos.add(createCorrectionWordInfo(word)); in createCorrectionWordInfos()
75 return infos; in createCorrectionWordInfos()
93 final ArrayList<SuggestedWordInfo> infos = createCorrectionWordInfos("a", "c"); in testRemoveDupesNoDupes() local
94 assertEquals(-1, SuggestedWordInfo.removeDups("b", infos)); in testRemoveDupesNoDupes()
95 assertEquals(2, infos.size()); in testRemoveDupesNoDupes()
100 final ArrayList<SuggestedWordInfo> infos = createCorrectionWordInfos("a", "a", "c"); in testRemoveDupesTypedWordNotDupe() local
101 assertEquals(-1, SuggestedWordInfo.removeDups("b", infos)); in testRemoveDupesTypedWordNotDupe()
102 assertEquals(2, infos.size()); in testRemoveDupesTypedWordNotDupe()
107 final ArrayList<SuggestedWordInfo> infos = createCorrectionWordInfos("a", "b", "c"); in testRemoveDupesTypedWordOnlyDupe() local
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DAutoSyncWorkDataPreferenceControllerTest.java84 final List<UserInfo> infos = new ArrayList<>(); in checkIsAvailable_singleUserProfile_shouldNotDisplay() local
85 infos.add(new UserInfo(UserHandle.USER_SYSTEM, "user 1", 0 /* flags */)); in checkIsAvailable_singleUserProfile_shouldNotDisplay()
86 when(mUserManager.getProfiles(eq(UserHandle.USER_SYSTEM))).thenReturn(infos); in checkIsAvailable_singleUserProfile_shouldNotDisplay()
96 final List<UserInfo> infos = new ArrayList<>(); in checkIsAvailable_null_workProfileUserHandle_shouldNotDisplay() local
97 infos.add(new UserInfo(UserHandle.USER_SYSTEM, "user 1", 0 /* flags */)); in checkIsAvailable_null_workProfileUserHandle_shouldNotDisplay()
98 infos.add(new UserInfo(999, "xspace", 800010)); in checkIsAvailable_null_workProfileUserHandle_shouldNotDisplay()
99 when(mUserManager.getProfiles(eq(UserHandle.USER_SYSTEM))).thenReturn(infos); in checkIsAvailable_null_workProfileUserHandle_shouldNotDisplay()
111 final List<UserInfo> infos = new ArrayList<>(); in multipleProfile_shouldInitWithWorkProfileUserHandle() local
112 infos.add(new UserInfo(UserHandle.USER_SYSTEM, "user 1", 0 /* flags */)); in multipleProfile_shouldInitWithWorkProfileUserHandle()
113 infos.add(new UserInfo( in multipleProfile_shouldInitWithWorkProfileUserHandle()
[all …]
DAutoSyncPersonalDataPreferenceControllerTest.java91 List<UserInfo> infos = new ArrayList<>(); in displayPref_oneProfile_shouldNotDisplay() local
92 infos.add(new UserInfo(1, "user 1", 0)); in displayPref_oneProfile_shouldNotDisplay()
95 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in displayPref_oneProfile_shouldNotDisplay()
104 List<UserInfo> infos = new ArrayList<>(); in displayPref_prefAvailable_shouldDisplay() local
105 infos.add(new UserInfo(1, "user 1", 0)); in displayPref_prefAvailable_shouldDisplay()
106 infos.add(new UserInfo(2, "user 2", 0)); in displayPref_prefAvailable_shouldDisplay()
109 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in displayPref_prefAvailable_shouldDisplay()
DAutoSyncDataPreferenceControllerTest.java96 List<UserInfo> infos = new ArrayList<>(); in displayPref_oneProfile_shouldDisplay() local
97 infos.add(new UserInfo(1, "user 1", 0)); in displayPref_oneProfile_shouldDisplay()
100 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in displayPref_oneProfile_shouldDisplay()
109 List<UserInfo> infos = new ArrayList<>(); in displayPref_moreThanOneProfile_shouldNotDisplay() local
110 infos.add(new UserInfo(1, "user 1", 0)); in displayPref_moreThanOneProfile_shouldNotDisplay()
111 infos.add(new UserInfo(2, "user 2", 0)); in displayPref_moreThanOneProfile_shouldNotDisplay()
114 when(mUserManager.getProfiles(anyInt())).thenReturn(infos); in displayPref_moreThanOneProfile_shouldNotDisplay()
/packages/services/Telephony/src/com/android/phone/
DEmergencyAssistanceHelper.java59 List<ResolveInfo> infos = queryAssistActivities(context, assistPackage); in resolveAssistPackageAndQueryActivities() local
60 if (infos == null || infos.isEmpty()) { in resolveAssistPackageAndQueryActivities()
63 infos = packageManager.queryIntentActivities(queryIntent, 0); in resolveAssistPackageAndQueryActivities()
66 for (int i = 0; i < infos.size(); i++) { in resolveAssistPackageAndQueryActivities()
67 if (infos.get(i).activityInfo == null) continue; in resolveAssistPackageAndQueryActivities()
68 String packageName = infos.get(i).activityInfo.packageName; in resolveAssistPackageAndQueryActivities()
89 return infos; in resolveAssistPackageAndQueryActivities()
103 List<ResolveInfo> infos = null; in queryAssistActivities() local
108 infos = context.getPackageManager().queryIntentActivities(queryIntent, 0); in queryAssistActivities()
110 return infos; in queryAssistActivities()
DEmergencyInfoGroup.java116 List<ResolveInfo> infos; in setupButtonInfo() local
119 infos = EmergencyAssistanceHelper.resolveAssistPackageAndQueryActivities(getContext()); in setupButtonInfo()
121 infos = null; in setupButtonInfo()
126 if (infos != null && infos.size() > 0) { in setupButtonInfo()
127 final String packageName = infos.get(0).activityInfo.packageName; in setupButtonInfo()
DEmergencyActionGroup.java127 List<ResolveInfo> infos; in setupAssistActions() local
130 infos = EmergencyAssistanceHelper.resolveAssistPackageAndQueryActivities(getContext()); in setupAssistActions()
132 infos = null; in setupAssistActions()
141 if (infos != null && infos.size() > i && infos.get(i) != null) { in setupAssistActions()
142 ResolveInfo info = infos.get(i); in setupAssistActions()
/packages/services/Telephony/src/com/android/phone/settings/
DCallForwardInfoUtil.java42 public static CallForwardInfo infoForReason(CallForwardInfo[] infos, int reason) { in infoForReason() argument
43 if (infos == null) { in infoForReason()
48 for (int i = 0; i < infos.length; i++) { in infoForReason()
49 if (infos[i].reason == reason) { in infoForReason()
50 return infos[i]; in infoForReason()
95 public static CallForwardInfo getCallForwardInfo(CallForwardInfo[] infos, int reason) { in getCallForwardInfo() argument
97 if (infos != null) { in getCallForwardInfo()
98 for (int i = 0 ; i < infos.length; i++) { in getCallForwardInfo()
99 if (isServiceClassVoice(infos[i])) { in getCallForwardInfo()
100 info = infos[i]; in getCallForwardInfo()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DAppsAsyncLoaderTest.java251 List<AppsAsyncLoader.PackageInfo> infos = mLoader.loadInBackground(); in test_multipleApps_processCorrectly() local
253 assertThat(containsPackage(infos, PACKAGE_CLEARABLE)).isTrue(); in test_multipleApps_processCorrectly()
254 assertThat(containsPackage(infos, PACKAGE_TOO_NEW_TO_DELETE)).isFalse(); in test_multipleApps_processCorrectly()
255 assertThat(containsPackage(infos, PACKAGE_NAME)).isFalse(); in test_multipleApps_processCorrectly()
256 assertThat(containsPackage(infos, PACKAGE_SYSTEM)).isFalse(); in test_multipleApps_processCorrectly()
289 List<AppsAsyncLoader.PackageInfo> infos = mLoader.loadInBackground(); in test_noThresholdFilter_ignoresUsageForFiltering() local
291 assertThat(containsPackage(infos, PACKAGE_CLEARABLE)).isTrue(); in test_noThresholdFilter_ignoresUsageForFiltering()
292 assertThat(containsPackage(infos, PACKAGE_TOO_NEW_TO_DELETE)).isTrue(); in test_noThresholdFilter_ignoresUsageForFiltering()
293 assertThat(containsPackage(infos, PACKAGE_NAME)).isFalse(); in test_noThresholdFilter_ignoresUsageForFiltering()
294 assertThat(containsPackage(infos, PACKAGE_SYSTEM)).isFalse(); in test_noThresholdFilter_ignoresUsageForFiltering()
[all …]
/packages/apps/Settings/src/com/android/settings/display/
DThemePreferenceController.java153 List<OverlayInfo> infos; in getAvailableThemes() local
156 infos = mOverlayService.getOverlayInfosForTarget("android", UserHandle.myUserId()); in getAvailableThemes()
157 pkgs = new ArrayList<>(infos.size()); in getAvailableThemes()
158 for (int i = 0, size = infos.size(); i < size; i++) { in getAvailableThemes()
159 if (isTheme(infos.get(i))) { in getAvailableThemes()
160 if (infos.get(i).isEnabled() && currentThemeOnly) { in getAvailableThemes()
161 return new String[] {infos.get(i).packageName}; in getAvailableThemes()
163 pkgs.add(infos.get(i).packageName); in getAvailableThemes()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DThemePreferenceController.java153 List<OverlayInfo> infos; in getAvailableThemes() local
156 infos = mOverlayService.getOverlayInfosForTarget("android", UserHandle.myUserId()); in getAvailableThemes()
157 pkgs = new ArrayList<>(infos.size()); in getAvailableThemes()
158 for (int i = 0, size = infos.size(); i < size; i++) { in getAvailableThemes()
159 if (isTheme(infos.get(i))) { in getAvailableThemes()
160 if (infos.get(i).isEnabled() && currentThemeOnly) { in getAvailableThemes()
161 return new String[] {infos.get(i).packageName}; in getAvailableThemes()
163 pkgs.add(infos.get(i).packageName); in getAvailableThemes()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/network/
DSubscriptionUtilsTest.java52 List<SubscriptionInfo> infos = SubscriptionUtils.getAvailableSubscriptions( in getAvailableSubscriptions_hasSubscriptionsFromSubscriptionManager_valueReturned() local
55 assertThat(infos).contains(info); in getAvailableSubscriptions_hasSubscriptionsFromSubscriptionManager_valueReturned()
73 List<SubscriptionInfo> infos = SubscriptionUtils.getAvailableSubscriptions( in getAvailableSubscriptions_hasSimSlotNotInSubscriptionManager_valueReturned() local
76 assertThat(infos).contains(info); in getAvailableSubscriptions_hasSimSlotNotInSubscriptionManager_valueReturned()
90 List<SubscriptionInfo> infos = SubscriptionUtils.getAvailableSubscriptions( in getAvailableSubscriptions_hasInactiveInsertedPSim_valueRemoved() local
93 assertThat(infos).doesNotContain(info); in getAvailableSubscriptions_hasInactiveInsertedPSim_valueRemoved()
/packages/apps/Car/LensPicker/src/com/android/support/car/lenspicker/
DLensResolverActivity.java102 List<ResolveInfo> infos = getPackageManager().queryIntentActivities(mResolveIntent, in onCreate() local
104 buildComponentSet(infos); in onCreate()
107 int size = infos == null ? 0 : infos.size(); in onCreate()
125 ResolverAdapter adapter = new ResolverAdapter(this /* context */, infos); in onCreate()
139 private void buildComponentSet(List<ResolveInfo> infos) { in buildComponentSet() argument
140 int size = infos.size(); in buildComponentSet()
144 ResolveInfo info = infos.get(i); in buildComponentSet()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/display/daydream/
DDaydreamFragment.java124 final List<DreamBackend.DreamInfo> infos = mBackend.getDreamInfos(); in refreshActiveDreamPref() local
125 final CharSequence[] dreamEntries = new CharSequence[infos.size() + 1]; in refreshActiveDreamPref()
126 final CharSequence[] dreamEntryValues = new CharSequence[infos.size() + 1]; in refreshActiveDreamPref()
127 refreshDreamInfoMap(infos, dreamEntries, dreamEntryValues); in refreshActiveDreamPref()
135 private void refreshDreamInfoMap(List<DreamBackend.DreamInfo> infos, in refreshDreamInfoMap() argument
141 for (final DreamBackend.DreamInfo info : infos) { in refreshDreamInfoMap()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DDebugEstimatesLoader.java68 List<BatteryInfo> infos = new ArrayList<>(); in loadInBackground() local
69 infos.add(oldinfo); in loadInBackground()
70 infos.add(newInfo); in loadInBackground()
71 return infos; in loadInBackground()
/packages/services/BuiltInPrintService/src/com/android/bips/
DLocalDiscoverySession.java314 List<RecommendationInfo> infos = mPrintManager.getPrintServiceRecommendations(); in onPrintServiceRecommendationsChanged() local
316 int numInfos = infos.size(); in onPrintServiceRecommendationsChanged()
318 RecommendationInfo info = infos.get(i); in onPrintServiceRecommendationsChanged()
342 List<PrintServiceInfo> infos = mPrintManager.getPrintServices( in onPrintServicesChanged() local
345 int numInfos = infos.size(); in onPrintServicesChanged()
347 PrintServiceInfo info = infos.get(i); in onPrintServicesChanged()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DDebugEstimatesLoader.java70 List<BatteryInfo> infos = new ArrayList<>(); in loadInBackground() local
71 infos.add(oldinfo); in loadInBackground()
72 infos.add(newInfo); in loadInBackground()
73 return infos; in loadInBackground()
/packages/services/Telephony/src/com/android/services/telephony/rcs/
DUserCapabilityExchangeImpl.java444 public void onCapabilityRequestResponsePresence(List<RcsContactUceCapability> infos,
447 handleAvailabilityReqResponse(infos, operationToken);
449 handleCapabilityReqResponse(infos, operationToken);
647 private void handleAvailabilityReqResponse(List<RcsContactUceCapability> infos, int token) { in handleAvailabilityReqResponse() argument
649 if (infos == null || infos.isEmpty()) { in handleAvailabilityReqResponse()
654 mPresenceSubscriber.updatePresence(infos.get(0)); in handleAvailabilityReqResponse()
660 private void handleCapabilityReqResponse(List<RcsContactUceCapability> infos, int token) { in handleCapabilityReqResponse() argument
661 if (infos == null) { in handleCapabilityReqResponse()
667 mPresenceSubscriber.updatePresences(token, infos, true, null); in handleCapabilityReqResponse()
/packages/apps/Camera2/src/com/android/camera/settings/
DAppUpgrader.java136 CameraDeviceInfo infos = CameraAgentFactory in upgrade() local
139 upgradeCameraSizeSetting(settingsManager, context, infos, in upgrade()
141 upgradeCameraSizeSetting(settingsManager, context, infos, in upgrade()
310 Context context, CameraDeviceInfo infos, in upgradeCameraSizeSetting() argument
326 if (infos == null) { in upgradeCameraSizeSetting()
332 int camera = SettingsUtil.getCameraId(infos, facing); in upgradeCameraSizeSetting()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/storage/
DStorageAsyncLoader.java74 List<UserInfo> infos = mUserManager.getUsers(); in loadApps() local
77 infos, in loadApps()
84 for (int i = 0, userCount = infos.size(); i < userCount; i++) { in loadApps()
85 UserInfo info = infos.get(i); in loadApps()

123