Lines Matching refs:e
163 static void nfcManager_doSetScreenState(JNIEnv* e, jobject o,
212 nfc_jni_native_data* getNative(JNIEnv* e, jobject o) { in getNative() argument
214 if (e) { in getNative()
215 sCachedNat = nfc_jni_get_nat(e, o); in getNative()
660 static jboolean nfcManager_initNativeStruc(JNIEnv* e, jobject o) { in nfcManager_initNativeStruc() argument
673 e->GetJavaVM(&(nat->vm)); in nfcManager_initNativeStruc()
674 nat->env_version = e->GetVersion(); in nfcManager_initNativeStruc()
675 nat->manager = e->NewGlobalRef(o); in nfcManager_initNativeStruc()
677 ScopedLocalRef<jclass> cls(e, e->GetObjectClass(o)); in nfcManager_initNativeStruc()
678 jfieldID f = e->GetFieldID(cls.get(), "mNative", "J"); in nfcManager_initNativeStruc()
679 e->SetLongField(o, f, (jlong)nat); in nfcManager_initNativeStruc()
683 e->GetMethodID(cls.get(), "notifyNdefMessageListeners", in nfcManager_initNativeStruc()
686 e->GetMethodID(cls.get(), "notifyLlcpLinkActivation", in nfcManager_initNativeStruc()
689 e->GetMethodID(cls.get(), "notifyLlcpLinkDeactivated", in nfcManager_initNativeStruc()
692 e->GetMethodID(cls.get(), "notifyLlcpLinkFirstPacketReceived", in nfcManager_initNativeStruc()
696 e->GetMethodID(cls.get(), "notifyHostEmuActivated", "(I)V"); in nfcManager_initNativeStruc()
699 e->GetMethodID(cls.get(), "notifyHostEmuData", "(I[B)V"); in nfcManager_initNativeStruc()
702 e->GetMethodID(cls.get(), "notifyHostEmuDeactivated", "(I)V"); in nfcManager_initNativeStruc()
705 e->GetMethodID(cls.get(), "notifyRfFieldActivated", "()V"); in nfcManager_initNativeStruc()
707 e->GetMethodID(cls.get(), "notifyRfFieldDeactivated", "()V"); in nfcManager_initNativeStruc()
709 gCachedNfcManagerNotifyTransactionListeners = e->GetMethodID( in nfcManager_initNativeStruc()
713 e->GetMethodID(cls.get(), "notifyEeUpdated", "()V"); in nfcManager_initNativeStruc()
715 if (nfc_jni_cache_object(e, gNativeNfcTagClassName, &(nat->cached_NfcTag)) == in nfcManager_initNativeStruc()
721 if (nfc_jni_cache_object(e, gNativeP2pDeviceClassName, in nfcManager_initNativeStruc()
801 JNIEnv* e = NULL; in nfaDeviceManagementCallback() local
802 ScopedAttach attach(nat->vm, &e); in nfaDeviceManagementCallback()
803 if (e == NULL) { in nfaDeviceManagementCallback()
808 e->CallVoidMethod(nat->manager, in nfaDeviceManagementCallback()
811 e->CallVoidMethod(nat->manager, in nfaDeviceManagementCallback()
896 static jboolean nfcManager_sendRawFrame(JNIEnv* e, jobject, jbyteArray data) { in nfcManager_sendRawFrame() argument
897 ScopedByteArrayRO bytes(e, data); in nfcManager_sendRawFrame()
919 static jboolean nfcManager_routeAid(JNIEnv* e, jobject, jbyteArray aid, in nfcManager_routeAid() argument
930 ScopedByteArrayRO bytes(e, aid); in nfcManager_routeAid()
948 static jboolean nfcManager_unrouteAid(JNIEnv* e, jobject, jbyteArray aid) { in nfcManager_unrouteAid() argument
957 ScopedByteArrayRO bytes(e, aid); in nfcManager_unrouteAid()
974 static jboolean nfcManager_commitRouting(JNIEnv* e, jobject) { in nfcManager_commitRouting() argument
996 static jint nfcManager_doRegisterT3tIdentifier(JNIEnv* e, jobject, in nfcManager_doRegisterT3tIdentifier() argument
1000 ScopedByteArrayRO bytes(e, t3tIdentifier); in nfcManager_doRegisterT3tIdentifier()
1068 static jboolean nfcManager_doInitialize(JNIEnv* e, jobject o) { in nfcManager_doInitialize() argument
1104 RoutingManager::getInstance().initialize(getNative(e, o)); in nfcManager_doInitialize()
1106 NfcTag::getInstance().initialize(getNative(e, o)); in nfcManager_doInitialize()
1109 HciEventManager::getInstance().initialize(getNative(e, o)); in nfcManager_doInitialize()
1125 struct nfc_jni_native_data* nat = getNative(e, o); in nfcManager_doInitialize()
1231 static void nfcManager_enableDiscovery(JNIEnv* e, jobject o, in nfcManager_enableDiscovery() argument
1238 struct nfc_jni_native_data* nat = getNative(e, o); in nfcManager_enableDiscovery()
1288 struct nfc_jni_native_data* nat = getNative(e, o); in nfcManager_enableDiscovery()
1331 void nfcManager_disableDiscovery(JNIEnv* e, jobject o) { in nfcManager_disableDiscovery() argument
1372 static jobject nfcManager_doCreateLlcpServiceSocket(JNIEnv* e, jobject, in nfcManager_doCreateLlcpServiceSocket() argument
1379 ScopedUtfChars serviceName(e, sn); in nfcManager_doCreateLlcpServiceSocket()
1387 if (nfc_jni_cache_object_local(e, gNativeLlcpServiceSocketClassName, in nfcManager_doCreateLlcpServiceSocket()
1396 e, e->GetObjectClass(serviceSocket)); in nfcManager_doCreateLlcpServiceSocket()
1397 if (e->ExceptionCheck()) { in nfcManager_doCreateLlcpServiceSocket()
1398 e->ExceptionClear(); in nfcManager_doCreateLlcpServiceSocket()
1413 f = e->GetFieldID(clsNativeLlcpServiceSocket.get(), "mHandle", "I"); in nfcManager_doCreateLlcpServiceSocket()
1414 e->SetIntField(serviceSocket, f, (jint)jniHandle); in nfcManager_doCreateLlcpServiceSocket()
1419 f = e->GetFieldID(clsNativeLlcpServiceSocket.get(), in nfcManager_doCreateLlcpServiceSocket()
1421 e->SetIntField(serviceSocket, f, (jint)linearBufferLength); in nfcManager_doCreateLlcpServiceSocket()
1426 f = e->GetFieldID(clsNativeLlcpServiceSocket.get(), "mLocalMiu", "I"); in nfcManager_doCreateLlcpServiceSocket()
1427 e->SetIntField(serviceSocket, f, (jint)miu); in nfcManager_doCreateLlcpServiceSocket()
1432 f = e->GetFieldID(clsNativeLlcpServiceSocket.get(), "mLocalRw", "I"); in nfcManager_doCreateLlcpServiceSocket()
1433 e->SetIntField(serviceSocket, f, (jint)rw); in nfcManager_doCreateLlcpServiceSocket()
1533 static jobject nfcManager_doCreateLlcpSocket(JNIEnv* e, jobject, jint nSap, in nfcManager_doCreateLlcpSocket() argument
1546 if (nfc_jni_cache_object_local(e, gNativeLlcpSocketClassName, in nfcManager_doCreateLlcpSocket()
1553 ScopedLocalRef<jclass> clsNativeLlcpSocket(e, in nfcManager_doCreateLlcpSocket()
1554 e->GetObjectClass(clientSocket)); in nfcManager_doCreateLlcpSocket()
1555 if (e->ExceptionCheck()) { in nfcManager_doCreateLlcpSocket()
1556 e->ExceptionClear(); in nfcManager_doCreateLlcpSocket()
1564 f = e->GetFieldID(clsNativeLlcpSocket.get(), "mSap", "I"); in nfcManager_doCreateLlcpSocket()
1565 e->SetIntField(clientSocket, f, (jint)nSap); in nfcManager_doCreateLlcpSocket()
1568 f = e->GetFieldID(clsNativeLlcpSocket.get(), "mHandle", "I"); in nfcManager_doCreateLlcpSocket()
1569 e->SetIntField(clientSocket, f, (jint)jniHandle); in nfcManager_doCreateLlcpSocket()
1572 f = e->GetFieldID(clsNativeLlcpSocket.get(), "mLocalMiu", "I"); in nfcManager_doCreateLlcpSocket()
1573 e->SetIntField(clientSocket, f, (jint)miu); in nfcManager_doCreateLlcpSocket()
1576 f = e->GetFieldID(clsNativeLlcpSocket.get(), "mLocalRw", "I"); in nfcManager_doCreateLlcpSocket()
1577 e->SetIntField(clientSocket, f, (jint)rw); in nfcManager_doCreateLlcpSocket()
1685 static void nfcManager_doAbort(JNIEnv* e, jobject, jstring msg) { in nfcManager_doAbort() argument
1686 ScopedUtfChars message = {e, msg}; in nfcManager_doAbort()
1687 e->FatalError(message.c_str()); in nfcManager_doAbort()
1780 static void nfcManager_doDump(JNIEnv* e, jobject obj, jobject fdobj) { in nfcManager_doDump() argument
1781 int fd = jniGetFDFromFileDescriptor(e, fdobj); in nfcManager_doDump()
1792 static void nfcManager_doSetScreenState(JNIEnv* e, jobject o, in nfcManager_doSetScreenState() argument
1895 static void nfcManager_doSetP2pInitiatorModes(JNIEnv* e, jobject o, in nfcManager_doSetP2pInitiatorModes() argument
1899 struct nfc_jni_native_data* nat = getNative(e, o); in nfcManager_doSetP2pInitiatorModes()
1937 static void nfcManager_doEnableScreenOffSuspend(JNIEnv* e, jobject o) { in nfcManager_doEnableScreenOffSuspend() argument
1942 static void nfcManager_doDisableScreenOffSuspend(JNIEnv* e, jobject o) { in nfcManager_doDisableScreenOffSuspend() argument
1979 static jboolean nfcManager_doSetNfcSecure(JNIEnv* e, jobject o, in nfcManager_doSetNfcSecure() argument
2093 int register_com_android_nfc_NativeNfcManager(JNIEnv* e) { in register_com_android_nfc_NativeNfcManager() argument
2097 return jniRegisterNativeMethods(e, gNativeNfcManagerClassName, gMethods, in register_com_android_nfc_NativeNfcManager()