Home
last modified time | relevance | path

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

12345678910>>...56

/aosp_15_r20/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 …]
/aosp_15_r20/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
H A DAdoptableHostTest.java67 mListVolumesInitialState = getDevice().executeShellCommand("sm list-volumes"); in setUp()
75 getDevice().executeShellCommand("sm set-virtual-disk true"); in setUp()
83 result = getDevice().executeShellCommand("sm list-disks adoptable").trim(); in setUp()
97 getDevice().executeShellCommand("sm set-virtual-disk false"); in tearDown()
105 result = getDevice().executeShellCommand("sm list-disks adoptable").trim(); in tearDown()
118 result = getDevice().executeShellCommand("sm list-volumes"); in tearDown()
147 result = getDevice().executeShellCommand("sm list-volumes"); in waitForVolumeReady()
171 assertEmpty(getDevice().executeShellCommand("sm partition " + diskId + " private")); in testApps()
175 assertSuccess(getDevice().executeShellCommand( in testApps()
183 getDevice().executeShellCommand("sm unmount " + vol.volId); in testApps()
[all …]
H A DStorageHostTest.java90 getDevice().executeShellCommand("appops set --user " + user + " " + PKG_STATS in setUp()
120 getDevice().executeShellCommand("sync"); in testVerifyAppStats()
210 getDevice().executeShellCommand("settings put global sys_storage_threshold_max_bytes 0"); in testCache()
211 getDevice().executeShellCommand("svc data disable"); in testCache()
212 getDevice().executeShellCommand("svc wifi disable"); in testCache()
217 getDevice().executeShellCommand("pm trim-caches 4096G"); in testCache()
220 getDevice().executeShellCommand("pm trim-caches 4096G"); in testCache()
224 … getDevice().executeShellCommand("settings delete global sys_storage_threshold_max_bytes"); in testCache()
225 getDevice().executeShellCommand("svc data enable"); in testCache()
226 getDevice().executeShellCommand("svc wifi enable"); in testCache()
[all …]
/aosp_15_r20/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 …]
/aosp_15_r20/tools/tradefederation/core/javatests/com/android/tradefed/util/
DJavaCodeCoverageFlusherTest.java71 doReturn(PS_OUTPUT).when(mMockDevice).executeShellCommand("ps -e"); in testResetAll_calledForAllProcesses()
74 .executeShellCommand("pm list packages -a"); in testResetAll_calledForAllProcesses()
82 .executeShellCommand( in testResetAll_calledForAllProcesses()
86 .executeShellCommand( in testResetAll_calledForAllProcesses()
90 .executeShellCommand( in testResetAll_calledForAllProcesses()
93 verify(mMockDevice).executeShellCommand("cmd coverage reset"); in testResetAll_calledForAllProcesses()
101 doReturn(PS_OUTPUT).when(mMockDevice).executeShellCommand("ps -e"); in testResetSpecific_calledForSpecificProcesses()
104 .executeShellCommand("pm list packages -a"); in testResetSpecific_calledForSpecificProcesses()
110 .executeShellCommand( in testResetSpecific_calledForSpecificProcesses()
113 verify(mMockDevice).executeShellCommand("cmd coverage reset"); in testResetSpecific_calledForSpecificProcesses()
[all …]
/aosp_15_r20/system/apex/tests/src/com/android/tests/apex/
H A DSharedLibsApexTest.java195 String runAsResult = getDevice().executeShellCommand( in testInstallAndRunDefaultApexs()
199 runAsResult = getDevice().executeShellCommand( in testInstallAndRunDefaultApexs()
204 runAsResult = getDevice().executeShellCommand( in testInstallAndRunDefaultApexs()
208 runAsResult = getDevice().executeShellCommand( in testInstallAndRunDefaultApexs()
222 runAsResult = getDevice().executeShellCommand( in testInstallAndRunDefaultApexs()
226 runAsResult = getDevice().executeShellCommand( in testInstallAndRunDefaultApexs()
231 runAsResult = getDevice().executeShellCommand( in testInstallAndRunDefaultApexs()
271 String runAsResult = getDevice().executeShellCommand( in testInstallAndRunOptimizedApexs()
275 runAsResult = getDevice().executeShellCommand( in testInstallAndRunOptimizedApexs()
280 runAsResult = getDevice().executeShellCommand( in testInstallAndRunOptimizedApexs()
[all …]
/aosp_15_r20/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/
H A DAudioManagerHelper.java50 device.executeShellCommand(CLEAR_COMMAND); in muteDevice()
54 device.executeShellCommand(START_COMMAND + "android.hdmicec.app.MUTE"); in muteDevice()
62 device.executeShellCommand(CLEAR_COMMAND); in unmuteDevice()
64 device.executeShellCommand(START_COMMAND + "android.hdmicec.app.UNMUTE"); in unmuteDevice()
72 device.executeShellCommand(CLEAR_COMMAND); in unmuteDevice()
74 device.executeShellCommand(START_COMMAND + "android.hdmicec.app.UNMUTE"); in unmuteDevice()
79 device.executeShellCommand(CLEAR_COMMAND); in isDeviceMuted()
83 device.executeShellCommand(START_COMMAND + "android.hdmicec.app.REPORT_VOLUME"); in isDeviceMuted()
89 device.executeShellCommand(CLEAR_COMMAND); in lowerVolume()
91 device.executeShellCommand(START_COMMAND + "android.hdmicec.app.LOWER_VOLUME"); in lowerVolume()
[all …]
H A DBaseHdmiCecCtsTest.java194 String dumpsys = device.executeShellCommand("dumpsys hdmi_control"); in getDumpsysLogicalAddresses()
231 String dumpsys = device.executeShellCommand("dumpsys hdmi_control"); in isSystemAudioModeOn()
321 String dumpsys = device.executeShellCommand("dumpsys hdmi_control"); in parseRequiredAddressFromDumpsys()
352 device.executeShellCommand("cmd hdmi_control cec_setting set hdmi_cec_version " + in setCecVersion()
389 device.executeShellCommand("setprop " + PROPERTY_CEC_VERSION + " \"\""); in setSystemCecVersion()
391 device.executeShellCommand("setprop " + PROPERTY_CEC_VERSION + " " + cecVersion); in setSystemCecVersion()
404 String result = device.executeShellCommand("getprop " + PROPERTY_CEC_VERSION).trim(); in getSystemCecVersion()
415 return device.executeShellCommand("getprop " + PROPERTY_LOCALE).trim(); in getSystemLocale()
424 device.executeShellCommand("setprop " + PROPERTY_LOCALE + " " + locale); in setSystemLocale()
432 return device.executeShellCommand("cmd hdmi_control cec_setting get " + setting) in getSettingsValue()
[all …]
/aosp_15_r20/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DRunOnWorkProfileTargetPreparerTest.java101 when(mTestInfo.getDevice().executeShellCommand("dumpsys device_policy")).thenReturn(""); in setUp()
108 when(mTestInfo.getDevice().executeShellCommand(expectedCreateUserCommand)) in setUp_createsAndStartsWorkProfile()
113 verify(mTestInfo.getDevice()).executeShellCommand(expectedCreateUserCommand); in setUp_createsAndStartsWorkProfile()
122 when(mTestInfo.getDevice().executeShellCommand(expectedCreateUserCommand)) in setUp_oldVersion_createsAndStartsWorkProfileWithoutWait()
128 verify(mTestInfo.getDevice()).executeShellCommand(expectedCreateUserCommand); in setUp_oldVersion_createsAndStartsWorkProfileWithoutWait()
138 when(mTestInfo.getDevice().executeShellCommand(expectedCreateUserCommand)) in setup_hasDeviceOwner_removesDeviceOwner()
140 when(mTestInfo.getDevice().executeShellCommand("dumpsys device_policy")) in setup_hasDeviceOwner_removesDeviceOwner()
142 when(mTestInfo.getDevice().executeShellCommand(expectedRemoveDeviceOwnerCommand)) in setup_hasDeviceOwner_removesDeviceOwner()
147 verify(mTestInfo.getDevice()).executeShellCommand(expectedRemoveDeviceOwnerCommand); in setup_hasDeviceOwner_removesDeviceOwner()
156 when(mTestInfo.getDevice().executeShellCommand(expectedCreateUserCommand)) in setup_hasDeviceOwner_errorWhenRemovingDeviceOwner_throwsException()
[all …]
DRunOnPrivateProfileTargetPreparerTest.java106 when(mTestInfo.getDevice().executeShellCommand(DUMPSYS_USER_COMMAND)).thenReturn( in setUp_doesNotSupportPrivateUser_doesNotChangeTestUser()
115 when(mTestInfo.getDevice().executeShellCommand(DUMPSYS_USER_COMMAND)).thenReturn( in setUp_doesNotSupportPrivateUser_doesNotCreateUser()
118 verify(mTestInfo.getDevice(), never()).executeShellCommand( in setUp_doesNotSupportPrivateUser_doesNotCreateUser()
124 when(mTestInfo.getDevice().executeShellCommand(DUMPSYS_USER_COMMAND)).thenReturn( in setUp_privateUserType_createsPrivateProfileAndStartsUser()
127 when(mTestInfo.getDevice().executeShellCommand(expectedCreateUserCommand)).thenReturn( in setUp_privateUserType_createsPrivateProfileAndStartsUser()
132 verify(mTestInfo.getDevice()).executeShellCommand(expectedCreateUserCommand); in setUp_privateUserType_createsPrivateProfileAndStartsUser()
148 when(mTestInfo.getDevice().executeShellCommand(DUMPSYS_USER_COMMAND)).thenReturn( in setUp_profileAlreadyExists_doesNotCreateProfile()
152 verify(mTestInfo.getDevice(), never()).executeShellCommand( in setUp_profileAlreadyExists_doesNotCreateProfile()
158 when(mTestInfo.getDevice().executeShellCommand(DUMPSYS_USER_COMMAND)).thenReturn( in setUp_nonZeroCurrentUser_createsProfileForCorrectUser()
164 when(mTestInfo.getDevice().executeShellCommand(expectedCreateUserCommand)) in setUp_nonZeroCurrentUser_createsProfileForCorrectUser()
[all …]
DStopServicesSetupTest.java66 when(mMockDevice.executeShellCommand("stop")).thenReturn(null); in testNoop()
69 verify(mMockDevice).executeShellCommand("stop"); in testNoop()
88 when(mMockDevice.executeShellCommand("stop")).thenReturn(null); in testStopServices()
89 when(mMockDevice.executeShellCommand("stop service1")).thenReturn(null); in testStopServices()
90 when(mMockDevice.executeShellCommand("stop service2")).thenReturn(null); in testStopServices()
95 inOrder.verify(mMockDevice).executeShellCommand("stop"); in testStopServices()
96 inOrder.verify(mMockDevice).executeShellCommand("stop service1"); in testStopServices()
97 inOrder.verify(mMockDevice).executeShellCommand("stop service2"); in testStopServices()
107 when(mMockDevice.executeShellCommand("start")).thenReturn(null); in testTearDown()
109 when(mMockDevice.executeShellCommand("start service1")).thenReturn(null); in testTearDown()
[all …]
DInstallKernelModulePreparerTest.java121 when(mMockDevice.executeShellCommand(matches(LIST_MODULE_COMMAND))) in testSetup()
149 when(mMockDevice.executeShellCommand(matches(LIST_MODULE_COMMAND))) in testSetupWithPreExistingDependentModule()
160 inOrder.verify(mMockDevice).executeShellCommand(matches("rmmod kunit_test")); in testSetupWithPreExistingDependentModule()
161 inOrder.verify(mMockDevice).executeShellCommand(matches("rmmod time_test")); in testSetupWithPreExistingDependentModule()
162 inOrder.verify(mMockDevice).executeShellCommand(matches("rmmod kunit")); in testSetupWithPreExistingDependentModule()
176 when(mMockDevice.executeShellCommand(matches(LIST_MODULE_COMMAND))) in testSetupWithDifferentArgs()
199 when(mMockDevice.executeShellCommand(matches(LIST_MODULE_COMMAND))) in testSetupWithTwoModules()
206 when(mMockDevice.executeShellCommand(matches("rmmod kunit_test"))).thenReturn(""); in testSetupWithTwoModules()
223 when(mMockDevice.executeShellCommand(matches(LIST_MODULE_COMMAND))) in testInstallFailureThrow()
247 when(mMockDevice.executeShellCommand(matches(LIST_MODULE_COMMAND))) in testTearDown()
[all …]
/aosp_15_r20/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/media/
H A DMediaCapabilitiesTests.java82 getDevice().executeShellCommand( in testSurroundSoundCapabilities()
84 getDevice().executeShellCommand( in testSurroundSoundCapabilities()
86 getDevice().executeShellCommand("cmd audio set-encoded-surround-mode 2"); in testSurroundSoundCapabilities()
118 getDevice().executeShellCommand( in testDisplayCapabilities()
120 getDevice().executeShellCommand("cmd display set-match-content-frame-rate-pref 2"); in testDisplayCapabilities()
121 getDevice().executeShellCommand("cmd display set-user-disabled-hdr-types 1 2"); in testDisplayCapabilities()
154 mIsDtsEnabled = getDevice().executeShellCommand( in cacheOriginalSettings()
156 mIsDolbyTrueHdEnabled = getDevice().executeShellCommand( in cacheOriginalSettings()
158 mEncodedSurroundMode = getDevice().executeShellCommand( in cacheOriginalSettings()
162 mUserPrefDisplayMode = getDevice().executeShellCommand( in cacheOriginalSettings()
[all …]
/aosp_15_r20/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
H A DBaseDevicePolicyTest.java214 mPackageVerifier = getDevice().executeShellCommand( in setUp()
216 getDevice().executeShellCommand("settings put global verifier_verify_adb_installs 0"); in setUp()
240 getDevice().executeShellCommand(" mkdir " + TEST_UPDATE_LOCATION); in setUp()
251 executeShellCommand("input keyevent KEYCODE_HOME"); in setUp()
275 while (!predicate.test(getDevice().executeShellCommand(command))) { in waitForOutput()
286 getDevice().executeShellCommand("settings put global verifier_verify_adb_installs " in tearDown()
296 getDevice().executeShellCommand(" rm -r " + TEST_UPDATE_LOCATION); in tearDown()
341 String installResult = getDevice().executeShellCommand( in installAppIncremental()
363 executeShellCommand("am force-stop --user " + userId + " " + packageName); in forceStopPackageForUser()
368 executeShellCommand("am stop-app --user " + userId + " " + packageName); in fgsStopPackageForUser()
[all …]
/aosp_15_r20/frameworks/base/services/tests/PackageManagerServiceTests/host/src/com/android/server/pm/test/
H A DSdCardEjectionTests.kt94 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 …]
/aosp_15_r20/platform_testing/libraries/collectors-helper/memory/test/src/com/android/helpers/tests/
H A DMemLeaksHelperTest.java138 .executeShellCommand(matches(mMemLeaksHelper.ALL_PROCESS_CMD)); in testGetMetricsNoIncrease()
142 .executeShellCommand( in testGetMetricsNoIncrease()
312 .executeShellCommand(matches(mMemLeaksHelper.ALL_PROCESS_CMD)); in testGetMetricsHasIncrease()
316 .executeShellCommand( in testGetMetricsHasIncrease()
412 .executeShellCommand(matches(mMemLeaksHelper.ALL_PROCESS_CMD)); in testNoUnreachableMemory()
415 .executeShellCommand( in testNoUnreachableMemory()
477 .executeShellCommand(matches(mMemLeaksHelper.ALL_PROCESS_CMD)); in testNoProcessName()
480 .executeShellCommand( in testNoProcessName()
532 .executeShellCommand(matches(mMemLeaksHelper.ALL_PROCESS_CMD)); in testEnclosedProcessName()
540 .executeShellCommand( in testEnclosedProcessName()
[all …]
H A DGarbageCollectionHelperTest.java60 }).when(mUiDevice).executeShellCommand(any()); in setUp()
83 inOrder.verify(mUiDevice).executeShellCommand("pidof package.name1"); in testOneAppToGc()
84 inOrder.verify(mUiDevice).executeShellCommand("kill -10 1"); in testOneAppToGc()
96 inOrder.verify(mUiDevice).executeShellCommand("pidof package.name1"); in testMultipleAppsToGc()
97 inOrder.verify(mUiDevice).executeShellCommand("kill -10 1"); in testMultipleAppsToGc()
98 inOrder.verify(mUiDevice).executeShellCommand("pidof package.name2"); in testMultipleAppsToGc()
99 inOrder.verify(mUiDevice).executeShellCommand("kill -10 2"); in testMultipleAppsToGc()
100 inOrder.verify(mUiDevice).executeShellCommand("pidof package.name3"); in testMultipleAppsToGc()
101 inOrder.verify(mUiDevice).executeShellCommand("kill -10 3"); in testMultipleAppsToGc()
113 inOrder.verify(mUiDevice).executeShellCommand("pidof does.not.exist"); in testSkipsGcOnDneApp()
[all …]
/aosp_15_r20/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/lib/
H A DDeviceUtils.java193 device.executeShellCommand(cmd); in allowBackgroundServices()
227 device.executeShellCommand(cmd, receiver); in getShellCommandOutput()
248 uidString = device.executeShellCommand("id -u"); in getHostUid()
282 String uidLine = device.executeShellCommand("cmd package list packages -U --user " in getAppUidForUser()
308 final String features = device.executeShellCommand("pm list features"); in hasFeature()
370 device.executeShellCommand(cmd); in withActivity()
373 device.executeShellCommand("am force-stop " + pkgName); in withActivity()
379 device.executeShellCommand("cmd battery set status " + state); in setChargingState()
390 device.executeShellCommand("cmd battery unplug"); in unplugDevice()
394 device.executeShellCommand("cmd battery set ac 1"); in plugInAc()
[all …]
/aosp_15_r20/platform_testing/libraries/compatibility-common-util/tests/src/com/android/compatibility/common/util/
H A DBackupUtilsTest.java56 protected InputStream executeShellCommand(String command) throws IOException { in testEnableBackup_whenEnableTrueAndEnabled_returnsTrue()
75 protected InputStream executeShellCommand(String command) throws IOException { in testEnableBackup_whenEnableTrueAndDisabled_returnsFalse()
94 protected InputStream executeShellCommand(String command) throws IOException { in testEnableBackup_whenEnableFalseAndEnabled_returnsTrue()
113 protected InputStream executeShellCommand(String command) throws IOException { in testEnableBackup_whenEnableFalseAndDisabled_returnsFalse()
133 protected InputStream executeShellCommand(String command) throws IOException { in testEnableBackup_whenEnableTrueAndEnabledAndCommandsReturnMultipleLines()
152 protected InputStream executeShellCommand(String command) throws IOException { in testEnableBackup_whenQueryCommandThrows_propagatesException()
180 protected InputStream executeShellCommand(String command) throws IOException { in testEnableBackup_whenSetCommandThrows_propagatesException()
209 protected InputStream executeShellCommand(String command) throws IOException { in testEnableBackup_whenQueryCommandReturnsInvalidString_throwsException()
237 protected InputStream executeShellCommand(String command) throws IOException { in testEnableBackup_whenQueryCommandReturnsEmptyString_throwsException()
264 protected InputStream executeShellCommand(String command) throws IOException { in testWaitForBackupInitialization_whenEnabled()
[all …]
/aosp_15_r20/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/
H A DCompilationFilterRuleTest.java52 protected String executeShellCommand(String cmd) { in testNoAppToCompile()
53 super.executeShellCommand(cmd); in testNoAppToCompile()
71 protected String executeShellCommand(String cmd) { in testSingleAppToCompile()
72 super.executeShellCommand(cmd); in testSingleAppToCompile()
105 protected String executeShellCommand(String cmd) { in testAppToCompile_failCompilationThrows()
106 super.executeShellCommand(cmd); in testAppToCompile_failCompilationThrows()
125 protected String executeShellCommand(String cmd) { in testOneAppToCompile()
126 super.executeShellCommand(cmd); in testOneAppToCompile()
146 protected String executeShellCommand(String cmd) { in testOneAppToCompileMultipleIterations()
147 super.executeShellCommand(cmd); in testOneAppToCompileMultipleIterations()
[all …]
/aosp_15_r20/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
H A DScreenRecordCollectorTest.java104 doReturn("1234").when(mDevice).executeShellCommand(eq("pidof screenrecord")); in initListener()
105 doReturn("").when(mDevice).executeShellCommand(not(eq("pidof screenrecord"))); in initListener()
127 verify(mDevice, times(i)).executeShellCommand(matches("screenrecord .*video.mp4")); in testScreenRecord()
130 .executeShellCommand( in testScreenRecord()
141 verify(mDevice, times(i)).executeShellCommand(eq("pidof screenrecord")); in testScreenRecord()
142 verify(mDevice, times(i)).executeShellCommand(matches("kill -2 1234")); in testScreenRecord()
196 .executeShellCommand(matches("^.*[^1]-video.*.mp4$")); in testScreenRecord_multipleTests()
201 .executeShellCommand(endsWith(String.format("%d-video.mp4", i + 1))); in testScreenRecord_multipleTests()
206 .executeShellCommand(endsWith(String.format("%d-video%d.mp4", i + 1, p))); in testScreenRecord_multipleTests()
217 doReturn("Physical size: 1080x720 ").when(mDevice).executeShellCommand("wm size"); in testScreenRecord_qualityHigh()
[all …]
/aosp_15_r20/platform_testing/libraries/automotive-helpers/hardkeys-app-helper/src/android/platform/helpers/
H A DVehicleHardKeysHelperImpl.java87 getSpectatioUiUtil().executeShellCommand("input keyevent KEYCODE_CALL"); in pressRecieveCallKey()
92 getSpectatioUiUtil().executeShellCommand("input keyevent KEYCODE_ENDCALL"); in pressEndCallKey()
97 getSpectatioUiUtil().executeShellCommand("input keyevent KEYCODE_MEDIA_NEXT"); in pressMediaNextTrackKey()
102 getSpectatioUiUtil().executeShellCommand("input keyevent KEYCODE_MEDIA_PREVIOUS"); in pressMediaPreviousTrackKey()
107 getSpectatioUiUtil().executeShellCommand("input keyevent KEYCODE_VOLUME_UP"); in tuneVolumeUpKey()
112 getSpectatioUiUtil().executeShellCommand("input keyevent KEYCODE_VOLUME_DOWN"); in tuneVolumeDownKey()
117 getSpectatioUiUtil().executeShellCommand("input keyevent KEYCODE_BRIGHTNESS_UP"); in pressBrightnessUpKey()
122 getSpectatioUiUtil().executeShellCommand("input keyevent KEYCODE_BRIGHTNESS_DOWN"); in pressBrightnessDownKey()
132 getSpectatioUiUtil().executeShellCommand("input keyevent KEYCODE_VOLUME_MUTE"); in tuneMuteKey()
178 String res = getSpectatioUiUtil().executeShellCommand(cmd); in getCurrentVolumeLevel()
[all …]
/aosp_15_r20/cts/tests/tests/provider/src/android/provider/cts/
H A DProviderTestUtils.java49 executeShellCommand(String.format(cmd, packageName, "WRITE_SMS", mode), uiAutomation); in setDefaultSmsApp()
50 executeShellCommand(String.format(cmd, packageName, "READ_SMS", mode), uiAutomation); in setDefaultSmsApp()
53 public static String executeShellCommand(String command) throws IOException { in executeShellCommand() method in ProviderTestUtils
54 return executeShellCommand(command, in executeShellCommand()
58 public static String executeShellCommand(String command, UiAutomation uiAutomation) in executeShellCommand() method in ProviderTestUtils
61 ParcelFileDescriptor pfd = uiAutomation.executeShellCommand(command.toString()); in executeShellCommand()
80 String output = executeShellCommand("bmgr transport " + transport, uiAutomation); in setBackupTransport()
93 String output = executeShellCommand("bmgr enabled", uiAutomation); in setBackupEnabled()
102 executeShellCommand("bmgr enable " + enable, uiAutomation); in setBackupEnabled()
108 String output = executeShellCommand("bmgr list transports", uiAutomation); in hasBackupTransport()
[all …]
/aosp_15_r20/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
H A DDeviceConfigServiceTest.java80 executeShellCommand("device_config put " + sNamespace + " " + sKey + " " + sValue); in testOverride()
81 executeShellCommand("device_config override " + sNamespace + " " + sKey + " " + newValue); in testOverride()
86 executeShellCommand("device_config clear_override " + sNamespace + " " + sKey); in testOverride()
100 executeShellCommand("device_config put " + sNamespace + " " + sKey + " " + sValue); in testPut()
101 executeShellCommand("device_config put " + newNamespace + " " + sKey + " " + newValue); in testPut()
115 executeShellCommand("device_config put " + sKey + " " + sValue); in testPut_invalidArgs()
121 executeShellCommand( in testPut_invalidArgs()
140 executeShellCommand("device_config delete " + sNamespace + " " + sKey); in testDelete()
159 executeShellCommand("device_config delete " + sKey); in testDelete_invalidArgs()
165 executeShellCommand("device_config delete " + sNamespace + " " + sKey + " extra_arg"); in testDelete_invalidArgs()
[all …]

12345678910>>...56