/frameworks/base/services/tests/PackageManagerServiceTests/host/src/com/android/server/pm/test/ |
D | SdCardEjectionTests.kt | 91 val response = device.executeShellCommand("am start -n $TEST_PKG_NAME/.TestActivity") in launchActivity() 145 val existingDisks = device.executeShellCommand("sm list-disks adoptable").lines() in initializeVirtualDisk() 146 val existingVolumes = device.executeShellCommand("sm list-volumes private").lines() in initializeVirtualDisk() 147 device.executeShellCommand("sm set-virtual-disk true") in initializeVirtualDisk() 150 device.executeShellCommand("sm list-disks adoptable") in initializeVirtualDisk() 157 device.executeShellCommand("sm partition $diskId private") in initializeVirtualDisk() 164 device.executeShellCommand("sm list-volumes private") in retrieveNewVolume() 180 device.executeShellCommand("sm set-virtual-disk false") in removeVirtualDisk() 182 !device.executeShellCommand("sm list-volumes").contains("ejecting") in removeVirtualDisk() 189 device.executeShellCommand("mkdir $codePath/oat") in movePackage() [all …]
|
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()
|
D | HostUtils.kt | 93 device.executeShellCommand("dumpsys package $pkgName") in getDataDir() 129 ) = device.executeShellCommand("pm dump $pkgName") in packageSection() 140 device.executeShellCommand("pm dump $pkgName") in getCodePaths()
|
/frameworks/base/tests/BootImageProfileTest/src/com/android/bootimageprofile/ |
D | BootImageProfileTest.java | 50 return mTestDevice.executeShellCommand("getprop dalvik.vm." + property).trim(); in getProperty() 56 return mTestDevice.executeShellCommand( in setProperty() 59 return mTestDevice.executeShellCommand( in setProperty() 75 String pid = mTestDevice.executeShellCommand("pidof " + pkg).trim(); in forceSaveProfile() 80 String res = mTestDevice.executeShellCommand("kill -s SIGUSR1 " + pid).trim(); in forceSaveProfile() 108 res = mTestDevice.executeShellCommand("stop"); in testSystemServerProfile() 110 res = mTestDevice.executeShellCommand("start"); in testSystemServerProfile() 129 res = mTestDevice.executeShellCommand("truncate -s 0 " + SYSTEM_SERVER_PROFILE).trim(); in testSystemServerProfile() 136 String s = mTestDevice.executeShellCommand( in testSystemServerProfile() 151 res = mTestDevice.executeShellCommand("profman --dump-only --profile-file=" in testSystemServerProfile() [all …]
|
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
D | DeviceConfigServiceTest.java | 72 executeShellCommand("device_config put " + sNamespace + " " + sKey + " " + sValue); in testPut() 73 executeShellCommand("device_config put " + newNamespace + " " + sKey + " " + newValue); in testPut() 87 executeShellCommand("device_config put " + sKey + " " + sValue); in testPut_invalidArgs() 93 executeShellCommand( in testPut_invalidArgs() 112 executeShellCommand("device_config delete " + sNamespace + " " + sKey); in testDelete() 131 executeShellCommand("device_config delete " + sKey); in testDelete_invalidArgs() 137 executeShellCommand("device_config delete " + sNamespace + " " + sKey + " extra_arg"); in testDelete_invalidArgs() 148 executeShellCommand( in testReset() 151 executeShellCommand( in testReset() 157 executeShellCommand("device_config reset untrusted_defaults " + sNamespace); in testReset() [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/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 -b 32768 --async_start " + 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()
|
D | WindowPerfRunPreconditionBase.java | 23 import static android.perftests.utils.WindowPerfTestBase.executeShellCommand; 72 value -> executeShellCommand(String.format("settings put global %s %d", 92 executeShellCommand("cmd overlay enable-exclusive --category " + navOverlay);
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/ |
D | GlobalActionsImeTest.java | 72 executeShellCommand("settings put secure " + SHOW_IME_WITH_HARD_KEYBOARD + " 1"); in setUp() 78 executeShellCommand("settings put secure " in tearDown() 81 executeShellCommand("input keyevent --longpress POWER"); in tearDown() 82 executeShellCommand("input keyevent HOME"); in tearDown() 104 executeShellCommand("input keyevent --longpress POWER"); in testGlobalActions_doesntStealImeControl() 125 executeShellCommand("input keyevent KEYCODE_WAKEUP"); in turnScreenOn() 127 executeShellCommand("am wait-for-broadcast-idle"); in turnScreenOn() 151 private static void executeShellCommand(String cmd) { in executeShellCommand() method in GlobalActionsImeTest 152 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand(cmd); 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/tests/StagedInstallTest/src/com/android/tests/stagedinstallinternal/host/ |
D | StagedInstallInternalTest.java | 129 getDevice().executeShellCommand("rm -rf " + file); in deleteFiles() 193 final String sessionId = getDevice().executeShellCommand( in testAdbStagdReadyTimeoutFlagWorks() 208 final String sessionId = getDevice().executeShellCommand( in testAdbStagedInstallWaitsTillReadyByDefault() 224 final String sessionId = getDevice().executeShellCommand( in testAdbStagedReadyWaitCanBeSkipped() 241 output = getDevice().executeShellCommand("pm rollback-app " + SHIM_APEX_PACKAGE_NAME); in testAdbRollbackAppWaitsForStagedReady() 243 final String sessionId = getDevice().executeShellCommand( in testAdbRollbackAppWaitsForStagedReady() 262 String[] sessionIds = getDevice().executeShellCommand( in testAdbInstallMultiPackageCommandWorks() 266 sessionIds = getDevice().executeShellCommand( in testAdbInstallMultiPackageCommandWorks() 324 getDevice().executeShellCommand("mkdir /data/app-staging/session_123"); in testOrphanedStagingDirectoryGetsCleanedUpOnReboot() 325 getDevice().executeShellCommand("mkdir /data/app-staging/session_456"); in testOrphanedStagingDirectoryGetsCleanedUpOnReboot() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsUserLifecycleTests.java | 124 final String dumpsys = executeShellCommand("dumpsys batterystats --checkin"); in getNumberOfUidsInBatteryStats() 144 executeShellCommand("dumpsys battery unplug"); in batteryOnScreenOff() 145 executeShellCommand("dumpsys batterystats enable pretend-screen-off"); in batteryOnScreenOff() 149 executeShellCommand("dumpsys battery reset"); in batteryOffScreenOn() 150 executeShellCommand("dumpsys batterystats disable pretend-screen-off"); in batteryOffScreenOn() 153 private String executeShellCommand(String cmd) throws Exception { in executeShellCommand() method in BatteryStatsUserLifecycleTests 155 InstrumentationRegistry.getInstrumentation()).executeShellCommand(cmd); in executeShellCommand()
|
/frameworks/base/startop/iorap/functional_tests/src/com/google/android/startop/iorap/ |
D | IorapWorkFlowTest.java | 159 executeShellCommand("setenforce 0"); in installApk() 160 executeShellCommand("pm install -r -d " + apkPath); in installApk() 161 executeShellCommand("setenforce 1"); in installApk() 166 executeShellCommand("pm uninstall " + apkPath); in uninstallApk() 231 String pid = executeShellCommand("pidof " + packageName); in closeApp() 236 executeShellCommand("kill -9 " + pid); in closeApp() 375 executeShellCommand(tmp.toString()); 388 private static String executeShellCommand(String cmd) throws Exception { 391 InstrumentationRegistry.getInstrumentation()).executeShellCommand(cmd);
|
/frameworks/base/tests/utils/hostutils/src/com/android/internal/util/test/ |
D | SystemPreparer.java | 172 device.executeShellCommand(String.format("cmd overlay %s %s", enable, packageName)); in setOverlayEnabled() 173 result = device.executeShellCommand("cmd overlay dump isenabled " in setOverlayEnabled() 186 packageName, device.executeShellCommand("cmd overlay list"))); in setOverlayEnabled() 208 device.executeShellCommand("stop"); in reboot() 209 device.executeShellCommand("start"); in reboot() 359 device.executeShellCommand( 380 device.executeShellCommand("disable-verity"); 383 device.executeShellCommand("remount");
|
/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/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/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/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/helpers/ |
D | MultiWindowHelper.kt | 40 executeShellCommand( 45 executeShellCommand(instrumentation, resetMultiWindowConfigCommand)
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/apppairs/ |
D | AppPairsTransition.kt | 108 executeShellCommand(composePairsCommand( in <lambda>() 110 executeShellCommand(composePairsCommand( in <lambda>() 136 internal fun executeShellCommand(cmd: String) { in <lambda>() method in com.android.wm.shell.flicker.apppairs.AppPairsTransition 137 BaseAppHelper.executeShellCommand(instrumentation, cmd) in <lambda>()
|
/frameworks/base/tests/ApkVerityTest/src/com/android/apkverity/ |
D | BaseInstallMultiple.java | 91 String result = device.executeShellCommand(cmd.toString()); in run() 124 result = device.executeShellCommand(cmd.toString()); in run() 133 result = device.executeShellCommand(cmd.toString()); in run()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | PowerManagerTest.java | 79 mUiDevice.executeShellCommand("cmd thermalservice override-status 0"); in setUp() 87 mUiDevice.executeShellCommand("cmd thermalservice reset"); in tearDown() 205 mUiDevice.executeShellCommand("cmd thermalservice override-status " in testGetThermalStatus() 225 mUiDevice.executeShellCommand("cmd thermalservice override-status " in testThermalStatusCallback() 242 mUiDevice.executeShellCommand("cmd thermalservice override-status " in testThermalStatusCallback() 259 mUiDevice.executeShellCommand("cmd thermalservice override-status " in testThermalStatusCallback()
|