Home
last modified time | relevance | path

Searched refs:histogram (Results 1 – 25 of 64) 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/base/packages/SystemUI/src/com/android/systemui/glwallpaper/
DImageProcessHelper.java105 int[] histogram = getHistogram(grayscale); in compute() local
106 boolean isSolidColor = isSolidColor(grayscale, histogram); in compute()
112 return algorithm.compute(grayscale, histogram); in compute()
134 int[] histogram = new int[256]; in getHistogram() local
139 histogram[y]++; in getHistogram()
143 return histogram; in getHistogram()
146 private boolean isSolidColor(Bitmap bitmap, int[] histogram) { in isSolidColor() argument
152 for (int value : histogram) { in isSolidColor()
167 public float compute(Bitmap bitmap, int[] histogram) { in compute() argument
172 acc[i] = (float) histogram[i] / pixelCount; in compute()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/
DRttMetrics.java265 SparseIntArray histogram) { in consolidateOverallStatus() argument
267 new WifiMetricsProto.WifiRttLog.RttOverallStatusHistogramBucket[histogram.size()]; in consolidateOverallStatus()
268 for (int i = 0; i < histogram.size(); i++) { in consolidateOverallStatus()
270 h[i].statusType = histogram.keyAt(i); in consolidateOverallStatus()
271 h[i].count = histogram.valueAt(i); in consolidateOverallStatus()
293 consolidateIndividualStatus(SparseIntArray histogram) { in consolidateIndividualStatus() argument
295 new WifiMetricsProto.WifiRttLog.RttIndividualStatusHistogramBucket[histogram.size( in consolidateIndividualStatus()
297 for (int i = 0; i < histogram.size(); i++) { in consolidateIndividualStatus()
299 h[i].statusType = histogram.keyAt(i); in consolidateIndividualStatus()
300 h[i].count = histogram.valueAt(i); in consolidateIndividualStatus()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DGestureLauncherServiceTest.java188 verify(mMetricsLogger).histogram("power_consecutive_short_tap_count", 1); in testInterceptPowerKeyDown_firstPowerDownCameraPowerGestureOnInteractive()
189 verify(mMetricsLogger).histogram("power_double_tap_interval", (int) eventTime); in testInterceptPowerKeyDown_firstPowerDownCameraPowerGestureOnInteractive()
222 verify(mMetricsLogger, times(2)).histogram( in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive()
229 verify(mMetricsLogger, times(2)).histogram( in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive()
266 verify(mMetricsLogger, times(2)).histogram( in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive()
273 verify(mMetricsLogger, times(2)).histogram( in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive()
312 verify(mMetricsLogger, times(2)).histogram( in testInterceptPowerKeyDown_intervalOutOfBoundsCameraPowerGestureOffInteractive()
319 verify(mMetricsLogger, times(2)).histogram( in testInterceptPowerKeyDown_intervalOutOfBoundsCameraPowerGestureOffInteractive()
360 verify(mMetricsLogger, times(2)).histogram( in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOnInteractiveSetupComplete()
367 verify(mMetricsLogger, times(2)).histogram( in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOnInteractiveSetupComplete()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DOtaDexoptService.java439 metricsLogger.histogram("ota_dexopt_available_space_before_mb", in performMetricsLogging()
441 metricsLogger.histogram("ota_dexopt_available_space_after_bulk_delete_mb", in performMetricsLogging()
443 metricsLogger.histogram("ota_dexopt_available_space_after_dexopt_mb", in performMetricsLogging()
446 metricsLogger.histogram("ota_dexopt_num_important_packages", importantPackageCount); in performMetricsLogging()
447 metricsLogger.histogram("ota_dexopt_num_other_packages", otherPackageCount); in performMetricsLogging()
449 metricsLogger.histogram("ota_dexopt_num_commands", dexoptCommandCountTotal); in performMetricsLogging()
450 metricsLogger.histogram("ota_dexopt_num_commands_executed", dexoptCommandCountExecuted); in performMetricsLogging()
454 metricsLogger.histogram("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/core/java/com/android/internal/logging/
DMetricsLogger.java82 public void histogram(String name, int bucket) { in histogram() method in MetricsLogger
232 public static void histogram(Context context, String name, int bucket) { in histogram() method in MetricsLogger
233 getLogger().histogram(name, bucket); in histogram()
/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()
DUT_reduce.java831 private long[] histogram(RenderScript RS, final byte[] inputArray) { in histogram() method in UT_reduce
858 final long[] javaResult = histogram(RS, inputArray); in histogram_array()
866 private boolean histogram(RenderScript RS, ScriptC_reduce s, int seed, int size[]) { in histogram() method in UT_reduce
870 final long[] javaResult = histogram(RS, inputArray); in histogram()
908 final long[] javaResult = histogram(RS, inputArray); in patternRedundantGet()
929 long[] hsg = histogram(RS, inputArray); in mode()
1135 new TestDescription("histogram", this::histogram, 11, new int[]{100000}, 20),
1450 new TestDescription("histogram", this::histogram, 7, new int[]{100000 << 10}),
/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()
DUT_reduce.java833 private long[] histogram(RenderScript RS, final byte[] inputArray) { in histogram() method in UT_reduce
860 final long[] javaResult = histogram(RS, inputArray); in histogram_array()
868 private boolean histogram(RenderScript RS, ScriptC_reduce s, int seed, int size[]) { in histogram() method in UT_reduce
872 final long[] javaResult = histogram(RS, inputArray); in histogram()
910 final long[] javaResult = histogram(RS, inputArray); in patternRedundantGet()
931 long[] hsg = histogram(RS, inputArray); in mode()
1137 new TestDescription("histogram", this::histogram, 11, new int[]{100000}, 20),
1452 new TestDescription("histogram", this::histogram, 7, new int[]{100000 << 10}),
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DEvents.java137 MetricsLogger.histogram(context, "volume_from_keyguard", in writeEvent()
198 MetricsLogger.histogram(context, "show_usb_overheat_alarm", in writeEvent()
204 MetricsLogger.histogram(context, "dismiss_usb_overheat_alarm", in writeEvent()
/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/av/services/camera/libcameraservice/tests/
DDistortionMapperTest.cpp264 std::array<int, maxAllowedPixelError * bucketsPerPixel> histogram = {0}; in RandomTransformTest() local
286 histogram[histBucket]++; in RandomTransformTest()
294 for (size_t i = 0; i < histogram.size(); i++) { in RandomTransformTest()
297 test->RecordProperty(label, histogram[i]); in RandomTransformTest()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DTronUtils.java31 MetricsLogger.histogram(context, "settings_wifi_speed_labels", speedEnum); in logWifiSettingsSpeed()
/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.java405 MetricsLogger.histogram(null, "boot_mount_all_duration_" + propPostfix, duration); in logFsMountTime()
462 MetricsLogger.histogram(null, metricName, value); in logTronShutdownMetric()
536 MetricsLogger.histogram(null, "boot_fs_shutdown_duration", in logFsShutdownTime()
538 MetricsLogger.histogram(null, "boot_fs_shutdown_umount_stat", in logFsShutdownTime()
545 MetricsLogger.histogram(null, "boot_fs_shutdown_umount_stat", in logFsShutdownTime()
655 MetricsLogger.histogram(null, "boot_fs_stat_" + partition, stat); in handleFsckFsStat()
/frameworks/base/packages/SystemUI/res/raw/
Dimage_wallpaper_fragment_shader.glsl6 // The 85th percenile for the luminance histogram of the image (a value between 0 and 1).
7 // This value represents the point in histogram that includes 85% of the pixels of the image.
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/
DBrightLineFalsingManager.java121 mMetricsLogger.histogram(FALSING_REMAIN_LOCKED, mIsFalseTouchCalls); in sessionEnd()
171 mMetricsLogger.histogram(FALSING_SUCCESS, mIsFalseTouchCalls); in onSucccessfulUnlock()
/frameworks/base/libs/hwui/service/
DGraphicsStatsService.cpp220 for (auto it = proto->histogram().rbegin(); it != proto->histogram().rend(); ++it) { in findPercentile()
255 for (const auto& it : proto->histogram()) { in dumpAsTextToFd()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
DAndroid.bp24 "histogram.cpp",
/frameworks/base/services/core/java/com/android/server/biometrics/
DEnumerateClient.java58 mMetricsLogger.histogram(mConstants.tagEnumerateStartError(), result); in start()
DRemovalClient.java63 mMetricsLogger.histogram(mConstants.tagRemoveStartError(), result); in start()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DNewChromaHistogramFilter.java19 package androidx.media.filterpacks.histogram;

123