/frameworks/base/services/tests/PackageManagerServiceTests/host/src/com/android/server/pm/test/ |
D | SdCardEjectionTests.kt | 94 val response = device.executeShellCommand("am start -n $TEST_PKG_NAME/.TestActivity") in launchActivity() 148 val existingDisks = device.executeShellCommand("sm list-disks adoptable").lines() in initializeVirtualDisk() 149 val existingVolumes = device.executeShellCommand("sm list-volumes private").lines() in initializeVirtualDisk() 150 device.executeShellCommand("sm set-virtual-disk true") in initializeVirtualDisk() 153 device.executeShellCommand("sm list-disks adoptable") in initializeVirtualDisk() 160 device.executeShellCommand("sm partition $diskId private") in initializeVirtualDisk() 167 device.executeShellCommand("sm list-volumes private") in retrieveNewVolume() 183 device.executeShellCommand("sm set-virtual-disk false") in removeVirtualDisk() 185 !device.executeShellCommand("sm list-volumes").contains("ejecting") in removeVirtualDisk() 192 device.executeShellCommand("mkdir $codePath/oat") in movePackage() [all …]
|
D | TamperedUpdatedSystemPackageTest.kt | 129 assertThat(device.executeShellCommand("pm path ${TEST_PKG_NAME}")) in detectApkAndXmlTamperingAtBoot() 139 assertThat(device.executeShellCommand("pm path ${TEST_PKG_NAME}")) in detectApkAndXmlTamperingAtBoot() 167 device.executeShellCommand("touch ${TIMESTAMP_REFERENCE_FILE_PATH} -r $baseApkPath") in detectApkTamperingAtBoot() 169 device.executeShellCommand( in detectApkTamperingAtBoot() 179 assertThat(device.executeShellCommand("pm path ${TEST_PKG_NAME}")) in detectApkTamperingAtBoot() 196 return device.executeShellCommand("pm path $pkgName") in getBaseApkPath()
|
D | OverlayPathsUninstallSystemUpdatesTest.kt | 69 device.executeShellCommand( in verify() 76 device.executeShellCommand( in verify() 81 assertThat(device.executeShellCommand( in verify() 89 device.executeShellCommand("pm uninstall-system-updates $TEST_PKG_NAME" in verify()
|
D | SystemStubMultiUserDisableUninstallTest.kt | 349 device.executeShellCommand("pm uninstall-system-updates $TEST_PKG_NAME") in <lambda>() 379 device.executeShellCommand("pm uninstall-system-updates $TEST_PKG_NAME") in <lambda>() 412 device.executeShellCommand("pm uninstall-system-updates $TEST_PKG_NAME") in <lambda>() 443 device.executeShellCommand("pm uninstall-system-updates $TEST_PKG_NAME") in <lambda>() 474 device.executeShellCommand("pm uninstall-system-updates $TEST_PKG_NAME") in <lambda>() 505 device.executeShellCommand("pm uninstall-system-updates $TEST_PKG_NAME") in <lambda>() 542 device.executeShellCommand("pm $command --user 0 $pkgName") in <lambda>() 546 device.executeShellCommand("pm $command --user $it $pkgName") in <lambda>() 555 device.executeShellCommand("pm uninstall --user 0 $pkgName") in <lambda>() 559 device.executeShellCommand("pm uninstall --user $it $pkgName") in <lambda>() [all …]
|
D | BootTest.kt | 61 device.executeShellCommand("pm uninstall -k $packageName") in uninstallPackageWithKeepData() 75 return "1" == device.executeShellCommand("getprop sys.boot_completed").trim() in isBootCompleted()
|
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
D | DeviceConfigServiceTest.java | 83 executeShellCommand("device_config put " + sNamespace + " " + sKey + " " + sValue); in testOverrideDisabled() 84 executeShellCommand("device_config override " + sNamespace + " " + sKey + " " + newValue); in testOverrideDisabled() 97 executeShellCommand("device_config put " + sNamespace + " " + sKey + " " + sValue); in testOverride() 98 executeShellCommand("device_config override " + sNamespace + " " + sKey + " " + newValue); in testOverride() 103 executeShellCommand("device_config clear_override " + sNamespace + " " + sKey); in testOverride() 117 executeShellCommand("device_config put " + sNamespace + " " + sKey + " " + sValue); in testPut() 118 executeShellCommand("device_config put " + newNamespace + " " + sKey + " " + newValue); in testPut() 132 executeShellCommand("device_config put " + sKey + " " + sValue); in testPut_invalidArgs() 138 executeShellCommand( in testPut_invalidArgs() 157 executeShellCommand("device_config delete " + sNamespace + " " + sKey); in testDelete() [all …]
|
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()
|
/frameworks/base/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/ |
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()
|
/frameworks/base/tests/BootImageProfileTest/src/com/android/bootimageprofile/ |
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 …]
|
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/ |
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()
|
/frameworks/base/tests/RollbackTest/NetworkStagedRollbackTest/src/com/android/tests/rollback/host/ |
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()
|
/frameworks/base/tests/ManagedProfileLifecycleStressTest/src/com/android/test/stress/ |
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()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/ |
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
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | BatteryStatsUserLifecycleTests.java | 137 final String dumpsys = executeShellCommand("dumpsys batterystats --checkin"); in getNumberOfUidsInBatteryStats() 157 executeShellCommand("dumpsys battery unplug"); in batteryOnScreenOff() 158 executeShellCommand("dumpsys batterystats enable pretend-screen-off"); in batteryOnScreenOff() 162 executeShellCommand("dumpsys battery reset"); in batteryOffScreenOn() 163 executeShellCommand("dumpsys batterystats disable pretend-screen-off"); in batteryOffScreenOn() 166 private String executeShellCommand(String cmd) throws Exception { in executeShellCommand() method in BatteryStatsUserLifecycleTests 168 InstrumentationRegistry.getInstrumentation()).executeShellCommand(cmd); in executeShellCommand()
|
/frameworks/base/tests/StagedInstallTest/src/com/android/tests/stagedinstallinternal/host/ |
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() 315 output = getDevice().executeShellCommand("pm rollback-app " + SHIM_APEX_PACKAGE_NAME); in testAdbRollbackAppWaitsForStagedReady() 317 final String sessionId = getDevice().executeShellCommand( in testAdbRollbackAppWaitsForStagedReady() 336 String[] sessionIds = getDevice().executeShellCommand( in testAdbInstallMultiPackageCommandWorks() 340 sessionIds = getDevice().executeShellCommand( in testAdbInstallMultiPackageCommandWorks() 410 getDevice().executeShellCommand("mkdir /data/app-staging/session_123"); in testOrphanedStagingDirectoryGetsCleanedUpOnReboot() 411 getDevice().executeShellCommand("mkdir /data/app-staging/session_456"); in testOrphanedStagingDirectoryGetsCleanedUpOnReboot() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/utils/ |
D | MultiWindowUtils.kt | 27 private fun executeShellCommand(instrumentation: Instrumentation, cmd: String) { in executeShellCommand() method 49 executeShellCommand( 55 executeShellCommand(instrumentation, resetMultiWindowConfigCommand)
|
/frameworks/base/tests/FlickerTests/test-apps/app-helpers/src/com/android/server/wm/flicker/helpers/ |
D | MultiWindowUtils.kt | 35 fun executeShellCommand(instrumentation: Instrumentation, cmd: String) { in executeShellCommand() method 57 executeShellCommand( 63 executeShellCommand(instrumentation, resetMultiWindowConfigCommand)
|
/frameworks/base/tests/SystemMemoryTest/host/src/com/android/tests/sysmem/host/ |
D | Cujs.java | 38 mDevice.executeShellCommand("kill -10 " + pid); in run() 44 mDevice.executeShellCommand(command); in run()
|
D | Device.java | 36 public String executeShellCommand(String command) throws TestException { in executeShellCommand() method in Device 38 return mDevice.executeShellCommand(command); in executeShellCommand()
|
/frameworks/base/tests/utils/hostutils/src/com/android/internal/util/test/ |
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");
|
/frameworks/base/tests/utils/hostutils/src/com/android/tests/rollback/host/ |
D | AbandonSessionsRule.java | 51 String output = device.executeShellCommand(cmdListReadySessions); in abandonSessions() 58 device.executeShellCommand("for i in $(" + cmdListReadySessions in abandonSessions()
|
/frameworks/base/core/tests/bugreports/src/com/android/os/bugreports/tests/ |
D | BugreportManagerTest.java | 368 .executeShellCommand("am bug-report"); in cancelBugreport_fromDifferentUid() 527 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in startPreDumpedUiTraces() 531 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in startPreDumpedUiTraces() 538 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in startPreDumpedUiTraces() 541 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in startPreDumpedUiTraces() 547 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in stopPreDumpedUiTraces() 550 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in stopPreDumpedUiTraces() 553 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in stopPreDumpedUiTraces() 622 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in createFakeTraceFiles() 629 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in createFakeTraceFiles() [all …]
|
/frameworks/base/core/tests/overlaytests/host/src/com/android/server/om/hosttest/ |
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()
|
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/ |
D | AppLaunch.java | 328 getInstrumentation().getUiAutomation().executeShellCommand( in testMeasureStartUpTime() 510 executeShellCommand(String.format(COMPILE_CMD, compilerFilter, appPkgName)); in compileApp() 547 executeShellCommand(String.format(IORAP_COMPILE_CMD, appPkgName)); in compileAppForIorap() 608 executeShellCommand(IORAP_DUMPSYS_CMD); in logDumpsysIorapd() 627 executeShellCommand(IORAP_DUMPSYS_CMD); in waitForIorapCompiled() 765 .executeShellCommand(DROP_CACHE_SCRIPT)); in dropCache() 773 executeShellCommand("whoami"); in checkIfRoot() 786 .executeShellCommand("stop iorapd"); in stopIorapd() 795 .executeShellCommand("start iorapd"); in startIorapd() 832 .executeShellCommand(String.format(IORAP_MAINTENANCE_CMD, packageName)); in purgeIorapPackage() [all …]
|
/frameworks/base/tests/RollbackTest/StagedRollbackTest/src/com/android/tests/rollback/host/ |
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()
|