Home
last modified time | relevance | path

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

/cts/tests/tests/uidmigration/src/android/uidmigration/cts/
DSharedUserMigrationTest.kt40 private lateinit var mPm: PackageManager variable in android.uidmigration.cts.SharedUserMigrationTest
45 mPm = mContext.packageManager in setup()
58 val pkgs = mPm.getPackagesForUid(uid).assertNotNull() in reset()
69 var pkgInfo = mPm.getPackageArchiveInfo(InstallTest.APK4, FLAG_ZERO).assertNotNull() in testNewInstallOnly()
73 var pkgs = mPm.getPackagesForUid(uid).assertNotNull() in testNewInstallOnly()
76 pkgInfo = mPm.getPackageInfo(Const.INSTALL_TEST_PKG, FLAG_ZERO) in testNewInstallOnly()
85 pkgs = mPm.getPackagesForUid(uid).assertNotNull() in testNewInstallOnly()
88 pkgInfo = mPm.getPackageInfo(Const.INSTALL_TEST_PKG, FLAG_ZERO) in testNewInstallOnly()
92 val newPkgInfo = mPm.getPackageInfo(Const.INSTALL_TEST_PKG, FLAG_ZERO) in testNewInstallOnly()
102 var pkgs = mPm.getPackagesForUid(uid).assertNotNull() in testBestEffort()
[all …]
DAppIdMigrationTest.kt47 private lateinit var mPm: PackageManager variable in android.uidmigration.cts.AppIdMigrationTest
52 mPm = mContext.packageManager in setup()
71 val uid = mPm.getPackageUid(Const.INSTALL_TEST_PKG, PackageInfoFlags.of(0)) in <lambda>()
72 var pkgs = mPm.getPackagesForUid(uid).assertNotNull() in <lambda>()
80 pkgs = mPm.getPackagesForUid(uid).assertNotNull() in <lambda>()
126 val oldUid = mPm.getPackageUid(Const.DATA_TEST_PKG, PackageInfoFlags.of(0)) in <lambda>()
136 val newUid = mPm.getPackageUid(Const.DATA_TEST_PKG, PackageInfoFlags.of(0)) in <lambda>()
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/content/pm/
DCarPackageManagerPermissionTest.java45 private CarPackageManager mPm; field in CarPackageManagerPermissionTest
50 mPm = (CarPackageManager) mCar.getCarManager(Car.PACKAGE_SERVICE); in setUp()
55 assertThrows(SecurityException.class, () -> mPm.restartTask(0)); in testRestartTask()
62 assertThrows(SecurityException.class, () -> mPm.setAppBlockingPolicy(packageName, policy, in testSetAppBlockingPolicy()
68 assertThat(mPm.isActivityDistractionOptimized("blah", "someClass")).isFalse(); in testIsActivityDistractionOptimized()
73 assertThat(mPm.isServiceDistractionOptimized("blah", "someClass")).isFalse(); in testIsServiceDistractionOptimized()
78 assertThat(mPm.isActivityBackedBySafeActivity(new ComponentName("blah", "someClass"))) in testIsActivityBackedBySafeActivity()
84 assertThrows(SecurityException.class, () -> mPm.getTargetCarVersion("Y U NO THROW?")); in testGetTargetCarApiVersion()
90 assertThrows(SecurityException.class, () -> mPm.requiresDisplayCompat("blah")); in testActivityRequiresDisplayCompatFailsWithoutPermission()
98 assertThat(mPm.requiresDisplayCompat("android.car.cts.permissiontest")) in testActivityRequiresDisplayCompatWorksWithPermission()
/cts/hostsidetests/securitybulletin/test-apps/BUG-237291548/src/android/security/cts/BUG_237291548/
DDeviceTest.java38 PackageManager mPm = getApplicationContext().getPackageManager(); field in DeviceTest
42 Set<String> mimeTypes = mPm.getMimeGroup(MIME_GROUP); in testExceedGroupLimit()
46 mPm.setMimeGroup(MIME_GROUP, mimeTypes); in testExceedGroupLimit()
48 mimeTypes = mPm.getMimeGroup(MIME_GROUP); in testExceedGroupLimit()
51 mPm.setMimeGroup(MIME_GROUP, mimeTypes); in testExceedGroupLimit()
58 mPm.setMimeGroup(MIME_GROUP, mimeTypes); in testExceedMimeLengthLimit()
/cts/tests/tests/content/src/android/content/pm/cts/
DPermissionMaxSdkVersionCreateTest.java40 private final PackageManager mPm = field in PermissionMaxSdkVersionCreateTest
46 PermissionInfo permissionInfo = mPm.getPermissionInfo(NO_MAX_SDK, 0); in testPermissionNoMaxSdkVersionCreated()
56 PermissionInfo permissionInfo = mPm.getPermissionInfo(CURRENT_MAX_SDK, 0); in testPermissionCurrentMaxSdkVersionCreated()
66 PermissionInfo permissionInfo = mPm.getPermissionInfo(MAX_SDK_CREATE, 0); in testPermissionMaxSdkVersionCreated()
75 mPm.getPermissionInfo(MAX_SDK_IGNORE, 0); in testPermissionMaxSdkVersionIgnored()
/cts/hostsidetests/appsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/
DEncryptionAppTest.java79 private PackageManager mPm; field in EncryptionAppTest
90 mPm = mCe.getPackageManager(); in setUp()
271 mPm.resolveContentProvider("com.android.cts.encryptionapp.aware", 0)); in assertLocked()
273 mPm.resolveContentProvider("com.android.cts.encryptionapp.unaware", 0)); in assertLocked()
330 mPm.resolveContentProvider("com.android.cts.encryptionapp.aware", 0)); in assertUnlocked()
332 mPm.resolveContentProvider("com.android.cts.encryptionapp.unaware", 0)); in assertUnlocked()
385 assertEquals("activity", count, mPm.queryIntentActivities(intent, flags).size()); in assertQuery()
386 assertEquals("service", count, mPm.queryIntentServices(intent, flags).size()); in assertQuery()
387 assertEquals("provider", count, mPm.queryIntentContentProviders(intent, flags).size()); in assertQuery()
388 assertEquals("receiver", count, mPm.queryBroadcastReceivers(intent, flags).size()); in assertQuery()
[all …]
/cts/tests/tests/telephony3/src/android/telephony3/cts/
DCellInfoTest.java50 private PackageManager mPm; field in CellInfoTest
60 mPm = getContext().getPackageManager(); in setUp()
71 if (!mPm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testCellInfoSdk28()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSignalStrengthTest.java71 private PackageManager mPm; field in SignalStrengthTest
89 mPm = getContext().getPackageManager(); in setUp()
95 if (!mPm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_RADIO_ACCESS)) { in testSignalStrength()
101 if (!mPm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testSignalStrength()
DCellInfoTest.java195 private PackageManager mPm; field in CellInfoTest
265 mPm = getContext().getPackageManager(); in setUp()
267 assumeTrue(mPm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_RADIO_ACCESS)); in setUp()
269 assumeTrue(mPm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)); in setUp()
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/
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/graphics/src/android/graphics/cts/
DVulkanFeaturesTest.java248 private PackageManager mPm; field in VulkanFeaturesTest
260 mPm = InstrumentationRegistry.getTargetContext().getPackageManager(); in setup()
261 FeatureInfo features[] = mPm.getSystemAvailableFeatures(); in setup()
440 if (!mPm.hasSystemFeature(PackageManager.FEATURE_VR_MODE_HIGH_PERFORMANCE)) in testVulkanVersionForVrHighPerformance()
/cts/tests/ondeviceintelligence/src/android/ondeviceintelligence/cts/
DCtsIsolatedInferenceService.java214 PackageManager mPm = getPackageManager(); in processRequest() local
216 bundle.putString(TEST_KEY, mPm.getNameForUid(Process.myUid())); in processRequest()
/cts/tests/tests/content/src/android/content/cts/
DIntentTest.java99 private PackageManager mPm; field in IntentTest
126 mPm = mContext.getPackageManager(); in setUp()
976 final ComponentName target = emptyIntent.resolveActivity(mPm); in testResolveActivityEmpty()
987 final ComponentName target = intent.resolveActivity(mPm); in testResolveActivitySingleMatch()
1000 final ComponentName target = intent.resolveActivity(mPm); in testResolveActivityShortcutMatch()
1012 final ComponentName target = intent.resolveActivity(mPm); in testResolveActivityMultipleMatch()
1018 if (mPm.checkPermission(android.Manifest.permission.SET_PREFERRED_APPLICATIONS, pkgName) in testResolveActivityMultipleMatch()
1574 assertNotNull(target.resolveActivity(mPm)); in testCreateChooser()