/packages/modules/AppSearch/service/java/com/android/server/appsearch/appsindexer/ |
D | ResolveInfos.java | 21 import android.content.pm.ResolveInfo; 31 @Nullable private ResolveInfo mAppFunctionServiceInfo; 32 @Nullable private ResolveInfo mLaunchActivityResolveInfo; 35 @Nullable ResolveInfo appFunctionServiceInfo, in ResolveInfos() 36 @Nullable ResolveInfo launchActivityResolveInfo) { in ResolveInfos() 46 public ResolveInfo getAppFunctionServiceInfo() { in getAppFunctionServiceInfo() 55 public ResolveInfo getLaunchActivityResolveInfo() { in getLaunchActivityResolveInfo() 60 @Nullable private ResolveInfo mAppFunctionServiceInfo; 61 @Nullable private ResolveInfo mLaunchActivityResolveInfo; 65 public Builder setAppFunctionServiceResolveInfo(@NonNull ResolveInfo resolveInfo) { in setAppFunctionServiceResolveInfo() [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/multivalent/src/com/android/car/settings/system/ |
D | RegulatoryInfoPreferenceControllerTest.java | 29 import android.content.pm.ResolveInfo; 73 List<ResolveInfo> activities = new ArrayList<>(); in hasIntent_isAvailable() 74 activities.add(new ResolveInfo()); in hasIntent_isAvailable() 85 List<ResolveInfo> activities = new ArrayList<>(); in hasIntent_isAvailable_zoneWrite() 86 activities.add(new ResolveInfo()); in hasIntent_isAvailable_zoneWrite() 97 List<ResolveInfo> activities = new ArrayList<>(); in hasIntent_isAvailable_zoneRead() 98 activities.add(new ResolveInfo()); in hasIntent_isAvailable_zoneRead() 110 List<ResolveInfo> activities = new ArrayList<>(); in hasIntent_isAvailable_zoneHidden() 111 activities.add(new ResolveInfo()); in hasIntent_isAvailable_zoneHidden() 122 List<ResolveInfo> activities = new ArrayList<>(); in hasNoIntent_isNotAvailable() [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/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/migration/ |
D | MigrationBroadcastSendingTest.java | 38 import android.content.pm.ResolveInfo; 126 MigrationTestUtils.setResolveActivityResult(new ResolveInfo(), mPackageManager); in testBroadcast_oneConfiguredMigratorAppWithNonNullReceiver_explicitBroadcastSent() 131 List<ResolveInfo> resolveInfoList = in testBroadcast_oneConfiguredMigratorAppWithNonNullReceiver_explicitBroadcastSent() 154 MigrationTestUtils.setResolveActivityResult(new ResolveInfo(), mPackageManager); in testBroadcast_oneConfiguredMigratorAppWithNullReceiver_implicitBroadcastSent() 159 List<ResolveInfo> resolveInfoList = in testBroadcast_oneConfiguredMigratorAppWithNullReceiver_implicitBroadcastSent() 182 MigrationTestUtils.setResolveActivityResult(new ResolveInfo(), mPackageManager); in testBroadcast_oneConfiguredMigratorAppWithoutReceiver_implicitBroadcastSent() 187 List<android.content.pm.ResolveInfo> resolveInfoList = in testBroadcast_oneConfiguredMigratorAppWithoutReceiver_implicitBroadcastSent() 188 new ArrayList<android.content.pm.ResolveInfo>(); in testBroadcast_oneConfiguredMigratorAppWithoutReceiver_implicitBroadcastSent() 209 MigrationTestUtils.setResolveActivityResult(new ResolveInfo(), mPackageManager); in testBroadcast_oneConfiguredMigratorAppWithMultipleReceivers_implicitBroadcastSent() 214 List<ResolveInfo> resolveInfoList = in testBroadcast_oneConfiguredMigratorAppWithMultipleReceivers_implicitBroadcastSent() [all …]
|
D | MigrationTestUtils.java | 25 import android.content.pm.ResolveInfo; 51 static List<ResolveInfo> createResolveInfoList( in createResolveInfoList() 53 List<ResolveInfo> resolveInfoArray = new ArrayList<ResolveInfo>(); in createResolveInfoList() 55 ResolveInfo resolveInfo = new ResolveInfo(); in createResolveInfoList() 66 public static void setResolveActivityResult(ResolveInfo result, PackageManager packageManager) { in setResolveActivityResult() 71 ResolveInfo result, PackageManager packageManager, int flags) { in setResolveActivityResult()
|
/packages/apps/Car/Settings/tests/multivalent/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/Car/Settings/tests/deviceless/src/com/android/car/settings/common/ |
D | ExtraSettingsLoaderTest.java | 29 import android.content.pm.ResolveInfo; 82 ResolveInfo resolveInfoSystem = createResolveInfo(bundle, /* isSystem= */ true); in testLoadPreference_stringResources_shouldLoadResources() 104 ResolveInfo resolveInfoSystem = createResolveInfo(bundle, /* isSystem= */ true); in testLoadPreference_metadataBundleIsValue() 107 ResolveInfo resolveInfoNonSystem = createResolveInfo(bundle, /* isSystem= */ false); in testLoadPreference_metadataBundleIsValue() 135 ResolveInfo resolveInfoSystem = createResolveInfo(bundle, /* isSystem= */ true); in testLoadPreference_integerResources_shouldLoadResources() 138 ResolveInfo resolveInfoNonSystem = createResolveInfo(bundle, /* isSystem= */ false); in testLoadPreference_integerResources_shouldLoadResources() 161 ResolveInfo resolveInfoSystem = createResolveInfo(bundle, /* isSystem= */ true); in testLoadPreference_noDefaultSummary() 182 ResolveInfo resolveInfoSystem = createResolveInfo(bundle, /* isSystem= */ true); in testLoadPreference_noCategory_shouldSetToDeviceCategory() 204 ResolveInfo resolveInfoSystem = createResolveInfo(bundle, /* isSystem= */ true); in testLoadPreference_noCategoryMatched_shouldNotReturnPreferences() 222 ResolveInfo resolveInfoSystem = createResolveInfo(bundle, /* isSystem= */ true); in testLoadPreference_shouldLoadDefaultNullIcon() [all …]
|
/packages/services/Car/packages/CarDeveloperOptions/tests/unit/src/com/android/car/developeroptions/ |
D | CarDeveloperOptionsIntentTest.java | 24 import android.content.pm.ResolveInfo; 52 List<ResolveInfo> results = mPm.queryIntentActivities(createSettingsPackageIntent(), in testAvailableIntentActivities_onlyAllowlisted() 55 for (ResolveInfo resolved : results) { in testAvailableIntentActivities_onlyAllowlisted() 66 List<ResolveInfo> results = mPm.queryIntentServices(createSettingsPackageIntent(), in testAvailableIntentServices_returnsZero() 69 for (ResolveInfo resolved : results) { in testAvailableIntentServices_returnsZero() 78 List<ResolveInfo> results = mPm.queryBroadcastReceivers(createSettingsPackageIntent(), in testAvailableBroadcastReceivers_returnsZero() 81 for (ResolveInfo resolved : results) { in testAvailableBroadcastReceivers_returnsZero() 90 List<ResolveInfo> results = mPm.queryIntentContentProviders(createSettingsPackageIntent(), in testAvailableContentProviders_returnsZero() 93 for (ResolveInfo resolved : results) { in testAvailableContentProviders_returnsZero()
|
/packages/apps/Car/Settings/tests/multivalent/src/com/android/car/settings/system/legal/ |
D | LegalPreferenceControllerTestCase.java | 38 import android.content.pm.ResolveInfo; 103 List<ResolveInfo> list = new ArrayList<>(); in getAvailabilityStatus_systemApp_shouldReturnAvailable() 115 List<ResolveInfo> list = new ArrayList<>(); in getAvailabilityStatus_systemApp_shouldReturnAvailable_zoneWrite() 127 List<ResolveInfo> list = new ArrayList<>(); in getAvailabilityStatus_systemApp_shouldReturnAvailable_zoneRead() 139 List<ResolveInfo> list = new ArrayList<>(); in getAvailabilityStatus_systemApp_shouldReturnAvailable_zoneHidden() 150 List<ResolveInfo> list = new ArrayList<>(); in getAvailabilityStatus_notSystemApp_shouldReturnUnsupported() 165 List<ResolveInfo> list = new ArrayList<>(); in getAvailabilityStatus_notSystemApp_shouldReturnUnsupported_zoneWrite() 180 List<ResolveInfo> list = new ArrayList<>(); in getAvailabilityStatus_notSystemApp_shouldReturnUnsupported_zoneRead() 195 List<ResolveInfo> list = new ArrayList<>(); in getAvailabilityStatus_notSystemApp_shouldReturnUnsupported_zoneHidden() 250 List<ResolveInfo> list = new ArrayList<>(); in onCreate_intentResolvesToActivity_isVisible() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/shortcut/ |
D | CreateShortcutPreferenceControllerTest.java | 36 import android.content.pm.ResolveInfo; 106 final ResolveInfo ri = mContext.getPackageManager().resolveActivity(intent, 0); in createResultIntent() 121 final ResolveInfo ri1 = new ResolveInfo(); in queryShortcuts_shouldOnlyIncludeSystemApp() 126 final ResolveInfo ri2 = new ResolveInfo(); in queryShortcuts_shouldOnlyIncludeSystemApp() 137 final List<ResolveInfo> info = mController.queryShortcuts(); in queryShortcuts_shouldOnlyIncludeSystemApp() 146 final ResolveInfo ri1 = new ResolveInfo(); in queryShortcuts_shouldSortBasedOnPriority() 153 final ResolveInfo ri2 = new ResolveInfo(); in queryShortcuts_shouldSortBasedOnPriority() 165 final List<ResolveInfo> info = mController.queryShortcuts(); in queryShortcuts_shouldSortBasedOnPriority() 168 final ResolveInfo resultRi1 = info.get(0); in queryShortcuts_shouldSortBasedOnPriority() 170 final ResolveInfo resultRi2 = info.get(1); in queryShortcuts_shouldSortBasedOnPriority() [all …]
|
/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/modules/AdServices/shared/testing-libraries/device-side/java/com/android/adservices/shared/meta_testing/ |
D | AndroidMockerTestCase.java | 26 import android.content.pm.ResolveInfo; 81 () -> mocker.mockQueryIntentService(mMockPm, (ResolveInfo[]) null)); in testQueryIntentService_nullArgs() 88 getMocker().mockQueryIntentService(mMockPm, new ResolveInfo[] {null}); in testQueryIntentService_nullResolveInfo() 94 .containsExactly((ResolveInfo) null); in testQueryIntentService_nullResolveInfo() 102 .containsExactly((ResolveInfo) null); in testQueryIntentService_nullResolveInfo() 115 mContext.getPackageManager(), new ResolveInfo[] {null})); in testQueryIntentService_notMock() 134 ResolveInfo info1 = new ResolveInfo(); in testQueryIntentService_multipleArgs() 136 ResolveInfo info2 = new ResolveInfo(); in testQueryIntentService_multipleArgs()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/ |
D | LiveWallpaperInfo.java | 25 import android.content.pm.ResolveInfo; 126 List<ResolveInfo> resolveInfos = context.getPackageManager().queryIntentServices(intent, in fromPackageAndServiceName() 211 List<ResolveInfo> resolveInfos = getAllOnDevice(context); in getAll() 216 ResolveInfo resolveInfo = resolveInfos.get(i); in getAll() 243 List<ResolveInfo> resolveInfos; in getFromSpecifiedPackage() 254 ResolveInfo resolveInfo = resolveInfos.get(i); in getFromSpecifiedPackage() 286 private static List<ResolveInfo> getAllContainingServiceNames(Context context, in getAllContainingServiceNames() 290 List<ResolveInfo> allResolveInfos = pm.queryIntentServices( in getAllContainingServiceNames() 297 ResolveInfo[] specifiedResolveInfos = new ResolveInfo[serviceNames.size()]; in getAllContainingServiceNames() 298 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() 135 public ResolveInfo getResolveInfo() { in getResolveInfo()
|
/packages/modules/IntentResolver/tests/shared/src/com/android/intentresolver/ |
D | ResolverDataProvider.java | 25 import android.content.pm.ResolveInfo; 107 public static ResolveInfo createResolveInfo(int i, int userId) { in createResolveInfo() 111 public static ResolveInfo createResolveInfo(int i, int userId, UserHandle resolvedForUser) { in createResolveInfo() 115 public static ResolveInfo createResolveInfo(ComponentName componentName, int userId) { in createResolveInfo() 119 public static ResolveInfo createResolveInfo( in createResolveInfo() 124 public static ResolveInfo createResolveInfo( in createResolveInfo() 126 final ResolveInfo resolveInfo = new ResolveInfo(); in createResolveInfo() 168 public ResolveInfo resolveInfo; 231 ResolveInfo resolveInfo = new ResolveInfo() { in createPackageManagerMockedInfo()
|
/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/modules/AdServices/adservices/tests/unittest/adservices-test-utility/src/com/android/adservices/common/ |
D | AdServicesSupportHelperTest.java | 24 import android.content.pm.ResolveInfo; 47 mockPackageManagerQueryIntentService(new ResolveInfo()); in testIsAndroidServiceAvailable_true() 54 mockPackageManagerQueryIntentService(new ResolveInfo[0]); in testIsAndroidServiceAvailable_false() 62 mockPackageManagerQueryIntentService(new ResolveInfo(), new ResolveInfo()); in testIsAndroidServiceAvailable_false() 71 private void mockPackageManagerQueryIntentService(ResolveInfo... resolveInfos) { in mockPackageManagerQueryIntentService()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/util/ |
D | CrossProfileUtils.java | 23 import android.content.pm.ResolveInfo; 49 public static boolean isCrossProfileIntentForwarderActivity(ResolveInfo info) { in isCrossProfileIntentForwarderActivity() 64 public static ResolveInfo getCrossProfileResolveInfo(UserId currentUser, in getCrossProfileResolveInfo() 76 private static ResolveInfo getCrossProfileResolveInfoPostV( in getCrossProfileResolveInfoPostV() 97 for (ResolveInfo info : packageManager.queryIntentActivitiesAsUser(intent, in getCrossProfileResolveInfoPostV() 107 private static ResolveInfo getCrossProfileResolveInfoPreV( in getCrossProfileResolveInfoPreV() 110 for (ResolveInfo info : packageManager.queryIntentActivities(intent, in getCrossProfileResolveInfoPreV()
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/ |
D | ResolvedComponentInfo.java | 21 import android.content.pm.ResolveInfo; 38 private final List<ResolveInfo> mResolveInfos = new ArrayList<>(); 46 public ResolvedComponentInfo(ComponentName name, Intent intent, ResolveInfo info) { in ResolvedComponentInfo() 54 public void add(Intent intent, ResolveInfo info) { in add() 70 public ResolveInfo getResolveInfoAt(int index) { in getResolveInfoAt() 86 public int findResolveInfo(ResolveInfo info) { in findResolveInfo()
|
/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; 79 mWallpaperIntent, Lists.newArrayList(mock(ResolveInfo.class))); in isAvailable_wallpaperPickerEnabledAndStylePickerEnabled_returnsTrue() 81 mStylesAndWallpaperIntent, Lists.newArrayList(mock(ResolveInfo.class))); in isAvailable_wallpaperPickerEnabledAndStylePickerEnabled_returnsTrue() 89 mWallpaperIntent, Lists.newArrayList(mock(ResolveInfo.class))); in isAvailable_wallpaperPickerEnabledAndStylePickerDisabled_returnsTrue() 101 mStylesAndWallpaperIntent, Lists.newArrayList(mock(ResolveInfo.class))); in isAvailable_wallpaperPickerDisabledAndStylePickerEnabled_returnsTrue() 120 Lists.newArrayList(mock(ResolveInfo.class))); in getComponentClassString_stylesAvailable_returnsStylePickerClassString() 155 Lists.newArrayList(mock(ResolveInfo.class))); in areStylesAvailable_componentResolved() 163 mWallpaperIntent, Lists.newArrayList(mock(ResolveInfo.class))); in handlePreferenceTreeClick_wallpaperOnly() 181 mStylesAndWallpaperIntent, Lists.newArrayList(mock(ResolveInfo.class))); in handlePreferenceTreeClick_stylesAndWallpaper() 211 mStylesAndWallpaperIntent, Lists.newArrayList(mock(ResolveInfo.class))); in handlePreferenceTreeClick_embeddingActivityDisabled_launchWithTaskFlag() [all …]
|
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/multivalent/src/com/android/car/settings/applications/assist/ |
D | VoiceInputInfoProviderTest.java | 31 import android.content.pm.ResolveInfo; 67 ResolveInfo resolveInfo = new ResolveInfo(); in getInteractionInfoList_hasElement() 73 List<ResolveInfo> resolveInfoList = new ArrayList<>(); in getInteractionInfoList_hasElement() 87 ResolveInfo otherInfo = new ResolveInfo(); in getRecognitionInfoList_hasElement() 92 List<ResolveInfo> resolveInfoList = new ArrayList<>(); in getRecognitionInfoList_hasElement()
|
/packages/apps/Settings/src/com/android/settings/shortcut/ |
D | CreateShortcutPreferenceController.java | 27 import android.content.pm.ResolveInfo; 95 final List<ResolveInfo> shortcuts = queryShortcuts(); in updateState() 103 for (ResolveInfo info : shortcuts) { in updateState() 136 Intent createResultIntent(ResolveInfo resolveInfo) { in createResultIntent() 163 List<ResolveInfo> queryShortcuts() { in queryShortcuts() 164 final List<ResolveInfo> shortcuts = new ArrayList<>(); in queryShortcuts() 165 final List<ResolveInfo> activities = mPackageManager.queryIntentActivities(SHORTCUT_PROBE, in queryShortcuts() 171 for (ResolveInfo info : activities) { in queryShortcuts() 216 private void logCreateShortcut(ResolveInfo info) { in logCreateShortcut() 225 private static final Comparator<ResolveInfo> SHORTCUT_COMPARATOR =
|