/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...] |
/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...] |
/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/av/camera/ |
Camera.cpp | 57 c->mCamera = camera; 83 sp <ICamera> c = mCamera; 90 sp <ICamera> c = mCamera; 97 sp <ICamera> c = mCamera; 106 sp <ICamera> c = mCamera; 116 sp <ICamera> c = mCamera; 125 sp <ICamera> c = mCamera; 134 sp <ICamera> c = mCamera; 143 sp <ICamera> c = mCamera; 156 sp <ICamera> c = mCamera; [all...] |
/packages/apps/Camera2/src/com/android/camera/ |
AndroidCameraManagerImpl.java | 88 private android.hardware.Camera mCamera; 105 mCamera.startFaceDetection(); 109 mCamera.stopFaceDetection(); 113 mCamera.setFaceDetectionListener(listener); 118 mCamera.setPreviewTexture((SurfaceTexture) surfaceTexture); 126 mCamera.enableShutterSound(enable); 144 mCamera.takePicture(shutter, raw, postView, jpeg); 192 mCamera = android.hardware.Camera.open(msg.arg1); 193 if (mCamera != null) { 198 mParamsToSet = mCamera.getParameters() [all...] |
/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 | 106 Camera mCamera; 122 if (mCamera != null) { 123 mCamera.release(); 124 mCamera = null; 145 mCamera = Camera.open(cameraId); 146 mCamera.setErrorCallback(mErrorCallback); 162 assertNotNull("Fail to open camera.", mCamera); 163 mCamera.setPreviewDisplay(getActivity().getSurfaceView().getHolder()); 177 mCamera.release(); 178 mCamera = null [all...] |
CameraGLTest.java | 85 Camera mCamera; 111 if (mCamera != null) { 139 mCamera = Camera.open(cameraId); 159 mCamera.release(); 167 mCamera = null; 180 mCamera.stopPreview(); 214 mCamera.stopPreview(); 328 if (mCamera != null) { 346 mCamera.setOneShotPreviewCallback(mPreviewCallback); 347 mCamera.startPreview() [all...] |
/developers/build/prebuilts/gradle/MediaRecorder/MediaRecorderSample/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/MediaRecorderSample/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();
|
/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...] |
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/ |
ImageReaderTest.java | 69 private CameraDevice mCamera; 95 if (mCamera != null) { 96 mCamera.close(); 97 mCamera = null; 154 Size[] availableSizes = getSupportedSizeForFormat(format, mCamera.getId(), mCameraManager); 224 mCamera.configureOutputs(outputSurfaces); 229 mCamera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); 245 mCamera.capture(request, null, null); 247 mCamera.setRepeatingRequest(request, null, null); 272 mCamera.configureOutputs(/*outputs*/ null) [all...] |
/external/chromium_org/media/base/android/java/src/org/chromium/media/ |
VideoCapture.java | 59 private Camera mCamera; 102 mCamera = Camera.open(mId); 118 Camera.Parameters parameters = mCamera.getParameters(); 195 mCamera.setParameters(parameters); 216 mCamera.setPreviewTexture(mSurfaceTexture); 222 mCamera.addCallbackBuffer(buffer); 271 if (mCamera == null) { 285 mCamera.setPreviewCallbackWithBuffer(this); 286 mCamera.startPreview(); 292 if (mCamera == null) [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;
|
/frameworks/av/media/libstagefright/ |
CameraSource.cpp | 165 mCamera(0), 196 mCamera = Camera::connect(cameraId, clientName, clientUid); 197 if (mCamera == 0) return -EBUSY; 201 // to the remote Camera owned by the application. Here mCamera is a 203 // mCamera here. 204 mCamera = Camera::create(camera); 205 if (mCamera == 0) return -EBUSY; 213 mCamera->lock(); 360 if (OK != mCamera->setParameters(s)) { 362 " Someone else is using camera %p?", mCamera.get()) [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/video/ |
CameraVideoActivity.java | 79 private Camera mCamera; 147 mCamera.unlock(); 148 mMediaRecorder.setCamera(mCamera); 277 mCamera.lock(); // check here, lock camera for later use 301 if (mCamera != null) { 501 mCamera.new Size(176, 144), 502 mCamera.new Size(352, 288), 503 mCamera.new Size(720, 480), 504 mCamera.new Size(1280, 720), 505 mCamera.new Size(1920, 1080 [all...] |