Loading services/core/java/com/android/server/location/contexthub/ContextHubService.java +5 −5 Original line number Diff line number Diff line Loading @@ -370,11 +370,6 @@ public class ContextHubService extends IContextHubService.Stub { mLastRestartTimestampMap.put(contextHubId, new AtomicLong(SystemClock.elapsedRealtimeNanos())); IContextHubClient client = mClientManager.registerClient( contextHubInfo, createDefaultClientCallback(contextHubId), /* attributionTag= */ null, mTransactionManager, mContext.getPackageName()); defaultClientMap.put(contextHubId, client); try { mContextHubWrapper.registerCallback(contextHubId, new ContextHubServiceCallback(contextHubId)); Loading @@ -383,6 +378,11 @@ public class ContextHubService extends IContextHubService.Stub { + contextHubId + ")", e); } IContextHubClient client = mClientManager.registerClient( contextHubInfo, createDefaultClientCallback(contextHubId), /* attributionTag= */ null, mTransactionManager, mContext.getPackageName()); defaultClientMap.put(contextHubId, client); // Do a query to initialize the service cache list of nanoapps // TODO(b/194289715): Remove this when old API is deprecated queryNanoAppsInternal(contextHubId); Loading Loading
services/core/java/com/android/server/location/contexthub/ContextHubService.java +5 −5 Original line number Diff line number Diff line Loading @@ -370,11 +370,6 @@ public class ContextHubService extends IContextHubService.Stub { mLastRestartTimestampMap.put(contextHubId, new AtomicLong(SystemClock.elapsedRealtimeNanos())); IContextHubClient client = mClientManager.registerClient( contextHubInfo, createDefaultClientCallback(contextHubId), /* attributionTag= */ null, mTransactionManager, mContext.getPackageName()); defaultClientMap.put(contextHubId, client); try { mContextHubWrapper.registerCallback(contextHubId, new ContextHubServiceCallback(contextHubId)); Loading @@ -383,6 +378,11 @@ public class ContextHubService extends IContextHubService.Stub { + contextHubId + ")", e); } IContextHubClient client = mClientManager.registerClient( contextHubInfo, createDefaultClientCallback(contextHubId), /* attributionTag= */ null, mTransactionManager, mContext.getPackageName()); defaultClientMap.put(contextHubId, client); // Do a query to initialize the service cache list of nanoapps // TODO(b/194289715): Remove this when old API is deprecated queryNanoAppsInternal(contextHubId); Loading