Home
last modified time | relevance | path

Searched refs:contextHubId (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/services/core/java/com/android/server/location/contexthub/
DContextHubService.java203 ContextHubServiceCallback(int contextHubId) { in ContextHubServiceCallback() argument
204 mContextHubId = contextHubId; in ContextHubServiceCallback()
272 ReliableMessageRecord(int contextHubId, long timestamp, in ReliableMessageRecord() argument
274 mContextHubId = contextHubId; in ReliableMessageRecord()
330 public boolean handleNanoappMessage(int contextHubId, in handleNanoappMessage() argument
344 handleClientMessageCallback(contextHubId, hostEndpointId, in handleNanoappMessage()
390 private IContextHubClientCallback createDefaultClientCallback(int contextHubId) { in createDefaultClientCallback() argument
394 IContextHubClient client = mDefaultClientMap.get(contextHubId); in createDefaultClientCallback()
400 + contextHubId in createDefaultClientCallback()
409 mNanoAppStateManager.getNanoAppHandle(contextHubId, message.getNanoAppId()); in createDefaultClientCallback()
[all …]
DNanoAppStateManager.java90 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<NanoAppState> nanoappStateList) { in updateCache() argument
158 contextHubId, nanoappState.getNanoAppId(), in updateCache()
[all …]
DIContextHubWrapper.java325 public abstract int sendMessageToContextHub(short hostEndpointId, int contextHubId, in sendMessageToContextHub() argument
337 int contextHubId, MessageDeliveryStatus status); in sendMessageDeliveryStatusToContextHub() argument
348 public abstract int loadNanoapp(int contextHubId, NanoAppBinary binary, in loadNanoapp() argument
355 public abstract int unloadNanoapp(int contextHubId, long nanoappId, in unloadNanoapp() argument
362 public abstract int enableNanoapp(int contextHubId, long nanoappId, in enableNanoapp() argument
369 public abstract int disableNanoapp(int contextHubId, long nanoappId, in disableNanoapp() argument
379 public abstract int queryNanoapps(int contextHubId) throws RemoteException; in queryNanoapps() argument
389 public abstract long[] getPreloadedNanoappIds(int contextHubId); in getPreloadedNanoappIds() argument
397 public abstract void registerCallback(int contextHubId, @NonNull ICallback callback) in registerCallback() argument
405 public abstract void registerExistingCallback(int contextHubId) throws RemoteException; in registerExistingCallback() argument
[all …]
DContextHubClientManager.java231 /* package */ byte onMessageFromNanoApp(int contextHubId, short hostEndpointId, in onMessageFromNanoApp() argument
252 ContextHubEventLogger.getInstance().logMessageFromNanoapp(contextHubId, message, in onMessageFromNanoApp()
254 broadcastMessage(contextHubId, message, nanoappPermissions, messagePermissions); in onMessageFromNanoApp()
260 ContextHubEventLogger.getInstance().logMessageFromNanoapp(contextHubId, message, in onMessageFromNanoApp()
268 ContextHubEventLogger.getInstance().logMessageFromNanoapp(contextHubId, message, in onMessageFromNanoApp()
301 /* package */ void onNanoAppLoaded(int contextHubId, long nanoAppId) { in onNanoAppLoaded() argument
302 forEachClientOfHub(contextHubId, client -> client.onNanoAppLoaded(nanoAppId)); in onNanoAppLoaded()
309 /* package */ void onNanoAppUnloaded(int contextHubId, long nanoAppId) { in onNanoAppUnloaded() argument
310 forEachClientOfHub(contextHubId, client -> client.onNanoAppUnloaded(nanoAppId)); in onNanoAppUnloaded()
316 /* package */ void onHubReset(int contextHubId) { in onHubReset() argument
[all …]
DContextHubEventLogger.java49 public final int contextHubId; field in ContextHubEventLogger.ContextHubEventBase
53 contextHubId = mContextHubId; in ContextHubEventBase()
105 sb.append(contextHubId); in toString()
133 sb.append(contextHubId); in toString()
163 sb.append(contextHubId); in toString()
186 sb.append(contextHubId); in toString()
242 public synchronized void logNanoappLoad(int contextHubId, long nanoappId, int nanoappVersion, in logNanoappLoad() argument
245 NanoappLoadEvent event = new NanoappLoadEvent(timeStampInMs, contextHubId, nanoappId, in logNanoappLoad()
260 public synchronized void logNanoappUnload(int contextHubId, long nanoappId, boolean success) { in logNanoappUnload() argument
262 NanoappUnloadEvent event = new NanoappUnloadEvent(timeStampInMs, contextHubId, in logNanoappUnload()
[all …]
DContextHubTransactionManager.java138 int contextHubId, NanoAppBinary nanoAppBinary, in createLoadTransaction() argument
147 contextHubId, nanoAppBinary, this.getTransactionId()); in createLoadTransaction()
166 contextHubId, in createLoadTransaction()
177 contextHubId, nanoAppBinary.getNanoAppId(), in createLoadTransaction()
183 mClientManager.onNanoAppLoaded(contextHubId, nanoAppBinary.getNanoAppId()); in createLoadTransaction()
201 int contextHubId, long nanoAppId, IContextHubTransactionCallback onCompleteCallback,
210 contextHubId, nanoAppId, this.getTransactionId());
228 contextHubId,
233 mNanoAppStateManager.removeNanoAppInstance(contextHubId, nanoAppId);
238 mClientManager.onNanoAppUnloaded(contextHubId, nanoAppId);
[all …]
DContextHubShellCommand.java55 int contextHubId = Integer.decode(getNextArgRequired()); in runDisableAuth() local
59 mInternal.denyClientAuthState(contextHubId, packageName, nanoAppId); in runDisableAuth()
DContextHubServiceUtil.java125 for (int contextHubId : collection) { in createPrimitiveIntArray()
126 primitiveArray[i++] = contextHubId; in createPrimitiveIntArray()
/frameworks/base/core/java/android/hardware/location/
DIContextHubService.aidl72 int contextHubId, in IContextHubClientCallback client, in String attributionTag, in createClient() argument
78 int contextHubId, in PendingIntent pendingIntent, long nanoAppId, in createPendingIntentClient() argument
88 int contextHubId, in IContextHubTransactionCallback transactionCallback, in loadNanoAppOnHub() argument
94 int contextHubId, in IContextHubTransactionCallback transactionCallback, in unloadNanoAppFromHub() argument
100 int contextHubId, in IContextHubTransactionCallback transactionCallback, in enableNanoApp() argument
106 int contextHubId, in IContextHubTransactionCallback transactionCallback, in disableNanoApp() argument
111 void queryNanoApps(int contextHubId, in IContextHubTransactionCallback transactionCallback); in queryNanoApps() argument
DNanoAppInstanceInfo.java59 public NanoAppInstanceInfo(int handle, long appId, int appVersion, int contextHubId) { in NanoAppInstanceInfo() argument
63 mContexthubId = contextHubId; in NanoAppInstanceInfo()