/frameworks/av/camera/ |
H A D | ICameraService.cpp | 25 #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 D | Camera.cpp | 26 #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...] |
/frameworks/base/media/mca/tests/src/android/camera/mediaeffects/tests/functional/ |
H A D | EffectsVideoCapture.java | 17 package android.camera.mediaeffects.tests.functional;
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | Transform3dActivity.java | 59 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/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
H A D | CameraTest.java | 38 * 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/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
H A D | CameraStressTest.java | 47 * Junit / Instrumentation test case for the camera zoom api 129 public void onError(int error, android.hardware.Camera camera) { argument 145 public void onPictureTaken(byte[] data, Camera camera) { 152 public void onPictureTaken(byte[] data, Camera camera) { 203 // Test case for stressing the camera zoom in/out feature 222 Log.v(TAG, "Device camera does not support zoom"); 226 Log.v(TAG, "Device camera does support zoom");
|
H A D | MediaRecorderStressTest.java | 135 public void onError(int error, android.hardware.Camera camera) { argument 149 //Test case for stressing the camera preview. 186 //Test case for stressing the camera preview. 237 //Stress test case for switching camera and video recorder preview. 265 Log.v(TAG, "release camera"); 414 output.write("Start camera time lapse stress:\n"); 419 output.write("No of loop: camera " + j); 442 // http://developer.android.com/guide/topics/media/camera.html#time-lapse-video
|
/frameworks/av/media/libmedia/ |
H A D | mediarecorder.cpp | 31 status_t MediaRecorder::setCamera(const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy) argument 33 ALOGV("setCamera(%p,%p)", camera.get(), proxy.get()); 43 status_t ret = mMediaRecorder->setCamera(camera, proxy);
|
H A D | IMediaRecorder.cpp | 22 #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/media/libmediaplayerservice/ |
H A D | MediaRecorderClient.cpp | 72 status_t MediaRecorderClient::setCamera(const sp<ICamera>& camera, argument 81 return mRecorder->setCamera(camera, proxy);
|
H A D | StagefrightRecorder.cpp | 42 #include <camera/ICamera.h> 43 #include <camera/CameraParameters.h> 210 status_t StagefrightRecorder::setCamera(const sp<ICamera> &camera, argument 213 if (camera == 0) { 214 ALOGE("camera is NULL"); 218 ALOGE("camera proxy is NULL"); 222 mCamera = camera; 665 } else if (key == "video-param-camera-id") { 1430 // release the camera source due to the camera' [all...] |
/frameworks/av/media/libstagefright/ |
H A D | CameraSourceTimeLapse.cpp | 27 #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 D | CameraSource.cpp | 28 #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/LivePreview/src/com/android/rs/livepreview/ |
H A D | CameraPreviewActivity.java | 55 * Tests for manual verification of the CDD-required camera output formats 336 public void onPreviewFrame(byte[] data, Camera camera) { argument
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
H A D | ColladaParser.java | 114 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...] |
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/ |
H A D | GL2CameraEye.java | 104 // No changes to default camera parameters 173 public void setCamera(Camera camera) { argument 174 mCamera = camera; 175 Camera.Size previewSize = camera.getParameters().getPreviewSize(); 295 // Can't do mipmapping with camera source 308 * Create the SurfaceTexture that will feed this textureID, and pass it to the camera 319 /* Start the camera */ 341 * Move the camera surface around based on some simple spring physics with drag
|
/frameworks/base/media/jni/ |
H A D | android_media_MediaRecorder.cpp | 22 #include <camera/ICameraService.h> 23 #include <camera/Camera.h> 152 static void android_media_MediaRecorder_setCamera(JNIEnv* env, jobject thiz, jobject camera) argument 154 // we should not pass a null camera to get_native_camera() call. 155 if (camera == NULL) { 156 jniThrowNullPointerException(env, "camera object is a NULL pointer"); 159 sp<Camera> c = get_native_camera(env, camera, NULL);
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/ |
H A D | MediaPlayerPerformance.java | 160 // callback still uses the camera object (setHasPreviewCallback). 161 // After camera is released, RuntimeException will be thrown from 169 public void onPreviewFrame(byte[] rawData, Camera camera) { argument 476 // Test case 8: Capture the memory usage after every 20 camera preview 488 assertTrue("camera preview memory test", memoryResult);
|
/frameworks/base/core/jni/ |
H A D | android_hardware_Camera.cpp | 31 #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/base/core/java/android/hardware/ |
H A D | Camera.java | 48 * client for the Camera service, which manages the actual camera hardware. 50 * <p>To access the device camera, you must declare the 54 * manifest element to declare camera features used by your application. 55 * For example, if you use the camera and auto-focus feature, your Manifest 58 * <uses-feature android:name="android.hardware.camera" /> 59 * <uses-feature android:name="android.hardware.camera.autofocus" /></pre> 74 * {@link #setPreviewDisplay(SurfaceHolder)}. Without a surface, the camera 89 * <li><b>Important:</b> Call {@link #release()} to release the camera for 90 * use by other applications. Applications should release the camera 100 * <li>Call {@link #unlock()} to allow the media process to access the camera 521 onPreviewFrame(byte[] data, Camera camera) argument 881 onAutoFocus(boolean success, Camera camera) argument 984 onAutoFocusMoving(boolean start, Camera camera) argument 1030 onPictureTaken(byte[] data, Camera camera) argument 1239 onZoomChange(int zoomValue, boolean stopped, Camera camera) argument 1266 onFaceDetection(Face[] faces, Camera camera) argument 1467 onError(int error, Camera camera) argument [all...] |