Home
last modified time | relevance | path

Searched refs:PERMISSION_MAINLINE_NETWORK_STACK (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/tests/net/common/java/android/net/
DNetworkStackTest.java21 import static android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK;
64 when(mCtx.checkCallingOrSelfPermission(eq(PERMISSION_MAINLINE_NETWORK_STACK))) in testCheckNetworkStackPermission()
70 when(mCtx.checkCallingOrSelfPermission(eq(PERMISSION_MAINLINE_NETWORK_STACK))) in testCheckNetworkStackPermission()
/frameworks/base/core/java/android/net/
DNetworkStack.java45 public static final String PERMISSION_MAINLINE_NETWORK_STACK = field in NetworkStack
103 permissions.add(PERMISSION_MAINLINE_NETWORK_STACK); in checkNetworkStackPermissionOr()
DConnectivityManager.java3195 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK,
3208 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK,
3230 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK,
3255 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK,
3269 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK,
3289 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK,
3302 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK,
3763 @RequiresPermission(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK)
4406 @RequiresPermission(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK)
4421 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK,
DEthernetManager.java269 android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK
/frameworks/base/services/net/java/android/net/
DNetworkStackClient.java18 import static android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK;
234 INetworkStackConnector.class.getName(), PERMISSION_MAINLINE_NETWORK_STACK, in start() local
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DTetheringService.java23 import static android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK;
260 || checkCallingOrSelfPermission(PERMISSION_MAINLINE_NETWORK_STACK); in hasNetworkStackPermission()
DTethering.java30 import static android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK;
388 mStateReceiver, noUpstreamFilter, PERMISSION_MAINLINE_NETWORK_STACK, mHandler); in startStateMachineUpdaters()
2070 || hasCallingPermission(PERMISSION_MAINLINE_NETWORK_STACK) in registerTetheringEventCallback()
/frameworks/base/core/java/android/app/usage/
DNetworkStatsManager.java544 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK})
570 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK})
/frameworks/base/services/core/java/com/android/server/connectivity/
DPermissionMonitor.java32 import static android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK;
239 return hasPermission(PERMISSION_MAINLINE_NETWORK_STACK, appInfo.uid) in hasRestrictedNetworkPermission()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java485 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, uid) in checkMainlineNetworkStackPermission()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java2104 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK); in enforceSettingsPermission()
2110 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK); in enforceNetworkFactoryPermission()
2117 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK); in enforceNetworkFactoryOrSettingsPermission()
2124 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK); in enforceNetworkFactoryOrTestNetworksPermission()
2130 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK); in checkSettingsPermission()
2137 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, pid, uid); in checkSettingsPermission()
2150 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK); in enforceNetworkStackOrSettingsPermission()
2158 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK); in enforceNetworkStackSettingsOrSetup()
2164 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK); in checkNetworkStackPermission()
2170 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK); in checkNetworkStackPermission()
[all …]
/frameworks/base/wifi/java/android/net/wifi/
DWifiManager.java2578 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK
2602 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK
2622 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java1221 eq(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK), any()); in testStartSoftApWithoutPermissionThrowsException()
1257 eq(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK), any()); in testStopSoftApWithoutPermissionThrowsException()
1816 when(mContext.checkCallingOrSelfPermission(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK)) in registerSoftApCallbackThrowsSecurityExceptionOnMissingPermissions()
1845 when(mContext.checkCallingOrSelfPermission(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK)) in unregisterSoftApCallbackThrowsSecurityExceptionOnMissingPermissions()
3126 eq(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK), any()); in testSetCountryCodeFailsWithoutNetworkStackPermission()
/frameworks/base/services/java/com/android/server/
DSystemServer.java19 import static android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK;
2229 PERMISSION_MAINLINE_NETWORK_STACK, service -> { in startOtherServices()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java685 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, MANAGED_PROFILE_UID)) in testEnforceCanAccessScanResults_LocationModeDisabledHasMainlineNetworkStack()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java1899 mServiceContext.setPermission(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, in networkCallbacksSanitizationTest_Sanitize()
1908 mServiceContext.setPermission(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, in networkCallbacksSanitizationTest_NoSanitize_NetworkStack()
1916 mServiceContext.setPermission(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, in networkCallbacksSanitizationTest_NoSanitize_Settings()
2829 mServiceContext.setPermission(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, in testCaptivePortalApp()
6941 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, PERMISSION_DENIED); in setupConnectionOwnerUidAsVpnApp()
7001 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, PERMISSION_GRANTED); in testGetConnectionOwnerUidVpnServiceMainlineNetworkStackDoesNotThrow()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java804 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK); in enforceNetworkStackOrSettingsPermission()
816 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, "WifiService"); in enforceNetworkStackPermission()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java1973 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK);
/frameworks/base/api/
Dsystem-current.txt1229 …permission.NETWORK_STATS_PROVIDER, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) pu…
1230 …permission.NETWORK_STATS_PROVIDER, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) pu…
4339 …method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, andr…
4341 …method @RequiresPermission(android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK) public void…
4343 …method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, andr…
4344 …method @RequiresPermission(android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK) public void…
4348 …method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, andr…
4378 …Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) pu…
4671 …field public static final String PERMISSION_MAINLINE_NETWORK_STACK = "android.permission.MAINLINE_…
5392 …Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) pu…
[all …]
Dtest-current.txt1444 …method @RequiresPermission(android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK) public void…
1450 …Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) pu…
1553 …field public static final String PERMISSION_MAINLINE_NETWORK_STACK = "android.permission.MAINLINE_…
/frameworks/base/non-updatable-api/
Dsystem-current.txt1229 …permission.NETWORK_STATS_PROVIDER, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) pu…
1230 …permission.NETWORK_STATS_PROVIDER, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) pu…
4339 …method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, andr…
4341 …method @RequiresPermission(android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK) public void…
4343 …method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, andr…
4344 …method @RequiresPermission(android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK) public void…
4348 …method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, andr…
4378 …Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) pu…
4671 …field public static final String PERMISSION_MAINLINE_NETWORK_STACK = "android.permission.MAINLINE_…
5298 …Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK}) pu…
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java521 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK); in enforceNetworkStackOrLocationHardwarePermission()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java81 import static android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK;
5551 if (mContext.checkCallingPermission(PERMISSION_MAINLINE_NETWORK_STACK) in enforceNetworkStackOrProfileOrDeviceOwner()