/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/host/src/com/android/server/pm/test/ |
H A D | SdCardEjectionTests.kt | 150 device.executeShellCommand("sm set-virtual-disk true") 153 device.executeShellCommand("sm list-disks adoptable") 160 device.executeShellCommand("sm partition $diskId private") 167 device.executeShellCommand("sm list-volumes private") 183 device.executeShellCommand("sm set-virtual-disk false") 192 device.executeShellCommand("mkdir $codePath/oat") 193 assertThat(device.executeShellCommand( 216 val mountPoint = device.executeShellCommand("mount") 221 device.executeShellCommand("sm unmount ${newVolume.diskId}") 227 device.executeShellCommand("sm mount ${newVolume.diskId}") [all …]
|
H A D | OverlayPathsUninstallSystemUpdatesTest.kt | 69 device.executeShellCommand( 76 device.executeShellCommand( 81 assertThat(device.executeShellCommand( 89 device.executeShellCommand("pm uninstall-system-updates $TEST_PKG_NAME"
|
H A D | SystemStubMultiUserDisableUninstallTest.kt | 349 device.executeShellCommand("pm uninstall-system-updates $TEST_PKG_NAME") 379 device.executeShellCommand("pm uninstall-system-updates $TEST_PKG_NAME") 412 device.executeShellCommand("pm uninstall-system-updates $TEST_PKG_NAME") 443 device.executeShellCommand("pm uninstall-system-updates $TEST_PKG_NAME") 474 device.executeShellCommand("pm uninstall-system-updates $TEST_PKG_NAME") 505 device.executeShellCommand("pm uninstall-system-updates $TEST_PKG_NAME") 542 device.executeShellCommand("pm $command --user 0 $pkgName") 546 device.executeShellCommand("pm $command --user $it $pkgName") 555 device.executeShellCommand("pm uninstall --user 0 $pkgName") 559 device.executeShellCommand("pm uninstall --user $it $pkgName") [all …]
|
H A D | BootTest.kt | 61 device.executeShellCommand("pm uninstall -k $packageName") 75 return "1" == device.executeShellCommand("getprop sys.boot_completed").trim()
|
/aosp14/frameworks/base/tests/BootImageProfileTest/src/com/android/bootimageprofile/ |
H A D | BootImageProfileTest.java | 52 return mTestDevice.executeShellCommand("getprop dalvik.vm." + property).trim(); in getProperty() 58 return mTestDevice.executeShellCommand( in setProperty() 61 return mTestDevice.executeShellCommand( in setProperty() 79 String pid = mTestDevice.executeShellCommand("pidof " + pkg).trim(); in forceSaveProfile() 84 String res = mTestDevice.executeShellCommand("kill -s SIGUSR1 " + pid).trim(); in forceSaveProfile() 116 res = mTestDevice.executeShellCommand("stop"); in testSystemServerProfile() 118 res = mTestDevice.executeShellCommand("start"); in testSystemServerProfile() 140 res = mTestDevice.executeShellCommand("truncate -s 0 " + SYSTEM_SERVER_PROFILE).trim(); in testSystemServerProfile() 147 String s = mTestDevice.executeShellCommand( in testSystemServerProfile() 162 res = mTestDevice.executeShellCommand("profman --dump-only --profile-file=" in testSystemServerProfile() [all …]
|
/aosp14/frameworks/base/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/ |
H A D | ImeStressTestRule.java | 91 executeShellCommand(LOCK_SCREEN_OFF_COMMAND); in disableLockScreen() 99 executeShellCommand(LOCK_SCREEN_ON_COMMAND); in restoreLockScreen() 128 executeShellCommand(ENABLE_IME_COMMAND); in enableSimpleIme() 129 executeShellCommand(SET_IME_COMMAND); in enableSimpleIme() 137 executeShellCommand(DISABLE_IME_COMMAND); in disableSimpleIme() 145 executeShellCommand(RESET_IME_COMMAND); in resetImeToDefault() 152 private String executeShellCommand(@NonNull String cmd) throws IOException { in executeShellCommand() method in ImeStressTestRule 153 return mUiDevice.executeShellCommand(cmd); in executeShellCommand()
|
/aosp14/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
H A D | DeviceConfigServiceTest.java | 71 executeShellCommand("device_config put " + sNamespace + " " + sKey + " " + sValue); in testPut() 86 executeShellCommand("device_config put " + sKey + " " + sValue); in testPut_invalidArgs() 92 executeShellCommand( in testPut_invalidArgs() 111 executeShellCommand("device_config delete " + sNamespace + " " + sKey); in testDelete() 130 executeShellCommand("device_config delete " + sKey); in testDelete_invalidArgs() 136 executeShellCommand("device_config delete " + sNamespace + " " + sKey + " extra_arg"); in testDelete_invalidArgs() 147 executeShellCommand( in testReset() 150 executeShellCommand( in testReset() 156 executeShellCommand("device_config reset untrusted_defaults " + sNamespace); in testReset() 162 private static void executeShellCommand(String command) throws IOException { in executeShellCommand() method in DeviceConfigServiceTest [all …]
|
H A D | BaseSettingsProviderTest.java | 211 executeShellCommand("settings reset global " + modeString); in resetSettingsViaShell() 215 executeShellCommand("settings reset secure " + modeString); in resetSettingsViaShell() 232 executeShellCommand("settings reset global " + packageName + " " in resetToDefaultsViaShell() 237 executeShellCommand("settings reset secure " + packageName + " " in resetToDefaultsViaShell() 242 executeShellCommand("settings reset system " + packageName + " " in resetToDefaultsViaShell() 301 executeShellCommand("settings put global " + name + " " in setSettingViaShell() 308 executeShellCommand("settings put secure " + name + " " in setSettingViaShell() 314 executeShellCommand("settings put system " + name + " " in setSettingViaShell() 369 protected static void executeShellCommand(String command) throws IOException { in executeShellCommand() method in BaseSettingsProviderTest 371 .getUiAutomation().executeShellCommand(command).getFileDescriptor()); in executeShellCommand()
|
/aosp14/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/ |
H A D | WindowPerfTestBase.java | 56 executeShellCommand("input keyevent KEYCODE_WAKEUP"); in setUpOnce() 57 executeShellCommand("wm dismiss-keyguard"); in setUpOnce() 76 getUiAutomation().executeShellCommand("atrace --async_start -b 32768 -c " + tags); in startAsyncAtrace() 83 getUiAutomation().executeShellCommand("atrace --async_stop")); in stopAsyncAtraceWithStream() 89 executeShellCommand("mkdir -p " + basePath); in startProfiling() 94 executeShellCommand("am profile start " + samplingArg + " system " in startProfiling() 101 executeShellCommand("am profile stop system"); in stopProfiling() 118 public static ByteArrayOutputStream executeShellCommand(String command) { in executeShellCommand() method in WindowPerfTestBase 119 final ParcelFileDescriptor pfd = getUiAutomation().executeShellCommand(command); in executeShellCommand()
|
/aosp14/frameworks/base/tests/RollbackTest/NetworkStagedRollbackTest/src/com/android/tests/rollback/host/ |
H A D | NetworkStagedRollbackTest.java | 82 getDevice().executeShellCommand("svc wifi disable"); in testNetworkFailedRollback() 83 getDevice().executeShellCommand("svc data disable"); in testNetworkFailedRollback() 105 getDevice().executeShellCommand("svc wifi enable"); in testNetworkFailedRollback() 106 getDevice().executeShellCommand("svc data enable"); in testNetworkFailedRollback() 123 getDevice().executeShellCommand("svc wifi enable"); in testNetworkPassedDoesNotRollback() 124 getDevice().executeShellCommand("svc data enable"); in testNetworkPassedDoesNotRollback()
|
/aosp14/frameworks/base/tests/ManagedProfileLifecycleStressTest/src/com/android/test/stress/ |
H A D | ManagedProfileLifecycleStressTest.java | 58 getDevice().executeShellCommand("settings put global verifier_verify_adb_installs 0"); in testCreateStartDelete() 81 getDevice().executeShellCommand("settings put global verifier_verify_adb_installs 0"); in testCreateStartDeleteStable() 108 getDevice().executeShellCommand( in waitForBroadcastIdle() 123 final String output = getDevice().executeShellCommand( in createManagedProfile() 134 String commandOutput = getDevice().executeShellCommand(command); in setProfileOwner() 139 final String output = getDevice().executeShellCommand("pm remove-user " + userId).trim(); in removeUser() 144 final String output = getDevice().executeShellCommand("am start-user -w " + userId).trim(); in startUser()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/ |
H A D | GlobalActionsImeTest.java | 73 executeShellCommand("settings put secure " + SHOW_IME_WITH_HARD_KEYBOARD + " 1"); in setUp() 79 executeShellCommand("settings put secure " in tearDown() 82 executeShellCommand("input keyevent --longpress POWER"); in tearDown() 83 executeShellCommand("input keyevent HOME"); in tearDown() 105 executeShellCommand("input keyevent --longpress POWER"); in testGlobalActions_doesntStealImeControl() 126 executeShellCommand("input keyevent KEYCODE_WAKEUP"); in turnScreenOn() 128 executeShellCommand("am wait-for-broadcast-idle"); in turnScreenOn() 152 private void executeShellCommand(String cmd) { in executeShellCommand() method in GlobalActionsImeTest
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/ |
H A D | BatteryStatsUserLifecycleTests.java | 128 final String dumpsys = executeShellCommand("dumpsys batterystats --checkin"); in getNumberOfUidsInBatteryStats() 148 executeShellCommand("dumpsys battery unplug"); in batteryOnScreenOff() 149 executeShellCommand("dumpsys batterystats enable pretend-screen-off"); in batteryOnScreenOff() 153 executeShellCommand("dumpsys battery reset"); in batteryOffScreenOn() 154 executeShellCommand("dumpsys batterystats disable pretend-screen-off"); in batteryOffScreenOn() 157 private String executeShellCommand(String cmd) throws Exception { in executeShellCommand() method in BatteryStatsUserLifecycleTests 159 InstrumentationRegistry.getInstrumentation()).executeShellCommand(cmd); in executeShellCommand()
|
/aosp14/frameworks/base/tests/StagedInstallTest/src/com/android/tests/stagedinstallinternal/host/ |
H A D | StagedInstallInternalTest.java | 148 getDevice().executeShellCommand("rm -rf " + file); in deleteFiles() 267 final String sessionId = getDevice().executeShellCommand( in testAdbStagdReadyTimeoutFlagWorks() 282 final String sessionId = getDevice().executeShellCommand( in testAdbStagedInstallWaitsTillReadyByDefault() 298 final String sessionId = getDevice().executeShellCommand( in testAdbStagedReadyWaitCanBeSkipped() 317 final String sessionId = getDevice().executeShellCommand( in testAdbRollbackAppWaitsForStagedReady() 336 String[] sessionIds = getDevice().executeShellCommand( in testAdbInstallMultiPackageCommandWorks() 340 sessionIds = getDevice().executeShellCommand( in testAdbInstallMultiPackageCommandWorks() 429 getDevice().executeShellCommand("rm -r /data/app-staging"); in testFailStagedSessionIfStagingDirectoryDeleted() 444 final String sessionId = getDevice().executeShellCommand( in testApexActivationFailureIsCapturedInSession() 474 getDevice().executeShellCommand("vdc checkpoint startCheckpoint 0"); in testActiveApexIsRevertedOnCheckpointRollback() [all …]
|
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/utils/ |
H A D | MultiWindowUtils.kt | 27 private fun executeShellCommand(instrumentation: Instrumentation, cmd: String) { regex 49 executeShellCommand( 55 executeShellCommand(instrumentation, resetMultiWindowConfigCommand)
|
/aosp14/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/helpers/ |
H A D | MultiWindowUtils.kt | 35 fun executeShellCommand(instrumentation: Instrumentation, cmd: String) { regex 57 executeShellCommand( 63 executeShellCommand(instrumentation, resetMultiWindowConfigCommand)
|
/aosp14/frameworks/base/tests/SystemMemoryTest/host/src/com/android/tests/sysmem/host/ |
H A D | Cujs.java | 38 mDevice.executeShellCommand("kill -10 " + pid); in run() 44 mDevice.executeShellCommand(command); in run()
|
H A D | Device.java | 36 public String executeShellCommand(String command) throws TestException { in executeShellCommand() method in Device 38 return mDevice.executeShellCommand(command); in executeShellCommand()
|
/aosp14/frameworks/base/tests/utils/hostutils/src/com/android/internal/util/test/ |
H A D | SystemPreparer.java | 171 device.executeShellCommand(String.format("cmd overlay %s %s", enable, packageName)); in setOverlayEnabled() 172 result = device.executeShellCommand("cmd overlay dump isenabled " in setOverlayEnabled() 185 packageName, device.executeShellCommand("cmd overlay list"))); in setOverlayEnabled() 207 device.executeShellCommand("stop"); in reboot() 208 device.executeShellCommand("start"); in reboot() 347 device.executeShellCommand( 368 device.executeShellCommand("disable-verity");
|
/aosp14/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/ |
H A D | AppLaunch.java | 608 executeShellCommand(IORAP_DUMPSYS_CMD); in logDumpsysIorapd() 627 executeShellCommand(IORAP_DUMPSYS_CMD); in waitForIorapCompiled() 773 executeShellCommand("whoami"); in checkIfRoot() 786 .executeShellCommand("stop iorapd"); in stopIorapd() 795 .executeShellCommand("start iorapd"); in startIorapd() 856 executeShellCommand(scriptPath); in executeShellCommandWithTempFile() 918 .executeShellCommand(String.format( in toggleIorapStatus() 1304 .executeShellCommand(launchCmd); in run() 1469 getDevice().executeShellCommand( in run() 1482 String[] pids = getDevice().executeShellCommand( in cancel() [all …]
|
/aosp14/frameworks/base/core/tests/overlaytests/host/src/com/android/server/om/hosttest/ |
H A D | InstallOverlayTests.java | 164 assertFalse(getDevice().executeShellCommand("cat /data/system/overlays.xml") in changesPersistedWhenUninstallingDisabledOverlay() 167 assertTrue(getDevice().executeShellCommand("cat /data/system/overlays.xml") in changesPersistedWhenUninstallingDisabledOverlay() 171 assertFalse(getDevice().executeShellCommand("cat /data/system/overlays.xml") in changesPersistedWhenUninstallingDisabledOverlay() 232 return getDevice().executeShellCommand(cmd); in shell()
|
/aosp14/frameworks/base/tests/utils/hostutils/src/com/android/tests/rollback/host/ |
H A D | AbandonSessionsRule.java | 51 String output = device.executeShellCommand(cmdListReadySessions); in abandonSessions() 58 device.executeShellCommand("for i in $(" + cmdListReadySessions in abandonSessions()
|
/aosp14/frameworks/base/tests/RollbackTest/StagedRollbackTest/src/com/android/tests/rollback/host/ |
H A D | StagedRollbackTest.java | 123 getDevice().executeShellCommand("rm -rf " + file); in deleteFiles() 254 getDevice().executeShellCommand(cmd); in startActivity() 276 pid = getDevice().executeShellCommand("pidof " + processName); in crashProcess() 278 getDevice().executeShellCommand("kill " + pid); in crashProcess()
|
/aosp14/frameworks/base/core/tests/bugreports/src/com/android/os/bugreports/tests/ |
H A D | BugreportManagerTest.java | 339 .executeShellCommand("am bug-report"); in cancelBugreport_fromDifferentUid() 484 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in startPreDumpedUiTraces() 487 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in startPreDumpedUiTraces() 490 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in startPreDumpedUiTraces() 496 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in stopPreDumpedUiTraces() 499 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in stopPreDumpedUiTraces() 502 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in stopPreDumpedUiTraces() 571 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in createFilesWithFakeDataAsRoot() 582 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in copyFilesAsRoot() 634 .executeShellCommand("service list | grep dumpstate"); in isDumpstateRunning() [all …]
|
/aosp14/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | PowerManagerTest.java | 76 mUiDevice.executeShellCommand("cmd thermalservice override-status 0"); in setUp() 84 mUiDevice.executeShellCommand("cmd thermalservice reset"); in tearDown() 202 mUiDevice.executeShellCommand("cmd thermalservice override-status " in testGetThermalStatus() 222 mUiDevice.executeShellCommand("cmd thermalservice override-status " in testThermalStatusCallback() 239 mUiDevice.executeShellCommand("cmd thermalservice override-status " in testThermalStatusCallback() 256 mUiDevice.executeShellCommand("cmd thermalservice override-status " in testThermalStatusCallback()
|