Lines Matching refs:virtualCamera

64 bool HalCamera::ownVirtualCamera(sp<VirtualCamera> virtualCamera) {  in ownVirtualCamera()  argument
65 if (virtualCamera == nullptr) { in ownVirtualCamera()
71 if (!changeFramesInFlight(virtualCamera->getAllowedBuffers())) { in ownVirtualCamera()
78 mClients.emplace_back(virtualCamera); in ownVirtualCamera()
86 void HalCamera::disownVirtualCamera(sp<VirtualCamera> virtualCamera) { in disownVirtualCamera() argument
88 if (virtualCamera == nullptr) { in disownVirtualCamera()
95 mClients.remove(virtualCamera); in disownVirtualCamera()
494 Return<EvsResult> HalCamera::setMaster(sp<VirtualCamera> virtualCamera) { in setMaster() argument
496 LOG(DEBUG) << __FUNCTION__ << ": " << virtualCamera.get() << " becomes a primary client."; in setMaster()
497 mPrimaryClient = virtualCamera; in setMaster()
505 Return<EvsResult> HalCamera::forceMaster(sp<VirtualCamera> virtualCamera) { in forceMaster() argument
507 if (prevPrimary == virtualCamera) { in forceMaster()
508 LOG(DEBUG) << "Client " << virtualCamera.get() << " is already a primary client"; in forceMaster()
510 mPrimaryClient = virtualCamera; in forceMaster()
512 LOG(INFO) << "High priority client " << virtualCamera.get() in forceMaster()
527 Return<EvsResult> HalCamera::unsetMaster(const VirtualCamera* virtualCamera) { in unsetMaster() argument
528 if (mPrimaryClient.promote() != virtualCamera) { in unsetMaster()
546 Return<EvsResult> HalCamera::setParameter(sp<VirtualCamera> virtualCamera, CameraParam id, in setParameter() argument
549 if (virtualCamera == mPrimaryClient.promote()) { in setParameter()