Home
last modified time | relevance | path

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

/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DPermissionMonitor.java1139 SparseIntArray netdPermissionsAppIds = new SparseIntArray(); in sendPackagePermissionsForAppId() local
1140 netdPermissionsAppIds.put(appId, permissions); in sendPackagePermissionsForAppId()
1143 netdPermissionsAppIds.put(sdkSandboxAppId, permissions); in sendPackagePermissionsForAppId()
1145 sendAppIdsTrafficPermission(netdPermissionsAppIds); in sendPackagePermissionsForAppId()
1157 void sendAppIdsTrafficPermission(SparseIntArray netdPermissionsAppIds) { in sendAppIdsTrafficPermission() argument
1164 for (int i = 0; i < netdPermissionsAppIds.size(); i++) { in sendAppIdsTrafficPermission()
1165 int permissions = netdPermissionsAppIds.valueAt(i); in sendAppIdsTrafficPermission()
1168 allPermissionAppIds.add(netdPermissionsAppIds.keyAt(i)); in sendAppIdsTrafficPermission()
1171 internetPermissionAppIds.add(netdPermissionsAppIds.keyAt(i)); in sendAppIdsTrafficPermission()
1174 updateStatsPermissionAppIds.add(netdPermissionsAppIds.keyAt(i)); in sendAppIdsTrafficPermission()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DPermissionMonitorTest.java331 private void sendAppIdsTrafficPermission(SparseIntArray netdPermissionsAppIds) { in sendAppIdsTrafficPermission() argument
333 mPermissionMonitor.sendAppIdsTrafficPermission(netdPermissionsAppIds)); in sendAppIdsTrafficPermission()
1129 SparseIntArray netdPermissionsAppIds = new SparseIntArray(); in testPackagePermissionUpdate() local
1130 netdPermissionsAppIds.put(MOCK_APPID1, PERMISSION_INTERNET); in testPackagePermissionUpdate()
1132 netdPermissionsAppIds.put(mProcessShim.toSdkSandboxUid(MOCK_APPID1), in testPackagePermissionUpdate()
1135 netdPermissionsAppIds.put(MOCK_APPID2, PERMISSION_NONE); in testPackagePermissionUpdate()
1137 netdPermissionsAppIds.put(mProcessShim.toSdkSandboxUid(MOCK_APPID2), in testPackagePermissionUpdate()
1140 netdPermissionsAppIds.put(SYSTEM_APPID1, PERMISSION_TRAFFIC_ALL); in testPackagePermissionUpdate()
1141 netdPermissionsAppIds.put(SYSTEM_APPID2, PERMISSION_UPDATE_DEVICE_STATS); in testPackagePermissionUpdate()
1144 sendAppIdsTrafficPermission(netdPermissionsAppIds); in testPackagePermissionUpdate()