Loading services/core/java/com/android/server/location/contexthub/ContextHubClientBroker.java +1 −1 Original line number Diff line number Diff line Loading @@ -395,7 +395,7 @@ public class ContextHubClientBroker extends IContextHubClient.Stub int contextHubId = mAttachedContextHubInfo.getId(); try { result = mContextHubProxy.sendMessageToHub(contextHubId, messageToNanoApp); result = mContextHubProxy.getHub().sendMessageToHub(contextHubId, messageToNanoApp); } catch (RemoteException e) { Log.e(TAG, "RemoteException in sendMessageToNanoApp (target hub ID = " + contextHubId + ")", e); Loading services/core/java/com/android/server/location/contexthub/IContextHubWrapper.java +0 −24 Original line number Diff line number Diff line Loading @@ -103,12 +103,6 @@ public abstract class IContextHubWrapper { public abstract void registerCallback( int hubId, IContexthubCallback callback) throws RemoteException; /** * Calls the appropriate sendMessageToHub function depending on the HAL version. */ public abstract int sendMessageToHub(int hubId, android.hardware.contexthub.V1_0.ContextHubMsg message) throws RemoteException; /** * @return A valid instance of Contexthub HAL 1.0. */ Loading Loading @@ -180,11 +174,6 @@ public abstract class IContextHubWrapper { mHub.registerCallback(hubId, callback); } public int sendMessageToHub(int hubId, android.hardware.contexthub.V1_0.ContextHubMsg message) throws RemoteException { return mHub.sendMessageToHub(hubId, message); } public android.hardware.contexthub.V1_0.IContexthub getHub() { return mHub; } Loading Loading @@ -234,11 +223,6 @@ public abstract class IContextHubWrapper { mHub.registerCallback(hubId, callback); } public int sendMessageToHub(int hubId, android.hardware.contexthub.V1_0.ContextHubMsg message) throws RemoteException { return mHub.sendMessageToHub(hubId, message); } public android.hardware.contexthub.V1_0.IContexthub getHub() { return mHub; } Loading Loading @@ -304,14 +288,6 @@ public abstract class IContextHubWrapper { mHub.registerCallback_1_2(hubId, callback); } public int sendMessageToHub(int hubId, android.hardware.contexthub.V1_0.ContextHubMsg message) throws RemoteException { android.hardware.contexthub.V1_2.ContextHubMsg newMessage = new android.hardware.contexthub.V1_2.ContextHubMsg(); newMessage.msg_1_0 = message; return mHub.sendMessageToHub_1_2(hubId, newMessage); } public android.hardware.contexthub.V1_0.IContexthub getHub() { return mHub; } Loading Loading
services/core/java/com/android/server/location/contexthub/ContextHubClientBroker.java +1 −1 Original line number Diff line number Diff line Loading @@ -395,7 +395,7 @@ public class ContextHubClientBroker extends IContextHubClient.Stub int contextHubId = mAttachedContextHubInfo.getId(); try { result = mContextHubProxy.sendMessageToHub(contextHubId, messageToNanoApp); result = mContextHubProxy.getHub().sendMessageToHub(contextHubId, messageToNanoApp); } catch (RemoteException e) { Log.e(TAG, "RemoteException in sendMessageToNanoApp (target hub ID = " + contextHubId + ")", e); Loading
services/core/java/com/android/server/location/contexthub/IContextHubWrapper.java +0 −24 Original line number Diff line number Diff line Loading @@ -103,12 +103,6 @@ public abstract class IContextHubWrapper { public abstract void registerCallback( int hubId, IContexthubCallback callback) throws RemoteException; /** * Calls the appropriate sendMessageToHub function depending on the HAL version. */ public abstract int sendMessageToHub(int hubId, android.hardware.contexthub.V1_0.ContextHubMsg message) throws RemoteException; /** * @return A valid instance of Contexthub HAL 1.0. */ Loading Loading @@ -180,11 +174,6 @@ public abstract class IContextHubWrapper { mHub.registerCallback(hubId, callback); } public int sendMessageToHub(int hubId, android.hardware.contexthub.V1_0.ContextHubMsg message) throws RemoteException { return mHub.sendMessageToHub(hubId, message); } public android.hardware.contexthub.V1_0.IContexthub getHub() { return mHub; } Loading Loading @@ -234,11 +223,6 @@ public abstract class IContextHubWrapper { mHub.registerCallback(hubId, callback); } public int sendMessageToHub(int hubId, android.hardware.contexthub.V1_0.ContextHubMsg message) throws RemoteException { return mHub.sendMessageToHub(hubId, message); } public android.hardware.contexthub.V1_0.IContexthub getHub() { return mHub; } Loading Loading @@ -304,14 +288,6 @@ public abstract class IContextHubWrapper { mHub.registerCallback_1_2(hubId, callback); } public int sendMessageToHub(int hubId, android.hardware.contexthub.V1_0.ContextHubMsg message) throws RemoteException { android.hardware.contexthub.V1_2.ContextHubMsg newMessage = new android.hardware.contexthub.V1_2.ContextHubMsg(); newMessage.msg_1_0 = message; return mHub.sendMessageToHub_1_2(hubId, newMessage); } public android.hardware.contexthub.V1_0.IContexthub getHub() { return mHub; } Loading