Skip WTF log for missing CONTEXTHUB_SERVICE

Wtf dump will record unnecessary log if device does not support
ContextHubMangager and impacting the performance in low RAM device.
Adding CONTEXTHUB_SERVICE in the switch statement creates a
exception to not log it.

Fixes: 236768432
Test: TreeHugger test
Change-Id: I724f7b1e1c7aa30f37d578ca302c3f57a5187075
This commit is contained in:
rockyfang
2022-07-14 01:00:58 +00:00
committed by Rocky Fang
parent 9c8e10d085
commit 2f456040b8

View File

@@ -1606,6 +1606,7 @@ public final class SystemServiceRegistry {
case Context.APP_PREDICTION_SERVICE:
case Context.INCREMENTAL_SERVICE:
case Context.ETHERNET_SERVICE:
case Context.CONTEXTHUB_SERVICE:
return null;
}
Slog.wtf(TAG, "Manager wrapper not available: " + name);