Lines Matching refs:permission
118 const std::string UidPermissionTypeToString(int permission) { in UidPermissionTypeToString() argument
119 if (permission == INetd::PERMISSION_NONE) { in UidPermissionTypeToString()
122 if (permission == INetd::PERMISSION_UNINSTALLED) { in UidPermissionTypeToString()
127 FLAG_MSG_TRANS(permissionType, BPF_PERMISSION_INTERNET, permission); in UidPermissionTypeToString()
128 FLAG_MSG_TRANS(permissionType, BPF_PERMISSION_UPDATE_DEVICE_STATS, permission); in UidPermissionTypeToString()
129 if (permission) { in UidPermissionTypeToString()
130 return StringPrintf("Unknown permission: %u", permission); in UidPermissionTypeToString()
808 void TrafficController::setPermissionForUids(int permission, const std::vector<uid_t>& uids) { in setPermissionForUids() argument
810 if (permission == INetd::PERMISSION_UNINSTALLED) { in setPermissionForUids()
826 bool privileged = (permission & INetd::PERMISSION_UPDATE_DEVICE_STATS); in setPermissionForUids()
841 if (permission != INetd::PERMISSION_INTERNET) { in setPermissionForUids()
842 Status ret = mUidPermissionMap.writeValue(uid, permission, BPF_ANY); in setPermissionForUids()
845 UidPermissionTypeToString(permission).c_str(), uid, strerror(ret.code())); in setPermissionForUids()