Searched defs:histogram (Results 1 - 13 of 13) sorted by relevance

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/instrumentation/
H A DLogWriter.java81 * Logs a histogram event.
83 void histogram(Context context, String name, int bucket); method in interface:LogWriter
H A DEventLogWriter.java107 public void histogram(Context context, String name, int bucket) { method in class:EventLogWriter
108 MetricsLogger.histogram(context, name, bucket);
H A DMetricsFeatureProvider.java119 public void histogram(Context context, String name, int bucket) { method in class:MetricsFeatureProvider
121 writer.histogram(context, name, bucket);
/frameworks/base/core/java/com/android/internal/logging/
H A DMetricsLogger.java134 /** Increment the bucket with the integer label on the histogram with the given name. */
135 public void histogram(String name, int bucket) { method in class:MetricsLogger
211 * Increment the bucket with the integer label on the histogram with the given name.
212 * @deprecated use {@link #histogram(String, int)}
215 public static void histogram(Context context, String name, int bucket) { method in class:MetricsLogger
216 getLogger().histogram(name, bucket);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DNewChromaHistogramFilter.java17 // Extract histogram from image.
19 package androidx.media.filterpacks.histogram;
35 * ChromaHistogramFilter takes in an image in HSVA format and computes a 2-D histogram with a
36 * 2 dimensional chroma histogram based on hue (column) and saturation (row) at the top and
37 * a 1-D value histogram in the last row. The number of bin in the value histogram equals to
65 .addOutputPort("histogram", Signature.PORT_REQUIRED, dataOut)
89 OutputPort outPort = getConnectedOutputPort("histogram");
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
H A DMetricsUtils.java36 * Specifies a ~log histogram consisting of two levels of buckets - a set of N big buckets:
83 * Adds the input value to the log histogram based on the histogram parameters.
85 public static int addValueToLogHistogram(long x, SparseIntArray histogram, LogHistParms hp) { argument
113 int newValue = histogram.get(key) + 1;
114 histogram.put(key, newValue);
120 * Converts the log histogram (with the specified histogram parameters) to an array of generic
121 * histogram buckets.
123 public static GenericBucket[] logHistogramToGenericBuckets(SparseIntArray histogram, argument
148 addValueToLinearHistogram(int x, SparseIntArray histogram, int[] hp) argument
169 linearHistogramToGenericBuckets(SparseIntArray histogram, int[] linearHistParams) argument
[all...]
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
H A DUT_reduce_backward.java244 private long[] histogram(RenderScript RS, final byte[] inputArray) { method in class:UT_reduce_backward
263 private boolean histogram(RenderScript RS, ScriptC_reduce_backward s) { method in class:UT_reduce_backward
266 final long[] javaRslt = histogram(RS, inputArray);
274 "histogram[" + i + "]: java " + javaRslt[i] + ", rs " + rsRslt[i] + ": FAILED");
279 Log.i(TAG, "histogram: PASSED");
286 long[] hsg = histogram(RS, inputArray);
318 pass &= histogram(pRS, s);
H A DUT_reduce.java831 private long[] histogram(RenderScript RS, final byte[] inputArray) { method in class:UT_reduce
858 final long[] javaResult = histogram(RS, inputArray);
866 private boolean histogram(RenderScript RS, ScriptC_reduce s, int seed, int size[]) { method in class:UT_reduce
870 final long[] javaResult = histogram(RS, inputArray);
887 // NOTE: The "java time" is actually for the RenderScript histogram intrinsic
889 result("histogram",
908 final long[] javaResult = histogram(RS, inputArray);
929 long[] hsg = histogram(RS, inputArray);
1135 new TestDescription("histogram", this::histogram, 1
[all...]
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
H A DUT_reduce_backward.java246 private long[] histogram(RenderScript RS, final byte[] inputArray) { method in class:UT_reduce_backward
265 private boolean histogram(RenderScript RS, ScriptC_reduce_backward s) { method in class:UT_reduce_backward
268 final long[] javaRslt = histogram(RS, inputArray);
276 "histogram[" + i + "]: java " + javaRslt[i] + ", rs " + rsRslt[i] + ": FAILED");
281 Log.i(TAG, "histogram: PASSED");
288 long[] hsg = histogram(RS, inputArray);
320 pass &= histogram(pRS, s);
H A DUT_reduce.java833 private long[] histogram(RenderScript RS, final byte[] inputArray) { method in class:UT_reduce
860 final long[] javaResult = histogram(RS, inputArray);
868 private boolean histogram(RenderScript RS, ScriptC_reduce s, int seed, int size[]) { method in class:UT_reduce
872 final long[] javaResult = histogram(RS, inputArray);
889 // NOTE: The "java time" is actually for the RenderScript histogram intrinsic
891 result("histogram",
910 final long[] javaResult = histogram(RS, inputArray);
931 long[] hsg = histogram(RS, inputArray);
1137 new TestDescription("histogram", this::histogram, 1
[all...]
/frameworks/av/services/camera/libcameraservice/tests/
H A DDistortionMapperTest.cpp212 // Basic histogram; buckets go from [N to N+1)
213 std::array<int, maxAllowedPixelError * bucketsPerPixel> histogram = {0}; local
228 // Note: Integer coordinates, so histogram will be clumpy; error distances can only be of
235 histogram[histBucket]++;
243 for (size_t i = 0; i < histogram.size(); i++) {
246 RecordProperty(label, histogram[i]);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/rtt/
H A DRttMetrics.java264 SparseIntArray histogram) {
266 new WifiMetricsProto.WifiRttLog.RttOverallStatusHistogramBucket[histogram.size()];
267 for (int i = 0; i < histogram.size(); i++) {
269 h[i].statusType = histogram.keyAt(i);
270 h[i].count = histogram.valueAt(i);
292 consolidateIndividualStatus(SparseIntArray histogram) { argument
294 new WifiMetricsProto.WifiRttLog.RttIndividualStatusHistogramBucket[histogram.size(
296 for (int i = 0; i < histogram.size(); i++) {
298 h[i].statusType = histogram.keyAt(i);
299 h[i].count = histogram
263 consolidateOverallStatus( SparseIntArray histogram) argument
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
H A DWifiAwareMetrics.java794 // histogram utilities
815 * Adds the NanStatusType to the histogram (translating to the proto enumeration of the status).
817 public static void addNanHalStatusToHistogram(int halStatus, SparseIntArray histogram) { argument
819 int newValue = histogram.get(protoStatus) + 1;
820 histogram.put(protoStatus, newValue);
824 * Converts a histogram of proto NanStatusTypeEnum to a raw proto histogram.
828 SparseIntArray histogram) {
830 new WifiMetricsProto.WifiAwareLog.NanStatusHistogramBucket[histogram.size()];
832 for (int i = 0; i < histogram
827 histogramToProtoArray( SparseIntArray histogram) argument
[all...]

Completed in 328 milliseconds