Home
last modified time | relevance | path

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

12

/platform_testing/utils/permissions/src/com/android/permissionutils/
DPermissionInstrumentation.java21 import android.content.pm.PackageInfo;
22 import android.content.pm.PackageManager;
23 import android.content.pm.PermissionInfo;
24 import android.content.pm.PackageManager.NameNotFoundException;
63 PackageManager pm = getContext().getPackageManager(); in runCommand() local
64 List<PackageInfo> pkgInfos = pm.getInstalledPackages(PackageManager.GET_PERMISSIONS); in runCommand()
73 pi = pm.getPermissionInfo(permission, 0); in runCommand()
83 int flag = pm.checkPermission(permission, info.packageName); in runCommand()
88 pm.grantRuntimePermission(info.packageName, permission, UserHandle.OWNER); in runCommand()
/platform_testing/libraries/base-app-helpers/src/android/platform/test/helpers/
DAbstractStandardAppHelper.java20 import android.content.pm.PackageInfo;
21 import android.content.pm.PackageManager;
22 import android.content.pm.PackageManager.NameNotFoundException;
78 PackageManager pm = mInstrumentation.getContext().getPackageManager(); in getVersion() local
79 PackageInfo pInfo = pm.getPackageInfo(pkg, 0); in getVersion()
DIStandardAppHelper.java19 import android.content.pm.PackageManager.NameNotFoundException;
/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/tests/functional/launchertests/src/com/android/launcher/functional/
DHotseatHelper.java22 import android.content.pm.PackageManager;
39 private PackageManager pm; field in HotseatHelper
DHomeScreenTests.java24 import android.content.pm.PackageManager;
111 PowerManager pm = (PowerManager) currentContext in testScreenOffOnUsingPowerButton() local
115 assertFalse("Screen wasn't turned off", pm.isInteractive()); in testScreenOffOnUsingPowerButton()
118 assertTrue("Screen wasn't turned on by pressing Power Key", pm.isInteractive()); in testScreenOffOnUsingPowerButton()
/platform_testing/tests/jank/sysapp/src/com/android/sysapp/janktests/
DChromeJankTests.java23 import android.content.pm.PackageManager;
78 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in launchApp() local
79 Intent appIntent = pm.getLaunchIntentForPackage(packageName); in launchApp()
DContactsJankTests.java23 import android.content.pm.PackageManager;
79 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in launchApp() local
80 Intent appIntent = pm.getLaunchIntentForPackage(packageName); in launchApp()
DYouTubeJankTests.java23 import android.content.pm.PackageManager;
75 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in launchApp() local
76 Intent appIntent = pm.getLaunchIntentForPackage(packageName); in launchApp()
DBooksJankTests.java23 import android.content.pm.PackageManager;
76 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in launchApp() local
77 Intent appIntent = pm.getLaunchIntentForPackage(packageName); in launchApp()
DCalendarJankTests.java23 import android.content.pm.PackageManager;
89 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in launchApp() local
90 Intent appIntent = pm.getLaunchIntentForPackage(packageName); in launchApp()
DGMailJankTests.java23 import android.content.pm.PackageManager;
79 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in launchApp() local
80 Intent appIntent = pm.getLaunchIntentForPackage(packageName); in launchApp()
/platform_testing/tests/jank/UbSystemUiJankTests/src/android/platform/systemui/tests/jank/
DLauncherJankTests.java23 import android.content.pm.PackageManager;
55 private PackageManager pm; field in LauncherJankTests
65 pm = getInstrumentation().getContext().getPackageManager(); in setUp()
217 Intent chromeIntent = pm.getLaunchIntentForPackage("com.android.chrome"); in launchChrome()
235 Intent photosIntent = pm.getLaunchIntentForPackage("com.google.android.apps.photos"); in launchPhotos()
253 Intent gmailIntent = pm.getLaunchIntentForPackage("com.google.android.gm"); in launchGMail()
DSystemUiJankTests.java23 import android.content.pm.PackageInfo;
24 import android.content.pm.PackageManager;
100 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in populateRecentApps() local
101 List<PackageInfo> packages = pm.getInstalledPackages(0); in populateRecentApps()
107 Intent intent = pm.getLaunchIntentForPackage(pkg.packageName); in populateRecentApps()
/platform_testing/tests/perf/PerformanceAppTest/src/com/android/performanceapp/tests/
DAppLaunchTests.java32 import android.content.pm.ActivityInfo;
33 import android.content.pm.PackageInfo;
34 import android.content.pm.PackageManager.NameNotFoundException;
/platform_testing/tests/functional/testapks/permissiontestappmv1/src/com/android/permissontestappmv1/
DMainActivity.java27 import android.content.pm.PackageManager;
/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/tests/functional/externalstorage/src/com/android/functional/externalstoragetests/
DExternalStorageHelper.java23 import android.content.pm.PackageInfo;
24 import android.content.pm.PackageManager;
25 import android.content.pm.PackageManager.NameNotFoundException;
/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;
547 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in getPackageVersion() local
548 PackageInfo pInfo = pm.getPackageInfo(packageName, 0); in getPackageVersion()
/platform_testing/libraries/flightdemo-app-helper/src/android/platform/test/helpers/
DFlightDemoHelperImpl.java19 import android.content.pm.PackageManager.NameNotFoundException;
/platform_testing/tests/functional/appsmoke/src/android/test/appsmoke/
DAppSmokeTest.java24 import android.content.pm.LauncherActivityInfo;
25 import android.content.pm.LauncherApps;
/platform_testing/libraries/play-store-app-helper/src/android/platform/test/helpers/
DPlayStoreHelperImpl.java20 import android.content.pm.PackageManager.NameNotFoundException;
/platform_testing/tests/functional/permission/src/com/android/functional/permissiontests/
DPermissionHelper.java21 import android.content.pm.PackageInfo;
22 import android.content.pm.PackageManager;
23 import android.content.pm.PackageManager.NameNotFoundException;
/platform_testing/libraries/play-movies-app-helper/src/android/platform/test/helpers/
DPlayMoviesHelperImpl.java20 import android.content.pm.PackageManager.NameNotFoundException;
/platform_testing/libraries/google-messenger-app-helper/src/android/platform/test/helpers/
DGoogleMessengerHelperImpl.java20 import android.content.pm.PackageManager.NameNotFoundException;

12