Merge "Enable process restart behavior for VisualQueryDetectionService" into udc-dev

This commit is contained in:
Charles Chen
2023-04-20 15:23:05 +00:00
committed by Android (Google) Code Review

View File

@@ -81,7 +81,12 @@ final class VisualQueryDetectorSession extends DetectorSession {
void informRestartProcessLocked() {
Slog.v(TAG, "informRestartProcessLocked");
mUpdateStateAfterStartFinished.set(false);
//TODO(b/261783819): Starts detection in VisualQueryDetectionService.
try {
mCallback.onProcessRestarted();
} catch (RemoteException e) {
Slog.w(TAG, "Failed to communicate #onProcessRestarted", e);
notifyOnDetectorRemoteException();
}
}
void setVisualQueryDetectionAttentionListenerLocked(