Home
last modified time | relevance | path

Searched refs:pCameraId (Results 1 – 2 of 2) sorted by relevance

/packages/services/Car/cpp/evs/support_library/
DResourceManager.cpp49 sp<StreamHandler> ResourceManager::obtainStreamHandler(string pCameraId) { in obtainStreamHandler() argument
55 auto result = mCameraInstances.find(pCameraId); in obtainStreamHandler()
63 instance->cameraId = pCameraId; in obtainStreamHandler()
66 instance->camera = getEvsEnumerator()->openCamera(pCameraId); in obtainStreamHandler()
68 ALOGE("Failed to allocate new EVS Camera interface for %s", pCameraId.c_str()); in obtainStreamHandler()
75 ALOGE("Failed to create stream handler for %s", pCameraId.c_str()); in obtainStreamHandler()
80 mCameraInstances.emplace(pCameraId, instance); in obtainStreamHandler()
91 void ResourceManager::releaseStreamHandler(string pCameraId) { in releaseStreamHandler() argument
97 auto result = mCameraInstances.find(pCameraId); in releaseStreamHandler()
99 ALOGW("No stream handler is active with camera id %s", pCameraId.c_str()); in releaseStreamHandler()
DResourceManager.h70 sp<StreamHandler> obtainStreamHandler(string pCameraId);
84 void releaseStreamHandler(string pCameraId);