/external/chromium-trace/catapult/telemetry/third_party/web-page-replay/ |
D | proxyshaper_test.py | 61 num_bytes = 1024 64 f = StringIO.StringIO(' ' * num_bytes) 67 self.assertEqual(num_bytes, len(limited_f.read())) 68 expected_ms = 8.0 * num_bytes / bps * 1000.0 73 num_bytes = 1024 * 8 + 512 76 f = StringIO.StringIO(' ' * num_bytes) 79 self.assertEqual(num_bytes, len(limited_f.readline())) 80 expected_ms = 8.0 * num_bytes / bps * 1000.0 85 num_bytes = 1024 89 f = StringIO.StringIO(' ' * num_bytes) [all …]
|
D | proxyshaper.py | 62 def transfer_seconds(self, num_bytes): argument 64 return 8.0 * num_bytes / self.bps 67 num_bytes = len(data) 69 while num_sent_bytes < num_bytes: 70 num_write_bytes = min(self.BYTES_PER_WRITE, num_bytes - num_sent_bytes) 84 num_bytes = len(data) 86 wait = self.transfer_seconds(num_bytes) * num_requests - read_seconds
|
D | trafficshaper_test.py | 158 def GetTcpSendTimeMs(self, num_bytes): argument 163 request_data = '\x00' * num_bytes 171 def GetTcpReceiveTimeMs(self, num_bytes): argument 175 s.sendall('%s%s\n' % (RESPONSE_SIZE_KEY, num_bytes)) 178 num_remaining_bytes = num_bytes 205 num_bytes = 1024 * 100 207 expected_ms = 8.0 * num_bytes / bandwidth_kbits 210 self.assertValuesAlmostEqual(expected_ms, self.GetTcpSendTimeMs(num_bytes)) 217 num_bytes = 1024 * 100 219 expected_ms = 8.0 * num_bytes / bandwidth_kbits [all …]
|
/external/lldb/source/Host/common/ |
D | File.cpp | 472 File::Read (void *buf, size_t &num_bytes) in Read() argument 480 bytes_read = ::read (m_descriptor, buf, num_bytes); in Read() 486 num_bytes = 0; in Read() 489 num_bytes = bytes_read; in Read() 493 bytes_read = ::fread (buf, 1, num_bytes, m_stream); in Read() 501 num_bytes = 0; in Read() 504 num_bytes = bytes_read; in Read() 508 num_bytes = 0; in Read() 515 File::Write (const void *buf, size_t &num_bytes) in Write() argument 523 bytes_written = ::write (m_descriptor, buf, num_bytes); in Write() [all …]
|
/external/tpm2/ |
D | marshal_test.c | 30 const uint16_t num_bytes = sizeof(type); \ 31 INT32 size = num_bytes; \ 37 const uint16_t num_bytes = sizeof(type); \ 38 INT32 size = num_bytes; \ 47 size = num_bytes; 52 size = num_bytes; 84 CHECK_EQ(bytes_marshalled, num_bytes) in BasicTypesSuccessTest() 86 CHECK_EQ(buffer_ptr, buffer+num_bytes) in BasicTypesSuccessTest() 92 CHECK_EQ(buffer_ptr, buffer+num_bytes); in BasicTypesSuccessTest() 102 CHECK_EQ(size, num_bytes-1); in BasicTypesFailureTest() [all …]
|
/external/libhevc/common/ |
D | ihevc_mem_fns.c | 75 void ihevc_memcpy(UWORD8 *pu1_dst, UWORD8 *pu1_src, UWORD32 num_bytes) in ihevc_memcpy() argument 77 memcpy(pu1_dst, pu1_src, num_bytes); in ihevc_memcpy() 81 void ihevc_memcpy_mul_8(UWORD8 *pu1_dst, UWORD8 *pu1_src, UWORD32 num_bytes) in ihevc_memcpy_mul_8() argument 83 memcpy(pu1_dst, pu1_src, num_bytes); in ihevc_memcpy_mul_8() 111 void ihevc_memset(UWORD8 *pu1_dst, UWORD8 value, UWORD32 num_bytes) in ihevc_memset() argument 113 memset(pu1_dst, value, num_bytes); in ihevc_memset() 117 void ihevc_memset_mul_8(UWORD8 *pu1_dst, UWORD8 value, UWORD32 num_bytes) in ihevc_memset_mul_8() argument 119 memset(pu1_dst, value, num_bytes); in ihevc_memset_mul_8()
|
D | ihevc_mem_fns.h | 37 typedef void ihevc_memcpy_ft(UWORD8 *pu1_dst, UWORD8 *pu1_src, UWORD32 num_bytes); 39 typedef void ihevc_memcpy_mul_8_ft(UWORD8 *pu1_dst, UWORD8 *pu1_src, UWORD32 num_bytes); 64 typedef void ihevc_memset_ft(UWORD8 *pu1_dst, UWORD8 value, UWORD32 num_bytes); 66 typedef void ihevc_memset_mul_8_ft(UWORD8 *pu1_dst, UWORD8 value, UWORD32 num_bytes);
|
/external/libavc/common/ |
D | ih264_mem_fns.c | 85 void ih264_memcpy(UWORD8 *pu1_dst, UWORD8 *pu1_src, UWORD32 num_bytes) in ih264_memcpy() argument 87 memcpy(pu1_dst, pu1_src, num_bytes); in ih264_memcpy() 91 void ih264_memcpy_mul_8(UWORD8 *pu1_dst, UWORD8 *pu1_src, UWORD32 num_bytes) in ih264_memcpy_mul_8() argument 93 memcpy(pu1_dst, pu1_src, num_bytes); in ih264_memcpy_mul_8() 121 void ih264_memset(UWORD8 *pu1_dst, UWORD8 value, UWORD32 num_bytes) in ih264_memset() argument 123 memset(pu1_dst, value, num_bytes); in ih264_memset() 127 void ih264_memset_mul_8(UWORD8 *pu1_dst, UWORD8 value, UWORD32 num_bytes) in ih264_memset_mul_8() argument 129 memset(pu1_dst, value, num_bytes); in ih264_memset_mul_8()
|
D | ih264_mem_fns.h | 39 typedef void ih264_memcpy_ft(UWORD8 *pu1_dst, UWORD8 *pu1_src, UWORD32 num_bytes); 41 typedef void ih264_memcpy_mul_8_ft(UWORD8 *pu1_dst, UWORD8 *pu1_src, UWORD32 num_bytes); 66 typedef void ih264_memset_ft(UWORD8 *pu1_dst, UWORD8 value, UWORD32 num_bytes); 68 typedef void ih264_memset_mul_8_ft(UWORD8 *pu1_dst, UWORD8 value, UWORD32 num_bytes);
|
/external/libchrome/crypto/ |
D | rsa_private_key.cc | 176 int num_bytes, in PrependInteger() argument 178 PrependIntegerImpl(val, num_bytes, data, big_endian_); in PrependInteger() 182 int num_bytes, in PrependIntegerImpl() argument 188 tmp.assign(val, val + num_bytes); in PrependIntegerImpl() 196 while (start < (num_bytes - 1) && val[start] == 0x00) { in PrependIntegerImpl() 198 num_bytes--; in PrependIntegerImpl() 200 PrependBytes(val, start, num_bytes, data); in PrependIntegerImpl() 209 num_bytes++; in PrependIntegerImpl() 212 PrependTypeHeaderAndLength(kIntegerTag, num_bytes, data); in PrependIntegerImpl() 276 int num_bytes, in PrependBytes() argument [all …]
|
/external/libjpeg-turbo/ |
D | jdatasrc-tj.c | 106 skip_input_data (j_decompress_ptr cinfo, long num_bytes) in skip_input_data() argument 114 if (num_bytes > 0) { in skip_input_data() 115 while (num_bytes > (long) src->bytes_in_buffer) { in skip_input_data() 116 num_bytes -= (long) src->bytes_in_buffer; in skip_input_data() 122 src->next_input_byte += (size_t) num_bytes; in skip_input_data() 123 src->bytes_in_buffer -= (size_t) num_bytes; in skip_input_data()
|
D | jdatasrc.c | 162 skip_input_data (j_decompress_ptr cinfo, long num_bytes) in skip_input_data() argument 170 if (num_bytes > 0) { in skip_input_data() 171 while (num_bytes > (long) src->bytes_in_buffer) { in skip_input_data() 172 num_bytes -= (long) src->bytes_in_buffer; in skip_input_data() 178 src->next_input_byte += (size_t) num_bytes; in skip_input_data() 179 src->bytes_in_buffer -= (size_t) num_bytes; in skip_input_data()
|
/external/valgrind/memcheck/tests/vbit-test/ |
D | valgrind.c | 66 unsigned rc, num_bytes; in valgrind_set_vbits() local 69 num_bytes = opnd->type == Ity_I1 ? 4 : sizeof_irtype(opnd->type); in valgrind_set_vbits() 70 rc = VALGRIND_SET_VBITS(&opnd->value, &opnd->vbits.bits, num_bytes); in valgrind_set_vbits() 75 rc = VALGRIND_GET_VBITS(&opnd->value, &actual.bits, num_bytes); in valgrind_set_vbits() 85 unsigned rc, num_bytes; in valgrind_get_vbits() local 89 num_bytes = opnd->type == Ity_I1 ? 4 : sizeof_irtype(opnd->type); in valgrind_get_vbits() 91 rc = VALGRIND_GET_VBITS(&opnd->value, &opnd->vbits.bits, num_bytes); in valgrind_get_vbits()
|
/external/ceres-solver/internal/ceres/ |
D | file.cc | 61 int num_bytes = ftell(file_descriptor); in ReadFileToStringOrDie() local 62 data->resize(num_bytes); in ReadFileToStringOrDie() 68 num_bytes, in ReadFileToStringOrDie() 70 if (num_read != num_bytes) { in ReadFileToStringOrDie() 72 << "expected bytes: " << num_bytes * sizeof((*data)[0]) in ReadFileToStringOrDie()
|
/external/valgrind/tests/ |
D | s390x_features.c | 118 size_t num_bytes, file_buf_size; in get_host() local 130 num_bytes = 0; in get_host() 138 num_bytes += n; in get_host() 142 if (n < 0) num_bytes = 0; /* read error; ignore contents */ in get_host() 144 if (num_bytes > file_buf_size) { in get_host() 147 file_buf = malloc(num_bytes + 1); in get_host() 148 n = read(fh, file_buf, num_bytes); in get_host() 149 if (n < 0) num_bytes = 0; in get_host() 152 file_buf[num_bytes] = '\0'; in get_host()
|
/external/libavc/common/arm/ |
D | ih264_mem_fns_neon.s | 60 @* @param[in] num_bytes 71 @ UWORD8 num_bytes) 75 @ r2 => num_bytes 100 @ UWORD8 num_bytes) 104 @ r2 => num_bytes 138 @ UWORD8 num_bytes) 142 @ r2 => num_bytes 168 @ UWORD8 num_bytes) 172 @ r2 => num_bytes
|
/external/toybox/toys/other/ |
D | pwdx.c | 24 int num_bytes; in pwdx_main() local 27 num_bytes = readlink(path, toybuf, sizeof(toybuf)-1); in pwdx_main() 30 if (num_bytes==-1) { in pwdx_main() 35 toybuf[num_bytes] = 0; in pwdx_main()
|
/external/chromium-trace/catapult/third_party/gsutil/gslib/commands/ |
D | du.py | 141 def _PrintSummaryLine(self, num_bytes, name): argument 142 size_string = (MakeHumanReadable(num_bytes) 143 if self.human_readable else str(num_bytes)) 164 num_bytes = 0 170 num_bytes = obj.size 179 return (num_objs, num_bytes) 229 def _PrintDirectory(num_bytes, name): argument 231 self._PrintSummaryLine(num_bytes, name)
|
/external/libhevc/common/arm/ |
D | ihevc_mem_fns.s | 66 @ UWORD8 num_bytes) 70 @ r2 => num_bytes 98 @ UWORD8 num_bytes) 102 @ r2 => num_bytes 137 @ UWORD8 num_bytes) 141 @ r2 => num_bytes 169 @ UWORD8 num_bytes) 173 @ r2 => num_bytes
|
/external/chromium-trace/catapult/third_party/gsutil/gslib/ |
D | ls_helper.py | 64 def PrintDirSummary(num_bytes, bucket_listing_ref): argument 151 num_bytes = 0 194 num_bytes += nb 195 return num_dirs, num_objects, num_bytes 211 num_bytes = 0 243 num_bytes += nb 245 return num_dirs, num_objects, num_bytes
|
/external/lldb/source/DataFormatters/ |
D | CF.cpp | 151 uint64_t num_bytes = count / 8 + ((count & 7) ? 1 : 0); in CFBitVectorSummaryProvider() local 156 if (num_bytes > 1024) in CFBitVectorSummaryProvider() 157 num_bytes = 1024; in CFBitVectorSummaryProvider() 158 DataBufferSP buffer_sp(new DataBufferHeap(num_bytes,0)); in CFBitVectorSummaryProvider() 159 num_bytes = process_sp->ReadMemory(data_ptr, buffer_sp->GetBytes(), num_bytes, error); in CFBitVectorSummaryProvider() 160 if (error.Fail() || num_bytes == 0) in CFBitVectorSummaryProvider() 163 for (int byte_idx = 0; byte_idx < num_bytes-1; byte_idx++) in CFBitVectorSummaryProvider() 187 uint8_t byte = bytes[num_bytes-1]; in CFBitVectorSummaryProvider()
|
/external/libhevc/common/x86/ |
D | ihevc_mem_fns_ssse3_intr.c | 80 void ihevc_memcpy_mul_8_ssse3(UWORD8 *pu1_dst, UWORD8 *pu1_src, UWORD32 num_bytes) in ihevc_memcpy_mul_8_ssse3() argument 83 for(col = num_bytes; col >= 8; col -= 8) in ihevc_memcpy_mul_8_ssse3() 119 void ihevc_memset_mul_8_ssse3(UWORD8 *pu1_dst, UWORD8 value, UWORD32 num_bytes) in ihevc_memset_mul_8_ssse3() argument 124 for(col = num_bytes; col >= 8; col -= 8) in ihevc_memset_mul_8_ssse3()
|
/external/libavc/common/x86/ |
D | ih264_mem_fns_ssse3.c | 81 void ih264_memcpy_mul_8_ssse3(UWORD8 *pu1_dst, UWORD8 *pu1_src, UWORD32 num_bytes) in ih264_memcpy_mul_8_ssse3() argument 84 for(col = num_bytes; col >= 8; col -= 8) in ih264_memcpy_mul_8_ssse3() 120 void ih264_memset_mul_8_ssse3(UWORD8 *pu1_dst, UWORD8 value, UWORD32 num_bytes) in ih264_memset_mul_8_ssse3() argument 125 for(col = num_bytes; col >= 8; col -= 8) in ih264_memset_mul_8_ssse3()
|
/external/webrtc/webrtc/common_audio/ |
D | wav_header_unittest.cc | 40 virtual size_t Read(void* buf, size_t num_bytes) { in Read() argument 43 EXPECT_GE(size_, pos_ + num_bytes); in Read() 47 if (num_bytes > bytes_remaining) { in Read() 52 num_bytes = bytes_remaining; in Read() 54 memcpy(buf, &buf_[pos_], num_bytes); in Read() 55 pos_ += num_bytes; in Read() 56 return num_bytes; in Read()
|
/external/boringssl/src/crypto/bytestring/ |
D | cbs.c | 202 const size_t num_bytes = length_byte & 0x7f; in cbs_get_any_asn1_element() local 205 if (ber_ok && (tag & CBS_ASN1_CONSTRUCTED) != 0 && num_bytes == 0) { in cbs_get_any_asn1_element() 213 if (num_bytes == 0 || num_bytes > 4) { in cbs_get_any_asn1_element() 216 if (!cbs_get_u(&header, &len32, num_bytes)) { in cbs_get_any_asn1_element() 223 if ((len32 >> ((num_bytes-1)*8)) == 0) { in cbs_get_any_asn1_element() 228 if (len + 2 + num_bytes < len) { in cbs_get_any_asn1_element() 232 len += 2 + num_bytes; in cbs_get_any_asn1_element() 234 *out_header_len = 2 + num_bytes; in cbs_get_any_asn1_element()
|