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

Commit 6f0adf13 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add notification for onInferenceServiceDisconnected" into main

parents 93526e68 1a69bf65
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -648,6 +648,21 @@ public class OnDeviceIntelligenceManagerService extends SystemService {
                                    Slog.w(TAG, "Failed to send connected event", ex);
                                }
                            }

                            @Override
                            public void onDisconnected(
                                    @NonNull IOnDeviceSandboxedInferenceService service) {
                                ensureRemoteIntelligenceServiceInitialized();
                                mRemoteOnDeviceIntelligenceService.run(
                                        IOnDeviceIntelligenceService::notifyInferenceServiceDisconnected);
                            }

                            @Override
                            public void onBinderDied() {
                                ensureRemoteIntelligenceServiceInitialized();
                                mRemoteOnDeviceIntelligenceService.run(
                                        IOnDeviceIntelligenceService::notifyInferenceServiceDisconnected);
                            }
                        });
            }
        }