Searched defs:cameraId (Results 1 - 18 of 18) sorted by relevance

/frameworks/av/camera/
H A DICameraService.cpp47 virtual status_t getCameraInfo(int cameraId, argument
51 data.writeInt32(cameraId);
59 virtual sp<ICamera> connect(const sp<ICameraClient>& cameraClient, int cameraId) argument
64 data.writeInt32(cameraId);
H A DCamera.cpp112 status_t Camera::getCameraInfo(int cameraId, argument
116 return cs->getCameraInfo(cameraId, cameraInfo);
119 sp<Camera> Camera::connect(int cameraId) argument
125 c->mCamera = cs->connect(c, cameraId);
/frameworks/base/media/java/android/media/
H A DCameraProfile.java74 * @param cameraId The id of the camera
77 public static int getJpegEncodingQualityParameter(int cameraId, int quality) { argument
82 int[] levels = sCache.get(cameraId);
84 levels = getImageEncodingQualityLevels(cameraId);
85 sCache.put(cameraId, levels);
96 private static int[] getImageEncodingQualityLevels(int cameraId) { argument
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); argument
113 private static native final int native_get_image_encoding_quality_level(int cameraId, in argument
[all...]
H A DCamcorderProfile.java246 * @param cameraId the id for the camera
263 public static CamcorderProfile get(int cameraId, int quality) { argument
271 return native_get_camcorder_profile(cameraId, quality);
294 * @param cameraId the id for the camera
297 public static boolean hasProfile(int cameraId, int quality) { argument
298 return native_has_camcorder_profile(cameraId, quality);
337 int cameraId, int quality);
339 int cameraId, int quality);
336 native_get_camcorder_profile( int cameraId, int quality) argument
338 native_has_camcorder_profile( int cameraId, int quality) argument
/frameworks/av/media/libstagefright/
H A DCameraSourceTimeLapse.cpp38 int32_t cameraId,
45 CameraSourceTimeLapse(camera, proxy, cameraId,
61 int32_t cameraId,
66 : CameraSource(camera, proxy, cameraId, videoSize, videoFrameRate, surface, true),
35 CreateFromCamera( const sp<ICamera> &camera, const sp<ICameraRecordingProxy> &proxy, int32_t cameraId, Size videoSize, int32_t videoFrameRate, const sp<Surface>& surface, int64_t timeBetweenFrameCaptureUs) argument
58 CameraSourceTimeLapse( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, Size videoSize, int32_t videoFrameRate, const sp<Surface>& surface, int64_t timeBetweenFrameCaptureUs) argument
H A DCameraSource.cpp137 int32_t cameraId,
143 CameraSource *source = new CameraSource(camera, proxy, cameraId,
152 int32_t cameraId,
175 mInitCheck = init(camera, proxy, cameraId,
187 int32_t cameraId) {
190 mCamera = Camera::connect(cameraId);
454 * @param cameraId if camera == 0, use camera with this id
471 int32_t cameraId,
479 err = initWithCameraAccess(camera, proxy, cameraId,
489 int32_t cameraId,
134 CreateFromCamera( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, Size videoSize, int32_t frameRate, const sp<Surface>& surface, bool storeMetaDataInVideoBuffers) argument
149 CameraSource( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, Size videoSize, int32_t frameRate, const sp<Surface>& surface, bool storeMetaDataInVideoBuffers) argument
185 isCameraAvailable( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId) argument
468 init( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, Size videoSize, int32_t frameRate, bool storeMetaDataInVideoBuffers) argument
486 initWithCameraAccess( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, Size videoSize, int32_t frameRate, bool storeMetaDataInVideoBuffers) argument
[all...]
/frameworks/base/tests/RenderScriptTests/SurfaceTexture/src/com/example/android/rs/sto/
H A DCameraCapture.java59 public synchronized void beginCapture(int cameraId, int width, int height, argument
61 mCameraId = cameraId;
/frameworks/av/services/camera/libcameraservice/
H A DCameraService.cpp117 status_t CameraService::getCameraInfo(int cameraId, argument
123 if (cameraId < 0 || cameraId >= mNumberOfCameras) {
128 status_t rc = mModule->get_camera_info(cameraId, &info);
135 const sp<ICameraClient>& cameraClient, int cameraId) {
138 LOG1("CameraService::connect E (pid %d, id %d)", callingPid, cameraId);
146 if (cameraId < 0 || cameraId >= mNumberOfCameras) {
147 ALOGE("CameraService::connect X (pid %d) rejected (invalid cameraId %d).",
148 callingPid, cameraId);
134 connect( const sp<ICameraClient>& cameraClient, int cameraId) argument
274 getClientByIdUnsafe(int cameraId) argument
279 getClientLockById(int cameraId) argument
328 setCameraBusy(int cameraId) argument
334 setCameraFree(int cameraId) argument
390 Client(const sp<CameraService>& cameraService, const sp<ICameraClient>& cameraClient, int cameraId, int cameraFacing, int clientPid, int servicePid) argument
[all...]
H A DCameraClient.cpp43 int cameraId, int cameraFacing, int clientPid, int servicePid):
45 cameraId, cameraFacing, clientPid, servicePid)
48 LOG1("CameraClient::CameraClient E (pid %d, id %d)", callingPid, cameraId);
60 LOG1("CameraClient::CameraClient X (pid %d, id %d)", callingPid, cameraId);
41 CameraClient(const sp<CameraService>& cameraService, const sp<ICameraClient>& cameraClient, int cameraId, int cameraFacing, int clientPid, int servicePid) argument
H A DCamera2Client.cpp48 int cameraId,
53 cameraId, cameraFacing, clientPid, servicePid),
55 mParameters(cameraId, cameraFacing)
58 ALOGI("Camera %d: Opened", cameraId);
60 mDevice = new Camera2Device(cameraId);
46 Camera2Client(const sp<CameraService>& cameraService, const sp<ICameraClient>& cameraClient, int cameraId, int cameraFacing, int clientPid, int servicePid) argument
/frameworks/base/media/jni/
H A Dandroid_media_MediaProfiles.cpp276 android_media_MediaProfiles_native_get_num_image_encoding_quality_levels(JNIEnv *env, jobject thiz, jint cameraId) argument
279 return sProfiles->getImageEncodingQualityLevels(cameraId).size();
283 android_media_MediaProfiles_native_get_image_encoding_quality_level(JNIEnv *env, jobject thiz, jint cameraId, jint index) argument
286 Vector<int> levels = sProfiles->getImageEncodingQualityLevels(cameraId);
/frameworks/av/media/libmedia/
H A DMediaProfiles.cpp302 static bool isCameraIdFound(int cameraId, const Vector<int>& cameraIds) { argument
304 if (cameraId == cameraIds[i]) {
312 MediaProfiles::createCamcorderProfile(int cameraId, const char **atts, Vector<int>& cameraIds) argument
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) argument
354 ALOGV("%s: cameraId
374 addStartTimeOffset(int cameraId, const char** atts) argument
487 getRequiredProfileRefIndex(int cameraId) argument
508 int cameraId = mCamcorderProfiles[i]->mCameraId; local
1086 getCamcorderProfileIndex(int cameraId, camcorder_quality quality) const argument
1099 getCamcorderProfileParamByName(const char *name, int cameraId, camcorder_quality quality) const argument
1129 hasCamcorderProfile(int cameraId, camcorder_quality quality) const argument
[all...]
/frameworks/av/services/camera/libcameraservice/camera2/
H A DParameters.h45 int cameraId; member in struct:android::camera2::Parameters
201 Parameters(int cameraId, int cameraFacing);
319 SharedParameters(int cameraId, int cameraFacing): argument
320 mParameters(cameraId, cameraFacing) {
H A DParameters.cpp36 Parameters::Parameters(int cameraId, argument
38 cameraId(cameraId),
163 __FUNCTION__, cameraId, availableFormats.data.i32[i]);
332 __FUNCTION__, cameraId,
394 __FUNCTION__, cameraId, availableEffects.data.u8[i]);
434 __FUNCTION__, cameraId,
528 __FUNCTION__, cameraId,
628 __FUNCTION__, cameraId, availableAfModes.data.u8[i]);
792 ALOGI("Camera %d: Disabling ZSL mode", cameraId);
[all...]
/frameworks/av/services/camera/tests/CameraServiceTest/
H A DCameraServiceTest.cpp429 void testConnect(int cameraId) { argument
433 sp<ICamera> c = cs->connect(cc, cameraId);
438 void testAllowConnectOnceOnly(int cameraId) { argument
443 sp<ICamera> c = cs->connect(cc, cameraId);
446 ASSERT(cs->connect(cc, cameraId) != 0);
449 ASSERT(cs->connect(cc2, cameraId) == 0);
532 void testReconnect(int cameraId) { argument
536 sp<ICamera> c = cs->connect(cc, cameraId);
547 void testLockUnlock(int cameraId) { argument
550 sp<ICamera> c = cs->connect(cc, cameraId);
566 testReconnectFromAnotherProcess(int cameraId) argument
604 init(int cameraId) argument
668 init(int cameraId) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_hardware_Camera.cpp448 jint cameraId, jobject info_obj)
451 status_t rc = Camera::getCameraInfo(cameraId, &cameraInfo);
468 jobject weak_this, jint cameraId)
470 sp<Camera> camera = Camera::connect(cameraId);
447 android_hardware_Camera_getCameraInfo(JNIEnv *env, jobject thiz, jint cameraId, jobject info_obj) argument
467 android_hardware_Camera_native_setup(JNIEnv *env, jobject thiz, jobject weak_this, jint cameraId) argument
/frameworks/av/media/libmediaplayerservice/
H A DStagefrightRecorder.cpp456 status_t StagefrightRecorder::setParamVideoCameraId(int32_t cameraId) { argument
457 ALOGV("setParamVideoCameraId: %d", cameraId);
458 if (cameraId < 0) {
461 mCameraId = cameraId;
666 int32_t cameraId; local
667 if (safe_strtoi32(value.string(), &cameraId)) {
668 return setParamVideoCameraId(cameraId);
/frameworks/base/core/java/android/hardware/
H A DCamera.java200 public static void getCameraInfo(int cameraId, CameraInfo cameraInfo) { argument
201 _getCameraInfo(cameraId, cameraInfo);
214 private native static void _getCameraInfo(int cameraId, CameraInfo cameraInfo); argument
293 * @param cameraId the hardware camera to access, between 0 and
301 public static Camera open(int cameraId) { argument
302 return new Camera(cameraId);
323 Camera(int cameraId) { argument
340 native_setup(new WeakReference<Camera>(this), cameraId);
353 private native final void native_setup(Object camera_this, int cameraId); argument
1147 * int cameraId, androi
[all...]

Completed in 170 milliseconds