/frameworks/base/services/core/java/com/android/server/location/ |
D | ContextHubService.java | 119 ContextHubServiceCallback(int contextHubId) { in ContextHubServiceCallback() argument 120 mContextHubId = contextHubId; in ContextHubServiceCallback() 178 for (int contextHubId : mContextHubIdToInfoMap.keySet()) { in ContextHubService() 179 ContextHubInfo contextHubInfo = mContextHubIdToInfoMap.get(contextHubId); in ContextHubService() 181 contextHubInfo, createDefaultClientCallback(contextHubId)); in ContextHubService() 182 defaultClientMap.put(contextHubId, client); in ContextHubService() 186 contextHubId, new ContextHubServiceCallback(contextHubId)); in ContextHubService() 189 + contextHubId + ")", e); in ContextHubService() 194 queryNanoAppsInternal(contextHubId); in ContextHubService() 218 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 | 243 /* package */ void onMessageFromNanoApp(int contextHubId, ContextHubMsg message) { in onMessageFromNanoApp() argument 251 broadcastMessage(contextHubId, clientMessage); in onMessageFromNanoApp() 291 /* package */ void onNanoAppLoaded(int contextHubId, long nanoAppId) { in onNanoAppLoaded() argument 292 forEachClientOfHub(contextHubId, client -> client.onNanoAppLoaded(nanoAppId)); in onNanoAppLoaded() 299 /* package */ void onNanoAppUnloaded(int contextHubId, long nanoAppId) { in onNanoAppUnloaded() argument 300 forEachClientOfHub(contextHubId, client -> client.onNanoAppUnloaded(nanoAppId)); in onNanoAppUnloaded() 306 /* package */ void onHubReset(int contextHubId) { in onHubReset() argument 307 forEachClientOfHub(contextHubId, client -> client.onHubReset()); in onHubReset() 315 /* package */ void onNanoAppAborted(int contextHubId, long nanoAppId, int abortCode) { in onNanoAppAborted() argument 316 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 | 213 int contextHubId = mAttachedContextHubInfo.getId(); in sendMessageToNanoApp() local 215 result = mContextHubProxy.sendMessageToHub(contextHubId, messageToNanoApp); in sendMessageToNanoApp() 218 + 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()
|