Home
last modified time | relevance | path

Searched refs:nanoAppId (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/services/core/java/com/android/server/location/
DContextHubClientBroker.java115 PendingIntentRequest(PendingIntent pendingIntent, long nanoAppId) { in PendingIntentRequest() argument
117 mNanoAppId = nanoAppId; in PendingIntentRequest()
153 long nanoAppId) { in ContextHubClientBroker() argument
159 mPendingIntentRequest = new PendingIntentRequest(pendingIntent, nanoAppId); in ContextHubClientBroker()
248 /* package */ void onNanoAppLoaded(long nanoAppId) { in onNanoAppLoaded() argument
249 invokeCallback(callback -> callback.onNanoAppLoaded(nanoAppId)); in onNanoAppLoaded()
251 () -> createIntent(ContextHubManager.EVENT_NANOAPP_LOADED, nanoAppId), nanoAppId); in onNanoAppLoaded() local
259 /* package */ void onNanoAppUnloaded(long nanoAppId) { in onNanoAppUnloaded() argument
260 invokeCallback(callback -> callback.onNanoAppUnloaded(nanoAppId)); in onNanoAppUnloaded()
262 () -> createIntent(ContextHubManager.EVENT_NANOAPP_UNLOADED, nanoAppId), nanoAppId); in onNanoAppUnloaded() local
[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()
179 private void handleQueryAppEntry(int contextHubId, long nanoAppId, int nanoAppVersion) { in handleQueryAppEntry() argument
180 int nanoAppHandle = getNanoAppHandle(contextHubId, nanoAppId); in handleQueryAppEntry()
[all …]
DContextHubClientManager.java126 ContextHubInfo contextHubInfo, PendingIntent pendingIntent, long nanoAppId) { in registerClient() argument
130 broker = getClientBroker(contextHubInfo.getId(), pendingIntent, nanoAppId); in registerClient()
136 hostEndPointId, pendingIntent, nanoAppId); in registerClient()
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()
217 /* package */ void onNanoAppAborted(int contextHubId, long nanoAppId, int abortCode) { in onNanoAppAborted() argument
218 forEachClientOfHub(contextHubId, client -> client.onNanoAppAborted(nanoAppId, abortCode)); in onNanoAppAborted()
278 int contextHubId, PendingIntent pendingIntent, long nanoAppId) { in getClientBroker() argument
[all …]
DContextHubTransactionManager.java152 int contextHubId, long nanoAppId, IContextHubTransactionCallback onCompleteCallback) {
159 contextHubId, nanoAppId, this.getTransactionId());
162 Long.toHexString(nanoAppId), e);
170 mNanoAppStateManager.removeNanoAppInstance(contextHubId, nanoAppId);
175 mClientManager.onNanoAppUnloaded(contextHubId, nanoAppId);
193 int contextHubId, long nanoAppId, IContextHubTransactionCallback onCompleteCallback) {
200 contextHubId, nanoAppId, this.getTransactionId());
203 Long.toHexString(nanoAppId), e);
228 int contextHubId, long nanoAppId, IContextHubTransactionCallback onCompleteCallback) {
235 contextHubId, nanoAppId, this.getTransactionId());
[all …]
DContextHubService.java134 public void handleAppAbort(long nanoAppId, int abortCode) { in handleAppAbort() argument
135 handleAppAbortCallback(mContextHubId, nanoAppId, abortCode); in handleAppAbort()
219 public void onNanoAppAborted(long nanoAppId, int abortCode) { in createDefaultClientCallback() argument
223 public void onNanoAppLoaded(long nanoAppId) { in createDefaultClientCallback() argument
227 public void onNanoAppUnloaded(long nanoAppId) { in createDefaultClientCallback() argument
231 public void onNanoAppEnabled(long nanoAppId) { in createDefaultClientCallback() argument
235 public void onNanoAppDisabled(long nanoAppId) { in createDefaultClientCallback() argument
396 long nanoAppId = info.getAppId();
400 contextHubId, nanoAppId, onCompleteCallback);
582 private void handleAppAbortCallback(int contextHubId, long nanoAppId, int abortCode) {
[all …]
/frameworks/base/core/java/android/hardware/location/
DContextHubIntentEvent.java48 long nanoAppId, NanoAppMessage nanoAppMessage, int nanoAppAbortCode) { in ContextHubIntentEvent() argument
51 mNanoAppId = nanoAppId; in ContextHubIntentEvent()
64 long nanoAppId) { in ContextHubIntentEvent() argument
65 this(contextHubInfo, eventType, nanoAppId, null /* nanoAppMessage */, in ContextHubIntentEvent()
71 long nanoAppId, @NonNull NanoAppMessage nanoAppMessage) { in ContextHubIntentEvent() argument
72 this(contextHubInfo, eventType, nanoAppId, nanoAppMessage, -1 /* nanoAppAbortCode */); in ContextHubIntentEvent()
77 long nanoAppId, int nanoAppAbortCode) { in ContextHubIntentEvent() argument
78 this(contextHubInfo, eventType, nanoAppId, null /* nanoAppMessage */, nanoAppAbortCode); in ContextHubIntentEvent()
109 long nanoAppId = getLongExtraOrThrow(intent, ContextHubManager.EXTRA_NANOAPP_ID); in fromIntent() local
118 event = new ContextHubIntentEvent(info, eventType, nanoAppId, message); in fromIntent()
[all …]
DIContextHubClientCallback.aidl36 void onNanoAppAborted(long nanoAppId, int abortCode); in onNanoAppAborted() argument
39 void onNanoAppLoaded(long nanoAppId); in onNanoAppLoaded() argument
42 void onNanoAppUnloaded(long nanoAppId); in onNanoAppUnloaded() argument
45 void onNanoAppEnabled(long nanoAppId); in onNanoAppEnabled() argument
48 void onNanoAppDisabled(long nanoAppId); in onNanoAppDisabled() argument
DContextHubManager.java501 @NonNull ContextHubInfo hubInfo, long nanoAppId) {
509 mService.unloadNanoAppFromHub(hubInfo.getId(), callback, nanoAppId);
529 @NonNull ContextHubInfo hubInfo, long nanoAppId) {
537 mService.enableNanoApp(hubInfo.getId(), callback, nanoAppId);
557 @NonNull ContextHubInfo hubInfo, long nanoAppId) {
565 mService.disableNanoApp(hubInfo.getId(), callback, nanoAppId);
684 public void onNanoAppAborted(long nanoAppId, int abortCode) {
685 executor.execute(() -> callback.onNanoAppAborted(client, nanoAppId, abortCode));
689 public void onNanoAppLoaded(long nanoAppId) {
690 executor.execute(() -> callback.onNanoAppLoaded(client, nanoAppId));
[all …]
DContextHubClientCallback.java66 public void onNanoAppAborted(ContextHubClient client, long nanoAppId, int abortCode) {} in onNanoAppAborted() argument
74 public void onNanoAppLoaded(ContextHubClient client, long nanoAppId) {} in onNanoAppLoaded() argument
82 public void onNanoAppUnloaded(ContextHubClient client, long nanoAppId) {} in onNanoAppUnloaded() argument
90 public void onNanoAppEnabled(ContextHubClient client, long nanoAppId) {} in onNanoAppEnabled() argument
98 public void onNanoAppDisabled(ContextHubClient client, long nanoAppId) {} in onNanoAppDisabled() argument
DIContextHubService.aidl66 int contextHubId, in PendingIntent pendingIntent, long nanoAppId); in createPendingIntentClient() argument
79 long nanoAppId); in unloadNanoAppFromHub() argument
84 long nanoAppId); in enableNanoApp() argument
89 long nanoAppId); in disableNanoApp() argument
DNanoAppState.java33 public NanoAppState(long nanoAppId, int appVersion, boolean enabled) { in NanoAppState() argument
34 mNanoAppId = nanoAppId; in NanoAppState()
DNanoAppMessage.java44 long nanoAppId, int messageType, byte[] messageBody, boolean broadcasted) { in NanoAppMessage() argument
45 mNanoAppId = nanoAppId; in NanoAppMessage()
DIContextHubCallback.aidl25 void onMessageReceipt(int hubId, int nanoAppId, in ContextHubMessage msg); in onMessageReceipt() argument