Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DPermissionMonitorTest.java159 private static final int VERSION_Q = Build.VERSION_CODES.Q; field in PermissionMonitorTest
203 doReturn(VERSION_Q).when(mDeps).getDeviceFirstSdkInt(); in setUp()
444 PARTITION_SYSTEM, VERSION_Q, MOCK_PACKAGE1, MOCK_UID11)); in testHasRestrictedNetworkPermission()
446 PARTITION_SYSTEM, VERSION_Q, MOCK_PACKAGE1, MOCK_UID11, CONNECTIVITY_INTERNAL)); in testHasRestrictedNetworkPermission()
460 doReturn(VERSION_Q).when(mDeps).getDeviceFirstSdkInt(); in testHasRestrictedNetworkPermissionSystemUid()
462 PARTITION_SYSTEM, VERSION_Q, SYSTEM_PACKAGE1, SYSTEM_UID)); in testHasRestrictedNetworkPermissionSystemUid()
464 PARTITION_SYSTEM, VERSION_Q, SYSTEM_PACKAGE1, SYSTEM_UID, CONNECTIVITY_INTERNAL)); in testHasRestrictedNetworkPermissionSystemUid()
466 PARTITION_SYSTEM, VERSION_Q, SYSTEM_PACKAGE1, SYSTEM_UID, in testHasRestrictedNetworkPermissionSystemUid()
487 PARTITION_VENDOR, VERSION_Q, MOCK_PACKAGE1, MOCK_UID11)); in testHasRestrictedNetworkPermissionVendorApp()
489 PARTITION_VENDOR, VERSION_Q, MOCK_PACKAGE1, MOCK_UID11, CONNECTIVITY_INTERNAL)); in testHasRestrictedNetworkPermissionVendorApp()
[all …]
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DPermissionMonitor.java94 private static final int VERSION_Q = Build.VERSION_CODES.Q; field in PermissionMonitor
487 return (appInfo.targetSdkVersion < VERSION_Q && isVendorApp(appInfo)) in isCarryoverPackage()
491 && mDeps.getDeviceFirstSdkInt() < VERSION_Q); in isCarryoverPackage()