Lines Matching refs:nat

533     nfc_jni_native_data* nat = (nfc_jni_native_data*)malloc(sizeof(struct nfc_jni_native_data));
534 if (nat == NULL)
540 memset (nat, 0, sizeof(*nat));
541 e->GetJavaVM(&(nat->vm));
542 nat->env_version = e->GetVersion();
543 nat->manager = e->NewGlobalRef(o);
547 e->SetLongField(o, f, (jlong)nat);
573 if (nfc_jni_cache_object(e, gNativeNfcTagClassName, &(nat->cached_NfcTag)) == -1)
579 if (nfc_jni_cache_object(e, gNativeP2pDeviceClassName, &(nat->cached_P2pDevice)) == -1)
660 struct nfc_jni_native_data *nat = getNative(NULL, NULL);
662 ScopedAttach attach(nat->vm, &e);
669 e->CallVoidMethod (nat->manager, android::gCachedNfcManagerNotifyRfFieldActivated);
671 e->CallVoidMethod (nat->manager, android::gCachedNfcManagerNotifyRfFieldDeactivated);
879 struct nfc_jni_native_data *nat = getNative(e, o);
881 if ( nat )
884 nat->tech_mask = num;
886 nat->tech_mask = DEFAULT_TECH_MASK;
887 ALOGD ("%s: tag polling tech mask=0x%X", __FUNCTION__, nat->tech_mask);
892 nat->discovery_duration = num;
894 nat->discovery_duration = DEFAULT_DISCOVERY_DURATION;
896 NFA_SetRfDiscoveryDuration(nat->discovery_duration);
938 struct nfc_jni_native_data *nat = getNative(e, o);
940 if (technologies_mask == -1 && nat)
941 tech_mask = (tNFA_TECHNOLOGY_MASK)nat->tech_mask;
991 struct nfc_jni_native_data *nat = getNative(e, o);
994 NFA_SetRfDiscoveryDuration(nat->discovery_duration);
1548 struct nfc_jni_native_data *nat = getNative(e, o);
1557 nat->tech_mask = mask;
1739 struct nfc_jni_native_data *nat = getNative(0, 0);
1744 if (nat && (nat->tech_mask & (NFA_TECHNOLOGY_MASK_A_ACTIVE | NFA_TECHNOLOGY_MASK_F_ACTIVE)))