Home
last modified time | relevance | path

Searched refs:cb_data (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Nfc/nxp/jni/
Dcom_android_nfc_NativeP2pDevice.cpp125 struct nfc_jni_callback_data cb_data; in com_android_nfc_NativeP2pDevice_doConnect() local
140 if (!nfc_cb_data_init(&cb_data, (void*)&sGeneralBytes)) in com_android_nfc_NativeP2pDevice_doConnect()
147 status = phLibNfc_RemoteDev_Connect(handle, nfc_jni_connect_callback, (void*)&cb_data); in com_android_nfc_NativeP2pDevice_doConnect()
157 if(sem_wait(&cb_data.sem)) in com_android_nfc_NativeP2pDevice_doConnect()
163 if(cb_data.status != NFCSTATUS_SUCCESS) in com_android_nfc_NativeP2pDevice_doConnect()
196 nfc_cb_data_deinit(&cb_data); in com_android_nfc_NativeP2pDevice_doConnect()
206 struct nfc_jni_callback_data cb_data; in com_android_nfc_NativeP2pDevice_doDisconnect() local
213 if (!nfc_cb_data_init(&cb_data, NULL)) in com_android_nfc_NativeP2pDevice_doDisconnect()
228 …RemoteDev_Disconnect(handle, NFC_DISCOVERY_CONTINUE,nfc_jni_disconnect_callback, (void *)&cb_data); in com_android_nfc_NativeP2pDevice_doDisconnect()
248 if(sem_wait(&cb_data.sem)) in com_android_nfc_NativeP2pDevice_doDisconnect()
[all …]
Dcom_android_nfc_NativeNfcTag.cpp184 struct nfc_jni_callback_data cb_data; in com_android_nfc_NativeNfcTag_doRead() local
189 if (!nfc_cb_data_init(&cb_data, NULL)) in com_android_nfc_NativeNfcTag_doRead()
204 (void *)&cb_data); in com_android_nfc_NativeNfcTag_doRead()
214 if(sem_wait(&cb_data.sem)) in com_android_nfc_NativeNfcTag_doRead()
220 if(cb_data.status != NFCSTATUS_SUCCESS) in com_android_nfc_NativeNfcTag_doRead()
230 nfc_cb_data_deinit(&cb_data); in com_android_nfc_NativeNfcTag_doRead()
242 struct nfc_jni_callback_data cb_data; in com_android_nfc_NativeNfcTag_doWrite() local
249 if (!nfc_cb_data_init(&cb_data, NULL)) in com_android_nfc_NativeNfcTag_doWrite()
261 status = phLibNfc_Ndef_Write(handle, &nfc_jni_ndef_rw,nfc_jni_tag_rw_callback, (void *)&cb_data); in com_android_nfc_NativeNfcTag_doWrite()
271 if(sem_wait(&cb_data.sem)) in com_android_nfc_NativeNfcTag_doWrite()
[all …]
Dcom_android_nfc_NativeLlcpSocket.cpp118 struct nfc_jni_callback_data cb_data; in com_android_nfc_NativeLlcpSocket_doConnect() local
126 if (!nfc_cb_data_init(&cb_data, NULL)) in com_android_nfc_NativeLlcpSocket_doConnect()
137 (void*)&cb_data); in com_android_nfc_NativeLlcpSocket_doConnect()
147 if(sem_wait(&cb_data.sem)) in com_android_nfc_NativeLlcpSocket_doConnect()
153 if(cb_data.status != NFCSTATUS_SUCCESS) in com_android_nfc_NativeLlcpSocket_doConnect()
162 nfc_cb_data_deinit(&cb_data); in com_android_nfc_NativeLlcpSocket_doConnect()
173 struct nfc_jni_callback_data cb_data; in com_android_nfc_NativeLlcpSocket_doConnectBy() local
181 if (!nfc_cb_data_init(&cb_data, NULL)) in com_android_nfc_NativeLlcpSocket_doConnectBy()
196 (void*)&cb_data); in com_android_nfc_NativeLlcpSocket_doConnectBy()
206 if(sem_wait(&cb_data.sem)) in com_android_nfc_NativeLlcpSocket_doConnectBy()
[all …]
Dcom_android_nfc_NativeLlcpConnectionlessSocket.cpp65 struct nfc_jni_callback_data cb_data; in com_android_nfc_NativeLlcpConnectionlessSocket_doSendTo() local
73 if (!nfc_cb_data_init(&cb_data, NULL)) in com_android_nfc_NativeLlcpConnectionlessSocket_doSendTo()
88 (void*)&cb_data); in com_android_nfc_NativeLlcpConnectionlessSocket_doSendTo()
98 if(sem_wait(&cb_data.sem)) in com_android_nfc_NativeLlcpConnectionlessSocket_doSendTo()
104 if(cb_data.status != NFCSTATUS_SUCCESS) in com_android_nfc_NativeLlcpConnectionlessSocket_doSendTo()
116 nfc_cb_data_deinit(&cb_data); in com_android_nfc_NativeLlcpConnectionlessSocket_doSendTo()
132 struct nfc_jni_callback_data cb_data; in com_android_nfc_NativeLlcpConnectionlessSocket_doReceiveFrom() local
135 if (!nfc_cb_data_init(&cb_data, NULL)) in com_android_nfc_NativeLlcpConnectionlessSocket_doReceiveFrom()
168 &cb_data); in com_android_nfc_NativeLlcpConnectionlessSocket_doReceiveFrom()
178 if(sem_wait(&cb_data.sem)) in com_android_nfc_NativeLlcpConnectionlessSocket_doReceiveFrom()
[all …]
Dcom_android_nfc_NativeNfcManager.cpp139 struct nfc_jni_callback_data cb_data; in nfc_jni_download_locked() local
143 if (!nfc_cb_data_init(&cb_data, NULL)) in nfc_jni_download_locked()
153 … status = phLibNfc_Mgt_DeInitialize(gHWRef, nfc_jni_deinit_download_callback, (void *)&cb_data); in nfc_jni_download_locked()
164 if(sem_timedwait(&cb_data.sem, &ts)) in nfc_jni_download_locked()
169 if(cb_data.status != NFCSTATUS_SUCCESS) in nfc_jni_download_locked()
185 status = phLibNfc_Mgt_Initialize(gHWRef, nfc_jni_init_callback, (void *)&cb_data); in nfc_jni_download_locked()
194 if(sem_wait(&cb_data.sem)) in nfc_jni_download_locked()
202 if(cb_data.status != NFCSTATUS_SUCCESS) in nfc_jni_download_locked()
204 status = cb_data.status; in nfc_jni_download_locked()
233 nfc_cb_data_deinit(&cb_data); in nfc_jni_download_locked()
[all …]
Dcom_android_nfc_NativeLlcpServiceSocket.cpp80 struct nfc_jni_callback_data cb_data; in com_NativeLlcpServiceSocket_doAccept() local
87 if (!nfc_cb_data_init(&cb_data, NULL)) in com_NativeLlcpServiceSocket_doAccept()
103 while(cb_data.status != NFCSTATUS_SUCCESS) in com_NativeLlcpServiceSocket_doAccept()
120 (void*)&cb_data); in com_NativeLlcpServiceSocket_doAccept()
132 if(sem_wait(&cb_data.sem)) in com_NativeLlcpServiceSocket_doAccept()
138 if(cb_data.status != NFCSTATUS_SUCCESS) in com_NativeLlcpServiceSocket_doAccept()
141 …LOGD("Failed to accept incoming socket 0x%04x[%s]", cb_data.status, nfc_jni_get_status_name(cb_da… in com_NativeLlcpServiceSocket_doAccept()
175 nfc_cb_data_deinit(&cb_data); in com_NativeLlcpServiceSocket_doAccept()