Home
last modified time | relevance | path

Searched refs:hist (Results 1 – 10 of 10) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DMetricsUtilsTest.java156 SparseIntArray hist = new SparseIntArray(); in testLinearHistBucketing() local
158 bucketValueAndVerify("HIST_LINEAR: x=", -5, hist, HIST_LINEAR, 0, 1); in testLinearHistBucketing()
159 bucketValueAndVerify("HIST_LINEAR: x=", 0, hist, HIST_LINEAR, 0, 2); in testLinearHistBucketing()
160 bucketValueAndVerify("HIST_LINEAR: x=", 1, hist, HIST_LINEAR, 0, 3); in testLinearHistBucketing()
161 bucketValueAndVerify("HIST_LINEAR: x=", 9, hist, HIST_LINEAR, 0, 4); in testLinearHistBucketing()
162 bucketValueAndVerify("HIST_LINEAR: x=", 10, hist, HIST_LINEAR, 1, 1); in testLinearHistBucketing()
163 bucketValueAndVerify("HIST_LINEAR: x=", 20, hist, HIST_LINEAR, 1, 2); in testLinearHistBucketing()
164 bucketValueAndVerify("HIST_LINEAR: x=", 30, hist, HIST_LINEAR, 2, 1); in testLinearHistBucketing()
165 bucketValueAndVerify("HIST_LINEAR: x=", 40, hist, HIST_LINEAR, 2, 2); in testLinearHistBucketing()
166 bucketValueAndVerify("HIST_LINEAR: x=", 50, hist, HIST_LINEAR, 2, 3); in testLinearHistBucketing()
[all …]
/frameworks/base/core/java/com/android/internal/graphics/palette/
DColorCutQuantizer.java95 final int[] hist = mHistogram = new int[1 << (QUANTIZE_WORD_WIDTH * 3)]; in quantize() local
101 hist[quantizedColor]++; in quantize()
110 for (int color = 0; color < hist.length; color++) { in quantize()
111 if (hist[color] > 0 && shouldIgnoreColor(color)) { in quantize()
113 hist[color] = 0; in quantize()
115 if (hist[color] > 0) { in quantize()
128 for (int color = 0; color < hist.length; color++) { in quantize()
129 if (hist[color] > 0) { in quantize()
142 mQuantizedColors.add(new Swatch(approximateToRgb888(color), hist[color])); in quantize()
266 final int[] hist = mHistogram; in fitBox() local
[all …]
/frameworks/native/services/surfaceflinger/TimeStats/timestatsproto/
DTimeStatsHelper.cpp44 hist[histogramConfig[HISTOGRAM_SIZE - 1]] += delta / histogramConfig[HISTOGRAM_SIZE - 1]; in insert()
48 hist[*iter]++; in insert()
53 for (const auto& ele : hist) { in totalTime()
62 for (const auto& ele : hist) { in averageTime()
73 int32_t count = (hist.count(bucket) == 0) ? 0 : hist.at(bucket); in toString()
131 for (const auto& histEle : ele.second.hist) { in toProto()
156 for (const auto& histEle : presentToPresent.hist) { in toProto()
/frameworks/av/media/libnblog/
DReportPerformance.cpp261 for (auto hist = hists.begin(); hist != hists.end(); ++hist) { in writeToFile() local
262 hfs << hist->first << ", "; in writeToFile()
263 for (auto bucket = hist->second.begin(); bucket != hist->second.end(); ++bucket) { in writeToFile()
266 if (std::next(bucket) != end(hist->second)) { in writeToFile()
270 if (std::next(hist) != end(hists)) { in writeToFile()
/frameworks/native/services/surfaceflinger/TimeStats/timestatsproto/include/timestatsproto/
DTimeStatsHelper.h35 std::unordered_map<int32_t, int32_t> hist;
/frameworks/base/services/core/java/com/android/server/wm/
DWindowProcessController.java701 ActivityRecord hist = mActivities.get(0); in updateIntentForHeavyWeightActivity() local
702 intent.putExtra(HeavyWeightSwitcherActivity.KEY_CUR_APP, hist.packageName); in updateIntentForHeavyWeightActivity()
703 intent.putExtra(HeavyWeightSwitcherActivity.KEY_CUR_TASK, hist.getTaskRecord().taskId); in updateIntentForHeavyWeightActivity()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsHelper.java204 Parcel hist = Parcel.obtain(); in storeStatsHistoryInFile() local
205 getStats().writeToParcelWithoutUids(hist, 0); in storeStatsHistoryInFile()
206 byte[] histData = hist.marshall(); in storeStatsHistoryInFile()
/frameworks/av/media/libstagefright/
DMediaCodec.cpp592 std::string hist = mLatencyHist.emit(); in updateMediametrics() local
593 mediametrics_setCString(mMetricsHandle, kCodecLatencyHist, hist.c_str()); in updateMediametrics()
639 std::string hist = recentHist.emit(); in updateEphemeralMediametrics() local
640 mediametrics_setCString(item, kCodecRecentLatencyHist, hist.c_str()); in updateEphemeralMediametrics()
/frameworks/native/services/surfaceflinger/TimeStats/
DTimeStats.cpp589 mTimeStats.presentToPresent.hist.clear(); in clear()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiMetricsTest.java2281 private void verifyHist(WifiMetricsProto.NumConnectableNetworksBucket[] hist, int size, in verifyHist() argument
2283 assertEquals(size, hist.length); in verifyHist()
2285 assertEquals(keys[i], hist[i].numConnectableNetworks); in verifyHist()
2286 assertEquals(counts[i], hist[i].count); in verifyHist()