Searched refs:camera (Results 1 - 25 of 50) sorted by relevance

12

/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DTransform3dActivity.java59 final Camera camera = mCamera;
63 rotate(centerX, centerY, camera, matrix, 32.0f);
66 rotate(centerX, centerY, camera, matrix, 12.0f);
69 rotate(centerX, centerY, camera, matrix, 52.0f);
72 rotate(centerX, centerY, camera, matrix, 122.0f);
86 private void rotate(float centerX, float centerY, Camera camera, argument
88 camera.save();
89 camera.rotateY(angle);
90 camera.getMatrix(matrix);
91 camera
[all...]
/frameworks/base/core/jni/
H A Dandroid_hardware_Camera.cpp31 #include <camera/Camera.h>
61 JNICameraContext(JNIEnv* env, jobject weak_this, jclass clazz, const sp<Camera>& camera);
114 sp<Camera> camera; local
118 camera = context->getCamera();
120 ALOGV("get_native_camera: context=%p, camera=%p", context, camera.get());
121 if (camera == 0) {
126 return camera;
129 JNICameraContext::JNICameraContext(JNIEnv* env, jobject weak_this, jclass clazz, const sp<Camera>& camera) argument
133 mCamera = camera;
470 sp<Camera> camera = Camera::connect(cameraId); local
508 sp<Camera> camera; local
537 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
553 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
580 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
614 sp<Camera> camera = get_native_camera(env, thiz, &context); local
660 sp<Camera> camera = get_native_camera(env, thiz, &context); local
690 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
708 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
722 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
734 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
745 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
756 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
772 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
784 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
796 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
816 sp<Camera> camera = get_native_camera(env, thiz, &context); local
832 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
843 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
[all...]
/frameworks/av/include/camera/
H A DICameraService.h24 #include <camera/ICameraClient.h>
25 #include <camera/ICamera.h>
H A DCamera.h22 #include <system/camera.h>
23 #include <camera/ICameraClient.h>
24 #include <camera/ICameraRecordingProxy.h>
25 #include <camera/ICameraRecordingProxyListener.h>
31 * The direction that the camera faces to. It should be CAMERA_FACING_BACK
37 * The orientation of the camera image. The value is the angle that the
38 * camera image needs to be rotated clockwise so it shows correctly on the
42 * back-facing camera sensor is mounted in landscape. You are looking at
43 * the screen. If the top side of the camera sensor is aligned with the
45 * 90. If the top side of a front-facing camera senso
[all...]
H A DICameraClient.h25 #include <system/camera.h>
H A DICamera.h25 #include <camera/Camera.h>
40 // connect new client with existing camera remote
49 // pass the buffered Surface to the camera service
52 // pass the buffered ISurfaceTexture to the camera service
102 // send command to camera driver
105 // tell the camera hal to store meta data or real YUV data in video buffers.
/frameworks/av/include/media/stagefright/
H A DCameraSource.h23 #include <camera/ICamera.h>
24 #include <camera/ICameraRecordingProxyListener.h>
25 #include <camera/CameraParameters.h>
40 * from the default camera.
49 * @param camera the video input frame data source. If it is NULL,
50 * we will try to connect to the camera with the given
53 * @param cameraId the id of the camera that the source will connect
54 * to if camera is NULL; otherwise ignored.
60 * @param storeMetaDataInVideoBuffers true to request the camera
62 * request the camera sourc
[all...]
H A DCameraSourceTimeLapse.h35 const sp<ICamera> &camera,
73 // Condition variable to wait on if camera is is not yet idle. Once the
74 // camera gets idle, this variable will be signalled.
77 // True if camera is in preview mode and ready for takePicture().
82 // True if stop() is waiting for camera to get idle, i.e. for the last
108 const sp<ICamera> &camera,
128 // In the video camera case calls skipFrameAndModifyTimeStamp() to modify
139 // the function sets the camera's video/preview size to it and returns true.
143 // When video camera is used for time lapse capture, returns true
/frameworks/av/media/mediaserver/
H A DAndroid.mk18 frameworks/av/services/camera/libcameraservice \
/frameworks/av/camera/
H A DCamera.cpp26 #include <camera/Camera.h>
27 #include <camera/ICameraRecordingProxyListener.h>
28 #include <camera/ICameraService.h>
35 // client singleton for camera service binder interface
40 // establish binder interface to camera service
48 binder = sm->getService(String16("media.camera"));
71 // construct a camera client from an existing camera remote
72 sp<Camera> Camera::create(const sp<ICamera>& camera) argument
75 if (camera
443 RecordingProxy(const sp<Camera>& camera) argument
[all...]
H A DICameraService.cpp25 #include <camera/ICameraService.h>
46 // get information about a camera
58 // connect to camera service
96 sp<ICamera> camera = connect(cameraClient, data.readInt32()); local
97 reply->writeStrongBinder(camera->asBinder());
H A DICameraRecordingProxy.cpp19 #include <camera/ICameraRecordingProxy.h>
20 #include <camera/ICameraRecordingProxyListener.h>
H A DICameraRecordingProxyListener.cpp19 #include <camera/ICameraRecordingProxyListener.h>
/frameworks/av/services/camera/libcameraservice/
H A DAndroid.mk40 system/media/camera/include \
H A DCameraService.h22 #include <camera/ICameraService.h>
23 #include <hardware/camera.h>
43 static char const* getServiceName() { return "media.camera"; }
110 // return our camera client
/frameworks/av/media/libstagefright/
H A DCameraSourceTimeLapse.cpp27 #include <camera/Camera.h>
28 #include <camera/CameraParameters.h>
36 const sp<ICamera> &camera,
45 CameraSourceTimeLapse(camera, proxy, cameraId,
59 const sp<ICamera>& camera,
66 : CameraSource(camera, proxy, cameraId, videoSize, videoFrameRate, surface, true),
103 // Force dataCallbackTimestamp() coming from the video camera to
272 // Tell the camera to release its recording frame and return.
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.cpp28 #include <camera/Camera.h>
29 #include <camera/CameraParameters.h>
129 sp<ICamera> camera; local
130 return new CameraSource(camera, NULL, 0, size, -1, NULL, false);
135 const sp<ICamera>& camera,
143 CameraSource *source = new CameraSource(camera, proxy, cameraId,
150 const sp<ICamera>& camera,
175 mInitCheck = init(camera, proxy, cameraId,
186 const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy,
189 if (camera
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/SceneGraph/src/com/android/testapp/
H A DSimpleAppRS.java186 Camera camera = mScene.appendNewCamera();
187 camera.setFar(200);
188 camera.setNear(0.1f);
189 camera.setFOV(60);
191 cameraTransform.addTranslate("camera", new Float3(0, 0, 10));
192 camera.setTransform(cameraTransform);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
H A DCameraTest.java38 * Junit / Instrumentation test case for the camera api
83 // Set up a looper to be used by camera.
108 // callback still uses the camera object (setHasPreviewCallback).
109 // After camera is released, RuntimeException will be thrown from
117 public void onPreviewFrame(byte [] rawData, Camera camera) { argument
143 public void onPictureTaken(byte [] rawData, Camera camera) { argument
152 public void onPictureTaken(byte [] rawData, Camera camera) { argument
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
H A DTransformParam.java74 mData.camera = mCamera.getRSData().getAllocation();
H A DColladaParser.java114 nl = docEle.getElementsByTagName("camera");
451 private void convertCamera(Element camera) { argument
452 String name = camera.getAttribute("name");
453 String id = camera.getAttribute("id");
455 if (getString(camera, "yfov") != null) {
456 fov = getFloat(camera, "yfov");
457 } else if(getString(camera, "xfov") != null) {
458 float aspect = getFloat(camera, "aspect_ratio");
459 fov = getFloat(camera, "xfov") / aspect;
462 float near = getFloat(camera, "znea
[all...]
H A DShaderParam.java121 mData.camera = mCamera.getRSData().getAllocation();
122 mField.set_camera(0, mData.camera, true);
/frameworks/av/media/libmedia/
H A DIMediaRecorder.cpp22 #include <camera/ICamera.h>
65 status_t setCamera(const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy) argument
67 ALOGV("setCamera(%p,%p)", camera.get(), proxy.get());
70 data.writeStrongBinder(camera->asBinder());
436 sp<ICamera> camera = interface_cast<ICamera>(data.readStrongBinder()); local
439 reply->writeInt32(setCamera(camera, proxy));
/frameworks/av/include/media/
H A DIMediaRecorder.h36 virtual status_t setCamera(const sp<ICamera>& camera,
H A DMediaRecorderBase.h43 virtual status_t setCamera(const sp<ICamera>& camera,

Completed in 702 milliseconds

12