Home
last modified time | relevance | path

Searched refs:pkg (Results 1 – 23 of 23) sorted by relevance

/platform_testing/libraries/base-app-helpers/src/android/platform/test/helpers/
DAbstractStandardAppHelper.java44 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/
DPackageProcessTest.java70 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/
DSystemUiJankTests.java103 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()
DSettingsJankTests.java73 mDevice.wait(Until.hasObject(By.pkg(SETTINGS_PACKAGE).depth(0)), TIMEOUT); in setUp()
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DJankStat.java87 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()
DUiWatchers.java50 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/
DAppSmokeTest.java139 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/
DGoogleMessengerHelperImpl.java96 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/
DYouTubeHelperImpl.java107 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/
DCollector.java170 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/
DCommonLauncherHelper.java180 By.pkg(packageName).depth(0)), APP_LAUNCH_TIMEOUT); in launchApp()
192 return mDevice.hasObject(By.pkg(appPackage).depth(0)); in isAppOpen()
DLeanbackLauncherStrategy.java407 By.pkg(packageName).depth(0)), APP_LAUNCH_TIMEOUT); in launchApp()
456 return mDevice.hasObject(By.pkg(appPackage).depth(0)); in isAppOpen()
DAospLauncherStrategy.java50 mDevice.wait(Until.hasObject(By.pkg(LAUNCHER_PKG)), 5000)); in open()
/platform_testing/tests/functional/launchertests/src/com/android/launcher/functional/
DHotseatHelper.java61 UiObject2 appLoaded = mDevice.wait(Until.findObject(By.pkg(appPackage)), TIMEOUT*2); in launchAppFromHotseat()
DHomeScreenTests.java242 (By.pkg("com.google.android.youtube")), TIMEOUT)); in testOpenAppFromFolderOnHome()
/platform_testing/libraries/maps-app-helper/src/android/platform/test/helpers/
DMapsHelperImpl.java103 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/
DPhotosHelperImpl.java273 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/
DCalendarJankTests.java130 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/
DPlayMoviesHelperImpl.java184 UiObject2 backButton = mDevice.findObject(By.pkg(getPackage()).desc("Navigate up")); in openNavigationDrawer()
/platform_testing/libraries/google-app-camera-helper/src/android/platform/test/helpers/
DGoogleCameraHelperImpl.java1140 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/
DChromeHelperImpl.java280 return mDevice.findObject(By.clazz(ListView.class).pkg(getPackage())); in getMenu()
/platform_testing/tests/functional/downloadapp/src/com/android/functional/downloadapp/
DDownloadAppTestHelper.java80 if (!mDevice.hasObject(By.pkg(packageName).depth(0))) { in launchApp()
/platform_testing/tests/functional/permission/src/com/android/functional/permissiontests/
DPermissionHelper.java411 if (!mDevice.hasObject(By.pkg(packageName).depth(0))) { in launchApp()