/packages/apps/Camera/src/com/android/camera/ |
CameraErrorCallback.java | 17 package com.android.camera; 22 implements android.hardware.Camera.ErrorCallback { 25 public void onError(int error, android.hardware.Camera camera) { 26 Log.e(TAG, "Got camera error callback. error=" + error); 27 if (error == android.hardware.Camera.CAMERA_ERROR_SERVER_DIED) { 30 // new Camera object.
|
CameraHolder.java | 17 package com.android.camera; 19 import static com.android.camera.Util.Assert; 21 import android.hardware.Camera.CameraInfo; 22 import android.hardware.Camera.Parameters; 33 * The class is used to hold an {@code android.hardware.Camera} instance. 36 * in {@code android.hardware.Camera}. The difference is if {@code keep()} is 38 * android.hardware.Camera} instance for a while, so if {@code open()} is 40 * android.hardware.Camera}. 42 * <p>This is used in switching between {@code Camera} and {@code VideoCamera} 47 private android.hardware.Camera mCameraDevice [all...] |
/frameworks/base/libs/camera/ |
Camera.cpp | 19 #define LOG_TAG "Camera" 26 #include <camera/Camera.h> 27 #include <camera/ICameraRecordingProxyListener.h> 28 #include <camera/ICameraService.h> 34 // client singleton for camera service binder interface 35 Mutex Camera::mLock; 36 sp<ICameraService> Camera::mCameraService; 37 sp<Camera::DeathNotifier> Camera::mDeathNotifier [all...] |
Android.mk | 5 Camera.cpp \
|
/cts/tests/tests/permission/src/android/permission/cts/ |
CameraPermissionTest.java | 19 import android.hardware.Camera; 27 * Tests for camera-related Permissions. Currently, this means 28 * android.permission.CAMERA. 40 class ShutterCallback implements Camera.ShutterCallback { 44 class RawPictureCallback implements Camera.PictureCallback { 45 public void onPictureTaken(byte [] rawData, Camera camera) { } 48 class JpegPictureCallback implements Camera.PictureCallback { 49 public void onPictureTaken(byte [] jpegData, Camera camera) { [all...] |
/cts/tests/tests/hardware/src/android/hardware/cts/ |
Camera_SizeTest.java | 23 import android.hardware.Camera; 24 import android.hardware.Camera.Parameters; 29 @TestTargetClass(Camera.Size.class) 42 method = "Camera.Size", 46 if (Camera.getNumberOfCameras() < 1) { 50 Camera camera = Camera.open(0); local 51 Parameters parameters = camera.getParameters(); 57 camera.release() [all...] |
/external/chromium/chrome/browser/chromeos/login/ |
camera.h | 26 // All communication with camera driver is performed on a separate camera 28 class Camera : public base::RefCountedThreadSafe<Camera> { 55 Camera(Delegate* delegate, base::Thread* thread, bool mirrored); 57 // Initializes camera device on camera thread. Corresponding delegate's 59 // nothing if camera is successfully initialized already. Sets the desired 60 // width and height of the frame to receive from camera. 63 // Uninitializes the camera on camera thread. Can be called anytime, an [all...] |
camera_controller.h | 11 #include "chrome/browser/chromeos/login/camera.h" 16 class CameraController: public Camera::Delegate { 22 // Called when new frame was captured by camera. 25 // Called when camera failed to initialize or get the next frame. 38 // Initializes camera and starts video capturing. 41 // Stops video capturing and deinitializes camera. 44 // Returns the last captured frame from the camera. 47 // Camera::Delegate implementation: 61 scoped_refptr<Camera> camera_; 66 // Counts how many times camera initialization failed [all...] |
camera.cc | 5 #include "chrome/browser/chromeos/login/camera.h" 115 // Default camera device name. 117 // Default width of each frame received from the camera. 119 // Default height of each frame received from the camera. 129 // Camera, public members: 131 Camera::Camera(Delegate* delegate, base::Thread* thread, bool mirrored) 144 Camera::~Camera() { 145 DCHECK_EQ(-1, device_descriptor_) << "Don't forget to uninitialize camera." [all...] |
/frameworks/base/graphics/java/android/graphics/ |
Camera.java | 20 * A camera instance can be used to compute 3D transformations and 24 public class Camera { 26 * Creates a new camera, with empty transformations. 28 public Camera() { 33 * Saves the camera state. Each save should be balanced 103 * Sets the location of the camera. The default location is set at 106 * @param x The x location of the camera 107 * @param y The y location of the camera 108 * @param z The z location of the camera
|
/system/media/mca/filterpacks/videosrc/java/ |
CameraSource.java | 36 import android.hardware.Camera; 53 /** Camera ID to use for input. Defaults to 0. */ 57 /** Frame width to request from camera. Actual size may not match requested. */ 61 /** Frame height to request from camera. Actual size may not match requested. */ 65 /** Stream framerate to request from camera. Actual frame rate may not match requested. */ 69 /** Whether the filter should always wait for a new frame from the camera 71 * outputting the last frame it received from the camera if multiple process 72 * calls are received before the next update from the Camera. Defaults to true. 77 private Camera mCamera; 97 private Camera.Parameters mCameraParameters [all...] |
/frameworks/base/include/camera/ |
Camera.h | 22 #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 sensor is aligned with th [all...] |
/packages/experimental/CameraPreviewTest/src/com/example/android/videochatcameratest/ |
VideoChatTestActivity.java | 8 import android.hardware.Camera; 9 import android.hardware.Camera.Size; 69 for (int i = 0; i < Camera.getNumberOfCameras(); i++) { 80 Camera.CameraInfo info = 81 new Camera.CameraInfo(); 82 Camera.getCameraInfo(id, info); 87 Camera cam = Camera.open(id); 88 Camera.Parameters params = cam.getParameters(); 91 List<Camera.Size> sizes = params.getSupportedPreviewSizes() 310 Camera camera; local [all...] |
/build/target/product/ |
full.mk | 23 Camera
|
/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
Rotate3dAnimation.java | 21 import android.graphics.Camera; 35 private Camera mCamera; 65 mCamera = new Camera(); 75 final Camera camera = mCamera; local 79 camera.save(); 81 camera.translate(0.0f, 0.0f, mDepthZ * interpolatedTime); 83 camera.translate(0.0f, 0.0f, mDepthZ * (1.0f - interpolatedTime)); 85 camera.rotateY(degrees); 86 camera.getMatrix(matrix) [all...] |
/frameworks/base/media/java/android/media/ |
CameraProfile.java | 19 import android.hardware.Camera; 20 import android.hardware.Camera.CameraInfo; 28 * quality settings in the Camera application. 51 * used for the given quality level in the Camera application for 52 * the first back-facing camera on the device. If the device has no 53 * back-facing camera, this returns 0. 58 int numberOfCameras = Camera.getNumberOfCameras(); 61 Camera.getCameraInfo(i, cameraInfo); 71 * used for the given quality level in the Camera application for 72 * the specified camera [all...] |
CamcorderProfile.java | 19 import android.hardware.Camera; 20 import android.hardware.Camera.CameraInfo; 201 * Returns the camcorder profile for the first back-facing camera on the 203 * camera, this returns null. 208 int numberOfCameras = Camera.getNumberOfCameras(); 211 Camera.getCameraInfo(i, cameraInfo); 220 * Returns the camcorder profile for the given camera at the given 241 * @param cameraId the id for the camera 271 * camera at the given quality level. 275 int numberOfCameras = Camera.getNumberOfCameras() [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/analyzer/ |
CameraAnalyzerActivity.java | 16 package com.android.cts.verifier.camera.analyzer; 24 import android.hardware.Camera; 40 Camera mCamera; 59 mCamera = Camera.open(0); 60 Camera.Parameters params = mCamera.getParameters(); 81 private Camera.PictureCallback mJpegListener = new Camera.PictureCallback() { 82 public void onPictureTaken(byte[] data, Camera mCamera) { 122 throw new RuntimeException("Unable to connect camera to display: " + e);
|
/packages/apps/Camera/tests/src/com/android/camera/stress/ |
ImageCapture.java | 17 package com.android.camera.stress; 19 import com.android.camera.Camera; 20 import com.android.camera.VideoCamera; 21 import com.android.camera.stress.CameraStressTestRunner; 32 * Junit / Instrumentation test case for camera test 37 * -e class com.android.camera.stress.ImageCapture \ 38 * -w com.google.android.camera.tests/android.test.InstrumentationTestRunner 42 public class ImageCapture extends ActivityInstrumentationTestCase2 <Camera> { 55 super(Camera.class) [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
CameraTest.java | 23 import android.hardware.Camera; 24 import android.hardware.Camera.PictureCallback; 25 import android.hardware.Camera.PreviewCallback; 26 import android.hardware.Camera.ShutterCallback; 38 * Junit / Instrumentation test case for the camera api 61 Camera mCamera; 73 * Initializes the message looper so that the Camera object can 82 // Set up a looper to be used by camera. 88 mCamera = Camera.open(); 107 // callback still uses the camera object (setHasPreviewCallback) [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
TextureViewActivity.java | 23 import android.hardware.Camera; 41 private Camera mCamera; 102 mCamera = Camera.open(); 105 Camera.Size previewSize = mCamera.getParameters().getPreviewSize(); 119 Camera.CameraInfo info = new Camera.CameraInfo(); 120 for (int i = 0; i < Camera.getNumberOfCameras(); i++) { 121 Camera.getCameraInfo(i, info); 122 if (info.facing == Camera.CameraInfo.CAMERA_FACING_BACK) break; 148 // Ignored, the Camera does all the work for u [all...] |
/packages/wallpapers/Basic/src/com/android/wallpaper/walkaround/ |
WalkAroundWallpaper.java | 21 import android.hardware.Camera; 34 private Camera mCamera; 59 final Camera.Parameters params = mCamera.getParameters(); 71 mCamera = Camera.open(); 79 Log.e(LOG_TAG, "Error opening the camera", e); 131 Log.e(LOG_TAG, "Error opening the camera", e); 148 Log.e(LOG_TAG, "Error opening the camera", e); 166 final Camera.Parameters params = mCamera.getParameters(); 169 final List<Camera.Size> sizes = params.getSupportedPreviewSizes(); 173 for (Camera.Size size : sizes) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
CameraPreview.java | 22 import android.hardware.Camera; 23 import android.hardware.Camera.CameraInfo; 24 import android.hardware.Camera.Size; 48 Camera mCamera; 52 // The first rear facing camera 69 numberOfCameras = Camera.getNumberOfCameras(); 71 // Find the ID of the default camera 74 Camera.getCameraInfo(i, cameraInfo); 85 // Open the default i.e. the first rear facing camera. 86 mCamera = Camera.open() [all...] |
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/ |
CameraFragment.java | 24 import android.hardware.Camera; 25 import android.hardware.Camera.CameraInfo; 26 import android.hardware.Camera.Size; 44 Camera mCamera; 46 int mCurrentCamera; // Camera ID currently chosen 47 int mCameraCurrentlyLocked; // Camera ID that's actually acquired 49 // The first rear facing camera 56 // Create a container that will hold a SurfaceView for camera previews 60 mNumberOfCameras = Camera.getNumberOfCameras(); 62 // Find the ID of the rear-facing ("default") camera [all...] |
/development/libraries/stereocamera/ |
source.properties | 3 Pkg.Desc=Stereo Camera libraries, revision 1
|