Lines Matching defs:cameraId
77 __FUNCTION__, it->CameraID, strerror(errno),
83 __FUNCTION__, it->CameraID);
123 int cameraId = *it;
124 if (!addWatch(cameraId)) {
178 int cameraId = getCameraId(event->wd);
180 if (cameraId < 0) {
185 String8 filePath = getFilePath(cameraId);
201 gEmulatedCameraFactory.onStatusChanged(cameraId,
222 String8 EmulatedCameraHotplugThread::getFilePath(int cameraId) const {
223 return String8::format(FAKE_HOTPLUG_FILE ".%d", cameraId);
226 bool EmulatedCameraHotplugThread::createFileIfNotExists(int cameraId) const
228 String8 filePath = getFilePath(cameraId);
268 return mSubscribers[i].CameraID;
275 SubscriberInfo* EmulatedCameraHotplugThread::getSubscriberInfo(int cameraId)
278 if (mSubscribers[i].CameraID == cameraId) {
286 bool EmulatedCameraHotplugThread::addWatch(int cameraId) {
287 String8 camPath = getFilePath(cameraId);
302 __FUNCTION__, cameraId, wd);
304 SubscriberInfo si = { cameraId, wd };
310 bool EmulatedCameraHotplugThread::removeWatch(int cameraId) {
311 SubscriberInfo* si = getSubscriberInfo(cameraId);
318 __FUNCTION__, cameraId, strerror(errno),
326 if (it->CameraID == cameraId) {