Home
last modified time | relevance | path

Searched refs:executeShellCommand (Results 1 – 25 of 138) sorted by relevance

123456

/packages/modules/OnDevicePersonalization/tests/perftests/scenarios/src/android/federatedcompute/test/scenario/federatedcompute/
DTestHelper.java75 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/
DDownloadHelper.java46 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 …]
DTestAppHelper.java57 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/providers/MediaProvider/tests/hostsidetests/photopicker/src/android/tests/photopicker/
DCloudProviderHostSideTest.kt72 mDevice.executeShellCommand(COMMAND_ENABLE_TEST_APK) in setUp()
75 val result: String = mDevice.executeShellCommand(COMMAND_GET_CLOUD_PROVIDER) in setUp()
97 mDevice.executeShellCommand("device_config set_sync_disabled_for_tests until_reboot") in test_disableCloudProviderPackage_cloudProviderResets()
100 mDevice.executeShellCommand( in test_disableCloudProviderPackage_cloudProviderResets()
109 mDevice.executeShellCommand(setCloudProvider) in test_disableCloudProviderPackage_cloudProviderResets()
112 val result: String = mDevice.executeShellCommand(COMMAND_GET_CLOUD_PROVIDER) in test_disableCloudProviderPackage_cloudProviderResets()
118 val stateChangeResult: String = mDevice.executeShellCommand( in test_disableCloudProviderPackage_cloudProviderResets()
136 val resultForGetCloudProvider: String = mDevice.executeShellCommand( in test_disableCloudProviderPackage_cloudProviderResets()
159 mDevice.executeShellCommand(COMMAND_ENABLE_TEST_APK) in tearDown()
171 mDevice.executeShellCommand(setCloudProvider) in tearDown()
[all …]
/packages/modules/AdServices/sdksandbox/tests/testutils/host-side/android/app/sdksandbox/hosttestutils/
DAdoptableStorageUtils.java42 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/providers/MediaProvider/tests/utils/src/com/android/providers/media/tests/utils/
DPublicVolumeSetupHelper.java74 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/Bluetooth/android/app/tests/instrumentation/com/android/bluetooth/
DTestUtils.java110 device.executeShellCommand("settings put global window_animation_scale 0.0"); in setUpUiTest()
111 device.executeShellCommand("settings put global transition_animation_scale 0.0"); in setUpUiTest()
112 device.executeShellCommand("settings put global animator_duration_scale 0.0"); in setUpUiTest()
116 device.executeShellCommand("settings get system screen_off_timeout"); in setUpUiTest()
117 device.executeShellCommand("settings put system screen_off_timeout 300000"); in setUpUiTest()
121 device.executeShellCommand("wm dismiss-keyguard"); in setUpUiTest()
129 device.executeShellCommand("wm dismiss-keyguard"); in tearDownUiTest()
132 device.executeShellCommand("settings put global window_animation_scale 1.0"); in tearDownUiTest()
133 device.executeShellCommand("settings put global transition_animation_scale 1.0"); in tearDownUiTest()
134 device.executeShellCommand("settings put global animator_duration_scale 1.0"); in tearDownUiTest()
[all …]
/packages/services/Car/tests/CarExtendedApiTest/src/com/android/internal/car/
DCarServiceHelperServiceSystemTest.java45 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/
DSafetyCenterShellCommandsTest.kt40 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 in android.safetycenter.functional.SafetyCenterShellCommandsTest
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
DStorageWizardTest.java62 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/
DSdkSandboxStorageHostTest.java258 .executeShellCommand( in testSdkSandboxDataMirrorDirectory_IsVolumeSpecific()
405 getDevice().executeShellCommand(String.format("mv %s %s", cePackageDir, ceInvalidDir)); in testSdkDataPackageDirectory_IsReconciled_InvalidAndMissingPackage()
411 getDevice().executeShellCommand(String.format("mv %s %s", dePackageDir, deInvalidDir)); in testSdkDataPackageDirectory_IsReconciled_InvalidAndMissingPackage()
440 .executeShellCommand( in testSdkDataPackageDirectory_IsReconciled_IncludesDifferentVolumes()
457 .executeShellCommand( in testSdkDataPackageDirectory_IsReconciled_IncludesDifferentVolumes()
464 .executeShellCommand( in testSdkDataPackageDirectory_IsReconciled_IncludesDifferentVolumes()
498 .executeShellCommand( in testSdkDataPackageDirectory_IsReconciled_ChecksForPackageOnWrongVolume()
510 getDevice().executeShellCommand(String.format("mkdir %s", ceInvalidDir)); in testSdkDataPackageDirectory_IsReconciled_ChecksForPackageOnWrongVolume()
511 getDevice().executeShellCommand(String.format("mkdir %s", deInvalidDir)); in testSdkDataPackageDirectory_IsReconciled_ChecksForPackageOnWrongVolume()
548 getDevice().executeShellCommand(String.format("sm unmount 'emulated;%d'", mCurrentUser)); in testSdkDataPackageDirectory_IsReconciledWhenReconcileOnVolumeMountEnabled()
[all …]
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DDocumentsUiTestBase.java68 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()
DActivityTestJunit4.kt185 initialScreenOffTimeoutValue = device!!.executeShellCommand( in disableScreenOffAndSleepTimeouts()
188 initialSleepTimeoutValue = device!!.executeShellCommand( in disableScreenOffAndSleepTimeouts()
191 device!!.executeShellCommand("settings put system screen_off_timeout -1") in disableScreenOffAndSleepTimeouts()
192 device!!.executeShellCommand("settings put secure sleep_timeout -1") in disableScreenOffAndSleepTimeouts()
200 device!!.executeShellCommand( in restoreScreenOffAndSleepTimeouts()
203 device!!.executeShellCommand( in restoreScreenOffAndSleepTimeouts()
DActivityTest.java227 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/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/
DTestUtils.java259 device.executeShellCommand("settings put global window_animation_scale 0.0"); in setUpUiTest()
260 device.executeShellCommand("settings put global transition_animation_scale 0.0"); in setUpUiTest()
261 device.executeShellCommand("settings put global animator_duration_scale 0.0"); in setUpUiTest()
265 device.executeShellCommand("settings get system screen_off_timeout"); in setUpUiTest()
266 device.executeShellCommand("settings put system screen_off_timeout 300000"); in setUpUiTest()
270 device.executeShellCommand("wm dismiss-keyguard"); in setUpUiTest()
278 device.executeShellCommand("wm dismiss-keyguard"); in tearDownUiTest()
281 device.executeShellCommand("settings put global window_animation_scale 1.0"); in tearDownUiTest()
282 device.executeShellCommand("settings put global transition_animation_scale 1.0"); in tearDownUiTest()
283 device.executeShellCommand("settings put global animator_duration_scale 1.0"); in tearDownUiTest()
[all …]
/packages/apps/Settings/tests/Enable16KbTests/src/com/android/test/
DEnable16KbTest.java74 getDevice().executeShellCommand("am start -a com.android.setupwizard.FOUR_CORNER_EXIT"); in enable16KbToggle()
78 getDevice().executeShellCommand("am start -a com.android.setupwizard.FOUR_CORNER_EXIT"); in enable16KbToggle()
86 result = getDevice().executeShellCommand("getconf PAGE_SIZE"); in enable16KbToggle()
91 result = getDevice().executeShellCommand("getconf PAGE_SIZE"); in enable16KbToggle()
122 getDevice().executeShellCommand("input keyevent KEYCODE_WAKEUP"); in prepareDevice()
123 getDevice().executeShellCommand("wm dismiss-keyguard"); in prepareDevice()
127 String result = getDevice().executeShellCommand("cat /proc/mounts"); in verifyExt4()
/packages/apps/Settings/tests/uitests/src/com/android/settings/biometrics2/utils/
DLockScreenUtil.java62 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/
DBatteryStatsManagerTest.java109 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/
DScreenRecordRule.java61 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/
DTestUtils.java41 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/
DSdkSandboxLifecycleHostTest.java282 .executeShellCommand("device_config put adservices disable_sdk_sandbox false"); in testSandboxIsKilledWhenKillswitchEnabled()
289 .executeShellCommand("device_config put adservices disable_sdk_sandbox true"); in testSandboxIsKilledWhenKillswitchEnabled()
298 getDevice().executeShellCommand("cmd sdk_sandbox set-state --enabled"); in testSandboxIsKilledWhenKillswitchEnabled()
306 .executeShellCommand("device_config put adservices disable_sdk_sandbox false"); in testSpecificAppProcessIsKilledOnSandboxDeath()
321 .executeShellCommand("device_config put adservices disable_sdk_sandbox true"); in testSpecificAppProcessIsKilledOnSandboxDeath()
340 getDevice().executeShellCommand("cmd sdk_sandbox set-state --enabled"); in testSpecificAppProcessIsKilledOnSandboxDeath()
359 getDevice().executeShellCommand("input keyevent KEYCODE_HOME"); in testBackgroundingAppReducesSandboxPriority()
405 getDevice().executeShellCommand("kill -9 " + initialSandboxPid); in testSandboxReconnectionAfterDeath()
432 .executeShellCommand( in startActivity()
450 .executeShellCommand( in startActivity()
[all …]
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/host/src/util/
DHostSideTestUtil.java73 device.executeShellCommand( in increaseDeviceTimeByDays()
78 device.executeShellCommand("am broadcast -a android.intent.action.TIME_SET"); in increaseDeviceTimeByDays()
86 device.executeShellCommand( in resetTime()
90 device.executeShellCommand("am broadcast -a android.intent.action.TIME_SET"); in resetTime()
99 device.executeShellCommand( in triggerDailyJob()
141 device.executeShellCommand("pm grant " + packageName + " " + perm); in grantPermissionsWithAdb()
/packages/modules/Connectivity/tests/cts/hostside/src/com/android/cts/net/
DProcNetTest.java94 String[] interfaceDirs = mDevice.executeShellCommand("ls -1 " + IPV6_SYSCTL_DIR) in getSysctlDirs()
112 String mode = mDevice.executeShellCommand("stat -c %a " + path).trim(); in readIntFromPath()
113 String user = mDevice.executeShellCommand("stat -c %u " + path).trim(); in readIntFromPath()
114 String group = mDevice.executeShellCommand("stat -c %g " + path).trim(); in readIntFromPath()
118 return Integer.parseInt(mDevice.executeShellCommand("cat " + path).trim()); in readIntFromPath()
194 String value = mDevice.executeShellCommand("cat " + path).trim(); in testCongestionControl()
/packages/modules/AdServices/sdksandbox/tests/cts/hostside/src/com/android/sdksandbox/cts/host/
DSdkSandboxInstallationTest.java50 getDevice().executeShellCommand("dumpsys package " + SDK_PROVIDER1), SDK_PROVIDER1); in testSdkSandbox_deviceReboot_sdkInstalledAndDexopted()
53 getDevice().executeShellCommand("dumpsys package " + SDK_PROVIDER2), SDK_PROVIDER2); in testSdkSandbox_deviceReboot_sdkInstalledAndDexopted()
59 getDevice().executeShellCommand("dumpsys package " + SDK_PROVIDER1), SDK_PROVIDER1); in testSdkSandbox_deviceReboot_sdkInstalledAndDexopted()
61 getDevice().executeShellCommand("dumpsys package " + SDK_PROVIDER2), SDK_PROVIDER2); in testSdkSandbox_deviceReboot_sdkInstalledAndDexopted()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/SdkSandboxRestrictionsHostTest/src/com/android/tests/sdksandbox/restrictions/host/
DSdkSandboxRestrictionsHostTest.java79 String currentUserId = getDevice().executeShellCommand("am get-current-user").trim(); in testInvalidateETSV()
82 .executeShellCommand( in testInvalidateETSV()
92 String processDump = getDevice().executeShellCommand("dumpsys sdk_sandbox"); in testInvalidateETSV()
96 processDump = getDevice().executeShellCommand("dumpsys sdk_sandbox"); in testInvalidateETSV()

123456