| /packages/modules/OnDevicePersonalization/tests/perftests/scenarios/src/android/federatedcompute/test/scenario/federatedcompute/ |
| D | TestHelper.java | 75 executeShellCommand( in initialize() 79 executeShellCommand( in initialize() 82 executeShellCommand( in initialize() 85 executeShellCommand( in initialize() 88 executeShellCommand( in initialize() 91 executeShellCommand("setprop log.tag.ondevicepersonalization VERBOSE"); in initialize() 92 executeShellCommand("setprop log.tag.federatedcompute VERBOSE"); in initialize() 93 executeShellCommand( in initialize() 96 executeShellCommand( in initialize() 99 executeShellCommand( in initialize() [all …]
|
| /packages/modules/OnDevicePersonalization/tests/perftests/scenarios/src/android/ondevicepersonalization/test/scenario/ondevicepersonalization/ |
| D | DownloadHelper.java | 46 executeShellCommand( in initialize() 48 executeShellCommand( in initialize() 50 executeShellCommand( in initialize() 53 executeShellCommand( in initialize() 56 executeShellCommand( in initialize() 59 executeShellCommand("setprop log.tag.ondevicepersonalization VERBOSE"); in initialize() 60 executeShellCommand( in initialize() 63 executeShellCommand( in initialize() 67 executeShellCommand( in initialize() 75 executeShellCommand("am kill com.google.android.ondevicepersonalization.services"); in killRunningProcess() [all …]
|
| D | TestAppHelper.java | 57 executeShellCommand( in initialize() 59 executeShellCommand( in initialize() 61 executeShellCommand( in initialize() 64 executeShellCommand( in initialize() 67 executeShellCommand( in initialize() 70 executeShellCommand("setprop log.tag.ondevicepersonalization VERBOSE"); in initialize() 71 executeShellCommand( in initialize() 74 executeShellCommand( in initialize() 78 executeShellCommand( in initialize() 97 executeShellCommand("am kill com.google.android.ondevicepersonalization.services"); in killRunningProcess() [all …]
|
| /packages/modules/AdServices/adservices/tests/cts/src/android/adservices/debuggablects/ |
| D | MeasurementCtsDebuggableTest.java | 355 getUiDevice().executeShellCommand(cmd); in executeJob() 587 getUiDevice().executeShellCommand( in setFlagsForMeasurement() 592 .executeShellCommand("setprop debug.adservices.consent_notified_debug_mode true"); in setFlagsForMeasurement() 595 getUiDevice().executeShellCommand( in setFlagsForMeasurement() 600 .executeShellCommand( in setFlagsForMeasurement() 604 getUiDevice().executeShellCommand( in setFlagsForMeasurement() 608 getUiDevice().executeShellCommand( in setFlagsForMeasurement() 612 getUiDevice().executeShellCommand("device_config put adservices adid_kill_switch false"); in setFlagsForMeasurement() 615 getUiDevice().executeShellCommand( in setFlagsForMeasurement() 619 getUiDevice().executeShellCommand( in setFlagsForMeasurement() [all …]
|
| /packages/providers/MediaProvider/tests/utils/src/com/android/providers/media/tests/utils/ |
| D | PublicVolumeSetupHelper.java | 74 executeShellCommand("sm set-force-adoptable on"); in createNewPublicVolume() 75 executeShellCommand("sm set-virtual-disk true"); in createNewPublicVolume() 94 final String publicVolume = executeShellCommand("sm list-volumes public").trim(); in isPublicVolumeMounted() 103 final String listDisks = executeShellCommand("sm list-disks").trim(); in partitionDisk() 105 executeShellCommand("sm partition " + listDisks + " public"); in partitionDisk() 134 allPublicVolumeDetails = executeShellCommand("sm list-volumes public") in getCurrentPublicVolumeString() 154 executeShellCommand("sm mount " + getPublicVolumeString()); in mountPublicVolume() 158 executeShellCommand("sm unmount " + getPublicVolumeString()); in unmountPublicVolume() 163 executeShellCommand("sm set-virtual-disk false"); in deletePublicVolumes() 177 public static String executeShellCommand(String pattern, Object...args) throws IOException { in executeShellCommand() method in PublicVolumeSetupHelper [all …]
|
| /packages/modules/AdServices/sdksandbox/tests/testutils/src/android/app/sdksandbox/hosttestutils/ |
| D | AdoptableStorageUtils.java | 42 mTest.getDevice().executeShellCommand("sm has-adoptable").trim()); in isAdoptableStorageSupported() 49 assertEmpty(mTest.getDevice().executeShellCommand("sm partition " + mDiskId + " private")); in createNewVolume() 60 mTest.getDevice().executeShellCommand("sm set-virtual-disk true"); in enableVirtualDisk() 68 result = mTest.getDevice().executeShellCommand("sm list-disks adoptable").trim(); in enableVirtualDisk() 79 mTest.getDevice().executeShellCommand("sm partition " + mDiskId + " public"); in cleanUpVolume() 80 mTest.getDevice().executeShellCommand("sm forget all"); in cleanUpVolume() 89 String disks = mTest.getDevice().executeShellCommand("sm list-disks adoptable"); in getAdoptionDisk() 92 disks = mTest.getDevice().executeShellCommand("sm list-disks adoptable"); in getAdoptionDisk() 127 lines = mTest.getDevice().executeShellCommand("sm list-volumes private").split("\n"); in getAdoptionVolume() 153 .executeShellCommand("dumpsys package volumes") in waitForVolumeReady() [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() 78 executeShellCommand("cmd car_service emulate-driving-state park"); in testCarServiceHelperServiceDump_safeOperation() 91 executeShellCommand("cmd car_service emulate-driving-state drive"); in testCarServiceHelperServiceDump_unsafeOperation() 97 executeShellCommand("cmd car_service emulate-driving-state park"); in testCarServiceHelperServiceDump_unsafeOperation() 107 executeShellCommand("service check system_server_dumper"), in assumeSystemServerDumpSupported() 121 return executeShellCommand(cmd.toString()); in dumpCarServiceHelper()
|
| /packages/modules/Permission/tests/functional/safetycenter/singleuser/src/android/safetycenter/functional/ |
| D | SafetyCenterShellCommandsTest.kt | 40 val enabled = executeShellCommand("cmd safety_center enabled").toBoolean() in enabled_printsEnabledValue() 48 val supported = executeShellCommand("cmd safety_center supported").toBoolean() in supported_printsSupportedValue() 55 val packageName = executeShellCommand("cmd safety_center package-name") in packageName_printsPackageName() 62 executeShellCommand("cmd safety_center clear-data") in clearData_executesSuccessfully() 71 executeShellCommand("cmd safety_center refresh --reason OTHER --user $currentUser") in refresh_executesSuccessfully() 76 val help = executeShellCommand("cmd safety_center help") in help_containsAllCommands() 88 val dump = executeShellCommand("dumpsys safety_center") in dump_containsSafetyCenterService() 93 private fun executeShellCommand(command: String): String = method
|
| /packages/apps/Settings/tests/uitests/src/com/android/settings/ui/ |
| D | StorageWizardTest.java | 62 mDevice.executeShellCommand("setprop sys.debug.storage_slow 1"); in setUp() 63 mDevice.executeShellCommand("sm set-virtual-disk true"); in setUp() 66 mDevice.executeShellCommand("sm partition " + mDisk + " public"); in setUp() 78 mDevice.executeShellCommand("setprop sys.debug.storage_slow 0"); in tearDown() 79 mDevice.executeShellCommand("sm set-virtual-disk false"); in tearDown() 80 mDevice.executeShellCommand("sm forget all"); in tearDown() 153 String disks = mDevice.executeShellCommand("sm list-disks adoptable"); in getAdoptableDisk() 156 disks = mDevice.executeShellCommand("sm list-disks adoptable"); in getAdoptableDisk() 168 String volumes = mDevice.executeShellCommand("sm list-volumes public"); in getPublicVolume() 172 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 | 219 .executeShellCommand( in testSdkSandboxDataMirrorDirectory_IsVolumeSpecific() 362 getDevice().executeShellCommand(String.format("mv %s %s", cePackageDir, ceInvalidDir)); in testSdkDataPackageDirectory_IsReconciled_InvalidAndMissingPackage() 367 getDevice().executeShellCommand(String.format("mv %s %s", dePackageDir, deInvalidDir)); in testSdkDataPackageDirectory_IsReconciled_InvalidAndMissingPackage() 395 .executeShellCommand( in testSdkDataPackageDirectory_IsReconciled_IncludesDifferentVolumes() 410 .executeShellCommand( in testSdkDataPackageDirectory_IsReconciled_IncludesDifferentVolumes() 417 .executeShellCommand( in testSdkDataPackageDirectory_IsReconciled_IncludesDifferentVolumes() 450 .executeShellCommand( in testSdkDataPackageDirectory_IsReconciled_ChecksForPackageOnWrongVolume() 460 getDevice().executeShellCommand(String.format("mkdir %s", ceInvalidDir)); in testSdkDataPackageDirectory_IsReconciled_ChecksForPackageOnWrongVolume() 461 getDevice().executeShellCommand(String.format("mkdir %s", deInvalidDir)); in testSdkDataPackageDirectory_IsReconciled_ChecksForPackageOnWrongVolume() 505 getDevice().executeShellCommand("pm uninstall -k --user 0 " + TEST_APP_STORAGE_PACKAGE); in testSdkDataPackageDirectory_IsReconciled_DeleteKeepData() [all …]
|
| /packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ |
| D | DocumentsUiTestBase.java | 68 initialScreenOffTimeoutValue = device.executeShellCommand( in disableScreenOffAndSleepTimeouts() 70 initialSleepTimeoutValue = device.executeShellCommand( in disableScreenOffAndSleepTimeouts() 72 device.executeShellCommand("settings put system screen_off_timeout -1"); in disableScreenOffAndSleepTimeouts() 73 device.executeShellCommand("settings put secure sleep_timeout -1"); in disableScreenOffAndSleepTimeouts() 80 device.executeShellCommand( in restoreScreenOffAndSleepTimeouts() 82 device.executeShellCommand( in restoreScreenOffAndSleepTimeouts()
|
| D | ActivityTest.java | 227 initialScreenOffTimeoutValue = device.executeShellCommand( in disableScreenOffAndSleepTimeouts() 229 initialSleepTimeoutValue = device.executeShellCommand( in disableScreenOffAndSleepTimeouts() 231 device.executeShellCommand("settings put system screen_off_timeout -1"); in disableScreenOffAndSleepTimeouts() 232 device.executeShellCommand("settings put secure sleep_timeout -1"); in disableScreenOffAndSleepTimeouts() 239 device.executeShellCommand( in restoreScreenOffAndSleepTimeouts() 241 device.executeShellCommand( in restoreScreenOffAndSleepTimeouts()
|
| /packages/modules/Connectivity/tests/cts/hostside-network-policy/app/src/com/android/cts/netpolicy/hostside/ |
| D | AbstractRestrictBackgroundNetworkTestCase.java | 28 import static com.android.cts.netpolicy.hostside.NetworkPolicyTestUtils.executeShellCommand; 211 executeShellCommand("cmd netpolicy start-watching " + mUid); in setUp() 227 executeShellCommand("cmd netpolicy stop-watching"); in tearDown() 244 final String output = executeShellCommand("device_config get backstage_power" in isNetworkBlockedForTopSleepingAndAbove() 260 final String output = executeShellCommand("device_config get backstage_power" in useDifferentDelaysForBackgroundChain() 498 result = executeShellCommand( in assertNetworkAccessBlockedByBpf() 588 final String result = executeShellCommand(command); in executeSilentShellCommand() 620 result = executeShellCommand(command).trim(); in assertDelayedShellCommand() 636 executeShellCommand("cmd netpolicy add restrict-background-whitelist " + uid); in addRestrictBackgroundWhitelist() 644 executeShellCommand("cmd netpolicy remove restrict-background-whitelist " + uid); in removeRestrictBackgroundWhitelist() [all …]
|
| /packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/ |
| D | TestUtils.java | 356 device.executeShellCommand("settings put global window_animation_scale 0.0"); in setUpUiTest() 357 device.executeShellCommand("settings put global transition_animation_scale 0.0"); in setUpUiTest() 358 device.executeShellCommand("settings put global animator_duration_scale 0.0"); in setUpUiTest() 362 device.executeShellCommand("settings get system screen_off_timeout"); in setUpUiTest() 363 device.executeShellCommand("settings put system screen_off_timeout 300000"); in setUpUiTest() 367 device.executeShellCommand("wm dismiss-keyguard"); in setUpUiTest() 375 device.executeShellCommand("wm dismiss-keyguard"); in tearDownUiTest() 378 device.executeShellCommand("settings put global window_animation_scale 1.0"); in tearDownUiTest() 379 device.executeShellCommand("settings put global transition_animation_scale 1.0"); in tearDownUiTest() 380 device.executeShellCommand("settings put global animator_duration_scale 1.0"); in tearDownUiTest() [all …]
|
| /packages/apps/Settings/tests/uitests/src/com/android/settings/biometrics2/utils/ |
| D | LockScreenUtil.java | 62 executeShellCommand(format("%s %s", SET_PIN_COMMAND, lockscreenCode)); in setLockscreen() 65 executeShellCommand(format("%s %s", SET_PASSWORD_COMMAND, lockscreenCode)); in setLockscreen() 68 executeShellCommand(format("%s %s", SET_PATTERN_COMMAND, lockscreenCode)); in setLockscreen() 83 executeShellCommand( in resetLockscreen() 96 private static void executeShellCommand(String command) { in executeShellCommand() method in LockScreenUtil 99 getUiDevice().executeShellCommand(command); in executeShellCommand()
|
| /packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
| D | BatteryStatsManagerTest.java | 109 executeShellCommand("cmd battery unplug"); in testReportNetworkInterfaceForTransports() 110 executeShellCommand("cmd battery set status " + BATTERY_STATUS_DISCHARGING); in testReportNetworkInterfaceForTransports() 112 executeShellCommand("dumpsys batterystats --reset"); in testReportNetworkInterfaceForTransports() 116 executeShellCommand("dumpsys batterystats enable no-auto-reset"); in testReportNetworkInterfaceForTransports() 124 executeShellCommand("dumpsys batterystats --write"); in testReportNetworkInterfaceForTransports() 136 executeShellCommand("dumpsys batterystats disable no-auto-reset"); in testReportNetworkInterfaceForTransports() 137 executeShellCommand("cmd battery reset"); in testReportNetworkInterfaceForTransports() 174 executeShellCommand("dumpsys batterystats"); in verifyGetCellBatteryStats() 273 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()
|
| /packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tests/ |
| D | TestUtils.java | 41 uiAutomation.executeShellCommand("dumpsys battery unplug"); in setUp() 42 uiAutomation.executeShellCommand("dumpsys batterystats enable pretend-screen-off"); in setUp() 43 uiAutomation.executeShellCommand("dumpsys batterystats --reset"); in setUp() 54 uiAutomation.executeShellCommand("dumpsys battery reset"); in tearDown() 55 uiAutomation.executeShellCommand("dumpsys batterystats disable pretend-screen-off"); in tearDown()
|
| /packages/modules/AdServices/sdksandbox/tests/hostsidetests/src/com/android/tests/sdksandbox/host/ |
| D | SdkSandboxLifecycleHostTest.java | 280 .executeShellCommand("device_config put adservices disable_sdk_sandbox false"); in testSandboxIsKilledWhenKillswitchEnabled() 287 .executeShellCommand("device_config put adservices disable_sdk_sandbox true"); in testSandboxIsKilledWhenKillswitchEnabled() 296 getDevice().executeShellCommand("cmd sdk_sandbox set-state --enabled"); in testSandboxIsKilledWhenKillswitchEnabled() 304 .executeShellCommand("device_config put adservices disable_sdk_sandbox false"); in testSpecificAppProcessIsKilledOnSandboxDeath() 319 .executeShellCommand("device_config put adservices disable_sdk_sandbox true"); in testSpecificAppProcessIsKilledOnSandboxDeath() 338 getDevice().executeShellCommand("cmd sdk_sandbox set-state --enabled"); in testSpecificAppProcessIsKilledOnSandboxDeath() 357 getDevice().executeShellCommand("input keyevent KEYCODE_HOME"); in testBackgroundingAppReducesSandboxPriority() 403 getDevice().executeShellCommand("kill -9 " + initialSandboxPid); in testSandboxReconnectionAfterDeath() 430 .executeShellCommand( in startActivity() 448 .executeShellCommand( in startActivity() [all …]
|
| D | SdkSandboxShellHostTest.java | 123 String processDump = getDevice().executeShellCommand("ps -A"); in testStartSdkSandboxFailsForNonDebuggableApp() 135 String processDump = getDevice().executeShellCommand("ps -A"); in testStartSdkSandboxFailsForIncorrectUser() 169 String processDump = getDevice().executeShellCommand("ps -A"); in testStopSdkSandboxFailsForNonDebuggableApp() 183 String processDump = getDevice().executeShellCommand("ps -A"); in testStopSdkSandboxFailsForIncorrectUser() 188 getDevice().executeShellCommand(String.format("pm clear %s", pkg)); in clearProcess() 192 getDevice().executeShellCommand(String.format("am start -W -n %s/.%s", pkg, activity)); in startActivity()
|
| /packages/apps/Settings/tests/Enable16KbTests/src/com/android/test/ |
| D | Enable16KbTest.java | 66 getDevice().executeShellCommand("am start -a com.android.setupwizard.FOUR_CORNER_EXIT"); in enable16KbToggle() 72 getDevice().executeShellCommand("am start -a com.android.setupwizard.FOUR_CORNER_EXIT"); in enable16KbToggle() 80 result = getDevice().executeShellCommand("getconf PAGE_SIZE"); in enable16KbToggle() 85 result = getDevice().executeShellCommand("getconf PAGE_SIZE"); in enable16KbToggle() 109 String result = getDevice().executeShellCommand("cat /proc/mounts"); in verifyExt4()
|
| /packages/modules/AdServices/sdksandbox/tests/cts/hostside/src/com/android/sdksandbox/cts/host/ |
| D | SdkSandboxInstallationTest.java | 55 getDevice().executeShellCommand("dumpsys package " + SDK_PROVIDER1), SDK_PROVIDER1); in testSdkSandbox_deviceReboot_sdkInstalledAndDexopted() 58 getDevice().executeShellCommand("dumpsys package " + SDK_PROVIDER2), SDK_PROVIDER2); in testSdkSandbox_deviceReboot_sdkInstalledAndDexopted() 64 getDevice().executeShellCommand("dumpsys package " + SDK_PROVIDER1), SDK_PROVIDER1); in testSdkSandbox_deviceReboot_sdkInstalledAndDexopted() 66 getDevice().executeShellCommand("dumpsys package " + SDK_PROVIDER2), SDK_PROVIDER2); in testSdkSandbox_deviceReboot_sdkInstalledAndDexopted()
|
| /packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/host/src/util/ |
| D | HostSideTestUtil.java | 72 device.executeShellCommand( in increaseDeviceTimeByDays() 77 device.executeShellCommand("am broadcast -a android.intent.action.TIME_SET"); in increaseDeviceTimeByDays() 85 device.executeShellCommand( in resetTime() 89 device.executeShellCommand("am broadcast -a android.intent.action.TIME_SET"); in resetTime() 98 device.executeShellCommand( in triggerDailyJob()
|
| /packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/ |
| D | TaplPrivateSpaceTest.java | 78 String createUserOutput = executeShellCommand("pm create-user --profileOf 0 --user-type " in createAndStartPrivateProfileUser() 87 String startUserOutput = executeShellCommand("am start-user " + mProfileUserId); in createAndStartPrivateProfileUser() 93 String userListOutput = executeShellCommand("pm list users"); in removePrivateProfile() 95 String output = executeShellCommand("pm remove-user " + mProfileUserId); in removePrivateProfile() 282 private String executeShellCommand(String command) { in executeShellCommand() method in TaplPrivateSpaceTest 284 return mDevice.executeShellCommand(command); in executeShellCommand()
|
| /packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
| D | IdleServiceTest.java | 347 executeShellCommand( in test_idle_maintenance_nonDemoDevice() 351 executeShellCommand( in test_idle_maintenance_nonDemoDevice() 366 executeShellCommand( in test_idle_maintenance_nonDemoDevice() 412 String output = executeShellCommand("am start-user -w " + userId); in startUser() 419 final String output = executeShellCommand("cmd package remove-user " + userId); in removeUser() 473 executeShellCommand("rm -rf " + file.getAbsolutePath()); in delete() 479 executeShellCommand("mkdir -p " + file.getParentFile().getAbsolutePath()); in touch() 480 executeShellCommand("touch " + file.getAbsolutePath()); in touch() 487 return executeShellCommand("ls -la " + path).contains(path); in exists() 490 private static String executeShellCommand(String command) throws IOException { in executeShellCommand() method in IdleServiceTest [all …]
|