/external/webrtc/api/units/ |
D | data_size_unittest.cc | 22 constexpr DataSize kDataSizeZero = DataSize::Zero(); in TEST() 23 constexpr DataSize kDataSizeInf = DataSize::Infinity(); in TEST() 29 constexpr DataSize kDataSize = DataSize::Bytes(kValue); in TEST() 37 EXPECT_EQ(DataSize::Bytes(kValue).bytes(), kValue); in TEST() 42 EXPECT_TRUE(DataSize::Zero().IsZero()); in TEST() 43 EXPECT_FALSE(DataSize::Bytes(kValue).IsZero()); in TEST() 45 EXPECT_TRUE(DataSize::Infinity().IsInfinite()); in TEST() 46 EXPECT_FALSE(DataSize::Zero().IsInfinite()); in TEST() 47 EXPECT_FALSE(DataSize::Bytes(kValue).IsInfinite()); in TEST() 49 EXPECT_FALSE(DataSize::Infinity().IsFinite()); in TEST() [all …]
|
D | data_size.h | 24 // DataSize is a class represeting a count of bytes. 25 class DataSize final : public rtc_units_impl::RelativeUnit<DataSize> { 28 static constexpr DataSize Bytes(T value) { in Bytes() 32 static constexpr DataSize Infinity() { return PlusInfinity(); } in Infinity() 34 DataSize() = delete; 46 friend class rtc_units_impl::UnitBase<DataSize>; 51 std::string ToString(DataSize value); 52 inline std::string ToLogString(DataSize value) { in ToLogString() 59 DataSize value) {
|
D | data_rate.h | 81 inline constexpr int64_t Microbits(const DataSize& size) { in Microbits() 98 inline constexpr DataRate operator/(const DataSize size, 102 inline constexpr TimeDelta operator/(const DataSize size, const DataRate rate) { 105 inline constexpr DataSize operator*(const DataRate rate, 108 return DataSize::Bytes((microbits + 4000000) / 8000000); 110 inline constexpr DataSize operator*(const TimeDelta duration, 115 inline constexpr DataSize operator/(const DataRate rate, 120 return DataSize::Bytes(data_rate_impl::MillibytePerSec(rate) / millihertz); 122 inline constexpr Frequency operator/(const DataRate rate, const DataSize size) { 126 inline constexpr DataRate operator*(const DataSize size, [all …]
|
/external/angle/src/libANGLE/ |
D | BinaryStream_unittest.cpp | 22 const size_t dataSize = 1024; in TEST() local 25 std::vector<uint8_t> data(dataSize + slopSize); in TEST() 26 std::fill(data.begin(), data.begin() + dataSize, goodValue); in TEST() 27 std::fill(data.begin() + dataSize, data.end(), badValue); in TEST() 29 std::vector<uint8_t> outputData(dataSize); in TEST() 35 gl::BinaryInputStream stream(data.data(), dataSize); in TEST() 36 stream.readBytes(outputData.data(), dataSize); in TEST() 44 gl::BinaryInputStream stream(data.data(), dataSize); in TEST() 45 stream.readBytes(outputData.data(), dataSize / 2); in TEST() 47 stream.readBytes(outputData.data() + dataSize / 2, dataSize / 2); in TEST() [all …]
|
/external/webrtc/modules/pacing/ |
D | bitrate_prober_unittest.cc | 32 const DataSize kProbeSize = DataSize::Bytes(1000); in TEST() 83 const DataSize kProbeSize = DataSize::Bytes(1000); in TEST() 104 const DataSize kProbeSize = DataSize::Bytes(1000); in TEST() 134 const DataSize kProbeSize = DataSize::Bytes(1000); in TEST() 166 prober.OnIncomingPacket(DataSize::Bytes(100)); in TEST() 189 const DataSize kPacketSize = DataSize::Bytes(1000); in TEST() 206 const DataSize kPacketSize = DataSize::Bytes(1000); in TEST() 207 const DataSize kExpectedDataSent = kBitrate * TimeDelta::Millis(15); in TEST() 212 DataSize data_sent = DataSize::Zero(); in TEST() 226 const DataSize kPacketSize = DataSize::Bytes(1000); in TEST() [all …]
|
D | pacing_controller.cc | 115 transport_overhead_per_packet_(DataSize::Zero()), in PacingController() 120 media_debt_(DataSize::Zero()), in PacingController() 121 padding_debt_(DataSize::Zero()), in PacingController() 131 congestion_window_size_(DataSize::PlusInfinity()), in PacingController() 132 outstanding_data_(DataSize::Zero()), in PacingController() 171 void PacingController::SetCongestionWindow(DataSize congestion_window_size) { in SetCongestionWindow() 180 void PacingController::UpdateOutstandingData(DataSize outstanding_data) { in UpdateOutstandingData() 250 void PacingController::SetTransportOverhead(DataSize overhead_per_packet) { in SetTransportOverhead() 268 DataSize PacingController::QueueSizeData() const { in QueueSizeData() 272 DataSize PacingController::CurrentBufferLevel() const { in CurrentBufferLevel() [all …]
|
D | pacing_controller.h | 62 DataSize size) = 0; 101 void SetCongestionWindow(DataSize congestion_window_size); 102 void UpdateOutstandingData(DataSize outstanding_data); 114 void SetTransportOverhead(DataSize overhead_per_packet); 122 DataSize QueueSizeData() const; 125 DataSize CurrentBufferLevel() const; 160 void UpdateBudgetWithSentData(DataSize size); 162 DataSize PaddingToAdd(DataSize recommended_probe_size, 163 DataSize data_sent) const; 170 DataSize packet_size, [all …]
|
D | round_robin_packet_queue.h | 48 DataSize Size() const; 60 void SetTransportOverhead(DataSize overhead_per_packet); 106 StreamPrioKey(int priority, DataSize size) in StreamPrioKey() 116 const DataSize size; 125 DataSize size; 140 DataSize PacketSize(const QueuedPacket& packet) const; 148 DataSize transport_overhead_per_packet_; 154 DataSize size_; 155 DataSize max_size_;
|
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | CodedOutputStreamWriter.java | 193 int dataSize = 0; in writeInt32List() local 195 dataSize += CodedOutputStream.computeInt32SizeNoTag(value.get(i)); in writeInt32List() 197 output.writeUInt32NoTag(dataSize); in writeInt32List() 217 int dataSize = 0; in writeFixed32List() local 219 dataSize += CodedOutputStream.computeFixed32SizeNoTag(value.get(i)); in writeFixed32List() 221 output.writeUInt32NoTag(dataSize); in writeFixed32List() 240 int dataSize = 0; in writeInt64List() local 242 dataSize += CodedOutputStream.computeInt64SizeNoTag(value.get(i)); in writeInt64List() 244 output.writeUInt32NoTag(dataSize); in writeInt64List() 264 int dataSize = 0; in writeUInt64List() local [all …]
|
/external/webrtc/api/test/network_emulation/ |
D | network_emulation_interfaces.h | 66 DataSize bytes_received = DataSize::Zero(); 70 DataSize bytes_dropped = DataSize::Zero(); 72 DataSize first_received_packet_size = DataSize::Zero(); 91 DataSize bytes_sent = DataSize::Zero(); 93 DataSize first_sent_packet_size = DataSize::Zero(); 120 DataSize BytesReceived() const { in BytesReceived() 121 DataSize bytes_received = DataSize::Zero(); in BytesReceived() 138 DataSize BytesDropped() const { in BytesDropped() 139 DataSize bytes_dropped = DataSize::Zero(); in BytesDropped() 146 DataSize FirstReceivedPacketSize() const { in FirstReceivedPacketSize() [all …]
|
/external/deqp/execserver/ |
D | xsProtocol.cpp | 50 MessageParser (const deUint8* data, size_t dataSize) in MessageParser() argument 52 , m_size (dataSize) in MessageParser() 141 void Message::parseHeader (const deUint8* data, size_t dataSize, MessageType& type, size_t& size) in parseHeader() argument 143 XS_CHECK_MSG(dataSize >= MESSAGE_HEADER_SIZE, "Incomplete header"); in parseHeader() 144 MessageParser parser(data, dataSize); in parseHeader() 163 HelloMessage::HelloMessage (const deUint8* data, size_t dataSize) in HelloMessage() argument 166 MessageParser parser(data, dataSize); in HelloMessage() 177 TestMessage::TestMessage (const deUint8* data, size_t dataSize) in TestMessage() argument 180 MessageParser parser(data, dataSize); in TestMessage() 191 ExecuteBinaryMessage::ExecuteBinaryMessage (const deUint8* data, size_t dataSize) in ExecuteBinaryMessage() argument [all …]
|
D | xsProtocol.hpp | 77 …static void parseHeader (const deUint8* data, size_t dataSize, MessageType& type, size_t& messag… 92 …essage (const deUint8* data, size_t dataSize) : Message((MessageType)MsgType) { DE_UNREF(data); XS… in SimpleMessage() argument 108 HelloMessage (const deUint8* data, size_t dataSize); 123 ExecuteBinaryMessage (const deUint8* data, size_t dataSize); 135 ProcessLogDataMessage (const deUint8* data, size_t dataSize); 146 ProcessLaunchFailedMessage (const deUint8* data, size_t dataSize); 158 ProcessFinishedMessage (const deUint8* data, size_t dataSize); 170 InfoMessage (const deUint8* data, size_t dataSize); 182 TestMessage (const deUint8* data, size_t dataSize);
|
/external/webrtc/api/transport/ |
D | network_types.h | 107 DataSize size = DataSize::Zero(); 109 DataSize prior_unacked_data = DataSize::Zero(); 120 DataSize data_in_flight = DataSize::Zero(); 126 DataSize size = DataSize::Zero(); 173 DataSize data_in_flight = DataSize::Zero(); 174 DataSize prior_in_flight = DataSize::Zero(); 203 DataSize data_window = DataSize::Infinity(); 206 DataSize pad_window = DataSize::Zero(); 235 absl::optional<DataSize> congestion_window; 247 absl::optional<DataSize> pacer_queue;
|
/external/swiftshader/src/Vulkan/ |
D | VkSpecializationInfo.cpp | 39 info->dataSize = specializationInfo->dataSize; in SpecializationInfo() 40 if(specializationInfo->dataSize > 0) in SpecializationInfo() 42 void *data = allocate(specializationInfo->dataSize, REQUIRED_MEMORY_ALIGNMENT, DEVICE_MEMORY); in SpecializationInfo() 43 memcpy(data, specializationInfo->pData, specializationInfo->dataSize); in SpecializationInfo() 82 if(info->dataSize != specializationInfo.info->dataSize) in operator <() 84 return info->dataSize < specializationInfo.info->dataSize; in operator <() 96 if(info->dataSize > 0) in operator <() 98 int cmp = memcmp(info->pData, specializationInfo.info->pData, info->dataSize); in operator <()
|
/external/webrtc/test/network/ |
D | cross_traffic.h | 33 DataSize min_packet_size = DataSize::Bytes(200); 62 DataSize pending_size_ RTC_GUARDED_BY(sequence_checker_) = DataSize::Zero(); 67 DataSize min_packet_size = DataSize::Bytes(200); 153 DataSize packet_size = DataSize::Bytes(1200); 154 DataSize send_limit = DataSize::PlusInfinity(); 189 DataSize total_sent_ = DataSize::Zero();
|
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp3/ |
D | XingSeeker.java | 67 long dataSize = frame.readUnsignedIntToInt(); in create() local 77 if (inputLength != C.LENGTH_UNSET && inputLength != position + dataSize) { in create() 78 Log.w(TAG, "XING data size mismatch: " + inputLength + ", " + (position + dataSize)); in create() 81 position, mpegAudioHeader.frameSize, durationUs, dataSize, tableOfContents); in create() 88 private final long dataSize; field in XingSeeker 102 /* dataSize= */ C.LENGTH_UNSET, in XingSeeker() 110 long dataSize, in XingSeeker() argument 116 this.dataSize = dataSize; in XingSeeker() 117 dataEndPosition = dataSize == C.LENGTH_UNSET ? C.POSITION_UNSET : dataStartPosition + dataSize; in XingSeeker() 147 long positionOffset = Math.round((scaledPosition / 256) * dataSize); in getSeekPoints() [all …]
|
/external/zstd/contrib/linux-kernel/test/ |
D | test.c | 28 size_t dataSize; member 35 data.dataSize = 128 * 1024; in create_test_data() 36 data.data = malloc(data.dataSize); in create_test_data() 38 data.data2 = malloc(data.dataSize); in create_test_data() 40 data.compSize = zstd_compress_bound(data.dataSize); in create_test_data() 43 memset(data.data, 0, data.dataSize); in create_test_data() 58 size_t const size = MIN(data->dataSize, 128 * 1024); in test_btrfs() 136 CONTROL(op - data->data2 == data->dataSize); in test_btrfs() 137 CONTROL(!memcmp(data->data, data->data2, data->dataSize)); in test_btrfs() 153 … cSize = zstd_compress_cctx(cctx, data->comp, data->compSize, data->data, data->dataSize, ¶ms); in test_decompress_unzstd() [all …]
|
/external/sfntly/cpp/src/sfntly/table/bitmap/ |
D | eblc_table.h | 36 kHeaderLength = kNumSizes + DataSize::kULONG, 89 DataSize::kULONG + 93 DataSize::kULONG, 104 DataSize::kULONG, 105 kIndexSubTable4_codeOffsetPairLength = 2 * DataSize::kUSHORT, 107 kIndexSubTable4_codeOffsetPair_offset = DataSize::kUSHORT, 113 DataSize::kULONG, 117 DataSize::kULONG, 121 kCodeOffsetPairLength = 2 * DataSize::kUSHORT, 123 kCodeOffsetPair_offset = DataSize::kUSHORT,
|
/external/protobuf/objectivec/ |
D | GPBCodedOutputStream.m | 427 //% __block size_t dataSize = 0; 430 //% dataSize += GPBCompute##NAME##SizeNoTag(value); 433 //% GPBWriteRawVarint32(&state_, (int32_t)dataSize); 461 __block size_t dataSize = 0; 464 dataSize += GPBComputeDoubleSizeNoTag(value); 467 GPBWriteRawVarint32(&state_, (int32_t)dataSize); 488 __block size_t dataSize = 0; 491 dataSize += GPBComputeFloatSizeNoTag(value); 494 GPBWriteRawVarint32(&state_, (int32_t)dataSize); 515 __block size_t dataSize = 0; [all …]
|
/external/webrtc/rtc_base/experiments/ |
D | field_trial_units.cc | 63 absl::optional<DataSize> ParseTypedParameter<DataSize>(std::string str) { in ParseTypedParameter() 67 return DataSize::Bytes(result->value); in ParseTypedParameter() 93 absl::optional<absl::optional<DataSize>> 94 ParseTypedParameter<absl::optional<DataSize>>(std::string str) { in ParseTypedParameter() 95 return ParseOptionalParameter<DataSize>(str); in ParseTypedParameter() 104 template class FieldTrialParameter<DataSize>; 108 template class FieldTrialConstrained<DataSize>; 112 template class FieldTrialOptional<DataSize>;
|
D | field_trial_units_unittest.cc | 25 FieldTrialOptional<DataSize> max_buffer = 26 FieldTrialOptional<DataSize>("b", absl::nullopt); 43 EXPECT_EQ(*exp.max_buffer.GetOptional(), DataSize::Bytes(5)); in TEST() 49 EXPECT_EQ(*exp.max_buffer.GetOptional(), DataSize::Bytes(5)); in TEST() 60 EXPECT_EQ(*exp.max_buffer.GetOptional(), DataSize::Bytes(8)); in TEST() 70 FieldTrialConstrained<DataSize> size( in TEST() 71 "s", DataSize::Bytes(30), DataSize::Bytes(10), DataSize::Bytes(100)); in TEST()
|
/external/icu/icu4c/source/io/ |
D | ustdio.cpp | 415 int32_t dataSize; in ufile_fill_uchar_buffer() local 425 dataSize = (int32_t)(str->fLimit - str->fPos); in ufile_fill_uchar_buffer() 426 if (f->fFileno == 0 && dataSize > 0) { in ufile_fill_uchar_buffer() 432 if(dataSize != 0) { in ufile_fill_uchar_buffer() 433 u_memmove(f->fUCBuffer, str->fPos, dataSize); /* not accessing beyond memory */ in ufile_fill_uchar_buffer() 438 availLength = UFILE_UCHARBUFFER_SIZE - dataSize; in ufile_fill_uchar_buffer() 462 myTarget = f->fUCBuffer + dataSize; in ufile_fill_uchar_buffer() 491 int32_t dataSize; in u_fgets() local 514 dataSize = (int32_t)(str->fLimit - str->fPos); in u_fgets() 517 if (dataSize == 0) in u_fgets() [all …]
|
/external/sfntly/cpp/src/test/ |
D | font_data_test.cc | 49 * DataSize::kUSHORT, 51 DataSize::kUSHORT, 52 kLowerByteArrayForSearchingLength * DataSize::kUSHORT, 53 DataSize::kUSHORT }, 57 * DataSize::kUSHORT, 59 2 * DataSize::kUSHORT, 60 DataSize::kUSHORT, 61 2 * DataSize::kUSHORT }, 65 * DataSize::kUSHORT, 66 kLowerByteArrayForSearchingLength * DataSize::kUSHORT, [all …]
|
/external/libcups/examples/ |
D | ppdx.c | 37 * along with the length of the data in the variable pointed to by "datasize", 46 size_t *datasize) /* O - Size of data or NULL for don't care */ in ppdxReadData() argument 64 if (datasize) in ppdxReadData() 65 *datasize = 0; in ppdxReadData() 163 if (datasize) in ppdxReadData() 164 *datasize = decomp.next_out - data; in ppdxReadData() 176 * data to be written, and "datasize" provides the length. 182 size_t datasize) /* I - Number of bytes in data */ in ppdxWriteData() argument 201 if (!name || (!data && datasize > 0) || datasize > PPDX_MAX_DATA) in ppdxWriteData() 208 if (datasize > 0) in ppdxWriteData() [all …]
|
/external/llvm-project/llvm/unittests/Object/ |
D | MinidumpTest.cpp | 32 3, 0, 0x67, 0x47, 7, 0, 0, 0, // Type, DataSize, in TEST() 52 EXPECT_EQ(7u, Stream0.Location.DataSize); in TEST() 75 3, 0, 0x67, 0x47, 7, 0, 0, 0, // Type, DataSize, in TEST() 89 3, 0, 0x67, 0x47, 7, 0, 0, 0, // Type, DataSize, in TEST() 103 3, 0, 0x67, 0x47, 7, 0, 0, 0, // Type, DataSize, in TEST() 117 3, 0, 0x67, 0x47, 7, 0, 0, 0, // Type, DataSize, in TEST() 131 3, 0, 0x67, 0x47, 7, 0, 0, 0, // Type, DataSize, in TEST() 145 3, 0, 0x67, 0x47, 8, 0, 0, 0, // Type, DataSize, in TEST() 159 3, 0, 0x67, 0x47, 7, 0, 0, 0, // Type, DataSize, in TEST() 162 3, 0, 0x67, 0x47, 7, 0, 0, 0, // Type, DataSize, in TEST() [all …]
|