Searched refs:PackageManager (Results 1 – 25 of 42) sorted by relevance
12
24 import android.content.pm.PackageManager;37 private final PackageManager mPm = mContext.getPackageManager();62 PackageManager.GET_PERMISSIONS); in testPrivPermissionIsGranted()67 PackageManager.GET_PERMISSIONS); in testPrivPermissionIsGranted()72 PackageManager.GET_PERMISSIONS); in testPrivPermissionIsGranted()77 PackageManager.GET_PERMISSIONS); in testPrivPermissionIsGranted()
25 import android.content.pm.PackageManager;44 private final PackageManager mPm = mContext.getPackageManager();84 COMPRESSED_APEX_PACKAGE_NAME, PackageManager.MATCH_APEX); in testDecompressedApexIsConsideredFactory()107 COMPRESSED_APEX_PACKAGE_NAME, PackageManager.MATCH_APEX); in testCapexToApexSwitch()120 COMPRESSED_APEX_PACKAGE_NAME, PackageManager.MATCH_APEX); in testDecompressedApexVersionAlwaysHasSameVersionAsCapex()132 COMPRESSED_APEX_PACKAGE_NAME, PackageManager.MATCH_APEX); in testCompressedApexCanBeRolledBack_Commit()144 COMPRESSED_APEX_PACKAGE_NAME, PackageManager.MATCH_APEX); in testCompressedApexCanBeRolledBack_Rollback()158 COMPRESSED_APEX_PACKAGE_NAME, PackageManager.MATCH_APEX); in testCompressedApexCanBeRolledBack_Verify()
25 import android.content.pm.PackageManager;44 private final PackageManager mPm = mContext.getPackageManager();61 assertThrows(PackageManager.NameNotFoundException.class, in testAppWithMaxSdk31()
26 import android.content.pm.PackageManager;77 final PackageManager pm = in testRebootlessUpdate()80 PackageInfo apex = pm.getPackageInfo(APEX_PACKAGE_NAME, PackageManager.MATCH_APEX); in testRebootlessUpdate()88 PackageInfo apex = pm.getPackageInfo(APEX_PACKAGE_NAME, PackageManager.MATCH_APEX); in testRebootlessUpdate()
21 import android.content.pm.PackageManager;44 if (permissionsCheck != PackageManager.PERMISSION_GRANTED) { in onCreate()57 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()
12 ### PackageManager flags an app as ephemeral at install time.
19 import android.content.pm.PackageManager;333 PackageManager.FEATURE_CONTEXT_HUB); in checkDeviceShouldRunTest()
27 import android.content.pm.PackageManager;487 if (grantResults.length != 1 || grantResults[0] != PackageManager.PERMISSION_GRANTED) { in onRequestPermissionsResult()615 != PackageManager.PERMISSION_GRANTED) { in openCamera()
26 // APEX Name. Note that this can be different from what PackageManager sees.
40 `PackageManager.hasSystemFeature()`