Home
last modified time | relevance | path

Searched refs:deltas (Results 1 – 25 of 71) sorted by relevance

123

/external/guava/guava-tests/test/com/google/common/collect/
DConcurrentHashMultisetBasherTest.java77 int[] deltas = new int[3]; in testAddAndRemove() local
80 for (int i = 0; i < deltas.length; i++) { in testAddAndRemove()
81 deltas[i] += taskDeltas[i]; in testAddAndRemove()
91 assertEquals("Counts not as expected", Ints.asList(deltas), actualCounts); in testAddAndRemove()
115 int[] deltas = new int[nKeys]; in call() local
125 deltas[keyIndex] += delta; in call()
131 deltas[keyIndex] += (newValue - oldValue); in call()
138 deltas[keyIndex] += (newValue - oldValue); in call()
145 deltas[keyIndex] -= Math.min(delta, oldValue); in call()
151 deltas[keyIndex] -= delta; in call()
[all …]
/external/libchrome/base/metrics/
Dhistogram_delta_serialization_unittest.cc20 std::vector<std::string> deltas; in TEST() local
22 serializer.PrepareAndSerializeDeltas(&deltas, true); in TEST()
23 EXPECT_TRUE(deltas.empty()); in TEST()
32 serializer.PrepareAndSerializeDeltas(&deltas, true); in TEST()
33 EXPECT_FALSE(deltas.empty()); in TEST()
35 HistogramDeltaSerialization::DeserializeAndAddSamples(deltas); in TEST()
46 HistogramDeltaSerialization::DeserializeAndAddSamples(deltas); in TEST()
/external/ltp/testcases/realtime/func/measurement/
Drdtsc-latency.c102 unsigned long long deltas[ITERATIONS]; in main() local
148 deltas[i] = (tsc_minus(tsc_a, tsc_b) * tsc_period) / 1000; /* tsc period is in ps */ in main()
149 if (i == 0 || deltas[i] < min) in main()
150 min = deltas[i]; in main()
151 if (deltas[i] > max) in main()
152 max = deltas[i]; in main()
153 avg += deltas[i]; in main()
/external/tensorflow/tensorflow/examples/android/jni/object_tracking/
Dframe_pair.cc37 static Point2f deltas[kMaxKeypoints]; in AdjustBox() local
43 FillTranslations(deltas); in AdjustBox()
45 const Point2f translation = GetWeightedMedian(weights, deltas); in AdjustBox()
52 FillScales(old_center, translation, weights, deltas); in AdjustBox()
71 const float scale_factor = GetWeightedMedianScale(weights, deltas); in AdjustBox()
223 const float* const weights, const Point2f* const deltas) const { in GetWeightedMedian()
235 weighted_deltas[i].delta = deltas[i].x; in GetWeightedMedian()
255 weighted_deltas[i].delta = deltas[i].y; in GetWeightedMedian()
269 const float* const weights, const Point2f* const deltas) const { in GetWeightedMedianScale()
281 weighted_deltas[i].delta = deltas[i].x; in GetWeightedMedianScale()
[all …]
Dutils_neon.cc83 const float32x4_t deltas = in ComputeStdDevNeon() local
86 accum = vmlaq_f32(accum, deltas, deltas); in ComputeStdDevNeon()
Dframe_pair.h51 const Point2f* const deltas) const;
54 const Point2f* const deltas) const;
/external/python/cpython3/Lib/test/libregrtest/
Drefleak.py97 def check_rc_deltas(deltas): argument
98 return any(deltas)
99 def check_alloc_deltas(deltas): argument
101 if 3 * deltas.count(0) < len(deltas):
104 if not set(deltas) <= {1,0,-1}:
108 for deltas, item_name, checker in [
112 if checker(deltas):
114 test, deltas[nwarmup:], item_name, sum(deltas))
/external/dng_sdk/source/
Ddng_misc_opcodes.cpp864 uint32 deltas = SafeUint32DivideUp (fAreaSpec.Area ().H (), in dng_opcode_DeltaPerRow() local
867 if (deltas != stream.Get_uint32 ()) in dng_opcode_DeltaPerRow()
872 if (dataSize != dng_area_spec::kDataSize + 4 + deltas * 4) in dng_opcode_DeltaPerRow()
877 fTable.Reset (host.Allocate (SafeUint32Mult (deltas, in dng_opcode_DeltaPerRow()
882 for (uint32 j = 0; j < deltas; j++) in dng_opcode_DeltaPerRow()
892 printf ("Count: %u\n", (unsigned) deltas); in dng_opcode_DeltaPerRow()
894 for (uint32 k = 0; k < deltas && k < gDumpLineLimit; k++) in dng_opcode_DeltaPerRow()
899 if (deltas > gDumpLineLimit) in dng_opcode_DeltaPerRow()
901 printf (" ... %u deltas skipped\n", (unsigned) (deltas - gDumpLineLimit)); in dng_opcode_DeltaPerRow()
915 uint32 deltas = SafeUint32DivideUp (fAreaSpec.Area ().H (), in PutData() local
[all …]
Ddng_hue_sat_map.cpp157 const HSBModify *deltas = GetConstDeltas (); in GetDelta() local
159 modify.fHueShift = deltas [offset].fHueShift; in GetDelta()
160 modify.fSatScale = deltas [offset].fSatScale; in GetDelta()
161 modify.fValScale = deltas [offset].fValScale; in GetDelta()
/external/skqp/src/core/
DSkScan_DAAPath.cpp75 SkFixed nextX, Deltas* deltas) { // rowHeight=fullAlpha in add_coverage_delta_segment() argument
90 deltas->addDelta(L, y, rowHeight * sign); in add_coverage_delta_segment()
99 deltas->addDelta(L, y, alpha * sign); in add_coverage_delta_segment()
100 deltas->addDelta(L + 1, y, (rowHeight - alpha) * sign); in add_coverage_delta_segment()
109 deltas->addDelta(L, y, alpha1 * sign); in add_coverage_delta_segment()
110 deltas->addDelta(L + 1, y, (alpha2 - alpha1) * sign); in add_coverage_delta_segment()
111 deltas->addDelta(L + 2, y, (rowHeight - alpha2) * sign); in add_coverage_delta_segment()
126 deltas->addDelta(L, y, alpha0 * sign); in add_coverage_delta_segment()
127 deltas->addDelta(L + 1, y, (alpha1 - alpha0) * sign); in add_coverage_delta_segment()
129 deltas->addDelta(L + i, y, dY * sign); // the increment is always a rect of height = dY in add_coverage_delta_segment()
[all …]
DSkBlitter.cpp82 void SkBlitter::blitCoverageDeltas(SkCoverageDeltaList* deltas, const SkIRect& clip, in blitCoverageDeltas() argument
90 bool canUseMask = !deltas->forceRLE() && in blitCoverageDeltas()
92 const SkAntiRect& antiRect = deltas->getAntiRect(); in blitCoverageDeltas()
93 for(int y = deltas->top(); y < deltas->bottom(); ++y) { in blitCoverageDeltas()
105 if (canUseMask && !deltas->sorted(y) && deltas->count(y) << 3 >= clip.width()) { in blitCoverageDeltas()
109 for(int i = 0; i < deltas->count(y); ++i) { in blitCoverageDeltas()
110 const SkCoverageDelta& delta = deltas->getDelta(y, i); in blitCoverageDeltas()
119 deltas->sort(y); in blitCoverageDeltas()
126 for(; i < deltas->count(y) && deltas->getDelta(y, i).fX < clip.fLeft; ++i); in blitCoverageDeltas()
127 for(; i < deltas->count(y) && deltas->getDelta(y, i).fX < clip.fRight; ++i) { in blitCoverageDeltas()
[all …]
/external/skia/src/core/
DSkScan_DAAPath.cpp75 SkFixed nextX, Deltas* deltas) { // rowHeight=fullAlpha in add_coverage_delta_segment() argument
90 deltas->addDelta(L, y, rowHeight * sign); in add_coverage_delta_segment()
99 deltas->addDelta(L, y, alpha * sign); in add_coverage_delta_segment()
100 deltas->addDelta(L + 1, y, (rowHeight - alpha) * sign); in add_coverage_delta_segment()
109 deltas->addDelta(L, y, alpha1 * sign); in add_coverage_delta_segment()
110 deltas->addDelta(L + 1, y, (alpha2 - alpha1) * sign); in add_coverage_delta_segment()
111 deltas->addDelta(L + 2, y, (rowHeight - alpha2) * sign); in add_coverage_delta_segment()
126 deltas->addDelta(L, y, alpha0 * sign); in add_coverage_delta_segment()
127 deltas->addDelta(L + 1, y, (alpha1 - alpha0) * sign); in add_coverage_delta_segment()
129 deltas->addDelta(L + i, y, dY * sign); // the increment is always a rect of height = dY in add_coverage_delta_segment()
[all …]
DSkBlitter.cpp83 void SkBlitter::blitCoverageDeltas(SkCoverageDeltaList* deltas, const SkIRect& clip, in blitCoverageDeltas() argument
93 bool canUseMask = !deltas->forceRLE() && in blitCoverageDeltas()
95 const SkAntiRect& antiRect = deltas->getAntiRect(); in blitCoverageDeltas()
98 int top = SkTMax(deltas->top(), clip.fTop); in blitCoverageDeltas()
99 int bottom = SkTMin(deltas->bottom(), clip.fBottom); in blitCoverageDeltas()
112 if (canUseMask && !deltas->sorted(y) && deltas->count(y) << 3 >= clip.width()) { in blitCoverageDeltas()
116 for(int i = 0; i < deltas->count(y); ++i) { in blitCoverageDeltas()
117 const SkCoverageDelta& delta = deltas->getDelta(y, i); in blitCoverageDeltas()
126 deltas->sort(y); in blitCoverageDeltas()
133 for(; i < deltas->count(y) && deltas->getDelta(y, i).fX < clip.fLeft; ++i); in blitCoverageDeltas()
[all …]
/external/webrtc/webrtc/modules/rtp_rtcp/source/rtcp_packet/
Dtransport_feedback_unittest.cc114 std::vector<int64_t> deltas = feedback_->GetReceiveDeltasUs(); in VerifyInternal() local
115 ASSERT_EQ(expected_deltas_.size(), deltas.size()); in VerifyInternal()
117 EXPECT_EQ(expected_deltas_[i], deltas[i]) << "Delta mismatch @ " << i; in VerifyInternal()
122 int64_t* deltas) { in GenerateDeltas() argument
131 deltas[i] = offset + (last_seq * default_delta_); in GenerateDeltas()
343 std::vector<int64_t> deltas = feedback.GetReceiveDeltasUs(); in TEST() local
347 for (int64_t delta : deltas) { in TEST()
465 for (int deltas = 0; deltas <= kOneBitVectorCapacity + 1; ++deltas) { in TEST() local
468 for (int i = 0; i < deltas; ++i) in TEST()
470 feedback.WithReceivedPacket(deltas, deltas * 1000 + kLargeTimeDelta); in TEST()
/external/tensorflow/tensorflow/core/kernels/
Dsdca_internal.h200 TTypes<float>::Matrix deltas) in FeatureWeightsDenseStorage() argument
201 : nominals_(nominals), deltas_(deltas) { in FeatureWeightsDenseStorage()
202 CHECK(deltas.rank() > 1); in FeatureWeightsDenseStorage()
214 TTypes<float>::Matrix deltas() const { return deltas_; } in deltas() function
236 TTypes<float>::Matrix deltas) in FeatureWeightsSparseStorage() argument
237 : nominals_(nominals), deltas_(deltas) { in FeatureWeightsSparseStorage()
257 float deltas(const int class_id, const int64 index) const { in deltas() function
Dsdca_internal.cc113 auto deltas = delta_t->shaped<float, 2>({1, delta_t->NumElements()}); in Initialize() local
114 deltas.setZero(); in Initialize()
119 deltas}); in Initialize()
132 auto deltas = delta_t->shaped<float, 2>({1, delta_t->NumElements()}); in Initialize() local
133 deltas.setZero(); in Initialize()
137 deltas}); in Initialize()
172 sparse_weights.deltas(l, feature_index) * num_loss_partitions; in ComputeWxAndWeightedExampleNorm()
189 dense_weights.deltas() * in ComputeWxAndWeightedExampleNorm()
190 dense_weights.deltas().constant(num_loss_partitions); in ComputeWxAndWeightedExampleNorm()
/external/webp/src/dec/
Dalpha_dec.c117 const uint8_t* deltas = dec->alpha_data_ + ALPHA_HEADER_LEN + row * width; in ALPHDecode() local
119 assert(deltas <= &dec->alpha_data_[dec->alpha_data_size_]); in ALPHDecode()
123 WebPUnfilters[alph_dec->filter_](prev_line, deltas, dst, width); in ALPHDecode()
126 deltas += width; in ALPHDecode()
130 memcpy(dst, deltas, width * sizeof(*dst)); in ALPHDecode()
133 deltas += width; in ALPHDecode()
/external/libchrome/base/test/
Dtrace_event_analyzer.cc905 std::vector<double> deltas; in GetRateStats() local
913 deltas.push_back(delta); in GetRateStats()
916 std::sort(deltas.begin(), deltas.end()); in GetRateStats()
923 deltas.erase(deltas.begin(), deltas.begin() + options->trim_min); in GetRateStats()
924 deltas.erase(deltas.end() - options->trim_max, deltas.end()); in GetRateStats()
927 num_deltas = deltas.size(); in GetRateStats()
930 delta_sum += deltas[i]; in GetRateStats()
932 stats->min_us = *std::min_element(deltas.begin(), deltas.end()); in GetRateStats()
933 stats->max_us = *std::max_element(deltas.begin(), deltas.end()); in GetRateStats()
938 double offset = fabs(deltas[i] - stats->mean_us); in GetRateStats()
/external/tensorflow/tensorflow/python/data/kernel_tests/
Ddataset_constructor_op_test.py517 deltas = []
522 deltas.append(time.time() - start)
526 median_wall_time = np.median(deltas)
531 iters=len(deltas),
555 deltas = []
560 deltas.append(time.time() - start)
564 median_wall_time = np.median(deltas)
570 iters=len(deltas),
594 deltas = []
599 deltas.append(time.time() - start)
[all …]
/external/tensorflow/tensorflow/contrib/eager/python/
Ddatasets_test.py187 deltas = np.ediff1d(ends)
188 median_wall_time = np.median(deltas)
194 iters=len(deltas),
215 deltas = np.ediff1d(ends)
216 median_wall_time = np.median(deltas)
222 iters=len(deltas),
/external/tensorflow/tensorflow/contrib/tensor_forest/kernels/
Dscatter_add_ndim_op.cc67 const auto deltas = deltas_tensor.unaligned_flat<float>(); in Compute() local
102 CHECK(delta_index < deltas.size()); in Compute()
103 input(input_index) += deltas(delta_index); in Compute()
/external/python/cpython2/Lib/encodings/
Dpunycode.py108 def generate_integers(baselen, deltas): argument
113 for points, delta in enumerate(deltas):
122 deltas = insertion_unsort(text, extended)
123 extended = generate_integers(len(base), deltas)
/external/tensorflow/tensorflow/python/training/
Dlocalhost_cluster_performance_test.py61 deltas = []
67 deltas.append(end_time - start_time)
69 median_deltas = np.median(deltas)
/external/python/cpython3/Lib/encodings/
Dpunycode.py106 def generate_integers(baselen, deltas): argument
111 for points, delta in enumerate(deltas):
119 deltas = insertion_unsort(text, extended)
120 extended = generate_integers(len(base), deltas)
/external/walt/pywalt/pywalt/
Dwalt.py468 deltas = []
469 while len(deltas) < args.n:
486 deltas.append(dt)
488 print('Median tap-to-audio latency: %0.1f ms' % numpy.median(deltas))
502 deltas = []
503 while len(deltas) < args.n:
512 deltas.append(dt)
514 print('Median tap-to-blink latency: %0.1f ms' % numpy.median(deltas))

123