Home
last modified time | relevance | path

Searched refs:histogram (Results 1 – 25 of 65) sorted by relevance

123

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DMetricsUtils.java85 public static int addValueToLogHistogram(long x, SparseIntArray histogram, LogHistParms hp) { in addValueToLogHistogram() argument
113 int newValue = histogram.get(key) + 1; in addValueToLogHistogram()
114 histogram.put(key, newValue); in addValueToLogHistogram()
123 public static GenericBucket[] logHistogramToGenericBuckets(SparseIntArray histogram, in logHistogramToGenericBuckets() argument
125 GenericBucket[] protoArray = new GenericBucket[histogram.size()]; in logHistogramToGenericBuckets()
126 for (int i = 0; i < histogram.size(); ++i) { in logHistogramToGenericBuckets()
127 int key = histogram.keyAt(i); in logHistogramToGenericBuckets()
132 protoArray[i].count = histogram.valueAt(i); in logHistogramToGenericBuckets()
148 public static int addValueToLinearHistogram(int x, SparseIntArray histogram, int[] hp) { in addValueToLinearHistogram() argument
159 int newValue = histogram.get(bucket) + 1; in addValueToLinearHistogram()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/
DRttMetrics.java264 SparseIntArray histogram) { in consolidateOverallStatus() argument
266 new WifiMetricsProto.WifiRttLog.RttOverallStatusHistogramBucket[histogram.size()]; in consolidateOverallStatus()
267 for (int i = 0; i < histogram.size(); i++) { in consolidateOverallStatus()
269 h[i].statusType = histogram.keyAt(i); in consolidateOverallStatus()
270 h[i].count = histogram.valueAt(i); in consolidateOverallStatus()
292 consolidateIndividualStatus(SparseIntArray histogram) { in consolidateIndividualStatus() argument
294 new WifiMetricsProto.WifiRttLog.RttIndividualStatusHistogramBucket[histogram.size( in consolidateIndividualStatus()
296 for (int i = 0; i < histogram.size(); i++) { in consolidateIndividualStatus()
298 h[i].statusType = histogram.keyAt(i); in consolidateIndividualStatus()
299 h[i].count = histogram.valueAt(i); in consolidateIndividualStatus()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DGestureLauncherServiceTest.java185 verify(mMetricsLogger).histogram("power_consecutive_short_tap_count", 1); in testInterceptPowerKeyDown_firstPowerDownCameraPowerGestureOnInteractive()
186 verify(mMetricsLogger).histogram("power_double_tap_interval", (int) eventTime); in testInterceptPowerKeyDown_firstPowerDownCameraPowerGestureOnInteractive()
219 verify(mMetricsLogger, times(2)).histogram( in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive()
226 verify(mMetricsLogger, times(2)).histogram( in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive()
263 verify(mMetricsLogger, times(2)).histogram( in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive()
270 verify(mMetricsLogger, times(2)).histogram( in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive()
309 verify(mMetricsLogger, times(2)).histogram( in testInterceptPowerKeyDown_intervalOutOfBoundsCameraPowerGestureOffInteractive()
316 verify(mMetricsLogger, times(2)).histogram( in testInterceptPowerKeyDown_intervalOutOfBoundsCameraPowerGestureOffInteractive()
357 verify(mMetricsLogger, times(2)).histogram( in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOnInteractiveSetupComplete()
364 verify(mMetricsLogger, times(2)).histogram( in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOnInteractiveSetupComplete()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DOtaDexoptService.java426 MetricsLogger.histogram(mContext, "ota_dexopt_available_space_before_mb", in performMetricsLogging()
428 MetricsLogger.histogram(mContext, "ota_dexopt_available_space_after_bulk_delete_mb", in performMetricsLogging()
430 MetricsLogger.histogram(mContext, "ota_dexopt_available_space_after_dexopt_mb", in performMetricsLogging()
433 MetricsLogger.histogram(mContext, "ota_dexopt_num_important_packages", in performMetricsLogging()
435 MetricsLogger.histogram(mContext, "ota_dexopt_num_other_packages", otherPackageCount); in performMetricsLogging()
437 MetricsLogger.histogram(mContext, "ota_dexopt_num_commands", dexoptCommandCountTotal); in performMetricsLogging()
438 MetricsLogger.histogram(mContext, "ota_dexopt_num_commands_executed", in performMetricsLogging()
443 MetricsLogger.histogram(mContext, "ota_dexopt_time_s", elapsedTimeSeconds); in performMetricsLogging()
/frameworks/base/libs/hwui/tests/unit/
DGraphicsStatsServiceTests.cpp101 EXPECT_EQ(expectedCount, loadedProto.histogram().Get(i).frame_count()); in TEST()
102 EXPECT_EQ(expectedBucket, loadedProto.histogram().Get(i).render_millis()); in TEST()
159 EXPECT_EQ(expectedCount, loadedProto.histogram().Get(i).frame_count()); in TEST()
160 EXPECT_EQ(expectedBucket, loadedProto.histogram().Get(i).render_millis()); in TEST()
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DNekoActivationActivity.java44 MetricsLogger.histogram(this, "egg_neko_enable", 0); in onStart()
52 MetricsLogger.histogram(this, "egg_neko_enable", 1); in onStart()
/frameworks/av/services/camera/libcameraservice/tests/
DDistortionMapperTest.cpp213 std::array<int, maxAllowedPixelError * bucketsPerPixel> histogram = {0}; in TEST() local
235 histogram[histBucket]++; in TEST()
243 for (size_t i = 0; i < histogram.size(); i++) { in TEST()
246 RecordProperty(label, histogram[i]); in TEST()
/frameworks/base/core/java/com/android/internal/logging/
DMetricsLogger.java135 public void histogram(String name, int bucket) { in histogram() method in MetricsLogger
215 public static void histogram(Context context, String name, int bucket) { in histogram() method in MetricsLogger
216 getLogger().histogram(name, bucket); in histogram()
/frameworks/base/core/java/android/os/
DRecoverySystem.java1013 MetricsLogger.histogram(context, "ota_time_total", timeTotal); in parseLastInstallLog()
1016 MetricsLogger.histogram(context, "ota_uncrypt_time", uncryptTime); in parseLastInstallLog()
1019 MetricsLogger.histogram(context, "ota_source_version", sourceVersion); in parseLastInstallLog()
1022 MetricsLogger.histogram(context, "ota_written_in_MiBs", bytesWrittenInMiB); in parseLastInstallLog()
1025 MetricsLogger.histogram(context, "ota_stashed_in_MiBs", bytesStashedInMiB); in parseLastInstallLog()
1028 MetricsLogger.histogram(context, "ota_temperature_start", temperatureStart); in parseLastInstallLog()
1031 MetricsLogger.histogram(context, "ota_temperature_end", temperatureEnd); in parseLastInstallLog()
1034 MetricsLogger.histogram(context, "ota_temperature_max", temperatureMax); in parseLastInstallLog()
1037 MetricsLogger.histogram(context, "ota_non_ab_error_code", errorCode); in parseLastInstallLog()
1040 MetricsLogger.histogram(context, "ota_non_ab_cause_code", causeCode); in parseLastInstallLog()
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_reduce_backward.java246 private long[] histogram(RenderScript RS, final byte[] inputArray) { in histogram() method in UT_reduce_backward
265 private boolean histogram(RenderScript RS, ScriptC_reduce_backward s) { in histogram() method in UT_reduce_backward
268 final long[] javaRslt = histogram(RS, inputArray); in histogram()
288 long[] hsg = histogram(RS, inputArray); in mode()
320 pass &= histogram(pRS, s); in run()
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_reduce_backward.java244 private long[] histogram(RenderScript RS, final byte[] inputArray) { in histogram() method in UT_reduce_backward
263 private boolean histogram(RenderScript RS, ScriptC_reduce_backward s) { in histogram() method in UT_reduce_backward
266 final long[] javaRslt = histogram(RS, inputArray); in histogram()
286 long[] hsg = histogram(RS, inputArray); in mode()
318 pass &= histogram(pRS, s); in run()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareMetrics.java817 public static void addNanHalStatusToHistogram(int halStatus, SparseIntArray histogram) { in addNanHalStatusToHistogram() argument
819 int newValue = histogram.get(protoStatus) + 1; in addNanHalStatusToHistogram()
820 histogram.put(protoStatus, newValue); in addNanHalStatusToHistogram()
828 SparseIntArray histogram) { in histogramToProtoArray() argument
830 new WifiMetricsProto.WifiAwareLog.NanStatusHistogramBucket[histogram.size()]; in histogramToProtoArray()
832 for (int i = 0; i < histogram.size(); ++i) { in histogramToProtoArray()
834 protoArray[i].nanStatusType = histogram.keyAt(i); in histogramToProtoArray()
835 protoArray[i].count = histogram.valueAt(i); in histogramToProtoArray()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/instrumentation/
DEventLogWriter.java107 public void histogram(Context context, String name, int bucket) { in histogram() method in EventLogWriter
108 MetricsLogger.histogram(context, name, bucket); in histogram()
DMetricsFeatureProvider.java119 public void histogram(Context context, String name, int bucket) { in histogram() method in MetricsFeatureProvider
121 writer.histogram(context, name, bucket); in histogram()
DLogWriter.java83 void histogram(Context context, String name, int bucket); in histogram() method
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DTronUtils.java31 MetricsLogger.histogram(context, "settings_wifi_speed_labels", speedEnum); in logWifiSettingsSpeed()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
DAndroid.mk35 histogram.cpp \
/frameworks/base/core/proto/android/service/
Dgraphicsstats.proto52 // The frame time histogram for the package
53 repeated GraphicsStatsHistogramBucketProto histogram = 6; field
/frameworks/base/libs/hwui/protos/
Dgraphicsstats.proto47 // The frame time histogram for the package
48 repeated GraphicsStatsHistogramBucketProto histogram = 6; field
/frameworks/base/core/java/com/android/server/
DBootReceiver.java402 MetricsLogger.histogram(null, "boot_mount_all_duration_" + propPostfix, duration); in logFsMountTime()
459 MetricsLogger.histogram(null, metricName, value); in logTronShutdownMetric()
533 MetricsLogger.histogram(null, "boot_fs_shutdown_duration", in logFsShutdownTime()
535 MetricsLogger.histogram(null, "boot_fs_shutdown_umount_stat", in logFsShutdownTime()
542 MetricsLogger.histogram(null, "boot_fs_shutdown_umount_stat", in logFsShutdownTime()
652 MetricsLogger.histogram(null, "boot_fs_stat_" + partition, stat); in handleFsckFsStat()
/frameworks/base/libs/hwui/service/
DGraphicsStatsService.cpp218 for (auto it = proto->histogram().rbegin(); it != proto->histogram().rend(); ++it) { in findPercentile()
253 for (const auto& it : proto->histogram()) { in dumpAsTextToFd()
/frameworks/base/proto/src/
Dwifi.proto906 // histogram of attach request results
927 // histogram of publish request results
930 // histogram of subscribe request results
937 // histogram of create ndp request results
940 // histogram of create ndp out-of-band (OOB) request results
964 // histogram of durations of Aware being available
967 // histogram of durations of Aware being enabled
970 // histogram of duration (in ms) of attach sessions
973 // histogram of duration (in ms) of publish sessions
976 // histogram of duration (in ms) of subscribe sessions
[all …]
/frameworks/base/services/core/java/com/android/server/fingerprint/
DEnumerateClient.java47 MetricsLogger.histogram(getContext(), "fingerprintd_enum_start_error", result); in start()
DRemovalClient.java50 MetricsLogger.histogram(getContext(), "fingerprintd_remove_start_error", result); in start()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DNewChromaHistogramFilter.java19 package androidx.media.filterpacks.histogram;

123