Home
last modified time | relevance | path

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

/cts/tests/tests/permission/src/android/permission/cts/
DUndefinedGroupPermissionTest.kt48 private var mPm: PackageManager? = null variable in android.permission.cts.UndefinedGroupPermissionTest
63 mPm = mContext?.packageManager in setup()
106 Assert.assertEquals(mPm!!.checkPermission(CAMERA, APP_PKG_NAME), in testCustomPermissionGrantedAlone()
108 Assert.assertEquals(mPm!!.checkPermission(RECORD_AUDIO, APP_PKG_NAME), in testCustomPermissionGrantedAlone()
110 Assert.assertEquals(mPm!!.checkPermission(TEST, APP_PKG_NAME), in testCustomPermissionGrantedAlone()
118 Assert.assertEquals(mPm!!.checkPermission(CAMERA, APP_PKG_NAME), in testCustomPermissionGrantedAlone()
120 Assert.assertEquals(mPm!!.checkPermission(RECORD_AUDIO, APP_PKG_NAME), in testCustomPermissionGrantedAlone()
122 Assert.assertEquals(mPm!!.checkPermission(TEST, APP_PKG_NAME), in testCustomPermissionGrantedAlone()
149 mPm!!.grantRuntimePermission( in testOtherGroupPermissionsNotGranted()
152 Assert.assertEquals("$grantedPerm not granted.", mPm!!.checkPermission(grantedPerm, in testOtherGroupPermissionsNotGranted()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DVulkanDeqpLevelTest.java54 private PackageManager mPm; field in VulkanDeqpLevelTest
59 mPm = InstrumentationRegistry.getTargetContext().getPackageManager(); in setup()
60 FeatureInfo[] features = mPm.getSystemAvailableFeatures(); in setup()
88 mPm.hasSystemFeature(PackageManager.FEATURE_VULKAN_DEQP_LEVEL, in testVulkanDeqpLevel()
DOpenGlEsDeqpLevelTest.java48 private PackageManager mPm; field in OpenGlEsDeqpLevelTest
52 mPm = InstrumentationRegistry.getTargetContext().getPackageManager(); in setup()
66 mPm.hasSystemFeature(PackageManager.FEATURE_OPENGLES_DEQP_LEVEL, in testOpenGlEsDeqpLevel()
DVulkanFeaturesTest.java72 private PackageManager mPm; field in VulkanFeaturesTest
82 mPm = InstrumentationRegistry.getTargetContext().getPackageManager(); in setup()
83 FeatureInfo features[] = mPm.getSystemAvailableFeatures(); in setup()
229 if (!mPm.hasSystemFeature(PackageManager.FEATURE_VR_MODE_HIGH_PERFORMANCE)) in testVulkanVersionForVrHighPerformance()
/cts/hostsidetests/appsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/
DEncryptionAppTest.java78 private PackageManager mPm; field in EncryptionAppTest
89 mPm = mCe.getPackageManager(); in setUp()
263 mPm.resolveContentProvider("com.android.cts.encryptionapp.aware", 0)); in assertLocked()
265 mPm.resolveContentProvider("com.android.cts.encryptionapp.unaware", 0)); in assertLocked()
322 mPm.resolveContentProvider("com.android.cts.encryptionapp.aware", 0)); in assertUnlocked()
324 mPm.resolveContentProvider("com.android.cts.encryptionapp.unaware", 0)); in assertUnlocked()
367 assertEquals("activity", count, mPm.queryIntentActivities(intent, flags).size()); in assertQuery()
368 assertEquals("service", count, mPm.queryIntentServices(intent, flags).size()); in assertQuery()
369 assertEquals("provider", count, mPm.queryIntentContentProviders(intent, flags).size()); in assertQuery()
370 assertEquals("receiver", count, mPm.queryBroadcastReceivers(intent, flags).size()); in assertQuery()
[all …]
/cts/tests/tests/telephony/sdk28/src/android/telephony/sdk28/cts/
DCellInfoTest.java51 private PackageManager mPm; field in CellInfoTest
65 mPm = getContext().getPackageManager(); in setUp()
76 if (!mPm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testCellInfoSdk28()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSignalStrengthTest.java60 private PackageManager mPm; field in SignalStrengthTest
73 mPm = getContext().getPackageManager(); in setUp()
78 if (!mPm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testSignalStrength()
DCellInfoTest.java184 private PackageManager mPm; field in CellInfoTest
250 mPm = getContext().getPackageManager(); in setUp()
262 if (!mPm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) return; in testPhoneStateListenerCallback()
311 if(!(mPm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY))) { in testCellInfo()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DActivityManagerGetConfigTests.java72 PackageManager mPm; field in ActivityManagerGetConfigTests
78 mPm = mContext.getPackageManager(); in setUp()
323 List<SharedLibraryInfo> slibs = mPm.getSharedLibraries(0); in checkDeviceConfig()
332 FeatureInfo[] features = mPm.getSystemAvailableFeatures(); in checkDeviceConfig()
/cts/tests/tests/content/src/android/content/cts/
DIntentTest.java59 private PackageManager mPm; field in IntentTest
76 mPm = mContext.getPackageManager(); in setUp()
748 final ComponentName target = emptyIntent.resolveActivity(mPm); in testResolveActivityEmpty()
757 final ComponentName target = intent.resolveActivity(mPm); in testResolveActivitySingleMatch()
768 final ComponentName target = intent.resolveActivity(mPm); in testResolveActivityShortcutMatch()
778 final ComponentName target = intent.resolveActivity(mPm); in testResolveActivityMultipleMatch()
784 if (mPm.checkPermission(android.Manifest.permission.SET_PREFERRED_APPLICATIONS, pkgName) in testResolveActivityMultipleMatch()
1318 assertNotNull(target.resolveActivity(mPm)); in testCreateChooser()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DNetworkUsageStatsTest.java164 private PackageManager mPm; field in NetworkUsageStatsTest
232 mPm = getInstrumentation().getContext().getPackageManager(); in setUp()
325 boolean hasFeature = mPm.hasSystemFeature( in shouldTestThisNetworkType()