/foundation/ability/ability_runtime/tools/aa/src/ |
H A D | test_observer.cpp | 56 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 D | test_observer_proxy.cpp | 92 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 D | shell_command_executor.cpp | 29 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 D | cj_ability_delegator_test.cpp | 143 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 D | cj_ability_delegator.cpp | 35 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 D | cj_ability_delegator.h | 35 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 D | toolstestobserver_fuzzer.cpp | 54 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 D | itest_observer.h | 48 * @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 D | test_observer_proxy.h | 57 * @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 D | shell_command_executor.h | 34 * @param timeoutSec, Indicates the specified time out time, in seconds. 36 ShellCommandExecutor(const std::string& cmd, const int64_t timeoutSec);
|
H A D | test_observer.h | 55 * @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 D | futex_tool.cpp | 40 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 D | obex_client.h | 220 * @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 D | obex_client.cpp | 506 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 D | ability_delegator.h | 240 * @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 D | ability_delegator.cpp | 325 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()
|