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

Commit db3374be authored by Jeongsik Mun's avatar Jeongsik Mun Committed by Songchun Fan
Browse files

Improve performance of AppsFilter#removePackage()

Basically, it updates all visibilities for packages sharing the same
uid on removePackage(). However, the calculated visibility for the uid
is always the same and it could take a lot of time if there are many
packages for the uid.

This CL calculates and updates visibility once only for a package among
them in case of sharedUserId.

Bug: 288223730
Test: atest PackageManagerServiceServerTests:AppsFilterImplTest
Change-Id: I2650e4aa50993ce814d4e90da7a3f16982e2e32c
parent 78de523e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1225,6 +1225,7 @@ public final class AppsFilterImpl extends AppsFilterLocked implements Watchable,
                                setting.getPackageName(), siblingSetting, settings,
                                users, USER_ALL, settings.size());
                    }
                    break;
                }
            }