Home
last modified time | relevance | path

Searched refs:client_ (Results 1 – 25 of 87) sorted by relevance

1234

/external/tensorflow/tensorflow/compiler/xla/tests/
Ddeconstruct_tuple_test.cc48 client_->Execute(computation, arguments, &execution_options_) in ExecuteAndCheckTransfer()
50 TF_CHECK_OK(client_->Transfer(*global_data).status()); in ExecuteAndCheckTransfer()
62 auto result_status = client_->DeconstructTuple(*global_data); in TEST_F()
68 TF_ASSERT_OK_AND_ASSIGN(literal, client_->Transfer(*handles[0])); in TEST_F()
70 TF_ASSERT_OK_AND_ASSIGN(literal, client_->Transfer(*handles[1])); in TEST_F()
81 auto result_status1 = client_->DeconstructTuple(*global_data); in TEST_F()
83 auto result_status2 = client_->DeconstructTuple(*global_data); in TEST_F()
90 TF_ASSERT_OK_AND_ASSIGN(literal, client_->Transfer(*handles1[0])); in TEST_F()
92 TF_ASSERT_OK_AND_ASSIGN(literal, client_->Transfer(*handles1[1])); in TEST_F()
98 TF_ASSERT_OK_AND_ASSIGN(literal, client_->Transfer(*handles2[0])); in TEST_F()
[all …]
Ddeallocation_test.cc42 client_->Execute(computation, arguments, &execution_options_) in ExecuteAndCheckTransfer()
44 TF_CHECK_OK(client_->Transfer(*global_data).status()); in ExecuteAndCheckTransfer()
57 ASSERT_IS_OK(client_->Transfer(*global_data).status()); in TEST_F()
59 ASSERT_IS_OK(client_->Unregister(*global_data)); in TEST_F()
61 auto transfer_status = client_->Transfer(*global_data); in TEST_F()
72 ASSERT_IS_OK(client_->Unregister(*global_data)); in TEST_F()
74 auto transfer_status = client_->Transfer(*global_data); in TEST_F()
85 ASSERT_IS_OK(client_->Unregister(*global_data)); in TEST_F()
87 auto transfer_status = client_->Transfer(*global_data); in TEST_F()
99 ASSERT_IS_OK(client_->Unregister(*global_data)); in XLA_TEST_F()
[all …]
Dreplay_test.cc51 XlaComputation replayed = client_->LoadSnapshot(*module).ConsumeValueOrDie(); in TEST_F()
55 client_->GetComputationShape(computation).ConsumeValueOrDie(); in TEST_F()
57 client_->GetComputationShape(replayed).ConsumeValueOrDie(); in TEST_F()
63 client_ in TEST_F()
84 XlaComputation replayed = client_->LoadSnapshot(*module).ConsumeValueOrDie(); in XLA_TEST_F()
88 client_->GetComputationShape(computation).ConsumeValueOrDie(); in XLA_TEST_F()
90 client_->GetComputationShape(replayed).ConsumeValueOrDie(); in XLA_TEST_F()
96 client_->TransferToServer(LiteralUtil::CreateR0<int32>(2)) in XLA_TEST_F()
99 client_->TransferToServer(LiteralUtil::CreateR0<int32>(3)) in XLA_TEST_F()
102 client_ in XLA_TEST_F()
[all …]
Dcheck_execution_arity_test.cc46 client_->TransferToServer(param_literal).ConsumeValueOrDie(); in TEST_F()
48 client_->TransferToServer(param_literal).ConsumeValueOrDie(); in TEST_F()
56 auto result_two_args = client_->Execute( in TEST_F()
61 client_->Execute(computation, {param0_data.get()}, &execution_options_); in TEST_F()
69 client_->Execute(computation, {}, &execution_options_); in TEST_F()
89 auto f32_data = client_->TransferToServer(f32_literal).ConsumeValueOrDie(); in XLA_TEST_F()
92 client_->TransferToServer(f32_4_literal).ConsumeValueOrDie(); in XLA_TEST_F()
94 auto u8_4_data = client_->TransferToServer(u8_4_literal).ConsumeValueOrDie(); in XLA_TEST_F()
97 auto status = client_->Execute( in XLA_TEST_F()
102 status = client_->Execute(computation, {f32_4_data.get(), f32_4_data.get()}, in XLA_TEST_F()
[all …]
Dmap_test.cc174 client_->TransferToServer(param0_literal).ConsumeValueOrDie(); in TEST_F()
188 client_->TransferToServer(param0_literal).ConsumeValueOrDie(); in XLA_TEST_F()
203 client_->TransferToServer(param0_literal).ConsumeValueOrDie(); in TEST_F()
217 client_->TransferToServer(param0_literal).ConsumeValueOrDie(); in TEST_F()
230 client_->TransferToServer(param0_literal).ConsumeValueOrDie(); in TEST_F()
244 client_->TransferToServer(param0_literal).ConsumeValueOrDie(); in TEST_F()
260 client_->TransferToServer(param0_literal).ConsumeValueOrDie(); in XLA_TEST_F()
277 client_->TransferToServer(param0_literal).ConsumeValueOrDie(); in TEST_F()
293 client_->TransferToServer(param0_literal).ConsumeValueOrDie(); in TEST_F()
348 client_->TransferToServer(param0_literal).ConsumeValueOrDie(); in TEST_F()
[all …]
Dparams_test.cc47 client_->TransferToServer(param0_literal).ConsumeValueOrDie(); in XLA_TEST_F()
59 client_->TransferToServer(param0_literal).ConsumeValueOrDie(); in XLA_TEST_F()
71 client_->TransferToServer(param0_literal).ConsumeValueOrDie(); in XLA_TEST_F()
84 client_->TransferToServer(param0_literal).ConsumeValueOrDie(); in XLA_TEST_F()
98 client_->TransferToServer(param0_literal).ConsumeValueOrDie(); in XLA_TEST_F()
111 client_->TransferToServer(param0_literal).ConsumeValueOrDie(); in XLA_TEST_F()
126 client_->TransferToServer(literal0).ConsumeValueOrDie(); in XLA_TEST_F()
131 client_->TransferToServer(literal1).ConsumeValueOrDie(); in XLA_TEST_F()
157 client_->TransferToServer(literal).ConsumeValueOrDie(); in XLA_TEST_F()
171 client_->TransferToServer(literal0).ConsumeValueOrDie(); in XLA_TEST_F()
[all …]
Dcompilation_cache_test.cc46 client_ in ExecuteComputationR0F32()
62 auto data_handle = client_ in ExecuteComputationR2F32()
66 Literal result = client_->Transfer(*data_handle).ConsumeValueOrDie(); in ExecuteComputationR2F32()
90 client_->TransferToServer(LiteralUtil::CreateR0<float>(42.0f)) in XLA_TEST_F()
93 client_->TransferToServer(LiteralUtil::CreateR0<float>(123.0f)) in XLA_TEST_F()
96 client_->TransferToServer(LiteralUtil::CreateR0<float>(456.0f)) in XLA_TEST_F()
147 client_->TransferToServer(rowmaj_array).ConsumeValueOrDie(); in XLA_TEST_F()
152 client_->TransferToServer(colmaj_array).ConsumeValueOrDie(); in XLA_TEST_F()
Dclient_test.cc57 client_->Execute(computation, {}, &execution_options)); in XLA_TEST_F()
63 auto computed, client_->Transfer(*data, &expected_literal.shape())); in XLA_TEST_F()
93 client_->ExecuteAndTransfer(computation, {}, &execution_options)); in XLA_TEST_F()
120 client_->TransferToServer( in XLA_TEST_F()
133 client_->GetDeviceHandles(1)); in XLA_TEST_F()
142 client_->ExecuteParallel(computation_instances)); in XLA_TEST_F()
147 client_->Transfer(*results[0], &expected_result.shape())); in XLA_TEST_F()
Dconvolution_test.cc259 client_->TransferToServer(LiteralUtil::CreateR3FromArray3D(input)) in XLA_TEST_F()
262 client_->TransferToServer(LiteralUtil::CreateR3FromArray3D(filter)) in XLA_TEST_F()
294 client_->TransferToServer(LiteralUtil::CreateR3FromArray3D(input)) in RunTest()
297 client_->TransferToServer(LiteralUtil::CreateR3FromArray3D(filter)) in RunTest()
329 client_->TransferToServer(LiteralUtil::CreateR3FromArray3D(input)) in XLA_TEST_F()
332 client_->TransferToServer(LiteralUtil::CreateR3FromArray3D(filter)) in XLA_TEST_F()
360 client_->TransferToServer(LiteralUtil::CreateR3FromArray3D(input)) in XLA_TEST_F()
363 client_->TransferToServer(LiteralUtil::CreateR3FromArray3D(filter)) in XLA_TEST_F()
396 client_->TransferToServer(LiteralUtil::CreateR3FromArray3D(input)) in RunTest()
399 client_->TransferToServer(LiteralUtil::CreateR3FromArray3D(filter)) in RunTest()
[all …]
/external/webrtc/webrtc/base/
Dhttprequest.cc56 client_(user_agent.c_str(), NULL), in HttpRequest()
71 SslSocketFactory factory(ss, client_.agent()); in Send()
79 client_.set_pool(&pool); in Send()
85 client_.set_proxy(proxy_); in Send()
87 client_.set_redirect_action(HttpClient::REDIRECT_ALWAYS); in Send()
90 client_.set_server(server); in Send()
92 LOG(LS_INFO) << "HttpRequest start: " << host_ + client_.request().path; in Send()
95 monitor.Connect(&client_); in Send()
96 client_.start(); in Send()
100 client_.reset(); in Send()
[all …]
Dssladapter_unittest.cc278 client_(new SSLAdapterTestDummyClient(ssl_mode_)), in SSLAdapterTestBase()
289 ASSERT_EQ(rtc::AsyncSocket::CS_CLOSED, client_->GetState()); in TestHandshake()
291 rv = client_->Connect(server_->GetHostname(), server_->GetAddress()); in TestHandshake()
295 ASSERT_EQ(rtc::AsyncSocket::CS_CONNECTING, client_->GetState()); in TestHandshake()
299 server_->AcceptConnection(client_->GetAddress()); in TestHandshake()
305 EXPECT_EQ_WAIT(rtc::AsyncSocket::CS_CONNECTED, client_->GetState(), in TestHandshake()
312 EXPECT_EQ_WAIT(rtc::AsyncSocket::CS_CLOSED, client_->GetState(), in TestHandshake()
322 rv = client_->Send(message); in TestTransfer()
332 EXPECT_EQ_WAIT(message, client_->GetReceivedData(), kTimeout); in TestTransfer()
343 rtc::scoped_ptr<SSLAdapterTestDummyClient> client_; member in SSLAdapterTestBase
/external/tensorflow/tensorflow/compiler/xla/service/cpu/tests/
Dcpu_infeed_test.cc48 ASSERT_IS_OK(client_->TransferToInfeed(literal)); in TestInfeedRoundTrip()
154 result = client_->Execute(computation, {}, &execution_options_) in TEST_F()
160 client_->TransferToInfeed(LiteralUtil::CreateR1<float>({1, 2, 3}))); in TEST_F()
162 client_->TransferToInfeed(LiteralUtil::CreateR1<float>({4, 5, 6}))); in TEST_F()
164 client_->TransferToInfeed(LiteralUtil::CreateR1<float>({7, 8, 9}))); in TEST_F()
166 client_->TransferToInfeed(LiteralUtil::CreateR1<float>({10, 11, 12}))); in TEST_F()
168 client_->TransferToInfeed(LiteralUtil::CreateR1<float>({13, 14, 15}))); in TEST_F()
171 auto result_literal = client_->Transfer(*result).ConsumeValueOrDie(); in TEST_F()
252 ASSERT_IS_OK(client_->TransferToInfeed( in TEST_F()
255 ASSERT_IS_OK(client_->TransferToInfeed( in TEST_F()
[all …]
/external/deqp-deps/SPIRV-Tools/test/
Dbinary_parse_test.cpp217 spvBinaryParse(ScopedContext().context, &client_, in Parse()
223 MockParseClient client_; member in spvtools::__anon1e96550d0111::BinaryParseTest
230 client_, \
241 EXPECT_CALL(client_, Instruction(_)).Times(0); // No instruction callback. in TEST_F()
250 EXPECT_CALL(client_, Instruction(_)).Times(0); // No instruction callback. in TEST_F()
253 spvBinaryParse(ScopedContext().context, &client_, words.data(), in TEST_F()
261 EXPECT_CALL(client_, Instruction(_)).Times(0); // No instruction callback. in TEST_F()
264 spvBinaryParse(ScopedContext().context, &client_, words.data(), in TEST_F()
278 EXPECT_CALL(client_, Instruction(_)).Times(0); // No instruction callback. in TEST_F()
280 spvBinaryParse(ctx.CContext(), &client_, words.data(), words.size(), in TEST_F()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/
Dbinary_parse_test.cpp217 spvBinaryParse(ScopedContext().context, &client_, in Parse()
223 MockParseClient client_; member in spvtools::__anon8d2784470111::BinaryParseTest
230 client_, \
241 EXPECT_CALL(client_, Instruction(_)).Times(0); // No instruction callback. in TEST_F()
250 EXPECT_CALL(client_, Instruction(_)).Times(0); // No instruction callback. in TEST_F()
253 spvBinaryParse(ScopedContext().context, &client_, words.data(), in TEST_F()
261 EXPECT_CALL(client_, Instruction(_)).Times(0); // No instruction callback. in TEST_F()
264 spvBinaryParse(ScopedContext().context, &client_, words.data(), in TEST_F()
278 EXPECT_CALL(client_, Instruction(_)).Times(0); // No instruction callback. in TEST_F()
280 spvBinaryParse(ctx.CContext(), &client_, words.data(), words.size(), in TEST_F()
[all …]
/external/angle/third_party/spirv-tools/src/test/
Dbinary_parse_test.cpp217 spvBinaryParse(ScopedContext().context, &client_, in Parse()
223 MockParseClient client_; member in spvtools::__anon1d30e7010111::BinaryParseTest
230 client_, \
241 EXPECT_CALL(client_, Instruction(_)).Times(0); // No instruction callback. in TEST_F()
250 EXPECT_CALL(client_, Instruction(_)).Times(0); // No instruction callback. in TEST_F()
253 spvBinaryParse(ScopedContext().context, &client_, words.data(), in TEST_F()
261 EXPECT_CALL(client_, Instruction(_)).Times(0); // No instruction callback. in TEST_F()
264 spvBinaryParse(ScopedContext().context, &client_, words.data(), in TEST_F()
278 EXPECT_CALL(client_, Instruction(_)).Times(0); // No instruction callback. in TEST_F()
280 spvBinaryParse(ctx.CContext(), &client_, words.data(), words.size(), in TEST_F()
[all …]
/external/adhd/cras/src/tests/
Dcras_client_unittest.cc64 memset(&client_, 0, sizeof(client_)); in SetUp()
65 client_.server_fd_state = CRAS_SOCKET_STATE_CONNECTED; in SetUp()
94 struct cras_client client_; member in __anond24fadc70111::CrasClientTestSuite
273 EXPECT_EQ(-ETIMEDOUT, client_thread_add_stream(&client_, stream_ptr, in TEST_F()
280 0, client_thread_add_stream(&client_, stream_ptr, &stream_id, NO_DEVICE)); in TEST_F()
281 EXPECT_EQ(&client_, stream_ptr->client); in TEST_F()
287 EXPECT_EQ(stream_ptr, stream_from_id(&client_, stream_id)); in TEST_F()
293 client_.server_fd = serv_fds[1]; in TEST_F()
294 client_.server_fd_state = CRAS_SOCKET_STATE_CONNECTED; in TEST_F()
295 EXPECT_EQ(0, client_thread_rm_stream(&client_, stream_id)); in TEST_F()
[all …]
/external/webrtc/webrtc/libjingle/xmpp/
Dxmpppump.cc20 client_ = new buzz::XmppClient(this); // NOTE: deleted by TaskRunner in XmppPump()
28 client_->SignalStateChange.connect(this, &XmppPump::OnStateChange); in DoLogin()
29 client_->Connect(xcs, "", socket, auth); in DoLogin()
30 client_->Start(); in DoLogin()
36 client_->Disconnect(); in DoDisconnect()
62 return client_->SendStanza(stanza); in SendStanza()
Dpubsubstateclient.h97 client_(client), in PubSubStateClient()
102 client_->SignalItems.connect( in PubSubStateClient()
104 client_->SignalPublishResult.connect( in PubSubStateClient()
106 client_->SignalPublishError.connect( in PubSubStateClient()
108 client_->SignalRetractResult.connect( in PubSubStateClient()
110 client_->SignalRetractError.connect( in PubSubStateClient()
122 client_->RetractItem(itemid, task_id_out); in Publish()
126 client_->PublishItem(itemid, state_elem, task_id_out); in Publish()
150 client_->GetPublisherNickFromPubSubItem(item.elem); in ParseStateItem()
160 PubSubClient* client() { return client_; } in client()
[all …]
/external/webrtc/webrtc/examples/peerconnection/client/
Dconductor.cc58 client_(client), in Conductor()
60 client_->RegisterObserver(this); in Conductor()
73 client_->SignOut(); in Close()
203 main_wnd_->SwitchToPeerList(client_->peers()); in OnSignedIn()
219 main_wnd_->SwitchToPeerList(client_->peers()); in OnPeerConnected()
230 main_wnd_->SwitchToPeerList(client_->peers()); in OnPeerDisconnected()
244 client_->SignOut(); in OnMessageFromPeer()
271 client_->SignOut(); in OnMessageFromPeer()
342 if (client_->is_connected()) in StartLogin()
345 client_->Connect(server, port, GetPeerName()); in StartLogin()
[all …]
/external/tensorflow/tensorflow/compiler/tf2xla/
Dxla_expression_test.cc38 client_ = xla::ClientLibrary::LocalClientOrDie(); in SetUp()
51 xla::Client* client_; member in tensorflow::__anonbc43d2110111::XlaExpressionTest
88 client_->ComputeConstant(computation)); in TEST_F()
111 EXPECT_FALSE(XlaExpression().ResolveConstant(client_).ok()); in TEST_F()
112 EXPECT_FALSE(XlaExpression::Invalid().ResolveConstant(client_).ok()); in TEST_F()
114 XlaExpression::Resource(resource_.get()).ResolveConstant(client_).ok()); in TEST_F()
118 XlaExpression::XlaOp(op_, DT_INT32).ResolveConstant(client_)); in TEST_F()
124 .ResolveConstant(client_)); in TEST_F()
129 XlaExpression::Constant(constant_).ResolveConstant(client_)); in TEST_F()
/external/webrtc/webrtc/examples/peerconnection/client/linux/
Dmain.cc24 : thread_(thread), wnd_(wnd), conductor_(NULL), client_(NULL) {} in CustomSocketServer()
27 void set_client(PeerConnectionClient* client) { client_ = client; } in set_client()
41 client_ != NULL && !client_->is_connected()) { in Wait()
52 PeerConnectionClient* client_; member in CustomSocketServer
/external/tensorflow/tensorflow/compiler/xrt/
Dxrt_device.h46 xla::LocalClient* client() const { return client_; } in client()
47 xla::Backend* backend() { return client_->mutable_backend(); } in backend()
56 client_ = client; in Acquire()
60 xla::LocalClient* client_ = nullptr; variable
/external/libchrome/mojo/public/cpp/system/
Ddata_pipe_drainer.cc17 : client_(client), in DataPipeDrainer()
23 DCHECK(client_); in DataPipeDrainer()
37 client_->OnDataAvailable(buffer, num_bytes); in ReadData()
40 client_->OnDataComplete(); in ReadData()
/external/perfetto/src/ipc/
Dservice_proxy.cc35 if (client_ && connected()) in ~ServiceProxy()
36 client_->UnbindService(service_id_); in ~ServiceProxy()
43 client_ = std::move(client); in InitializeBinding()
57 if (!client_) in BeginInvoke()
65 static_cast<ClientImpl*>(client_.get()) in BeginInvoke()
/external/boringssl/src/ssl/
Dssl_test.cc1713 return ConnectClientAndServer(&client_, &server_, client_ctx_.get(), in Connect()
1725 bssl::UniquePtr<SSL> client_, server_; member in __anonab1f01db0111::SSLVersionTest
1742 ASSERT_TRUE(FlushNewSessionTickets(client_.get(), server_.get())); in TEST_P()
1744 uint64_t client_read_seq = SSL_get_read_sequence(client_.get()); in TEST_P()
1745 uint64_t client_write_seq = SSL_get_write_sequence(client_.get()); in TEST_P()
1767 EXPECT_EQ(SSL_write(client_.get(), &byte, 1), 1); in TEST_P()
1772 EXPECT_EQ(client_write_seq + 1, SSL_get_write_sequence(client_.get())); in TEST_P()
1785 ASSERT_EQ(SSL_shutdown(client_.get()), 0); in TEST_P()
1796 ASSERT_EQ(SSL_read(client_.get(), &byte, 1), 1); in TEST_P()
1801 EXPECT_EQ(SSL_shutdown(client_.get()), 1); in TEST_P()
[all …]

1234