From fbea7a2ca23ff8a4590acfa3745c942950ef4f17 Mon Sep 17 00:00:00 2001 From: Lili Zou Date: Mon, 29 Aug 2022 16:02:41 +0000 Subject: [PATCH] Revert "Change the Ambient Context Manager to return STATUS_SERVICE_UNAVAILABLE instead of STATUS_NOT_SUPPORTED when the detection service is not set up." This reverts commit 49938fc38566f32d783a8eebd054a5b492c52aa8. Reason for revert: the owner (kxchen@) says their client relies on STATUS_NOT_SUPPORTED to know whether AiAi service is available. And she will change the status code logic with some other improvements. Change-Id: I64785f224ded5b8f6b3d26f6865d5c1a017ad9d6 --- .../ambientcontext/AmbientContextManagerPerUserService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/ambientcontext/AmbientContextManagerPerUserService.java b/services/core/java/com/android/server/ambientcontext/AmbientContextManagerPerUserService.java index de70fa0ff2be8..028288f73564a 100644 --- a/services/core/java/com/android/server/ambientcontext/AmbientContextManagerPerUserService.java +++ b/services/core/java/com/android/server/ambientcontext/AmbientContextManagerPerUserService.java @@ -220,7 +220,7 @@ final class AmbientContextManagerPerUserService extends } else { Slog.w(TAG, "No valid component found for AmbientContextDetectionService"); sendStatusToCallback(clientStatusCallback, - AmbientContextManager.STATUS_SERVICE_UNAVAILABLE); + AmbientContextManager.STATUS_NOT_SUPPORTED); } } }