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

Commit d9141a9c authored by Philip P. Moltmann's avatar Philip P. Moltmann Committed by Android (Google) Code Review
Browse files

Merge "Reduce the overhead of historical appops"

parents 2a9365a3 fcd259d2
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -81,8 +81,6 @@ import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.reflect.Method;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.BitSet;
@@ -5021,8 +5019,7 @@ public class AppOpsManager {
         * @hide
         */
        public static double round(double value) {
            final BigDecimal decimalScale = new BigDecimal(value);
            return decimalScale.setScale(0, RoundingMode.HALF_UP).doubleValue();
            return Math.floor(value + 0.5);
        }

        @Override