Home
last modified time | relevance | path

Searched refs:executeCommand (Results 1 – 16 of 16) sorted by relevance

/cts/hostsidetests/car/src/android/car/cts/
DCarWatchdogHostTest.java198 executeCommand(DEFINE_ENABLE_DISPLAY_POWER_POLICY_CMD); in setUp()
199 executeCommand(DEFINE_DISABLE_DISPLAY_POWER_POLICY_CMD); in setUp()
200 mOriginalForegroundBytes = parseForegroundBytesFromMessage(executeCommand( in setUp()
202 executeCommand("%s %d", SET_IO_OVERUSE_FOREGROUNG_BYTES_CMD, TWO_HUNDRED_MEGABYTES); in setUp()
203 executeCommand("logcat -c"); in setUp()
205 executeCommand(RESET_RESOURCE_OVERUSE_CMD); in setUp()
212 executeCommand(APPLY_ENABLE_DISPLAY_POWER_POLICY_CMD); in tearDown()
214 executeCommand(RESET_RESOURCE_OVERUSE_CMD); in tearDown()
215 executeCommand(STOP_CUSTOM_PERF_COLLECTION_CMD); in tearDown()
216 executeCommand("%s %d", SET_IO_OVERUSE_FOREGROUNG_BYTES_CMD, mOriginalForegroundBytes); in tearDown()
[all …]
DCarTelemetryHostTest.java94 String output = executeCommand("cmd car_service enable-feature car_telemetry_service"); in setUp()
97 executeCommand("cmd car_service disable-feature car_telemetry_service"); in setUp()
104 executeCommand("cmd car_service telemetry remove %s", CONFIG_NAME_1); in tearDown()
105 executeCommand("rm %s/%s", FINAL_RESULT_DIR, CONFIG_NAME_2); in tearDown()
127 executeCommand("cmd car_service inject-vhal-event %d %d", in testSavingResultsAcrossReboot()
137 assertThat(executeCommand("ls %s", INTERIM_RESULT_DIR)) in testSavingResultsAcrossReboot()
139 assertThat(executeCommand("ls %s", FINAL_RESULT_DIR)) in testSavingResultsAcrossReboot()
148 String result = executeCommand( in testSavingResultsAcrossReboot()
155 return executeCommand("dumpsys car_service --services CarTelemetryService"); in dumpTelemetryService()
DPowerPolicyHostTest.java163 return executeCommand("dumpsys activity %s", ANDROID_CLIENT_ACTIVITY); in fetchActivityDumpsys()
192 executeCommand("cmd car_service inject-vhal-event %d %d,%d", in triggerVhalPowerStateReq()
233 executeCommand("svc power reboot"); in rebootDevice()
238 executeCommand("cmd car_service silent-mode forced-silent"); in enterForcedSilentMode()
251 executeCommand(LEAVE_FORCED_SILENT_MODE_CMD); in leaveForcedSilentMode()
252 executeCommand(ENTER_NON_FORCED_SILENT_MODE_CMD); in leaveForcedSilentMode()
266 executeCommand("cmd car_service define-power-policy %s", policyStr); in definePowerPolicy()
270 executeCommand("cmd car_service apply-power-policy %s", policyId); in applyPowerPolicy()
274 executeCommand("cmd car_service define-power-policy-group %s", policyGroupStr); in definePowerPolicyGroup()
278 executeCommand("cmd car_service set-power-policy-group %s", policyGroupId); in setPowerPolicyGroup()
[all …]
DCarPowerHostTest.java73 executeCommand("logcat -c"); in setUp()
244 executeCommand("svc power reboot"); in rebootDevice()
262 executeCommand("dumpsys car_service --services CarPowerManagementService"); in getPowerState()
335 String cpmsDump = executeCommand(CMD_DUMPSYS_POWER); in isSuspendSupported()
366 executeCommand("%s set-listener,%s,%s", TEST_COMMAND_HEADER, completionType, in setPowerStateListener()
372 executeCommand("%s clear-listener", TEST_COMMAND_HEADER); in clearListener()
378 executeCommand("%s get-listener-states-results,%s,%s", TEST_COMMAND_HEADER, in listenerStatesMatchExpected()
390 executeCommand("cmd car_service suspend --simulate --skip-garagemode --wakeup-after " in suspendDeviceToRam()
395 executeCommand("cmd car_service hibernate --simulate --skip-garagemode --wakeup-after " in suspendDeviceToDisk()
400 return executeCommand("dumpsys activity service %s", ANDROID_CLIENT_SERVICE); in fetchServiceDumpsys()
DCarWifiHostTest.java107 executeCommand(ENABLE_PERSISTENT_TETHERING); in testPersistTetheringCarSetting_enablingWithCapability_autoShutdownDisabled()
118 executeCommand(DISABLE_PERSISTENT_TETHERING); in testPersistTetheringCarSetting_disablingWithCapability_autoShutdownEnabled()
130 executeCommand(ENABLE_PERSISTENT_TETHERING); in testPersistTetheringCarSetting_enablingNoCapability_autoShutdownUnchanged()
142 executeCommand(DISABLE_PERSISTENT_TETHERING); in testPersistTetheringCarSetting_disablingNoCapability_autoShutdownUnchanged()
210 executeCommand(hotspotCommand); in enablePersistTetheringAndReboot()
212 executeCommand(ENABLE_PERSISTENT_TETHERING); in enablePersistTetheringAndReboot()
DUiModeHostTest.java72 executeCommand("cmd car_service day-night-mode day"); in setDayMode()
79 executeCommand("cmd car_service day-night-mode night"); in setNightMode()
DCarUserManagerHostTest.java61 String result = executeCommand("cmd car_service remove-user %d", newUserid); in testRemoveUser()
85 String output = executeCommand("cmd car_service switch-user %d %s", userId, options); in switchUser()
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/utils/
DShellCommandUtilsTest.java51 assertThat(ShellCommandUtils.executeCommand(LIST_USERS_COMMAND)) in executeCommand_returnsOutput()
61 () -> ShellCommandUtils.executeCommand(INVALID_COMMAND_LEGACY_OUTPUT)); in executeCommand_invalidCommand_legacyOutput_throwsException()
72 assertThat(ShellCommandUtils.executeCommand(INVALID_COMMAND_LEGACY_OUTPUT)) in executeCommand_invalidCommand_legacyOutput_preAndroid11_throwsException()
95 () -> ShellCommandUtils.executeCommand(INVALID_COMMAND_CORRECT_OUTPUT)); in executeCommand_invalidCommand_correctOutput_throwsException()
/cts/hostsidetests/car/util/src/android/car/cts/
DCarHostJUnit4TestCase.java214 existingUsers = "Existing users: " + executeCommand("cmd user list --all -v"); in failCannotCreateUsers()
226 protected String executeCommand(String command, Object... args) throws Exception { in executeCommand() method in CarHostJUnit4TestCase
236 String output = executeCommand(command, args); in executeAndParseCommand()
247 String output = executeCommand(command, args); in executeAndParseCommand()
261 String output = executeCommand(command, args); in executeAndParseCommand()
309 executeCommand("setprop fw.max_users %d", numUsers); in setMaxNumberUsers()
427 String output = executeCommand("cmd car_service switch-user %d", userId); in switchUser()
504 String result = executeCommand("cmd car_service remove-user %d", userId); in removeUser()
516 String output = executeCommand("cmd user list --all -v"); in removeUsers()
621 return !executeCommand("pidof %s", packageName).isEmpty(); in isPackageRunning()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/testcore/
DVoiceInteractionSessionControl.java71 executeCommand(Utils.VOICE_INTERACTION_SESSION_CMD_FINISH, in stopVoiceInteractionSession()
76 protected Bundle executeCommand(@NonNull String action, @Nullable DirectAction directAction, in executeCommand() method in VoiceInteractionSessionControl
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DShellCommandUtils.java85 static String executeCommand(String command) throws AdbException { in executeCommand() method in ShellCommandUtils
86 return executeCommand(command, /* allowEmptyOutput=*/ false, /* stdInBytes= */ null); in executeCommand()
127 static String executeCommand(String command, boolean allowEmptyOutput, byte[] stdInBytes) in executeCommand() method in ShellCommandUtils
235 String output = executeCommand(command, allowEmptyOutput, stdInBytes); in executeCommandAndValidateOutput()
DShellCommand.java231 return ShellCommandUtils.executeCommand( in executeSync()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DDirectActionsTest.java196 final Bundle result = executeCommand(Utils.DIRECT_ACTIONS_SESSION_CMD_GET_ACTIONS, in getDirectActions()
204 return executeCommand(Utils.DIRECT_ACTIONS_SESSION_CMD_PERFORM_ACTION, in performDirectAction()
210 return executeCommand(Utils.DIRECT_ACTIONS_SESSION_CMD_PERFORM_ACTION_CANCEL, in performDirectActionAndCancel()
217 final Bundle result = executeCommand( in detectDirectActionsInvalidated()
DVoiceInteractionSessionVisibleActivityTest.java273 final Bundle result = executeCommand( in registerVisibleActivityCallback()
280 final Bundle result = executeCommand( in unregisterVisibleActivityCallback()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2025/
DIPCThreadState.h114 status_t executeCommand(int32_t command);
/cts/hostsidetests/locale/src/android/localemanager/cts/
DApplicationLocalesChangedAtomTests.java386 private void executeCommand(String cmd) throws Exception { in executeCommand() method in ApplicationLocalesChangedAtomTests