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

Commit 15492096 authored by Stanislav Zholnin's avatar Stanislav Zholnin
Browse files

Change switch ratio when new package has reported during device boot up.

Fix: 150818125
Test: atest collectAsyncStackTrace

Change-Id: Iac61ef6177b648cd3734896845fd7bc799490f7e
parent ae4f1360
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5750,7 +5750,7 @@ public class AppOpsService extends IAppOpsService.Stub {
     */
    private void switchPackageIfBootTimeOrRarelyUsedLocked(@NonNull String packageName) {
        if (mSampledPackage == null) {
            if (ThreadLocalRandom.current().nextFloat() < 0.1f) {
            if (ThreadLocalRandom.current().nextFloat() < 0.5f) {
                mSamplingStrategy = SAMPLING_STRATEGY_BOOT_TIME_SAMPLING;
                resampleAppOpForPackageLocked(packageName);
            }