/platform_testing/libraries/base-app-helpers/src/android/platform/test/helpers/ |
D | AbstractStandardAppHelper.java | 44 String pkg = getPackage(); in open() local 46 if (!mDevice.hasObject(By.pkg(pkg).depth(0))) { in open() 47 mLauncherStrategy.launch(id, pkg); in open() 73 String pkg = getPackage(); in getVersion() local 75 if (null == pkg || pkg.isEmpty()) { in getVersion() 79 PackageInfo pInfo = pm.getPackageInfo(pkg, 0); in getVersion() 82 throw new RuntimeException(String.format("Version isn't found for package, %s", pkg)); in getVersion()
|
/platform_testing/tests/functional/otatests/src/com/android/functional/otatests/ |
D | PackageProcessTest.java | 70 File pkg = new File(PACKAGE_DATA_PATH); in testPackageProcessOnly() local 71 RecoverySystem.verifyPackage(pkg, null, null); in testPackageProcessOnly() 72 RecoverySystem.processPackage(mMockContext, pkg, null); in testPackageProcessOnly() 78 File pkg = new File(PACKAGE_DATA_PATH); in testPackageProcessViaInstall() local 79 RecoverySystem.verifyPackage(pkg, null, null); in testPackageProcessViaInstall() 80 RecoverySystem.installPackage(mMockContext, pkg); in testPackageProcessViaInstall()
|
/platform_testing/tests/jank/UbSystemUiJankTests/src/android/platform/systemui/tests/jank/ |
D | SystemUiJankTests.java | 103 for (PackageInfo pkg : packages) { in populateRecentApps() 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() 129 for (String pkg : mLaunchedPackages) { in forceStopPackages() 131 mDevice.executeShellCommand("am force-stop " + pkg); in forceStopPackages() 133 Log.w(LOG_TAG, "exeception while force stopping package " + pkg, e); in forceStopPackages()
|
D | SettingsJankTests.java | 73 mDevice.wait(Until.hasObject(By.pkg(SETTINGS_PACKAGE).depth(0)), TIMEOUT); in setUp()
|
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/ |
D | JankStat.java | 87 public JankStat (String pkg, long since, int total, int janky, int ft50, int ft90, int ft95, in JankStat() argument 90 packageName = pkg; in JankStat() 161 String pkg = statHistory.get(0).packageName; in mergeStatHistory() 201 return new JankStat(pkg, totalStatsSince, totalTotalFrames, in mergeStatHistory()
|
D | UiWatchers.java | 50 By.pkg("android").textContains("isn't responding")); in registerAnrAndCrashWatchers() 65 By.pkg("android").textContains("has stopped")); in registerAnrAndCrashWatchers()
|
/platform_testing/tests/functional/appsmoke/src/android/test/appsmoke/ |
D | AppSmokeTest.java | 139 public boolean activityStarting(Intent intent, String pkg) throws RemoteException { 141 pkg, intent.toInsecureString())); 143 if (pkg.equals(mAppInfo.packageName)) { 150 public boolean activityResuming(String pkg) throws RemoteException { 151 Log.d(TAG, String.format("activityResuming: pkg=%s", pkg));
|
/platform_testing/libraries/google-messenger-app-helper/src/android/platform/test/helpers/ |
D | GoogleMessengerHelperImpl.java | 96 return mDevice.findObject(By.pkg(UI_PACKAGE_NAME) in getMessageRecyclerView() 105 return mDevice.findObject(By.pkg(UI_PACKAGE_NAME).desc(UI_MEDIA_FROM_DEVICE_DESC)); in getMediaFromDeviceTab() 169 if (!mDevice.wait(Until.hasObject(By.pkg(UI_PACKAGE_NAME).text(UI_CHOOSE_PHOTO_TEXT)), in goToFullscreenChooseMediaPage() 239 if (!mDevice.wait(Until.hasObject(By.pkg(UI_PACKAGE_NAME).desc( in clickMediaFromDeviceTab()
|
/platform_testing/libraries/youtube-app-helper/src/android/platform/test/helpers/ |
D | YouTubeHelperImpl.java | 107 By.pkg(UI_PACKAGE_NAME).text(UI_HELP_AND_FEEDBACK_TEXT)); in dismissInitialDialogs() 110 mDevice.wait(Until.gone(By.pkg(UI_PACKAGE_NAME).text(UI_HELP_AND_FEEDBACK_TEXT)), in dismissInitialDialogs() 178 return mDevice.findObject(By.pkg(UI_PACKAGE_NAME).desc(UI_HOME_BUTTON_DESC)); in getHomeButton() 182 return mDevice.findObject(By.pkg(UI_PACKAGE_NAME).desc(UI_TRENDING_BUTTON_DESC)); in getTrendingButton() 186 return mDevice.findObject(By.pkg(UI_PACKAGE_NAME).desc(UI_ACCOUNT_BUTTON_DESC)); in getAccountButton() 284 By.pkg(UI_PACKAGE_NAME).desc(UI_HOME_BUTTON_DESC).selected(true)), in goToHomePage()
|
/platform_testing/utils/crashcollector/src/android/test/crashcollector/ |
D | Collector.java | 170 public boolean activityStarting(Intent intent, String pkg) throws RemoteException { in activityStarting() argument 179 public boolean activityResuming(String pkg) throws RemoteException { in activityResuming() argument
|
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/ |
D | CommonLauncherHelper.java | 180 By.pkg(packageName).depth(0)), APP_LAUNCH_TIMEOUT); in launchApp() 192 return mDevice.hasObject(By.pkg(appPackage).depth(0)); in isAppOpen()
|
D | LeanbackLauncherStrategy.java | 407 By.pkg(packageName).depth(0)), APP_LAUNCH_TIMEOUT); in launchApp() 456 return mDevice.hasObject(By.pkg(appPackage).depth(0)); in isAppOpen()
|
D | AospLauncherStrategy.java | 50 mDevice.wait(Until.hasObject(By.pkg(LAUNCHER_PKG)), 5000)); in open()
|
/platform_testing/tests/functional/launchertests/src/com/android/launcher/functional/ |
D | HotseatHelper.java | 61 UiObject2 appLoaded = mDevice.wait(Until.findObject(By.pkg(appPackage)), TIMEOUT*2); in launchAppFromHotseat()
|
D | HomeScreenTests.java | 242 (By.pkg("com.google.android.youtube")), TIMEOUT)); in testOpenAppFromFolderOnHome()
|
/platform_testing/libraries/maps-app-helper/src/android/platform/test/helpers/ |
D | MapsHelperImpl.java | 103 mDevice.wait(Until.gone(By.pkg(UI_PACKAGE).clazz(UI_PROGRESSBAR_CLASS)), in dismissInitialDialogs() 200 UiObject2 firstAddressResult = mDevice.wait(Until.findObject(By.pkg(UI_PACKAGE).clazz( in doSearch() 315 return mDevice.wait(Until.findObject(By.pkg(UI_PACKAGE).desc(UI_CLOSE_NAVIGATION_DESC)), in getCloseNavigationButton()
|
/platform_testing/libraries/photos-app-helper/src/android/platform/test/helpers/ |
D | PhotosHelperImpl.java | 273 List<UiObject2> photos = mDevice.findObjects(By.pkg(UI_PACKAGE_NAME).desc(UI_PHOTO_DESC)); in openPicture() 457 if (mDevice.hasObject(By.pkg(UI_PACKAGE_NAME).text(UI_DEVICE_FOLDER_TEXT))) { in isOnDeviceFolderScreen() 467 return mDevice.hasObject(By.pkg(UI_PACKAGE_NAME).text(UI_DEVICE_FOLDER_TEXT)); in isOnDeviceFolderScreen()
|
/platform_testing/tests/jank/sysapp/src/com/android/sysapp/janktests/ |
D | CalendarJankTests.java | 130 By.pkg(PACKAGE_NAME).clazz(View.class).desc("Got it")), LONG_TIMEOUT); in dismissCling()
|
/platform_testing/libraries/play-movies-app-helper/src/android/platform/test/helpers/ |
D | PlayMoviesHelperImpl.java | 184 UiObject2 backButton = mDevice.findObject(By.pkg(getPackage()).desc("Navigate up")); in openNavigationDrawer()
|
/platform_testing/libraries/google-app-camera-helper/src/android/platform/test/helpers/ |
D | GoogleCameraHelperImpl.java | 1140 String pkg = getPackage(); in openWithShutterTimeString() local 1144 if (!mDevice.hasObject(By.pkg(pkg).depth(0))) { in openWithShutterTimeString() 1145 launchStart = mLauncherStrategy.launch(id, pkg); in openWithShutterTimeString()
|
/platform_testing/libraries/chrome-app-helper/src/android/platform/test/helpers/ |
D | ChromeHelperImpl.java | 280 return mDevice.findObject(By.clazz(ListView.class).pkg(getPackage())); in getMenu()
|
/platform_testing/tests/functional/downloadapp/src/com/android/functional/downloadapp/ |
D | DownloadAppTestHelper.java | 80 if (!mDevice.hasObject(By.pkg(packageName).depth(0))) { in launchApp()
|
/platform_testing/tests/functional/permission/src/com/android/functional/permissiontests/ |
D | PermissionHelper.java | 411 if (!mDevice.hasObject(By.pkg(packageName).depth(0))) { in launchApp()
|