/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/tensorflow/tensorflow/examples/android/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/chromium-trace/catapult/devil/devil/android/ |
D | device_errors_test.py | 15 def assertIsPicklable(self, original): argument 16 pickled = pickle.dumps(original) 18 self.assertEquals(original, reconstructed) 21 original = device_errors.AdbCommandFailedError( 24 self.assertIsPicklable(original) 27 original = device_errors.AdbShellCommandFailedError( 29 self.assertIsPicklable(original) 32 original = device_errors.CommandFailedError( 34 self.assertIsPicklable(original) 37 original = device_errors.CommandTimeoutError( [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/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.ValueOrDie(), copy.ValueOrDie()); in TEST() 99 StatusOr<int> original(Status::CANCELLED); 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/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/swiftshader/third_party/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 | 425 private ClassInfo createDeltaClass(ClassInfo original, in createDeltaClass() argument 431 ClassInfo ret = new ClassInfo(null, original.getRawCommentText(), original.position(), in createDeltaClass() 432 original.isPublic(), original.isProtected(), original.isPackagePrivate(), in createDeltaClass() 433 original.isPrivate(), original.isStatic(), original.isInterface(), in createDeltaClass() 434 original.isAbstract(), original.isOrdinaryClass(), in createDeltaClass() 435 original.isException(), original.isError(), original.isEnum(), original.isAnnotation(), in createDeltaClass() 436 original.isFinal(), original.isIncluded(), original.name(), original.qualifiedName(), in createDeltaClass() 437 original.qualifiedTypeName(), original.isPrimitive()); in createDeltaClass() 438 ArrayList<ClassInfo> interfaces = original.interfaces(); in createDeltaClass() 443 ArrayList<TypeInfo> interfaceTypes = original.interfaceTypes(); in createDeltaClass() [all …]
|
/external/okhttp/okio/okio/src/test/java/okio/ |
D | DeflaterSinkTest.java | 33 String original = "They're moving in herds. They do move in herds."; in deflateWithClose() local 34 data.writeUtf8(original); in deflateWithClose() 40 assertEquals(original, inflated.readUtf8()); in deflateWithClose() 44 String original = "Yes, yes, yes. That's why we're taking extreme precautions."; in deflateWithSyncFlush() local 46 data.writeUtf8(original); in deflateWithSyncFlush() 52 assertEquals(original, inflated.readUtf8()); in deflateWithSyncFlush() 56 String original = repeat('a', 1024 * 1024); in deflateWellCompressed() local 58 data.writeUtf8(original); in deflateWellCompressed() 64 assertEquals(original, inflated.readUtf8()); in deflateWellCompressed() 68 ByteString original = randomBytes(1024 * 1024); in deflatePoorlyCompressed() local [all …]
|
/external/tensorflow/tensorflow/compiler/xla/tests/ |
D | slice_test.cc | 46 auto original = ConstantR3FromArray3D<float>(&builder, values); in TEST_F() local 47 Slice(original, {0, 0, 0}, {3, 3, 1}, {1, 1, 1}); in TEST_F() 59 auto original = ConstantR3FromArray3D<float>(&builder, values); in TEST_F() local 60 Slice(original, {0, 0, 0}, {3, 1, 3}, {1, 1, 1}); in TEST_F() 72 auto original = ConstantR3FromArray3D<float>(&builder, values); in TEST_F() local 73 Slice(original, {0, 0, 0}, {1, 3, 3}, {1, 1, 1}); in TEST_F() 82 auto original = ConstantR2FromArray2D<float>(&builder, Array2D<float>(0, 0)); in XLA_TEST_F() local 83 Slice(original, {0, 0}, {0, 0}, {1, 1}); in XLA_TEST_F() 90 auto original = ConstantR2FromArray2D<float>(&builder, Array2D<float>(0, 20)); in XLA_TEST_F() local 91 Slice(original, {0, 15}, {0, 20}, {1, 1}); in XLA_TEST_F() [all …]
|
/external/elfutils/tests/ |
D | run-strip-test.sh | 21 original=${original:-testfile11} 25 testfiles $original 30 testrun ${abs_top_builddir}/src/strip -o testfile.temp $debugout $original 49 testrun ${abs_top_builddir}/src/elfcmp --hash-inexact $original testfile.unstrip 53 testrun ${abs_top_builddir}/src/strip -g -o testfile.temp $original 61 SIZE_original=$(stat -c%s $original) 62 testrun ${abs_top_builddir}/src/strip $original 63 SIZE_stripped=$(stat -c%s $original) 65 { echo "*** failure in-place strip file not smaller $original"; status=1; }
|
/external/guice/extensions/servlet/src/com/google/inject/servlet/ |
D | ContinuingHttpServletRequest.java | 104 public ImmutableCookie(Cookie original) { in ImmutableCookie() argument 105 super(original.getName(), original.getValue()); in ImmutableCookie() 107 super.setMaxAge(original.getMaxAge()); in ImmutableCookie() 108 super.setPath(original.getPath()); in ImmutableCookie() 109 super.setComment(original.getComment()); in ImmutableCookie() 110 super.setSecure(original.getSecure()); in ImmutableCookie() 111 super.setValue(original.getValue()); in ImmutableCookie() 112 super.setVersion(original.getVersion()); in ImmutableCookie() 114 if (original.getDomain() != null) { in ImmutableCookie() 115 super.setDomain(original.getDomain()); in ImmutableCookie()
|
/external/icu/icu4c/source/i18n/ |
D | scientificnumberformatter.cpp | 129 const UnicodeString &original, in format() argument 143 original, in format() 154 UChar32 aChar = original.char32At(beginIndex); in format() 157 original, in format() 163 original, in format() 176 original, in format() 180 original, in format() 194 original, copyFromOffset, original.length() - copyFromOffset); in format() 203 const UnicodeString &original, in format() argument 217 original, in format() [all …]
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/direct/ |
D | MultiDirectional.java | 70 final RealPointValuePair[] original = simplex; in iterateSimplex() local 71 final RealPointValuePair best = original[0]; in iterateSimplex() 74 final RealPointValuePair reflected = evaluateNewSimplex(original, 1.0, comparator); in iterateSimplex() 79 final RealPointValuePair expanded = evaluateNewSimplex(original, khi, comparator); in iterateSimplex() 90 final RealPointValuePair contracted = evaluateNewSimplex(original, gamma, comparator); in iterateSimplex() 100 converged &= checker.converged(iter, original[i], simplex[i]); in iterateSimplex() 118 private RealPointValuePair evaluateNewSimplex(final RealPointValuePair[] original, in evaluateNewSimplex() argument 123 final double[] xSmallest = original[0].getPointRef(); in evaluateNewSimplex() 128 simplex[0] = original[0]; in evaluateNewSimplex() 130 final double[] xOriginal = original[i].getPointRef(); in evaluateNewSimplex()
|
/external/tensorflow/tensorflow/stream_executor/lib/ |
D | statusor_test.cc | 246 const StatusOr<int> original(kI); in TEST() local 247 const StatusOr<int> copy(original); in TEST() 248 EXPECT_EQ(copy.status(), original.status()); in TEST() 249 EXPECT_EQ(original.ValueOrDie(), copy.ValueOrDie()); in TEST() 253 StatusOr<int> original(Status(tensorflow::error::CANCELLED, "")); in TEST() local 254 StatusOr<int> copy(original); in TEST() 255 EXPECT_EQ(copy.status(), original.status()); in TEST() 261 StatusOr<CopyNoAssign> original(value); in TEST() local 262 StatusOr<CopyNoAssign> copy(original); in TEST() 263 EXPECT_EQ(copy.status(), original.status()); in TEST() [all …]
|
/external/sfntly/cpp/src/test/ |
D | serialization_test.h | 24 bool VerifyHHEA(Table* original, Table* target); 25 bool VerifyGLYF(Table* original, Table* target); 26 bool VerifyHMTX(Table* original, Table* target); 27 bool VerifyLOCA(Table* original, Table* target); 28 bool VerifyMAXP(Table* original, Table* target); 29 bool VerifyNAME(Table* original, Table* target); 30 bool VerifyOS_2(Table* original, Table* target);
|
/external/swiftshader/third_party/LLVM/lib/Support/ |
D | Atomic.cpp | 96 sys::cas_flag original, result; in AtomicMul() local 98 original = *ptr; in AtomicMul() 99 result = original * val; in AtomicMul() 100 } while (sys::CompareAndSwap(ptr, result, original) != original); in AtomicMul() 106 sys::cas_flag original, result; in AtomicDiv() local 108 original = *ptr; in AtomicDiv() 109 result = original / val; in AtomicDiv() 110 } while (sys::CompareAndSwap(ptr, result, original) != original); in AtomicDiv()
|
/external/deqp/framework/referencerenderer/ |
D | rrMultisamplePixelBufferAccess.cpp | 50 …ccess MultisamplePixelBufferAccess::fromSinglesampleAccess (const tcu::PixelBufferAccess& original) in fromSinglesampleAccess() argument 54 original.getFormat(), in fromSinglesampleAccess() 55 tcu::IVec3(1, original.getWidth(), original.getHeight()), in fromSinglesampleAccess() 56 tcu::IVec3(original.getPixelPitch(), original.getPixelPitch(), original.getRowPitch()), in fromSinglesampleAccess() 57 original.getDataPtr())); in fromSinglesampleAccess() 90 …isampleConstPixelBufferAccess::fromSinglesampleAccess (const tcu::ConstPixelBufferAccess& original) in fromSinglesampleAccess() argument 94 original.getFormat(), in fromSinglesampleAccess() 95 tcu::IVec3(1, original.getWidth(), original.getHeight()), in fromSinglesampleAccess() 96 tcu::IVec3(original.getPixelPitch(), original.getPixelPitch(), original.getRowPitch()), in fromSinglesampleAccess() 97 original.getDataPtr())); in fromSinglesampleAccess()
|
/external/libxkbcommon/xkbcommon/test/ |
D | buffercomp.c | 37 char *original, *dump; in main() local 44 original = test_read_file(DATA_PATH); in main() 45 assert(original); in main() 47 keymap = test_compile_buffer(ctx, original, strlen(original)); in main() 53 if (!streq(original, dump)) { in main() 60 (unsigned long) strlen(original)); in main() 67 free(original); in main()
|
/external/skqp/src/gpu/ |
D | GrTextureMaker.cpp | 26 sk_sp<GrTextureProxy> original(this->refOriginalTextureProxy(willBeMipped, in onRefTextureProxyForParams() local 29 if (original) { in onRefTextureProxyForParams() 31 !GrGpu::IsACopyNeededForRepeatWrapMode(fContext->contextPriv().caps(), original.get(), in onRefTextureProxyForParams() 32 original->width(), original->height(), in onRefTextureProxyForParams() 35 original.get(), params.filter(), in onRefTextureProxyForParams() 38 return original; in onRefTextureProxyForParams() 52 GrSurfaceOrigin origOrigin = original ? original->origin() : kTopLeft_GrSurfaceOrigin; in onRefTextureProxyForParams() 64 if (original) { in onRefTextureProxyForParams() 65 source = std::move(original); in onRefTextureProxyForParams()
|
/external/skia/src/gpu/ |
D | GrTextureMaker.cpp | 26 sk_sp<GrTextureProxy> original(this->refOriginalTextureProxy(willBeMipped, in onRefTextureProxyForParams() local 29 if (original) { in onRefTextureProxyForParams() 31 !GrGpu::IsACopyNeededForRepeatWrapMode(this->context()->priv().caps(), original.get(), in onRefTextureProxyForParams() 32 original->width(), original->height(), in onRefTextureProxyForParams() 35 original.get(), params.filter(), in onRefTextureProxyForParams() 38 return original; in onRefTextureProxyForParams() 52 GrSurfaceOrigin origOrigin = original ? original->origin() : kTopLeft_GrSurfaceOrigin; in onRefTextureProxyForParams() 64 if (original) { in onRefTextureProxyForParams() 65 source = std::move(original); in onRefTextureProxyForParams()
|
/external/brotli/java/org/brotli/wrapper/enc/ |
D | BrotliOutputStreamTest.java | 71 byte[] original; in run() 73 original = BundleHelper.readEntry(bundle, entryName); in run() 77 if (original == null) { in run() 81 if ((mode == TestMode.WRITE_CHUNKS) && (original.length <= CHUNK_SIZE)) { in run() 90 encoder.write(original); in run() 94 for (int offset = 0; offset < original.length; offset += CHUNK_SIZE) { in run() 95 encoder.write(original, offset, Math.min(CHUNK_SIZE, original.length - offset)); in run() 100 for (byte singleByte : original) { in run() 111 long originalCrc = BundleHelper.fingerprintStream(new ByteArrayInputStream(original)); in run()
|
/external/guice/core/src/com/google/inject/ |
D | TypeLiteral.java | 171 TypeVariable original = (TypeVariable) toResolve; in resolveType() local 172 toResolve = MoreTypes.resolveTypeVariable(type, rawType, original); in resolveType() 173 if (toResolve == original) { in resolveType() 178 GenericArrayType original = (GenericArrayType) toResolve; in resolveType() local 179 Type componentType = original.getGenericComponentType(); in resolveType() 181 return componentType == newComponentType ? original : Types.arrayOf(newComponentType); in resolveType() 184 ParameterizedType original = (ParameterizedType) toResolve; in resolveType() local 185 Type ownerType = original.getOwnerType(); in resolveType() 189 Type[] args = original.getActualTypeArguments(); in resolveType() 202 ? Types.newParameterizedTypeWithOwner(newOwnerType, original.getRawType(), args) in resolveType() [all …]
|