Avoid redundant getAllocatableBytes() calls.
Shuffle around the ordering of resolveInstallVolume() so that we determine the fitsOnInternal value while doing a drive-by of all possible target volumes. This way we only call getAllocatableBytes() internal storage once. Bug: 70985520 Test: atest android.content.pm.PackageHelperTests Change-Id: I8273c239af4a13b1db17f320e15ee0ef2dc89186
Loading
Please register or sign in to comment