Searched refs:tun (Results 1 - 3 of 3) sorted by relevance

/frameworks/base/services/core/jni/
H A Dcom_android_server_connectivity_Vpn.cpp60 int tun = open("/dev/tun", O_RDWR | O_NONBLOCK); local
67 if (ioctl(tun, TUNSETIFF, &ifr4)) {
86 return tun;
89 close(tun);
93 static int get_interface_name(char *name, int tun) argument
96 if (ioctl(tun, TUNGETIFF, &ifr4)) {
264 int tun = create_interface(mtu); local
265 if (tun < 0) {
266 throwException(env, tun, "Canno
272 getName(JNIEnv *env, jobject , jint tun) argument
[all...]
/frameworks/av/media/libstagefright/codec2/tests/
H A DC2Param_test.cpp787 // C2NumberTuning: kIndex | tun | global (args)
796 // C2NumberPortTuning: kIndex | tun | port (bool, args)
798 // C2NumberPortTuning::input: kIndex | tun | port | input (args)
799 // C2NumberPortTuning::output: kIndex | tun | port | output (args)
817 // C2NumberStreamTuning: kIndex | tun | str (bool, uint, args)
819 // C2NumberStreamTuning::input kIndex | tun | str | input (int, args)
820 // C2NumberStreamTuning::output kIx | tun | str | output (int, args)
846 // C2NumbersTuning: kIndex | tun | global (args)
855 // C2NumbersPortTuning: kIndex | tun | port (bool, args)
857 // C2NumbersPortTuning::input: kIndex | tun | por
964 EXPECT_EQ(C2NumberTuning::From(&tun), &tun); local
1462 std::unique_ptr<const C2NumbersTuning> tun = std::move(tun_); local
[all...]
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DVpn.java900 ParcelFileDescriptor tun = ParcelFileDescriptor.adoptFd(jniCreate(config.mtu));
903 String interfaze = jniGetName(tun.getFd());
935 // Remove the old tun's user forwarding rules
936 // The new tun's user rules have already been added so they will take over
944 IoUtils.setBlocking(tun.getFileDescriptor(), config.blocking);
950 IoUtils.closeQuietly(tun);
961 return tun;
1492 private native String jniGetName(int tun); argument

Completed in 1674 milliseconds