Home
last modified time | relevance | path

Searched refs:pm (Results 1 – 25 of 59) sorted by relevance

123

/platform_testing/utils/permissions/src/com/android/permissionutils/
DGrantPermissionUtil.java22 import android.content.pm.PackageInfo;
23 import android.content.pm.PackageManager;
24 import android.content.pm.PackageManager.NameNotFoundException;
25 import android.content.pm.PermissionInfo;
37 PackageManager pm = context.getPackageManager(); in grantAllPermissions() local
42 pm.grantRuntimePermission(pkgInfo.packageName, permission, myUserHandle()); in grantAllPermissions()
70 PackageManager pm = context.getPackageManager(); in getMissingPermissions() local
75 pi = pm.getPermissionInfo(permission, 0); in getMissingPermissions()
85 int flag = pm.checkPermission(permission, info.packageName); in getMissingPermissions()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DAppVersionRule.java18 import android.content.pm.PackageInfo;
19 import android.content.pm.PackageManager;
20 import android.content.pm.PackageManager.NameNotFoundException;
56 PackageManager pm = in getVersion() local
58 PackageInfo pInfo = pm.getPackageInfo(mPackage, 0); in getVersion()
DNavigationModeRule.java24 import android.content.pm.PackageManager;
60 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in packageExists() local
61 if (pm.getApplicationInfo(overlayPackage, 0 /* flags */) == null) { in packageExists()
DSuspendUnsuspendAppRule.java19 import android.content.pm.PackageManager;
20 import android.content.pm.SuspendDialogInfo;
/platform_testing/libraries/sts-common-util/apps/MainlineModuleDetector/src/com/android/cts/mainlinemoduledetector/
DMainlineModuleDetector.java19 import android.content.pm.PackageManager;
37 PackageManager pm = getApplicationContext().getPackageManager(); in onCreate() local
38 Set<MainlineModule> modules = ModuleDetector.getPlayManagedModules(pm); in onCreate()
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DAuptTestCase.java22 import android.content.pm.PackageInfo;
23 import android.content.pm.PackageManager;
24 import android.content.pm.PackageManager.NameNotFoundException;
175 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in getPackageVersion() local
176 PackageInfo pInfo = pm.getPackageInfo(packageName, 0); in getPackageVersion()
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/
DAbstractStandardAppHelper2.java19 import static android.content.pm.PackageManager.FLAG_PERMISSION_USER_SET;
20 import static android.content.pm.PackageManager.PERMISSION_GRANTED;
33 import android.content.pm.PackageInfo;
34 import android.content.pm.PackageManager;
35 import android.content.pm.PackageManager.NameNotFoundException;
414 PackageManager pm = mInstrumentation.getContext().getPackageManager(); in getVersion() local
415 PackageInfo pInfo = pm.getPackageInfo(pkg, 0); in getVersion()
616 private boolean packageNeedsNotificationPermission(PackageManager pm, String pkg) { in packageNeedsNotificationPermission() argument
619 pInfo = pm.getPackageInfo(pkg, PackageManager.GET_PERMISSIONS); in packageNeedsNotificationPermission()
629 boolean hasNotifPerm = pm.checkPermission(NOTIF_PERM, pkg) == PERMISSION_GRANTED; in packageNeedsNotificationPermission()
[all …]
DAbstractStandardAppHelper.java19 import static android.content.pm.PackageManager.FLAG_PERMISSION_USER_SET;
20 import static android.content.pm.PackageManager.PERMISSION_GRANTED;
33 import android.content.pm.PackageInfo;
34 import android.content.pm.PackageManager;
35 import android.content.pm.PackageManager.NameNotFoundException;
455 PackageManager pm = mInstrumentation.getContext().getPackageManager(); in getVersion() local
456 PackageInfo pInfo = pm.getPackageInfo(pkg, 0); in getVersion()
653 private boolean packageNeedsNotificationPermission(PackageManager pm, String pkg) { in packageNeedsNotificationPermission() argument
656 pInfo = pm.getPackageInfo(pkg, PackageManager.GET_PERMISSIONS); in packageNeedsNotificationPermission()
666 boolean hasNotifPerm = pm.checkPermission(NOTIF_PERM, pkg) == PERMISSION_GRANTED; in packageNeedsNotificationPermission()
[all …]
DIAppHelper.java19 import android.content.pm.PackageManager.NameNotFoundException;
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DOverviewHelper.java22 import android.content.pm.PackageInfo;
23 import android.content.pm.PackageManager;
100 PackageManager pm = mInstrumentation.getContext().getPackageManager(); in populateManyRecentApps() local
101 List<PackageInfo> packages = pm.getInstalledPackages(0); in populateManyRecentApps()
107 Intent intent = pm.getLaunchIntentForPackage(pkg.packageName); in populateManyRecentApps()
238 final PackageManager pm = InstrumentationRegistry.getInstrumentation().getTargetContext() in isRecentsInLauncher() local
245 return pm.resolveService(intent, 0) != null; in isRecentsInLauncher()
DHotseatHelper.java20 import android.content.pm.PackageManager;
/platform_testing/tests/jank/androidtvjanktests/src/com/android/androidtv/janktests/
DSystemAppJankTests.java20 import android.content.pm.PackageManager;
112 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in launchApp() local
113 Intent appIntent = pm.getLaunchIntentForPackage(packageName); in launchApp()
/platform_testing/libraries/flicker/appHelpers/src/android/tools/device/apphelpers/
DClockAppHelper.kt21 import android.content.pm.PackageManager
22 import android.content.pm.ResolveInfo
DCameraAppHelper.kt21 import android.content.pm.PackageManager
22 import android.content.pm.ResolveInfo
DCalendarAppHelper.kt21 import android.content.pm.PackageManager
22 import android.content.pm.ResolveInfo
DNetflixAppHelper.kt21 import android.content.pm.PackageManager
22 import android.content.pm.ResolveInfo
DYouTubeAppHelper.kt21 import android.content.pm.PackageManager
22 import android.content.pm.ResolveInfo
DMessagingAppHelper.kt21 import android.content.pm.PackageManager
DBrowserAppHelper.kt21 import android.content.pm.PackageManager
/platform_testing/libraries/device-collectors/src/main/java/android/device/stressmodes/
DLockContentionStressMode.java21 import android.content.pm.PackageManager;
50 final PackageManager pm = context.getPackageManager(); in LockContentionStressMode() local
51 createLockContentionThread("Contention-PM", pm::holdLock); in LockContentionStressMode()
/platform_testing/libraries/collectors-helper/app/src/com/android/helpers/
DAppVersionHelper.java22 import android.content.pm.PackageInfo;
23 import android.content.pm.PackageManager;
/platform_testing/libraries/uiautomator-helpers/src/android/platform/uiautomator_helpers/
DShellPrivilege.kt17 import android.content.pm.PackageManager
/platform_testing/libraries/system-helpers/package-helper/src/android/system/helpers/
DPackageHelper.java20 import android.content.pm.PackageManager;
/platform_testing/tests/perf/PerfTransitionTest/src/com/android/apptransition/tests/
DAppTransitionTests.java22 import android.content.pm.PackageManager;
23 import android.content.pm.ResolveInfo;
415 PackageManager pm = getInstrumentation().getContext() in createLaunchIntentMappings() local
421 List<ResolveInfo> ris = pm.queryIntentActivities(intentToResolve, 0); in createLaunchIntentMappings()
422 resolveLoop(ris, intentToResolve, pm); in createLaunchIntentMappings()
425 private void resolveLoop(List<ResolveInfo> ris, Intent intentToResolve, PackageManager pm) { in resolveLoop() argument
435 String appName = ri.loadLabel(pm).toString(); in resolveLoop()
/platform_testing/tests/functional/testapks/permissiontestappmv1/src/com/android/permissontestappmv1/
DMainActivity.java27 import android.content.pm.PackageManager;

123