Lines Matching refs:clientUid
659 int api1CameraId, int facing, int clientPid, uid_t clientUid, int servicePid, in makeClient() argument
671 api1CameraId, facing, clientPid, clientUid, in makeClient()
690 facing, clientPid, clientUid, in makeClient()
696 facing, clientPid, clientUid, servicePid); in makeClient()
714 api1CameraId, facing, clientPid, clientUid, in makeClient()
915 const String8& clientName8, /*inout*/int& clientUid, /*inout*/int& clientPid, in validateConnectLocked() argument
920 UNUSED(clientUid); in validateConnectLocked()
924 Status allowed = validateClientPermissionsLocked(cameraId, clientName8, clientUid, clientPid, in validateConnectLocked()
963 const String8& clientName8, int& clientUid, int& clientPid, in validateClientPermissionsLocked() argument
969 if (clientUid == USE_CALLING_UID) { in validateClientPermissionsLocked()
970 clientUid = callingUid; in validateClientPermissionsLocked()
973 "(don't trust clientUid %d)", callingPid, callingUid, clientUid); in validateClientPermissionsLocked()
978 clientName8.string(), clientUid, clientPid); in validateClientPermissionsLocked()
991 clientName8.string(), clientUid, clientPid); in validateClientPermissionsLocked()
996 !checkPermission(String16("android.permission.CAMERA"), clientPid, clientUid)) { in validateClientPermissionsLocked()
997 ALOGE("Permission Denial: can't use the camera pid=%d, uid=%d", clientPid, clientUid); in validateClientPermissionsLocked()
1000 clientName8.string(), clientUid, clientPid, cameraId.string()); in validateClientPermissionsLocked()
1007 clientPid, clientUid); in validateClientPermissionsLocked()
1011 clientName8.string(), clientUid, clientPid, cameraId.string(), in validateClientPermissionsLocked()
1020 "is enabled", clientName8.string(), clientUid, clientPid, cameraId.string()); in validateClientPermissionsLocked()
1028 userid_t clientUserId = multiuser_get_user_id(clientUid); in validateClientPermissionsLocked()
1298 int clientUid, in connect() argument
1309 CAMERA_HAL_API_VERSION_UNSPECIFIED, clientPackageName, clientUid, clientPid, API_1, in connect()
1326 int clientUid, in connectLegacy() argument
1336 clientPackageName, clientUid, USE_CALLING_PID, API_1, /*shimUpdateOnly*/ false, in connectLegacy()
1365 int clientUid, in connectDevice() argument
1383 clientUid, USE_CALLING_PID, API_2, /*shimUpdateOnly*/ false, /*out*/client); in connectDevice()
1397 int api1CameraId, int halVersion, const String16& clientPackageName, int clientUid, in connectHelper() argument
1435 /*inout*/clientUid, /*inout*/clientPid, /*out*/originalClientPid)).isOk()) { in connectHelper()
1491 clientPid, clientUid, getpid(), in connectHelper()
1813 auto clientUid = CameraThreadState::getCallingUid(); in addListenerHelper() local
1816 clientPid, clientUid); in addListenerHelper()
1818 clientUid, clientPid, openCloseCallbackAllowed); in addListenerHelper()
1827 mUidPolicy->registerMonitorUid(clientUid); in addListenerHelper()
2112 uid_t clientUid = clientSp->getClientUid(); in doUserSwitch() local
2113 userid_t clientUserId = multiuser_get_user_id(clientUid); in doUserSwitch()
2332 int clientPid, uid_t clientUid, in Client() argument
2338 clientPid, clientUid, in Client()
2368 int clientPid, uid_t clientUid, in BasicClient() argument
2371 mClientPackageName(clientPackageName), mClientPid(clientPid), mClientUid(clientUid), in BasicClient()
3012 uid_t clientUid = clientSp->getClientUid(); in toString() local
3013 clientUserId = multiuser_get_user_id(clientUid); in toString()