Home
last modified time | relevance | path

Searched refs:getOwnerUid (Results 1 – 17 of 17) sorted by relevance

/packages/modules/Connectivity/tests/common/java/android/net/
DUnderlyingNetworkInfoTest.kt41 assertEquals(TEST_OWNER_UID, testInfo.getOwnerUid()) in testParcelUnparcel()
47 assertEquals(0, emptyInfo.getOwnerUid()) in testParcelUnparcel()
DNetworkCapabilitiesTest.java1027 assertEquals(INVALID_UID, nc1.getOwnerUid()); in testAdministratorUidsAndOwnerUid()
1046 assertEquals(1001, nc4.getOwnerUid()); in testAdministratorUidsAndOwnerUid()
1276 assertEquals(ownerUid, nc.getOwnerUid()); in testBuilder()
/packages/modules/Connectivity/framework/api/
Dlint-baseline.txt10 RequiresPermission: android.net.NetworkCapabilities#getOwnerUid():
11 Method 'getOwnerUid' documentation mentions permissions without declaring @RequiresPermission
Dsystem-lint-baseline.txt16 RequiresPermission: android.net.NetworkCapabilities#getOwnerUid():
17 Method 'getOwnerUid' documentation mentions permissions without declaring @RequiresPermission
Dmodule-lib-lint-baseline.txt18 RequiresPermission: android.net.NetworkCapabilities#getOwnerUid():
19 Method 'getOwnerUid' documentation mentions permissions without declaring @RequiresPermission
Dcurrent.txt316 method public int getOwnerUid();
/packages/modules/Connectivity/framework-t/src/android/net/
DUnderlyingNetworkInfo.java68 public int getOwnerUid() { in getOwnerUid() method in UnderlyingNetworkInfo
126 return mOwnerUid == that.getOwnerUid() in equals()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DNetworkAgentInfo.java488 if (networkCapabilities.getOwnerUid() != nc.getOwnerUid()) { in getDeclaredCapabilitiesSanitized()
490 + networkCapabilities.getOwnerUid() + " to " + nc.getOwnerUid()); in getDeclaredCapabilitiesSanitized()
491 nc.setOwnerUid(networkCapabilities.getOwnerUid()); in getDeclaredCapabilitiesSanitized()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DTwtManager.java373 private int getOwnerUid(int id) { in getOwnerUid() method in TwtManager
431 iTwtCallback.onCreate(wakeDurationUs, wakeIntervalUs, linkId, getOwnerUid(cmdId), in onTwtSessionCreate()
/packages/modules/Connectivity/service-t/src/com/android/server/net/
DNetworkStatsFactory.java240 delta.migrateTun(info.getOwnerUid(), info.getInterface(), in adjustForTunAnd464Xlat()
/packages/modules/Connectivity/framework/src/android/net/
DNetworkCapabilities.java1251 final int originalOwnerUid = getOwnerUid(); in restrictCapabilitiesForTestNetwork()
1624 public int getOwnerUid() { in getOwnerUid() method in NetworkCapabilities
3390 if (mCaps.getOwnerUid() != Process.INVALID_UID) { in build()
3391 if (!CollectionUtils.contains(mCaps.getAdministratorUids(), mCaps.getOwnerUid())) { in build()
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java2907 if (!canSeeAllowedUids(callerPid, callerUid, newNc.getOwnerUid())) {
3050 if (callingUid != nc.getOwnerUid()) {
6994 && uid != vpn.networkCapabilities.getOwnerUid()) {
7179 nai.networkCapabilities.getOwnerUid());
7207 return new UnderlyingNetworkInfo(nai.networkCapabilities.getOwnerUid(),
7228 nai.networkCapabilities.getOwnerUid(), nai.declaredUnderlyingNetworks);
9328 final int vpnAppUid = nai.networkCapabilities.getOwnerUid();
9458 agentCaps.getOwnerUid(), underlyingNetworks);
9880 && nc.getOwnerUid() != Process.SYSTEM_UID
9958 exemptUids[1] = nai.networkCapabilities.getOwnerUid();
[all …]
/packages/modules/Connectivity/framework-t/api/
Dmodule-lib-current.txt202 method public int getOwnerUid();
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DIkev2VpnTest.java566 && Process.myUid() == c.getOwnerUid()); in checkStartStopVpnProfileBuildsNetworks()
DConnectivityManagerTest.java844 assertEquals(normalUid, redactNc(nc, normalUid, normalPkg).getOwnerUid()); in testGetRedactedNetworkCapabilitiesForPackage()
845 assertEquals(INVALID_UID, redactNc(nc, privilegedUid, privilegedPkg).getOwnerUid()); in testGetRedactedNetworkCapabilitiesForPackage()
851 assertEquals(INVALID_UID, redactNc(nc, normalUid, normalPkg).getOwnerUid()); in testGetRedactedNetworkCapabilitiesForPackage()
858 assertEquals(privilegedUid, redactNc(nc, privilegedUid, privilegedPkg).getOwnerUid()); in testGetRedactedNetworkCapabilitiesForPackage()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java3576 assertEquals(originalOwnerUid, agentCapabilities.getOwnerUid());
3589 assertEquals(originalOwnerUid, nc.getOwnerUid());
7874 assertEquals("Unexpected VPN owner:", (int) vpnUid, info.getOwnerUid());
12337 .getOwnerUid();
12668 c -> Objects.equals(expectedOwnerUid, c.getOwnerUid())
13211 && nc.getOwnerUid() == Process.INVALID_UID
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DClientModeImplTest.java5845 assertEquals(mConnectedNetwork.creatorUid, networkCapabilities.getOwnerUid()); in verifyNetworkCapabilities()