/packages/modules/StatsD/tests/src/android/cts/statsd/atom/ |
D | AtomTestCase.java | 244 return getDevice().executeShellCommand("if [ -e " + path + " ] ; then" in probe() 303 getDevice().executeShellCommand( in uploadConfig() 306 getDevice().executeShellCommand("rm " + remotePath); in uploadConfig() 310 getDevice().executeShellCommand( in removeConfig() 884 return getDevice().executeShellCommand("getprop " + prop).replace("\n", ""); in getProperty() 888 getDevice().executeShellCommand("input keyevent KEYCODE_WAKEUP"); in turnScreenOn() 889 getDevice().executeShellCommand("wm dismiss-keyguard"); in turnScreenOn() 893 getDevice().executeShellCommand("input keyevent KEYCODE_SLEEP"); in turnScreenOff() 897 getDevice().executeShellCommand("cmd battery set status " + state); in setChargingState() 909 getDevice().executeShellCommand("cmd battery unplug"); in unplugDevice() [all …]
|
D | DeviceAtomTestCase.java | 170 final String packages = getDevice().executeShellCommand("cmd package list packages -U" in getUid() 210 getDevice().executeShellCommand(String.format( in allowBackgroundServices() 220 getDevice().executeShellCommand(String.format( in executeBackgroundService() 229 getDevice().executeShellCommand("am set-standby-bucket " in allowImmediateSyncs() 269 getDevice().executeShellCommand( in withActivity() 272 getDevice().executeShellCommand( in withActivity() 277 getDevice().executeShellCommand( in withActivity() 284 getDevice().executeShellCommand("dumpsys batterystats --reset"); in resetBatteryStats() 288 getDevice().executeShellCommand("dumpsys procstats --clear"); in clearProcStats() 292 getDevice().executeShellCommand("dumpsys procstats --start-testing"); in startProcStatsTesting() [all …]
|
/packages/providers/MediaProvider/tests/utils/src/com/android/providers/media/tests/utils/ |
D | PublicVolumeSetupHelper.java | 68 executeShellCommand("sm set-force-adoptable on"); in createNewPublicVolume() 69 executeShellCommand("sm set-virtual-disk true"); in createNewPublicVolume() 86 final String publicVolume = executeShellCommand("sm list-volumes public").trim(); in isPublicVolumeMounted() 95 final String listDisks = executeShellCommand("sm list-disks").trim(); in partitionDisk() 97 executeShellCommand("sm partition " + listDisks + " public"); in partitionDisk() 126 allPublicVolumeDetails = executeShellCommand("sm list-volumes public") in getCurrentPublicVolumeString() 146 executeShellCommand("sm mount " + getPublicVolumeString()); in mountPublicVolume() 150 executeShellCommand("sm unmount " + getPublicVolumeString()); in unmountPublicVolume() 155 executeShellCommand("sm set-virtual-disk false"); in deletePublicVolumes() 169 public static String executeShellCommand(String pattern, Object...args) throws IOException { in executeShellCommand() method in PublicVolumeSetupHelper [all …]
|
/packages/services/Car/tests/android_car_api_test/src/com/android/internal/car/ |
D | CarServiceHelperServiceSystemTest.java | 45 executeShellCommand("cmd car_service emulate-driving-state park"); in testCarServiceHelperServiceDump_safeMode() 58 executeShellCommand("cmd car_service emulate-driving-state drive"); in testCarServiceHelperServiceDump_unsafeMode() 64 executeShellCommand("cmd car_service emulate-driving-state park"); in testCarServiceHelperServiceDump_unsafeMode() 74 executeShellCommand("cmd car_service emulate-driving-state park"); in testCarServiceHelperServiceDump_safeOperation() 87 executeShellCommand("cmd car_service emulate-driving-state drive"); in testCarServiceHelperServiceDump_unsafeOperation() 93 executeShellCommand("cmd car_service emulate-driving-state park"); in testCarServiceHelperServiceDump_unsafeOperation() 99 executeShellCommand("service check system_server_dumper"), in assumeSystemServerDumpSupported() 113 return executeShellCommand(cmd.toString()); in dumpCarServiceHelper()
|
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/ |
D | StorageWizardTest.java | 60 mDevice.executeShellCommand("setprop sys.debug.storage_slow 1"); in setUp() 61 mDevice.executeShellCommand("sm set-virtual-disk true"); in setUp() 64 mDevice.executeShellCommand("sm partition " + mDisk + " public"); in setUp() 76 mDevice.executeShellCommand("setprop sys.debug.storage_slow 0"); in tearDown() 77 mDevice.executeShellCommand("sm set-virtual-disk false"); in tearDown() 78 mDevice.executeShellCommand("sm forget all"); in tearDown() 151 String disks = mDevice.executeShellCommand("sm list-disks adoptable"); in getAdoptableDisk() 154 disks = mDevice.executeShellCommand("sm list-disks adoptable"); in getAdoptableDisk() 166 String volumes = mDevice.executeShellCommand("sm list-volumes public"); in getPublicVolume() 170 volumes = mDevice.executeShellCommand("sm list-volumes public"); in getPublicVolume()
|
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/SdkSandboxStorageHostTest/src/com/android/tests/sdksandbox/host/ |
D | SdkSandboxStorageHostTest.java | 223 getDevice().executeShellCommand("echo something to delete > " + fileToDelete); in testSdkSandboxDataAppDirectory_IsClearedOnClearAppData() 232 getDevice().executeShellCommand("echo something to delete > " + fileToDelete); in testSdkSandboxDataAppDirectory_IsClearedOnClearAppData() 239 getDevice().executeShellCommand("pm clear " + TEST_APP_STORAGE_PACKAGE); in testSdkSandboxDataAppDirectory_IsClearedOnClearAppData() 310 getDevice().executeShellCommand("echo something to read > " + fileToRead); in testSdkDataPackageDirectory_SharedStorageIsUsable() 318 String content = getDevice().executeShellCommand("cat " + sharedCePath + "/dir/file"); in testSdkDataPackageDirectory_SharedStorageIsUsable() 364 assertEmpty(getDevice().executeShellCommand("sm partition " + diskId + " private")); in testSdkData_CanBeMovedToDifferentVolume() 367 assertSuccess(getDevice().executeShellCommand( in testSdkData_CanBeMovedToDifferentVolume() 387 getDevice().executeShellCommand("sm partition " + diskId + " public"); in testSdkData_CanBeMovedToDifferentVolume() 388 getDevice().executeShellCommand("sm forget all"); in testSdkData_CanBeMovedToDifferentVolume() 454 final String output = getDevice().executeShellCommand("ls -ldZ " + path); in assertSelinuxLabel() [all …]
|
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/ |
D | AbstractRestrictBackgroundNetworkTestCase.java | 25 import static com.android.cts.net.hostside.NetworkPolicyTestUtils.executeShellCommand; 184 executeShellCommand("cmd netpolicy start-watching " + mUid); in setUp() 193 executeShellCommand("cmd netpolicy stop-watching"); in tearDown() 486 final String result = executeShellCommand(command); in executeSilentShellCommand() 518 result = executeShellCommand(command).trim(); in assertDelayedShellCommand() 534 executeShellCommand("cmd netpolicy add restrict-background-whitelist " + uid); in addRestrictBackgroundWhitelist() 542 executeShellCommand("cmd netpolicy remove restrict-background-whitelist " + uid); in removeRestrictBackgroundWhitelist() 551 executeShellCommand("cmd netpolicy add restrict-background-blacklist " + uid); in addRestrictBackgroundBlacklist() 559 executeShellCommand("cmd netpolicy remove restrict-background-blacklist " + uid); in removeRestrictBackgroundBlacklist() 568 executeShellCommand("cmd netpolicy add app-idle-whitelist " + uid); in addAppIdleWhitelist() [all …]
|
D | NetworkPolicyTestUtils.java | 134 final String result = executeShellCommand("cmd deviceidle enabled deep"); in isDozeModeSupported() 155 executeShellCommand("cmd jobscheduler run -f -u " + UserHandle.myUserId() in forceRunJob() 347 executeShellCommand("cmd netpolicy set restrict-background " + enabled); 348 final String output = executeShellCommand("cmd netpolicy get restrict-background"); 390 executeShellCommand("dumpsys netpolicy --unsnooze"); 393 public static String executeShellCommand(String command) {
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | UnreliableVolumeTest.java | 88 executeShellCommand("sm set-virtual-disk false"); in tearDown() 144 public static String executeShellCommand(String pattern, Object...args) throws IOException { in executeShellCommand() method in UnreliableVolumeTest 160 uiAutomation.executeShellCommand(cmd).getFileDescriptor())) { in executeShellCommandInternal() 178 final String publicVolume = executeShellCommand("sm list-volumes public").trim(); in isPublicVolumeMounted() 187 final String listDisks = executeShellCommand("sm list-disks").trim(); in partitionDisk() 189 executeShellCommand("sm partition " + listDisks + " public"); in partitionDisk() 201 allPublicVolumeDetails = executeShellCommand("sm list-volumes public") in getCurrentPublicVolumeString() 234 executeShellCommand("sm set-force-adoptable off"); in createRemovableVolume() 235 executeShellCommand("sm set-virtual-disk true"); in createRemovableVolume()
|
D | IdleServiceTest.java | 300 executeShellCommand("rm -rf " + file.getAbsolutePath()); in delete() 306 executeShellCommand("mkdir -p " + file.getParentFile().getAbsolutePath()); in touch() 307 executeShellCommand("touch " + file.getAbsolutePath()); in touch() 314 return executeShellCommand("ls -la " + path).contains(path); in exists() 317 private static String executeShellCommand(String command) throws IOException { in executeShellCommand() method in IdleServiceTest 320 .executeShellCommand(command.toString()); in executeShellCommand()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | BatteryStatsManagerTest.java | 101 executeShellCommand("cmd battery unplug"); in testReportNetworkInterfaceForTransports() 102 executeShellCommand("cmd battery set status " + BATTERY_STATUS_DISCHARGING); in testReportNetworkInterfaceForTransports() 104 executeShellCommand("dumpsys batterystats --reset"); in testReportNetworkInterfaceForTransports() 108 executeShellCommand("dumpsys batterystats enable no-auto-reset"); in testReportNetworkInterfaceForTransports() 116 executeShellCommand("dumpsys batterystats --write"); in testReportNetworkInterfaceForTransports() 126 executeShellCommand("dumpsys batterystats disable no-auto-reset"); in testReportNetworkInterfaceForTransports() 127 executeShellCommand("cmd battery reset"); in testReportNetworkInterfaceForTransports() 244 private static String executeShellCommand(String command) { in executeShellCommand() method in BatteryStatsManagerTest
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/rule/ |
D | ScreenRecordRule.java | 61 device.executeShellCommand("killall screenrecord"); in apply() 63 automation.executeShellCommand("screenrecord " + outputFile); in apply() 64 String screenRecordPid = device.executeShellCommand("pidof screenrecord"); in apply() 70 device.executeShellCommand("kill -INT " + screenRecordPid); in apply() 74 automation.executeShellCommand("rm " + outputFile); in apply()
|
D | FailureWatcher.java | 50 mDevice.executeShellCommand("cmd statusbar tracing start"); in apply() 55 mDevice.executeShellCommand("cmd statusbar tracing stop"); in apply() 63 mDevice.executeShellCommand("rm " + launcherTrace); in apply() 65 mDevice.executeShellCommand("mv " + launcherTrace + " " in apply() 152 .getUiAutomation().executeShellCommand(cmd))) {
|
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tests/ |
D | TestUtils.java | 40 uiAutomation.executeShellCommand("dumpsys battery unplug"); in setUp() 41 uiAutomation.executeShellCommand("dumpsys batterystats enable pretend-screen-off"); in setUp() 42 uiAutomation.executeShellCommand("dumpsys batterystats --reset"); in setUp() 53 uiAutomation.executeShellCommand("dumpsys battery reset"); in tearDown() 54 uiAutomation.executeShellCommand("dumpsys batterystats disable pretend-screen-off"); in tearDown()
|
/packages/apps/Settings/tests/perftests/src/com/android/settings/tests/perf/ |
D | LaunchSettingsTest.java | 91 mDefaultScreenTimeout = mDevice.executeShellCommand( in setUp() 126 final String mString = mDevice.executeShellCommand("am start -W -a" + action); in executePreformanceTest() 141 mDevice.executeShellCommand("am force-stop com.android.settings"); in closeApp() 193 mDevice.executeShellCommand("settings put system screen_off_timeout " + timeout); in setScreenTimeOut() 217 mDevice.executeShellCommand("am start -W -a android.settings.AIRPLANE_MODE_SETTINGS"); in clickAirplaneMode() 224 return mDevice.executeShellCommand("settings get global airplane_mode_on"); in getAirplaneModeStatus()
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ |
D | FileCopyUiTest.java | 134 device.executeShellCommand("settings put global stay_on_while_plugged_in 3"); in setUp() 192 device.executeShellCommand("sm set-virtual-disk false"); in tearDown() 212 device.executeShellCommand("settings put global stay_on_while_plugged_in " in tearDown() 329 device.executeShellCommand("sm set-virtual-disk true"); in enableVirtualSdCard() 332 device.executeShellCommand(String.format("sm partition %s public", diskId)); in enableVirtualSdCard() 342 String disks = device.executeShellCommand("sm list-disks adoptable"); in getAdoptionDisk() 345 disks = device.executeShellCommand("sm list-disks adoptable"); in getAdoptionDisk() 356 String volumes = device.executeShellCommand("sm list-volumes public"); in waitForPublicVolume() 360 volumes = device.executeShellCommand("sm list-volumes public"); in waitForPublicVolume()
|
D | DialogUiTest.java | 329 return Integer.parseInt(executeShellCommand("getprop " + densityProp).trim()); in getStableDensity() 333 executeShellCommand("wm density " + targetDensity); in setDensity() 336 final String output = executeShellCommand("wm density"); in setDensity() 343 executeShellCommand("wm density reset"); in resetDensity() 347 public static String executeShellCommand(String cmd) { in executeShellCommand() method in DialogUiTest 367 ParcelFileDescriptor pfd = automation.executeShellCommand(cmd); in runShellCommand()
|
/packages/apps/Settings/tests/componenttests/src/com/android/settings/fuelgauge/batterysaver/ |
D | BatterySaverButtonPreferenceControllerComponentTest.java | 66 mInstrumentation.getUiAutomation().executeShellCommand("dumpsys battery unplug"); in setUp() 67 mInstrumentation.getUiAutomation().executeShellCommand("settings get global low_power 0"); in setUp() 96 mInstrumentation.getUiAutomation().executeShellCommand("settings get global low_power 0"); in tearDown() 97 mInstrumentation.getUiAutomation().executeShellCommand("dumpsys battery reset"); in tearDown()
|
/packages/providers/MediaProvider/tests/client/src/com/android/providers/media/client/ |
D | DownloadProviderTest.java | 21 import static com.android.providers.media.tests.utils.PublicVolumeSetupHelper.executeShellCommand; 108 executeShellCommand("mkdir -p " + otherPackageExternalFilesDir + " -m 2770"); in createOtherPackageExternalFilesDir() 122 executeShellCommand("touch " + otherPackagePrivateFile); in createOtherPackagePrivateFile() 129 executeShellCommand("rm -r " + dir.getAbsolutePath()); in deleteOtherPackageExternalFiles()
|
D | DelegatorTest.java | 19 import static com.android.providers.media.client.LegacyProviderMigrationTest.executeShellCommand; 136 executeShellCommand("content update" in setOwner() 144 executeShellCommand("content update" in clearOwner()
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarApiTestBase.java | 200 ParcelFileDescriptor output = automation.executeShellCommand(cmd); in waitForLogcatMessage() 254 protected static String executeShellCommand(String commandFormat, Object... args) in executeShellCommand() method in CarApiTestBase 257 return executeShellCommand(uiAutomation, commandFormat, args); in executeShellCommand() 260 private static String executeShellCommand(UiAutomation uiAutomation, String commandFormat, in executeShellCommand() method in CarApiTestBase 262 ParcelFileDescriptor stdout = uiAutomation.executeShellCommand( in executeShellCommand()
|
/packages/modules/ExtServices/java/tests/src/android/ext/services/notification/ |
D | AssistantSettingsTest.java | 238 uiDevice.executeShellCommand( in clearDeviceConfig() 240 uiDevice.executeShellCommand( in clearDeviceConfig() 242 uiDevice.executeShellCommand( in clearDeviceConfig() 245 uiDevice.executeShellCommand( in clearDeviceConfig()
|
/packages/modules/Scheduling/tests/unittests/src/com/android/server/scheduling/ |
D | RebootReadinessUnitTest.java | 493 executeShellCommand("start-readiness-checks --timeout-secs 10"); in testStateChangeListenerShellCommand() 504 String output = executeShellCommand( in testInteractivityShellCommand() 509 output = executeShellCommand("check-interactivity-state --interactivity-threshold-ms 0"); in testInteractivityShellCommand() 518 String output = executeShellCommand("check-subsystems-state"); in testSubsystemsShellCommand() 522 output = executeShellCommand("check-subsystems-state --list-blocking"); in testSubsystemsShellCommand() 534 String output = executeShellCommand("check-app-activity-state --list-blocking"); in testAppActivityShellCommand() 543 output = executeShellCommand("check-app-activity-state --list-blocking"); in testAppActivityShellCommand() 553 executeShellCommand("check-interactivity-state --polling-interval-ms 1234" in testShellCommandDeviceConfig() 571 private String executeShellCommand(String command) throws Exception { in executeShellCommand() method in RebootReadinessUnitTest
|
/packages/modules/Permission/PermissionController/tests/permissionui/src/com/android/permissioncontroller/permissionui/ |
D | UiUtils.kt | 28 uiDevice.executeShellCommand("input keyevent KEYCODE_WAKEUP") in wakeUpScreen() 29 uiDevice.executeShellCommand("wm dismiss-keyguard") in wakeUpScreen()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/ |
D | NotificationsBot.java | 44 mDevice.executeShellCommand( in setNotificationAccess() 47 mDevice.executeShellCommand( in setNotificationAccess()
|