Home
last modified time | relevance | path

Searched refs:original (Results 1 – 25 of 3236) sorted by relevance

12345678910>>...130

/external/grpc-grpc/test/core/gprpp/
Dinlined_vector_test.cc120 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/
Dimage-inl.h230 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 …]
Dimage.h200 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/
Ddevice_errors_test.py15 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/
DTransposedTableTest.java31 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/
Dstatusor_test.cc92 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/
Dvector_buffer_unittest.cc44 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/
Dimmediate_int_test.cpp104 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/
Dimmediate_int_test.cpp104 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/
DPackageInfo.java425 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/
DDeflaterSinkTest.java33 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/
Dslice_test.cc46 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/
Drun-strip-test.sh21 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/
DContinuingHttpServletRequest.java104 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/
Dscientificnumberformatter.cpp129 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/
DMultiDirectional.java70 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/
Dstatusor_test.cc246 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/
Dserialization_test.h24 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/
DAtomic.cpp96 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/
DrrMultisamplePixelBufferAccess.cpp50 …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/
Dbuffercomp.c37 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/
DGrTextureMaker.cpp26 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/
DGrTextureMaker.cpp26 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/
DBrotliOutputStreamTest.java71 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/
DTypeLiteral.java171 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 …]

12345678910>>...130