Home
last modified time | relevance | path

Searched refs:timeoutSec (Results 1 - 16 of 16) sorted by relevance

/foundation/ability/ability_runtime/tools/aa/src/
H A Dtest_observer.cpp56 ShellCommandResult TestObserver::ExecuteShellCommand(const std::string& cmd, const int64_t timeoutSec) in ExecuteShellCommand() argument
58 TAG_LOGI(AAFwkTag::AA_TOOL, "enter, cmd : \"%{public}s\", timeoutSec : %{public}" PRId64, cmd.data(), timeoutSec); in ExecuteShellCommand()
60 auto cmdExecutor = std::make_shared<ShellCommandExecutor>(cmd, timeoutSec); in ExecuteShellCommand()
H A Dtest_observer_proxy.cpp92 const std::string& cmd, const int64_t timeoutSec) in ExecuteShellCommand()
110 if (!data.WriteInt64(timeoutSec)) { in ExecuteShellCommand()
111 TAG_LOGE(AAFwkTag::AA_TOOL, "Write timeoutSec failed"); in ExecuteShellCommand()
91 ExecuteShellCommand( const std::string& cmd, const int64_t timeoutSec) ExecuteShellCommand() argument
H A Dshell_command_executor.cpp29 ShellCommandExecutor::ShellCommandExecutor(const std::string& cmd, const int64_t timeoutSec) in ShellCommandExecutor() argument
30 : cmd_(cmd), timeoutSec_(timeoutSec) in ShellCommandExecutor()
50 TAG_LOGW(AAFwkTag::AA_TOOL, "cmd timed out! cmd : \"%{public}s\", timeoutSec : %{public}" PRId64, in WaitWorkDone()
52 std::cout << "Warning! Command execution timed out! cmd : " << cmd_ << ", timeoutSec : " << timeoutSec_ in WaitWorkDone()
/foundation/ability/ability_runtime/test/unittest/cj_ability_delegator_test/
H A Dcj_ability_delegator_test.cpp143 int64_t timeoutSec = 10; in HWTEST_F() local
144 auto shellCmdResult = cjDelegator->ExecuteShellCommand(cmd, timeoutSec); in HWTEST_F()
234 int64_t timeoutSec = 1000; in HWTEST_F() local
238 auto result = FFIAbilityDelegatorExecuteShellCommand(id, cmd, timeoutSec); in HWTEST_F()
249 int64_t timeoutSec = 1000; in HWTEST_F() local
266 int64_t timeoutSec = 1000; in HWTEST_F() local
282 int64_t timeoutSec = 1000; in HWTEST_F() local
/foundation/ability/ability_runtime/frameworks/cj/ffi/
H A Dcj_ability_delegator.cpp35 std::shared_ptr<AppExecFwk::ShellCmdResult> CJAbilityDelegator::ExecuteShellCommand(const char* cmd, int64_t timeoutSec) in ExecuteShellCommand() argument
37 auto shellCmd = delegator_->ExecuteShellCommand(cmd, timeoutSec); in ExecuteShellCommand()
99 int32_t FFIAbilityDelegatorExecuteShellCommand(int64_t id, const char* cmd, int64_t timeoutSec) in FFIAbilityDelegatorExecuteShellCommand() argument
106 auto cJShellCmdResult = FFI::FFIData::Create<CJShellCmdResult>(cjDelegator->ExecuteShellCommand(cmd, timeoutSec)); in FFIAbilityDelegatorExecuteShellCommand()
H A Dcj_ability_delegator.h35 std::shared_ptr<AppExecFwk::ShellCmdResult> ExecuteShellCommand(const char* cmd, int64_t timeoutSec);
57 CJ_EXPORT int32_t FFIAbilityDelegatorExecuteShellCommand(int64_t id, const char* cmd, int64_t timeoutSec);
/foundation/ability/ability_runtime/test/fuzztest/toolstestobserver_fuzzer/
H A Dtoolstestobserver_fuzzer.cpp54 int64_t timeoutSec = static_cast<int64_t>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() local
58 testObserver-> ExecuteShellCommand(cmd, timeoutSec); in DoSomethingInterestingWithMyAPI()
/foundation/ability/ability_runtime/tools/aa/include/
H A Ditest_observer.h48 * @param timeoutSec, Indicates the specified time out time, in seconds.
51 virtual ShellCommandResult ExecuteShellCommand(const std::string& cmd, const int64_t timeoutSec) = 0;
H A Dtest_observer_proxy.h57 * @param timeoutSec, Indicates the specified time out time, in seconds.
60 virtual ShellCommandResult ExecuteShellCommand(const std::string& cmd, const int64_t timeoutSec) override;
H A Dshell_command_executor.h34 * @param timeoutSec, Indicates the specified time out time, in seconds.
36 ShellCommandExecutor(const std::string& cmd, const int64_t timeoutSec);
H A Dtest_observer.h55 * @param timeoutSec, Indicates the specified time out time, in seconds.
58 virtual ShellCommandResult ExecuteShellCommand(const std::string& cmd, const int64_t timeoutSec) override;
/foundation/multimedia/audio_framework/services/audio_service/common/src/
H A Dfutex_tool.cpp40 int64_t timeoutSec = timeout / SEC_TO_NANOSEC; in TimeoutToRelativeTime() local
43 realtime.tv_sec = timeoutSec; in TimeoutToRelativeTime()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/obex/
H A Dobex_client.h220 * @param timeoutSec timeout specifying the number of seconds.
224 static int CreateSession(uint32_t timeoutSec);
251 * @param timeoutSec timeout specifying the number of seconds
254 static int SetSessionTimeout(uint32_t timeoutSec = OBEX_SESSION_MAX_TIMEOUT_SEC);
H A Dobex_client.cpp506 int ObexClient::CreateSession(uint32_t timeoutSec) in CreateSession() argument
537 int ObexClient::SetSessionTimeout(uint32_t timeoutSec) in SetSessionTimeout() argument
/foundation/ability/ability_runtime/interfaces/kits/native/appkit/ability_delegator/
H A Dability_delegator.h240 * @param timeoutSec, Indicates the specified time out time, in seconds.
243 std::unique_ptr<ShellCmdResult> ExecuteShellCommand(const std::string &cmd, const int64_t timeoutSec);
/foundation/ability/ability_runtime/frameworks/native/appkit/ability_delegator/
H A Dability_delegator.cpp325 std::unique_ptr<ShellCmdResult> AbilityDelegator::ExecuteShellCommand(const std::string &cmd, const int64_t timeoutSec) in ExecuteShellCommand() argument
327 TAG_LOGI(AAFwkTag::DELEGATOR, "command : %{public}s, timeout : %{public}" PRId64, cmd.data(), timeoutSec); in ExecuteShellCommand()
340 auto result = testObserver->ExecuteShellCommand(cmd, timeoutSec); in ExecuteShellCommand()

Completed in 8 milliseconds