Home
last modified time | relevance | path

Searched refs:gpr_malloc (Results 1 – 25 of 234) sorted by relevance

12345678910

/external/grpc-grpc/test/core/tsi/alts/frame_protector/
Dframe_handler_test.cc45 static_cast<frame_handler*>(gpr_malloc(sizeof(frame_handler))); in create_frame_handler()
66 static_cast<unsigned char*>(gpr_malloc(handler->buffer_size)); in frame()
101 static_cast<unsigned char*>(gpr_malloc(kFrameHandlerTestBufferSize)); in frame_n_deframe()
165 static_cast<unsigned char*>(gpr_malloc(kFrameHandlerTestBufferSize)); in frame_handler_test_bad_frame_length()
184 static_cast<unsigned char*>(gpr_malloc(kFrameHandlerTestBufferSize)); in frame_handler_test_unsupported_message_type()
210 static_cast<unsigned char*>(gpr_malloc(kFrameHandlerTestBufferSize)); in frame_handler_test_null_reader_byte_length()
223 static_cast<unsigned char*>(gpr_malloc(kFrameHandlerTestBufferSize)); in frame_handler_test_null_reader_bytes()
/external/grpc-grpc/src/core/lib/gpr/
Dalloc.cc31 void* p = gpr_malloc(sz); in zalloc_with_gpr_malloc()
53 void* gpr_malloc(size_t size) { in gpr_malloc() function
93 void* p = gpr_malloc(size + extra); in gpr_malloc_aligned()
Dstring_util_windows.cc48 ret = (LPTSTR)gpr_malloc((unsigned)needed * sizeof(TCHAR)); in gpr_char_to_tchar()
58 ret = (LPSTR)gpr_malloc((unsigned)needed); in gpr_tchar_to_char()
Dstring.cc46 dst = static_cast<char*>(gpr_malloc(len)); in gpr_strdup()
220 char* out = static_cast<char*>(gpr_malloc(out_length + 1)); in gpr_leftpad()
244 out = static_cast<char*>(gpr_malloc(out_length)); in gpr_strjoin_sep()
299 static_cast<char*>(gpr_malloc(static_cast<size_t>(end - beg) + 1)); in add_string_to_split()
/external/grpc-grpc/test/core/tsi/alts/crypt/
Dgsec_test_util.cc35 *bytes = static_cast<uint8_t*>(gpr_malloc(length)); in gsec_test_random_array()
51 *des = static_cast<uint8_t*>(gpr_malloc(source_len)); in gsec_test_copy()
62 *des = static_cast<uint8_t*>(gpr_malloc(source_len)); in gsec_test_copy_and_alter_random_byte()
Daes_gcm_test.cc98 static_cast<uint8_t*>(gpr_malloc(ciphertext_and_tag_length)); in gsec_test_random_encrypt_decrypt()
114 uint8_t* plaintext = static_cast<uint8_t*>(gpr_malloc(plaintext_length)); in gsec_test_random_encrypt_decrypt()
229 nonces = static_cast<uint8_t**>(gpr_malloc(sizeof(uint8_t*) * count)); in gsec_test_multiple_random_encrypt_decrypt()
230 aads = static_cast<uint8_t**>(gpr_malloc(sizeof(uint8_t*) * count)); in gsec_test_multiple_random_encrypt_decrypt()
231 messages = static_cast<uint8_t**>(gpr_malloc(sizeof(uint8_t*) * count)); in gsec_test_multiple_random_encrypt_decrypt()
247 static_cast<size_t*>(gpr_malloc(sizeof(size_t) * count)); in gsec_test_multiple_random_encrypt_decrypt()
249 static_cast<size_t*>(gpr_malloc(sizeof(size_t) * count)); in gsec_test_multiple_random_encrypt_decrypt()
251 static_cast<size_t*>(gpr_malloc(sizeof(size_t) * count)); in gsec_test_multiple_random_encrypt_decrypt()
253 static_cast<size_t*>(gpr_malloc(sizeof(size_t) * count)); in gsec_test_multiple_random_encrypt_decrypt()
255 static_cast<uint8_t**>(gpr_malloc(sizeof(uint8_t*) * count)); in gsec_test_multiple_random_encrypt_decrypt()
[all …]
/external/grpc-grpc/test/core/end2end/fuzzers/
Dapi_fuzzer.cc85 *buffer = static_cast<char*>(gpr_malloc(*length)); in read_buffer()
145 grpc_arg* args = static_cast<grpc_arg*>(gpr_malloc(sizeof(*args) * n)); in read_args()
172 static_cast<grpc_channel_args*>(gpr_malloc(sizeof(*a))); in read_args()
337 static_cast<grpc_resolved_addresses*>(gpr_malloc(sizeof(*addrs))); in finish_resolve()
340 gpr_malloc(sizeof(*addrs->addrs))); in finish_resolve()
364 addr_req* r = static_cast<addr_req*>(gpr_malloc(sizeof(*r))); in my_resolve_address()
382 addr_req* r = static_cast<addr_req*>(gpr_malloc(sizeof(*r))); in my_dns_lookup_ares_locked()
438 future_connect* fc = static_cast<future_connect*>(gpr_malloc(sizeof(*fc))); in sched_connect()
468 validator* v = static_cast<validator*>(gpr_malloc(sizeof(*v))); in create_validator()
491 static_cast<connectivity_watch*>(gpr_malloc(sizeof(*o))); in make_connectivity_watch()
[all …]
/external/grpc-grpc/test/core/util/
Dslice_splitter.cc49 gpr_malloc(sizeof(grpc_slice) * src_slice_count)); in grpc_split_slices()
61 *dst_slices = static_cast<grpc_slice*>(gpr_malloc(sizeof(grpc_slice))); in grpc_split_slices()
78 static_cast<grpc_slice*>(gpr_malloc(sizeof(grpc_slice) * length)); in grpc_split_slices()
/external/grpc-grpc/src/core/lib/iomgr/
Dtcp_uv.cc159 uv_buffers = (uv_buf_t*)gpr_malloc(sizeof(uv_buf_t) * write_slices->count); in uv_socket_write()
189 uv_tcp_t* tcp = (uv_tcp_t*)gpr_malloc(sizeof(uv_tcp_t)); in uv_socket_init_helper()
217 uv_socket_t* uv_socket = (uv_socket_t*)gpr_malloc(sizeof(uv_socket_t)); in uv_socket_init()
260 uv_socket_t* uv_new_socket = (uv_socket_t*)gpr_malloc(sizeof(uv_socket_t)); in accept_new_connection()
346 (grpc_resolved_addresses*)gpr_malloc(sizeof(grpc_resolved_addresses)); in handle_addrinfo_result()
351 addresses->addrs = (grpc_resolved_address*)gpr_malloc( in handle_addrinfo_result()
396 (uv_getaddrinfo_t*)gpr_malloc(sizeof(uv_getaddrinfo_t)); in uv_resolve_async()
Dresolve_address_windows.cc102 (grpc_resolved_addresses*)gpr_malloc(sizeof(grpc_resolved_addresses)); in windows_blocking_resolve_address()
107 (*addresses)->addrs = (grpc_resolved_address*)gpr_malloc( in windows_blocking_resolve_address()
153 request* r = (request*)gpr_malloc(sizeof(request)); in windows_resolve_address()
Dresolve_address_posix.cc120 gpr_malloc(sizeof(grpc_resolved_addresses))); in posix_blocking_resolve_address()
126 gpr_malloc(sizeof(grpc_resolved_address) * (*addresses)->naddrs)); in posix_blocking_resolve_address()
168 request* r = static_cast<request*>(gpr_malloc(sizeof(request))); in posix_resolve_address()
Dtcp_server_custom.cc82 grpc_tcp_server* s = (grpc_tcp_server*)gpr_malloc(sizeof(grpc_tcp_server)); in tcp_server_create()
206 (grpc_tcp_server_acceptor*)gpr_malloc(sizeof(*acceptor)); in finish_accept()
260 (grpc_custom_socket*)gpr_malloc(sizeof(grpc_custom_socket)); in custom_accept_callback()
354 (grpc_resolved_address*)gpr_malloc(sizeof(grpc_resolved_address)); in tcp_server_add_port()
388 socket = (grpc_custom_socket*)gpr_malloc(sizeof(grpc_custom_socket)); in tcp_server_add_port()
430 (grpc_custom_socket*)gpr_malloc(sizeof(grpc_custom_socket)); in tcp_server_start()
Dunix_sockets_posix.cc57 gpr_malloc(sizeof(grpc_resolved_addresses))); in grpc_resolve_unix_domain_address()
60 gpr_malloc(sizeof(grpc_resolved_address))); in grpc_resolve_unix_domain_address()
/external/grpc-grpc/test/core/gpr/
Dalloc_test.cc42 GPR_ASSERT((void*)(size_t)0xdeadbeef == gpr_malloc(0xdeadbeef)); in test_custom_allocs()
51 (i = static_cast<char*>(gpr_malloc(sizeof(*i))))); in test_custom_allocs()
/external/grpc-grpc/test/core/iomgr/
Dtcp_client_uv_test.cc77 static_cast<uv_tcp_t*>(gpr_malloc(sizeof(uv_tcp_t))); in connection_cb()
87 uv_tcp_t* svr_handle = static_cast<uv_tcp_t*>(gpr_malloc(sizeof(uv_tcp_t))); in test_succeeds()
192 g_pollset = static_cast<grpc_pollset*>(gpr_malloc(grpc_pollset_size())); in main()
Dtimer_heap_test.cc36 static_cast<grpc_timer*>(gpr_malloc(num_elements * sizeof(grpc_timer))); in create_test_elements()
76 uint8_t* inpq = static_cast<uint8_t*>(gpr_malloc(num_test_elements)); in test1()
137 static_cast<size_t*>(gpr_malloc(count * sizeof(*search_order))); in search_elems()
163 static_cast<elem_struct*>(gpr_malloc(elems_size * sizeof(elem_struct))); in test2()
/external/grpc-grpc/test/core/client_channel/resolvers/
Ddns_resolver_connectivity_test.cc51 *addrs = static_cast<grpc_resolved_addresses*>(gpr_malloc(sizeof(**addrs))); in my_resolve_address()
54 gpr_malloc(sizeof(*(*addrs)->addrs))); in my_resolve_address()
134 next_args* a = static_cast<next_args*>(gpr_malloc(sizeof(*a))); in call_resolver_next_after_locking()
/external/grpc-grpc/src/core/lib/channel/
Dchannel_args.cc90 static_cast<grpc_channel_args*>(gpr_malloc(sizeof(grpc_channel_args))); in grpc_channel_args_copy_and_add_and_remove()
97 static_cast<grpc_arg*>(gpr_malloc(sizeof(grpc_arg) * dst->num_args)); in grpc_channel_args_copy_and_add_and_remove()
123 static_cast<grpc_arg*>(gpr_malloc(sizeof(*uniques) * max_out)); in grpc_channel_args_union()
175 static_cast<grpc_arg**>(gpr_malloc(sizeof(grpc_arg*) * a->num_args)); in grpc_channel_args_normalize()
183 static_cast<grpc_channel_args*>(gpr_malloc(sizeof(grpc_channel_args))); in grpc_channel_args_normalize()
185 b->args = static_cast<grpc_arg*>(gpr_malloc(sizeof(grpc_arg) * b->num_args)); in grpc_channel_args_normalize()
/external/grpc-grpc/test/core/transport/
Dmetadata_test.cc116 static_cast<grpc_mdelem*>(gpr_malloc(sizeof(grpc_mdelem) * MANY)); in test_create_many_persistant_metadata()
223 static_cast<grpc_slice*>(gpr_malloc(sizeof(grpc_slice) * nstrs)); in test_things_stick_around()
224 size_t* shuf = static_cast<size_t*>(gpr_malloc(sizeof(size_t) * nstrs)); in test_things_stick_around()
277 ud1 = static_cast<int*>(gpr_malloc(sizeof(int))); in test_user_data_works()
279 ud2 = static_cast<int*>(gpr_malloc(sizeof(int))); in test_user_data_works()
/external/grpc-grpc/src/core/ext/filters/client_channel/lb_policy/grpclb/
Dload_balancer_api.cc66 gpr_malloc(sizeof(grpc_grpclb_request))); in grpc_grpclb_request_create()
180 gpr_malloc(sizeof(grpc_grpclb_initial_response))); in grpc_grpclb_initial_response_parse()
243 gpr_malloc(sizeof(grpc_grpclb_server*) * sl->num_servers)); in grpc_grpclb_serverlist_copy()
246 gpr_malloc(sizeof(grpc_grpclb_server))); in grpc_grpclb_serverlist_copy()
/external/grpc-grpc/src/core/tsi/alts/frame_protector/
Dalts_counter.cc29 *dst = static_cast<char*>(gpr_malloc(strlen(src) + 1)); in maybe_copy_error_msg()
55 static_cast<alts_counter*>(gpr_malloc(sizeof(**crypter_counter))); in alts_counter_create()
Dalts_record_protocol_crypter_common.cc27 *dst = static_cast<char*>(gpr_malloc(strlen(src) + 1)); in maybe_copy_error_msg()
95 gpr_malloc(sizeof(alts_record_protocol_crypter))); in alts_crypter_create_common()
/external/grpc-grpc/src/core/lib/surface/
Dbyte_buffer.cc39 static_cast<grpc_byte_buffer*>(gpr_malloc(sizeof(grpc_byte_buffer))); in grpc_raw_compressed_byte_buffer_create()
53 static_cast<grpc_byte_buffer*>(gpr_malloc(sizeof(grpc_byte_buffer))); in grpc_raw_byte_buffer_from_reader()
/external/grpc-grpc/test/core/network_benchmarks/
Dlow_level_ping_pong.cc256 char* buf = static_cast<char*>(gpr_malloc(args->msg_size)); in server_thread()
295 char* buf = static_cast<char*>(gpr_malloc(args->msg_size * sizeof(char))); in client_thread()
604 static_cast<thread_args*>(gpr_malloc(sizeof(thread_args))); in run_all_benchmarks()
606 static_cast<thread_args*>(gpr_malloc(sizeof(thread_args))); in run_all_benchmarks()
630 static_cast<thread_args*>(gpr_malloc(sizeof(thread_args))); in main()
632 static_cast<thread_args*>(gpr_malloc(sizeof(thread_args))); in main()
/external/grpc-grpc/test/core/channel/
Dchannel_args_test.cc158 fake_class* new_fc = static_cast<fake_class*>(gpr_malloc(sizeof(fake_class))); in fake_pointer_arg_copy()
188 fake_class* fc = static_cast<fake_class*>(gpr_malloc(sizeof(fake_class))); in test_channel_create_with_args()
218 fake_class* fc = static_cast<fake_class*>(gpr_malloc(sizeof(fake_class))); in test_server_create_with_args()

12345678910