+28
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
This CL adds the `registerInferenceServiceLifecycleListener` API to `OnDeviceIntelligenceManager` and the corresponding implementation in the service side. The `LifecycleListener` (now nested within `OnDeviceSandboxedInferenceService`) will be notified when a lifecycle event occurs, such as: - `LIFECYCLE_EVENT_MODEL_LOADED` - `LIFECYCLE_EVENT_MODEL_UNLOADED` - `LIFECYCLE_EVENT_ATTEMPTING_MODEL_LOADING` This allows clients to track the lifecycle status of models and the inference service. Flag: android.app.ondeviceintelligence.flags.on_device_intelligence_25q4 Bug: 372658837 Test: cts Change-Id: I3b03febe78871db81b1146462bec3dd4aadfbd67