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.java112 private static final int VERSION_Q = Build.VERSION_CODES.Q; field in PermissionMonitorTest
286 assertFalse(hasRestrictedNetworkPermission(PARTITION_SYSTEM, VERSION_Q, MOCK_UID1)); in testHasRestrictedNetworkPermission()
288 PARTITION_SYSTEM, VERSION_Q, MOCK_UID1, CONNECTIVITY_INTERNAL)); in testHasRestrictedNetworkPermission()
300 doReturn(VERSION_Q).when(mPermissionMonitor).getDeviceFirstSdkInt(); in testHasRestrictedNetworkPermissionSystemUid()
301 assertFalse(hasRestrictedNetworkPermission(PARTITION_SYSTEM, VERSION_Q, SYSTEM_UID)); in testHasRestrictedNetworkPermissionSystemUid()
303 PARTITION_SYSTEM, VERSION_Q, SYSTEM_UID, CONNECTIVITY_INTERNAL)); in testHasRestrictedNetworkPermissionSystemUid()
305 PARTITION_SYSTEM, VERSION_Q, SYSTEM_UID, CONNECTIVITY_USE_RESTRICTED_NETWORKS)); in testHasRestrictedNetworkPermissionSystemUid()
322 assertFalse(hasRestrictedNetworkPermission(PARTITION_VENDOR, VERSION_Q, MOCK_UID1)); in testHasRestrictedNetworkPermissionVendorApp()
324 PARTITION_VENDOR, VERSION_Q, MOCK_UID1, CONNECTIVITY_INTERNAL)); in testHasRestrictedNetworkPermissionVendorApp()
326 PARTITION_VENDOR, VERSION_Q, MOCK_UID1, CHANGE_NETWORK_STATE)); in testHasRestrictedNetworkPermissionVendorApp()
/frameworks/base/services/core/java/com/android/server/connectivity/
DPermissionMonitor.java80 private static final int VERSION_Q = Build.VERSION_CODES.Q; field in PermissionMonitor
253 if (app.applicationInfo.uid == SYSTEM_UID && getDeviceFirstSdkInt() < VERSION_Q) { in hasRestrictedNetworkPermission()
257 if (app.applicationInfo.targetSdkVersion < VERSION_Q in hasRestrictedNetworkPermission()