Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5821eee authored by Vova Sharaienko's avatar Vova Sharaienko Committed by Automerger Merge Worker
Browse files

Merge "[TeX] Introduced Telemetry Express Logging APIs" am: e6f44ac0 am:...

Merge "[TeX] Introduced Telemetry Express Logging APIs" am: e6f44ac0 am: 5a72ad40 am: 4393ea8e am: 0f0dba2e

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2506824



Change-Id: I2ecd293e98ba294a017331ff6f311855b314362a
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 63104978 0f0dba2e
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -54,6 +54,19 @@ public final class Histogram {
                /*count*/ 1, binIndex);
    }

    /**
     * Logs increment sample count for automatically calculated bin
     *
     * @param uid used as a dimension for the count metric
     * @param sample value
     * @hide
     */
    public void logSampleWithUid(int uid, float sample) {
        final int binIndex = mBinOptions.getBinForSample(sample);
        FrameworkStatsLog.write(FrameworkStatsLog.EXPRESS_UID_HISTOGRAM_SAMPLE_REPORTED,
                mMetricIdHash, /*count*/ 1, binIndex, uid);
    }

    /** Used by Histogram to map data sample to corresponding bin */
    public interface BinOptions {
        /**