Loading
Use ART Service OptimizePackageDoneCallback.
Add the callback when the ART Manager is initialized, and move the CompilerStats code into it. This moves the ART Manager initialization code from SystemServer to DexOptHelper to keep it more contained, and it also fixes a small bug where an ArtManagerLocal instance was created and registered even when ART Service shouldn't be in use. Also remove TODO for controlDexOptBlocking handling when ART Service is in use. It got marked with LegacyDexoptDisabledException, so it's moot to support in that mode. Test: Boot Bug: 251903639 Bug: 260072740 Change-Id: Id0995ef9f24ee007207ee0d1f7d2108fa81b15aa