/packages/apps/Car/libs/car-media-common/tests/robotests/src/com/android/car/media/common/source/ |
D | MediaSourcesProviderTest.java | 28 import android.content.pm.ResolveInfo; 82 List<ResolveInfo> activityResolveInfo = buildActivityResolveInfo(); in setUp() 83 List<ResolveInfo> allActivityResolveInfo = new ArrayList<>(activityResolveInfo); in setUp() 85 for (ResolveInfo info : allActivityResolveInfo) { in setUp() 92 List<ResolveInfo> serviceResolveInfo = buildServiceResolveInfo(); in setUp() 93 List<ResolveInfo> allServiceResolveInfo = new ArrayList<>(serviceResolveInfo); in setUp() 95 for (ResolveInfo info : allServiceResolveInfo) { in setUp() 117 List<ResolveInfo> activityResolveInfo = buildActivityResolveInfo(); in testGetAppsOnPackageAdded() 119 List<ResolveInfo> serviceResolveInfo = buildServiceResolveInfo(); in testGetAppsOnPackageAdded() 141 List<ResolveInfo> activityResolveInfo = buildActivityResolveInfo(); in testGetAppsOnPackageRemoved() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/ |
D | TrustAgentsPreferenceControllerTest.java | 27 import android.content.pm.ResolveInfo; 99 final List<ResolveInfo> availableAgents = createFakeAvailableAgents(); in onStart_noTrustAgent_shouldNotAddPreference() 111 final List<ResolveInfo> availableAgents = createFakeAvailableAgents(); in onStart_hasAUninstalledTrustAgent_shouldRemoveOnePreferenceAndLeaveTwoPreferences() 112 final ResolveInfo uninstalledTrustAgent = availableAgents.get(0); in onStart_hasAUninstalledTrustAgent_shouldRemoveOnePreferenceAndLeaveTwoPreferences() 114 for (ResolveInfo rInfo : availableAgents) { in onStart_hasAUninstalledTrustAgent_shouldRemoveOnePreferenceAndLeaveTwoPreferences() 130 final List<ResolveInfo> availableAgents = createFakeAvailableAgents(); in onStart_hasANewTrustAgent_shouldAddOnePreferenceAndHaveFourPreferences() 132 final ResolveInfo newTrustAgent = createFakeResolveInfo(newComponentName); in onStart_hasANewTrustAgent_shouldAddOnePreferenceAndHaveFourPreferences() 133 for (ResolveInfo rInfo : availableAgents) { in onStart_hasANewTrustAgent_shouldAddOnePreferenceAndHaveFourPreferences() 151 final List<ResolveInfo> availableAgents = createFakeAvailableAgents(); in onStart_hasUnrestrictedTrustAgent_shouldAddThreeChangeablePreferences() 152 for (ResolveInfo rInfo : availableAgents) { in onStart_hasUnrestrictedTrustAgent_shouldAddThreeChangeablePreferences() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/ |
D | ExtraSettingsLoaderTest.java | 29 import android.content.pm.ResolveInfo; 87 ResolveInfo resolveInfoSystem = new ResolveInfo(); in testLoadPreference_stringResources_shouldLoadResources() 117 ResolveInfo resolveInfoSystem = new ResolveInfo(); in testLoadPreference_metadataBundleIsValue() 122 ResolveInfo resolveInfoNonSystem = new ResolveInfo(); in testLoadPreference_metadataBundleIsValue() 157 ResolveInfo resolveInfoSystem = new ResolveInfo(); in testLoadPreference_integerResources_shouldLoadResources() 162 ResolveInfo resolveInfoNonSystem = new ResolveInfo(); in testLoadPreference_integerResources_shouldLoadResources() 192 ResolveInfo resolveInfoSystem = new ResolveInfo(); in testLoadPreference_noDefaultSummary() 220 ResolveInfo resolveInfoSystem = new ResolveInfo(); in testLoadPreference_noCategory_shouldSetToDeviceCategory() 249 ResolveInfo resolveInfoSystem = new ResolveInfo(); in testLoadPreference_noCategoryMatched_shouldNotReturnPreferences() 274 ResolveInfo resolveInfoSystem = new ResolveInfo(); in testLoadPreference_shouldLoadDefaultIcon() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/assist/ |
D | DefaultVoiceInputPickerPreferenceControllerTest.java | 24 import android.content.pm.ResolveInfo; 76 ResolveInfo resolveInfo = new ResolveInfo(); in getCandidates_voiceInteractionService_hasOneElement() 89 ResolveInfo resolveInfo = new ResolveInfo(); in getCandidates_voiceRecognitionService_hasOneElement() 102 ResolveInfo interactionInfo = new ResolveInfo(); in getCandidates_oneIsSameAsAssistant_hasTwoElements() 111 ResolveInfo interactionInfo2 = new ResolveInfo(); in getCandidates_oneIsSameAsAssistant_hasTwoElements() 131 ResolveInfo interactionInfo = new ResolveInfo(); in getCandidates_oneIsSameAsAssistant_sameOneIsEnabled() 140 ResolveInfo interactionInfo2 = new ResolveInfo(); in getCandidates_oneIsSameAsAssistant_sameOneIsEnabled() 167 ResolveInfo interactionInfo = new ResolveInfo(); in getCandidates_oneIsSameAsAssistant_differentOneIsDisabled() 176 ResolveInfo interactionInfo2 = new ResolveInfo(); in getCandidates_oneIsSameAsAssistant_differentOneIsDisabled() 221 ResolveInfo resolveInfo = new ResolveInfo(); in setCurrentDefault_typeVoiceInteractionInfo_setsServices() [all …]
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestPackageManager.java | 25 import android.content.pm.ResolveInfo; 41 public Map<String, ResolveInfo> contentProviders; 42 public List<ResolveInfo> queryIntentProvidersResults = new ArrayList<>(); 48 ResolveInfo info = new ResolveInfo(); in addStubContentProviderForRoot() 64 public List<ResolveInfo> queryIntentContentProviders(Intent intent, int flags) { in queryIntentContentProviders() 65 List<ResolveInfo> result = new ArrayList<>(); in queryIntentContentProviders() 74 public List<ResolveInfo> queryIntentActivities(Intent intent, int flags) { in queryIntentActivities() 83 public ResolveInfo resolveActivity(Intent intent, int flags) { in resolveActivity() 84 ResolveInfo info = new TestResolveInfo(); in resolveActivity() 94 public final ResolveInfo resolveActivityAsUser( in resolveActivityAsUser() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/ |
D | ExtraSettingsLoaderTest.java | 37 import android.content.pm.ResolveInfo; 81 private ResolveInfo createResolveInfo(String packageName, String className, Bundle metaData, in createResolveInfo() 88 ResolveInfo resolveInfoSystem = new ResolveInfo(); in createResolveInfo() 95 private Map<Preference, Bundle> executeLoadPreferences(List<ResolveInfo> resolveInfoList, in executeLoadPreferences() 115 ResolveInfo resolveInfoSystem = createResolveInfo("package_name", "class_name", in testLoadPreference_uriResources_shouldNotLoadStaticResources() 137 ResolveInfo resolveInfoSystem1 = createResolveInfo("package_name1", "class_name1", in testLoadPreference_sortPreferences_byMetadata() 145 ResolveInfo resolveInfoSystem2 = createResolveInfo("package_name2", "class_name2", in testLoadPreference_sortPreferences_byMetadata() 148 List<ResolveInfo> resolveInfoList = new ArrayList<>(); in testLoadPreference_sortPreferences_byMetadata() 168 ResolveInfo resolveInfoSystem1 = createResolveInfo("package_name1", "class_name1", in testLoadPreference_sortPreferences_byPackageName() 175 ResolveInfo resolveInfoSystem2 = createResolveInfo("package_name2", "class_name2", in testLoadPreference_sortPreferences_byPackageName() [all …]
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/utils/ |
D | TestUtils.java | 20 import android.content.pm.ResolveInfo; 33 ResolveInfo service, String id, String parentId, int type, boolean isHardwareInput) in createTvInputInfo() 44 ResolveInfo service, in createTvInputInfo() 72 ResolveInfo service, in createTvInputInfoForO() 82 ResolveInfo.class, in createTvInputInfoForO() 126 ResolveInfo service, in createTvInputInfoForNyc() 136 ResolveInfo.class, in createTvInputInfoForNyc() 175 ResolveInfo service, String id, String parentId, int type, boolean isHardwareInput) in createTvInputInfoForMnc() 179 ResolveInfo.class, String.class, String.class, int.class, boolean.class); in createTvInputInfoForMnc() 184 public static ResolveInfo createResolveInfo(String packageName, String name) { in createResolveInfo() [all …]
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/ |
D | LiveWallpaperInfo.java | 24 import android.content.pm.ResolveInfo; 114 List<ResolveInfo> resolveInfos = context.getPackageManager().queryIntentServices(intent, in fromAttributeSet() 170 List<ResolveInfo> resolveInfos = getAllOnDevice(context); in getAll() 175 ResolveInfo resolveInfo = resolveInfos.get(i); in getAll() 202 List<ResolveInfo> resolveInfos; in getFromSpecifiedPackage() 213 ResolveInfo resolveInfo = resolveInfos.get(i); in getFromSpecifiedPackage() 244 private static List<ResolveInfo> getAllContainingServiceNames(Context context, in getAllContainingServiceNames() 248 List<ResolveInfo> allResolveInfos = pm.queryIntentServices( in getAllContainingServiceNames() 255 ResolveInfo[] specifiedResolveInfos = new ResolveInfo[serviceNames.size()]; in getAllContainingServiceNames() 256 for (ResolveInfo resolveInfo : allResolveInfos) { in getAllContainingServiceNames() [all …]
|
D | ThirdPartyAppCategory.java | 23 import android.content.pm.ResolveInfo; 37 private final ResolveInfo mResolveInfo; 39 public ThirdPartyAppCategory(Context context, ResolveInfo resolveInfo, String collectionId, in ThirdPartyAppCategory() 56 final List<ResolveInfo> apps = pm.queryIntentActivities(pickWallpaperIntent, 0); in getAll() 63 final List<ResolveInfo> imagePickerActivities = in getAll() 68 ResolveInfo info = apps.get(i); in getAll() 80 for (ResolveInfo imagePickerActivityInfo : imagePickerActivities) { in getAll()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/shortcut/ |
D | CreateShortcutPreferenceControllerTest.java | 36 import android.content.pm.ResolveInfo; 95 final ResolveInfo ri = mContext.getPackageManager().resolveActivity(intent, 0); in createResultIntent() 110 final ResolveInfo ri1 = new ResolveInfo(); in queryShortcuts_shouldOnlyIncludeSystemApp() 115 final ResolveInfo ri2 = new ResolveInfo(); in queryShortcuts_shouldOnlyIncludeSystemApp() 125 final List<ResolveInfo> info = mController.queryShortcuts(); in queryShortcuts_shouldOnlyIncludeSystemApp() 132 final ResolveInfo ri1 = new ResolveInfo(); in queryShortcuts_shouldSortBasedOnPriority() 139 final ResolveInfo ri2 = new ResolveInfo(); in queryShortcuts_shouldSortBasedOnPriority() 150 final List<ResolveInfo> info = mController.queryShortcuts(); in queryShortcuts_shouldSortBasedOnPriority()
|
/packages/apps/MusicFX/src/com/android/musicfx/ |
D | Compatibility.java | 28 import android.content.pm.ResolveInfo; 72 ResolveInfo defPanel = Service.searchControlPanel(this, null); in onCreate() 151 … private static final ResolveInfo searchControlPanel(Context context, String updatedPackage) { in searchControlPanel() 153 ResolveInfo defPanel = null; in searchControlPanel() 154 ResolveInfo otherPanel = null; in searchControlPanel() 155 ResolveInfo thisPanel = null; in searchControlPanel() 157 List<ResolveInfo> ris = context.getPackageManager().queryIntentActivities( in searchControlPanel() 164 for (ResolveInfo foo: ris) { in searchControlPanel() 202 ResolveInfo defPanel = searchControlPanel(this, updatedPackage); in pickDefaultControlPanel() 216 …List<ResolveInfo> ris = mPackageManager.queryBroadcastReceivers(i, PackageManager.GET_DISABLED_COM… in setDefault() [all …]
|
/packages/services/Car/packages/CarDeveloperOptions/tests/unit/src/com/android/car/developeroptions/ |
D | CarDeveloperOptionsIntentTest.java | 24 import android.content.pm.ResolveInfo; 53 List<ResolveInfo> results = mPm.queryIntentActivities(createSettingsPackageIntent(), in testAvailableIntentActivities_onlyAllowlisted() 56 for (ResolveInfo resolved : results) { in testAvailableIntentActivities_onlyAllowlisted() 67 List<ResolveInfo> results = mPm.queryIntentServices(createSettingsPackageIntent(), in testAvailableIntentServices_returnsZero() 70 for (ResolveInfo resolved : results) { in testAvailableIntentServices_returnsZero() 79 List<ResolveInfo> results = mPm.queryBroadcastReceivers(createSettingsPackageIntent(), in testAvailableBroadcastReceivers_returnsZero() 82 for (ResolveInfo resolved : results) { in testAvailableBroadcastReceivers_returnsZero() 91 List<ResolveInfo> results = mPm.queryIntentContentProviders(createSettingsPackageIntent(), in testAvailableContentProviders_returnsZero() 94 for (ResolveInfo resolved : results) { in testAvailableContentProviders_returnsZero()
|
/packages/apps/Settings/src/com/android/settings/shortcut/ |
D | CreateShortcutPreferenceController.java | 26 import android.content.pm.ResolveInfo; 101 final List<ResolveInfo> shortcuts = queryShortcuts(); in updateState() 109 for (ResolveInfo info : shortcuts) { in updateState() 144 Intent createResultIntent(Intent shortcutIntent, ResolveInfo resolveInfo, in createResultIntent() 172 List<ResolveInfo> queryShortcuts() { in queryShortcuts() 173 final List<ResolveInfo> shortcuts = new ArrayList<>(); in queryShortcuts() 174 final List<ResolveInfo> activities = mPackageManager.queryIntentActivities(SHORTCUT_PROBE, in queryShortcuts() 180 for (ResolveInfo info : activities) { in queryShortcuts() 196 private void logCreateShortcut(ResolveInfo info) { in logCreateShortcut() 205 private static Intent buildShortcutIntent(ResolveInfo info) { in buildShortcutIntent() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
D | ResolveCache.java | 25 import android.content.pm.ResolveInfo; 108 public ResolveInfo bestResolve; 135 final List<ResolveInfo> matches = mPackageManager.queryIntentActivities(intent, in getEntry() 139 ResolveInfo bestResolve = null; in getEntry() 168 protected ResolveInfo getBestResolve(Intent intent, List<ResolveInfo> matches) { in getBestResolve() 170 final ResolveInfo foundResolve = mPackageManager.resolveActivity(intent, in getBestResolve() 181 ResolveInfo firstSystem = null; in getBestResolve() 182 for (ResolveInfo info : matches) { in getBestResolve()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/ |
D | LocationSettingsFooterPreferenceControllerTest.java | 35 import android.content.pm.ResolveInfo; 103 final List<ResolveInfo> testResolveInfos = new ArrayList<>(); in isAvailable_hasValidFooter_returnsTrue() 117 final List<ResolveInfo> testResolveInfos = new ArrayList<>(); in isAvailable_noSystemApp_returnsTrue() 130 final List<ResolveInfo> testResolveInfos = new ArrayList<>(); in isAvailable_noRequiredMetadata_returnsTrue() 140 final List<ResolveInfo> testResolveInfos = new ArrayList<>(); in updateState_setTitle() 153 final List<ResolveInfo> testResolveInfos = new ArrayList<>(); in onLocationModeChanged_off_setTitle() 171 final List<ResolveInfo> testResolveInfos = new ArrayList<>(); in onLocationModeChanged_on_setTitle() 188 final List<ResolveInfo> testResolveInfos = new ArrayList<>(); in updateState_notSystemApp_ignore() 203 private ResolveInfo getTestResolveInfo(boolean isSystemApp, boolean hasRequiredMetaData) { in getTestResolveInfo() 204 ResolveInfo testResolveInfo = new ResolveInfo(); in getTestResolveInfo()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/ |
D | TopLevelWallpaperPreferenceControllerTest.java | 25 import android.content.pm.ResolveInfo; 78 mWallpaperIntent, Lists.newArrayList(mock(ResolveInfo.class))); in isAvailable_wallpaperPickerEnabledAndStylePickerEnabled_returnsTrue() 80 mStylesAndWallpaperIntent, Lists.newArrayList(mock(ResolveInfo.class))); in isAvailable_wallpaperPickerEnabledAndStylePickerEnabled_returnsTrue() 88 mWallpaperIntent, Lists.newArrayList(mock(ResolveInfo.class))); in isAvailable_wallpaperPickerEnabledAndStylePickerDisabled_returnsTrue() 100 mStylesAndWallpaperIntent, Lists.newArrayList(mock(ResolveInfo.class))); in isAvailable_wallpaperPickerDisabledAndStylePickerEnabled_returnsTrue() 119 Lists.newArrayList(mock(ResolveInfo.class))); in getComponentClassString_stylesAvailable_returnsStylePickerClassString() 154 Lists.newArrayList(mock(ResolveInfo.class))); in areStylesAvailable_componentResolved() 162 mWallpaperIntent, Lists.newArrayList(mock(ResolveInfo.class))); in handlePreferenceTreeClick_wallpaperOnly() 180 mStylesAndWallpaperIntent, Lists.newArrayList(mock(ResolveInfo.class))); in handlePreferenceTreeClick_stylesAndWallpaper() 211 mStylesAndWallpaperIntent, Lists.newArrayList(mock(ResolveInfo.class))); in handlePreferenceTreeClick_launchClearTask()
|
D | WallpaperPreferenceControllerTest.java | 25 import android.content.pm.ResolveInfo; 78 mWallpaperIntent, Lists.newArrayList(mock(ResolveInfo.class))); in isAvailable_wallpaperPickerEnabledAndStylePickerEnabled_returnsTrue() 80 mStylesAndWallpaperIntent, Lists.newArrayList(mock(ResolveInfo.class))); in isAvailable_wallpaperPickerEnabledAndStylePickerEnabled_returnsTrue() 88 mWallpaperIntent, Lists.newArrayList(mock(ResolveInfo.class))); in isAvailable_wallpaperPickerEnabledAndStylePickerDisabled_returnsTrue() 100 mStylesAndWallpaperIntent, Lists.newArrayList(mock(ResolveInfo.class))); in isAvailable_wallpaperPickerDisabledAndStylePickerEnabled_returnsTrue() 119 Lists.newArrayList(mock(ResolveInfo.class))); in getComponentClassString_stylesAvailable_returnsStylePickerClassString() 154 Lists.newArrayList(mock(ResolveInfo.class))); in areStylesAvailable_componentResolved() 174 Lists.newArrayList(mock(ResolveInfo.class))); in getKeywords_withStyles() 186 mWallpaperIntent, Lists.newArrayList(mock(ResolveInfo.class))); in handlePreferenceTreeClick_wallpaperOnly() 204 mStylesAndWallpaperIntent, Lists.newArrayList(mock(ResolveInfo.class))); in handlePreferenceTreeClick_stylesAndWallpaper()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/ |
D | ApplicationActionButtonsPreferenceControllerTest.java | 52 import android.content.pm.ResolveInfo; 191 ResolveInfo homeActivity = new ResolveInfo(); in onCreate_bundledApp_homePackage_disablesDisableButton() 198 ((List<ResolveInfo>) args[0]).add(homeActivity); in onCreate_bundledApp_homePackage_disablesDisableButton() 223 ResolveInfo phoneActivity = new ResolveInfo(); in onCreate_bundledApp_enabledApp_keepEnabledPackage_disablesDisableButton() 294 ResolveInfo homeActivity = new ResolveInfo(); in onStart_noDefaultHome_onlyHomeApp_disablesUninstallButton() 301 ((List<ResolveInfo>) args[0]).add(homeActivity); in onStart_noDefaultHome_onlyHomeApp_disablesUninstallButton() 315 ResolveInfo homeActivity = new ResolveInfo(); in onStart_noDefaultHome_multipleHomeApps_enablesUninstallButton() 320 ResolveInfo altHomeActivity = new ResolveInfo(); in onStart_noDefaultHome_multipleHomeApps_enablesUninstallButton() 327 ((List<ResolveInfo>) args[0]).addAll(Arrays.asList(homeActivity, altHomeActivity)); in onStart_noDefaultHome_multipleHomeApps_enablesUninstallButton() 341 ResolveInfo homeActivity = new ResolveInfo(); in onStart_defaultHomeApp_disablesUninstallButton() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/legal/ |
D | LegalPreferenceControllerTestCase.java | 36 import android.content.pm.ResolveInfo; 100 List<ResolveInfo> list = new ArrayList<>(); in getAvailabilityStatus_systemApp_shouldReturnAvailable() 111 List<ResolveInfo> list = new ArrayList<>(); in getAvailabilityStatus_notSystemApp_shouldReturnUnsupported() 136 List<ResolveInfo> list = new ArrayList<>(); in onCreate_intentResolvesToActivity_isVisible() 150 List<ResolveInfo> list = new ArrayList<>(); in onCreate_intentResolvesToActivity_updatesTitle() 164 List<ResolveInfo> list = new ArrayList<>(); in onCreate_intentResolvesToActivity_updatesIntentToSpecificActivity() 180 private ResolveInfo getTestResolveInfo(boolean isSystemApp) { in getTestResolveInfo() 189 ResolveInfo resolveInfo = new ResolveInfo() { in getTestResolveInfo()
|
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/common/ |
D | GetProvisioningModeUtilsTest.java | 32 import android.content.pm.ResolveInfo; 71 ResolveInfo info = createFakeResolveInfo(); in isGetProvisioningModeActivityResolvable_resolvableActivity_returnsTrue() 91 ResolveInfo info = createFakeResolveInfo(); in startGetProvisioningModeActivityIfResolved_resolvableActivity_returnsTrue() 105 ResolveInfo info = createFakeResolveInfo(); in startGetProvisioningModeActivityIfResolved_resolvableActivity_startsGetProvisioningModeIntent() 125 ResolveInfo info = createFakeResolveInfo(); in startGetProvisioningModeActivityIfResolved_resolvableActivity_includesAdditionalExtras() 141 private ResolveInfo createFakeResolveInfo() { in createFakeResolveInfo() 142 ResolveInfo info = new ResolveInfo(); in createFakeResolveInfo()
|
D | UtilsRoboTest.java | 38 import android.content.pm.ResolveInfo; 85 ResolveInfo info = createFakeResolveInfo(); in shouldPerformAdminIntegratedFlow_allConditionsMet_returnsTrue() 98 ResolveInfo info = createFakeResolveInfo(); in shouldPerformAdminIntegratedFlow_noPolicyComplianceScreen_returnsFalse() 109 ResolveInfo info = createFakeResolveInfo(); in shouldPerformAdminIntegratedFlow_noGetProvisioningModeScreen_returnsFalse() 121 ResolveInfo info = createFakeResolveInfo(); in shouldPerformAdminIntegratedFlow_nfcProvisioning_returnsFalse() 245 private ResolveInfo createFakeResolveInfo() { in createFakeResolveInfo() 246 ResolveInfo info = new ResolveInfo(); in createFakeResolveInfo()
|
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/ |
D | LiveWallpaperListAdapter.java | 23 import android.content.pm.ResolveInfo; 65 List<ResolveInfo> list = mPackageManager.queryIntentServices( in LiveWallpaperListAdapter() 138 AsyncTask<List<ResolveInfo>, LiveWallpaperInfo, Void> { 149 protected Void doInBackground(List<ResolveInfo>... params) { in doInBackground() 152 List<ResolveInfo> list = params[0]; in doInBackground() 161 Collections.sort(list, new Comparator<ResolveInfo>() { in doInBackground() 168 public int compare(ResolveInfo info1, ResolveInfo info2) { in doInBackground() 174 for (ResolveInfo resolveInfo : list) { in doInBackground()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | DefaultLayoutParser.java | 11 import android.content.pm.ResolveInfo; 113 ResolveInfo resolved = mPackageManager.resolveActivity(metaIntent, in invalidPackageOrClass() 115 final List<ResolveInfo> appList = mPackageManager.queryIntentActivities( in invalidPackageOrClass() 122 final ResolveInfo systemApp = getSingleSystemActivity(appList); in invalidPackageOrClass() 144 private ResolveInfo getSingleSystemActivity(List<ResolveInfo> appList) { in getSingleSystemActivity() 145 ResolveInfo systemResolve = null; in getSingleSystemActivity() 166 private boolean wouldLaunchResolverActivity(ResolveInfo resolved, in wouldLaunchResolverActivity() 167 List<ResolveInfo> appList) { in wouldLaunchResolverActivity() 171 ResolveInfo tmp = appList.get(i); in wouldLaunchResolverActivity()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | ComponentContextFixture.java | 49 import android.content.pm.ResolveInfo; 552 doAnswer(new Answer<List<ResolveInfo>>() { 554 public List<ResolveInfo> answer(InvocationOnMock invocation) throws Throwable { 561 doAnswer(new Answer<List<ResolveInfo>>() { 563 public List<ResolveInfo> answer(InvocationOnMock invocation) throws Throwable { 570 doAnswer(new Answer<List<ResolveInfo>>() { 572 public List<ResolveInfo> answer(InvocationOnMock invocation) throws Throwable { 579 doAnswer(new Answer<List<ResolveInfo>>() { 581 public List<ResolveInfo> answer(InvocationOnMock invocation) throws Throwable { 730 private List<ResolveInfo> doQueryIntentServices(Intent intent, int flags) { [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/defaultapps/ |
D | DefaultAutofillPickerPreferenceControllerTest.java | 25 import android.content.pm.ResolveInfo; 75 ResolveInfo serviceResolveInfo = new ResolveInfo(); in getCandidates_hasServiceWithoutPermissions_returnsEmptyList() 88 ResolveInfo serviceResolveInfo = new ResolveInfo(); in getCandidates_hasServiceWithBindAutofillServicePermission_returnsService() 101 ResolveInfo serviceResolveInfo = new ResolveInfo(); in getCandidates_hasServiceWithBindAutofillPermission_returnsEmptyList()
|