summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorArthur Ishiguro <arthuri@google.com>2018-11-15 13:10:24 -0800
committerArthur Ishiguro <arthuri@google.com>2018-11-19 09:31:14 -0800
commit793d3d180113aece022ed4ddafc2ed15c4bc4780 (patch)
treeb58e189e5ef97ba4da9d39e9a868aaa709aad483 /core/java/android
parent992cd354fcebfd78ff7dc0eb2acf362d14497eef (diff)
Reorders arguments in Context Hub Service methods
No functional change, just reordering things in internal methods to be consistent with the API definition. Also fixes stale javadoc. Bug: 117612105 Test: Compile only Change-Id: I455d3d5c8f1d5077dbacfa96ad1c71da27559b8e
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/hardware/location/ContextHubManager.java2
-rw-r--r--core/java/android/hardware/location/IContextHubService.aidl2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/hardware/location/ContextHubManager.java b/core/java/android/hardware/location/ContextHubManager.java
index 843db6653927..88fb3de24c91 100644
--- a/core/java/android/hardware/location/ContextHubManager.java
+++ b/core/java/android/hardware/location/ContextHubManager.java
@@ -764,7 +764,7 @@ public final class ContextHubManager {
IContextHubClient clientProxy;
try {
- clientProxy = mService.createClient(clientInterface, hubInfo.getId());
+ clientProxy = mService.createClient(hubInfo.getId(), clientInterface);
} catch (RemoteException e) {
throw e.rethrowFromSystemServer();
}
diff --git a/core/java/android/hardware/location/IContextHubService.aidl b/core/java/android/hardware/location/IContextHubService.aidl
index 19ed694f4a72..04cc5634bf2c 100644
--- a/core/java/android/hardware/location/IContextHubService.aidl
+++ b/core/java/android/hardware/location/IContextHubService.aidl
@@ -59,7 +59,7 @@ interface IContextHubService {
int sendMessage(int contextHubHandle, int nanoAppHandle, in ContextHubMessage msg);
// Creates a client to send and receive messages
- IContextHubClient createClient(in IContextHubClientCallback client, int contextHubId);
+ IContextHubClient createClient(int contextHubId, in IContextHubClientCallback client);
// Creates a PendingIntent-based client to send and receive messages
IContextHubClient createPendingIntentClient(