Merge "Called onError() when HotwordDetectionService process died" into sc-dev am: 97be319829
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14879196 Change-Id: I859be2a7a8a8bb32bfe4b4e87fdbdf3c08d81747
This commit is contained in:
@@ -131,6 +131,17 @@ final class HotwordDetectionConnection {
|
|||||||
protected long getAutoDisconnectTimeoutMs() {
|
protected long getAutoDisconnectTimeoutMs() {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void binderDied() {
|
||||||
|
super.binderDied();
|
||||||
|
Slog.w(TAG, "binderDied");
|
||||||
|
try {
|
||||||
|
callback.onError(-1);
|
||||||
|
} catch (RemoteException e) {
|
||||||
|
Slog.w(TAG, "Failed to report onError status: " + e);
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
mRemoteHotwordDetectionService.connect();
|
mRemoteHotwordDetectionService.connect();
|
||||||
if (callback == null) {
|
if (callback == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user