/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();
|
/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...] |
/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/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...] |
/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...] |
/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...] |
/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();
|
/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/av/include/camera/ |
Camera.h | 159 sp<Camera> mCamera;
|
CameraBase.h | 106 sp<TCamUser> mCamera;
|
/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...] |
/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...] |
/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...] |
/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...] |
/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...] |
/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...] |
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/ |
CameraSource.java | 77 private Camera mCamera; 143 mCamera = Camera.open(mCameraId); 147 mCamera.setParameters(mCameraParameters); 158 mCamera.setPreviewTexture(mSurfaceTexture); 168 mCamera.startPreview(); 222 mCamera.release(); 223 mCamera = null; 242 mCamera.setParameters(mCameraParameters); 249 if (mCamera == null) { 250 mCamera = Camera.open(mCameraId) [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...] |
/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...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediarecorder/ |
MediaRecorderTest.java | 60 Camera mCamera; 252 mCamera = Camera.open(CAMERA_ID); 253 Camera.Parameters parameters = mCamera.getParameters(); 256 mCamera.setParameters(parameters); 257 mCamera.unlock(); 258 mRecorder.setCamera(mCamera); 265 mCamera.lock(); 266 mCamera.release();
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
RenderPass.java | 42 Camera mCamera; 59 mCamera = c; 98 mRsField.camera = mCamera != null ? mCamera.getRSData().getAllocation() : null;
|
/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;
|