/platform_testing/utils/permissions/src/com/android/permissionutils/ |
D | GrantPermissionUtil.java | 22 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/ |
D | AppVersionRule.java | 18 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()
|
D | NavigationModeRule.java | 24 import android.content.pm.PackageManager; 60 PackageManager pm = getInstrumentation().getContext().getPackageManager(); in packageExists() local 61 if (pm.getApplicationInfo(overlayPackage, 0 /* flags */) == null) { in packageExists()
|
D | SuspendUnsuspendAppRule.java | 19 import android.content.pm.PackageManager; 20 import android.content.pm.SuspendDialogInfo;
|
/platform_testing/libraries/sts-common-util/apps/MainlineModuleDetector/src/com/android/cts/mainlinemoduledetector/ |
D | MainlineModuleDetector.java | 19 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/ |
D | AuptTestCase.java | 22 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/ |
D | AbstractStandardAppHelper2.java | 19 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 …]
|
D | AbstractStandardAppHelper.java | 19 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 …]
|
D | IAppHelper.java | 19 import android.content.pm.PackageManager.NameNotFoundException;
|
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/ |
D | OverviewHelper.java | 22 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()
|
D | HotseatHelper.java | 20 import android.content.pm.PackageManager;
|
/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/libraries/flicker/appHelpers/src/android/tools/device/apphelpers/ |
D | ClockAppHelper.kt | 21 import android.content.pm.PackageManager 22 import android.content.pm.ResolveInfo
|
D | CameraAppHelper.kt | 21 import android.content.pm.PackageManager 22 import android.content.pm.ResolveInfo
|
D | CalendarAppHelper.kt | 21 import android.content.pm.PackageManager 22 import android.content.pm.ResolveInfo
|
D | NetflixAppHelper.kt | 21 import android.content.pm.PackageManager 22 import android.content.pm.ResolveInfo
|
D | YouTubeAppHelper.kt | 21 import android.content.pm.PackageManager 22 import android.content.pm.ResolveInfo
|
D | MessagingAppHelper.kt | 21 import android.content.pm.PackageManager
|
D | BrowserAppHelper.kt | 21 import android.content.pm.PackageManager
|
/platform_testing/libraries/device-collectors/src/main/java/android/device/stressmodes/ |
D | LockContentionStressMode.java | 21 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/ |
D | AppVersionHelper.java | 22 import android.content.pm.PackageInfo; 23 import android.content.pm.PackageManager;
|
/platform_testing/libraries/uiautomator-helpers/src/android/platform/uiautomator_helpers/ |
D | ShellPrivilege.kt | 17 import android.content.pm.PackageManager
|
/platform_testing/libraries/system-helpers/package-helper/src/android/system/helpers/ |
D | PackageHelper.java | 20 import android.content.pm.PackageManager;
|
/platform_testing/tests/perf/PerfTransitionTest/src/com/android/apptransition/tests/ |
D | AppTransitionTests.java | 22 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/ |
D | MainActivity.java | 27 import android.content.pm.PackageManager;
|