/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/ |
D | AccountPreferenceControllerTest.java | 129 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 …]
|
D | EmergencyInfoPreferenceControllerTest.java | 101 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/ |
D | EnabledKeyboardPreferenceControllerTest.java | 94 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 …]
|
D | KeyboardPreferenceControllerTest.java | 100 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 …]
|
D | KeyboardManagementPreferenceControllerTest.java | 104 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/ |
D | SuggestedWordsTests.java | 71 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/ |
D | AutoSyncWorkDataPreferenceControllerTest.java | 84 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 …]
|
D | AutoSyncPersonalDataPreferenceControllerTest.java | 91 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()
|
D | AutoSyncDataPreferenceControllerTest.java | 96 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/ |
D | EmergencyAssistanceHelper.java | 59 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()
|
D | EmergencyInfoGroup.java | 116 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()
|
D | EmergencyActionGroup.java | 127 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/ |
D | CallForwardInfoUtil.java | 42 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/ |
D | AppsAsyncLoaderTest.java | 251 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/ |
D | ThemePreferenceController.java | 153 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/ |
D | ThemePreferenceController.java | 153 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/ |
D | SubscriptionUtilsTest.java | 52 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/ |
D | LensResolverActivity.java | 102 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/ |
D | DaydreamFragment.java | 124 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/ |
D | DebugEstimatesLoader.java | 68 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/ |
D | LocalDiscoverySession.java | 314 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/ |
D | DebugEstimatesLoader.java | 70 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/ |
D | UserCapabilityExchangeImpl.java | 444 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/ |
D | AppUpgrader.java | 136 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/ |
D | StorageAsyncLoader.java | 74 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()
|