/external/cronet/third_party/protobuf/src/google/protobuf/stubs/ |
D | strutil_unittest.cc | 444 char encode_buffer[100]; in TEST() local 460 memset(encode_buffer, 0, sizeof(encode_buffer)); in TEST() 463 encode_buffer, in TEST() 464 sizeof(encode_buffer)); in TEST() 472 ASSERT_STREQ(encode_buffer, base64_tests[i].ciphertext); in TEST() 475 memset(encode_buffer, 0, sizeof(encode_buffer)); in TEST() 478 encode_buffer, cipher_length); in TEST() 483 EXPECT_STREQ(encode_buffer, base64_tests[i].ciphertext); in TEST() 488 Base64Unescape(StringPiece(encode_buffer, cipher_length), &decode_str)); in TEST() 501 EXPECT_EQ(encoded, std::string(encode_buffer, cipher_length)); in TEST() [all …]
|
/external/protobuf/src/google/protobuf/stubs/ |
D | strutil_unittest.cc | 444 char encode_buffer[100]; in TEST() local 460 memset(encode_buffer, 0, sizeof(encode_buffer)); in TEST() 463 encode_buffer, in TEST() 464 sizeof(encode_buffer)); in TEST() 472 ASSERT_STREQ(encode_buffer, base64_tests[i].ciphertext); in TEST() 475 memset(encode_buffer, 0, sizeof(encode_buffer)); in TEST() 478 encode_buffer, cipher_length); in TEST() 483 EXPECT_STREQ(encode_buffer, base64_tests[i].ciphertext); in TEST() 488 Base64Unescape(StringPiece(encode_buffer, cipher_length), &decode_str)); in TEST() 501 EXPECT_EQ(encoded, std::string(encode_buffer, cipher_length)); in TEST() [all …]
|
/external/pigweed/pw_protobuf/ |
D | encoder_test.cc | 93 std::byte encode_buffer[64]; in TEST() local 99 StreamEncoder encoder(writer, encode_buffer); in TEST() 127 std::byte encode_buffer[12]; in TEST() local 128 MemoryEncoder encoder(encode_buffer); in TEST() 146 std::byte encode_buffer[12]; in TEST() local 147 MemoryEncoder encoder(encode_buffer); in TEST() 170 std::byte encode_buffer[kScratchBufferSize]; in TEST() local 173 StreamEncoder encoder(writer, encode_buffer); in TEST() 258 std::byte encode_buffer[32]; in TEST() local 259 MemoryEncoder encoder(encode_buffer); in TEST() [all …]
|
D | codegen_encoder_test.cc | 56 std::byte encode_buffer[Pigweed::kMaxEncodedSizeBytes + in TEST() local 60 stream::MemoryWriter writer(encode_buffer); in TEST() 211 std::byte encode_buffer[(Crate::kMaxEncodedSizeBytes + 12) * 4]; in TEST() local 213 Crate::MemoryEncoder biggest_crate(encode_buffer); in TEST() 256 std::byte encode_buffer[RepeatedTest::kMaxEncodedSizeBytes]; in TEST() local 258 stream::MemoryWriter writer(encode_buffer); in TEST() 291 std::byte encode_buffer[RepeatedTest::kMaxEncodedSizeBytes]; in TEST() local 293 stream::MemoryWriter writer(encode_buffer); in TEST() 324 std::byte encode_buffer[RepeatedTest::kMaxEncodedSizeBytes]; in TEST() local 326 stream::MemoryWriter writer(encode_buffer); in TEST() [all …]
|
D | map_utils_test.cc | 117 std::byte encode_buffer[17]; in TEST() local 118 stream::MemoryWriter writer(encode_buffer); in TEST() 137 std::byte encode_buffer[17]; in TEST() local 138 stream::MemoryWriter writer(encode_buffer); in TEST()
|
D | codegen_message_test.cc | 1316 std::byte encode_buffer[Pigweed::kMaxEncodedSizeBytes]; in TEST() local 1319 stream::MemoryWriter writer(encode_buffer); in TEST() 1372 std::byte encode_buffer[Pigweed::kMaxEncodedSizeBytes]; in TEST() local 1375 stream::MemoryWriter writer(encode_buffer); in TEST() 1393 std::byte encode_buffer[RepeatedTest::kMaxEncodedSizeBytes]; in TEST() local 1395 stream::MemoryWriter writer(encode_buffer); in TEST() 1432 std::byte encode_buffer[RepeatedTest::kMaxEncodedSizeBytes]; in TEST() local 1434 stream::MemoryWriter writer(encode_buffer); in TEST() 1464 std::byte encode_buffer[RepeatedTest::kMaxEncodedSizeBytes + in TEST() local 1467 stream::MemoryWriter writer(encode_buffer); in TEST() [all …]
|
D | encoder_perf_test.cc | 26 std::byte encode_buffer[30]; in BasicIntegerPerformance() local 29 MemoryEncoder encoder(encode_buffer); in BasicIntegerPerformance()
|
/external/pigweed/pw_log/public/pw_log/ |
D | proto_utils.h | 63 ByteSpan encode_buffer); 72 ByteSpan encode_buffer); 85 ByteSpan encode_buffer) { in EncodeTokenizedLog() argument 87 metadata, tokenized_data, ticks_since_epoch, encode_buffer); in EncodeTokenizedLog() 97 ByteSpan encode_buffer) { in EncodeTokenizedLog() argument 101 encode_buffer); in EncodeTokenizedLog() 117 ByteSpan encode_buffer) { in EncodeTokenizedLog() argument 122 encode_buffer); in EncodeTokenizedLog() 142 ByteSpan encode_buffer) { in EncodeTokenizedLog() argument 144 metadata, tokenized_data, ticks_since_epoch, encode_buffer); in EncodeTokenizedLog()
|
/external/webrtc/rtc_base/ |
D | base64_unittest.cc | 368 char encode_buffer[100]; in TEST() local 382 memset(encode_buffer, 0, sizeof(encode_buffer)); in TEST() 385 encode_buffer, sizeof(encode_buffer)); in TEST() 390 EXPECT_STREQ(encode_buffer, base64_tests[i].cyphertext); in TEST() 393 memset(encode_buffer, 0, sizeof(encode_buffer)); in TEST() 396 encode_buffer, cypher_length); in TEST() 401 EXPECT_STREQ(encode_buffer, base64_tests[i].cyphertext); in TEST() 405 decode_length = Base64Unescape(encode_buffer, cypher_length, decode_buffer, in TEST() 418 char* first_equals = strchr(encode_buffer, '='); in TEST() 427 EXPECT_NE(0U, Base64Unescape(encode_buffer, first_equals - encode_buffer, in TEST() [all …]
|
/external/pigweed/pw_log/ |
D | proto_utils_test.cc | 212 std::byte encode_buffer[32]; in TEST() local 221 encode_buffer); in TEST() 236 encode_buffer); in TEST() 251 std::byte encode_buffer[32]; in TEST() local 261 encode_buffer); in TEST() 276 std::byte encode_buffer[1]; in TEST() local 285 encode_buffer); in TEST() 298 std::byte encode_buffer[64]; in TEST() local 308 encode_buffer); in TEST() 332 std::byte encode_buffer[64]; in TEST() local [all …]
|
D | proto_utils.cc | 35 ByteSpan encode_buffer) { in EncodeLog() argument 37 pwpb::LogEntry::MemoryEncoder encoder(encode_buffer); in EncodeLog() 69 ByteSpan encode_buffer) { in CreateEncoderAndEncodeTokenizedLog() argument 71 pwpb::LogEntry::MemoryEncoder encoder(encode_buffer); in CreateEncoderAndEncodeTokenizedLog()
|
/external/pigweed/pw_thread/ |
D | thread_snapshot_service_test.cc | 79 std::array<std::byte, RequiredServiceBufferSize(1)> encode_buffer; in TEST() local 81 proto::SnapshotThreadInfo::MemoryEncoder encoder(encode_buffer); in TEST() 100 std::array<std::byte, RequiredServiceBufferSize(3)> encode_buffer; in TEST() local 102 proto::SnapshotThreadInfo::MemoryEncoder encoder(encode_buffer); in TEST() 140 static std::array<std::byte, RequiredServiceBufferSize()> encode_buffer; in TEST() local 142 proto::SnapshotThreadInfo::MemoryEncoder encoder(encode_buffer); in TEST() 161 static std::array<std::byte, RequiredServiceBufferSize(1)> encode_buffer; in TEST() local 163 proto::SnapshotThreadInfo::MemoryEncoder encoder(encode_buffer); in TEST() 187 static std::array<std::byte, RequiredServiceBufferSize(1)> encode_buffer; in TEST() local 189 proto::SnapshotThreadInfo::MemoryEncoder encoder(encode_buffer); in TEST()
|
/external/grpc-grpc/third_party/nanopb/tests/basic_buffer/ |
D | SConscript | 5 enc = env.Program(["encode_buffer.c", "$COMMON/person.pb.c", "$COMMON/pb_encode.o", "$COMMON/pb_com… 9 env.RunTest([dec, "encode_buffer.output"]) 10 env.Decode(["encode_buffer.output", "$COMMON/person.proto"], MESSAGE = "Person") 11 env.Compare(["decode_buffer.output", "encode_buffer.decoded"])
|
/external/nanopb-c/tests/basic_buffer/ |
D | SConscript | 5 enc = env.Program(["encode_buffer.c", "$COMMON/person.pb.c", "$COMMON/pb_encode.o", "$COMMON/pb_com… 9 env.RunTest([dec, "encode_buffer.output"]) 10 env.Decode(["encode_buffer.output", "$COMMON/person.proto"], MESSAGE = "Person") 11 env.Compare(["decode_buffer.output", "encode_buffer.decoded"])
|
/external/pigweed/pw_protobuf/size_report/ |
D | simple_codegen_comparison.cc | 46 std::array<std::byte, pwpb::ItemInfo::kMaxEncodedSizeBytes> encode_buffer; variable 47 pw::protobuf::MemoryEncoder generic_encoder(encode_buffer); 92 std::array<std::byte, pwpb::ItemInfo::kMaxEncodedSizeBytes> encode_buffer; variable 93 pwpb::ItemInfo::MemoryEncoder encoder(encode_buffer); 146 std::array<std::byte, pwpb::ItemInfo::kMaxEncodedSizeBytes> encode_buffer; variable 147 pwpb::ItemInfo::MemoryEncoder encoder(encode_buffer);
|
D | oneof_codegen_comparison.cc | 49 std::array<std::byte, ItemInfo::kMaxEncodedSizeBytes> encode_buffer; variable 50 pw::protobuf::MemoryEncoder encoder(encode_buffer); 179 std::array<std::byte, ResponseInfo::kMaxEncodedSizeBytes> encode_buffer; variable 180 ResponseInfo::MemoryEncoder encoder(encode_buffer); 323 std::array<std::byte, ResponseInfo::kMaxEncodedSizeBytes> encode_buffer; variable 324 ResponseInfo::MemoryEncoder encoder(encode_buffer);
|
/external/armnn/third-party/stb/ |
D | stb_image_resize.h | 551 …float* encode_buffer; // A temporary buffer to store floats so we don't lose precision while we do… member 1695 …(stbir__info* stbir_info, int num_pixels, void *output_buffer, float *encode_buffer, int channels,… in stbir__encode_scanline() argument 1708 float alpha = encode_buffer[pixel_index + alpha_channel]; in stbir__encode_scanline() 1714 encode_buffer[pixel_index + n] *= reciprocal_alpha; in stbir__encode_scanline() 1754 … ((unsigned char*)output_buffer)[index] = STBIR__ENCODE_LINEAR8(encode_buffer[index]); in stbir__encode_scanline() 1767 … ((unsigned char*)output_buffer)[index] = stbir__linear_to_srgb_uchar(encode_buffer[index]); in stbir__encode_scanline() 1771 …*)output_buffer)[pixel_index + alpha_channel] = STBIR__ENCODE_LINEAR8(encode_buffer[pixel_index+al… in stbir__encode_scanline() 1783 … ((unsigned short*)output_buffer)[index] = STBIR__ENCODE_LINEAR16(encode_buffer[index]); in stbir__encode_scanline() 1796 …unsigned short)STBIR__ROUND_INT(stbir__linear_to_srgb(stbir__saturate(encode_buffer[index])) * stb… in stbir__encode_scanline() 1800 …)output_buffer)[pixel_index + alpha_channel] = STBIR__ENCODE_LINEAR16(encode_buffer[pixel_index + … in stbir__encode_scanline() [all …]
|
/external/pigweed/pw_transfer/public/pw_transfer/ |
D | transfer_thread.h | 42 ByteSpan encode_buffer) in TransferThread() argument 46 encode_buffer_(encode_buffer) {} in TransferThread() 222 const ByteSpan& encode_buffer() const { return encode_buffer_; } in encode_buffer() function 306 Thread(ByteSpan chunk_buffer, ByteSpan encode_buffer) in Thread() argument 308 client_contexts_, server_contexts_, chunk_buffer, encode_buffer) {} in Thread()
|
/external/pigweed/pw_snapshot/ |
D | cpp_compile_test.cc | 25 std::byte encode_buffer[kMaxProtoSize]; in TEST() local 28 stream::MemoryWriter writer(encode_buffer); in TEST()
|
/external/pigweed/pw_thread/public/pw_thread/ |
D | thread_snapshot_service.h | 56 span<std::byte> encode_buffer, 59 : encode_buffer_(encode_buffer), in encode_buffer_() argument
|
/external/rust/crates/uuid/src/external/ |
D | serde_support.rs | 26 serializer.serialize_str(self.hyphenated().encode_lower(&mut Uuid::encode_buffer())) in serialize() 35 serializer.serialize_str(self.encode_lower(&mut Uuid::encode_buffer())) in serialize() 41 serializer.serialize_str(self.encode_lower(&mut Uuid::encode_buffer())) in serialize() 47 serializer.serialize_str(self.encode_lower(&mut Uuid::encode_buffer())) in serialize() 53 serializer.serialize_str(self.encode_lower(&mut Uuid::encode_buffer())) in serialize()
|
/external/pigweed/pw_metric/ |
D | metric_service_pwpb.cc | 103 std::array<std::byte, kEncodeBufferSize> encode_buffer; in Get() local 105 PwpbMetricWriter writer(encode_buffer, raw_response); in Get()
|
/external/pigweed/pw_transfer/ |
D | test_rpc_server.cc | 91 std::array<std::byte, kChunkSizeBytes> encode_buffer; variable 92 transfer::Thread<4, 4> transfer_thread(chunk_buffer, encode_buffer);
|
/external/pigweed/pw_transfer/integration_test/ |
D | client.cc | 83 std::byte encode_buffer[kMaxPayloadSize]; in PerformTransferActions() local 84 transfer::Thread<2, 2> transfer_thread(chunk_buffer, encode_buffer); in PerformTransferActions()
|
D | server.cc | 143 std::vector<std::byte> encode_buffer(config.chunk_size_bytes()); in RunServer() local 144 transfer::Thread<4, 4> transfer_thread(chunk_buffer, encode_buffer); in RunServer()
|