Merge "Start to count the init time from calling updateState function" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
9f4fb486d8
@@ -315,9 +315,8 @@ final class HotwordDetectionConnection {
|
|||||||
// TODO: (b/181842909) Report an error to voice interactor
|
// TODO: (b/181842909) Report an error to voice interactor
|
||||||
Slog.w(TAG, "Failed to updateState for HotwordDetectionService", e);
|
Slog.w(TAG, "Failed to updateState for HotwordDetectionService", e);
|
||||||
}
|
}
|
||||||
return future;
|
return future.orTimeout(MAX_UPDATE_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS);
|
||||||
}).orTimeout(MAX_UPDATE_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS)
|
}).whenComplete((res, err) -> {
|
||||||
.whenComplete((res, err) -> {
|
|
||||||
if (err instanceof TimeoutException) {
|
if (err instanceof TimeoutException) {
|
||||||
Slog.w(TAG, "updateState timed out");
|
Slog.w(TAG, "updateState timed out");
|
||||||
if (mUpdateStateAfterStartFinished.getAndSet(true)) {
|
if (mUpdateStateAfterStartFinished.getAndSet(true)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user