/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/ |
SelectableResolution.java | 23 public final int cameraId; 30 public SelectableResolution(int cameraId, int width, int height) { 31 this.cameraId = cameraId; 40 return "Cam " + cameraId + ": " + width + " x " + height + " - "
|
/cts/tests/tests/media/src/android/media/cts/ |
CamcorderProfileTest.java | 34 // Uses get without id if cameraId == -1 and get with id otherwise. 35 private CamcorderProfile getWithOptionalId(int quality, int cameraId) { 36 if (cameraId == -1) { 39 return CamcorderProfile.get(cameraId, quality); 147 int cameraId, 158 if ((cameraId != -1 && CamcorderProfile.hasProfile(cameraId, quality)) || 159 (cameraId == -1 && CamcorderProfile.hasProfile(quality))) { 160 CamcorderProfile profile = getWithOptionalId(quality, cameraId); 187 private void checkGet(int cameraId) { [all...] |
/device/generic/goldfish/camera/ |
EmulatedCameraHotplugThread.cpp | 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); [all...] |
EmulatedCameraHotplugThread.h | 48 int CameraID; 52 bool addWatch(int cameraId); 53 bool removeWatch(int cameraId); 54 SubscriberInfo* getSubscriberInfo(int cameraId); 59 String8 getFilePath(int cameraId) const; 62 bool createFileIfNotExists(int cameraId) const;
|
EmulatedQemuCamera2.cpp | 32 EmulatedQemuCamera2::EmulatedQemuCamera2(int cameraId, 35 : EmulatedCamera2(cameraId,module),
|
/frameworks/av/services/camera/libcameraservice/ |
CameraService.cpp | 142 void CameraService::onDeviceStatusChanged(int cameraId, 145 ALOGI("%s: Status changed for cameraId=%d, newStatus=%d", __FUNCTION__, 146 cameraId, newStatus); 148 if (cameraId < 0 || cameraId >= MAX_CAMERAS) { 149 ALOGE("%s: Bad camera ID %d", __FUNCTION__, cameraId); 153 if ((int)getStatus(cameraId) == newStatus) { 167 sp<Client> client = mClient[cameraId].promote(); 172 int i = cameraId; 199 static_cast<ICameraServiceListener::Status>(newStatus), cameraId); [all...] |
CameraService.h | 64 virtual void onDeviceStatusChanged(int cameraId, 70 virtual status_t getCameraInfo(int cameraId, 73 virtual sp<ICamera> connect(const sp<ICameraClient>& cameraClient, int cameraId, 76 int cameraId, const String16& clientPackageName, int clientUid); 108 virtual Client* getClientByIdUnsafe(int cameraId); 109 virtual Mutex* getClientLockById(int cameraId); 126 int cameraId, 212 int cameraId, 245 int cameraId, 288 bool validateConnect(int cameraId, [all...] |
/frameworks/base/media/java/android/media/ |
CameraProfile.java | 74 * @param cameraId The id of the camera 77 public static int getJpegEncodingQualityParameter(int cameraId, int quality) { 82 int[] levels = sCache.get(cameraId); 84 levels = getImageEncodingQualityLevels(cameraId); 85 sCache.put(cameraId, levels); 96 private static int[] getImageEncodingQualityLevels(int cameraId) { 97 int nLevels = native_get_num_image_encoding_quality_levels(cameraId); 104 levels[i] = native_get_image_encoding_quality_level(cameraId, i); 112 private static native final int native_get_num_image_encoding_quality_levels(int cameraId); 113 private static native final int native_get_image_encoding_quality_level(int cameraId, int index) [all...] |
/hardware/libhardware/tests/camera2/ |
CameraModuleFixture.h | 37 CameraModuleFixture(int CameraID = -1) { 40 mCameraID = CameraID; 86 void CreateCamera(int cameraID, /*out*/ sp<CameraDeviceBase> *device) { 88 ASSERT_EQ(OK, mModule->get_camera_info(cameraID, &info)); 91 "Device version too old for camera " << cameraID << ". Version: " << 96 *device = new Camera2Device(cameraID); 99 *device = new Camera3Device(cameraID); 103 FAIL() << "Device version unknown for camera " << cameraID << ". Version: " << 113 int getDeviceVersion(int cameraId, status_t* status = NULL) { 116 res = mModule->get_camera_info(cameraId, &info) [all...] |
CameraModuleTests.cpp | 46 status_t initializeDevice(int cameraId) { 50 if (isDeviceVersionHal2(cameraId, &stat) && stat == OK) { 57 bool isDeviceVersionHal2(int cameraId, status_t* status) { 58 return getDeviceVersion(cameraId, status)
|
/hardware/ti/omap4xxx/camera/ |
CameraHal_Module.cpp | 67 int cameraid; member in struct:ti_camera_device 88 rv = gCameraHals[ti_dev->cameraid]->setPreviewWindow(window); 109 gCameraHals[ti_dev->cameraid]->setCallbacks(notify_cb, data_cb, data_cb_timestamp, get_memory, user); 123 gCameraHals[ti_dev->cameraid]->enableMsgType(msg_type); 137 gCameraHals[ti_dev->cameraid]->disableMsgType(msg_type); 151 return gCameraHals[ti_dev->cameraid]->msgTypeEnabled(msg_type); 166 rv = gCameraHals[ti_dev->cameraid]->startPreview(); 182 gCameraHals[ti_dev->cameraid]->stopPreview(); 197 rv = gCameraHals[ti_dev->cameraid]->previewEnabled(); 214 rv = gCameraHals[ti_dev->cameraid]->storeMetaDataInBuffers(enable) 488 int cameraid; local [all...] |
/device/lge/mako/camera/QCamera/HAL/core/inc/ |
QCameraHAL.h | 30 QCameraHAL_openCameraHardware(int cameraId, int mode); 32 extern "C" void HAL_getCameraInfo(int cameraId, struct CameraInfo* cameraInfo);
|
/device/lge/mako/camera/QCamera/HAL/core/src/ |
QCameraHAL.cpp | 42 * If getNumberOfCameras() returns N, the valid cameraId for getCameraInfo() 88 extern "C" void HAL_getCameraInfo(int cameraId, struct CameraInfo* cameraInfo) 93 if (!HAL_numOfCameras || HAL_numOfCameras < cameraId || !cameraInfo) 96 mm_camer_obj = HAL_camerahandle[cameraId]; 123 extern "C" void * HAL_openCameraHardware(int cameraId, int mode) 126 if (!HAL_numOfCameras || HAL_numOfCameras < cameraId ||cameraId < 0) { 129 return QCameraHAL_openCameraHardware(cameraId, mode);
|
QCameraStream.cpp | 102 status_t QCameraStream::initChannel(int cameraId, 115 rc = cam_config_get_parm(cameraId, MM_CAMERA_PARM_DIMENSION, &dim); 123 rc = cam_ops_ch_acquire(cameraId, MM_CAMERA_CH_PREVIEW); 142 rc = cam_config_set_parm(cameraId, MM_CAMERA_PARM_CH_IMAGE_FMT, &fmt); 155 rc = cam_ops_ch_acquire(cameraId, MM_CAMERA_CH_VIDEO); 174 rc = cam_config_set_parm(cameraId, MM_CAMERA_PARM_CH_IMAGE_FMT, &fmt); 194 rc = cam_ops_ch_acquire(cameraId, MM_CAMERA_CH_PREVIEW); 208 rc = cam_ops_ch_acquire(cameraId, MM_CAMERA_CH_VIDEO); 228 status_t QCameraStream::deinitChannel(int cameraId, 241 cam_ops_ch_release(cameraId, ch_type) [all...] |
/device/lge/mako/camera/ |
QCameraHAL.cpp | 41 * If getNumberOfCameras() returns N, the valid cameraId for getCameraInfo() 87 extern "C" void HAL_getCameraInfo(int cameraId, struct CameraInfo* cameraInfo) 92 if (!HAL_numOfCameras || HAL_numOfCameras < cameraId || !cameraInfo) 95 mm_camer_obj = HAL_camerahandle[cameraId]; 122 extern "C" void * HAL_openCameraHardware(int cameraId, int mode) 125 if (!HAL_numOfCameras || HAL_numOfCameras < cameraId ||cameraId < 0) { 128 return QCameraHAL_openCameraHardware(cameraId, mode);
|
QCameraHAL.h | 30 QCameraHAL_openCameraHardware(int cameraId, int mode); 32 extern "C" void HAL_getCameraInfo(int cameraId, struct CameraInfo* cameraInfo);
|
/frameworks/av/camera/ |
ICameraService.cpp | 52 virtual status_t getCameraInfo(int cameraId, 56 data.writeInt32(cameraId); 64 virtual sp<ICamera> connect(const sp<ICameraClient>& cameraClient, int cameraId, 70 data.writeInt32(cameraId); 78 virtual sp<IProCameraUser> connect(const sp<IProCameraCallbacks>& cameraCb, int cameraId, 84 data.writeInt32(cameraId); 137 int32_t cameraId = data.readInt32(); 140 sp<ICamera> camera = connect(cameraClient, cameraId, 148 int32_t cameraId = data.readInt32(); 151 sp<IProCameraUser> camera = connect(cameraClient, cameraId, [all...] |
ICameraServiceListener.cpp | 44 virtual void onStatusChanged(Status status, int32_t cameraId) 51 data.writeInt32(cameraId); 73 int32_t cameraId = data.readInt32(); 75 onStatusChanged(status, cameraId);
|
CameraBase.cpp | 94 sp<TCam> CameraBase<TCam, TCamTraits>::connect(int cameraId, 99 sp<TCam> c = new TCam(cameraId); 103 c->mCamera = cs->connect(cl, cameraId, clientPackageName, clientUid); 127 CameraBase<TCam, TCamTraits>::CameraBase(int cameraId) : 129 mCameraId(cameraId) 192 status_t CameraBase<TCam, TCamTraits>::getCameraInfo(int cameraId, 196 return cs->getCameraInfo(cameraId, cameraInfo);
|
/pdk/apps/TestingCamera/src/com/android/testingcamera/ |
InfoDialogFragment.java | 45 public void updateInfo(int cameraId, Camera camera) { 46 mTitleString = "Current camera " + cameraId + " state"; 50 Camera.getCameraInfo(cameraId, cameraInfo);
|
/frameworks/av/media/libmedia/ |
MediaProfiles.cpp | 302 static bool isCameraIdFound(int cameraId, const Vector<int>& cameraIds) { 304 if (cameraId == cameraIds[i]) { 312 MediaProfiles::createCamcorderProfile(int cameraId, const char **atts, Vector<int>& cameraIds) 327 profile->mCameraId = cameraId; 328 if (!isCameraIdFound(cameraId, cameraIds)) { 329 cameraIds.add(cameraId); 338 MediaProfiles::findImageEncodingQualityLevels(int cameraId) const 343 if (levels->mCameraId == cameraId) { 350 void MediaProfiles::addImageEncodingQualityLevel(int cameraId, const char** atts) 354 ALOGV("%s: cameraId=%d, quality=%d", __func__, cameraId, quality) [all...] |
/frameworks/av/include/media/stagefright/ |
CameraSource.h | 54 * cameraId. 56 * @param cameraId the id of the camera that the source will connect 80 int32_t cameraId, 170 int32_t cameraId, const String16& clientName, uid_t clientUid, 210 int32_t cameraId, const String16& clientName, uid_t clientUid, 215 int32_t cameraId, const String16& clientName, uid_t clientUid, 220 int32_t cameraId,
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
CameraHolder.java | 120 public synchronized android.hardware.Camera open(int cameraId) 123 if (mCameraDevice != null && mCameraId != cameraId) { 130 Log.v(TAG, "open camera " + cameraId); 131 mCameraDevice = android.hardware.Camera.open(cameraId); 132 mCameraId = cameraId; 157 public synchronized android.hardware.Camera tryOpen(int cameraId) { 159 return mUsers == 0 ? open(cameraId) : null;
|
/packages/apps/Camera/src/com/android/camera/ |
CameraHolder.java | 191 public synchronized CameraProxy open(int cameraId) 194 collectState(cameraId, mCameraDevice); 201 if (mCameraDevice != null && mCameraId != cameraId) { 208 Log.v(TAG, "open camera " + cameraId); 210 mCameraDevice = CameraManager.instance().cameraOpen(cameraId); 214 mCameraDevice = mMockCamera[cameraId]; 216 mCameraId = cameraId; 241 public synchronized CameraProxy tryOpen(int cameraId) { 243 return !mCameraOpened ? open(cameraId) : null;
|
/packages/apps/Gallery2/src/com/android/camera/ |
CameraHolder.java | 191 public synchronized CameraProxy open(int cameraId) 194 collectState(cameraId, mCameraDevice); 201 if (mCameraDevice != null && mCameraId != cameraId) { 208 Log.v(TAG, "open camera " + cameraId); 210 mCameraDevice = CameraManager.instance().cameraOpen(cameraId); 214 mCameraDevice = mMockCamera[cameraId]; 216 mCameraId = cameraId; 241 public synchronized CameraProxy tryOpen(int cameraId) { 243 return !mCameraOpened ? open(cameraId) : null;
|