Searched refs:tun (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/services/core/jni/ |
D | com_android_server_connectivity_Vpn.cpp | 60 int tun = open("/dev/tun", O_RDWR | O_NONBLOCK | O_CLOEXEC); in create_interface() local 67 if (ioctl(tun, TUNSETIFF, &ifr4)) { in create_interface() 86 return tun; in create_interface() 89 close(tun); in create_interface() 93 static int get_interface_name(char *name, int tun) in get_interface_name() argument 96 if (ioctl(tun, TUNGETIFF, &ifr4)) { in get_interface_name() 264 int tun = create_interface(mtu); in create() local 265 if (tun < 0) { in create() 266 throwException(env, tun, "Cannot create interface"); in create() 269 return tun; in create() [all …]
|
D | com_android_server_TestNetworkService.cpp | 58 base::unique_fd tun(open("/dev/tun", O_RDWR | O_NONBLOCK)); in createTunTapInterface() local 64 if (ioctl(tun.get(), TUNSETIFF, &ifr)) { in createTunTapInterface() 78 return tun.release(); in createTunTapInterface() 90 int tun = createTunTapInterface(env, isTun, iface.c_str()); in create() local 93 return tun; in create()
|
/frameworks/av/media/codec2/tests/ |
D | C2Param_test.cpp | 1142 const C2NumberTuning tun(100); in TEST_F() local 1149 EXPECT_EQ(tun.coreIndex(), inf.coreIndex()); in TEST_F() 1150 EXPECT_NE(tun.coreIndex(), tun_->coreIndex()); in TEST_F() 1151 EXPECT_NE(tun.type(), inf.type()); in TEST_F() 1152 EXPECT_NE(tun.type(), tun_->type()); in TEST_F() 1157 for (const auto &p : { tun, btun }) { in TEST_F() 1172 EXPECT_EQ(100, tun.mNumber); in TEST_F() 1174 EXPECT_FALSE(tun == btun); in TEST_F() 1175 EXPECT_FALSE(tun.operator==(btun)); in TEST_F() 1176 EXPECT_TRUE(tun != btun); in TEST_F() [all …]
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Vpn.java | 1206 ParcelFileDescriptor tun = ParcelFileDescriptor.adoptFd(jniCreate(config.mtu)); 1208 String interfaze = jniGetName(tun.getFd()); 1261 IoUtils.setBlocking(tun.getFileDescriptor(), config.blocking); 1267 IoUtils.closeQuietly(tun); 1282 return tun; 1868 private native String jniGetName(int tun);
|