Lines Matching refs:client
47 bool isSystemServer(SocketClient* client) { in isSystemServer() argument
48 if (client->getUid() != AID_SYSTEM) { in isSystemServer()
53 if (getpeercon(client->getSocket(), &context)) { in isSystemServer()
74 bool FwmarkServer::onDataAvailable(SocketClient* client) { in onDataAvailable() argument
76 int error = processClient(client, &socketFd); in onDataAvailable()
83 client->sendData(&error, sizeof(error)); in onDataAvailable()
101 int FwmarkServer::processClient(SocketClient* client, int* socketFd) { in processClient() argument
108 ReceiveFileDescriptorVector(client->getSocket(), buf, sizeof(buf), 1, &received_fds); in processClient()
128 Permission permission = mNetworkController->getPermissionForUser(client->getUid()); in processClient()
138 return mTrafficCtrl->setCounterSet(command.trafficCtrlInfo, command.uid, client->getUid()); in processClient()
142 return mTrafficCtrl->deleteTagData(command.trafficCtrlInfo, command.uid, client->getUid()); in processClient()
214 fwmark.netId = mNetworkController->getNetworkForConnect(client->getUid()); in processClient()
248 (ret == 0) ? strtoul(portstr, nullptr, 10) : 0, client->getUid()); in processClient()
266 if (int ret = mNetworkController->checkUserNetworkAccess(client->getUid(), in processClient()
271 fwmark.protectedFromVpn = mNetworkController->canProtect(client->getUid()); in processClient()
277 if (!mNetworkController->canProtect(client->getUid())) { in processClient()
310 command.uid = client->getUid(); in processClient()
313 client->getUid()); in processClient()