Lines Matching refs:id
72 int CameraHAL::getCameraInfo(int id, struct camera_info* info) { in getCameraInfo() argument
74 ALOGV("%s: camera id %d: info=%p", __func__, id, info); in getCameraInfo()
75 if (id < 0 || id >= static_cast<int>(mCameras.size())) { in getCameraInfo()
76 ALOGE("%s: Invalid camera id %d", __func__, id); in getCameraInfo()
80 return mCameras[id]->getInfo(info); in getCameraInfo()
90 int id; in open() local
99 id = strtol(name, &nameEnd, 10); in open()
103 } else if (id < 0 || id >= static_cast<int>(mCameras.size())) { in open()
104 ALOGE("%s: Invalid camera id %d", __func__, id); in open()
107 return mCameras[id]->open(mod, dev); in open()
116 static int get_camera_info(int id, struct camera_info* info) { in get_camera_info() argument
117 return gCameraHAL.getCameraInfo(id, info); in get_camera_info()
137 id : CAMERA_HARDWARE_MODULE_ID,