Lines Matching refs:virtualCamera
66 bool HalCamera::ownVirtualCamera(sp<VirtualCamera> virtualCamera) { in ownVirtualCamera() argument
68 if (virtualCamera == nullptr) { in ownVirtualCamera()
74 if (!changeFramesInFlight(virtualCamera->getAllowedBuffers())) { in ownVirtualCamera()
81 mClients.emplace_back(virtualCamera); in ownVirtualCamera()
90 void HalCamera::disownVirtualCamera(sp<VirtualCamera> virtualCamera) { in disownVirtualCamera() argument
92 if (virtualCamera.get() == nullptr) { in disownVirtualCamera()
99 mClients.remove(virtualCamera); in disownVirtualCamera()
454 Return<EvsResult> HalCamera::setMaster(sp<VirtualCamera> virtualCamera) { in setMaster() argument
457 << ": " << virtualCamera.get() << " becomes a primary client."; in setMaster()
458 mPrimaryClient = virtualCamera; in setMaster()
467 Return<EvsResult> HalCamera::forceMaster(sp<VirtualCamera> virtualCamera) { in forceMaster() argument
469 if (prevPrimary == virtualCamera) { in forceMaster()
470 LOG(DEBUG) << "Client " << virtualCamera.get() in forceMaster()
473 mPrimaryClient = virtualCamera; in forceMaster()
475 LOG(INFO) << "High priority client " << virtualCamera.get() in forceMaster()
491 Return<EvsResult> HalCamera::unsetMaster(const VirtualCamera* virtualCamera) { in unsetMaster() argument
492 if (mPrimaryClient.promote() != virtualCamera) { in unsetMaster()
511 Return<EvsResult> HalCamera::setParameter(sp<VirtualCamera> virtualCamera, in setParameter() argument
514 if (virtualCamera == mPrimaryClient.promote()) { in setParameter()