Searched refs:cameraId (Results 1 - 21 of 21) 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.java241 * @param cameraId the id for the camera
258 public static CamcorderProfile get(int cameraId, int quality) { argument
266 return native_get_camcorder_profile(cameraId, quality);
289 * @param cameraId the id for the camera
292 public static boolean hasProfile(int cameraId, int quality) { argument
293 return native_has_camcorder_profile(cameraId, quality);
332 int cameraId, int quality);
334 int cameraId, int quality);
331 native_get_camcorder_profile( int cameraId, int quality) argument
333 native_has_camcorder_profile( int cameraId, int quality) argument
/frameworks/base/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/base/libs/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.cpp111 status_t Camera::getCameraInfo(int cameraId, argument
115 return cs->getCameraInfo(cameraId, cameraInfo);
118 sp<Camera> Camera::connect(int cameraId) argument
124 c->mCamera = cs->connect(c, cameraId);
/frameworks/base/media/libmedia/
H A DMediaProfiles.cpp300 static bool isCameraIdFound(int cameraId, const Vector<int>& cameraIds) { argument
302 if (cameraId == cameraIds[i]) {
310 MediaProfiles::createCamcorderProfile(int cameraId, const char **atts, Vector<int>& cameraIds) argument
325 profile->mCameraId = cameraId;
326 if (!isCameraIdFound(cameraId, cameraIds)) {
327 cameraIds.add(cameraId);
336 MediaProfiles::findImageEncodingQualityLevels(int cameraId) const
341 if (levels->mCameraId == cameraId) {
348 void MediaProfiles::addImageEncodingQualityLevel(int cameraId, const char** atts) argument
352 LOGV("%s: cameraId
372 addStartTimeOffset(int cameraId, const char** atts) argument
485 getRequiredProfileRefIndex(int cameraId) argument
506 int cameraId = mCamcorderProfiles[i]->mCameraId; local
1084 getCamcorderProfileIndex(int cameraId, camcorder_quality quality) const argument
1097 getCamcorderProfileParamByName(const char *name, int cameraId, camcorder_quality quality) const argument
1127 hasCamcorderProfile(int cameraId, camcorder_quality quality) const argument
[all...]
/frameworks/base/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,
201 int32_t cameraId, Size videoSize, int32_t frameRate,
206 int32_t cameraId, Size videoSize, int32_t frameRate,
211 int32_t cameraId);
H A DCameraSourceTimeLapse.h37 int32_t cameraId,
110 int32_t cameraId,
/frameworks/base/services/camera/libcameraservice/
H A DCameraService.cpp126 status_t CameraService::getCameraInfo(int cameraId, argument
132 if (cameraId < 0 || cameraId >= mNumberOfCameras) {
137 status_t rc = mModule->get_camera_info(cameraId, &info);
144 const sp<ICameraClient>& cameraClient, int cameraId) {
148 LOG1("CameraService::connect E (pid %d, id %d)", callingPid, cameraId);
156 if (cameraId < 0 || cameraId >= mNumberOfCameras) {
157 LOGE("CameraService::connect X (pid %d) rejected (invalid cameraId %d).",
158 callingPid, cameraId);
143 connect( const sp<ICameraClient>& cameraClient, int cameraId) argument
249 getClientById(int cameraId) argument
283 setCameraBusy(int cameraId) argument
287 setCameraFree(int cameraId) argument
341 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);
51 virtual sp<Client> getClientById(int cameraId);
75 void setCameraBusy(int cameraId);
76 void setCameraFree(int cameraId);
116 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/base/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/base/services/camera/tests/CameraServiceTest/
H A DCameraServiceTest.cpp430 void testConnect(int cameraId) { argument
434 sp<ICamera> c = cs->connect(cc, cameraId);
439 void testAllowConnectOnceOnly(int cameraId) { argument
444 sp<ICamera> c = cs->connect(cc, cameraId);
447 ASSERT(cs->connect(cc, cameraId) != 0);
450 ASSERT(cs->connect(cc2, cameraId) == 0);
533 void testReconnect(int cameraId) { argument
537 sp<ICamera> c = cs->connect(cc, cameraId);
548 void testLockUnlock(int cameraId) { argument
551 sp<ICamera> c = cs->connect(cc, cameraId);
567 testReconnectFromAnotherProcess(int cameraId) argument
605 init(int cameraId) argument
669 init(int cameraId) argument
[all...]
/frameworks/base/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/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/base/media/libmediaplayerservice/
H A DStagefrightRecorder.cpp455 status_t StagefrightRecorder::setParamVideoCameraId(int32_t cameraId) { argument
456 LOGV("setParamVideoCameraId: %d", cameraId);
457 if (cameraId < 0) {
460 mCameraId = cameraId;
665 int32_t cameraId; local
666 if (safe_strtoi32(value.string(), &cameraId)) {
667 return setParamVideoCameraId(cameraId);
H A DStagefrightRecorder.h167 status_t setParamVideoCameraId(int32_t cameraId);
/frameworks/base/core/java/android/hardware/
H A DCamera.java193 public native static void getCameraInfo(int cameraId, CameraInfo cameraInfo); argument
255 * @param cameraId the hardware camera to access, between 0 and
263 public static Camera open(int cameraId) { argument
264 return new Camera(cameraId);
285 Camera(int cameraId) { argument
302 native_setup(new WeakReference<Camera>(this), cameraId);
309 private native final void native_setup(Object camera_this, int cameraId); argument
998 * int cameraId, android.hardware.Camera camera) {
1001 * android.hardware.Camera.getCameraInfo(cameraId, info);
1179 * 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 967 milliseconds