/cts/tests/tests/content/src/android/content/pm/cts/ |
D | ResolveInfoTest.java | 43 ResolveInfo resolveInfo = pm.resolveActivity(intent, 0); in testResolveInfo() local 46 assertEquals(expectedLabel, resolveInfo.loadLabel(pm).toString()); in testResolveInfo() 47 assertNotNull(resolveInfo.loadIcon(pm)); in testResolveInfo() 48 assertTrue(resolveInfo.getIconResource() != 0); in testResolveInfo() 49 assertNotNull(resolveInfo.toString()); in testResolveInfo() 50 assertEquals(0, resolveInfo.describeContents()); in testResolveInfo() 56 ResolveInfo resolveInfo = pm.resolveService(intent, PackageManager.GET_RESOLVED_FILTER); in testDump() local 59 resolveInfo.writeToParcel(p, 0); in testDump() 63 assertEquals(resolveInfo.getIconResource(), infoFromParcel.getIconResource()); in testDump() 64 assertEquals(resolveInfo.priority, infoFromParcel.priority); in testDump() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/ |
D | ClientTest.java | 115 final List<ResolveInfo> resolveInfo = InstrumentationRegistry.getContext() in testQuery() local 117 if (resolveInfo == null || resolveInfo.size() == 0) { in testQuery() 120 assertThat(resolveInfo.size(), is(2)); in testQuery() 121 assertThat(resolveInfo.get(0).activityInfo.packageName, in testQuery() 123 assertThat(resolveInfo.get(0).activityInfo.name, in testQuery() 125 assertThat(resolveInfo.get(0).isInstantAppAvailable, in testQuery() 127 assertThat(resolveInfo.get(1).activityInfo.packageName, in testQuery() 129 assertThat(resolveInfo.get(1).activityInfo.name, in testQuery() 131 assertThat(resolveInfo.get(1).isInstantAppAvailable, in testQuery() 140 final List<ResolveInfo> resolveInfo = InstrumentationRegistry.getContext() in testQuery() local [all …]
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/UserAppTest/src/com/android/cts/userapptest/ |
D | ClientTest.java | 43 final List<ResolveInfo> resolveInfo = InstrumentationRegistry in testQueryInstant() local 45 if (resolveInfo != null && resolveInfo.size() != 0) { in testQueryInstant() 53 final List<ResolveInfo> resolveInfo = InstrumentationRegistry in testQueryFull() local 55 if (resolveInfo == null || resolveInfo.size() == 0) { in testQueryFull() 58 assertThat(resolveInfo.size(), is(1)); in testQueryFull() 59 assertThat(resolveInfo.get(0).activityInfo.packageName, in testQueryFull() 61 assertThat(resolveInfo.get(0).activityInfo.name, in testQueryFull()
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ |
D | ClientTest.java | 140 final List<ResolveInfo> resolveInfo = InstrumentationRegistry.getContext() in testQuery() local 142 if (resolveInfo == null || resolveInfo.size() == 0) { in testQuery() 145 assertThat(resolveInfo.size(), is(2)); in testQuery() 146 assertThat(resolveInfo.get(0).activityInfo.packageName, in testQuery() 148 assertThat(resolveInfo.get(0).activityInfo.name, in testQuery() 150 assertThat(resolveInfo.get(0).isInstantAppAvailable, in testQuery() 152 assertThat(resolveInfo.get(1).activityInfo.packageName, in testQuery() 154 assertThat(resolveInfo.get(1).activityInfo.name, in testQuery() 156 assertThat(resolveInfo.get(1).isInstantAppAvailable, in testQuery() 163 final List<ResolveInfo> resolveInfo = InstrumentationRegistry.getContext() in testQuery() local [all …]
|
/cts/tests/admin/src/android/admin/cts/ |
D | DeviceAdminInfoTest.java | 81 ResolveInfo resolveInfo = new ResolveInfo(); in testDeviceAdminInfo() local 82 resolveInfo.activityInfo = mPackageManager.getReceiverInfo(mComponent, in testDeviceAdminInfo() 85 DeviceAdminInfo info = new DeviceAdminInfo(mContext, resolveInfo); in testDeviceAdminInfo() 114 ResolveInfo resolveInfo = new ResolveInfo(); in testDeviceAdminInfo2() local 115 resolveInfo.activityInfo = mPackageManager.getReceiverInfo(mSecondComponent, in testDeviceAdminInfo2() 118 DeviceAdminInfo info = new DeviceAdminInfo(mContext, resolveInfo); in testDeviceAdminInfo2() 147 ResolveInfo resolveInfo = new ResolveInfo(); in testDeviceAdminInfo3() local 148 resolveInfo.activityInfo = mPackageManager.getReceiverInfo(mThirdComponent, in testDeviceAdminInfo3() 151 DeviceAdminInfo info = new DeviceAdminInfo(mContext, resolveInfo); in testDeviceAdminInfo3() 202 ResolveInfo resolveInfo = new ResolveInfo(); in buildResolveInfo() local [all …]
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | TelecomAvailabilityTest.java | 84 for (ResolveInfo resolveInfo : activities) { in testTelecomHandlesCallIntents() 85 if (resolveInfo.activityInfo == null) { in testTelecomHandlesCallIntents() 89 && TELECOM_PACKAGE_NAME.equals(resolveInfo.activityInfo.packageName)) { in testTelecomHandlesCallIntents() 92 && TELEPHONY_PACKAGE_NAME.equals(resolveInfo.activityInfo.packageName)) { in testTelecomHandlesCallIntents() 114 for (ResolveInfo resolveInfo : activities) { in testTelecomCanManageBlockedNumbers() 115 assertNotNull(resolveInfo.activityInfo); in testTelecomCanManageBlockedNumbers() 116 assertEquals(TELECOM_PACKAGE_NAME, resolveInfo.activityInfo.packageName); in testTelecomCanManageBlockedNumbers()
|
D | BasicInCallServiceTest.java | 73 List<ResolveInfo> resolveInfo = packageManager.queryIntentServices(serviceIntent, in testResolveInCallIntent() local 76 assertNotNull(resolveInfo); in testResolveInCallIntent() 77 assertTrue(resolveInfo.size() >= 1); in testResolveInCallIntent() 80 assertTrue(resolveInfo in testResolveInCallIntent()
|
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/ |
D | SuspendPackageTest.java | 113 ResolveInfo resolveInfo = mPackageManager.resolveActivity(intent, /* flags= */ 0); in assertPackageSuspended() local 114 assertWithMessage("ResolveInfo for activity %s", intent).that(resolveInfo).isNotNull(); in assertPackageSuspended() 115 Log.d(TAG, "ResolveInfo: " + resolveInfo); in assertPackageSuspended() 175 ResolveInfo resolveInfo = mPackageManager.resolveActivityAsUser( in getSettingsPackageName() local 177 if (resolveInfo != null && resolveInfo.activityInfo != null) { in getSettingsPackageName() 178 String packageName = resolveInfo.activityInfo.packageName; in getSettingsPackageName()
|
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ |
D | ManualPackageInstallTest.java | 140 ResolveInfo resolveInfo = mPackageManager.resolveActivityAsUser( in getSettingsPackageName() local 143 if (resolveInfo != null && resolveInfo.activityInfo != null) { in getSettingsPackageName() 144 settingsPackageName = resolveInfo.activityInfo.packageName; in getSettingsPackageName()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | NfcTest.java | 63 for (ResolveInfo resolveInfo : pm.queryIntentActivities(intent, 0)) { in isNfcBeamActivityResolved() 64 if (NFC_BEAM_ACTIVITY.equals(resolveInfo.activityInfo.name)) { in isNfcBeamActivityResolved()
|
D | CrossProfileSharingTest.java | 121 for (ResolveInfo resolveInfo : resolveInfos) { in getSwitchToOtherProfileResolveInfo() 124 if (resolveInfo.match == 0) { in getSwitchToOtherProfileResolveInfo() 125 return resolveInfo; in getSwitchToOtherProfileResolveInfo()
|
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/ |
D | ContactsContractIntentsTest.java | 68 for (ResolveInfo resolveInfo : resolveInfoList) { in testSetDefaultAccount() 69 String packageName = resolveInfo.activityInfo.packageName; in testSetDefaultAccount()
|
/cts/tests/app/src/android/app/cts/ |
D | WallpaperInfoTest.java | 98 ResolveInfo resolveInfo = result.get(i); in getInfoForService() local 99 if (resolveInfo.serviceInfo.name.equals(service.getName())) { in getInfoForService() 100 info = resolveInfo; in getInfoForService()
|
D | PendingIntentTest.java | 698 ResolveInfo resolveInfo = broadcastReceiverResolveInfos.get(0); in testGetIntentComponentAndType() local 699 assertNotNull(resolveInfo.activityInfo); in testGetIntentComponentAndType() 700 assertEquals(MockReceiver.class.getPackageName(), resolveInfo.activityInfo.packageName); in testGetIntentComponentAndType() 701 assertEquals(MockReceiver.class.getName(), resolveInfo.activityInfo.name); in testGetIntentComponentAndType() 719 ResolveInfo resolveInfo = activityResolveInfos.get(0); in testGetIntentComponentAndType() local 720 assertNotNull(resolveInfo.activityInfo); in testGetIntentComponentAndType() 721 assertEquals(MockActivity.class.getPackageName(), resolveInfo.activityInfo.packageName); in testGetIntentComponentAndType() 722 assertEquals(MockActivity.class.getName(), resolveInfo.activityInfo.name); in testGetIntentComponentAndType() 740 ResolveInfo resolveInfo = serviceResolveInfos.get(0); in testGetIntentComponentAndType() local 741 assertNotNull(resolveInfo.serviceInfo); in testGetIntentComponentAndType() [all …]
|
/cts/tests/tests/match_flags/src/android/matchflags/cts/ |
D | MatchFlagTests.java | 182 .stream().anyMatch(resolveInfo -> in isBrowserPresent() 183 resolveInfo.handleAllWebDataURI in isBrowserPresent() 184 && (includeFallback || resolveInfo.priority >= 0)); in isBrowserPresent()
|
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/ |
D | SplitAppTest.java | 435 resolveInfo -> resolveInfo.activityInfo.name.equals( in testFeatureWarmBase() 820 assertThat(resolveInfoList.stream().noneMatch(resolveInfo -> getComponentName(resolveInfo) in testComponentWithSplitName_singleBase() 825 assertThat(resolveInfoList.stream().noneMatch(resolveInfo -> getComponentName(resolveInfo) in testComponentWithSplitName_singleBase() 837 assertThat(resolveInfoList.stream().anyMatch(resolveInfo -> getComponentName(resolveInfo) in testComponentWithSplitName_featureWarmInstalled() 842 assertThat(resolveInfoList.stream().anyMatch(resolveInfo -> getComponentName(resolveInfo) in testComponentWithSplitName_featureWarmInstalled() 1025 private static ComponentName getComponentName(ResolveInfo resolveInfo) { in getComponentName() argument 1026 final ComponentInfo componentInfo = resolveInfo.activityInfo != null in getComponentName() 1027 ? resolveInfo.activityInfo : resolveInfo.serviceInfo != null in getComponentName() 1028 ? resolveInfo.serviceInfo : resolveInfo.providerInfo; in getComponentName()
|
/cts/tests/tests/provider/src/android/provider/cts/media/ |
D | MediaStore_MetadataKeysTest.java | 72 for (ResolveInfo resolveInfo : infos) { in getTestActivityMetadata() 73 ComponentInfo componentInfo = resolveInfo.getComponentInfo(); in getTestActivityMetadata()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | UserRestrictions.java | 357 ResolveInfo resolveInfo = packageManager.resolveActivity( in getDefaultCellBroadcastReceiverPackageName() local 362 if (resolveInfo == null) { in getDefaultCellBroadcastReceiverPackageName() 366 packageName = resolveInfo.activityInfo.applicationInfo.packageName; in getDefaultCellBroadcastReceiverPackageName() 382 ResolveInfo resolveInfo = packageManager.resolveActivity( in hasSettingsActivity() local 386 if (resolveInfo == null) { in hasSettingsActivity() 390 return !TextUtils.isEmpty(resolveInfo.activityInfo.applicationInfo.packageName); in hasSettingsActivity()
|
D | IntentFiltersTestHelper.java | 360 for (ResolveInfo resolveInfo : resolveInfoList) { in canForwarderActivityHandleIntent() 361 if (forwarderActivityInfo.packageName.equals(resolveInfo.activityInfo.packageName) in canForwarderActivityHandleIntent() 362 && forwarderActivityInfo.name.equals(resolveInfo.activityInfo.name)) { in canForwarderActivityHandleIntent()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | SecondaryLockscreenTest.java | 188 for (ResolveInfo resolveInfo : resolveInfos) { in getLauncherPackageName() 189 sb.append(resolveInfo.activityInfo.packageName).append("/").append( in getLauncherPackageName() 190 resolveInfo.activityInfo.name).append(", "); in getLauncherPackageName()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | AvailableIntentsTest.java | 81 for (ResolveInfo resolveInfo : resolveInfoList) { in assertDefaultHandlerValidPriority() 82 assertTrue(resolveInfo.priority <= 0); in assertDefaultHandlerValidPriority() 93 for (ResolveInfo resolveInfo : resolveInfoList) { in assertHandledBySystemOnly() 94 final int flags = resolveInfo.activityInfo.applicationInfo.flags; in assertHandledBySystemOnly() 95 assertTrue("Package: " + resolveInfo.getComponentInfo().packageName, in assertHandledBySystemOnly() 106 for (ResolveInfo resolveInfo : resolveInfoList) { in assertHandledBySelfOnly() 107 final ActivityInfo ai = resolveInfo.activityInfo; in assertHandledBySelfOnly()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | RequiredComponentsTest.java | 61 ResolveInfo resolveInfo = installers.get(0); in testPackageInstallerPresent() local 62 if (!resolveInfo.activityInfo.applicationInfo.isPrivilegedApp()) { in testPackageInstallerPresent()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | DocumentsContractTest.java | 135 final ResolveInfo resolveInfo = new ResolveInfo(); in testRootUri() local 139 resolveInfo.providerInfo = providerInfo; in testRootUri() 140 infoList.add(resolveInfo); in testRootUri() 174 final ResolveInfo resolveInfo = new ResolveInfo(); in testRootsUri() local 178 resolveInfo.providerInfo = providerInfo; in testRootsUri() 179 infoList.add(resolveInfo); in testRootsUri()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | ActivityLaunchUtils.java | 194 for (ResolveInfo resolveInfo : resolveInfos) { in isHomeScreenShowing() 195 if ((resolveInfo.activityInfo != null) in isHomeScreenShowing() 196 && packageName.equals(resolveInfo.activityInfo.packageName)) { in isHomeScreenShowing()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | InputMethodInfoTest.java | 127 ResolveInfo resolveInfo = ris.get(i); in testInputMethodInfoProperties() local 128 mInputMethodInfo = new InputMethodInfo(mContext, resolveInfo); in testInputMethodInfoProperties() 129 assertService(resolveInfo.serviceInfo, mInputMethodInfo.getServiceInfo()); in testInputMethodInfoProperties()
|