/external/cronet/base/android/junit/src/org/chromium/base/ |
D | PiiEliderTest.java | 25 String original = "email me at someguy@mailservice.com"; in testElideEmail() local 27 assertEquals(expected, PiiElider.elideEmail(original)); in testElideEmail() 32 String original = "file bugs at crbug.com"; in testElideUrl() local 34 assertEquals(expected, PiiElider.elideUrl(original)); in testElideUrl() 39 String original = "exception at org.chromium.base.PiiEliderTest"; in testElideUrl2() local 40 assertEquals(original, PiiElider.elideUrl(original)); in testElideUrl2() 45 String original = "file bugs at crbug.com or code.google.com"; in testElideUrl3() local 47 assertEquals(expected, PiiElider.elideUrl(original)); in testElideUrl3() 52 String original = "test shorturl.com !!!"; in testElideUrl4() local 54 assertEquals(expected, PiiElider.elideUrl(original)); in testElideUrl4() [all …]
|
/external/grpc-grpc/test/core/gprpp/ |
D | inlined_vector_test.cc | 120 IntVec8 original; in TEST() local 121 FillVector(&original, kInlinedFillSize); in TEST() 122 IntVec8 copy_constructed(original); in TEST() 123 for (size_t i = 0; i < original.size(); ++i) { in TEST() 124 EXPECT_EQ(original[i], copy_constructed[i]); in TEST() 129 IntVec8 original; in TEST() local 130 FillVector(&original, kAllocatedFillSize); in TEST() 131 IntVec8 copy_constructed(original); in TEST() 132 for (size_t i = 0; i < original.size(); ++i) { in TEST() 133 EXPECT_EQ(original[i], copy_constructed[i]); in TEST() [all …]
|
/external/angle/src/tests/compiler_tests/ |
D | IntermNode_test.cpp | 79 void checkTypeEqualWithQualifiers(const TType &original, const TType ©) in checkTypeEqualWithQualifiers() argument 81 ASSERT_EQ(original, copy); in checkTypeEqualWithQualifiers() 82 ASSERT_EQ(original.getPrecision(), copy.getPrecision()); in checkTypeEqualWithQualifiers() 83 ASSERT_EQ(original.getQualifier(), copy.getQualifier()); in checkTypeEqualWithQualifiers() 90 TIntermSymbol *original = aOriginal->getAsSymbolNode(); in checkSymbolCopy() local 92 ASSERT_NE(nullptr, original); in checkSymbolCopy() 93 ASSERT_NE(original, copy); in checkSymbolCopy() 94 ASSERT_EQ(&original->variable(), ©->variable()); in checkSymbolCopy() 95 ASSERT_EQ(original->uniqueId(), copy->uniqueId()); in checkSymbolCopy() 96 ASSERT_EQ(original->getName(), copy->getName()); in checkSymbolCopy() [all …]
|
/external/python/python-api-core/tests/unit/ |
D | test_protobuf_helpers.py | 275 original = struct_pb2.Value(number_value=1.0) 277 assert protobuf_helpers.field_mask(original, modified).paths == [] 279 original = color_pb2.Color(alpha=wrappers_pb2.FloatValue(value=1.0)) 281 assert protobuf_helpers.field_mask(original, modified).paths == [] 283 original = struct_pb2.ListValue(values=[struct_pb2.Value(number_value=1.0)]) 285 assert protobuf_helpers.field_mask(original, modified).paths == [] 287 original = struct_pb2.Struct(fields={"bar": struct_pb2.Value(number_value=1.0)}) 289 assert protobuf_helpers.field_mask(original, modified).paths == [] 294 original = color_pb2.Color(red=0.0) 296 assert protobuf_helpers.field_mask(original, modified).paths == [] [all …]
|
/external/chromium-trace/catapult/devil/devil/android/ |
D | device_errors_test.py | 14 def assertIsPicklable(self, original): argument 15 pickled = pickle.dumps(original) 17 self.assertEquals(original, reconstructed) 20 original = device_errors.AdbCommandFailedError( 25 self.assertIsPicklable(original) 28 original = device_errors.AdbShellCommandFailedError( 30 self.assertIsPicklable(original) 33 original = device_errors.CommandFailedError('sample command failed') 34 self.assertIsPicklable(original) 37 original = device_errors.CommandTimeoutError('My fake command timed out :(') [all …]
|
/external/tensorflow/tensorflow/tools/android/test/jni/object_tracking/ |
D | image-inl.h | 230 void Image<T>::DownsampleAveraged(const T* const original, const int stride, in DownsampleAveraged() argument 234 DownsampleAveragedNeon(original, stride, factor); in DownsampleAveraged() 257 const T* p = original + curr_y * stride + orig_x; in DownsampleAveraged() 270 void Image<T>::DownsampleInterpolateNearest(const Image<T>& original) { in DownsampleInterpolateNearest() argument 272 const float factor_x = static_cast<float>(original.GetWidth()) / in DownsampleInterpolateNearest() 274 const float factor_y = static_cast<float>(original.GetHeight()) / in DownsampleInterpolateNearest() 278 const float offset_x = 0.5f * (original.GetWidth() - width_) / width_; in DownsampleInterpolateNearest() 281 const float offset_y = 0.5f * (original.GetHeight() - height_) / height_; in DownsampleInterpolateNearest() 291 const T* row_data = original[nearest_y]; in DownsampleInterpolateNearest() 309 void Image<T>::DownsampleInterpolateLinear(const Image<T>& original) { in DownsampleInterpolateLinear() argument [all …]
|
D | image.h | 200 void Downsample2x32ColumnsNeon(const uint8_t* const original, 203 void Downsample4x32ColumnsNeon(const uint8_t* const original, 206 void DownsampleAveragedNeon(const uint8_t* const original, const int stride, 212 void DownsampleAveraged(const T* const original, const int stride, 217 inline void DownsampleAveraged(const Image<T>& original, const int factor) { in DownsampleAveraged() argument 218 DownsampleAveraged(original.data(), original.GetWidth(), factor); in DownsampleAveraged() 222 void DownsampleInterpolateNearest(const Image<T>& original); 226 void DownsampleInterpolateLinear(const Image<T>& original); 230 void DownsampleSmoothed3x3(const Image<T>& original); 234 void DownsampleSmoothed5x5(const Image<T>& original); [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | TransposedTableTest.java | 31 Table<Integer, String, Character> original = HashBasedTable.create(); in create() local 32 Table<String, Integer, Character> table = Tables.transpose(original); in create() 39 Table<Integer, String, Character> original = HashBasedTable.create(); in testTransposeTransposed() local 40 assertSame(original, Tables.transpose(Tables.transpose(original))); in testTransposeTransposed() 44 Table<Integer, String, Character> original = HashBasedTable.create(); in testPutOriginalModifiesTranspose() local 45 Table<String, Integer, Character> transpose = Tables.transpose(original); in testPutOriginalModifiesTranspose() 46 original.put(1, "foo", 'a'); in testPutOriginalModifiesTranspose() 51 Table<Integer, String, Character> original = HashBasedTable.create(); in testPutTransposeModifiesOriginal() local 52 Table<String, Integer, Character> transpose = Tables.transpose(original); in testPutTransposeModifiesOriginal() 54 assertEquals((Character) 'a', original.get(1, "foo")); in testPutTransposeModifiesOriginal() [all …]
|
/external/guava/android/guava-tests/test/com/google/common/collect/ |
D | TransposedTableTest.java | 31 Table<Integer, String, Character> original = HashBasedTable.create(); in create() local 32 Table<String, Integer, Character> table = Tables.transpose(original); in create() 39 Table<Integer, String, Character> original = HashBasedTable.create(); in testTransposeTransposed() local 40 assertSame(original, Tables.transpose(Tables.transpose(original))); in testTransposeTransposed() 44 Table<Integer, String, Character> original = HashBasedTable.create(); in testPutOriginalModifiesTranspose() local 45 Table<String, Integer, Character> transpose = Tables.transpose(original); in testPutOriginalModifiesTranspose() 46 original.put(1, "foo", 'a'); in testPutOriginalModifiesTranspose() 51 Table<Integer, String, Character> original = HashBasedTable.create(); in testPutTransposeModifiesOriginal() local 52 Table<String, Integer, Character> transpose = Tables.transpose(original); in testPutTransposeModifiesOriginal() 54 assertEquals((Character) 'a', original.get(1, "foo")); in testPutTransposeModifiesOriginal() [all …]
|
/external/harfbuzz_ng/perf/ |
D | benchmark-set.cc | 32 hb_set_t* original = hb_set_create (); in BM_SetInsert_1000() local 33 RandomSet(set_size, max_value, original); in BM_SetInsert_1000() 34 assert(hb_set_get_population(original) == set_size); in BM_SetInsert_1000() 38 hb_set_t* data = hb_set_copy(original); in BM_SetInsert_1000() 46 hb_set_destroy(original); in BM_SetInsert_1000() 59 hb_set_t* original = hb_set_create (); in BM_SetOrderedInsert_1000() local 60 RandomSet(set_size, max_value, original); in BM_SetOrderedInsert_1000() 61 assert(hb_set_get_population(original) == set_size); in BM_SetOrderedInsert_1000() 65 hb_set_t* data = hb_set_copy(original); in BM_SetOrderedInsert_1000() 73 hb_set_destroy(original); in BM_SetOrderedInsert_1000() [all …]
|
D | benchmark-map.cc | 29 hb_map_t* original = hb_map_create (); in BM_MapInsert() local 30 RandomMap(map_size, original); in BM_MapInsert() 31 assert(hb_map_get_population(original) == map_size); in BM_MapInsert() 39 hb_map_set (original, needle++, v++); in BM_MapInsert() 42 hb_map_destroy(original); in BM_MapInsert() 51 hb_map_t* original = hb_map_create (); in BM_MapLookup() local 52 RandomMap(map_size, original); in BM_MapLookup() 53 assert(hb_map_get_population(original) == map_size); in BM_MapLookup() 59 hb_map_get (original, needle++)); in BM_MapLookup() 62 hb_map_destroy(original); in BM_MapLookup()
|
/external/rust/crates/serde_derive/src/internals/ |
D | case.rs | 138 for &(original, lower, upper, camel, snake, screaming, kebab, screaming_kebab) in &[ in rename_variants() 155 assert_eq!(None.apply_to_variant(original), original); in rename_variants() 156 assert_eq!(LowerCase.apply_to_variant(original), lower); in rename_variants() 157 assert_eq!(UpperCase.apply_to_variant(original), upper); in rename_variants() 158 assert_eq!(PascalCase.apply_to_variant(original), original); in rename_variants() 159 assert_eq!(CamelCase.apply_to_variant(original), camel); in rename_variants() 160 assert_eq!(SnakeCase.apply_to_variant(original), snake); in rename_variants() 161 assert_eq!(ScreamingSnakeCase.apply_to_variant(original), screaming); in rename_variants() 162 assert_eq!(KebabCase.apply_to_variant(original), kebab); in rename_variants() 164 ScreamingKebabCase.apply_to_variant(original), in rename_variants() [all …]
|
D | check.rs | 49 cont.original, in check_getter() 57 cont.original, in check_getter() 90 field.original, in check_flatten_field() 96 field.original, in check_flatten_field() 128 variant.original, in check_identifier() 136 variant.original, in check_identifier() 145 variant.original, in check_identifier() 154 variant.original, in check_identifier() 169 variant.original, in check_identifier() 177 variant.original, in check_identifier() [all …]
|
/external/openscreen/cast/streaming/ |
D | rtcp_common_unittest.cc | 31 RtcpCommonHeader original; in TEST() local 32 original.packet_type = RtcpPacketType::kSenderReport; in TEST() 33 original.with.report_count = 31; in TEST() 34 original.payload_size = 16; in TEST() 37 SerializeAndExpectPointerAdvanced(original, kRtcpCommonHeaderSize, buffer); in TEST() 41 EXPECT_EQ(original.packet_type, parsed->packet_type); in TEST() 42 EXPECT_EQ(original.with.report_count, parsed->with.report_count); in TEST() 43 EXPECT_EQ(original.payload_size, parsed->payload_size); in TEST() 49 RtcpCommonHeader original; in TEST() local 50 original.packet_type = RtcpPacketType::kPayloadSpecific; in TEST() [all …]
|
/external/cronet/third_party/protobuf/src/google/protobuf/stubs/ |
D | statusor_test.cc | 92 StatusOr<int> original(kI); in TEST() local 93 StatusOr<int> copy(original); in TEST() 94 EXPECT_EQ(original.status(), copy.status()); in TEST() 95 EXPECT_EQ(original.value(), copy.value()); in TEST() 99 StatusOr<int> original(util::CancelledError("")); in TEST() local 100 StatusOr<int> copy(original); in TEST() 101 EXPECT_EQ(original.status(), copy.status()); in TEST() 106 StatusOr<int> original(kI); in TEST() local 107 StatusOr<double> copy(original); in TEST() 108 EXPECT_EQ(original.status(), copy.status()); in TEST() [all …]
|
/external/protobuf/src/google/protobuf/stubs/ |
D | statusor_test.cc | 92 StatusOr<int> original(kI); in TEST() local 93 StatusOr<int> copy(original); in TEST() 94 EXPECT_EQ(original.status(), copy.status()); in TEST() 95 EXPECT_EQ(original.value(), copy.value()); in TEST() 99 StatusOr<int> original(util::CancelledError("")); in TEST() local 100 StatusOr<int> copy(original); in TEST() 101 EXPECT_EQ(original.status(), copy.status()); in TEST() 106 StatusOr<int> original(kI); in TEST() local 107 StatusOr<double> copy(original); in TEST() 108 EXPECT_EQ(original.status(), copy.status()); in TEST() [all …]
|
/external/libchrome/base/containers/ |
D | vector_buffer_unittest.cc | 44 VectorBuffer<int> original(size); in TEST() local 46 original.begin()[i] = i + 1; in TEST() 48 original.MoveRange(original.begin(), original.end(), dest.begin()); in TEST() 57 VectorBuffer<MoveOnlyInt> original(size); in TEST() local 59 new (original.begin() + i) MoveOnlyInt(i + 1); in TEST() 61 original.MoveRange(original.begin(), original.end(), dest.begin()); in TEST() 65 EXPECT_EQ(0, original.begin()[i].data()); in TEST() 74 VectorBuffer<CopyOnlyInt> original(size); in TEST() local 76 new (original.begin() + i) CopyOnlyInt(i + 1); in TEST() 78 original.MoveRange(original.begin(), original.end(), dest.begin()); in TEST() [all …]
|
/external/cronet/base/containers/ |
D | vector_buffer_unittest.cc | 44 VectorBuffer<int> original(size); in TEST() local 46 original.begin()[i] = i + 1; in TEST() 48 original.MoveRange(original.begin(), original.end(), dest.begin()); in TEST() 57 VectorBuffer<MoveOnlyInt> original(size); in TEST() local 59 new (original.begin() + i) MoveOnlyInt(i + 1); in TEST() 61 original.MoveRange(original.begin(), original.end(), dest.begin()); in TEST() 65 EXPECT_EQ(0, original.begin()[i].data()); in TEST() 74 VectorBuffer<CopyOnlyInt> original(size); in TEST() local 76 new (original.begin() + i) CopyOnlyInt(i + 1); in TEST() 78 original.MoveRange(original.begin(), original.end(), dest.begin()); in TEST() [all …]
|
/external/cronet/net/third_party/quiche/src/quiche/http2/test_tools/ |
D | random_decoder_test_base.cc | 28 DecodeStatus RandomDecoderTest::DecodeSegments(DecodeBuffer* original, in DecodeSegments() argument 32 QUICHE_VLOG(2) << "DecodeSegments: input size=" << original->Remaining(); in DecodeSegments() 33 while (first || original->HasData()) { in DecodeSegments() 34 size_t remaining = original->Remaining(); in DecodeSegments() 36 std::min(remaining, select_size(first, original->Offset(), remaining)); in DecodeSegments() 37 DecodeBuffer db(original->cursor(), size); in DecodeSegments() 52 << " original.Offset=" << original->Offset(); in DecodeSegments() 55 original->AdvanceCursor(db.Offset()); in DecodeSegments() 58 if (original->Empty() || StopDecodeOnDone()) { in DecodeSegments() 74 DecodeBuffer* original, bool return_non_zero_on_first, in DecodeAndValidateSeveralWays() argument [all …]
|
/external/rust/crates/flate2/tests/ |
D | empty-read.rs | 7 let original: &[u8] = b"Lorem ipsum dolor sit amet."; in deflate_decoder_empty_read() localVariable 10 encoder.write_all(original).unwrap(); in deflate_decoder_empty_read() 16 assert_eq!(decoded.as_slice(), original); in deflate_decoder_empty_read() 21 let original: &[u8] = b"Lorem ipsum dolor sit amet."; in deflate_encoder_empty_read() localVariable 22 let mut encoder = flate2::read::DeflateEncoder::new(original, flate2::Compression::default()); in deflate_encoder_empty_read() 29 assert_eq!(decoded.as_slice(), original); in deflate_encoder_empty_read() 34 let original: &[u8] = b"Lorem ipsum dolor sit amet."; in gzip_decoder_empty_read() localVariable 36 encoder.write_all(original).unwrap(); in gzip_decoder_empty_read() 42 assert_eq!(decoded.as_slice(), original); in gzip_decoder_empty_read() 47 let original: &[u8] = b"Lorem ipsum dolor sit amet."; in gzip_encoder_empty_read() localVariable [all …]
|
/external/tensorflow/tensorflow/core/common_runtime/ |
D | isolate_placer_inspection_required_ops_pass_test.cc | 41 static void RunPass(const GraphDef& original, GraphDef* rewritten, in RunPass() argument 46 TF_ASSERT_OK(ConvertGraphDefToGraph(opts, original, graph.get())); in RunPass() 54 static void RunPass(const GraphDef& original, GraphDef* rewritten) { in RunPass() argument 55 FunctionLibraryDefinition flib_def(OpRegistry::Global(), original.library()); in RunPass() 56 RunPass(original, rewritten, &flib_def); in RunPass() 59 void RunPassAndCompare(const GraphDef& original, const GraphDef& expected) { in RunPassAndCompare() argument 61 RunPass(original, &rewritten); in RunPassAndCompare() 65 void RunPassAndCompare(const GraphDef& original, in RunPassAndCompare() argument 68 RunPass(original, &rewritten); in RunPassAndCompare() 96 GraphDef original = GDef( in TEST() local [all …]
|
/external/cronet/net/base/ |
D | backoff_entry_serializer_unittest.cc | 136 BackoffEntry original(&base_policy, &original_ticks); in TEST() local 138 original.SetCustomReleaseTime(test_case.release_time); in TEST() 140 BackoffEntrySerializer::SerializeToList(original, original_time); in TEST() 170 BackoffEntry original(&base_policy, &original_ticks); in TEST() local 171 original.SetCustomReleaseTime(release_time); in TEST() 173 BackoffEntrySerializer::SerializeToList(original, original_time); in TEST() 185 EXPECT_EQ(original.GetReleaseTime(), deserialized->GetReleaseTime()); in TEST() 192 BackoffEntry original(&base_policy, &original_ticks); in TEST() local 194 BackoffEntrySerializer::SerializeToList(original, original_time); in TEST() 200 EXPECT_EQ(original.failure_count(), deserialized->failure_count()); in TEST() [all …]
|
/external/deqp-deps/SPIRV-Tools/test/ |
D | immediate_int_test.cpp | 104 const SpirvVector original = CompiledInstructions("%1 = OpTypeInt 8 1"); in TEST_F() local 105 EXPECT_EQ(original, CompiledInstructions("!0x00040015 1 8 1")); in TEST_F() 106 EXPECT_EQ(original, CompiledInstructions("!0x00040015 !1 8 1")); in TEST_F() 168 const SpirvVector original = in TEST_F() local 170 EXPECT_EQ(original, in TEST_F() 173 EXPECT_EQ(original, in TEST_F() 178 EXPECT_EQ(original, CompiledInstructions("!" + std::to_string(firstWord) + in TEST_F() 194 const SpirvVector original = CompiledInstructions("%a = OpTypeMatrix %b 7"); in TEST_F() local 195 EXPECT_EQ(original, CompiledInstructions("%a = OpTypeMatrix !2 !7")); in TEST_F() 196 EXPECT_EQ(original, CompiledInstructions("!0x00040018 %a !2 !7")); in TEST_F() [all …]
|
/external/doclava/src/com/google/doclava/ |
D | PackageInfo.java | 427 private ClassInfo createDeltaClass(ClassInfo original, in createDeltaClass() argument 433 ClassInfo ret = new ClassInfo(null, original.getRawCommentText(), original.position(), in createDeltaClass() 434 original.isPublic(), original.isProtected(), original.isPackagePrivate(), in createDeltaClass() 435 original.isPrivate(), original.isStatic(), original.isInterface(), in createDeltaClass() 436 original.isAbstract(), original.isOrdinaryClass(), in createDeltaClass() 437 original.isException(), original.isError(), original.isEnum(), original.isAnnotation(), in createDeltaClass() 438 original.isFinal(), original.isIncluded(), original.name(), original.qualifiedName(), in createDeltaClass() 439 original.qualifiedTypeName(), original.isPrimitive()); in createDeltaClass() 440 ArrayList<ClassInfo> interfaces = original.interfaces(); in createDeltaClass() 445 ArrayList<TypeInfo> interfaceTypes = original.interfaceTypes(); in createDeltaClass() [all …]
|
/external/cronet/base/functional/ |
D | callback_unittest.nc | 54 // Calling Then() with a callback that can't receive the original 57 OnceCallback<int*()> original; 59 std::move(original).Then(std::move(then)); 64 // Calling Then() with a callback that can't receive the original 67 OnceCallback<void()> original; 69 std::move(original).Then(std::move(then)); 74 // Calling Then() with a callback that can't receive the original 77 OnceCallback<int()> original; 79 std::move(original).Then(std::move(then)); 84 // Calling Then() with a callback that can't receive the original [all …]
|