/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/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/camera/ |
H A D | CameraFunctionalTest.java | 17 package com.android.mediaframeworktest.functional.camera; 47 * Junit / Instrumentation test case for the following camera APIs: 54 * -e class com.android.mediaframeworktest.functional.camera.CameraFunctionalTest
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
H A D | LegacyFaceDetectMapper.java | 50 /** Is the camera capable of face detection? */ 52 /** Is the camera is running face detection? */ 66 * @param camera a non-{@code null} camera1 device 67 * @param characteristics a non-{@code null} camera characteristics for that camera1 71 public LegacyFaceDetectMapper(Camera camera, CameraCharacteristics characteristics) { argument 72 mCamera = checkNotNull(camera, "camera must not be null"); 87 public void onFaceDetection(Camera.Face[] faces, Camera camera) { 194 * Update the {@code result} camera metadata map with the new value for the 201 * the camera wil [all...] |
H A D | LegacyFocusStateMapper.java | 58 * @param camera a non-{@code null} camera1 device 62 public LegacyFocusStateMapper(Camera camera) { argument 63 mCamera = checkNotNull(camera, "camera must not be null"); 119 public void onAutoFocusMoving(boolean start, Camera camera) { 207 public void onAutoFocus(boolean success, Camera camera) { 275 * Update the {@code result} camera metadata map with the new value for the
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
H A D | CameraTestHelper.java | 44 private static final String CAMERA_STRESS_IMAGES_PREFIX = "camera-stress-test"; 48 public void onError(int error, android.hardware.Camera camera) { argument 62 public void onPictureTaken(byte[] data, Camera camera) { 69 public void onPictureTaken(byte[] data, Camera camera) { 109 * Helper method for getting the available parameters of the default camera 145 * Helper method for setting the camera parameters 151 Log.e(TAG, "Error setting camera parameters"); 156 * Helper method for starting up the camera preview
|
/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/ex/camera2/utils/src/com/android/ex/camera2/utils/ |
H A D | Camera2RequestSettingsSet.java | 219 * @param camera The camera from which to capture. 223 * @return The request, ready to be passed to the camera framework. 228 public CaptureRequest createRequest(CameraDevice camera, int template, Surface... targets) argument 230 if (camera == null) { 234 Builder reqBuilder = camera.createCaptureRequest(template);
|
/frameworks/ex/camera2/utils/tests/src/com/android/ex/camera2/utils/ |
H A D | Camera2DeviceTester.java | 32 * Subclasses of this have an {@code mCamera} instance variable representing the first camera. 69 public synchronized void onOpened(CameraDevice camera) { argument 70 mCamera = camera; 75 public void onDisconnected(CameraDevice camera) {} argument 78 public void onError(CameraDevice camera, int error) {} argument
|
/frameworks/base/core/java/android/hardware/camera2/ |
H A D | CameraDevice.java | 33 * <p>The CameraDevice class is a representation of a single camera connected to an 39 * in order to access camera devices.</p> 41 * <p>A given camera device may provide support at one of two levels: limited or 46 * provide substantially improved capabilities over the older camera 58 * Create a request suitable for a camera preview window. Specifically, this 62 * This template is guaranteed to be supported on all camera devices. 72 * This template is guaranteed to be supported on all camera devices. 83 * This template is guaranteed to be supported on all camera devices. 95 * This template is guaranteed to be supported on all camera devices except 107 * This template is guaranteed to be supported on camera device 859 onOpened(@onNull CameraDevice camera) argument 872 onClosed(@onNull CameraDevice camera) argument 904 onDisconnected(@onNull CameraDevice camera) argument 934 onError(@onNull CameraDevice camera, @ErrorCode int error) argument [all...] |
/frameworks/base/core/java/android/hardware/camera2/impl/ |
H A D | CallbackProxies.java | 50 public void onOpened(CameraDevice camera) { argument 51 mProxy.invoke("onOpened", camera); 55 public void onDisconnected(CameraDevice camera) { argument 56 mProxy.invoke("onDisconnected", camera); 60 public void onError(CameraDevice camera, int error) { argument 61 mProxy.invoke("onError", camera, error); 65 public void onUnconfigured(CameraDevice camera) { argument 66 mProxy.invoke("onUnconfigured", camera); 70 public void onActive(CameraDevice camera) { argument 71 mProxy.invoke("onActive", camera); 75 onBusy(CameraDevice camera) argument 80 onClosed(CameraDevice camera) argument 85 onIdle(CameraDevice camera) argument 101 onCaptureStarted(CameraDevice camera, CaptureRequest request, long timestamp, long frameNumber) argument 107 onCapturePartial(CameraDevice camera, CaptureRequest request, CaptureResult result) argument 113 onCaptureProgressed(CameraDevice camera, CaptureRequest request, CaptureResult partialResult) argument 119 onCaptureCompleted(CameraDevice camera, CaptureRequest request, TotalCaptureResult result) argument 125 onCaptureFailed(CameraDevice camera, CaptureRequest request, CaptureFailure failure) argument 131 onCaptureSequenceCompleted(CameraDevice camera, int sequenceId, long frameNumber) argument 137 onCaptureSequenceAborted(CameraDevice camera, int sequenceId) argument [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 88 // Set up a looper to be used by camera. 113 // callback still uses the camera object (setHasPreviewCallback). 114 // After camera is released, RuntimeException will be thrown from 122 public void onPreviewFrame(byte [] rawData, Camera camera) { argument 148 public void onPictureTaken(byte [] rawData, Camera camera) { argument 157 public void onPictureTaken(byte [] rawData, Camera camera) { argument
|
/frameworks/base/services/core/java/com/android/server/camera/ |
H A D | CameraService.java | 16 package com.android.server.camera; 43 * CameraService is the system_server analog to the camera service running in mediaserver. 53 private static final String CAMERA_SERVICE_BINDER_NAME = "media.camera"; 55 public static final String CAMERA_SERVICE_PROXY_BINDER_NAME = "media.camera.proxy"; 57 // Event arguments to use with the camera service notifySystemEvent call: 197 Slog.i(TAG, "Could not notify camera service of user switch, retrying..."); 203 // Forward the user switch event to the native camera service running in the mediaserver 207 Slog.w(TAG, "Could not notify mediaserver, camera service not available."); 217 // Not much we can do if camera service is dead.
|
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/ |
H A D | BlockingStateCallback.java | 32 * A camera device listener that implements blocking operations on state changes. 36 * the last wait, or that will be received from the camera device in the 111 public void onOpened(CameraDevice camera) { argument 113 mProxy.onOpened(camera); 119 public void onDisconnected(CameraDevice camera) { argument 121 mProxy.onDisconnected(camera); 127 public void onError(CameraDevice camera, int error) { argument 129 mProxy.onError(camera, error); 135 public void onClosed(CameraDevice camera) { argument 137 mProxy.onClosed(camera); [all...] |
H A D | BlockingCameraManager.java | 78 * Thrown when camera device enters error state during open, or if 95 * Create a new blocking camera manager. 109 * Open the camera, blocking it until it succeeds or fails. 124 * highly unrecoverable, and all future calls to opening that camera will fail since the 128 * Id of the camera 130 * Listener to the camera. onOpened, onDisconnected, onError need not be implemented. 168 * <p>Time out after {@link #OPEN_TIME_OUT_MS} and unblock. Clean up camera if it arrives 207 public void onOpened(CameraDevice camera) { argument 209 Log.v(TAG, "onOpened: camera " + ((camera ! 229 onDisconnected(CameraDevice camera) argument 252 onError(CameraDevice camera, int error) argument 278 onClosed(CameraDevice camera) argument [all...] |
/frameworks/av/camera/ |
H A D | Camera.cpp | 27 #include <camera/Camera.h> 28 #include <camera/ICameraRecordingProxyListener.h> 29 #include <camera/ICameraService.h> 30 #include <camera/ICamera.h> 45 // construct a camera client from an existing camera remote 46 sp<Camera> Camera::create(const sp<ICamera>& camera) argument 49 if (camera == 0) { 50 ALOGE("camera remote is a NULL pointer"); 55 if (camera 80 connectLegacy(int cameraId, int halVersion, const String16& clientPackageName, int clientUid, sp<Camera>& camera) argument 371 RecordingProxy(const sp<Camera>& camera) argument [all...] |
H A D | ICameraService.cpp | 31 #include <camera/ICameraService.h> 32 #include <camera/ICameraServiceListener.h> 33 #include <camera/ICamera.h> 34 #include <camera/ICameraClient.h> 35 #include <camera/camera2/ICameraDeviceUser.h> 36 #include <camera/camera2/ICameraDeviceCallbacks.h> 37 #include <camera/CameraMetadata.h> 38 #include <camera/VendorTagDescriptor.h> 97 // get number of cameras available that support standard camera operations 115 // get information about a camera 399 sp<ICamera> camera; local 419 sp<ICameraDeviceUser> camera; local 479 sp<ICamera> camera; local [all...] |
/frameworks/av/media/libmedia/ |
H A D | mediarecorder.cpp | 35 status_t MediaRecorder::setCamera(const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy) argument 37 ALOGV("setCamera(%p,%p)", camera.get(), proxy.get()); 47 status_t ret = mMediaRecorder->setCamera(camera, proxy);
|
H A D | IMediaRecorder.cpp | 26 #include <camera/ICamera.h> 68 status_t setCamera(const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy) argument 70 ALOGV("setCamera(%p,%p)", camera.get(), proxy.get()); 73 data.writeStrongBinder(IInterface::asBinder(camera)); 450 sp<ICamera> camera = interface_cast<ICamera>(data.readStrongBinder()); local 453 reply->writeInt32(setCamera(camera, proxy));
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | MediaRecorderClient.cpp | 82 status_t MediaRecorderClient::setCamera(const sp<ICamera>& camera, argument 91 return mRecorder->setCamera(camera, proxy); 108 // Check camera permission for sources other than SURFACE
|
/frameworks/av/media/libstagefright/ |
H A D | CameraSourceTimeLapse.cpp | 29 #include <camera/Camera.h> 30 #include <camera/CameraParameters.h> 38 const sp<ICamera> &camera, 50 CameraSourceTimeLapse(camera, proxy, cameraId, 66 const sp<ICamera>& camera, 76 : CameraSource(camera, proxy, cameraId, clientName, clientUid, 116 // Force dataCallbackTimestamp() coming from the video camera to 285 // Tell the camera to release its recording frame and return. 37 CreateFromCamera( const sp<ICamera> &camera, const sp<ICameraRecordingProxy> &proxy, int32_t cameraId, const String16& clientName, uid_t clientUid, Size videoSize, int32_t videoFrameRate, const sp<IGraphicBufferProducer>& surface, int64_t timeBetweenFrameCaptureUs, bool storeMetaDataInVideoBuffers) argument 65 CameraSourceTimeLapse( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, const String16& clientName, uid_t clientUid, Size videoSize, int32_t videoFrameRate, const sp<IGraphicBufferProducer>& surface, int64_t timeBetweenFrameCaptureUs, bool storeMetaDataInVideoBuffers) argument
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
H A D | MediaRecorderStressTest.java | 136 public void onError(int error, android.hardware.Camera camera) { argument 306 Log.v(TAG, "Start camera time lapse stress:"); 311 mOutput.write("No of loop: camera " + i); 335 // http://developer.android.com/guide/topics/media/camera.html#time-lapse-video
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
H A D | Camera2Source.java | 80 Log.v(TAG, "camera available to open"); 86 Log.v(TAG, "camera unavailable to open"); 94 public void onCaptureCompleted(CameraCaptureSession camera, CaptureRequest request, argument 102 public void onCaptureFailed(CameraCaptureSession camera, CaptureRequest request, 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/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
H A D | AndroidCamera2Settings.java | 65 * the template that is provided to the camera framework at that time.</p> 67 * @param camera Device from which to draw default settings 75 * @throws IllegalArgumentException If {@code camera} or {@code activeArray} 79 public AndroidCamera2Settings(CameraDevice camera, int template, Rect activeArray, argument 81 if (camera == null) { 82 throw new NullPointerException("camera must not be null"); 88 mTemplateSettings = camera.createCaptureRequest(template);
|
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/ |
H A D | CameraPreviewActivity.java | 55 * Tests for manual verification of the CDD-required camera output formats 342 public void onPreviewFrame(byte[] data, Camera camera) { argument
|