Home
last modified time | relevance | path

Searched refs:VERSION_Q (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/tests/net/java/com/android/server/connectivity/
DPermissionMonitorTest.java107 private static final int VERSION_Q = Build.VERSION_CODES.Q; field in PermissionMonitorTest
245 assertFalse(hasRestrictedNetworkPermission(PARTITION_SYSTEM, VERSION_Q, MOCK_UID1)); in testHasRestrictedNetworkPermission()
247 PARTITION_SYSTEM, VERSION_Q, MOCK_UID1, CONNECTIVITY_INTERNAL)); in testHasRestrictedNetworkPermission()
259 doReturn(VERSION_Q).when(mDeps).getDeviceFirstSdkInt(); in testHasRestrictedNetworkPermissionSystemUid()
260 assertFalse(hasRestrictedNetworkPermission(PARTITION_SYSTEM, VERSION_Q, SYSTEM_UID)); in testHasRestrictedNetworkPermissionSystemUid()
262 PARTITION_SYSTEM, VERSION_Q, SYSTEM_UID, CONNECTIVITY_INTERNAL)); in testHasRestrictedNetworkPermissionSystemUid()
264 PARTITION_SYSTEM, VERSION_Q, SYSTEM_UID, CONNECTIVITY_USE_RESTRICTED_NETWORKS)); in testHasRestrictedNetworkPermissionSystemUid()
281 assertFalse(hasRestrictedNetworkPermission(PARTITION_VENDOR, VERSION_Q, MOCK_UID1)); in testHasRestrictedNetworkPermissionVendorApp()
283 PARTITION_VENDOR, VERSION_Q, MOCK_UID1, CONNECTIVITY_INTERNAL)); in testHasRestrictedNetworkPermissionVendorApp()
285 PARTITION_VENDOR, VERSION_Q, MOCK_UID1, CHANGE_NETWORK_STATE)); in testHasRestrictedNetworkPermissionVendorApp()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DPermissionMonitor.java87 private static final int VERSION_Q = Build.VERSION_CODES.Q; field in PermissionMonitor
232 if ((appInfo.targetSdkVersion < VERSION_Q && isVendorApp(appInfo)) in hasRestrictedNetworkPermission()
235 || (appInfo.uid == SYSTEM_UID && mDeps.getDeviceFirstSdkInt() < VERSION_Q)) { in hasRestrictedNetworkPermission()