/packages/wallpapers/Basic/src/com/android/wallpaper/walkaround/ |
WalkAroundWallpaper.java | 34 private Camera mCamera; 56 if (mCamera != null) { 57 if (mCamera.previewEnabled()) { 59 final Camera.Parameters params = mCamera.getParameters(); 61 mCamera.setParameters(params); 63 if (mCamera.previewEnabled()) mCamera.stopPreview(); 64 mCamera.startPreview(); 70 if (mCamera == null) { 71 mCamera = Camera.open() [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
CameraOpenTest.java | 33 private Camera mCamera; 43 mCamera.openLegacy(id, Camera.CAMERA_HAL_API_VERSION_1_0); 47 if (mCamera != null) { 48 mCamera.release();
|
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/ |
CameraFragment.java | 44 Camera mCamera; 99 mCamera = Camera.open(mCurrentCamera); 101 mPreview.setCamera(mCamera); 110 if (mCamera != null) { 112 mCamera.release(); 113 mCamera = null; 133 if (mCamera != null) { 134 mCamera.stopPreview(); 136 mCamera.release(); 137 mCamera = null [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
CameraTest.java | 24 private Camera mCamera; 29 mCamera = new Camera(); 38 mCamera.save(); 39 mCamera.restore(); 46 mCamera.translate(10.0f, 28.0f, 2008.0f); 48 mCamera.getMatrix(m2); 68 mCamera.rotateX(90.0f); 70 mCamera.getMatrix(m2); 90 mCamera.rotateY(90.0f); 92 mCamera.getMatrix(m2) [all...] |
/frameworks/av/camera/ |
Camera.cpp | 57 c->mCamera = camera; 93 clientUid, /*out*/c->mCamera); 95 if (status == OK && c->mCamera != 0) { 96 c->mCamera->asBinder()->linkToDeath(c); 109 sp <ICamera> c = mCamera; 116 sp <ICamera> c = mCamera; 123 sp <ICamera> c = mCamera; 132 sp <ICamera> c = mCamera; 142 sp <ICamera> c = mCamera; 151 sp <ICamera> c = mCamera; [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
CameraPreview.java | 48 Camera mCamera; 86 mCamera = Camera.open(); 88 mPreview.setCamera(mCamera); 97 if (mCamera != null) { 99 mCamera.release(); 100 mCamera = null; 130 if (mCamera != null) { 131 mCamera.stopPreview(); 133 mCamera.release(); 134 mCamera = null [all...] |
/frameworks/ex/camera2/utils/tests/src/com/android/ex/camera2/utils/ |
Camera2DeviceTester.java | 32 * Subclasses of this have an {@code mCamera} instance variable representing the first camera. 56 private CameraDevice mCamera; 66 return mCamera; 71 mCamera = camera; 82 protected CameraDevice mCamera; 86 mCamera = new DeviceCapturer().captureCameraDevice(); 91 mCamera.close();
|
/frameworks/av/camera/tests/ |
ProCameraTests.cpp | 358 mCamera = ProCamera::connect(CAMERA_ID); 359 ASSERT_NE((void*)NULL, mCamera.get()); 362 mCamera->setListener(mListener); 366 ASSERT_NE((void*)NULL, mCamera.get()); 367 mCamera->disconnect(); 371 sp<ProCamera> mCamera; 490 EXPECT_OK(mCamera->createDefaultRequest(CAMERA2_TEMPLATE_PREVIEW, 503 EXPECT_OK(mCamera->submitRequest(requestTmp, /*streaming*/true)); 506 EXPECT_OK(mCamera->submitRequest(requestTmp, 521 CameraMetadata staticInfo = mCamera->getCameraInfo(CAMERA_ID) [all...] |
/packages/apps/Camera/src/com/android/camera/ |
CameraManager.java | 82 private android.hardware.Camera mCamera; 101 mCamera.startFaceDetection(); 106 mCamera.stopFaceDetection(); 111 mCamera.setFaceDetectionListener(listener); 117 mCamera.setPreviewTexture((SurfaceTexture) surfaceTexture); 125 mCamera.enableShutterSound(enable); 137 mCamera.release(); 138 mCamera = null; 145 mCamera.reconnect(); 152 mCamera.unlock() [all...] |
/cts/tests/tests/hardware/src/android/hardware/cts/ |
CameraTest.java | 117 Camera mCamera; 133 if (mCamera != null) { 134 mCamera.release(); 135 mCamera = null; 156 mCamera = Camera.open(cameraId); 157 mCamera.setErrorCallback(mErrorCallback); 173 assertNotNull("Fail to open camera.", mCamera); 174 mCamera.setPreviewDisplay(getActivity().getSurfaceView().getHolder()); 188 mCamera.release(); 189 mCamera = null [all...] |
CameraGLTest.java | 84 Camera mCamera; 111 if (mCamera != null) { 139 mCamera = Camera.open(cameraId); 159 mCamera.release(); 167 mCamera = null; 182 mCamera.stopPreview(); 216 mCamera.stopPreview(); 330 if (mCamera != null) { 348 mCamera.setOneShotPreviewCallback(mPreviewCallback); 349 mCamera.startPreview() [all...] |
/developers/build/prebuilts/gradle/MediaRecorder/Application/src/main/java/com/example/android/mediarecorder/ |
MainActivity.java | 45 private Camera mCamera; 76 mCamera.lock(); // take camera access back from MediaRecorder 117 mCamera.lock(); 122 if (mCamera != null){ 124 mCamera.release(); 125 mCamera = null; 133 mCamera = CameraHelper.getDefaultCameraInstance(); 138 Camera.Parameters parameters = mCamera.getParameters(); 150 mCamera.setParameters(parameters); 154 mCamera.setPreviewTexture(mPreview.getSurfaceTexture()) [all...] |
/developers/samples/android/media/MediaRecorder/Application/src/main/java/com/example/android/mediarecorder/ |
MainActivity.java | 45 private Camera mCamera; 76 mCamera.lock(); // take camera access back from MediaRecorder 117 mCamera.lock(); 122 if (mCamera != null){ 124 mCamera.release(); 125 mCamera = null; 133 mCamera = CameraHelper.getDefaultCameraInstance(); 138 Camera.Parameters parameters = mCamera.getParameters(); 150 mCamera.setParameters(parameters); 154 mCamera.setPreviewTexture(mPreview.getSurfaceTexture()) [all...] |
/development/samples/browseable/MediaRecorder/src/com.example.android.mediarecorder/ |
MainActivity.java | 45 private Camera mCamera; 76 mCamera.lock(); // take camera access back from MediaRecorder 117 mCamera.lock(); 122 if (mCamera != null){ 124 mCamera.release(); 125 mCamera = null; 133 mCamera = CameraHelper.getDefaultCameraInstance(); 138 Camera.Parameters parameters = mCamera.getParameters(); 150 mCamera.setParameters(parameters); 154 mCamera.setPreviewTexture(mPreview.getSurfaceTexture()) [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
CameraTestHelper.java | 38 public Camera mCamera; 105 mCamera = Camera.open(CAMERA_ID); 112 mCamera = Camera.open(CAMERA_ID); 113 Parameters params = mCamera.getParameters(); 114 mCamera.release(); 122 mCamera.takePicture(shutterCallback, rawCallback, jpegCallback); 124 mCamera.stopPreview(); 125 mCamera.release(); 149 mCamera.setParameters(params); 159 mCamera.setErrorCallback(mCameraErrorCallback) [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
CameraTest.java | 67 Camera mCamera; 94 mCamera = Camera.open(CAMERA_ID); 117 mCamera.release(); 198 mCamera.setPreviewDisplay(mSurfaceHolder); 200 mCamera.startPreview(); 202 mCamera.setPreviewCallback(null); 203 mCamera.takePicture(mShutterCallback, mRawPictureCallback, mJpegPictureCallback); 214 mCamera.setPreviewDisplay(mSurfaceHolder); 216 mCamera.startPreview(); 218 mCamera.setPreviewCallback(null) [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
GetBitmapActivity.java | 37 private Camera mCamera; 82 mCamera = Camera.open(); 85 mCamera.setPreviewTexture(surface); 90 mCamera.startPreview(); 100 mCamera.stopPreview(); 101 mCamera.release();
|
TextureViewActivity.java | 41 private Camera mCamera; 102 mCamera = Camera.open(); 103 mCamera.setDisplayOrientation(getCameraOrientation()); 105 Camera.Size previewSize = mCamera.getParameters().getPreviewSize(); 110 mCamera.setPreviewTexture(surface); 115 mCamera.startPreview(); 153 mCamera.stopPreview(); 154 mCamera.release();
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
AndroidCameraAgentImpl.java | 210 private Camera mCamera; 213 mCamera = camera; 227 mParameters = mCamera.getParameters(); 242 private Camera mCamera; 267 mCamera.startFaceDetection(); 271 mCamera.stopFaceDetection(); 275 mCamera.setFaceDetectionListener(listener); 280 mCamera.setPreviewTexture((SurfaceTexture) surfaceTexture); 288 mCamera.enableShutterSound(enable); 303 mCamera.takePicture(cb.mShutter, cb.mRaw, cb.mPostView, cb.mJpeg) [all...] |
/cts/tests/tests/graphics2/src/android/graphics2/cts/ |
TextureViewCameraActivity.java | 42 private Camera mCamera; 63 mCamera = Camera.open(); 65 mCamera = Camera.open(0); 73 mCamera.setPreviewTexture(surface); 74 mCamera.startPreview(); 87 mCamera.stopPreview(); 88 mCamera.release();
|
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/ |
CameraPreviewActivity.java | 74 private Camera mCamera; 143 if (mCamera != null) { 196 mCamera = Camera.open(id); 197 Camera.Parameters p = mCamera.getParameters(); 244 if (mCamera != null) { 245 mCamera.setPreviewCallbackWithBuffer(null); 246 mCamera.stopPreview(); 247 mCamera.release(); 248 mCamera = null; 256 mCamera.setPreviewCallbackWithBuffer(null) [all...] |
/external/chromium_org/media/base/android/java/src/org/chromium/media/ |
VideoCapture.java | 61 protected Camera mCamera; 94 mCamera = Camera.open(mId); 102 mCamera.release(); 103 mCamera = null; 113 Camera.Parameters parameters = getCameraParameters(mCamera); 115 mCamera = null; 180 mCamera.setParameters(parameters); 202 mCamera.setPreviewTexture(mSurfaceTexture); 214 if (mCamera == null) { 230 mCamera.startPreview() [all...] |
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/ |
TouchHandler.java | 41 Camera mCamera; 59 mCamera = scene.appendNewCamera(); 60 mCamera.setTransform(mCameraRig); 64 return mCamera;
|
/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
Rotate3dAnimation.java | 35 private Camera mCamera; 65 mCamera = new Camera(); 75 final Camera camera = mCamera;
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
MediaRecorderStressTest.java | 55 private Camera mCamera; 186 mCamera = Camera.open(); 188 mCamera = Camera.open(0); 190 mCamera = null; 194 if (mCamera == null) { 197 mCamera.setErrorCallback(mCameraErrorCallback); 198 mCamera.setPreviewDisplay(mSurfaceHolder); 199 mCamera.startPreview(); 201 mCamera.stopPreview(); 202 mCamera.release() [all...] |