Loading services/core/java/com/android/server/location/contexthub/HubInfoRegistry.java +3 −0 Original line number Diff line number Diff line Loading @@ -168,6 +168,7 @@ class HubInfoRegistry implements ContextHubHalEndpointCallback.IEndpointLifecycl /** Retrieve the list of hubs available. */ List<HubInfo> getHubs() { refreshCachedHubs(); synchronized (mLock) { return mHubsInfo; } Loading Loading @@ -265,6 +266,7 @@ class HubInfoRegistry implements ContextHubHalEndpointCallback.IEndpointLifecycl /** Return a list of {@link HubEndpointInfo} that represents endpoints with the matching id. */ public List<HubEndpointInfo> findEndpoints(long endpointIdQuery) { refreshCachedEndpoints(); List<HubEndpointInfo> searchResult = new ArrayList<>(); synchronized (mLock) { for (HubEndpointInfo.HubEndpointIdentifier endpointId : mHubEndpointInfos.keySet()) { Loading @@ -280,6 +282,7 @@ class HubInfoRegistry implements ContextHubHalEndpointCallback.IEndpointLifecycl * Return a list of {@link HubEndpointInfo} that represents endpoints with the matching service. */ public List<HubEndpointInfo> findEndpointsWithService(String serviceDescriptor) { refreshCachedEndpoints(); List<HubEndpointInfo> searchResult = new ArrayList<>(); synchronized (mLock) { for (HubEndpointInfo endpointInfo : mHubEndpointInfos.values()) { Loading Loading
services/core/java/com/android/server/location/contexthub/HubInfoRegistry.java +3 −0 Original line number Diff line number Diff line Loading @@ -168,6 +168,7 @@ class HubInfoRegistry implements ContextHubHalEndpointCallback.IEndpointLifecycl /** Retrieve the list of hubs available. */ List<HubInfo> getHubs() { refreshCachedHubs(); synchronized (mLock) { return mHubsInfo; } Loading Loading @@ -265,6 +266,7 @@ class HubInfoRegistry implements ContextHubHalEndpointCallback.IEndpointLifecycl /** Return a list of {@link HubEndpointInfo} that represents endpoints with the matching id. */ public List<HubEndpointInfo> findEndpoints(long endpointIdQuery) { refreshCachedEndpoints(); List<HubEndpointInfo> searchResult = new ArrayList<>(); synchronized (mLock) { for (HubEndpointInfo.HubEndpointIdentifier endpointId : mHubEndpointInfos.keySet()) { Loading @@ -280,6 +282,7 @@ class HubInfoRegistry implements ContextHubHalEndpointCallback.IEndpointLifecycl * Return a list of {@link HubEndpointInfo} that represents endpoints with the matching service. */ public List<HubEndpointInfo> findEndpointsWithService(String serviceDescriptor) { refreshCachedEndpoints(); List<HubEndpointInfo> searchResult = new ArrayList<>(); synchronized (mLock) { for (HubEndpointInfo endpointInfo : mHubEndpointInfos.values()) { Loading