/platform_testing/utils/permissions/src/com/android/permissionutils/ |
D | PermissionInstrumentation.java | 21 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/ |
D | AbstractStandardAppHelper.java | 20 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()
|
D | IStandardAppHelper.java | 19 import android.content.pm.PackageManager.NameNotFoundException;
|
/platform_testing/tests/jank/androidtvjanktests/src/com/android/androidtv/janktests/ |
D | SystemAppJankTests.java | 20 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/ |
D | HotseatHelper.java | 22 import android.content.pm.PackageManager; 39 private PackageManager pm; field in HotseatHelper
|
D | HomeScreenTests.java | 24 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/ |
D | ChromeJankTests.java | 23 import android.content.pm.PackageManager; 78 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in launchApp() local 79 Intent appIntent = pm.getLaunchIntentForPackage(packageName); in launchApp()
|
D | ContactsJankTests.java | 23 import android.content.pm.PackageManager; 79 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in launchApp() local 80 Intent appIntent = pm.getLaunchIntentForPackage(packageName); in launchApp()
|
D | YouTubeJankTests.java | 23 import android.content.pm.PackageManager; 75 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in launchApp() local 76 Intent appIntent = pm.getLaunchIntentForPackage(packageName); in launchApp()
|
D | BooksJankTests.java | 23 import android.content.pm.PackageManager; 76 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in launchApp() local 77 Intent appIntent = pm.getLaunchIntentForPackage(packageName); in launchApp()
|
D | CalendarJankTests.java | 23 import android.content.pm.PackageManager; 89 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in launchApp() local 90 Intent appIntent = pm.getLaunchIntentForPackage(packageName); in launchApp()
|
D | GMailJankTests.java | 23 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/ |
D | LauncherJankTests.java | 23 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()
|
D | SystemUiJankTests.java | 23 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/ |
D | AppLaunchTests.java | 32 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/ |
D | MainActivity.java | 27 import android.content.pm.PackageManager;
|
/platform_testing/tests/jank/dialer/src/com/android/dialer/janktests/ |
D | DialerJankTests.java | 24 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/ |
D | ExternalStorageHelper.java | 23 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/ |
D | AuptTestCase.java | 42 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/ |
D | FlightDemoHelperImpl.java | 19 import android.content.pm.PackageManager.NameNotFoundException;
|
/platform_testing/tests/functional/appsmoke/src/android/test/appsmoke/ |
D | AppSmokeTest.java | 24 import android.content.pm.LauncherActivityInfo; 25 import android.content.pm.LauncherApps;
|
/platform_testing/libraries/play-store-app-helper/src/android/platform/test/helpers/ |
D | PlayStoreHelperImpl.java | 20 import android.content.pm.PackageManager.NameNotFoundException;
|
/platform_testing/tests/functional/permission/src/com/android/functional/permissiontests/ |
D | PermissionHelper.java | 21 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/ |
D | PlayMoviesHelperImpl.java | 20 import android.content.pm.PackageManager.NameNotFoundException;
|
/platform_testing/libraries/google-messenger-app-helper/src/android/platform/test/helpers/ |
D | GoogleMessengerHelperImpl.java | 20 import android.content.pm.PackageManager.NameNotFoundException;
|