/aosp_15_r20/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/ |
D | FeatureFlagTargetPreparerTest.java | 80 when(mDevice.executeShellV2Command(anyString())).thenReturn(mCommandResult); in setUp() 92 verify(mDevice).executeShellV2Command(eq("device_config list")); in testSetUpAndTearDown_oneFlagFile_newAndUpdatedFlags() 93 verify(mDevice).executeShellV2Command(eq("device_config put 'namespace' 'f' 'v1'")); in testSetUpAndTearDown_oneFlagFile_newAndUpdatedFlags() 94 verify(mDevice).executeShellV2Command(eq("device_config put 'namespace' 'f1' 'v1'")); in testSetUpAndTearDown_oneFlagFile_newAndUpdatedFlags() 109 verify(mDevice).executeShellV2Command(eq("device_config put 'namespace' 'f' 'v'")); in testSetUpAndTearDown_oneFlagFile_newAndUpdatedFlags() 110 verify(mDevice).executeShellV2Command(eq("device_config delete 'namespace' 'f1'")); in testSetUpAndTearDown_oneFlagFile_newAndUpdatedFlags() 122 verify(mDevice).executeShellV2Command(eq("device_config list")); in testSetUpAndTearDown_oneFlagFile_nullValueFlagInDeviceConfig() 123 verify(mDevice).executeShellV2Command(eq("device_config put 'namespace' 'f' 'v'")); in testSetUpAndTearDown_oneFlagFile_nullValueFlagInDeviceConfig() 133 verify(mDevice).executeShellV2Command(eq("device_config delete 'namespace' 'f'")); in testSetUpAndTearDown_oneFlagFile_nullValueFlagInDeviceConfig() 145 verify(mDevice).executeShellV2Command(eq("device_config list")); in testSetUpAndTearDown_oneFlagFile_nullValueFlagInFile() [all …]
|
D | DisableSELinuxTargetPreparerTest.java | 67 when(mMockDevice.executeShellV2Command(GETENFORCE)).thenReturn(result); in testSetUpSuccess_permissive() 71 verify(mMockDevice, times(1)).executeShellV2Command(GETENFORCE); in testSetUpSuccess_permissive() 79 when(mMockDevice.executeShellV2Command(GETENFORCE)).thenReturn(result); in testSetUpSuccess_enforced_rootBefore() 81 when(mMockDevice.executeShellV2Command(SETENFORCE + "0")).thenReturn(result); in testSetUpSuccess_enforced_rootBefore() 82 when(mMockDevice.executeShellV2Command(SETENFORCE + "1")).thenReturn(result); in testSetUpSuccess_enforced_rootBefore() 86 verify(mMockDevice, times(1)).executeShellV2Command(GETENFORCE); in testSetUpSuccess_enforced_rootBefore() 88 verify(mMockDevice, times(1)).executeShellV2Command(SETENFORCE + "0"); in testSetUpSuccess_enforced_rootBefore() 89 verify(mMockDevice, times(1)).executeShellV2Command(SETENFORCE + "1"); in testSetUpSuccess_enforced_rootBefore() 97 when(mMockDevice.executeShellV2Command(GETENFORCE)).thenReturn(result); in testSetUpSuccess_enforced_notRootBefore() 102 when(mMockDevice.executeShellV2Command(SETENFORCE + "0")).thenReturn(result); in testSetUpSuccess_enforced_notRootBefore() [all …]
|
D | ModulePusherTest.java | 108 when(mMockDevice.executeShellV2Command("ls /system/apex/")).thenReturn(apexCr); in setUp() 110 when(mMockDevice.executeShellV2Command("pm get-moduleinfo | grep 'com.google'")) in setUp() 112 when(mMockDevice.executeShellV2Command("cmd testharness enable")).thenReturn(cr); in setUp() 115 when(mMockDevice.executeShellV2Command("pm path " + APEX_PACKAGE_NAME)).thenReturn(cr1); in setUp() 118 when(mMockDevice.executeShellV2Command("pm path " + APK_PACKAGE_NAME)).thenReturn(cr2); in setUp() 124 when(mMockDevice.executeShellV2Command("pm path " + SPLIT_APK_PACKAGE_NAME)) in setUp() 130 when(mMockDevice.executeShellV2Command( in setUp() 191 when(mMockDevice.executeShellV2Command("ls /system/apex/")).thenReturn(apexCr); in testGetApexPathUnderSystem() 236 when(mMockDevice.executeShellV2Command("pm path " + APEX_PACKAGE_NAME)) in testGetPreLoadPathsOnQReturnDefault() 248 when(mMockDevice.executeShellV2Command("pm path " + APEX_PACKAGE_NAME)) in testGetPreLoadPathsOnSThrowsException() [all …]
|
D | InstallKernelModulePreparerTest.java | 123 when(mMockDevice.executeShellV2Command(matches(KUNIT_MODULE_REMOVAL_COMMAND))) in testSetup() 125 when(mMockDevice.executeShellV2Command( in testSetup() 153 when(mMockDevice.executeShellV2Command( in testSetupWithPreExistingDependentModule() 178 when(mMockDevice.executeShellV2Command(matches(KUNIT_MODULE_REMOVAL_COMMAND))) in testSetupWithDifferentArgs() 180 when(mMockDevice.executeShellV2Command( in testSetupWithDifferentArgs() 201 when(mMockDevice.executeShellV2Command(matches(KUNIT_MODULE_REMOVAL_COMMAND))) in testSetupWithTwoModules() 203 when(mMockDevice.executeShellV2Command( in testSetupWithTwoModules() 207 when(mMockDevice.executeShellV2Command( in testSetupWithTwoModules() 225 when(mMockDevice.executeShellV2Command(matches(KUNIT_MODULE_REMOVAL_COMMAND))) in testInstallFailureThrow() 227 when(mMockDevice.executeShellV2Command(matches(KUNIT_MODULE_INSTALLATION_COMMAND))) in testInstallFailureThrow()
|
D | InstallApexModuleTargetPreparerTest.java | 874 when(mMockDevice.executeShellV2Command("ls " + APEX_DATA_DIR)).thenReturn(res); in testSetupSuccess_noDataUnderApexDataDirs() 875 when(mMockDevice.executeShellV2Command("ls " + SESSION_DATA_DIR)).thenReturn(res); in testSetupSuccess_noDataUnderApexDataDirs() 876 when(mMockDevice.executeShellV2Command("ls " + STAGING_DATA_DIR)).thenReturn(res); in testSetupSuccess_noDataUnderApexDataDirs() 1345 when(mMockDevice.executeShellV2Command(PARENT_SESSION_CREATION_CMD)) in testSetupAndTearDown_ParentSessionCreationFail() 1377 when(mMockDevice.executeShellV2Command(PARENT_SESSION_CREATION_CMD)) in testSetupAndTearDown_ChildSessionCreationFail() 1381 when(mMockDevice.executeShellV2Command(CHILD_SESSION_CREATION_CMD_APEX)) in testSetupAndTearDown_ChildSessionCreationFail() 1383 when(mMockDevice.executeShellV2Command(CHILD_SESSION_CREATION_CMD_APK)) in testSetupAndTearDown_ChildSessionCreationFail() 1413 when(mMockDevice.executeShellV2Command(PARENT_SESSION_CREATION_CMD)) in testSetupAndTearDown_FileWrittenToSessionFail() 1415 when(mMockDevice.executeShellV2Command(CHILD_SESSION_CREATION_CMD_APEX)) in testSetupAndTearDown_FileWrittenToSessionFail() 1417 when(mMockDevice.executeShellV2Command(CHILD_SESSION_CREATION_CMD_APK)) in testSetupAndTearDown_FileWrittenToSessionFail() [all …]
|
/aosp_15_r20/tools/tradefederation/core/javatests/com/android/tradefed/suite/checker/baseline/ |
D | LockSettingsBaselineSetterTest.java | 72 when(mMockDevice.executeShellV2Command(GET_LOCK_SCREEN_COMMAND)) in setBaseline_lockScreenOff_skipRemovingPasswords() 74 when(mMockDevice.executeShellV2Command(KEYCODE_MENU_COMMAND)) in setBaseline_lockScreenOff_skipRemovingPasswords() 76 when(mMockDevice.executeShellV2Command(KEYCODE_HOME_COMMAND)) in setBaseline_lockScreenOff_skipRemovingPasswords() 79 verify(mMockDevice, never()).executeShellV2Command(LOCK_SCREEN_OFF_COMMAND); in setBaseline_lockScreenOff_skipRemovingPasswords() 81 .executeShellV2Command(String.format(CLEAR_PWD_COMMAND, "0000")); in setBaseline_lockScreenOff_skipRemovingPasswords() 83 .executeShellV2Command(String.format(CLEAR_PWD_COMMAND, "1234")); in setBaseline_lockScreenOff_skipRemovingPasswords() 89 when(mMockDevice.executeShellV2Command(GET_LOCK_SCREEN_COMMAND)) in setBaseline_setSucceeds_passwordsRemoved() 93 when(mMockDevice.executeShellV2Command(KEYCODE_MENU_COMMAND)) in setBaseline_setSucceeds_passwordsRemoved() 95 when(mMockDevice.executeShellV2Command(KEYCODE_HOME_COMMAND)) in setBaseline_setSucceeds_passwordsRemoved() 98 verify(mMockDevice).executeShellV2Command(LOCK_SCREEN_OFF_COMMAND); in setBaseline_setSucceeds_passwordsRemoved() [all …]
|
/aosp_15_r20/test/app_compat/csuite/harness/src/test/java/com/android/csuite/core/ |
D | SystemAppUninstallerTest.java | 58 device.executeShellV2Command( in uninstallPackage_frameworkNotRunning_startsFrameworkOrThrows() 65 Mockito.verify(device, Mockito.times(1)).executeShellV2Command(Mockito.eq("start")); in uninstallPackage_frameworkNotRunning_startsFrameworkOrThrows() 74 Mockito.verify(device, Mockito.times(0)).executeShellV2Command(Mockito.startsWith("rm")); in uninstallPackage_packageIsNotInstalled_doesNotRemove() 85 device.executeShellV2Command( in uninstallPackage_differentPackageWithSameNamePrefixInstalled_doesNotRemove() 92 Mockito.verify(device, Mockito.times(0)).executeShellV2Command(Mockito.startsWith("rm")); in uninstallPackage_differentPackageWithSameNamePrefixInstalled_doesNotRemove() 99 device.executeShellV2Command( in uninstallPackage_checkPackageInstalledCommandFailed_throws() 113 device.executeShellV2Command( in uninstallPackage_getInstallDirectoryCommandFailed_throws() 129 Mockito.verify(device, Mockito.times(0)).executeShellV2Command(Mockito.startsWith("rm")); in uninstallPackage_packageIsNotSystemApp_doesNotRemove() 214 .executeShellV2Command(Mockito.startsWith(MOUNT_COMMAND_PREFIX)); in uninstallPackage_adbRemounted_mountReadOnlyAfterwards() 221 device.executeShellV2Command( in uninstallPackage_mountReadOnlyFailed_throws() [all …]
|
D | DeviceUtilsTest.java | 69 when(mDevice.executeShellV2Command(captor.capture())) in grantExternalStoragePermissions_commandFailed_doesNotThrow() 81 when(mDevice.executeShellV2Command(Mockito.startsWith("pm list packages"))) in isPackageInstalled_packageIsInstalled_returnsTrue() 94 when(mDevice.executeShellV2Command(Mockito.startsWith("pm list packages"))) in isPackageInstalled_packageIsNotInstalled_returnsFalse() 105 when(mDevice.executeShellV2Command(Mockito.startsWith("pm list packages"))) in isPackageInstalled_commandFailed_throws() 114 when(mDevice.executeShellV2Command(Mockito.startsWith("monkey"))) in launchPackage_pmDumpFailedAndPackageDoesNotExist_throws() 116 when(mDevice.executeShellV2Command(Mockito.startsWith("pm dump"))) in launchPackage_pmDumpFailedAndPackageDoesNotExist_throws() 118 when(mDevice.executeShellV2Command(Mockito.startsWith("pm list packages"))) in launchPackage_pmDumpFailedAndPackageDoesNotExist_throws() 127 when(mDevice.executeShellV2Command(Mockito.startsWith("monkey"))) in launchPackage_pmDumpFailedAndPackageExists_throws() 129 when(mDevice.executeShellV2Command(Mockito.startsWith("pm dump"))) in launchPackage_pmDumpFailedAndPackageExists_throws() 131 when(mDevice.executeShellV2Command(Mockito.startsWith("pm list packages"))) in launchPackage_pmDumpFailedAndPackageExists_throws() [all …]
|
/aosp_15_r20/platform_testing/libraries/sts-common-util/host-side/tests/src/com/android/sts/common/ |
H A D | NativePocTest.java | 116 when(device.executeShellV2Command(startsWith("chmod "))).thenReturn(SUCCESS_RESULT); in setup() 117 when(device.executeShellV2Command(startsWith("test "))).thenReturn(SUCCESS_RESULT); in setup() 127 when(device.executeShellV2Command(anyString(), anyLong(), any(), anyInt())) in testBasicPocExecution() 134 .executeShellV2Command( in testBasicPocExecution() 145 when(device.executeShellV2Command(anyString(), anyLong(), any(), anyInt())) in testPocExecutionWithArgsAndEnvVarsAndTimeout() 159 .executeShellV2Command( in testPocExecutionWithArgsAndEnvVarsAndTimeout() 173 when(device.executeShellV2Command(anyString(), anyLong(), any(), anyInt())) in testPocTimeout() 182 when(device.executeShellV2Command(anyString(), anyLong(), any(), anyInt())) in testPocExecutionWithResourceAndAfter() 189 .after(res -> testCase.getDevice().executeShellV2Command("echo EXTRA AFTER CMD")) in testPocExecutionWithResourceAndAfter() 196 .executeShellV2Command( in testPocExecutionWithResourceAndAfter() [all …]
|
/aosp_15_r20/tools/tradefederation/core/javatests/com/android/tradefed/testtype/ |
D | ArtRunTestTest.java | 190 when(mMockITestDevice.executeShellV2Command(mktempCmd, 10000L, TimeUnit.MILLISECONDS, 0)) in doTestRunSingleTest() 201 when(mMockITestDevice.executeShellV2Command(dalvikvmCmd, 60000L, TimeUnit.MILLISECONDS, 0)) in doTestRunSingleTest() 211 when(mMockITestDevice.executeShellV2Command( in doTestRunSingleTest() 217 when(mMockITestDevice.executeShellV2Command( in doTestRunSingleTest() 229 when(mMockITestDevice.executeShellV2Command( in doTestRunSingleTest() 235 when(mMockITestDevice.executeShellV2Command( in doTestRunSingleTest() 313 when(mMockITestDevice.executeShellV2Command(mktempCmd, 10000L, TimeUnit.MILLISECONDS, 0)) in testRunSingleTest_nonZeroExitCode() 324 when(mMockITestDevice.executeShellV2Command(dalvikvmCmd, 60000L, TimeUnit.MILLISECONDS, 0)) in testRunSingleTest_nonZeroExitCode() 334 when(mMockITestDevice.executeShellV2Command( in testRunSingleTest_nonZeroExitCode() 340 when(mMockITestDevice.executeShellV2Command( in testRunSingleTest_nonZeroExitCode() [all …]
|
D | GoogleBenchmarkTestTest.java | 115 when(mMockITestDevice.executeShellV2Command( in testRun() 122 when(mMockITestDevice.executeShellV2Command( in testRun() 132 .executeShellV2Command( in testRun() 138 .executeShellV2Command( in testRun() 197 when(mMockITestDevice.executeShellV2Command( in testRun_withSingleModuleName() 203 when(mMockITestDevice.executeShellV2Command( in testRun_withSingleModuleName() 218 .executeShellV2Command( in testRun_withSingleModuleName() 224 .executeShellV2Command( in testRun_withSingleModuleName() 257 when(mMockITestDevice.executeShellV2Command( in testRun_withMultipleModuleNames() 266 when(mMockITestDevice.executeShellV2Command( in testRun_withMultipleModuleNames() [all …]
|
/aosp_15_r20/cts/hostsidetests/os/src/android/os/cts/ |
H A D | MemcgV2HostTests.java | 50 CommandResult commandResult = getDevice().executeShellV2Command("mount | grep cgroup2"); in getCgroupV2MountPoint() 63 CommandResult commandResult = getDevice().executeShellV2Command( in isMemcgV2Enabled() 83 commandResult = getDevice().executeShellV2Command( in isMemcgV2Enabled() 99 CommandResult commandResult = getDevice().executeShellV2Command( in checkRootSubtreeState() 130 if (mChildCgroup != null) getDevice().executeShellV2Command("rmdir " + mChildCgroup); in cleanup() 133 getDevice().executeShellV2Command( in cleanup() 145 CommandResult commandResult = getDevice().executeShellV2Command( in testCanActivateMemcgV2Cgroup() 152 CommandResult commandResult = getDevice().executeShellV2Command( in testCanActivateMemcgV2Cgroup() 160 commandResult = getDevice().executeShellV2Command( in testCanActivateMemcgV2Cgroup() 165 commandResult = getDevice().executeShellV2Command( in testCanActivateMemcgV2Cgroup() [all …]
|
/aosp_15_r20/cts/hostsidetests/graphics/gpuprofiling/src/android/graphics/gpuprofiling/cts/ |
H A D | CtsGpuProfilingDataTest.java | 101 getDevice().executeShellV2Command(mCmd); in run() 111 getDevice().executeShellV2Command("killall " + BIN_NAME); in cleanup() 112 getDevice().executeShellV2Command("am force-stop " + APP); in cleanup() 113 getDevice().executeShellV2Command("settings delete global gpu_debug_layers"); in cleanup() 114 getDevice().executeShellV2Command("settings delete global enable_gpu_debug_layers"); in cleanup() 115 getDevice().executeShellV2Command("settings delete global gpu_debug_app"); in cleanup() 116 getDevice().executeShellV2Command("settings delete global gpu_debug_layer_app"); in cleanup() 130 getDevice().executeShellV2Command("settings put global enable_gpu_debug_layers 1"); in init() 131 getDevice().executeShellV2Command("settings put global gpu_debug_app " + APP); in init() 133 .executeShellV2Command("settings put global gpu_debug_layer_app " + layerApp); in init() [all …]
|
/aosp_15_r20/system/core/fs_mgr/tests/src/com/android/tests/vendoroverlay/ |
H A D | VendorOverlayHostTest.java | 43 vndkVersion = getDevice().executeShellV2Command("getprop ro.vndk.version").getStdout(); in setup() 60 CommandResult result = getDevice().executeShellV2Command("df"); in setup() 72 CommandResult result = getDevice().executeShellV2Command("mkdir -p " + dir); in assumeMkdirSuccess() 82 CommandResult result = getDevice().executeShellV2Command( in testVendorOverlay() 89 result = getDevice().executeShellV2Command( in testVendorOverlay() 94 result = getDevice().executeShellV2Command( in testVendorOverlay() 101 result = getDevice().executeShellV2Command("[ $(cat /vendor/testdir/test) = overlay ]"); in testVendorOverlay() 103 result = getDevice().executeShellV2Command("[ ! -d /vendor/noexist/test ]"); in testVendorOverlay() 105 result = getDevice().executeShellV2Command("[ ! -d /vendor/diffcontext/test ]"); in testVendorOverlay() 112 if (cmdSucceeded(getDevice().executeShellV2Command( in testConditionsMet() [all …]
|
/aosp_15_r20/platform_testing/libraries/sts-common-util/host-side/src/com/android/sts/common/ |
H A D | LockSettingsUtil.java | 139 CommandResult verifyResult = mDevice.executeShellV2Command("locksettings verify"); in withLockScreen() 147 mDevice.executeShellV2Command(format("locksettings set-pin %s", lockScreenCode)); in withLockScreen() 150 mDevice.executeShellV2Command( in withLockScreen() 154 mDevice.executeShellV2Command( in withLockScreen() 158 mDevice.executeShellV2Command("locksettings set-disabled false"); in withLockScreen() 169 mDevice.executeShellV2Command("locksettings get-disabled"); in withLockScreen() 179 mDevice.executeShellV2Command( in withLockScreen() 206 mDevice.executeShellV2Command("locksettings set-disabled true"); in withLockScreen() 208 mDevice.executeShellV2Command( in withLockScreen()
|
/aosp_15_r20/tools/tradefederation/core/javatests/com/android/tradefed/suite/checker/ |
D | FilesystemRootCheckerTest.java | 51 when(mMockDevice.executeShellV2Command(Mockito.eq(FilesystemRootChecker.FIND_ROOT_COMMAND))) in setup() 66 when(mMockDevice.executeShellV2Command(Mockito.eq(FilesystemRootChecker.FIND_ROOT_COMMAND))) in testNoRootFiles() 72 .executeShellV2Command(Mockito.eq(FilesystemRootChecker.FIND_ROOT_COMMAND)); in testNoRootFiles() 88 when(mMockDevice.executeShellV2Command(Mockito.eq(FilesystemRootChecker.FIND_ROOT_COMMAND))) in testRootFile() 93 .executeShellV2Command(Mockito.eq(FilesystemRootChecker.FIND_ROOT_COMMAND)); in testRootFile() 109 when(mMockDevice.executeShellV2Command(Mockito.eq(FilesystemRootChecker.FIND_ROOT_COMMAND))) in testRootDirectory() 114 .executeShellV2Command(Mockito.eq(FilesystemRootChecker.FIND_ROOT_COMMAND)); in testRootDirectory() 129 when(mMockDevice.executeShellV2Command(Mockito.eq(FilesystemRootChecker.FIND_ROOT_COMMAND))) in testModuleStartWithRootFile() 135 .executeShellV2Command(Mockito.eq(FilesystemRootChecker.FIND_ROOT_COMMAND)); in testModuleStartWithRootFile()
|
/aosp_15_r20/packages/modules/AdServices/sdksandbox/tests/hostsidetests/src/com/android/tests/sdksandbox/host/ |
D | SdkSandboxShellHostTest.java | 79 getDevice().executeShellV2Command(String.format("cmd deviceidle whitelist +%s", pkg)); in setUp() 96 getDevice().executeShellV2Command(String.format("cmd deviceidle whitelist -%s", pkg)); in tearDown() 102 CommandResult output = getDevice().executeShellV2Command( in testStartAndStopSdkSandboxSucceedsForDebuggableApp() 109 output = getDevice().executeShellV2Command( in testStartAndStopSdkSandboxSucceedsForDebuggableApp() 119 CommandResult output = getDevice().executeShellV2Command( in testStartSdkSandboxFailsForNonDebuggableApp() 130 CommandResult output = getDevice().executeShellV2Command( in testStartSdkSandboxFailsForIncorrectUser() 146 .executeShellV2Command( in testStopSdkSandboxSucceedsForRunningDebuggableApp() 159 CommandResult output = getDevice().executeShellV2Command( in testStartSdkSandboxFailsForInvalidPackage() 169 CommandResult output = getDevice().executeShellV2Command( in testStopSdkSandboxFailsForNonDebuggableApp() 183 CommandResult output = getDevice().executeShellV2Command(String.format( in testStopSdkSandboxFailsForIncorrectUser()
|
/aosp_15_r20/system/apex/tests/src/com/android/tests/apex/ |
H A D | ApexdHostTest.java | 100 getDevice().executeShellV2Command("rm /data/apex/active/apexd_test_v2.apex"); in testOrphanedApexIsNotActivated() 121 getDevice().executeShellV2Command("rm /data/apex/active/" + testApexFile); in testApexWithoutPbIsNotActivated() 161 getDevice().executeShellV2Command("rm /product/apex/apex.apexd_test.apex"); in testApexWithoutPbIsNotActivated_ProductPartitionHasOlderVersion() 162 getDevice().executeShellV2Command("rm /data/apex/active/apex.apexd_test_v2_no_pb.apex"); in testApexWithoutPbIsNotActivated_ProductPartitionHasOlderVersion() 202 getDevice().executeShellV2Command("rm /product/apex/apex.apexd_test_v3.apex"); in testApexWithoutPbIsNotActivated_ProductPartitionHasNewerVersion() 203 getDevice().executeShellV2Command("rm /data/apex/active/apex.apexd_test_v2_no_pb.apex"); in testApexWithoutPbIsNotActivated_ProductPartitionHasNewerVersion() 249 String initialState = getDevice().executeShellV2Command(sessionStateCmd).getStdout(); in testApexSessionStateUnchangedBeforeReboot() 254 getDevice().executeShellV2Command("kill `pidof apexd`"); in testApexSessionStateUnchangedBeforeReboot() 257 String updatedState = getDevice().executeShellV2Command(sessionStateCmd).getStdout(); in testApexSessionStateUnchangedBeforeReboot() 271 getDevice().executeShellV2Command("mkdir -p /data/apex/sessions/1543"); in testSessionsDirMigrationToMetadata() [all …]
|
/aosp_15_r20/test/app_compat/csuite/harness/src/main/java/com/android/csuite/core/ |
D | DeviceUtils.java | 138 mDevice.executeShellV2Command( in grantExternalStoragePermissions() 158 CommandResult result = mDevice.executeShellV2Command("echo ${EPOCHREALTIME:0:14}"); in currentTimeMillis() 181 CommandResult result = mDevice.executeShellV2Command("getprop ro.build.version.sdk"); in getSdkLevel() 241 CommandResult result = mDevice.executeShellV2Command("ls " + videoPath); in runWithScreenRecording() 285 CommandResult sizeResult = mDevice.executeShellV2Command("ls -sh " + videoPath); in runWithScreenRecording() 291 CommandResult hashResult = mDevice.executeShellV2Command("md5sum " + videoPath); in runWithScreenRecording() 321 mDevice.executeShellV2Command( in freezeRotation() 340 mDevice.executeShellV2Command( in unfreezeRotation() 361 mDevice.executeShellV2Command( in launchPackage() 373 mDevice.executeShellV2Command(String.format("pm dump %s", packageName)); in launchPackage() [all …]
|
/aosp_15_r20/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | NativeCodeCoverageFlusherTest.java | 77 when(mMockDevice.executeShellV2Command(anyString())).thenReturn(result); in testClearCoverageMeasurements_rmCommandCalled() 116 when(mMockDevice.executeShellV2Command(anyString())).thenReturn(result); in testFlushCoverageAllProcesses_flushAllCommandCalled() 139 when(mMockDevice.executeShellV2Command(anyString())).thenReturn(result); in testFlushCoverageSpecificProcesses_flushSpecificCommandCalled() 159 when(mMockDevice.executeShellV2Command(anyString())).thenReturn(result); in testFlushNotHandled_flushNotCalled() 178 when(mMockDevice.executeShellV2Command(anyString())).thenReturn(result); in testFlushStatusReadFailed_flushNotCalled() 198 when(mMockDevice.executeShellV2Command(anyString())).thenReturn(result); in testFlushStatusReadEmpty_flushNotCalled() 224 when(mMockDevice.executeShellV2Command(contains("123"))).thenReturn(resultNotHandled); in testFlushOnlySigCgt_flushSpecificProcesses() 225 when(mMockDevice.executeShellV2Command(contains("234"))).thenReturn(resultHandled); in testFlushOnlySigCgt_flushSpecificProcesses() 226 when(mMockDevice.executeShellV2Command(contains("456"))).thenReturn(resultEmpty); in testFlushOnlySigCgt_flushSpecificProcesses()
|
/aosp_15_r20/art/test/odsign/test-src/com/android/tests/odsign/ |
H A D | DeviceState.java | 66 mTestInfo.getDevice().executeShellV2Command(String.format("umount '%s'", mountPoint)); in restore() 80 mTestInfo.getDevice().executeShellV2Command( in restore() 84 mTestInfo.getDevice().executeShellV2Command( in restore() 91 mTestInfo.getDevice().executeShellV2Command( in restore() 93 mTestInfo.getDevice().executeShellV2Command(String.format("rm '%s'", entry.getValue())); in restore() 94 mTestInfo.getDevice().executeShellV2Command( in restore() 99 mTestInfo.getDevice().executeShellV2Command( in restore() 101 mTestInfo.getDevice().executeShellV2Command( in restore() 210 mTestInfo.getDevice().executeShellV2Command( in backupArtifacts()
|
/aosp_15_r20/test/app_compat/csuite/harness/src/test/java/com/android/compatibility/targetprep/ |
D | CheckGmsPreparerTest.java | 97 Mockito.when(device.executeShellV2Command(Mockito.any())) in tearDown_setUpThrows_doesNotCheck() 102 Mockito.verify(device, Mockito.never()).executeShellV2Command(Mockito.any()); in tearDown_setUpThrows_doesNotCheck() 112 Mockito.when(device.executeShellV2Command(CheckGmsPreparer.CHECK_GMS_COMMAND)) in tearDown_setUpRecoveredGms_checksGms() 118 .executeShellV2Command(CheckGmsPreparer.CHECK_GMS_COMMAND); in tearDown_setUpRecoveredGms_checksGms() 128 Mockito.when(device.executeShellV2Command(CheckGmsPreparer.CHECK_GMS_COMMAND)) in tearDown_setUpFoundGms_checksGms() 134 .executeShellV2Command(CheckGmsPreparer.CHECK_GMS_COMMAND); in tearDown_setUpFoundGms_checksGms() 192 .executeShellV2Command(CheckGmsPreparer.CHECK_GMS_COMMAND); in createDeviceWithGmsAbsentAndRecoverable() 198 Mockito.when(device.executeShellV2Command(CheckGmsPreparer.CHECK_GMS_COMMAND)) in createDeviceWithGmsPresent() 205 Mockito.when(device.executeShellV2Command(CheckGmsPreparer.CHECK_GMS_COMMAND)) in createDeviceWithGmsAbsent()
|
/aosp_15_r20/test/catbox/target_preparers/src/com/android/catbox/targetpreparer/ |
H A D | ChromeMdPassengerLoadPreparer.java | 141 CommandResult stopYoutubeResult = device.executeShellV2Command(stopYoutube); in stopTestApps() 142 CommandResult stopChromeResult = device.executeShellV2Command(stopChrome); in stopTestApps() 152 CommandResult dismissResult = device.executeShellV2Command(dismissCommand); in dismissChromeDialogs() 163 CommandResult setMaxUsersResult = device.executeShellV2Command(setMaxUsers); in increaseSupportedUsers() 188 CommandResult startUserResult = device.executeShellV2Command(startUserCommand); in stopUsers() 224 CommandResult result = device.executeShellV2Command(launchYoutubeWithUrlCommand); in simulatePassengerLoad() 240 CommandResult suwSkipCommandResult = device.executeShellV2Command(suwSkipCommand); in skipSuw() 267 CommandResult gTOSPmResult = device.executeShellV2Command(gTOSPmCommand); in skipGtos() 278 CommandResult gTOSKeyUserResult = device.executeShellV2Command(gTOSKeyUserCommand); in skipGtos()
|
/aosp_15_r20/system/core/init/test_upgrade_mte/src/com/android/tests/init/ |
H A D | MteUpgradeTest.java | 43 getDevice().executeShellV2Command("/system/bin/mte_upgrade_test_helper --checking"); in setUp() 50 getDevice().executeShellV2Command("stop mte_upgrade_test_helper"); in tearDown() 51 getDevice().executeShellV2Command("stop mte_upgrade_test_helper_overridden"); in tearDown() 73 CommandResult result = getDevice().executeShellV2Command("start mte_upgrade_test_helper"); in testCrash() 106 getDevice().executeShellV2Command("start mte_upgrade_test_helper_overridden"); in testCrashOverridden() 136 .executeShellV2Command( in testDowngrade() 146 .executeShellV2Command( in testAppProcess()
|
/aosp_15_r20/frameworks/base/tests/BinaryTransparencyHostTest/src/android/transparency/test/ |
H A D | BinaryTransparencyHostTest.java | 75 CommandResult result = getDevice().executeShellV2Command( in testCollectAllApexInfo() 157 CommandResult result = getDevice().executeShellV2Command( in cancelPendingJob() 168 CommandResult result = getDevice().executeShellV2Command( in expectJobToBeScheduled() 191 CommandResult result = getDevice().executeShellV2Command( in uninstallRebootlessApexThenReboot() 199 CommandResult runResult = getDevice().executeShellV2Command("setenforce 0"); in uninstallRebootlessApexThenReboot() 205 CommandResult result = getDevice().executeShellV2Command("pm path com.android.egg"); in updatePreloadApp() 210 result = getDevice().executeShellV2Command("pm install " + path); in updatePreloadApp()
|