/third_party/grpc/src/core/lib/transport/ |
D | timeout_encoding.cc | 69 if (x < GPR_MS_PER_SEC) { in enc_millis() 72 if (x % GPR_MS_PER_SEC == 0) { in enc_millis() 73 enc_seconds(buffer, x / GPR_MS_PER_SEC); in enc_millis() 84 } else if (timeout < 1000 * GPR_MS_PER_SEC) { in grpc_http2_encode_timeout() 90 timeout / GPR_MS_PER_SEC + (timeout % GPR_MS_PER_SEC != 0)); in grpc_http2_encode_timeout() 137 *timeout = x * GPR_MS_PER_SEC; in grpc_http2_decode_timeout() 140 *timeout = x * 60 * GPR_MS_PER_SEC; in grpc_http2_decode_timeout() 143 *timeout = x * 60 * 60 * GPR_MS_PER_SEC; in grpc_http2_decode_timeout()
|
/third_party/grpc/test/core/transport/ |
D | timeout_encoding_test.cc | 65 assert_encodes_as(20 * 60 * GPR_MS_PER_SEC, "20M"); in test_encoding() 66 assert_encodes_as(60 * 60 * GPR_MS_PER_SEC, "1H"); in test_encoding() 67 assert_encodes_as(10 * 60 * 60 * GPR_MS_PER_SEC, "10H"); in test_encoding() 68 assert_encodes_as(60 * 60 * GPR_MS_PER_SEC - 100, "1H"); in test_encoding() 69 assert_encodes_as(100 * 60 * 60 * GPR_MS_PER_SEC, "100H"); in test_encoding() 115 return static_cast<grpc_millis>(x * GPR_MS_PER_SEC); in millis_from_seconds() 118 return static_cast<grpc_millis>(x * 60 * GPR_MS_PER_SEC); in millis_from_minutes() 121 return static_cast<grpc_millis>(x * 3600 * GPR_MS_PER_SEC); in millis_from_hours()
|
/third_party/grpc/test/core/util/ |
D | port_server_client.cc | 91 grpc_core::ExecCtx::Get()->Now() + 30 * GPR_MS_PER_SEC, in grpc_free_port_using_server() 104 grpc_core::ExecCtx::Get()->Now() + GPR_MS_PER_SEC))) { in grpc_free_port_using_server() 175 grpc_core::ExecCtx::Get()->Now() + 30 * GPR_MS_PER_SEC, in got_port_from_server() 225 grpc_core::ExecCtx::Get()->Now() + 30 * GPR_MS_PER_SEC, in grpc_pick_port_using_server() 238 grpc_core::ExecCtx::Get()->Now() + GPR_MS_PER_SEC))) { in grpc_pick_port_using_server()
|
/third_party/grpc/src/core/lib/gpr/ |
D | time.cc | 119 return to_seconds_from_sub_second_time(ms, GPR_MS_PER_SEC, clock_type); in gpr_time_from_millis() 222 return 2147483 * GPR_MS_PER_SEC + t.tv_nsec / GPR_NS_PER_MS; in gpr_time_to_millis() 230 return static_cast<int32_t>(t.tv_sec * GPR_MS_PER_SEC + in gpr_time_to_millis()
|
D | time_windows.cc | 92 delta.tv_sec * GPR_MS_PER_SEC + delta.tv_nsec / GPR_NS_PER_MS; in gpr_sleep_until()
|
/third_party/grpc/test/core/gpr/ |
D | time_test.cc | 101 GPR_ASSERT(x.tv_sec == i / GPR_MS_PER_SEC && in test_values() 102 x.tv_nsec == (i % GPR_MS_PER_SEC) * GPR_NS_PER_MS); in test_values() 125 GPR_ASSERT(x.tv_sec * GPR_MS_PER_SEC + x.tv_nsec / GPR_NS_PER_MS == i); in test_values()
|
/third_party/grpc/src/core/lib/iomgr/ |
D | exec_ctx.cc | 58 double x = GPR_MS_PER_SEC * static_cast<double>(ts.tv_sec) + in timespan_to_millis_round_down() 70 double x = GPR_MS_PER_SEC * static_cast<double>(ts.tv_sec) + in timespan_to_millis_round_up()
|
D | tcp_posix.cc | 458 grpc_millis deadline = grpc_core::ExecCtx::Get()->Now() + 10 * GPR_MS_PER_SEC; in run_poller()
|
/third_party/grpc/src/core/lib/json/ |
D | json_util.cc | 54 *duration = seconds * GPR_MS_PER_SEC + nanos / GPR_NS_PER_MS; in ParseDurationFromJson()
|
/third_party/grpc/include/grpc/support/ |
D | time.h | 39 #define GPR_MS_PER_SEC 1000 macro
|
/third_party/grpc/src/core/ext/xds/ |
D | file_watcher_certificate_provider_factory.cc | 134 file_watcher_config->refresh_interval_ms() / GPR_MS_PER_SEC); in CreateCertificateProvider()
|
D | xds_client.cc | 442 5 * 60 * GPR_MS_PER_SEC), in CreateXdsChannel()
|
/third_party/grpc/test/core/security/ |
D | ssl_server_fuzzer.cc | 96 grpc_millis deadline = GPR_MS_PER_SEC + grpc_core::ExecCtx::Get()->Now(); in LLVMFuzzerTestOneInput()
|
D | credentials_test.cc | 222 GPR_ASSERT(token_lifetime == 3599 * GPR_MS_PER_SEC); in test_oauth2_token_fetcher_creds_parsing_ok()
|
/third_party/grpc/src/core/ext/transport/chttp2/transport/ |
D | frame_ping.cc | 105 t->ping_recv_state.last_ping_recv_time + 7200 * GPR_MS_PER_SEC; in grpc_chttp2_ping_parser_parse()
|
D | writing.cc | 83 ? 7200 * GPR_MS_PER_SEC in maybe_initiate_ping() 84 : (GPR_MS_PER_SEC); /* A second is added to deal with network delays in maybe_initiate_ping()
|
/third_party/grpc/src/core/ext/filters/client_channel/lb_policy/grpclb/ |
D | load_balancer_api.cc | 152 (google_protobuf_Duration_seconds(duration_pb) * GPR_MS_PER_SEC) + in grpc_grpclb_duration_to_millis()
|
D | grpclb.cc | 1060 GPR_MAX(GPR_MS_PER_SEC, response.client_stats_report_interval); in OnBalancerMessageReceivedLocked()
|
/third_party/grpc/src/core/lib/security/credentials/oauth2/ |
D | oauth2_credentials.cc | 205 *token_lifetime = strtol(expires_in, nullptr, 10) * GPR_MS_PER_SEC; in grpc_oauth2_token_fetcher_credentials_parse_server_response() 283 GRPC_SECURE_TOKEN_REFRESH_THRESHOLD_SECS * GPR_MS_PER_SEC; in get_request_metadata()
|
/third_party/grpc/test/core/end2end/fixtures/ |
D | http_proxy_fixture.cc | 537 grpc_core::ExecCtx::Get()->Now() + 10 * GPR_MS_PER_SEC; in on_read_request_done_locked() 599 grpc_core::ExecCtx::Get()->Now() + GPR_MS_PER_SEC)); in thread_main()
|
/third_party/grpc/src/core/lib/security/credentials/google_default/ |
D | google_default_credentials.cc | 175 grpc_millis max_detection_delay = GPR_MS_PER_SEC; in is_metadata_server_reachable()
|
/third_party/grpc/src/core/ext/transport/chttp2/server/ |
D | chttp2_server.cc | 190 {120 * GPR_MS_PER_SEC, 1, INT_MAX}); in GetConnectionDeadline()
|
/third_party/grpc/src/python/grpcio/grpc/_cython/_cygrpc/ |
D | grpc.pxi | 71 const int GPR_MS_PER_SEC
|
/third_party/grpc/src/core/lib/security/credentials/jwt/ |
D | jwt_verifier.cc | 392 grpc_millis grpc_jwt_verifier_max_delay = 60 * GPR_MS_PER_SEC;
|