Searched refs:cameraId (Results 1 - 22 of 22) sorted by relevance

/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/include/camera/
H A DICameraService.h42 virtual status_t getCameraInfo(int cameraId,
45 int cameraId) = 0;
H A DCamera.h73 static status_t getCameraInfo(int cameraId,
75 static sp<Camera> connect(int cameraId);
/frameworks/av/services/camera/libcameraservice/
H A DCameraService.cpp116 status_t CameraService::getCameraInfo(int cameraId, argument
122 if (cameraId < 0 || cameraId >= mNumberOfCameras) {
127 status_t rc = mModule->get_camera_info(cameraId, &info);
134 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);
133 connect( const sp<ICameraClient>& cameraClient, int cameraId) argument
239 getClientByIdUnsafe(int cameraId) argument
244 getClientLockById(int cameraId) argument
278 setCameraBusy(int cameraId) argument
282 setCameraFree(int cameraId) argument
336 Client(const sp<CameraService>& cameraService, const sp<ICameraClient>& cameraClient, const sp<CameraHardwareInterface>& hardware, int cameraId, int cameraFacing, int clientPid) argument
[all...]
H A DCameraService.h47 virtual status_t getCameraInfo(int cameraId,
49 virtual sp<ICamera> connect(const sp<ICameraClient>& cameraClient, int cameraId);
53 virtual Client* getClientByIdUnsafe(int cameraId);
54 virtual Mutex* getClientLockById(int cameraId);
79 void setCameraBusy(int cameraId);
80 void setCameraFree(int cameraId);
119 int cameraId,
H A DCameraHardwareStub.cpp400 extern "C" void HAL_getCameraInfo(int cameraId, struct CameraInfo* cameraInfo) argument
402 memcpy(cameraInfo, &sCameraInfo[cameraId], sizeof(CameraInfo));
405 extern "C" sp<CameraHardwareInterface> HAL_openCameraHardware(int cameraId) argument
/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/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/include/media/stagefright/
H A DCameraSource.h51 * cameraId.
53 * @param cameraId the id of the camera that the source will connect
73 int32_t cameraId,
160 int32_t cameraId,
200 int32_t cameraId, Size videoSize, int32_t frameRate,
205 int32_t cameraId, Size videoSize, int32_t frameRate,
210 int32_t cameraId);
H A DCameraSourceTimeLapse.h37 int32_t cameraId,
110 int32_t cameraId,
/frameworks/av/include/media/
H A DMediaProfiles.h104 int getCamcorderProfileParamByName(const char *name, int cameraId,
111 bool hasCamcorderProfile(int cameraId, camcorder_quality quality) const;
197 Vector<int> getImageEncodingQualityLevels(int cameraId) const;
203 int getStartTimeOffsetMs(int cameraId) const;
384 int getCamcorderProfileIndex(int cameraId, camcorder_quality quality) const;
386 int getRequiredProfileRefIndex(int cameraId);
412 int cameraId, const char **atts, Vector<int>& cameraIds);
416 void addStartTimeOffset(int cameraId, const char **atts);
418 ImageEncodingQualityLevels* findImageEncodingQualityLevels(int cameraId) const;
419 void addImageEncodingQualityLevel(int cameraId, cons
[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/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.cpp133 int32_t cameraId,
139 CameraSource *source = new CameraSource(camera, proxy, cameraId,
148 int32_t cameraId,
170 mInitCheck = init(camera, proxy, cameraId,
182 int32_t cameraId) {
185 mCamera = Camera::connect(cameraId);
449 * @param cameraId if camera == 0, use camera with this id
466 int32_t cameraId,
474 err = initWithCameraAccess(camera, proxy, cameraId,
484 int32_t cameraId,
130 CreateFromCamera( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, Size videoSize, int32_t frameRate, const sp<Surface>& surface, bool storeMetaDataInVideoBuffers) argument
145 CameraSource( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, Size videoSize, int32_t frameRate, const sp<Surface>& surface, bool storeMetaDataInVideoBuffers) argument
180 isCameraAvailable( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId) argument
463 init( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, Size videoSize, int32_t frameRate, bool storeMetaDataInVideoBuffers) argument
481 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/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/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);
H A DStagefrightRecorder.h167 status_t setParamVideoCameraId(int32_t cameraId);
/frameworks/base/core/java/android/hardware/
H A DCamera.java195 public native static void getCameraInfo(int cameraId, CameraInfo cameraInfo); argument
259 * @param cameraId the hardware camera to access, between 0 and
267 public static Camera open(int cameraId) { argument
268 return new Camera(cameraId);
289 Camera(int cameraId) { argument
306 native_setup(new WeakReference<Camera>(this), cameraId);
319 private native final void native_setup(Object camera_this, int cameraId); argument
1113 * int cameraId, android.hardware.Camera camera) {
1116 * android.hardware.Camera.getCameraInfo(cameraId, info);
1294 * CameraInfo info = CameraHolder.instance().getCameraInfo()[cameraId];
[all...]
/frameworks/base/core/jni/
H A Dandroid_hardware_Camera.cpp446 jint cameraId, jobject info_obj)
449 status_t rc = Camera::getCameraInfo(cameraId, &cameraInfo);
460 jobject weak_this, jint cameraId)
462 sp<Camera> camera = Camera::connect(cameraId);
445 android_hardware_Camera_getCameraInfo(JNIEnv *env, jobject thiz, jint cameraId, jobject info_obj) argument
459 android_hardware_Camera_native_setup(JNIEnv *env, jobject thiz, jobject weak_this, jint cameraId) argument

Completed in 5510 milliseconds