/frameworks/base/media/jni/ |
H A D | android_media_MediaRecorder.cpp | 29 #include <camera/ICameraService.h> 30 #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/functional/camera/ |
H A D | CameraPairwiseTest.java | 17 package com.android.mediaframeworktest.functional.camera; 41 * Junit / Instrumentation test case for camera API pairwise testing 61 // camera setting enums
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/ |
H A D | MediaPlayerPerformance.java | 164 // callback still uses the camera object (setHasPreviewCallback). 165 // After camera is released, RuntimeException will be thrown from 173 public void onPreviewFrame(byte[] rawData, Camera camera) { argument 251 //Insert 2 seconds to make sure the camera released. 514 // Test case 8: Capture the memory usage after every 20 camera preview 526 assertTrue("camera preview memory test", memoryResult);
|
/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/av/media/libstagefright/ |
H A D | CameraSource.cpp | 30 #include <camera/Camera.h> 31 #include <camera/CameraParameters.h> 141 sp<ICamera> camera; local 142 return new CameraSource(camera, NULL, 0, clientName, -1, 148 const sp<ICamera>& camera, 158 CameraSource *source = new CameraSource(camera, proxy, cameraId, 165 const sp<ICamera>& camera, 192 mInitCheck = init(camera, proxy, cameraId, 204 const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, 207 if (camera 147 CreateFromCamera( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, const String16& clientName, uid_t clientUid, Size videoSize, int32_t frameRate, const sp<IGraphicBufferProducer>& surface, bool storeMetaDataInVideoBuffers) argument 164 CameraSource( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, const String16& clientName, uid_t clientUid, Size videoSize, int32_t frameRate, const sp<IGraphicBufferProducer>& surface, bool storeMetaDataInVideoBuffers) argument 203 isCameraAvailable( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, const String16& clientName, uid_t clientUid) argument 486 init( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, const String16& clientName, uid_t clientUid, Size videoSize, int32_t frameRate, bool storeMetaDataInVideoBuffers) argument 506 initWithCameraAccess( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, const String16& clientName, uid_t clientUid, Size videoSize, int32_t frameRate, bool storeMetaDataInVideoBuffers) argument 681 sp<Camera> camera; local [all...] |
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
H A D | LegacyCameraDevice.java | 101 * Listener for the camera device state machine. Calls the appropriate 246 * Create a new emulated camera device from a given Camera 1 API camera. 250 * and ownership of the provided camera is passed to this object. No further calls to the 251 * camera methods should be made following this constructor. 254 * @param cameraId the id of the camera. 255 * @param camera an open {@link Camera} device. 256 * @param characteristics the static camera characteristics for this camera device 259 public LegacyCameraDevice(int cameraId, Camera camera, CameraCharacteristic argument [all...] |
H A D | RequestThreadManager.java | 193 public void onError(int i, Camera camera) { 203 public void onPictureTaken(byte[] data, Camera camera) { 513 * Find a JPEG size (that is supported by the legacy camera device) which is equal to or larger 752 // the camera client, and skip any further work for this request 753 Log.e(TAG, "Exception while setting camera parameters: ", e); 848 // Update parameters to the latest that we think the camera is using 931 * @param cameraId the id of the camera to use. 932 * @param camera an open camera object. The RequestThreadManager takes ownership of this camera 937 RequestThreadManager(int cameraId, Camera camera, CameraCharacteristics characteristics, CameraDeviceState deviceState) argument [all...] |
/frameworks/base/core/java/android/hardware/camera2/impl/ |
H A D | CameraDeviceImpl.java | 264 * Call to indicate failed connection to a remote camera device. 266 * <p>This places the camera device in the error state and informs the callback. 290 Log.wtf(TAG, "Unknown failure in opening camera device: " + failure.getReason()); 386 // OK. camera service can reject stream config if it's not supported by HAL 395 throw new IllegalStateException("The camera is currently busy." + 427 // Notify current session that it's going away, before starting camera operations 790 * submitted to the camera device.</p> 804 * This method is called when the camera device has started capturing 809 public void onCaptureStarted(CameraDevice camera, argument 820 public void onCapturePartial(CameraDevice camera, argument 830 onCaptureProgressed(CameraDevice camera, CaptureRequest request, CaptureResult partialResult) argument 839 onCaptureCompleted(CameraDevice camera, CaptureRequest request, TotalCaptureResult result) argument 849 onCaptureFailed(CameraDevice camera, CaptureRequest request, CaptureFailure failure) argument 859 onCaptureSequenceCompleted(CameraDevice camera, int sequenceId, long frameNumber) argument 869 onCaptureSequenceAborted(CameraDevice camera, int sequenceId) argument 884 onUnconfigured(CameraDevice camera) argument 893 onActive(CameraDevice camera) argument 901 onBusy(CameraDevice camera) argument 910 onIdle(CameraDevice camera) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_hardware_Camera.cpp | 34 #include <camera/Camera.h> 74 JNICameraContext(JNIEnv* env, jobject weak_this, jclass clazz, const sp<Camera>& camera); 128 sp<Camera> camera; local 132 camera = context->getCamera(); 134 ALOGV("get_native_camera: context=%p, camera=%p", context, camera.get()); 135 if (camera == 0) { 141 return camera; 144 JNICameraContext::JNICameraContext(JNIEnv* env, jobject weak_this, jclass clazz, const sp<Camera>& camera) argument 148 mCamera = camera; 525 sp<Camera> camera; local 573 sp<Camera> camera; local 602 sp<Camera> camera = get_native_camera(env, thiz, NULL); local 623 sp<Camera> camera = get_native_camera(env, thiz, NULL); local 648 sp<Camera> camera = get_native_camera(env, thiz, &context); local 670 sp<Camera> camera = get_native_camera(env, thiz, NULL); local 704 sp<Camera> camera = get_native_camera(env, thiz, &context); local 750 sp<Camera> camera = get_native_camera(env, thiz, &context); local 780 sp<Camera> camera = get_native_camera(env, thiz, NULL); local 798 sp<Camera> camera = get_native_camera(env, thiz, NULL); local 812 sp<Camera> camera = get_native_camera(env, thiz, NULL); local 824 sp<Camera> camera = get_native_camera(env, thiz, NULL); local 835 sp<Camera> camera = get_native_camera(env, thiz, NULL); local 846 sp<Camera> camera = get_native_camera(env, thiz, NULL); local 862 sp<Camera> camera = get_native_camera(env, thiz, NULL); local 874 sp<Camera> camera = get_native_camera(env, thiz, NULL); local 886 sp<Camera> camera = get_native_camera(env, thiz, NULL); local 906 sp<Camera> camera = get_native_camera(env, thiz, &context); local 922 sp<Camera> camera = get_native_camera(env, thiz, NULL); local 933 sp<Camera> camera = get_native_camera(env, thiz, NULL); local [all...] |
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
H A D | AndroidCamera2AgentImpl.java | 71 * Number of camera devices. The length of {@code mCameraDevices} does not reveal this 77 * Transformation between integral camera indices and the {@link java.lang.String} indices used 104 * Updates the camera device index assignments stored in {@link mCameraDevices}, without 113 // Invalidate the indices assigned to any camera devices that are no longer present 121 // Assign fresh indices to any new camera devices 132 Log.e(TAG, "Could not get device listing from camera subsystem", ex); 242 Log.i(TAG, String.format("Opening camera index %d (id %s) with camera2 API", 441 // Send a one-time capture to trigger the camera driver to lock focus. 470 // Send a one-time capture to trigger the camera driver to resume scanning. 621 // Set a one-time capture to trigger the camera drive 984 AndroidCamera2ProxyImpl( AndroidCamera2AgentImpl agent, int cameraIndex, CameraDevice camera, CameraDeviceInfo.Characteristics characteristics, CameraCharacteristics properties) argument [all...] |
H A D | AndroidCameraAgentImpl.java | 46 * A class to implement {@link CameraAgent} of the Android camera framework. 160 // Get the first (smallest) back and first front camera id. 232 public ParametersCache(Camera camera) { argument 233 mCamera = camera; 250 throw new IllegalStateException("camera.getParameters returned null"); 258 * The handler on which the actual camera operations happen. 314 android.hardware.Camera camera, Object cb) { 316 camera.setAutoFocusMoveCallback((AutoFocusMoveCallback) cb); 332 public void onError(final int errorCode, Camera camera) { argument 369 Log.i(TAG, "Opening camera " 313 setAutoFocusMoveCallback( android.hardware.Camera camera, Object cb) argument 765 AndroidCameraProxyImpl( CameraAgent cameraAgent, int cameraId, Camera camera, CameraDeviceInfo.Characteristics characteristics, AndroidCameraCapabilities capabilities) argument 1103 getNewInstance( Handler handler, CameraProxy camera, CameraAFCallback cb) argument 1111 AFCallbackForward( Handler h, CameraProxy camera, CameraAFCallback cb) argument 1119 onAutoFocus(final boolean b, Camera camera) argument 1145 getNewInstance( Handler handler, CameraProxy camera, CameraAFMoveCallback cb) argument 1153 AFMoveCallbackForward( Handler h, CameraProxy camera, CameraAFMoveCallback cb) argument 1161 onAutoFocusMoving( final boolean moving, android.hardware.Camera camera) argument 1189 getNewInstance( Handler handler, CameraProxy camera, CameraShutterCallback cb) argument 1197 ShutterCallbackForward( Handler h, CameraProxy camera, CameraShutterCallback cb) argument 1232 getNewInstance( Handler handler, CameraProxy camera, CameraPictureCallback cb) argument 1240 PictureCallbackForward( Handler h, CameraProxy camera, CameraPictureCallback cb) argument 1248 onPictureTaken( final byte[] data, android.hardware.Camera camera) argument 1276 getNewInstance( Handler handler, CameraProxy camera, CameraPreviewDataCallback cb) argument 1284 PreviewCallbackForward( Handler h, CameraProxy camera, CameraPreviewDataCallback cb) argument 1292 onPreviewFrame( final byte[] data, android.hardware.Camera camera) argument 1317 getNewInstance( Handler handler, CameraProxy camera, CameraFaceDetectionCallback cb) argument 1325 FaceDetectionCallbackForward( Handler h, CameraProxy camera, CameraFaceDetectionCallback cb) argument 1333 onFaceDetection( final Camera.Face[] faces, Camera camera) argument [all...] |
H A D | CameraAgent.java | 32 * An interface which provides possible camera device operations. 35 * of {@link CameraAgent.CameraProxy} to control the camera. Classes 37 * other than the main thread for camera operations. Camera device callbacks 112 public void onCameraOpened(final CameraProxy camera) { argument 116 mCallback.onCameraOpened(camera); 162 public void onError(int error, CameraProxy camera); argument 170 public void onAutoFocus(boolean focused, CameraProxy camera); argument 178 public void onAutoFocusMoving(boolean moving, CameraProxy camera); argument 186 public void onShutter(CameraProxy camera); argument 194 public void onPictureTaken(byte[] data, CameraProxy camera); argument 202 onPreviewFrame(byte[] data, CameraProxy camera) argument 216 onFaceDetection(Camera.Face[] faces, CameraProxy camera) argument 239 onCameraOpened(CameraProxy camera) argument 307 closeCamera(CameraProxy camera, boolean synced) argument [all...] |
/frameworks/av/media/libmediaplayerservice/ |
H A D | StagefrightRecorder.cpp | 47 #include <camera/ICamera.h> 48 #include <camera/CameraParameters.h> 220 status_t StagefrightRecorder::setCamera(const sp<ICamera> &camera, argument 223 if (camera == 0) { 224 ALOGE("camera is NULL"); 228 ALOGE("camera proxy is NULL"); 232 mCamera = camera; 675 } else if (key == "video-param-camera-id") { 1167 /* hardware codecs must support camera source meta data mode */ 1179 ALOGV("encoder %s camera sourc [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | CameraStreamer.java | 49 * The CameraStreamer streams Frames from a camera to connected clients. 58 /** Camera Facing: Don't Care: Picks any available camera. */ 60 /** Camera Facing: Front: Use the front facing camera. */ 62 /** Camera Facing: Back: Use the rear facing camera. */ 65 /** How long the streamer should wait to acquire the camera before giving up. */ 69 * The global camera lock, that is closed when the camera is acquired by any CameraStreamer, 70 * and opened when a streamer is done using the camera. 74 /** The Camera thread that grabs frames from the camera */ 96 /** List of clients that are consuming camera frame 243 setupPreviewTexture(Camera camera) argument 403 setupPreviewTexture(Camera camera) argument 1542 onCameraOpened(CameraStreamer camera) argument 1547 onCameraClosed(CameraStreamer camera) argument [all...] |
/frameworks/base/core/java/android/hardware/ |
H A D | Camera.java | 54 * client for the Camera service, which manages the actual camera hardware. 56 * <p>To access the device camera, you must declare the 60 * manifest element to declare camera features used by your application. 61 * For example, if you use the camera and auto-focus feature, your Manifest 64 * <uses-feature android:name="android.hardware.camera" /> 65 * <uses-feature android:name="android.hardware.camera.autofocus" /></pre> 80 * {@link #setPreviewDisplay(SurfaceHolder)}. Without a surface, the camera 95 * <li><b>Important:</b> Call {@link #release()} to release the camera for 96 * use by other applications. Applications should release the camera 106 * <li>Call {@link #unlock()} to allow the media process to access the camera 710 onPreviewFrame(byte[] data, Camera camera) argument 1210 onAutoFocus(boolean success, Camera camera) argument 1317 onAutoFocusMoving(boolean start, Camera camera) argument 1371 onPictureTaken(byte[] data, Camera camera) argument 1604 onZoomChange(int zoomValue, boolean stopped, Camera camera) argument 1634 onFaceDetection(Face[] faces, Camera camera) argument 1842 onError(int error, Camera camera) argument [all...] |