HomeSort by relevance Sort by last modified time
    Searched refs:Camera (Results 101 - 125 of 500) sorted by null

1 2 3 45 6 7 8 91011>>

  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/utils/
DefaultRenderableSorter.java 21 import com.badlogic.gdx.graphics.Camera;
29 private Camera camera; field in class:DefaultRenderableSorter
34 public void sort (final Camera camera, final Array<Renderable> renderables) {
35 this.camera = camera;
49 final float dst = (int)(1000f * camera.position.dst2(tmpV1)) - (int)(1000f * camera.position.dst2(tmpV2));
  /external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/g3d/shadows/system/
ShadowSystem.java 21 import com.badlogic.gdx.graphics.Camera;
45 * system.begin(camera, instances);
49 * Camera camera;
50 * while ((camera = system.next()) != null) {
51 * passBatches.get(i).begin(camera);
55 * camera = null;
138 /** Begin shadow system with main camera and renderable providers.
139 * @param camera
141 public <T extends RenderableProvider> void begin (Camera camera, Iterable<T> renderableProviders)
    [all...]
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
CameraSizeTest.java 4 import android.hardware.Camera;
18 private Camera.Size cameraSize;
22 cameraSize = Robolectric.newInstanceOf(Camera.class).new Size(480, 320);
  /frameworks/base/core/java/android/hardware/camera2/legacy/
LegacyFaceDetectMapper.java 20 import android.hardware.Camera;
21 import android.hardware.Camera.FaceDetectionListener;
49 private final Camera mCamera;
50 /** Is the camera capable of face detection? */
52 /** Is the camera is running face detection? */
61 private Camera.Face[] mFaces;
62 private Camera.Face[] mFacesPrev;
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)
    [all...]
LegacyMetadataMapper.java 22 import android.hardware.Camera;
23 import android.hardware.Camera.CameraInfo;
24 import android.hardware.Camera.Parameters;
53 * camera characteristics.
113 * @param info Camera info with camera facing direction and angle of orientation
115 * @return static camera characteristics for a camera device
119 public static CameraCharacteristics createCharacteristics(Camera.Parameters parameters,
135 * @param parameters A string parseable by {@link Camera.Parameters#unflatten
    [all...]
LegacyResultMapper.java 20 import android.hardware.Camera;
21 import android.hardware.Camera.Parameters;
51 * Generate capture result metadata from the legacy camera request.
106 * Generate capture result metadata from the legacy camera request.
115 Camera.Parameters params = legacyRequest.parameters;
190 " returned by camera HAL, setting to disabled.");
205 " returned by camera HAL, setting to off.");
276 Camera.Size s = params.getJpegThumbnailSize();
351 Rect activeArray, ZoomData zoomData, Camera.Parameters p) {
369 private static void mapAwb(CameraMetadataNative m, Camera.Parameters p)
    [all...]
  /hardware/libhardware/modules/camera/
Camera.h 27 // Camera represents a physical camera on a device.
28 // This is constructed when the HAL module is loaded, one per physical camera.
32 // camera devices (front, back, etc) and common to the ISP.
33 class Camera {
37 Camera(int id);
38 virtual ~Camera();
40 // Common Camera Device Operations (see <hardware/camera_common.h>)
45 // Camera v3 Device Operations (see <hardware/camera3.h>)
55 // Initialize static camera characteristics for individual devic
    [all...]
  /hardware/libhardware/modules/usbcamera/
Camera.h 31 // Camera represents a physical camera on a device.
32 // This is constructed when the HAL module is loaded, one per physical camera.
36 // camera devices.
37 class Camera {
41 Camera(int id);
42 virtual ~Camera();
44 // Common Camera Device Operations (see <hardware/camera_common.h>)
49 // Camera v3 Device Operations (see <hardware/camera3.h>)
57 // Update static camera characteristics. This method could be called b
    [all...]
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
Transform3dActivity.java 23 import android.graphics.Camera;
40 private Camera mCamera;
47 mCamera = new Camera();
59 final Camera camera = mCamera; local
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
    [all...]
GetBitmapActivity.java 22 import android.hardware.Camera;
37 private Camera mCamera;
82 mCamera = Camera.open();
95 // Ignored, the Camera does all the work for us
  /frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
AndroidCameraAgentImpl.java 21 import android.hardware.Camera;
22 import android.hardware.Camera.AutoFocusCallback;
23 import android.hardware.Camera.AutoFocusMoveCallback;
24 import android.hardware.Camera.ErrorCallback;
25 import android.hardware.Camera.FaceDetectionListener;
26 import android.hardware.Camera.OnZoomChangeListener;
27 import android.hardware.Camera.Parameters;
28 import android.hardware.Camera.PictureCallback;
29 import android.hardware.Camera.PreviewCallback;
30 import android.hardware.Camera.ShutterCallback
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
CameraManager.java 25 import android.hardware.Camera;
26 import android.hardware.Camera.CameraInfo;
63 * Class which manages interactions with the camera, but does not do any UI. This class is
64 * designed to be a singleton to ensure there is one component managing the camera and releasing
66 * In order to acquire a camera, a caller must:
68 * <li>Call selectCamera to select front or back camera
70 * <li>Call openCamera to request the camera start preview
72 * Callers should call onPause and onResume to ensure that the camera is release while the activity
79 * Wrapper around the framework camera API to allow mocking different hardware scenarios while
85 Camera open(int cameraId)
    [all...]
  /cts/tests/tests/mediastress/src/android/mediastress/cts/
MediaRecorderStressTest.java 20 import android.hardware.Camera;
58 private Camera mCamera;
152 private final class CameraErrorCallback implements android.hardware.Camera.ErrorCallback {
153 public void onError(int error, android.hardware.Camera camera) {
154 assertTrue("Camera test mediaserver died", error !=
155 android.hardware.Camera.CAMERA_ERROR_SERVER_DIED);
166 //Test case for stressing the camera preview.
169 if (Camera.getNumberOfCameras() < 1) {
177 output.write("Camera start preview stress:\n")
223 Camera camera = null; local
    [all...]
  /frameworks/base/core/jni/
android_hardware_Camera.cpp 19 #define LOG_TAG "Camera-JNI"
34 #include <camera/Camera.h>
40 // Keep up to date with Camera.java
74 JNICameraContext(JNIEnv* env, jobject weak_this, jclass clazz, const sp<Camera>& camera);
84 sp<Camera> getCamera() { Mutex::Autolock _l(mLock); return mCamera; }
96 sp<Camera> mCamera; // strong reference to native object
127 sp<Camera> get_native_camera(JNIEnv *env, jobject thiz, JNICameraContext** pContext)
129 sp<Camera> camera local
546 sp<Camera> camera; local
633 sp<Camera> camera; local
662 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
683 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
708 sp<Camera> camera = get_native_camera(env, thiz, &context); local
730 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
764 sp<Camera> camera = get_native_camera(env, thiz, &context); local
810 sp<Camera> camera = get_native_camera(env, thiz, &context); local
840 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
859 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
873 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
885 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
896 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
907 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
923 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
935 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
947 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
967 sp<Camera> camera = get_native_camera(env, thiz, &context); local
983 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
994 sp<Camera> camera = get_native_camera(env, thiz, NULL); local
    [all...]
  /external/webrtc/talk/app/webrtc/java/android/org/webrtc/
VideoCapturerAndroid.java 57 // front and back camera. It also provides methods for enumerating valid device
60 // Threading notes: this class is called from C++ code, Android Camera callbacks, and possibly
62 // camera thread. The internal *OnCameraThread() methods must check |camera| for null to check if
63 // the camera has been stopped.
66 android.hardware.Camera.PreviewCallback,
72 private android.hardware.Camera camera; // Only non-null while capturing. field in class:VideoCapturerAndroid
79 private android.hardware.Camera.CameraInfo info;
99 // The camera API can output one old frame after the camera has been switched or the resolutio
    [all...]
  /developers/build/prebuilts/gradle/MediaRecorder/Application/src/main/java/com/example/android/mediarecorder/
MainActivity.java 21 import android.hardware.Camera;
40 * This activity uses the camera/camcorder as the A/V source for the {@link android.media.MediaRecorder} API.
41 * A {@link android.view.TextureView} is used as the camera preview which limits the code to API 14+. This
46 private Camera mCamera;
66 * stops recording, releases {@link android.media.MediaRecorder} and {@link android.hardware.Camera}. When not recording,
75 // stop recording and release camera
86 mCamera.lock(); // take camera access back from MediaRecorder
114 // release the camera immediately on pause event
125 // Lock camera for later use i.e taking it back from MediaRecorder.
133 // release the camera for other application
    [all...]
  /developers/samples/android/media/MediaRecorder/Application/src/main/java/com/example/android/mediarecorder/
MainActivity.java 21 import android.hardware.Camera;
40 * This activity uses the camera/camcorder as the A/V source for the {@link android.media.MediaRecorder} API.
41 * A {@link android.view.TextureView} is used as the camera preview which limits the code to API 14+. This
46 private Camera mCamera;
66 * stops recording, releases {@link android.media.MediaRecorder} and {@link android.hardware.Camera}. When not recording,
75 // stop recording and release camera
86 mCamera.lock(); // take camera access back from MediaRecorder
114 // release the camera immediately on pause event
125 // Lock camera for later use i.e taking it back from MediaRecorder.
133 // release the camera for other application
    [all...]
  /development/samples/browseable/MediaRecorder/src/com.example.android.mediarecorder/
MainActivity.java 21 import android.hardware.Camera;
40 * This activity uses the camera/camcorder as the A/V source for the {@link android.media.MediaRecorder} API.
41 * A {@link android.view.TextureView} is used as the camera preview which limits the code to API 14+. This
46 private Camera mCamera;
66 * stops recording, releases {@link android.media.MediaRecorder} and {@link android.hardware.Camera}. When not recording,
75 // stop recording and release camera
86 mCamera.lock(); // take camera access back from MediaRecorder
114 // release the camera immediately on pause event
125 // Lock camera for later use i.e taking it back from MediaRecorder.
133 // release the camera for other application
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/decals/
CameraGroupStrategy.java 22 import com.badlogic.gdx.graphics.Camera;
94 Camera camera; field in class:CameraGroupStrategy
98 public CameraGroupStrategy (final Camera camera) {
99 this(camera, new Comparator<Decal>() {
102 float dist1 = camera.position.dst(o1.position);
103 float dist2 = camera.position.dst(o2.position);
109 public CameraGroupStrategy (Camera camera, Comparator<Decal> sorter) {
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
RVCVCameraPreview.java 21 import android.hardware.Camera;
31 /** Camera preview class */
37 private Camera mCamera;
60 public void init(Camera camera, float aspectRatio, int rotation) {
61 this.mCamera = camera;
80 * Surface is created, it is OK to start the camera preview now.
83 // The Surface has been created, now tell the camera where to draw the preview.
86 // preview camera does not exist
108 if (LOCAL_LOGD) Log.d(TAG, "Error when starting camera preview: " + e.getMessage())
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/batches/
BufferedParticleBatch.java 3 import com.badlogic.gdx.graphics.Camera;
14 protected Camera camera; field in class:BufferedParticleBatch
56 public void setCamera(Camera camera){
57 this.camera = camera;
58 sorter.setCamera(camera);
67 sorter.setCamera(camera);
  /packages/apps/LegacyCamera/tests/src/com/android/camera/power/
ImageAndVideoCapture.java 17 package com.android.camera.power;
19 import com.android.camera.Camera;
20 import com.android.camera.VideoCamera;
29 * Junit / Instrumentation test case for camera power measurement
34 * -e com.android.camera.power.ImageAndVideoCapture \
35 * -w com.android.camera.tests/android.test.InstrumentationTestRunner
39 public class ImageAndVideoCapture extends ActivityInstrumentationTestCase2 <Camera> {
49 super(Camera.class);
76 // This test case will use the default camera settin
    [all...]
  /cts/tests/tests/graphics2/src/android/graphics2/cts/
TextureViewCameraActivity.java 25 import android.hardware.Camera;
42 private Camera mCamera;
63 mCamera = Camera.open();
65 mCamera = Camera.open(0);
67 // no camera, and no frame update, so just complete here.
  /external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/g3d/shadows/utils/
AABBNearFarAnalyzer.java 19 import com.badlogic.gdx.graphics.Camera;
29 * renderable in camera frustum.
32 /** Near and far initialization before computation. You should put the same values as the main camera */
71 public <T extends RenderableProvider> void analyze (BaseLight light, Camera camera, Iterable<T> renderableProviders) {
73 prepareCamera(camera);
80 if (camera.frustum.sphereInFrustum(tmpV, renderable.meshPart.radius)) {
85 computeResult(bb1, camera);
96 /** Initialize camera before computation.
97 * @param camera Camera to compute. *
    [all...]
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/camera/
CameraPairwiseTest.java 17 package com.android.mediaframeworktest.functional.camera;
19 import android.hardware.Camera;
35 * Junit / Instrumentation test case for camera API pairwise testing
55 // camera setting enums
384 Camera.Parameters params = mCameraTestHelper.getCameraParameters();
396 params.setFlashMode(Camera.Parameters.FLASH_MODE_ON);
399 params.setFlashMode(Camera.Parameters.FLASH_MODE_OFF);
402 params.setFlashMode(Camera.Parameters.FLASH_MODE_AUTO);
422 params.setWhiteBalance(Camera.Parameters.WHITE_BALANCE_DAYLIGHT);
425 params.setWhiteBalance(Camera.Parameters.WHITE_BALANCE_FLUORESCENT)
    [all...]

Completed in 1065 milliseconds

1 2 3 45 6 7 8 91011>>