Searched refs:isHigherNetworkPermission (Results 1 – 2 of 2) sorted by relevance
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | PermissionMonitorTest.java | 43 import static com.android.server.connectivity.PermissionMonitor.isHigherNetworkPermission; 1558 assertFalse(isHigherNetworkPermission(PERMISSION_NONE, PERMISSION_NONE)); 1559 assertFalse(isHigherNetworkPermission(PERMISSION_NONE, PERMISSION_NETWORK)); 1560 assertFalse(isHigherNetworkPermission(PERMISSION_NONE, PERMISSION_SYSTEM)); 1561 assertTrue(isHigherNetworkPermission(PERMISSION_NETWORK, PERMISSION_NONE)); 1562 assertFalse(isHigherNetworkPermission(PERMISSION_NETWORK, PERMISSION_NETWORK)); 1563 assertFalse(isHigherNetworkPermission(PERMISSION_NETWORK, PERMISSION_SYSTEM)); 1564 assertTrue(isHigherNetworkPermission(PERMISSION_SYSTEM, PERMISSION_NONE)); 1565 assertTrue(isHigherNetworkPermission(PERMISSION_SYSTEM, PERMISSION_NETWORK)); 1566 assertFalse(isHigherNetworkPermission(PERMISSION_SYSTEM, PERMISSION_SYSTEM));
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | PermissionMonitor.java | 301 static boolean isHigherNetworkPermission(final int targetPermission, in isHigherNetworkPermission() method in PermissionMonitor 337 if (isHigherNetworkPermission(permission, uidsPerm.get(uid, PERMISSION_NONE))) { in makeUidsNetworkPerm() 679 if (isHigherNetworkPermission(permission, currentPermission)) { in highestPermissionForUid()
|