Home
last modified time | relevance | path

Searched refs:mPm (Results 1 – 8 of 8) sorted by relevance

/cts/tests/tests/packageinstaller/externalsources/src/android/packageinstaller/externalsources/cts/
DExternalSourcesTest.java43 private PackageManager mPm; field in ExternalSourcesTest
50 mPm = mContext.getPackageManager(); in setUp()
66 final boolean isTrusted = mPm.canRequestPackageInstalls(); in blockedSourceTest()
74 final boolean isTrusted = mPm.canRequestPackageInstalls(); in allowedSourceTest()
82 final boolean isTrusted = mPm.canRequestPackageInstalls(); in defaultSourceTest()
90 ResolveInfo info = mPm.resolveActivity(manageUnknownSources, 0); in testManageUnknownSourcesExists()
DExternalSourcesInstantAppsTest.java43 private PackageManager mPm; field in ExternalSourcesInstantAppsTest
49 mPm = mContext.getPackageManager(); in setUp()
60 final boolean isTrusted = mPm.canRequestPackageInstalls(); in blockedSourceTest()
67 final boolean isTrusted = mPm.canRequestPackageInstalls(); in allowedSourceTest()
74 final boolean isTrusted = mPm.canRequestPackageInstalls(); in defaultSourceTest()
/cts/hostsidetests/appsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/
DEncryptionAppTest.java58 private PackageManager mPm; field in EncryptionAppTest
69 mPm = mCe.getPackageManager(); in setUp()
194 mPm.resolveContentProvider("com.android.cts.encryptionapp.aware", 0)); in assertLocked()
196 mPm.resolveContentProvider("com.android.cts.encryptionapp.unaware", 0)); in assertLocked()
236 mPm.resolveContentProvider("com.android.cts.encryptionapp.aware", 0)); in assertUnlocked()
238 mPm.resolveContentProvider("com.android.cts.encryptionapp.unaware", 0)); in assertUnlocked()
267 assertEquals("activity", count, mPm.queryIntentActivities(intent, flags).size()); in assertQuery()
268 assertEquals("service", count, mPm.queryIntentServices(intent, flags).size()); in assertQuery()
269 assertEquals("provider", count, mPm.queryIntentContentProviders(intent, flags).size()); in assertQuery()
270 assertEquals("receiver", count, mPm.queryBroadcastReceivers(intent, flags).size()); in assertQuery()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DVulkanFeaturesTest.java67 private PackageManager mPm; field in VulkanFeaturesTest
76 mPm = InstrumentationRegistry.getTargetContext().getPackageManager(); in setup()
77 FeatureInfo features[] = mPm.getSystemAvailableFeatures(); in setup()
191 if (!mPm.hasSystemFeature(PackageManager.FEATURE_VR_MODE_HIGH_PERFORMANCE)) in testVulkanVersionForVrHighPerformance()
/cts/tests/framework/base/activitymanager/src/android/server/am/
DActivityManagerGetConfigTests.java70 PackageManager mPm; field in ActivityManagerGetConfigTests
76 mPm = mContext.getPackageManager(); in setUp()
327 List<SharedLibraryInfo> slibs = mPm.getSharedLibraries(0); in checkDeviceConfig()
336 FeatureInfo[] features = mPm.getSystemAvailableFeatures(); in checkDeviceConfig()
/cts/tests/tests/telephony/src/android/telephony/cts/
DCellInfoTest.java111 private PackageManager mPm; field in CellInfoTest
119 mPm = getContext().getPackageManager(); in setUp()
124 if(! (mPm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY))) { in testCellInfo()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DNetworkUsageStatsTest.java159 private PackageManager mPm; field in NetworkUsageStatsTest
227 mPm = getInstrumentation().getContext().getPackageManager(); in setUp()
304 boolean hasFeature = mPm.hasSystemFeature( in shouldTestThisNetworkType()
/cts/tests/tests/content/src/android/content/cts/
DIntentTest.java58 private PackageManager mPm; field in IntentTest
73 mPm = mContext.getPackageManager(); in setUp()
720 final ComponentName target = emptyIntent.resolveActivity(mPm); in testResolveActivityEmpty()
729 final ComponentName target = intent.resolveActivity(mPm); in testResolveActivitySingleMatch()
740 final ComponentName target = intent.resolveActivity(mPm); in testResolveActivityShortcutMatch()
749 final ComponentName target = intent.resolveActivity(mPm); in testResolveActivityMultipleMatch()
755 if (mPm.checkPermission(android.Manifest.permission.SET_PREFERRED_APPLICATIONS, pkgName) in testResolveActivityMultipleMatch()