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.java111 private static final int VERSION_Q = Build.VERSION_CODES.Q; field in PermissionMonitorTest
251 assertFalse(hasBgPermission(PARTITION_SYSTEM, VERSION_Q, MOCK_UID1)); in testHasUseBackgroundNetworksPermission()
252 assertFalse(hasBgPermission(PARTITION_SYSTEM, VERSION_Q, MOCK_UID1, CHANGE_WIFI_STATE)); in testHasUseBackgroundNetworksPermission()
263 doReturn(VERSION_Q).when(mPermissionMonitor).getDeviceFirstSdkInt(); in testHasUseBackgroundNetworksPermissionSystemUid()
264 assertFalse(hasBgPermission(PARTITION_SYSTEM, VERSION_Q, SYSTEM_UID)); in testHasUseBackgroundNetworksPermissionSystemUid()
265 assertFalse(hasBgPermission(PARTITION_SYSTEM, VERSION_Q, SYSTEM_UID, CHANGE_WIFI_STATE)); in testHasUseBackgroundNetworksPermissionSystemUid()
266 assertTrue(hasBgPermission(PARTITION_SYSTEM, VERSION_Q, SYSTEM_UID, in testHasUseBackgroundNetworksPermissionSystemUid()
280 assertFalse(hasBgPermission(PARTITION_VENDOR, VERSION_Q, MOCK_UID1)); in testHasUseBackgroundNetworksPermissionVendorApp()
281 assertFalse(hasBgPermission(PARTITION_VENDOR, VERSION_Q, MOCK_UID1, CHANGE_WIFI_STATE)); in testHasUseBackgroundNetworksPermissionVendorApp()
/frameworks/base/services/core/java/com/android/server/connectivity/
DPermissionMonitor.java80 private static final int VERSION_Q = Build.VERSION_CODES.Q; field in PermissionMonitor
248 if (app.applicationInfo.uid == SYSTEM_UID && getDeviceFirstSdkInt() < VERSION_Q) { in hasRestrictedNetworkPermission()
252 if (app.applicationInfo.targetSdkVersion < VERSION_Q in hasRestrictedNetworkPermission()