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

Commit 2ff57111 authored by Sandeep Bandaru's avatar Sandeep Bandaru
Browse files

Implement registerInferenceServiceLifecycleListener for OnDeviceIntelligence

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
parent ae2f4fc9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment