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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user