Home
last modified time | relevance | path

Searched refs:timeout_ms (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/native/cmds/dumpstate/
DDumpstateUtil.cpp46 static bool waitpid_with_timeout(pid_t pid, int timeout_ms, int* status) { in waitpid_with_timeout() argument
57 ts.tv_sec = MSEC_TO_SEC(timeout_ms); in waitpid_with_timeout()
58 ts.tv_nsec = (timeout_ms % 1000) * 1000000; in waitpid_with_timeout()
95 …andOptions::CommandOptionsBuilder::CommandOptionsBuilder(int64_t timeout_ms) : values(timeout_ms) { in CommandOptionsBuilder() argument
137 CommandOptions::CommandOptionsValues::CommandOptionsValues(int64_t timeout_ms) in CommandOptionsValues() argument
138 : timeout_ms_(timeout_ms), in CommandOptionsValues()
176 CommandOptions::CommandOptionsBuilder CommandOptions::WithTimeoutInMs(int64_t timeout_ms) { in WithTimeoutInMs() argument
177 return CommandOptions::CommandOptionsBuilder(timeout_ms); in WithTimeoutInMs()
DDumpstateUtil.h79 explicit CommandOptionsValues(int64_t timeout_ms);
122 explicit CommandOptionsBuilder(int64_t timeout_ms);
144 static CommandOptionsBuilder WithTimeoutInMs(int64_t timeout_ms);
Ddumpstate.cpp666 unsigned long timeout_ms = 0; in logcat_timeout() local
671 timeout_ms += 10 * (property_size + worst_write_perf) / worst_write_perf; in logcat_timeout()
673 return timeout_ms > MINIMUM_LOGCAT_TIMEOUT_MS ? timeout_ms : MINIMUM_LOGCAT_TIMEOUT_MS; in logcat_timeout()
927 unsigned long timeout_ms = logcat_timeout({"kernel"}); in DoKernelLogcat() local
931 CommandOptions::WithTimeoutInMs(timeout_ms).Build()); in DoKernelLogcat()
938 unsigned long timeout_ms = logcat_timeout({"main", "system", "crash"}); in DoSystemLogcat() local
942 CommandOptions::WithTimeoutInMs(timeout_ms).Build()); in DoSystemLogcat()
946 unsigned long timeout_ms = logcat_timeout({"radio"}); in DoRadioLogcat() local
950 CommandOptions::WithTimeoutInMs(timeout_ms).Build(), true /* verbose_duration */); in DoRadioLogcat()
954 unsigned long timeout_ms; in DoLogcat() local
[all …]
/frameworks/base/cmds/incidentd/src/
Dincidentd_util.cpp182 static bool waitpid_with_timeout(pid_t pid, int timeout_ms, int* status) { in waitpid_with_timeout() argument
193 ts.tv_sec = timeout_ms / 1000; in waitpid_with_timeout()
194 ts.tv_nsec = (timeout_ms % 1000) * 1000000; in waitpid_with_timeout()
234 status_t wait_child(pid_t pid, int timeout_ms) { in wait_child() argument
236 if (waitpid_with_timeout(pid, timeout_ms, &status)) { in wait_child()
Dincidentd_util.h114 status_t wait_child(pid_t pid, int timeout_ms = 1000);
/frameworks/native/libs/vr/libpdx_uds/
Dclient_channel_factory.cpp58 int64_t timeout_ms) const { in Connect()
74 bool use_timeout = (timeout_ms >= 0); in Connect()
76 auto time_end = now + std::chrono::milliseconds{timeout_ms}; in Connect()
Dchannel_event_set.cpp116 Status<int> ChannelEventReceiver::PollPendingEvents(int timeout_ms) const { in PollPendingEvents()
120 if (RETRY_EINTR(poll(pfds.data(), pfds.size(), timeout_ms)) < 0) { in PollPendingEvents()
Dipc_helper.cpp413 int64_t timeout_ms) { in WaitForEndpoint() argument
479 ret = poll(&pfd, 1, timeout_ms); in WaitForEndpoint()
/frameworks/native/libs/vr/libpdx_default_transport/
Dpdx_tool.cpp22 explicit ControlClient(const std::string& service_path, long timeout_ms);
51 ControlClient::ControlClient(const std::string& service_path, long timeout_ms) in ControlClient() argument
52 : BASE{ClientChannelFactory::Create(service_path), timeout_ms} {} in ControlClient()
/frameworks/native/libs/vr/libpdx/private/pdx/
Dclient_channel_factory.h15 int64_t timeout_ms) const = 0;
Dmock_client_channel_factory.h13 Connect, Status<std::unique_ptr<ClientChannel>>(int64_t timeout_ms));
Dclient.h58 int64_t timeout_ms = kInfiniteTimeout);
/frameworks/native/libs/vr/libpdx_uds/private/uds/
Dclient_channel_factory.h19 int64_t timeout_ms) const override;
Dchannel_event_set.h66 Status<int> PollPendingEvents(int timeout_ms) const;
Dipc_helper.h216 int64_t timeout_ms);
/frameworks/native/libs/vr/libpdx/
Dclient.cpp63 int64_t timeout_ms) in Client() argument
65 auto status = channel_factory_->Connect(timeout_ms);
Dclient_tests.cpp64 int64_t timeout_ms) in SimpleClient() argument
65 : BASE{std::move(channel_factory), timeout_ms} { in SimpleClient()
66 EnableAutoReconnect(timeout_ms);
/frameworks/native/libs/binder/tests/
DbinderDriverInterfaceTest.cpp135 void binderWaitForReadData(int timeout_ms) { in binderWaitForReadData() argument
141 ret = poll(&pfd, 1, timeout_ms); in binderWaitForReadData()
DbinderLibTest.cpp224 void waitForReadData(int fd, int timeout_ms) { in waitForReadData() argument
230 ret = poll(&pfd, 1, timeout_ms); in waitForReadData()
/frameworks/base/services/core/jni/
Dcom_android_server_VibratorService.cpp256 static void vibratorOn(JNIEnv* /* env */, jclass /* clazz */, jlong timeout_ms) in vibratorOn() argument
259 auto status = hal->call(&aidl::IVibrator::on, timeout_ms, nullptr); in vibratorOn()
264 … Status retStatus = halCall(&V1_0::IVibrator::on, timeout_ms).withDefault(Status::UNKNOWN_ERROR); in vibratorOn()
/frameworks/native/libs/vr/libbufferhub/
Dbuffer_hub-test.cpp49 int timeout_ms = kPollTimeoutMs) { in PollBufferEvent() argument
51 return poll(&p, 1, timeout_ms); in PollBufferEvent()
640 int PollFd(int fd, int timeout_ms) { in PollFd() argument
642 return poll(&p, 1, timeout_ms); in PollFd()
/frameworks/native/libs/vr/libvrflinger/
Dhardware_composer.h445 int requested_events, int timeout_ms);
Dhardware_composer.cpp667 const pdx::LocalHandle& event_fd, int requested_events, int timeout_ms) { in PostThreadPollInterruptible() argument
682 ret = poll(pfd, 2, timeout_ms); in PostThreadPollInterruptible()
/frameworks/native/libs/vr/libdvr/tests/
Ddvr_display_manager-test.cpp196 Status<void> WaitForUpdate(int timeout_ms = kTimeoutMs) { in WaitForUpdate() argument
201 const int count = poll(&pfd, 1, timeout_ms); in WaitForUpdate()
/frameworks/native/libs/vr/libbufferhubqueue/tests/
Dbuffer_hub_queue-test.cpp67 bool WaitAndHandleOnce(BufferHubQueue* queue, int timeout_ms) { in WaitAndHandleOnce() argument
71 ret = poll(&pfd, 1, timeout_ms); in WaitAndHandleOnce()

12