/external/libmojo/base/android/ |
D | record_histogram.cc | 34 std::string HistogramConstructionParamsToString(HistogramBase* histogram) { in HistogramConstructionParamsToString() argument 35 std::string params_str = histogram->histogram_name(); in HistogramConstructionParamsToString() 36 switch (histogram->GetHistogramType()) { in HistogramConstructionParamsToString() 41 Histogram* hist = static_cast<Histogram*>(histogram); in HistogramConstructionParamsToString() 57 HistogramBase* histogram) { in CheckHistogramArgs() argument 62 DCHECK(histogram->HasConstructionArguments(expected_min, expected_max, in CheckHistogramArgs() 66 << HistogramConstructionParamsToString(histogram); in CheckHistogramArgs() 73 HistogramBase* histogram = HistogramFromKey(j_histogram_key); in BooleanHistogram() local 74 if (histogram) in BooleanHistogram() 75 return histogram; in BooleanHistogram() [all …]
|
/external/libchrome/base/metrics/ |
D | histogram_unittest.cc | 100 HistogramBase* histogram = Histogram::FactoryGet( in TEST_P() local 102 EXPECT_TRUE(histogram); in TEST_P() 143 HistogramBase* histogram = LinearHistogram::FactoryGet( in TEST_P() local 146 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotSamples(); in TEST_P() 153 HistogramBase* histogram = in TEST_P() local 156 histogram->Add(1); in TEST_P() 157 histogram->Add(10); in TEST_P() 158 histogram->Add(50); in TEST_P() 160 std::unique_ptr<HistogramSamples> samples = histogram->SnapshotDelta(); in TEST_P() 167 samples = histogram->SnapshotDelta(); in TEST_P() [all …]
|
D | sparse_histogram_unittest.cc | 95 std::unique_ptr<SparseHistogram> histogram(NewSparseHistogram("Sparse")); in TEST_P() local 96 std::unique_ptr<HistogramSamples> snapshot(histogram->SnapshotSamples()); in TEST_P() 100 histogram->Add(100); in TEST_P() 101 std::unique_ptr<HistogramSamples> snapshot1(histogram->SnapshotSamples()); in TEST_P() 105 histogram->Add(100); in TEST_P() 106 histogram->Add(101); in TEST_P() 107 std::unique_ptr<HistogramSamples> snapshot2(histogram->SnapshotSamples()); in TEST_P() 114 std::unique_ptr<SparseHistogram> histogram(NewSparseHistogram("Sparse")); in TEST_P() local 115 std::unique_ptr<HistogramSamples> snapshot(histogram->SnapshotSamples()); in TEST_P() 119 histogram->AddCount(100, 15); in TEST_P() [all …]
|
D | histogram_snapshot_manager.cc | 26 void HistogramSnapshotManager::PrepareDelta(HistogramBase* histogram) { in PrepareDelta() argument 27 PrepareSamples(histogram, histogram->SnapshotDelta()); in PrepareDelta() 31 const HistogramBase* histogram) { in PrepareFinalDelta() argument 32 PrepareSamples(histogram, histogram->SnapshotFinalDelta()); in PrepareFinalDelta() 36 const HistogramBase* histogram, in PrepareSamples() argument 42 SampleInfo* sample_info = &known_histograms_[histogram->name_hash()]; in PrepareSamples() 47 uint32_t corruption = histogram->FindCorruption(*samples); in PrepareSamples() 51 static_cast<const Histogram*>(histogram)->bucket_ranges(); in PrepareSamples() 58 const char* histogram_name = histogram->histogram_name().c_str(); in PrepareSamples() 59 int32_t flags = histogram->flags(); in PrepareSamples() [all …]
|
D | statistics_recorder_unittest.cc | 92 void DeleteHistogram(HistogramBase* histogram) { in DeleteHistogram() argument 93 delete histogram; in DeleteHistogram() 139 Histogram* histogram = CreateHistogram("TestHistogram", 1, 1000, 10); in TEST_P() local 142 EXPECT_EQ(histogram, in TEST_P() 143 StatisticsRecorder::RegisterOrDeleteDuplicate(histogram)); in TEST_P() 145 DeleteHistogram(histogram); in TEST_P() 196 Histogram* histogram = CreateHistogram("TestHistogram", 1, 1000, 10); in TEST_P() local 203 EXPECT_EQ(histogram, in TEST_P() 204 StatisticsRecorder::RegisterOrDeleteDuplicate(histogram)); in TEST_P() 209 EXPECT_EQ(histogram, in TEST_P() [all …]
|
D | histogram_base_unittest.cc | 47 HistogramBase* histogram = Histogram::FactoryGet( in TEST_F() local 53 ASSERT_TRUE(histogram->SerializeInfo(&pickle)); in TEST_F() 57 EXPECT_EQ(histogram, deserialized); in TEST_F() 64 EXPECT_NE(histogram, deserialized); in TEST_F() 73 HistogramBase* histogram = LinearHistogram::FactoryGet( in TEST_F() local 78 ASSERT_TRUE(histogram->SerializeInfo(&pickle)); in TEST_F() 82 EXPECT_EQ(histogram, deserialized); in TEST_F() 89 EXPECT_NE(histogram, deserialized); in TEST_F() 96 HistogramBase* histogram = BooleanHistogram::FactoryGet( in TEST_F() local 100 ASSERT_TRUE(histogram->SerializeInfo(&pickle)); in TEST_F() [all …]
|
D | persistent_histogram_allocator.cc | 381 std::unique_ptr<HistogramBase> histogram = CreateHistogram(histogram_data); in AllocateHistogram() local 382 DCHECK(histogram); in AllocateHistogram() 396 return histogram; in AllocateHistogram() 437 HistogramBase* histogram) { in MergeHistogramDeltaToStatisticsRecorder() argument 438 DCHECK(histogram); in MergeHistogramDeltaToStatisticsRecorder() 440 HistogramBase* existing = GetOrCreateStatisticsRecorderHistogram(histogram); in MergeHistogramDeltaToStatisticsRecorder() 452 existing->AddSamples(*histogram->SnapshotDelta()); in MergeHistogramDeltaToStatisticsRecorder() 456 const HistogramBase* histogram) { in MergeHistogramFinalDeltaToStatisticsRecorder() argument 457 DCHECK(histogram); in MergeHistogramFinalDeltaToStatisticsRecorder() 459 HistogramBase* existing = GetOrCreateStatisticsRecorderHistogram(histogram); in MergeHistogramFinalDeltaToStatisticsRecorder() [all …]
|
D | histogram_delta_serialization_unittest.cc | 25 HistogramBase* histogram = Histogram::FactoryGet( in TEST() local 27 histogram->Add(1); in TEST() 28 histogram->Add(10); in TEST() 29 histogram->Add(100); in TEST() 30 histogram->Add(1000); in TEST() 38 std::unique_ptr<HistogramSamples> snapshot(histogram->SnapshotSamples()); in TEST() 45 histogram->ClearFlags(HistogramBase::kIPCSerializationSourceFlag); in TEST() 48 std::unique_ptr<HistogramSamples> snapshot2(histogram->SnapshotSamples()); in TEST()
|
D | statistics_recorder.cc | 124 HistogramBase* histogram) { in RegisterOrDeleteDuplicate() argument 130 histogram_to_return = histogram; in RegisterOrDeleteDuplicate() 137 ANNOTATE_LEAKING_OBJECT_PTR(histogram); // see crbug.com/79322 in RegisterOrDeleteDuplicate() 139 const std::string& name = histogram->histogram_name(); in RegisterOrDeleteDuplicate() 144 (*histograms_)[name] = histogram; in RegisterOrDeleteDuplicate() 145 ANNOTATE_LEAKING_OBJECT_PTR(histogram); // see crbug.com/79322 in RegisterOrDeleteDuplicate() 151 histogram->SetFlags(HistogramBase::kCallbackExists); in RegisterOrDeleteDuplicate() 153 histogram->ClearFlags(HistogramBase::kCallbackExists); in RegisterOrDeleteDuplicate() 155 histogram_to_return = histogram; in RegisterOrDeleteDuplicate() 156 } else if (histogram == it->second) { in RegisterOrDeleteDuplicate() [all …]
|
D | histogram_delta_serialization.cc | 22 HistogramBase* histogram = DeserializeHistogramInfo(iter); in DeserializeHistogramAndAddSamples() local 23 if (!histogram) in DeserializeHistogramAndAddSamples() 26 if (histogram->flags() & HistogramBase::kIPCSerializationSourceFlag) { in DeserializeHistogramAndAddSamples() 28 << histogram->histogram_name(); in DeserializeHistogramAndAddSamples() 31 histogram->AddSamplesFromPickle(iter); in DeserializeHistogramAndAddSamples() 90 const HistogramBase& histogram, in RecordDelta() argument 96 histogram.SerializeInfo(&pickle); in RecordDelta()
|
/external/libmojo/base/android/javatests/src/org/chromium/base/metrics/ |
D | RecordHistogramTest.java | 38 String histogram = "HelloWorld.BooleanMetric"; in testRecordBooleanHistogram() local 39 HistogramDelta falseCount = new HistogramDelta(histogram, 0); in testRecordBooleanHistogram() 40 HistogramDelta trueCount = new HistogramDelta(histogram, 1); in testRecordBooleanHistogram() 44 RecordHistogram.recordBooleanHistogram(histogram, true); in testRecordBooleanHistogram() 48 RecordHistogram.recordBooleanHistogram(histogram, true); in testRecordBooleanHistogram() 52 RecordHistogram.recordBooleanHistogram(histogram, false); in testRecordBooleanHistogram() 63 String histogram = "HelloWorld.EnumeratedMetric"; in testRecordEnumeratedHistogram() local 64 HistogramDelta zeroCount = new HistogramDelta(histogram, 0); in testRecordEnumeratedHistogram() 65 HistogramDelta oneCount = new HistogramDelta(histogram, 1); in testRecordEnumeratedHistogram() 66 HistogramDelta twoCount = new HistogramDelta(histogram, 2); in testRecordEnumeratedHistogram() [all …]
|
/external/ImageMagick/coders/ |
D | histogram.c | 193 *histogram; in WriteHISTOGRAMImage() local 243 histogram=(PixelInfo *) AcquireQuantumMemory(length,sizeof(*histogram)); in WriteHISTOGRAMImage() 244 if (histogram == (PixelInfo *) NULL) in WriteHISTOGRAMImage() 252 (void) ResetMagickMemory(histogram,0,length*sizeof(*histogram)); in WriteHISTOGRAMImage() 261 histogram[ScaleQuantumToChar(GetPixelRed(image,p))].red++; in WriteHISTOGRAMImage() 263 histogram[ScaleQuantumToChar(GetPixelGreen(image,p))].green++; in WriteHISTOGRAMImage() 265 histogram[ScaleQuantumToChar(GetPixelBlue(image,p))].blue++; in WriteHISTOGRAMImage() 269 maximum=histogram[0].red; in WriteHISTOGRAMImage() 273 (maximum < histogram[x].red)) in WriteHISTOGRAMImage() 274 maximum=histogram[x].red; in WriteHISTOGRAMImage() [all …]
|
/external/brotli/c/enc/ |
D | bit_cost_inc.h | 12 double FN(BrotliPopulationCost)(const HistogramType* histogram) { in FN() 22 if (histogram->total_count_ == 0) { in FN() 26 if (histogram->data_[i] > 0) { in FN() 36 return (kTwoSymbolHistogramCost + (double)histogram->total_count_); in FN() 39 const uint32_t histo0 = histogram->data_[s[0]]; in FN() 40 const uint32_t histo1 = histogram->data_[s[1]]; in FN() 41 const uint32_t histo2 = histogram->data_[s[2]]; in FN() 52 histo[i] = histogram->data_[s[i]]; in FN() 75 const double log2total = FastLog2(histogram->total_count_); in FN() 77 if (histogram->data_[i] > 0) { in FN() [all …]
|
D | literal_cost.c | 61 size_t histogram[3][256] = { { 0 } }; in EstimateBitCostsForLiteralsUTF8() local 72 ++histogram[utf8_pos][c]; in EstimateBitCostsForLiteralsUTF8() 88 --histogram[utf8_pos2][data[(pos + i - window_half) & mask]]; in EstimateBitCostsForLiteralsUTF8() 96 ++histogram[utf8_pos2][data[(pos + i + window_half) & mask]]; in EstimateBitCostsForLiteralsUTF8() 104 size_t histo = histogram[utf8_pos][data[masked_pos]]; in EstimateBitCostsForLiteralsUTF8() 133 size_t histogram[256] = { 0 }; in BrotliEstimateBitCostsForLiterals() local 140 ++histogram[data[(pos + i) & mask]]; in BrotliEstimateBitCostsForLiterals() 148 --histogram[data[(pos + i - window_half) & mask]]; in BrotliEstimateBitCostsForLiterals() 153 ++histogram[data[(pos + i + window_half) & mask]]; in BrotliEstimateBitCostsForLiterals() 156 histo = histogram[data[(pos + i) & mask]]; in BrotliEstimateBitCostsForLiterals()
|
/external/v8/tools/ |
D | eval_gc_nvp.py | 48 self.histogram = {} 54 if index not in self.histogram: 55 self.histogram[index] = 0 56 self.histogram[index] += 1 60 keys = self.histogram.keys() 68 str(min_value), str(max_value), self.histogram[i])) 77 def __init__(self, key, histogram, csv, percentiles): argument 80 self.histogram = histogram 87 if self.histogram: 88 self.histogram.add(float(entry[self.key])) [all …]
|
/external/webrtc/webrtc/modules/audio_processing/utility/ |
D | delay_estimator.c | 114 self->histogram[candidate_delay] += valley_depth; in UpdateRobustValidationStatistics() 115 if (self->histogram[candidate_delay] > kHistogramMax) { in UpdateRobustValidationStatistics() 116 self->histogram[candidate_delay] = kHistogramMax; in UpdateRobustValidationStatistics() 139 self->histogram[i] -= decrease_in_last_set * is_in_last_set + in UpdateRobustValidationStatistics() 142 if (self->histogram[i] < 0) { in UpdateRobustValidationStatistics() 143 self->histogram[i] = 0; in UpdateRobustValidationStatistics() 173 float histogram_threshold = self->histogram[self->compare_delay]; in HistogramBasedValidation() 209 (self->histogram[candidate_delay] >= histogram_threshold) && in HistogramBasedValidation() 253 (self->histogram[candidate_delay] > self->last_delay_histogram); in RobustValidation() 391 free(self->histogram); in WebRtc_FreeBinaryDelayEstimator() [all …]
|
/external/ImageMagick/MagickCore/ |
D | segment.c | 173 histogram[256]; member 872 static void DerivativeHistogram(const double *histogram, in DerivativeHistogram() argument 883 derivative[0]=(-1.5*histogram[0]+2.0*histogram[1]-0.5*histogram[2]); in DerivativeHistogram() 884 derivative[n]=(0.5*histogram[n-2]-2.0*histogram[n-1]+1.5*histogram[n]); in DerivativeHistogram() 889 derivative[i]=(histogram[i+1]-histogram[i-1])/2.0; in DerivativeHistogram() 964 *histogram[MaxDimension], in GetImageDynamicThreshold() local 977 histogram[i]=(ssize_t *) AcquireQuantumMemory(256UL,sizeof(**histogram)); in GetImageDynamicThreshold() 978 extrema[i]=(short *) AcquireQuantumMemory(256UL,sizeof(**histogram)); in GetImageDynamicThreshold() 979 if ((histogram[i] == (ssize_t *) NULL) || (extrema[i] == (short *) NULL)) in GetImageDynamicThreshold() 984 histogram[i]=(ssize_t *) RelinquishMagickMemory(histogram[i]); in GetImageDynamicThreshold() [all …]
|
D | histogram.c | 334 PixelInfo **histogram) in DefineImageHistogram() argument 348 DefineImageHistogram(image,node_info->child[i],histogram); in DefineImageHistogram() 357 **histogram=(*p); in DefineImageHistogram() 358 (*histogram)++; in DefineImageHistogram() 526 *histogram; in GetImageHistogram() local 532 histogram=(PixelInfo *) NULL; in GetImageHistogram() 536 histogram=(PixelInfo *) AcquireQuantumMemory((size_t) cube_info->colors, in GetImageHistogram() 537 sizeof(*histogram)); in GetImageHistogram() 538 if (histogram == (PixelInfo *) NULL) in GetImageHistogram() 547 root=histogram; in GetImageHistogram() [all …]
|
/external/autotest/client/site_tests/video_ChromeRTCHWEncodeUsed/ |
D | video_ChromeRTCHWEncodeUsed.py | 55 def _histograms_loaded(histogram): argument 57 tab.Navigate(HISTOGRAMS_URL + histogram) 61 % histogram) 63 def _histogram_success(histogram, bucket): argument 67 logging.info('Histograms for %s:', histogram ) 78 ' successful.'.format(histogram)) 80 for histogram, bucket in [(RTC_VIDEO_ENCODE, RTC_VIDEO_ENCODE_BUCKET), 83 lambda: _histograms_loaded(histogram), 86 'Cannot find %s histogram.' % histogram), 88 _histogram_success(histogram, bucket)
|
/external/tensorflow/tensorflow/docs_src/programmers_guide/ |
D | tensorboard_histograms.md | 15 ['tf.summary.histogram'](https://www.tensorflow.org/api_docs/python/tf/summary/histogram). 19 Here is a code snippet that will generate some histogram summaries containing 30 # Record that distribution into a histogram summary 31 tf.summary.histogram("normal/moving_mean", mean_moving_normal) 55 Histogram Dashboard. Then we can see a histogram visualization for our normally 60 `tf.summary.histogram` takes an arbitrarily sized and shaped Tensor, and 61 compresses it into a histogram data structure consisting of many bins with 75 …rflow/blob/c8b59c046895fa5b6d79f73e0b5817330fcfbfc1/tensorflow/core/lib/histogram/histogram.cc#L28) 82 Each slice in the histogram visualizer displays a single histogram. 88 You can mouse over the histogram to see tooltips with some more detailed [all …]
|
/external/ImageMagick/Magick++/tests/ |
D | colorHistogram.cpp | 47 std::map<Color,size_t> histogram; in main() local 49 std::vector<std::pair<Color,size_t> > histogram; in main() local 52 colorHistogram( &histogram, image ); in main() 64 << histogram.size() << " entries:" << endl; in main() 67 std::map<Color,size_t>::const_iterator p=histogram.begin(); in main() 69 std::vector<std::pair<Color,size_t> >::const_iterator p=histogram.begin(); in main() 71 while (p != histogram.end()) in main()
|
/external/tensorflow/tensorflow/core/kernels/data/ |
D | stats_aggregator_ops.cc | 35 histogram::Histogram& histogram = histograms_[name]; in AddToHistogram() local 37 histogram.Add(value); in AddToHistogram() 45 const histogram::Histogram& histogram = pair.second; in EncodeToProto() local 49 histogram.EncodeToProto(value->mutable_histo(), in EncodeToProto() 56 std::unordered_map<string, histogram::Histogram> histograms_ GUARDED_BY(mu_);
|
/external/tensorflow/tensorflow/contrib/coder/kernels/ |
D | range_coder_test.cc | 40 std::vector<int32> histogram(kAlphabetSize, multiplier - 1); in RangeEncodeDecodeTest() local 43 (multiplier << precision) - histogram.size() * (multiplier - 1); in RangeEncodeDecodeTest() 48 ++histogram[x]; in RangeEncodeDecodeTest() 51 std::vector<int32> cdf(histogram.size() + 1, 0); in RangeEncodeDecodeTest() 53 for (int i = 0; i < histogram.size(); ++i) { in RangeEncodeDecodeTest() 54 partial_sum += histogram[i]; in RangeEncodeDecodeTest() 61 std::vector<double> ideal_code_length(histogram.size()); in RangeEncodeDecodeTest()
|
/external/libjpeg-turbo/ |
D | jquant2.c | 180 hist3d histogram; /* pointer to the histogram */ member 209 register hist3d histogram = cquantize->histogram; in prescan_quantize() local 218 histp = & histogram[GETJSAMPLE(ptr[0]) >> C0_SHIFT] in prescan_quantize() 297 hist3d histogram = cquantize->histogram; in update_box() local 311 histp = & histogram[c0][c1][c2min]; in update_box() 322 histp = & histogram[c0][c1][c2min]; in update_box() 333 histp = & histogram[c0][c1][c2min]; in update_box() 344 histp = & histogram[c0][c1][c2min]; in update_box() 355 histp = & histogram[c0][c1min][c2]; in update_box() 366 histp = & histogram[c0][c1min][c2]; in update_box() [all …]
|
/external/autotest/client/cros/chameleon/ |
D | screen_comparison.py | 90 histogram = diff_image.convert('L').histogram() 92 num_wrong_pixels = sum(histogram[self._pixel_diff_margin + 1:]) 94 lambda x: histogram[x], xrange(len(histogram)))) 96 logging.debug('Histogram of difference: %r', histogram)
|