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

Commit aeef5c9c authored by Stanislav Zholnin's avatar Stanislav Zholnin Committed by Android (Google) Code Review
Browse files

Merge "Force sampling to always take all ops for the same package."

parents bf8d1042 96165b59
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -3164,9 +3164,7 @@ public class StatsPullAtomService extends SystemService {
            mAttributionTag = attributionTag;
            mUid = uid;
            mOp = op;
            mHash = ((op.getOpCode() * 961
                    + (attributionTag == null ? 0 : attributionTag.hashCode()) * 31
                    + packageName.hashCode() + RANDOM_SEED) & 0x7fffffff) % 100;
            mHash = ((packageName.hashCode() + RANDOM_SEED) & 0x7fffffff) % 100;
        }
    }