/frameworks/base/services/core/java/com/android/server/location/ |
D | ContextHubService.java | 114 ContextHubServiceCallback(int contextHubId) { in ContextHubServiceCallback() argument 115 mContextHubId = contextHubId; in ContextHubServiceCallback() 173 for (int contextHubId : mContextHubIdToInfoMap.keySet()) { in ContextHubService() 174 ContextHubInfo contextHubInfo = mContextHubIdToInfoMap.get(contextHubId); in ContextHubService() 176 contextHubInfo, createDefaultClientCallback(contextHubId)); in ContextHubService() 177 defaultClientMap.put(contextHubId, client); in ContextHubService() 181 contextHubId, new ContextHubServiceCallback(contextHubId)); in ContextHubService() 184 + contextHubId + ")", e); in ContextHubService() 189 queryNanoAppsInternal(contextHubId); in ContextHubService() 200 private IContextHubClientCallback createDefaultClientCallback(int contextHubId) { in createDefaultClientCallback() argument [all …]
|
D | NanoAppStateManager.java | 90 synchronized int getNanoAppHandle(int contextHubId, long nanoAppId) { in getNanoAppHandle() argument 92 if (info.getContexthubId() == contextHubId && info.getAppId() == nanoAppId) { in getNanoAppHandle() 111 synchronized void addNanoAppInstance(int contextHubId, long nanoAppId, int nanoAppVersion) { in addNanoAppInstance() argument 112 removeNanoAppInstance(contextHubId, nanoAppId); in addNanoAppInstance() 122 nanoAppHandle, nanoAppId, nanoAppVersion, contextHubId)); in addNanoAppInstance() 131 + contextHubId + ": ID=0x" + Long.toHexString(nanoAppId) in addNanoAppInstance() 142 synchronized void removeNanoAppInstance(int contextHubId, long nanoAppId) { in removeNanoAppInstance() argument 143 int nanoAppHandle = getNanoAppHandle(contextHubId, nanoAppId); in removeNanoAppInstance() 154 synchronized void updateCache(int contextHubId, List<HubAppInfo> nanoAppInfoList) { in updateCache() argument 157 handleQueryAppEntry(contextHubId, appInfo.appId, appInfo.version); in updateCache() [all …]
|
D | ContextHubClientManager.java | 152 /* package */ void onMessageFromNanoApp(int contextHubId, ContextHubMsg message) { in onMessageFromNanoApp() argument 160 broadcastMessage(contextHubId, clientMessage); in onMessageFromNanoApp() 193 /* package */ void onNanoAppLoaded(int contextHubId, long nanoAppId) { in onNanoAppLoaded() argument 194 forEachClientOfHub(contextHubId, client -> client.onNanoAppLoaded(nanoAppId)); in onNanoAppLoaded() 201 /* package */ void onNanoAppUnloaded(int contextHubId, long nanoAppId) { in onNanoAppUnloaded() argument 202 forEachClientOfHub(contextHubId, client -> client.onNanoAppUnloaded(nanoAppId)); in onNanoAppUnloaded() 208 /* package */ void onHubReset(int contextHubId) { in onHubReset() argument 209 forEachClientOfHub(contextHubId, client -> client.onHubReset()); in onHubReset() 217 /* package */ void onNanoAppAborted(int contextHubId, long nanoAppId, int abortCode) { in onNanoAppAborted() argument 218 forEachClientOfHub(contextHubId, client -> client.onNanoAppAborted(nanoAppId, abortCode)); in onNanoAppAborted() [all …]
|
D | ContextHubTransactionManager.java | 103 int contextHubId, NanoAppBinary nanoAppBinary, in createLoadTransaction() argument 113 contextHubId, hidlNanoAppBinary, this.getTransactionId()); in createLoadTransaction() 128 contextHubId, nanoAppBinary.getNanoAppId(), in createLoadTransaction() 134 mClientManager.onNanoAppLoaded(contextHubId, nanoAppBinary.getNanoAppId()); in createLoadTransaction() 152 int contextHubId, long nanoAppId, IContextHubTransactionCallback onCompleteCallback) { 159 contextHubId, nanoAppId, this.getTransactionId()); 170 mNanoAppStateManager.removeNanoAppInstance(contextHubId, nanoAppId); 175 mClientManager.onNanoAppUnloaded(contextHubId, nanoAppId); 193 int contextHubId, long nanoAppId, IContextHubTransactionCallback onCompleteCallback) { 200 contextHubId, nanoAppId, this.getTransactionId()); [all …]
|
D | ContextHubClientBroker.java | 178 int contextHubId = mAttachedContextHubInfo.getId(); in sendMessageToNanoApp() local 180 result = mContextHubProxy.sendMessageToHub(contextHubId, messageToNanoApp); in sendMessageToNanoApp() 183 + contextHubId + ")", e); in sendMessageToNanoApp()
|
D | ContextHubServiceUtil.java | 105 for (int contextHubId : collection) { in createPrimitiveIntArray() 106 primitiveArray[i++] = contextHubId; in createPrimitiveIntArray()
|
/frameworks/base/core/java/android/hardware/location/ |
D | IContextHubService.aidl | 62 IContextHubClient createClient(int contextHubId, in IContextHubClientCallback client); in createClient() argument 66 int contextHubId, in PendingIntent pendingIntent, long nanoAppId); in createPendingIntentClient() argument 73 int contextHubId, in IContextHubTransactionCallback transactionCallback, in loadNanoAppOnHub() argument 78 int contextHubId, in IContextHubTransactionCallback transactionCallback, in unloadNanoAppFromHub() argument 83 int contextHubId, in IContextHubTransactionCallback transactionCallback, in enableNanoApp() argument 88 int contextHubId, in IContextHubTransactionCallback transactionCallback, in disableNanoApp() argument 92 void queryNanoApps(int contextHubId, in IContextHubTransactionCallback transactionCallback); in queryNanoApps() argument
|
D | NanoAppInstanceInfo.java | 59 public NanoAppInstanceInfo(int handle, long appId, int appVersion, int contextHubId) { in NanoAppInstanceInfo() argument 63 mContexthubId = contextHubId; in NanoAppInstanceInfo()
|