Home
last modified time | relevance | path

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

/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/aupt-lib/src/android/support/test/aupt/
DAuptTestCase.java42 import android.content.pm.PackageInfo;
43 import android.content.pm.PackageManager;
44 import android.content.pm.PackageManager.NameNotFoundException;
192 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in getPackageVersion() local
193 PackageInfo pInfo = pm.getPackageInfo(packageName, 0); in getPackageVersion()
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DOverviewHelper.java22 import android.content.pm.PackageInfo;
23 import android.content.pm.PackageManager;
99 PackageManager pm = mInstrumentation.getContext().getPackageManager(); in populateManyRecentApps() local
100 List<PackageInfo> packages = pm.getInstalledPackages(0); in populateManyRecentApps()
106 Intent intent = pm.getLaunchIntentForPackage(pkg.packageName); in populateManyRecentApps()
237 final PackageManager pm = InstrumentationRegistry.getInstrumentation().getTargetContext() in isRecentsInLauncher() local
244 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;
111 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in launchApp() local
112 Intent appIntent = pm.getLaunchIntentForPackage(packageName); in launchApp()
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/
DIAppHelper.java19 import android.content.pm.PackageManager.NameNotFoundException;
DAbstractStandardAppHelper.java25 import android.content.pm.PackageInfo;
26 import android.content.pm.PackageManager;
27 import android.content.pm.PackageManager.NameNotFoundException;
216 PackageManager pm = mInstrumentation.getContext().getPackageManager(); in getVersion() local
217 PackageInfo pInfo = pm.getPackageInfo(pkg, 0); in getVersion()
/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;
/platform_testing/tests/functional/devicehealthchecks/src/com/android/devicehealthchecks/
DSensorsBootCheck.java19 import android.content.pm.PackageManager;
/platform_testing/tests/functional/devicehealthtests/src/com/android/devicehealth/tests/
DSensorsBootCheck.java19 import android.content.pm.PackageManager;
/platform_testing/tests/perf/PerformanceAppTest/src/com/android/performanceapp/tests/
DAppLaunchTests.java34 import android.content.pm.ActivityInfo;
35 import android.content.pm.PackageInfo;
36 import android.content.pm.PackageManager.NameNotFoundException;
/platform_testing/tests/jank/dialer/src/com/android/dialer/janktests/
DDialerJankTests.java24 import android.content.pm.PackageManager;
85 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in launchApp() local
86 Intent appIntent = pm.getLaunchIntentForPackage(packageName); in launchApp()
/platform_testing/libraries/car-helpers/multiuser-helper/src/android/platform/helpers/
DMultiUserHelper.java23 import android.content.pm.UserInfo;
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/
DTvLauncherStrategy.java20 import android.content.pm.ApplicationInfo;
21 import android.content.pm.PackageInfo;
22 import android.content.pm.PackageManager;
23 import android.content.pm.PackageManager.NameNotFoundException;
235 PackageManager pm = mInstrumentation.getContext().getPackageManager(); in getVersionCode() local
238 pInfo = pm.getPackageInfo(pkg, 0); in getVersionCode()
DLeanbackLauncherStrategy.java20 import android.content.pm.ApplicationInfo;
21 import android.content.pm.PackageManager;
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DPerfettoListener.java346 PowerManager pm = in getWakeLock() local
350 return pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, PerfettoListener.class.getName()); in getWakeLock()
/platform_testing/libraries/system-helpers/permission-helper/src/android/system/helpers/
DPermissionHelper.java24 import android.content.pm.PackageInfo;
25 import android.content.pm.PackageManager;
26 import android.content.pm.PackageManager.NameNotFoundException;
/platform_testing/tests/functional/overviewtests/src/com/android/overview/functional/
DRecentsTests.java24 import android.content.pm.PackageManager;
DOverviewHelper.java25 import android.content.pm.PackageManager;
DMultiWindowTests.java24 import android.content.pm.PackageManager;
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/helpers/
DAutomationUtils.java27 import android.content.pm.PackageManager;