Lines Matching refs:APP_DEFAULT_NETID
3975 #define APP_DEFAULT_NETID TEST_NETID2 macro
4101 const auto& config = makeNativeNetworkConfig(APP_DEFAULT_NETID, NativeNetworkType::PHYSICAL, in TEST_F()
4104 EXPECT_TRUE(mNetd->networkAddInterface(APP_DEFAULT_NETID, sTun.name()).isOk()); in TEST_F()
4108 EXPECT_TRUE(mNetd->networkAddUidRanges(APP_DEFAULT_NETID, uidRanges).isOk()); in TEST_F()
4111 status = mNetd->networkAddUidRanges(APP_DEFAULT_NETID, in TEST_F()
4116 status = mNetd->networkAddUidRanges(APP_DEFAULT_NETID, in TEST_F()
4121 status = mNetd->networkAddUidRanges(APP_DEFAULT_NETID, in TEST_F()
4126 status = mNetd->networkAddUidRanges(APP_DEFAULT_NETID, in TEST_F()
4131 status = mNetd->networkAddUidRanges(APP_DEFAULT_NETID, in TEST_F()
4139 status = mNetd->networkAddUidRanges(APP_DEFAULT_NETID, selfOverlappedUidRanges); in TEST_F()
4146 const auto& config = makeNativeNetworkConfig(APP_DEFAULT_NETID, NativeNetworkType::PHYSICAL, in TEST_F()
4149 EXPECT_TRUE(mNetd->networkAddInterface(APP_DEFAULT_NETID, sTun.name()).isOk()); in TEST_F()
4154 EXPECT_TRUE(mNetd->networkAddUidRanges(APP_DEFAULT_NETID, uidRanges).isOk()); in TEST_F()
4157 EXPECT_TRUE(mNetd->networkRemoveUidRanges(APP_DEFAULT_NETID, {uidRanges.at(0)}).isOk()); in TEST_F()
4160 EXPECT_TRUE(mNetd->networkRemoveUidRanges(APP_DEFAULT_NETID, {uidRanges.at(1)}).isOk()); in TEST_F()
4182 createDefaultAndOtherPhysicalNetwork(SYSTEM_DEFAULT_NETID, APP_DEFAULT_NETID); in TEST_F()
4192 EXPECT_TRUE(mNetd->networkAddUidRanges(APP_DEFAULT_NETID, in TEST_F()
4196 expectPacketSentOnNetId(TEST_UID1, APP_DEFAULT_NETID, appDefaultFd, IMPLICITLY_SELECT); in TEST_F()
4199 EXPECT_TRUE(mNetd->networkRemoveUidRanges(APP_DEFAULT_NETID, in TEST_F()
4220 createDefaultAndOtherPhysicalNetwork(SYSTEM_DEFAULT_NETID, APP_DEFAULT_NETID); in TEST_F()
4245 EXPECT_TRUE(mNetd->networkAddUidRanges(APP_DEFAULT_NETID, in TEST_F()
4252 setNetworkForProcess(APP_DEFAULT_NETID); in TEST_F()
4254 expectPacketSentOnNetId(AID_ROOT, APP_DEFAULT_NETID, appDefaultFd, EXPLICITLY_SELECT); in TEST_F()
4255 expectPacketSentOnNetId(TEST_UID1, APP_DEFAULT_NETID, appDefaultFd, EXPLICITLY_SELECT); in TEST_F()
4261 createDefaultAndOtherPhysicalNetwork(SYSTEM_DEFAULT_NETID, APP_DEFAULT_NETID); in TEST_F()
4272 EXPECT_TRUE(mNetd->networkAddUidRanges(APP_DEFAULT_NETID, in TEST_F()
4290 EXPECT_TRUE(mNetd->networkRemoveUidRanges(APP_DEFAULT_NETID, in TEST_F()
4303 createPhysicalNetwork(APP_DEFAULT_NETID, sTun2.name(), INetd::PERMISSION_SYSTEM); in TEST_F()
4307 EXPECT_EQ(-EACCES, setNetworkForProcess(APP_DEFAULT_NETID)); in TEST_F()
4310 EXPECT_TRUE(mNetd->networkAddUidRanges(APP_DEFAULT_NETID, in TEST_F()
4316 EXPECT_EQ(0, setNetworkForProcess(APP_DEFAULT_NETID)); in TEST_F()
4332 SYSTEM_DEFAULT_NETID, APP_DEFAULT_NETID, VPN_NETID, isSecureVPN, in TEST_P()
4346 expectPacketSentOnNetId(TEST_UID1, APP_DEFAULT_NETID, appDefaultFd, IMPLICITLY_SELECT); in TEST_P()
4348 expectPacketSentOnNetId(TEST_UID2, (isSecureVPN ? APP_DEFAULT_NETID : VPN_NETID), vpnFd, in TEST_P()
4364 testing::Values(SYSTEM_DEFAULT_NETID, APP_DEFAULT_NETID,
4375 case APP_DEFAULT_NETID: in __anon1aec74da2102()
4392 SYSTEM_DEFAULT_NETID, APP_DEFAULT_NETID, VPN_NETID, isSecureVPN, in TEST_P()
4401 case APP_DEFAULT_NETID: in TEST_P()
4455 SYSTEM_DEFAULT_NETID, APP_DEFAULT_NETID, VPN_NETID, isSecureVPN, in TEST_P()
4497 createVpnAndOtherPhysicalNetwork(SYSTEM_DEFAULT_NETID, APP_DEFAULT_NETID, VPN_NETID, in TEST_F()
4501 makeNativeUidRangeConfig(APP_DEFAULT_NETID, {makeUidRangeParcel(BASE_UID, BASE_UID)}, in TEST_F()
4521 uidRangeConfig.netId = APP_DEFAULT_NETID; in TEST_F()