Home | History | Annotate | Download | only in jni

Lines Matching refs:modes

1756 ** Description:     Set P2P initiator's activation modes.
1759 ** modes: Active and/or passive modes. The values are specified
1766 static void nfcManager_doSetP2pInitiatorModes (JNIEnv *e, jobject o, jint modes)
1768 ALOGD ("%s: modes=0x%X", __FUNCTION__, modes);
1772 if (modes & 0x01) mask |= NFA_TECHNOLOGY_MASK_A;
1773 if (modes & 0x02) mask |= NFA_TECHNOLOGY_MASK_F;
1774 if (modes & 0x04) mask |= NFA_TECHNOLOGY_MASK_F;
1775 if (modes & 0x08) mask |= NFA_TECHNOLOGY_MASK_A_ACTIVE;
1776 if (modes & 0x10) mask |= NFA_TECHNOLOGY_MASK_F_ACTIVE;
1777 if (modes & 0x20) mask |= NFA_TECHNOLOGY_MASK_F_ACTIVE;
1786 ** Description: Set P2P target's activation modes.
1789 ** modes: Active and/or passive modes.
1794 static void nfcManager_doSetP2pTargetModes (JNIEnv*, jobject, jint modes)
1796 ALOGD ("%s: modes=0x%X", __FUNCTION__, modes);
1797 // Map in the right modes
1799 if (modes & 0x01) mask |= NFA_TECHNOLOGY_MASK_A;
1800 if (modes & 0x02) mask |= NFA_TECHNOLOGY_MASK_F;
1801 if (modes & 0x04) mask |= NFA_TECHNOLOGY_MASK_F;
1802 if (modes