/platform_testing/tests/functional/permission/src/com/android/functional/permissiontests/ |
D | PermissionHelper.java | 111 public List<String> getPermissionByPackage(String packageName, Boolean permitted) { in getPermissionByPackage() argument 117 packageInfo = getPackageManager().getPackageInfo(packageName, in getPermissionByPackage() 120 throw new RuntimeException(String.format("%s package isn't found", packageName)); in getPermissionByPackage() 141 public void verifyExtraDangerousPermissionNotGranted(String packageName, in verifyExtraDangerousPermissionNotGranted() argument 145 List<String> allPermissionsForPackageList = getPermissionByPackage(packageName, in verifyExtraDangerousPermissionNotGranted() 152 packageName), in verifyExtraDangerousPermissionNotGranted() 162 public void verifyNotPermittedDangerousPermissionDenied(String packageName, in verifyNotPermittedDangerousPermissionDenied() argument 166 List<String> allPermissionsForPackageList = getPermissionByPackage(packageName, in verifyNotPermittedDangerousPermissionDenied() 172 packageName), in verifyNotPermittedDangerousPermissionDenied() 180 public void verifyNormalPermissionsAutoGranted(String packageName) { in verifyNormalPermissionsAutoGranted() argument [all …]
|
/platform_testing/tests/functional/appsmoke/src/android/test/appsmoke/ |
D | AppSmokeTest.java | 77 public String packageName; field in AppSmokeTest.LaunchParameter 80 private LaunchParameter(String appName, String packageName, String activityName) { in LaunchParameter() argument 82 this.packageName = packageName; in LaunchParameter() 97 return String.format("%s [activity: %s/%s]", appName, packageName, activityName); in toLongString() 115 if (processName.startsWith(mAppInfo.packageName)) { 132 if (processName.startsWith(mAppInfo.packageName)) { 143 if (pkg.equals(mAppInfo.packageName)) { 197 .getApplicationInfo().packageName, info.getName())); in generateAppsList() 221 mAppInfo.packageName, UserHandle.USER_ALL); in after() 233 long timestamp = mLauncherStrategy.launch(mAppInfo.appName, mAppInfo.packageName); in testAppLaunch()
|
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/ |
D | CommonLauncherHelper.java | 125 String packageName) { in launchApp() argument 126 return launchApp(launcherStrategy, app, packageName, MAX_SCROLL_ATTEMPTS); in launchApp() 139 String packageName, int maxScrollAttempts) { in launchApp() argument 142 if (isAppOpen(packageName)) { in launchApp() 176 if (packageName != null) { in launchApp() 178 "No UI element with package name %s detected.", packageName)); in launchApp() 180 By.pkg(packageName).depth(0)), APP_LAUNCH_TIMEOUT); in launchApp()
|
D | LeanbackLauncherStrategy.java | 171 public long launch(String appName, String packageName) { in launch() argument 173 return launchApp(this, app, packageName); in launch() 329 String packageName) { in launchApp() argument 330 return launchApp(launcherStrategy, app, packageName, MAX_SCROLL_ATTEMPTS); in launchApp() 334 String packageName, int maxScrollAttempts) { in launchApp() argument 337 if (isAppOpen(packageName)) { in launchApp() 357 + packageName); in launchApp() 390 "Failed to navigate to the app icon on screen: " + packageName); in launchApp() 403 if (packageName != null) { in launchApp() 405 "No UI element with package name %s detected.", packageName)); in launchApp() [all …]
|
D | ILauncherStrategy.java | 114 public long launch(String appName, String packageName); in launch() argument
|
D | BaseLauncher3Strategy.java | 146 public long launch(String appName, String packageName) { in launch() argument 149 return CommonLauncherHelper.getInstance(mDevice).launchApp(this, app, packageName); in launch()
|
D | AospLauncherStrategy.java | 155 public long launch(String appName, String packageName) { in launch() argument 157 By.res("").clazz(TextView.class).desc(appName), packageName); in launch()
|
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/ |
D | GraphicsStatsMonitor.java | 128 if (mGraphicsStatsRecords.containsKey(procStats.packageName)) { in grabStatsImage() 129 history = mGraphicsStatsRecords.get(procStats.packageName); in grabStatsImage() 135 procStats.packageName)); in grabStatsImage() 140 procStats.packageName)); in grabStatsImage() 147 mGraphicsStatsRecords.put(procStats.packageName, history); in grabStatsImage() 149 procStats.packageName)); in grabStatsImage() 190 executeShellCommand(String.format("dumpsys gfxinfo %s reset", stat.packageName)); in clearGraphicsStats() 191 Log.v(TAG, String.format("Cleared graphics stats for %s", stat.packageName)); in clearGraphicsStats()
|
D | JankStat.java | 70 public String packageName; field in JankStat 90 packageName = pkg; in JankStat() 130 String result = packageName + in toString() 161 String pkg = statHistory.get(0).packageName; in mergeStatHistory()
|
D | AuptTestCase.java | 543 public String getPackageVersion(String packageName) throws NameNotFoundException { in getPackageVersion() argument 544 if (null == packageName || packageName.isEmpty()) { in getPackageVersion() 548 PackageInfo pInfo = pm.getPackageInfo(packageName, 0); in getPackageVersion() 552 String.format("Version isn't found for package = %s", packageName)); in getPackageVersion()
|
/platform_testing/tests/functional/externalstorage/src/com/android/functional/externalstoragetests/ |
D | ExternalStorageHelper.java | 247 public PackageInfo getPackageInfo(String packageName) throws NameNotFoundException { in getPackageInfo() argument 248 return mContext.getPackageManager().getPackageInfo(packageName, 0); in getPackageInfo() 251 public Boolean doesPackageExist(String packageName) throws NameNotFoundException { in doesPackageExist() argument 253 mContext.getPackageManager().getPackageInfo(packageName, 0); in doesPackageExist() 261 public String getInstalledLocation(String packageName) throws NameNotFoundException { in getInstalledLocation() argument 262 Assert.assertTrue(String.format("%s doesn't exist!", packageName), in getInstalledLocation() 263 doesPackageExist(packageName)); in getInstalledLocation() 264 return getPackageInfo(packageName).applicationInfo.dataDir; in getInstalledLocation()
|
/platform_testing/utils/permissions/src/com/android/permissionutils/ |
D | PermissionInstrumentation.java | 83 int flag = pm.checkPermission(permission, info.packageName); in runCommand() 88 pm.grantRuntimePermission(info.packageName, permission, UserHandle.OWNER); in runCommand() 93 Log.e(DUMP_TAG, String.format("Revoked permissions for %s", info.packageName)); in runCommand()
|
/platform_testing/tests/jank/androidtvjanktests/src/com/android/androidtv/janktests/ |
D | SystemAppJankTests.java | 111 public void launchApp(String packageName) throws UiObjectNotFoundException { in launchApp() argument 113 Intent appIntent = pm.getLaunchIntentForPackage(packageName); in launchApp()
|
/platform_testing/tests/jank/sysapp/src/com/android/sysapp/janktests/ |
D | ChromeJankTests.java | 77 public void launchApp(String packageName) throws UiObjectNotFoundException{ in launchApp() argument 79 Intent appIntent = pm.getLaunchIntentForPackage(packageName); in launchApp()
|
D | ContactsJankTests.java | 78 public void launchApp(String packageName) throws UiObjectNotFoundException{ in launchApp() argument 80 Intent appIntent = pm.getLaunchIntentForPackage(packageName); in launchApp()
|
D | YouTubeJankTests.java | 74 public void launchApp(String packageName) throws UiObjectNotFoundException { in launchApp() argument 76 Intent appIntent = pm.getLaunchIntentForPackage(packageName); in launchApp()
|
D | BooksJankTests.java | 75 public void launchApp(String packageName) throws UiObjectNotFoundException{ in launchApp() argument 77 Intent appIntent = pm.getLaunchIntentForPackage(packageName); in launchApp()
|
D | CalendarJankTests.java | 88 public void launchApp(String packageName) throws UiObjectNotFoundException{ in launchApp() argument 90 Intent appIntent = pm.getLaunchIntentForPackage(packageName); in launchApp()
|
D | GMailJankTests.java | 78 public void launchApp(String packageName) throws UiObjectNotFoundException{ in launchApp() argument 80 Intent appIntent = pm.getLaunchIntentForPackage(packageName); in launchApp()
|
/platform_testing/tests/jank/UbSystemUiJankTests/src/android/platform/systemui/tests/jank/ |
D | SystemUiJankTests.java | 104 if (pkg.packageName.equals(getInstrumentation().getTargetContext().getPackageName())) { in populateRecentApps() 107 Intent intent = pm.getLaunchIntentForPackage(pkg.packageName); in populateRecentApps() 115 mLaunchedPackages.add(pkg.packageName); in populateRecentApps()
|
/platform_testing/tests/functional/downloadapp/src/com/android/functional/downloadapp/ |
D | DownloadAppTestHelper.java | 79 public void launchApp(String packageName, String appName) { in launchApp() argument 80 if (!mDevice.hasObject(By.pkg(packageName).depth(0))) { in launchApp() 81 mLauncherStrategy.launch(appName, packageName); in launchApp()
|
/platform_testing/tests/jank/dialer/src/com/android/dialer/janktests/ |
D | DialerJankTests.java | 84 public void launchApp(String packageName) { in launchApp() argument 86 Intent appIntent = pm.getLaunchIntentForPackage(packageName); in launchApp()
|
/platform_testing/tests/functional/notificationtests/src/com/android/notification/functional/ |
D | NotificationHelper.java | 282 public void showInstalledAppDetails(Context context, String packageName) throws Exception { in showInstalledAppDetails() argument 285 Uri uri = Uri.fromParts("package", packageName, null); in showInstalledAppDetails()
|