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

Commit a8e5cc1b authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "chore(#Magnification): adjust field scale in metric...

Merge "chore(#Magnification): adjust field scale in metric MagnificationUsageReported" into udc-dev am: a0f7fde7

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



Change-Id: I0fa17f278562cbe124cf3eb2650cfbe9ddaf7a62
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 7eca2ce5 a0f7fde7
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -258,6 +258,10 @@ public final class AccessibilityStatsLogUtils {
    }

    private static int convertToLoggingMagnificationScale(float scale) {
        return (int) (scale * 100);
        // per b/269366674, we make every 10% a bucket for both privacy and readability concern.
        // For example
        // 1. both 2.30f(230%) and 2.36f(236%) would return 230 as bucket id.
        // 2. bucket id 370 means scale range in [370%, 379%]
        return ((int) (scale * 10)) * 10;
    }
}