| /test/app_compat/csuite/harness/src/test/java/com/android/csuite/core/ |
| D | SystemAppUninstallerTest.java | 56 ITestDevice device = createGoodDeviceWithAppNotInstalled(); in uninstallPackage_frameworkNotRunning_startsFrameworkOrThrows() local 70 ITestDevice device = createGoodDeviceWithAppNotInstalled(); in uninstallPackage_packageIsNotInstalled_doesNotRemove() local 80 ITestDevice device = createGoodDeviceWithSystemAppInstalled(); in uninstallPackage_differentPackageWithSameNamePrefixInstalled_doesNotRemove() local 97 ITestDevice device = createGoodDeviceWithSystemAppInstalled(); in uninstallPackage_checkPackageInstalledCommandFailed_throws() local 111 ITestDevice device = createGoodDeviceWithSystemAppInstalled(); in uninstallPackage_getInstallDirectoryCommandFailed_throws() local 125 ITestDevice device = createGoodDeviceWithUserAppInstalled(); in uninstallPackage_packageIsNotSystemApp_doesNotRemove() local 134 ITestDevice device = createGoodDeviceWithSystemAppInstalled(); in uninstallPackage_adbAlreadyRooted_doesNotRootAgain() local 144 ITestDevice device = createGoodDeviceWithSystemAppInstalled(); in uninstallPackage_adbNotAlreadyRooted_rootAdbAndThenUnroot() local 155 ITestDevice device = createGoodDeviceWithSystemAppInstalled(); in uninstallPackage_adbRootCommandFailed_throws() local 165 ITestDevice device = createGoodDeviceWithSystemAppInstalled(); in uninstallPackage_adbRootFailed_throws() local [all …]
|
| /test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/ |
| D | ApiLevelUtil.java | 30 public static boolean isBefore(ITestDevice device, int version) in isBefore() 35 public static boolean isBefore(ITestDevice device, String version) in isBefore() 40 public static boolean isAfter(ITestDevice device, int version) in isAfter() 45 public static boolean isAfter(ITestDevice device, String version) in isAfter() 50 public static boolean isAtLeast(ITestDevice device, int version) in isAtLeast() 55 public static boolean isAtLeast(ITestDevice device, String version) in isAtLeast() 60 public static boolean isAtMost(ITestDevice device, int version) in isAtMost() 65 public static boolean isAtMost(ITestDevice device, String version) in isAtMost() 70 public static int getApiLevel(ITestDevice device) throws DeviceNotAvailableException { in getApiLevel() 74 public static boolean codenameEquals(ITestDevice device, String name) in codenameEquals() [all …]
|
| D | FeatureUtil.java | 40 public static boolean hasSystemFeature(ITestDevice device, String feature) in hasSystemFeature() 46 public static boolean hasAnySystemFeature(ITestDevice device, String... features) in hasAnySystemFeature() 57 public static boolean hasAllSystemFeatures(ITestDevice device, String... features) in hasAllSystemFeatures() 68 public static Set<String> getAllFeatures(ITestDevice device) in getAllFeatures() 79 public static boolean isTV(ITestDevice device) throws DeviceNotAvailableException { in isTV() 84 public static boolean isWatch(ITestDevice device) throws DeviceNotAvailableException { in isWatch() 89 public static boolean isAutomotive(ITestDevice device) throws DeviceNotAvailableException { in isAutomotive() 94 public static boolean isXrHeadset(ITestDevice device) throws DeviceNotAvailableException { in isXrHeadset() 102 public static boolean isLowRam(ITestDevice device) throws DeviceNotAvailableException { in isLowRam() 108 public static boolean hasTelephony(ITestDevice device) throws DeviceNotAvailableException { in hasTelephony() [all …]
|
| D | CpuFeatures.java | 32 …private static String uname(ITestDevice device, String option) throws DeviceNotAvailableException { in uname() 41 public static boolean isArm64(ITestDevice device) throws DeviceNotAvailableException { in isArm64() 49 public static boolean isArm32(ITestDevice device) throws DeviceNotAvailableException { in isArm32() 57 public static boolean isX86(ITestDevice device) throws DeviceNotAvailableException { in isX86() 63 public static boolean isX86_64(ITestDevice device) throws DeviceNotAvailableException { in isX86_64() 69 public static boolean isX86_32(ITestDevice device) throws DeviceNotAvailableException { in isX86_32() 75 public static boolean isNativeAbi(ITestDevice device, String abi) in isNativeAbi() 97 public static boolean kernelVersionLessThan(ITestDevice device, int major, int minor) in kernelVersionLessThan()
|
| D | PropertyUtil.java | 59 public static boolean isUserBuild(ITestDevice device) throws DeviceNotAvailableException { in isUserBuild() 64 public static boolean isDevKeysBuild(ITestDevice device) throws DeviceNotAvailableException { in isDevKeysBuild() 78 public static int getFirstApiLevel(ITestDevice device) throws DeviceNotAvailableException { in getFirstApiLevel() 89 public static int getVsrApiLevel(ITestDevice device) throws DeviceNotAvailableException { in getVsrApiLevel() 117 public static int getVendorApiLevel(ITestDevice device) throws DeviceNotAvailableException { in getVendorApiLevel() 132 public static boolean isVendorApiLevelNewerThan(ITestDevice device, int apiLevel) in isVendorApiLevelNewerThan() 141 public static boolean isVendorApiLevelAtLeast(ITestDevice device, int apiLevel) in isVendorApiLevelAtLeast() 149 public static String getManufacturer(ITestDevice device) throws DeviceNotAvailableException { in getManufacturer() 154 public static Map<String, String> getClientIds(ITestDevice device) in getClientIds() 174 public static boolean propertyExists(ITestDevice device, String property) in propertyExists() [all …]
|
| D | PackageUtil.java | 29 public static boolean exists(ITestDevice device, String packageName) in exists() 35 public static boolean isSystemApp(ITestDevice device, String packageName) in isSystemApp() 42 public static String getVersionString(ITestDevice device, String packageName) in getVersionString()
|
| D | MonitoringUtils.java | 34 public static boolean checkDeviceConnectivity(ITestDevice device) in checkDeviceConnectivity() 54 public static void checkDeviceConnectivity(ITestDevice device, ITestInvocationListener listener, in checkDeviceConnectivity()
|
| D | BackupHostSideUtils.java | 35 public static BackupUtils createBackupUtils(INativeDevice device) { in createBackupUtils()
|
| /test/app_compat/csuite/harness/src/main/java/com/android/csuite/core/ |
| D | SystemPackageUninstaller.java | 49 public static void uninstallPackage(String packageName, ITestDevice device) in uninstallPackage() 109 private static void runWithFrameworkOff(ITestDevice device, PreparerTask action) in runWithFrameworkOff() 120 private static void runWithWritableFilesystem(ITestDevice device, PreparerTask action) in runWithWritableFilesystem() 138 private static void runAsRoot(ITestDevice device, PreparerTask action) in runAsRoot() 161 private static void stopFramework(ITestDevice device) in stopFramework() 173 private static void startFramework(ITestDevice device) in startFramework() 182 ITestDevice device, String command, String failureMessage) in executeShellCommandOrThrow() 196 ITestDevice device, String command, String failureMessage) in executeShellCommandOrLog() 206 private static void remountSystemReadOnly(ITestDevice device) in remountSystemReadOnly() 219 String packageInstallDirectory, ITestDevice device) in removePackageInstallDirectory() [all …]
|
| /test/app_compat/csuite/harness/src/test/java/com/android/compatibility/targetprep/ |
| D | CheckGmsPreparerTest.java | 67 ITestDevice device = createDeviceWithGmsAbsent(); in setUp_checkDisabledAndGmsAbsent_doesNotReboot() local 80 ITestDevice device = createDeviceWithGmsAbsent(); in tearDown_checkDisabledAndGmsAbsent_doesNotLog() local 92 ITestDevice device = createDeviceWithGmsAbsent(); in tearDown_setUpThrows_doesNotCheck() local 107 ITestDevice device = createDeviceWithGmsAbsentAndRecoverable(); in tearDown_setUpRecoveredGms_checksGms() local 123 ITestDevice device = createDeviceWithGmsPresent(); in tearDown_setUpFoundGms_checksGms() local 139 ITestDevice device = createDeviceWithGmsPresent(); in setUp_gmsPresent_doesNotReboot() local 151 ITestDevice device = createDeviceWithGmsAbsentAndRecoverable(); in setUp_gmsProcessRecoveredAfterReboot_doesNotThrow() local 158 ITestDevice device = createDeviceWithGmsAbsent(); in setUp_gmsProcessNotRecoveredAfterReboot_throwsException() local 165 ITestDevice device = createDeviceWithGmsPresent(); in tearDown_gmsProcessPresent_doesNotLog() local 188 ITestDevice device = Mockito.mock(ITestDevice.class); in createDeviceWithGmsAbsentAndRecoverable() local [all …]
|
| D | AppSetupPreparerTest.java | 218 ITestDevice device = createUnavailableDevice(); in setUp_deviceNotAvailableAndWaitEnabled_throwsDeviceNotAvailableException() local 234 ITestDevice device = createAvailableDevice(); in setUp_deviceAvailableAndWaitEnabled_doesNotChangeException() local 249 ITestDevice device = createUnavailableDevice(); in setUp_deviceNotAvailableAndWaitDisabled_doesNotChangeException() local 435 ITestDevice device = mock(ITestDevice.class); in createUnavailableDevice() local 444 ITestDevice device = mock(ITestDevice.class); in createAvailableDevice() local 509 private static TestInformation createTestInfo(ITestDevice device) { in createTestInfo()
|
| /test/catbox/target_preparers/src/com/android/catbox/targetpreparer/ |
| D | ChromeMdPassengerLoadPreparer.java | 84 ITestDevice device = testInfo.getDevice(); in setUp() local 119 ITestDevice device = testInfo.getDevice(); in tearDown() local 136 private void stopTestApps(ITestDevice device) throws DeviceNotAvailableException { in stopTestApps() 149 private void dismissChromeDialogs(ITestDevice device) throws DeviceNotAvailableException { in dismissChromeDialogs() 159 private void increaseSupportedUsers(ITestDevice device) in increaseSupportedUsers() 171 private int createAndStartUser(ITestDevice device, int displayId) in createAndStartUser() 184 private void stopUsers(ITestDevice device) throws DeviceNotAvailableException { in stopUsers() 214 private void simulatePassengerLoad(ITestDevice device, int userId) in simulatePassengerLoad() 234 private void skipSuw(ITestDevice device) throws DeviceNotAvailableException, TargetSetupError { in skipSuw() 252 private void skipGtos(ITestDevice device) throws DeviceNotAvailableException, TargetSetupError { in skipGtos()
|
| D | LowPerformanceTargetPreparer.java | 79 ITestDevice device = testInformation.getDevice(); in setUp() local 101 ITestDevice device = testInformation.getDevice(); in tearDown() local 120 private CommandResult executeFastbootCommand(ITestDevice device, String command) in executeFastbootCommand() 145 private OemDeviceInfo getOemDeviceInfo(ITestDevice device) in getOemDeviceInfo() 173 private boolean isDeviceInLowPerformanceState(ITestDevice device) in isDeviceInLowPerformanceState()
|
| D | SetDevicePropertyPreparer.java | 53 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError, in setUp() 83 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) in tearDown()
|
| /test/catbox/report/src/com/android/catbox/result/ |
| D | ResultReportCollector.java | 74 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError, in setUp() 80 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) in tearDown() 93 private void pullFilesUsingContentUri(ITestDevice device, IBuildInfo buildInfo, in pullFilesUsingContentUri() 114 private void pullFileUsingContentUri(ITestDevice device, IBuildInfo buildInfo, in pullFileUsingContentUri() 196 private boolean doesFileExist(ITestDevice device, String contentUri) in doesFileExist() 261 private void pullFilesUsingFilePaths(ITestDevice device, IBuildInfo buildInfo, in pullFilesUsingFilePaths() 284 private void pullFileUsingFilePath(ITestDevice device, IBuildInfo buildInfo, String filePath, in pullFileUsingFilePath() 348 private void pullDirUsingFilePaths(ITestDevice device, IBuildInfo buildInfo, in pullDirUsingFilePaths() 371 private void pullDirectoryUsingDirPath(ITestDevice device, IBuildInfo buildInfo, String dirPath, in pullDirectoryUsingDirPath()
|
| /test/vts/tests/gpu_test/src/com/android/gpu/vts/ |
| D | Util.java | 28 public static int getVendorApiLevelOrFirstProductApiLevel(final ITestDevice device) in getVendorApiLevelOrFirstProductApiLevel() 43 public static boolean isHandheld(final ITestDevice device) throws DeviceNotAvailableException { in isHandheld()
|
| /test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/targetprep/ |
| D | DeviceInteractionHelperInstaller.java | 74 ITestDevice device = testInfo.getDevice(); in setUp() local 122 ITestDevice device = testInfo.getDevice(); in tearDown() local 139 private void checkApkFile(ITestDevice device, File apkFile, String expectedPackage) in checkApkFile() 171 private void installHelperApk(ITestDevice device, File apkFile, String apkPackage) in installHelperApk()
|
| D | WifiCheck.java | 48 private boolean hasWifiFeature(ITestDevice device) throws DeviceNotAvailableException { in hasWifiFeature() 57 ITestDevice device = testInfo.getDevice(); in run() local
|
| D | CrashReporter.java | 48 private static void upload(ITestDevice device, String testname, JSONArray crashes) { in upload() 82 ITestDevice device = testInfo.getDevice(); in setUp() local 139 public CrashReporterReceiver(ITestDevice device) { in CrashReporterReceiver()
|
| D | MediaPreparer.java | 263 protected boolean mediaFilesExistOnDevice(ITestDevice device) in mediaFilesExistOnDevice() 307 private void updateLocalMediaPath(ITestDevice device, File mediaFolder) in updateLocalMediaPath() 367 private File downloadMediaToHost(ITestDevice device, IBuildInfo buildInfo) in downloadMediaToHost() 501 protected void copyMediaFiles(ITestDevice device) throws DeviceNotAvailableException { in copyMediaFiles() 510 protected void copyVideoFiles(ITestDevice device) throws DeviceNotAvailableException { in copyVideoFiles() 546 protected void copyAll(ITestDevice device) throws DeviceNotAvailableException { in copyAll() 560 protected void setMountPoint(ITestDevice device) { in setMountPoint() 591 ITestDevice device = testInfo.getDevice(); in setUp() local 664 ITestDevice device = testInfo.getDevice(); in setMaxRes() local
|
| D | NetworkConnectivityChecker.java | 39 …public StatusCheckerResult postExecutionCheck(ITestDevice device) throws DeviceNotAvailableExcepti… in postExecutionCheck()
|
| D | PackageDisabler.java | 40 ITestDevice device = testInfo.getDevice(); in run() local
|
| D | BusinessLogicPreparer.java | 186 ITestDevice device = testInfo.getDevice(); in setUp() local 284 String buildRequestParams(ITestDevice device, IBuildInfo buildInfo) in buildRequestParams() 378 static void checkAndInstallContentProvider(ITestDevice device) in checkAndInstallContentProvider() 388 private List<String> getBusinessLogicProperties(ITestDevice device, IBuildInfo buildInfo) in getBusinessLogicProperties() 412 private List<String> getBusinessLogicFeatures(ITestDevice device, IBuildInfo buildInfo) in getBusinessLogicFeatures() 427 private List<String> getBusinessLogicPackages(ITestDevice device, IBuildInfo buildInfo) in getBusinessLogicPackages() 600 private static void removeDeviceFile(ITestDevice device) throws DeviceNotAvailableException { in removeDeviceFile()
|
| /test/vts/tests/angleallowliststrace_test/host/src/com/google/android/angleallowlists/vts/ |
| D | AngleCommon.java | 36 static void setGlobalSetting(ITestDevice device, String globalSetting, String value) in setGlobalSetting() 43 public static void clearSettings(ITestDevice device) throws Exception { in clearSettings()
|
| /test/vts/tools/vts-core-tradefed/src/com/android/tradefed/targetprep/ |
| D | MultiSimPreparer.java | 38 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws DeviceNotAvailableException { in setUp() 50 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable throwable) in tearDown()
|