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

Commit 0a3693c2 authored by Calin Juravle's avatar Calin Juravle
Browse files

Make PM#notifyDexLoad oneway

There's not need to wait for the PM to process the dex load
notification.

Make notifyPackageUse one way as well (for the same reason).

Bug: 37876265
Test: manual test to verify that notifications still work
Change-Id: I29d076348c2999a4441c2047a89a45b085bf3761
parent a16d465a
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -462,7 +462,7 @@ interface IPackageManager {
     *
     *
     * See PackageManager.NOTIFY_PACKAGE_USE_* for reasons.
     * See PackageManager.NOTIFY_PACKAGE_USE_* for reasons.
     */
     */
    void notifyPackageUse(String packageName, int reason);
    oneway void notifyPackageUse(String packageName, int reason);


    /**
    /**
     * Notify the package manager that a list of dex files have been loaded.
     * Notify the package manager that a list of dex files have been loaded.
@@ -471,7 +471,8 @@ interface IPackageManager {
     * @param dexPats the list of the dex files paths that have been loaded
     * @param dexPats the list of the dex files paths that have been loaded
     * @param loaderIsa the ISA of the loader process
     * @param loaderIsa the ISA of the loader process
     */
     */
    void notifyDexLoad(String loadingPackageName, in List<String> dexPaths, String loaderIsa);
    oneway void notifyDexLoad(String loadingPackageName, in List<String> dexPaths,
            String loaderIsa);


    /**
    /**
     * Ask the package manager to perform a dex-opt for the given reason. The package
     * Ask the package manager to perform a dex-opt for the given reason. The package