Loading fake-store/src/main/aidl/foundation/e/apps/ISplitInstallerService.aidl→fake-store/src/main/aidl/foundation/e/apps/ISplitInstallService.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -17,6 +17,6 @@ package foundation.e.apps; interface ISplitInstallerService { interface ISplitInstallService { void installSplitModule(String packageName, String moduleName); } No newline at end of file fake-store/src/main/java/com/android/vending/splitinstall/installer/AppLoungeSplitInstaller.kt +9 −7 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ import android.content.Intent import android.content.ServiceConnection import android.os.IBinder import com.android.vending.splitinstall.SplitInstaller import foundation.e.apps.ISplitInstallerService import foundation.e.apps.ISplitInstallService class AppLoungeSplitInstaller( private val context: Context Loading @@ -31,15 +31,15 @@ class AppLoungeSplitInstaller( companion object { private val ON_DEMAND_DELIVERY_SERVICE_COMPONENT = ComponentName("foundation.e.apps", "foundation.e.apps.splitinstall.SplitInstallerService") ComponentName("foundation.e.apps", "foundation.e.apps.splitinstall.SplitInstallService") } private var service: ISplitInstallerService? = null private var service: ISplitInstallService? = null private val moduleList = ArrayList<InstallModule>() private val serviceConnection = object : ServiceConnection { override fun onServiceConnected(componentName: ComponentName, binder: IBinder) { service = ISplitInstallerService.Stub.asInterface(binder) service = ISplitInstallService.Stub.asInterface(binder) installWaitingModules() } Loading @@ -61,9 +61,11 @@ class AppLoungeSplitInstaller( } override fun install(packageName: String, moduleName: String) { service.let { if (service == null) { moduleList.add(InstallModule(packageName, moduleName)) } service?.installSplitModule(packageName, moduleName) } ?: moduleList.add(InstallModule(packageName, moduleName)) } private fun installWaitingModules() { Loading Loading
fake-store/src/main/aidl/foundation/e/apps/ISplitInstallerService.aidl→fake-store/src/main/aidl/foundation/e/apps/ISplitInstallService.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -17,6 +17,6 @@ package foundation.e.apps; interface ISplitInstallerService { interface ISplitInstallService { void installSplitModule(String packageName, String moduleName); } No newline at end of file
fake-store/src/main/java/com/android/vending/splitinstall/installer/AppLoungeSplitInstaller.kt +9 −7 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ import android.content.Intent import android.content.ServiceConnection import android.os.IBinder import com.android.vending.splitinstall.SplitInstaller import foundation.e.apps.ISplitInstallerService import foundation.e.apps.ISplitInstallService class AppLoungeSplitInstaller( private val context: Context Loading @@ -31,15 +31,15 @@ class AppLoungeSplitInstaller( companion object { private val ON_DEMAND_DELIVERY_SERVICE_COMPONENT = ComponentName("foundation.e.apps", "foundation.e.apps.splitinstall.SplitInstallerService") ComponentName("foundation.e.apps", "foundation.e.apps.splitinstall.SplitInstallService") } private var service: ISplitInstallerService? = null private var service: ISplitInstallService? = null private val moduleList = ArrayList<InstallModule>() private val serviceConnection = object : ServiceConnection { override fun onServiceConnected(componentName: ComponentName, binder: IBinder) { service = ISplitInstallerService.Stub.asInterface(binder) service = ISplitInstallService.Stub.asInterface(binder) installWaitingModules() } Loading @@ -61,9 +61,11 @@ class AppLoungeSplitInstaller( } override fun install(packageName: String, moduleName: String) { service.let { if (service == null) { moduleList.add(InstallModule(packageName, moduleName)) } service?.installSplitModule(packageName, moduleName) } ?: moduleList.add(InstallModule(packageName, moduleName)) } private fun installWaitingModules() { Loading