/cts/libs/helpers/core/tests/src/com/android/cts/helpers/ |
D | DeviceInteractionHelperRuleTest.java | 38 @Mock private PackageManager mPackageManager; field in DeviceInteractionHelperRuleTest 60 when(mPackageManager.getApplicationInfo( in testMissingProperty() 67 rule.buildPackageList(null, mPackageManager); in testMissingProperty() 78 when(mPackageManager.getApplicationInfo( in testEmptyProperty() 85 rule.buildPackageList("", mPackageManager); in testEmptyProperty() 96 when(mPackageManager.getApplicationInfo( in testExplicitDefaultProperty() 103 rule.buildPackageList("com.android.cts.helpers.aosp", mPackageManager); in testExplicitDefaultProperty() 115 when(mPackageManager.getApplicationInfo( in testOnePackageExplicitDefault() 118 when(mPackageManager.getApplicationInfo("test.b", PackageManager.GET_META_DATA)) in testOnePackageExplicitDefault() 124 rule.buildPackageList("test.b:com.android.cts.helpers.aosp", mPackageManager); in testOnePackageExplicitDefault() [all …]
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageManagerTest.java | 119 private PackageManager mPackageManager; field in PackageManagerTest 173 mPackageManager = mContext.getPackageManager(); in setup() 190 List<ResolveInfo> listWithDiff = mPackageManager.queryIntentActivityOptions( in testQuery() 195 List<ResolveInfo> listInSame = mPackageManager.queryIntentActivityOptions( in testQuery() 201 mPackageManager.queryIntentActivities(activityIntent, 0); in testQuery() 209 List<InstrumentationInfo> instrumentations = mPackageManager.queryInstrumentation( in testQuery() 215 List<ResolveInfo> services = mPackageManager.queryIntentServices(serviceIntent, in testQuery() 223 broadcastReceivers = mPackageManager.queryBroadcastReceivers(broadcastIntent, 0); in testQuery() 228 List<PermissionInfo> permissions = mPackageManager.queryPermissionsByGroup( in testQuery() 232 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(PACKAGE_NAME, 0); in testQuery() [all …]
|
D | PackageItemInfoIconTest.java | 52 private PackageManager mPackageManager; field in PackageItemInfoIconTest 57 mPackageManager = mContext.getPackageManager(); in before() 68 Drawable icon = mPackageManager.loadUnbadgedItemIcon(itemInfo, null); in testSystemDefault() 78 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(PACKAGE_NAME, 0); in testFromAppInfo() 82 Drawable icon = mPackageManager.loadUnbadgedItemIcon(itemInfo, appInfo); in testFromAppInfo() 92 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(PACKAGE_NAME, 0); in testFromActivity() 97 Drawable icon = mPackageManager.loadUnbadgedItemIcon(itemInfo, appInfo); in testFromActivity() 110 Drawable icon = itemInfo.loadUnbadgedIcon(mPackageManager); in testDelegatedSystemDefault() 120 ApplicationInfo appInfo = mPackageManager.getApplicationInfo(PACKAGE_NAME, 0); in testDelegatedFromAppInfo() 122 Drawable icon = appInfo.loadUnbadgedIcon(mPackageManager); in testDelegatedFromAppInfo() [all …]
|
D | InstantAppTest.java | 44 private PackageManager mPackageManager; field in InstantAppTest 49 mPackageManager = getContext().getPackageManager(); in setUp() 60 mPackageManager.queryIntentServices(resolverIntent, resolveFlags); in testInstantAppResolverQuery() 74 mPackageManager.queryIntentActivities(intent, resolveFlags); in testInstantAppInstallerQuery()
|
D | PackageItemInfoTest.java | 38 private PackageManager mPackageManager; field in PackageItemInfoTest 43 mPackageManager = getContext().getPackageManager(); in setUp() 53 assertEquals(ACTIVITY_NAME, pkgItemInfo.loadLabel(mPackageManager)); in testLoadMethods() 55 assertNotNull(pkgItemInfo.loadIcon(mPackageManager)); in testLoadMethods() 58 XmlResourceParser parser = pkgItemInfo.loadXmlMetaData(mPackageManager, METADATA_NAME); in testLoadMethods() 99 mPackageManager.getActivityInfo(componentName, PackageManager.GET_META_DATA); in getTestItemInfo()
|
D | FeatureTest.java | 37 private PackageManager mPackageManager; field in FeatureTest 47 mPackageManager = getContext().getPackageManager(); in setUp() 51 mPackageManager.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN); in setUp() 53 mPackageManager.hasSystemFeature(PackageManager.FEATURE_MANAGED_USERS); in setUp()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | SettingsIntentsTest.java | 31 private PackageManager mPackageManager; field in SettingsIntentsTest 40 mPackageManager = getActivity().getPackageManager(); in setUp() 44 assertNotNull(mPackageManager.resolveActivity( in testSettings() 49 assertNotNull(mPackageManager.resolveActivity( in testAccounts() 54 assertNotNull(mPackageManager.resolveActivity( in testApps() 60 assertNotNull(mPackageManager.resolveActivity( in testSecurity() 65 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_NFC)) { in testNfc() 66 assertNotNull(mPackageManager.resolveActivity( in testNfc() 72 assertNotNull(mPackageManager.resolveActivity( in testLocation()
|
D | CrossProfileIntentFilterTest.java | 42 private PackageManager mPackageManager; field in CrossProfileIntentFilterTest 56 mPackageManager = getActivity().getPackageManager(); in setUp() 73 mPackageManager.queryIntentActivities( in testClearCrossProfileIntentFilters() 80 assertTrue(mPackageManager.queryIntentActivities( in testClearCrossProfileIntentFilters() 87 assertEquals(0, mPackageManager.queryIntentActivities( in testAddCrossProfileIntentFilter_primary() 96 mPackageManager.queryIntentActivities( in testAddCrossProfileIntentFilter_primary() 105 assertEquals(1, mPackageManager.queryIntentActivities( in testAddCrossProfileIntentFilter_all() 114 mPackageManager.queryIntentActivities( in testAddCrossProfileIntentFilter_all() 123 assertEquals(1, mPackageManager.queryIntentActivities( in testAddCrossProfileIntentFilter_work() 133 mPackageManager.queryIntentActivities( in testAddCrossProfileIntentFilter_work()
|
D | PrimaryUserTest.java | 39 private PackageManager mPackageManager; field in PrimaryUserTest 52 mPackageManager = getActivity().getPackageManager(); in setUp() 56 assertEquals(1, mPackageManager.queryIntentActivities( in testAddCrossProfileIntentFilter_primary() 63 assertEquals(2, mPackageManager.queryIntentActivities( in testAddCrossProfileIntentFilter_all() 71 assertEquals(1, mPackageManager.queryIntentActivities( in testAddCrossProfileIntentFilter_managed()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | PackageManagerRequiringPermissionsTest.java | 34 private PackageManager mPackageManager; field in PackageManagerRequiringPermissionsTest 39 mPackageManager = getContext().getPackageManager(); in setUp() 40 assertNotNull(mPackageManager); in setUp() 50 mPackageManager.setApplicationEnabledSetting(PACKAGE_NAME, in testSetApplicationEnabledSetting() 69 mPackageManager.addPreferredActivity(filter, 0, null, null); in testAddPreferredActivity() 86 mPackageManager.clearPackagePreferredActivities(null); in testClearPackagePreferredActivities() 101 mPackageManager.verifyPendingInstall(1, 1); in testVerifyPendingInstall() 116 mPackageManager.extendVerificationTimeout(1, 1, 10000); in testExtendVerificationTimeout()
|
/cts/tests/suspendapps/permission/src/android/suspendapps/permission/cts/ |
D | NegativePermissionsTest.java | 51 private PackageManager mPackageManager; field in NegativePermissionsTest 56 mPackageManager = context.getPackageManager(); in setUp() 75 () -> mPackageManager.setPackagesSuspended(PACKAGES_TO_SUSPEND, true, null, null, in setPackagesSuspended() 78 () -> mPackageManager.setPackagesSuspended(PACKAGES_TO_SUSPEND, false, null, null, in setPackagesSuspended() 85 () -> mPackageManager.setPackagesSuspended(PACKAGES_TO_SUSPEND, true, null, null, in setPackagesSuspended_deprecated() 88 () -> mPackageManager.setPackagesSuspended(PACKAGES_TO_SUSPEND, false, null, null, in setPackagesSuspended_deprecated() 95 () -> mPackageManager.setDistractingPackageRestrictions(PACKAGES_TO_SUSPEND, in setDistractingPackageRestrictions() 99 () -> mPackageManager.setDistractingPackageRestrictions(PACKAGES_TO_SUSPEND, in setDistractingPackageRestrictions() 103 () -> mPackageManager.setDistractingPackageRestrictions(PACKAGES_TO_SUSPEND, in setDistractingPackageRestrictions() 107 () -> mPackageManager.setDistractingPackageRestrictions(PACKAGES_TO_SUSPEND, in setDistractingPackageRestrictions()
|
/cts/tests/app/src/android/app/cts/ |
D | SystemFeaturesTest.java | 75 private PackageManager mPackageManager; field in SystemFeaturesTest 89 mPackageManager = mContext.getPackageManager(); in setUp() 91 if (mPackageManager.getSystemAvailableFeatures() != null) { in setUp() 92 for (FeatureInfo feature : mPackageManager.getSystemAvailableFeatures()) { in setUp() 155 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_EXTERNAL)); in testCameraFeatures() 243 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT) || in checkFrontCamera() 244 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_EXTERNAL)); in checkFrontCamera() 248 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT) || in checkFrontCamera() 249 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_EXTERNAL)); in checkFrontCamera() 286 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_LEANBACK)) { in testGamepadFeature() [all …]
|
D | AttributionTagsTest.java | 52 private PackageManager mPackageManager; field in AttributionTagsTest 58 mPackageManager = mContext.getPackageManager(); in setUp() 66 mPackageManager.getActivityInfo(intent.getComponent(), 0).attributionTags[0]); in testActivity() 81 mPackageManager.getActivityInfo(intent.getComponent(), 0).attributionTags[0]); in testActivityAlias() 94 mPackageManager.getServiceInfo(intent.getComponent(), 0).attributionTags[0]); in testService() 106 mPackageManager.getProviderInfo(intent.getComponent(), 0).attributionTags[0]); in testProvider() 118 mPackageManager.getReceiverInfo(intent.getComponent(), 0).attributionTags[0]); in testReceiver()
|
/cts/tests/tests/hardware/src/android/hardware/cts/ |
D | SecurityModelFeatureTest.java | 46 private PackageManager mPackageManager; field in SecurityModelFeatureTest 55 mPackageManager = InstrumentationRegistry.getTargetContext().getPackageManager(); in setUp() 57 mPackageManager.hasSystemFeature(PackageManager.FEATURE_SECURITY_MODEL_COMPATIBLE); in setUp() 63 assumeTrue(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEVISION)); in testTv() 70 assumeTrue(mPackageManager.hasSystemFeature(PackageManager.FEATURE_WATCH)); in testWatch() 77 assumeTrue(mPackageManager.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)); in testAuto()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | SipProfileTest.java | 32 private PackageManager mPackageManager; field in SipProfileTest 36 mPackageManager = getContext().getPackageManager(); in setUp() 41 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_SIP) in testSetCallingUid() 42 || !mPackageManager.hasSystemFeature(PackageManager.FEATURE_SIP_VOIP)) { in testSetCallingUid()
|
D | SmsMessageTest.java | 45 private PackageManager mPackageManager; field in SmsMessageTest 93 mPackageManager = getContext().getPackageManager(); in setUp() 98 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testCreateFromPdu() 99 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CDMA)) { in testCreateFromPdu() 182 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testCPHSVoiceMail() 183 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CDMA)) { in testCPHSVoiceMail() 226 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testGetUserData() 227 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CDMA)) { in testGetUserData() 246 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetSubmitPdu() 287 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testEmailGateway() [all …]
|
D | TelephonyManagerTest.java | 148 private PackageManager mPackageManager; field in TelephonyManagerTest 334 mPackageManager = getContext().getPackageManager(); in setUp() 428 PackageInfo pInfo = mPackageManager.getPackageInfo(pkgName, in getCertHash() 444 return mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in hasCellular() 502 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testDevicePolicyApn() 773 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetCallForwarding() 839 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testSetCallForwarding() 900 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetCallWaitingStatus() 920 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testSetCallWaitingStatus() 957 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetRadioHalVersion() [all …]
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | TelecomAvailabilityTest.java | 44 private PackageManager mPackageManager; field in TelecomAvailabilityTest 51 mPackageManager = getInstrumentation().getTargetContext().getPackageManager(); in setUp() 62 PackageInfo packageInfo = findOnlyTelecomPackageInfo(mPackageManager); in testTelecomIsPreinstalledAndSystem() 80 mPackageManager.queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY); in testTelecomHandlesCallIntents() 112 mPackageManager.queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY); in testTelecomCanManageBlockedNumbers() 131 assertEquals(1, mPackageManager.queryIntentActivities(intentWithoutNumber, in testCreateLaunchEmergencyDialerIntent() 136 assertEquals(1, mPackageManager.queryIntentActivities(intentWithNumber, in testCreateLaunchEmergencyDialerIntent()
|
/cts/tests/tests/systemintents/src/android/systemintents/cts/ |
D | TestSystemIntents.java | 61 private PackageManager mPackageManager; field in TestSystemIntents 94 mPackageManager = mContext.getPackageManager(); in setUp() 101 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_LEANBACK)) { in testSystemIntents() 105 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testSystemIntents() 109 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_INPUT_METHODS)) { in testSystemIntents() 120 final ResolveInfo ri = mPackageManager.resolveActivity(e.intent, in testSystemIntents()
|
D | TestManageOverlayPermissionIntents.java | 49 private PackageManager mPackageManager; field in TestManageOverlayPermissionIntents 56 mPackageManager = mContext.getPackageManager(); in setUp() 105 ResolveInfo genericResolveInfo = mPackageManager.resolveActivity(genericIntent, 0); in testManageOverlayPermissionIntentWithDataResolvesToSameIntentWithoutData() 106 ResolveInfo appSpecificResolveInfo = mPackageManager.resolveActivity(appSpecificIntent, 0); in testManageOverlayPermissionIntentWithDataResolvesToSameIntentWithoutData()
|
/cts/tests/tests/telephony2/src/android/telephony2/cts/ |
D | TelephonyManagerNoPermissionTest.java | 38 private PackageManager mPackageManager; field in TelephonyManagerNoPermissionTest 45 mPackageManager = mContext.getPackageManager(); in setUp() 57 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetCallState_redirectToTelecom() 75 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetCallStateForSubscription()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | ApplicationHiddenParentTest.java | 29 private PackageManager mPackageManager; field in ApplicationHiddenParentTest 41 mPackageManager = mContext.getPackageManager(); in setUp() 57 assertThat(mPackageManager.getPackageInfo(SYSTEM_PACKAGE_TO_HIDE, 0)).isNotNull(); in testSetApplicationHidden_systemPackage() 63 assertThat(mPackageManager.getPackageInfo(SYSTEM_PACKAGE_TO_HIDE, in testSetApplicationHidden_systemPackage() 70 assertThat(mPackageManager.getPackageInfo(SYSTEM_PACKAGE_TO_HIDE, 0)).isNotNull(); in testSetApplicationHidden_systemPackage()
|
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/ |
D | UsbVoiceCommandTest.java | 57 private final PackageManager mPackageManager = field in UsbVoiceCommandTest 76 mPackageManager.setApplicationEnabledSetting( in setPackageState() 81 mPackageManager.setApplicationEnabledSetting( in setPackageState() 91 final List<ResolveInfo> list = mPackageManager.queryIntentActivities(intent, in addExcludedPackages() 156 return mPackageManager.hasSystemFeature(PackageManager.FEATURE_LEANBACK) in shouldSkipVolumeTest()
|
/cts/hostsidetests/packagemanager/preferredactivity/apps/testapp/src/com/android/cts/packagemanager/preferredactivity/app/ |
D | PreferredActivityDeviceTests.java | 44 private final PackageManager mPackageManager = mContext.getPackageManager(); field in PreferredActivityDeviceTests 53 mPackageManager.addPreferredActivity(intentFilter, IntentFilter.MATCH_CATEGORY_HOST, in testAddOnePreferredActivity() 66 mPackageManager.getPreferredActivities(outFilters, outActivities, PACKAGE_NAME); in testHasPreferredActivities()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | ByodFlowTestHelper.java | 15 private PackageManager mPackageManager; field in ByodFlowTestHelper 19 this.mPackageManager = mContext.getPackageManager(); in ByodFlowTestHelper() 80 mPackageManager.setComponentEnabledSetting(new ComponentName(mContext, component), in setComponentsEnabledState()
|