Home
last modified time | relevance | path

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

/frameworks/base/tests/net/java/com/android/server/connectivity/
DPermissionMonitorTest.java194 private static PackageInfo buildPackageInfo(boolean hasSystemPermission, int uid, int userId) { in buildPackageInfo() method in PermissionMonitorTest
482 buildPackageInfo(/* SYSTEM */ true, SYSTEM_UID1, MOCK_USER1), in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
483 buildPackageInfo(/* SYSTEM */ false, MOCK_UID1, MOCK_USER1), in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
484 buildPackageInfo(/* SYSTEM */ false, MOCK_UID2, MOCK_USER1), in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
485 buildPackageInfo(/* SYSTEM */ false, VPN_UID, MOCK_USER1) in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
488 buildPackageInfo(false, MOCK_UID1, MOCK_USER1)); in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
532 buildPackageInfo(true, SYSTEM_UID1, MOCK_USER1), in testUidFilteringDuringPackageInstallAndUninstall()
533 buildPackageInfo(false, VPN_UID, MOCK_USER1) in testUidFilteringDuringPackageInstallAndUninstall()
536 buildPackageInfo(false, MOCK_UID1, MOCK_USER1)); in testUidFilteringDuringPackageInstallAndUninstall()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java1343 buildPackageInfo(/* SYSTEM */ false, APP1_UID), in mockDefaultPackages()
1344 buildPackageInfo(/* SYSTEM */ false, APP2_UID), in mockDefaultPackages()
1345 buildPackageInfo(/* SYSTEM */ false, VPN_UID) in mockDefaultPackages()
2180 .thenReturn(buildPackageInfo(true, uid)); in grantUsingBackgroundNetworksPermissionForUid()
7012 private static PackageInfo buildPackageInfo(boolean hasSystemPermission, int uid) { in buildPackageInfo() method in ConnectivityServiceTest