Home
last modified time | relevance | path

Searched refs:outbuf (Results 1 – 25 of 96) sorted by relevance

1234

/external/chromium_org/native_client_sdk/src/tests/nacl_io_socket_test/
Dsocket_test.cc223 char outbuf[256]; in TEST_F() local
226 memset(outbuf, 1, sizeof(outbuf)); in TEST_F()
237 ki_sendto(sock1_, outbuf, sizeof(outbuf), 0, (sockaddr*) &addr, addrlen); in TEST_F()
238 EXPECT_EQ(sizeof(outbuf), len1); in TEST_F()
241 EXPECT_NE(0, memcmp(outbuf, inbuf, sizeof(outbuf))); in TEST_F()
247 EXPECT_EQ(sizeof(outbuf), len2); in TEST_F()
252 EXPECT_EQ(0, memcmp(outbuf, inbuf, sizeof(outbuf))); in TEST_F()
256 char outbuf[256]; in TEST_F() local
259 memset(outbuf, 1, sizeof(outbuf)); in TEST_F()
279 ki_sendto(sock1_, outbuf, sizeof(outbuf), 0, (sockaddr*) &addr2, addrlen); in TEST_F()
[all …]
/external/libopus/tests/
Dtest_opus_decode.c65 short *outbuf; in test_decoder_code0() local
74 outbuf=&outbuf_int[8*2]; in test_decoder_code0()
109 out_samples = opus_decode(dec[t], 0, 0, outbuf, 120/factor, fec); in test_decoder_code0()
115 out_samples = opus_decode(dec[t], 0, 0, outbuf, 120/factor+2, fec); in test_decoder_code0()
119 out_samples = opus_decode(dec[t], 0, -1, outbuf, 120/factor, fec); in test_decoder_code0()
121 out_samples = opus_decode(dec[t], 0, 1, outbuf, 120/factor, fec); in test_decoder_code0()
123 out_samples = opus_decode(dec[t], 0, 10, outbuf, 120/factor, fec); in test_decoder_code0()
125 out_samples = opus_decode(dec[t], 0, fast_rand(), outbuf, 120/factor, fec); in test_decoder_code0()
131 out_samples = opus_decode(dec[t], packet, 0, outbuf, 120/factor, fec); in test_decoder_code0()
135 outbuf[0]=32749; in test_decoder_code0()
[all …]
/external/chromium_org/third_party/opus/src/tests/
Dtest_opus_decode.c65 short *outbuf; in test_decoder_code0() local
74 outbuf=&outbuf_int[8*2]; in test_decoder_code0()
109 out_samples = opus_decode(dec[t], 0, 0, outbuf, 120/factor, fec); in test_decoder_code0()
115 out_samples = opus_decode(dec[t], 0, 0, outbuf, 120/factor+2, fec); in test_decoder_code0()
119 out_samples = opus_decode(dec[t], 0, -1, outbuf, 120/factor, fec); in test_decoder_code0()
121 out_samples = opus_decode(dec[t], 0, 1, outbuf, 120/factor, fec); in test_decoder_code0()
123 out_samples = opus_decode(dec[t], 0, 10, outbuf, 120/factor, fec); in test_decoder_code0()
125 out_samples = opus_decode(dec[t], 0, fast_rand(), outbuf, 120/factor, fec); in test_decoder_code0()
131 out_samples = opus_decode(dec[t], packet, 0, outbuf, 120/factor, fec); in test_decoder_code0()
135 outbuf[0]=32749; in test_decoder_code0()
[all …]
/external/openssl/crypto/des/
Denc_writ.c93 static unsigned char *outbuf=NULL; in DES_enc_write()
99 if (outbuf == NULL) in DES_enc_write()
101 outbuf=OPENSSL_malloc(BSIZE+HDRSIZE); in DES_enc_write()
102 if (outbuf == NULL) return(-1); in DES_enc_write()
128 p=outbuf; in DES_enc_write()
146 DES_pcbc_encrypt(cp,&(outbuf[HDRSIZE]),(len<8)?8:len,sched,iv, in DES_enc_write()
149 DES_cbc_encrypt(cp,&(outbuf[HDRSIZE]),(len<8)?8:len,sched,iv, in DES_enc_write()
160 i=write(fd,(void *)&(outbuf[j]),outnum-j); in DES_enc_write()
162 i=_write(fd,(void *)&(outbuf[j]),outnum-j); in DES_enc_write()
/external/apache-harmony/crypto/src/test/impl/java.injected/org/apache/harmony/crypto/internal/
DNullCipherSpiTest.java112 ByteBuffer outbuf = ByteBuffer.allocate(6); in testEngineUpdateByteBufferByteBuffer() local
115 spi.engineUpdate(null, outbuf); in testEngineUpdateByteBufferByteBuffer()
130 int result = spi.engineUpdate(inbuf, outbuf); in testEngineUpdateByteBufferByteBuffer()
133 assertEquals("incorrect outbuf", i + 4, outbuf.get(i)); in testEngineUpdateByteBufferByteBuffer()
137 outbuf = ByteBuffer.allocate(5); in testEngineUpdateByteBufferByteBuffer()
143 spi.engineUpdate(inbuf, outbuf); in testEngineUpdateByteBufferByteBuffer()
157 ByteBuffer outbuf = ByteBuffer.allocate(6); in testEngineDoFinalByteBufferByteBuffer() local
160 spi.engineDoFinal(null, outbuf); in testEngineDoFinalByteBufferByteBuffer()
175 int result = spi.engineDoFinal(inbuf, outbuf); in testEngineDoFinalByteBufferByteBuffer()
178 assertEquals("incorrect outbuf", i + 4, outbuf.get(i)); in testEngineDoFinalByteBufferByteBuffer()
[all …]
/external/valgrind/main/callgrind/
Ddump.c58 static HChar outbuf[FILENAME_LEN + FN_NAME_LEN + OBJ_NAME_LEN + COSTS_LEN]; variable
348 VG_(sprintf)(outbuf, "rec=%d\n\n", bbcc->rec_index); in print_fn_pos()
349 my_fwrite(fd, outbuf, VG_(strlen)(outbuf)); in print_fn_pos()
363 VG_(sprintf)(outbuf, "frfn=(spontaneous)\n"); in print_fn_pos()
364 my_fwrite(fd, outbuf, VG_(strlen)(outbuf)); in print_fn_pos()
369 print_fn(fd,outbuf,"frfn", curr_from); in print_fn_pos()
377 VG_(sprintf)(outbuf, "ob="); in print_fn_pos()
378 print_obj(outbuf+3, bbcc->cxt->fn[0]->file->obj); in print_fn_pos()
379 my_fwrite(fd, outbuf, VG_(strlen)(outbuf)); in print_fn_pos()
385 VG_(sprintf)(outbuf, "fl="); in print_fn_pos()
[all …]
/external/llvm/test/Transforms/GVN/
Dlpre-call-wrap-2.ll6 ; void bi_windup(unsigned char *outbuf, unsigned char bi_buf) {
7 ; outbuf[outcnt] = bi_buf;
10 ; outbuf[outcnt] = bi_buf;
16 define void @bi_windup(i8* %outbuf, i8 zeroext %bi_buf) nounwind {
20 %1 = getelementptr i8* %outbuf, i32 %0 ; <i8*> [#uses=1]
35 %5 = getelementptr i8* %outbuf, i32 %4 ; <i8*> [#uses=1]
/external/chromium_org/third_party/libvpx/source/libvpx/examples/
Dresize_util.c44 uint8_t *inbuf, *outbuf; in main() local
96 outbuf = (uint8_t*)malloc(target_width * target_height * 3 / 2); in main()
99 outbuf_u = outbuf + target_width * target_height; in main()
107 outbuf, target_width, outbuf_u, outbuf_v, in main()
110 fwrite(outbuf, target_width * target_height * 3 / 2, 1, fpout); in main()
118 free(outbuf); in main()
/external/libvpx/libvpx/examples/
Dresize_util.c44 uint8_t *inbuf, *outbuf; in main() local
96 outbuf = (uint8_t*)malloc(target_width * target_height * 3 / 2); in main()
99 outbuf_u = outbuf + target_width * target_height; in main()
107 outbuf, target_width, outbuf_u, outbuf_v, in main()
110 fwrite(outbuf, target_width * target_height * 3 / 2, 1, fpout); in main()
118 free(outbuf); in main()
/external/qemu/
Dmonitor-android.c12 uint8_t outbuf[1024]; member
75 mon->fake_func(mon->fake_opaque, (void*)mon->outbuf, mon->outbuf_index); in monitor_flush()
79 qemu_chr_write(mon->chr, mon->outbuf, mon->outbuf_index); in monitor_flush()
97 mon->outbuf[mon->outbuf_index++] = '\r'; in monitor_puts()
98 mon->outbuf[mon->outbuf_index++] = c; in monitor_puts()
99 if (mon->outbuf_index >= (sizeof(mon->outbuf) - 1) in monitor_puts()
/external/chromium_org/third_party/webrtc/base/
Dschanneladapter.cc85 SChannelBuffer inbuf, outbuf, readable; member
257 impl_->outbuf.insert(impl_->outbuf.end(), in ProcessContext()
431 SChannelBuffer& outbuf = impl_->outbuf; in Flush() local
432 while (pos < outbuf.size()) { in Flush()
433 int sent = AsyncSocketAdapter::Send(&outbuf[pos], outbuf.size() - pos); in Flush()
443 if (int remainder = static_cast<int>(outbuf.size() - pos)) { in Flush()
444 memmove(&outbuf[0], &outbuf[pos], remainder); in Flush()
445 outbuf.resize(remainder); in Flush()
447 outbuf.clear(); in Flush()
476 SChannelBuffer& outbuf = impl_->outbuf; in Send() local
[all …]
/external/chromium-trace/trace-viewer/third_party/gl-matrix/tasks/support/gl-matrix/
Drelease_helper.rb94 outbuf = ''
97 outbuf = `#{cmd}`
99 block.call(outbuf) if block
102 [outbuf, $?]
/external/wpa_supplicant_8/src/eap_peer/
Deap_pwd.c33 struct wpabuf *outbuf; member
134 data->inbuf = data->outbuf = NULL; in eap_pwd_init()
169 wpabuf_free(data->outbuf); in eap_pwd_deinit()
277 data->outbuf = wpabuf_alloc(sizeof(struct eap_pwd_id) + in eap_pwd_perform_id_exchange()
279 if (data->outbuf == NULL) { in eap_pwd_perform_id_exchange()
283 wpabuf_put_be16(data->outbuf, data->group_num); in eap_pwd_perform_id_exchange()
284 wpabuf_put_u8(data->outbuf, EAP_PWD_DEFAULT_RAND_FUNC); in eap_pwd_perform_id_exchange()
285 wpabuf_put_u8(data->outbuf, EAP_PWD_DEFAULT_PRF); in eap_pwd_perform_id_exchange()
286 wpabuf_put_data(data->outbuf, id->token, sizeof(id->token)); in eap_pwd_perform_id_exchange()
287 wpabuf_put_u8(data->outbuf, EAP_PWD_PREP_NONE); in eap_pwd_perform_id_exchange()
[all …]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
Du_upload_mgr.c160 struct pipe_resource **outbuf, in u_upload_alloc() argument
171 pipe_resource_reference(outbuf, NULL); in u_upload_alloc()
206 pipe_resource_reference( outbuf, upload->buffer ); in u_upload_alloc()
218 struct pipe_resource **outbuf) in u_upload_data() argument
222 out_offset, outbuf, in u_upload_data()
243 struct pipe_resource **outbuf) in u_upload_buffer() argument
267 outbuf); in u_upload_buffer()
Du_upload_mgr.h95 struct pipe_resource **outbuf,
110 struct pipe_resource **outbuf);
125 struct pipe_resource **outbuf);
/external/mesa3d/src/gallium/auxiliary/util/
Du_upload_mgr.c160 struct pipe_resource **outbuf, in u_upload_alloc() argument
171 pipe_resource_reference(outbuf, NULL); in u_upload_alloc()
206 pipe_resource_reference( outbuf, upload->buffer ); in u_upload_alloc()
218 struct pipe_resource **outbuf) in u_upload_data() argument
222 out_offset, outbuf, in u_upload_data()
243 struct pipe_resource **outbuf) in u_upload_buffer() argument
267 outbuf); in u_upload_buffer()
Du_upload_mgr.h95 struct pipe_resource **outbuf,
110 struct pipe_resource **outbuf);
125 struct pipe_resource **outbuf);
/external/qemu/distrib/sdl-1.2.15/src/stdlib/
DSDL_iconv.c44 char **outbuf, size_t *outbytesleft) in SDL_iconv() argument
48 retCode = iconv(cd, (char **)inbuf, inbytesleft, outbuf, outbytesleft); in SDL_iconv()
50 retCode = iconv(cd, inbuf, inbytesleft, outbuf, outbytesleft); in SDL_iconv()
209 char **outbuf, size_t *outbytesleft) in SDL_iconv() argument
222 if ( !outbuf || !*outbuf || !outbytesleft || !*outbytesleft ) { in SDL_iconv()
227 dst = *outbuf; in SDL_iconv()
798 *outbuf = dst; in SDL_iconv()
820 char *outbuf; in SDL_iconv_string() local
845 outbuf = string; in SDL_iconv_string()
847 SDL_memset(outbuf, 0, 4); in SDL_iconv_string()
[all …]
/external/e2fsprogs/misc/
Dlogsave.c36 static void *outbuf = 0; variable
108 n = realloc(outbuf, outbufsize + c); in send_output()
110 outbuf = n; in send_output()
111 memcpy(((char *)outbuf)+outbufsize, buffer, c); in send_output()
309 if (outbuf) { in main()
326 write_all(outfd, outbuf, outbufsize); in main()
327 free(outbuf); in main()
/external/bzip2/
Dunzcrash.c41 uchar outbuf[M_BLOCK_OUT]; variable
107 outbuf, &nOut, zbuf, nZ, 0, 0 ); in main()
118 if (inbuf[i] != outbuf[i]) { in main()
132 if (inbuf[i] != outbuf[i]) { in main()
/external/wpa_supplicant_8/src/eap_server/
Deap_server_pwd.c33 struct wpabuf *outbuf; member
126 data->inbuf = data->outbuf = NULL; in eap_pwd_init()
156 wpabuf_free(data->outbuf); in eap_pwd_reset()
171 data->outbuf = wpabuf_alloc(sizeof(struct eap_pwd_id) + in eap_pwd_build_id_req()
173 if (data->outbuf == NULL) { in eap_pwd_build_id_req()
180 wpabuf_put_be16(data->outbuf, data->group_num); in eap_pwd_build_id_req()
181 wpabuf_put_u8(data->outbuf, EAP_PWD_DEFAULT_RAND_FUNC); in eap_pwd_build_id_req()
182 wpabuf_put_u8(data->outbuf, EAP_PWD_DEFAULT_PRF); in eap_pwd_build_id_req()
183 wpabuf_put_data(data->outbuf, &data->token, sizeof(data->token)); in eap_pwd_build_id_req()
184 wpabuf_put_u8(data->outbuf, EAP_PWD_PREP_NONE); in eap_pwd_build_id_req()
[all …]
/external/chromium_org/third_party/libevent/
Dbuffer.c100 evbuffer_add_buffer(struct evbuffer *outbuf, struct evbuffer *inbuf) in evbuffer_add_buffer() argument
105 if (outbuf->off == 0) { in evbuffer_add_buffer()
110 SWAP(&tmp, outbuf); in evbuffer_add_buffer()
111 SWAP(outbuf, inbuf); in evbuffer_add_buffer()
121 if (oldoff && outbuf->cb != NULL) in evbuffer_add_buffer()
122 (*outbuf->cb)(outbuf, 0, oldoff, outbuf->cbarg); in evbuffer_add_buffer()
127 res = evbuffer_add(outbuf, inbuf->buffer, inbuf->off); in evbuffer_add_buffer()
/external/eigen/bench/
DbenchFFT.cpp50 vector<Complex > outbuf(nfft); in bench() local
64 fft.fwd( outbuf , inbuf); in bench()
72 fft.fwd( outbuf , inbuf); in bench()
75 fft.inv(inbuf,outbuf); in bench()
/external/compiler-rt/test/msan/
Diconv.cc19 char *outbuf = outbuf_; in main() local
35 res = iconv(cd, 0, 0, &outbuf, &outbytesleft); in main()
38 res = iconv(cd, &inbuf, &inbytesleft, &outbuf, &outbytesleft); in main()
/external/wpa_supplicant_8/src/crypto/
Dtls_schannel.c216 SecBufferDesc outbuf; in tls_conn_hs_clienthello() local
233 outbuf.cBuffers = 1; in tls_conn_hs_clienthello()
234 outbuf.pBuffers = outbufs; in tls_conn_hs_clienthello()
235 outbuf.ulVersion = SECBUFFER_VERSION; in tls_conn_hs_clienthello()
241 &outbuf, &sspi_flags_out, &ts_expiry); in tls_conn_hs_clienthello()
246 &outbuf, &sspi_flags_out, &ts_expiry); in tls_conn_hs_clienthello()
318 SecBufferDesc inbuf, outbuf; in tls_connection_handshake() local
358 outbuf.cBuffers = 1; in tls_connection_handshake()
359 outbuf.pBuffers = outbufs; in tls_connection_handshake()
360 outbuf.ulVersion = SECBUFFER_VERSION; in tls_connection_handshake()
[all …]

1234