Home
last modified time | relevance | path

Searched refs:NetworkStack (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java57 import android.net.NetworkStack;
320 NetworkStack.checkNetworkStackPermission(mContext); in registerObserver()
326 NetworkStack.checkNetworkStackPermission(mContext); in unregisterObserver()
461 NetworkStack.checkNetworkStackPermission(mContext); in registerTetheringStatsProvider()
470 NetworkStack.checkNetworkStackPermission(mContext); in unregisterTetheringStatsProvider()
478 NetworkStack.checkNetworkStackPermission(mContext); in tetherLimitReached()
752 NetworkStack.checkNetworkStackPermissionOr(mContext, CONNECTIVITY_INTERNAL); in listInterfaces()
804 NetworkStack.checkNetworkStackPermissionOr(mContext, CONNECTIVITY_INTERNAL); in getInterfaceConfig()
824 NetworkStack.checkNetworkStackPermissionOr(mContext, CONNECTIVITY_INTERNAL); in setInterfaceConfig()
841 NetworkStack.checkNetworkStackPermission(mContext); in setInterfaceDown()
[all …]
DConnectivityService.java118 import android.net.NetworkStack;
1426 NetworkStack.checkNetworkStackPermission(mContext); in getActiveNetworkForUid()
1468 NetworkStack.checkNetworkStackPermission(mContext); in getActiveNetworkInfoForUid()
1766 NetworkStack.checkNetworkStackPermission(mContext); in getAllNetworkState()
2103 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK); in enforceSettingsPermission()
2109 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK); in enforceNetworkFactoryPermission()
2116 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK); in enforceNetworkFactoryOrSettingsPermission()
2123 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK); in enforceNetworkFactoryOrTestNetworksPermission()
2129 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK); in checkSettingsPermission()
2136 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, pid, uid); in checkSettingsPermission()
[all …]
DNsdService.java23 import android.net.NetworkStack;
566 NetworkStack.checkNetworkStackPermission(mContext); in setEnabled()
/frameworks/base/tests/net/common/java/android/net/
DNetworkStackTest.java21 import static android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK;
22 import static android.net.NetworkStack.checkNetworkStackPermission;
23 import static android.net.NetworkStack.checkNetworkStackPermissionOr;
89 NetworkStack.setServiceForTest(mConnectorBinder); in testGetService()
90 assertEquals(NetworkStack.getService(), mConnectorBinder); in testGetService()
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetServiceImpl.java25 import android.net.NetworkStack;
117 NetworkStack.checkNetworkStackPermission(mContext); in setConfiguration()
168 NetworkStack.checkNetworkStackPermissionOr(mContext, in setIncludeTestInterfaces()
175 NetworkStack.checkNetworkStackPermissionOr(mContext, in requestTetheredInterface()
182 NetworkStack.checkNetworkStackPermissionOr(mContext, in releaseTetheredInterface()
/frameworks/base/core/java/android/net/
DNetworkStack.java37 public class NetworkStack { class
76 private NetworkStack() {} in NetworkStack() method in NetworkStack
DConnectivityManager.java3157 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK,
3170 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK,
3192 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK,
3217 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK,
3231 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK,
3251 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK,
3264 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK,
3723 @RequiresPermission(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK)
4365 @RequiresPermission(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK)
4380 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK,
DEthernetManager.java269 android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK
/frameworks/base/packages/Tethering/
DOWNERS1 include platform/packages/modules/NetworkStack/:/OWNERS
/frameworks/libs/net/common/tests/unit/
DAndroid.bp20 "//packages/modules/NetworkStack/tests/integration",
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DTetheringService.java23 import static android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK;
40 import android.net.NetworkStack;
354 while ((connector = NetworkStack.getService()) == null) { in makeTetheringDependencies()
/frameworks/base/core/java/android/app/usage/
DNetworkStatsManager.java32 import android.net.NetworkStack;
581 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK})
607 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK})
/frameworks/libs/net/common/
DAndroid.bp52 "//packages/modules/NetworkStack",
69 "//packages/modules/NetworkStack",
/frameworks/base/services/core/java/com/android/server/connectivity/
DIpConnectivityMetrics.java23 import android.net.NetworkStack;
304 NetworkStack.checkNetworkStackPermission(getContext()); in logEvent()
DPermissionMonitor.java27 import static android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK;
/frameworks/base/tests/net/integration/
DAndroid.bp45 // android_library does not include JNI libs: include NetworkStack dependencies here
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java27 import android.net.NetworkStack;
477 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, uid) in checkMainlineNetworkStackPermission()
/frameworks/base/services/net/java/android/net/
DNetworkStackClient.java18 import static android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK;
/frameworks/base/wifi/java/android/net/wifi/
DWifiManager.java42 import android.net.NetworkStack;
3027 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK
3050 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK
3074 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK
3095 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java30 import static android.net.NetworkStack.checkNetworkStackPermission;
99 import android.net.NetworkStack;
1205 NetworkStack.checkNetworkStackPermission(mContext);
1945 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK); in registerNetworkStatsProvider()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java43 import android.net.NetworkStack;
676 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, MANAGED_PROFILE_UID)) in testEnforceCanAccessScanResults_LocationModeDisabledHasMainlineNetworkStack()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java96 import android.net.NetworkStack;
1303 eq(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK), any()); in testStartSoftApWithoutPermissionThrowsException()
1323 eq(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK), any()); in testStartSoftApWithoutNetworkStackWithMainlineNetworkStackSucceeds()
1496 eq(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK), any()); in testStartTetheredHotspotWithoutPermissionThrowsException()
1514 eq(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK), any()); in testStartTetheredHotspotWithoutNetworkStackWithMainlineNetworkStackSucceeds()
1552 eq(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK), any()); in testStopSoftApWithoutPermissionThrowsException()
2457 when(mContext.checkCallingOrSelfPermission(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK)) in registerSoftApCallbackThrowsSecurityExceptionOnMissingPermissions()
2486 when(mContext.checkCallingOrSelfPermission(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK)) in unregisterSoftApCallbackThrowsSecurityExceptionOnMissingPermissions()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java51 import android.net.NetworkStack;
673 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK); in enforceNetworkStackOrSettingsPermission()
685 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, "WifiService"); in enforceNetworkStackPermission()
/frameworks/base/wifi/api/
Dsystem-current.txt476 …mission(anyOf={android.Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAIN…
478 …mission(anyOf={android.Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAIN…
482 …mission(anyOf={android.Manifest.permission.NETWORK_STACK, android.net.NetworkStack.PERMISSION_MAIN…
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java175 import android.net.NetworkStack;
1899 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()
6933 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, PERMISSION_DENIED); in setupConnectionOwnerUidAsVpnApp()
6993 NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, PERMISSION_GRANTED); in testGetConnectionOwnerUidVpnServiceMainlineNetworkStackDoesNotThrow()

12