/development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/ |
D | CameraHelper.java | 20 import android.hardware.Camera; 49 public static Camera.Size getOptimalVideoSize(List<Camera.Size> supportedVideoSizes, in getOptimalVideoSize() 50 List<Camera.Size> previewSizes, int w, int h) { in getOptimalVideoSize() 57 List<Camera.Size> videoSizes; in getOptimalVideoSize() 63 Camera.Size optimalSize = null; in getOptimalVideoSize() 75 for (Camera.Size size : videoSizes) { in getOptimalVideoSize() 88 for (Camera.Size size : videoSizes) { in getOptimalVideoSize() 101 public static Camera getDefaultCameraInstance() { in getDefaultCameraInstance() 102 return Camera.open(); in getDefaultCameraInstance() 110 public static Camera getDefaultBackFacingCameraInstance() { in getDefaultBackFacingCameraInstance() [all …]
|
/development/samples/browseable/BasicRenderScript/src/com.example.android.common.media/ |
D | CameraHelper.java | 20 import android.hardware.Camera; 49 public static Camera.Size getOptimalVideoSize(List<Camera.Size> supportedVideoSizes, in getOptimalVideoSize() 50 List<Camera.Size> previewSizes, int w, int h) { in getOptimalVideoSize() 57 List<Camera.Size> videoSizes; in getOptimalVideoSize() 63 Camera.Size optimalSize = null; in getOptimalVideoSize() 75 for (Camera.Size size : videoSizes) { in getOptimalVideoSize() 88 for (Camera.Size size : videoSizes) { in getOptimalVideoSize() 101 public static Camera getDefaultCameraInstance() { in getDefaultCameraInstance() 102 return Camera.open(); in getDefaultCameraInstance() 110 public static Camera getDefaultBackFacingCameraInstance() { in getDefaultBackFacingCameraInstance() [all …]
|
/development/samples/browseable/MediaRecorder/src/com.example.android.common.media/ |
D | CameraHelper.java | 20 import android.hardware.Camera; 49 public static Camera.Size getOptimalVideoSize(List<Camera.Size> supportedVideoSizes, in getOptimalVideoSize() 50 List<Camera.Size> previewSizes, int w, int h) { in getOptimalVideoSize() 57 List<Camera.Size> videoSizes; in getOptimalVideoSize() 63 Camera.Size optimalSize = null; in getOptimalVideoSize() 75 for (Camera.Size size : videoSizes) { in getOptimalVideoSize() 88 for (Camera.Size size : videoSizes) { in getOptimalVideoSize() 101 public static Camera getDefaultCameraInstance() { in getDefaultCameraInstance() 102 return Camera.open(); in getDefaultCameraInstance() 110 public static Camera getDefaultBackFacingCameraInstance() { in getDefaultBackFacingCameraInstance() [all …]
|
/development/tools/repo_diff/service/repodiff/constants/ |
D | techareas.go | 7 Camera const 29 Camera: "Camera", 82 "42292e3359a7fdec2aee650671c0ca98576a00ce21fef71a31932277ecbba9a3": Camera, 94 "2490f5f20143c9ce192611bfaded68353a63d960a449bdd12e64e064bb24c089": Camera, 133 "0ee1c59eebf5fd6212e56ebb34621eb1c0d234c475b40afb364174245485fc20": Camera, 136 "6c17cc17bfd5387493de86c8b340ecfa042d4648c0c482f52e4400ca6f54a35c": Camera, 139 "cdde6fcfa79c438454043ef519046f03ad5f29813890c8edf3686bf8d3c794fd": Camera, 151 "a368d3b73c29a18cbc7a32c0d4a417a6791a029cf1cf97e3b75ab6817bfb1019": Camera, 160 "241dd2d8cf8fe95291507c7a2cc10cb3fbfc55e39b59f4326cb8f01573723a73": Camera, 166 "787d3bda5e24da8d5f2d1420341f206199016a031b00aa56858660598f45b63c": Camera,
|
/development/samples/browseable/RuntimePermissionsBasic/src/com.example.android.basicpermissions/camera/ |
D | CameraPreviewActivity.java | 22 import android.hardware.Camera; 48 private Camera mCamera; 56 Camera.CameraInfo cameraInfo = new Camera.CameraInfo(); in onCreate() 57 Camera.getCameraInfo(CAMERA_ID, cameraInfo); in onCreate() 86 private Camera getCameraInstance(int cameraId) { in getCameraInstance() 87 Camera c = null; in getCameraInstance() 89 c = Camera.open(cameraId); // attempt to get a Camera instance in getCameraInstance()
|
D | CameraPreview.java | 20 import android.hardware.Camera; 40 private Camera mCamera; 41 private Camera.CameraInfo mCameraInfo; 44 public CameraPreview(Context context, Camera camera, Camera.CameraInfo cameraInfo, in CameraPreview() 114 public static int calculatePreviewOrientation(Camera.CameraInfo info, int rotation) { in calculatePreviewOrientation() 133 if (info.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) { in calculatePreviewOrientation()
|
/development/samples/browseable/RuntimePermissions/src/com.example.android.system.runtimepermissions/camera/ |
D | CameraPreviewFragment.java | 22 import android.hardware.Camera; 52 private Camera mCamera; 64 Camera.CameraInfo cameraInfo = null; in onCreateView() 68 cameraInfo = new Camera.CameraInfo(); in onCreateView() 69 Camera.getCameraInfo(CAMERA_ID, cameraInfo); in onCreateView() 100 public static Camera getCameraInstance(int cameraId) { in getCameraInstance() 101 Camera c = null; in getCameraInstance() 103 c = Camera.open(cameraId); // attempt to get a Camera instance in getCameraInstance()
|
D | CameraPreview.java | 20 import android.hardware.Camera; 40 private Camera mCamera; 41 private Camera.CameraInfo mCameraInfo; 44 public CameraPreview(Context context, Camera camera, Camera.CameraInfo cameraInfo, in CameraPreview() 114 public static int calculatePreviewOrientation(Camera.CameraInfo info, int rotation) { in calculatePreviewOrientation() 133 if (info.facing == Camera.CameraInfo.CAMERA_FACING_FRONT) { in calculatePreviewOrientation()
|
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/ |
D | CameraFragment.java | 24 import android.hardware.Camera; 25 import android.hardware.Camera.CameraInfo; 26 import android.hardware.Camera.Size; 44 Camera mCamera; 60 mNumberOfCameras = Camera.getNumberOfCameras(); in onCreate() 65 Camera.getCameraInfo(i, cameraInfo); in onCreate() 99 mCamera = Camera.open(mCurrentCamera); in onResume() 143 mCamera = Camera.open(mCurrentCamera); in onOptionsItemSelected() 177 Camera mCamera; 193 public void setCamera(Camera camera) { in setCamera() [all …]
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | CameraPreview.java | 22 import android.hardware.Camera; 23 import android.hardware.Camera.CameraInfo; 24 import android.hardware.Camera.Size; 48 Camera mCamera; 69 numberOfCameras = Camera.getNumberOfCameras(); in onCreate() 74 Camera.getCameraInfo(i, cameraInfo); in onCreate() 86 mCamera = Camera.open(); in onResume() 139 mCamera = Camera in onOptionsItemSelected() 168 Camera mCamera; 183 public void setCamera(Camera camera) { in setCamera() [all …]
|
/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
D | Rotate3dAnimation.java | 21 import android.graphics.Camera; 35 private Camera mCamera; 65 mCamera = new Camera(); in initialize() 75 final Camera camera = mCamera; in applyTransformation()
|
/development/samples/browseable/MediaRecorder/src/com.example.android.mediarecorder/ |
D | MainActivity.java | 21 import android.hardware.Camera; 46 private Camera mCamera; 148 Camera.Parameters parameters = mCamera.getParameters(); in prepareVideoRecorder() 149 List<Camera.Size> mSupportedPreviewSizes = parameters.getSupportedPreviewSizes(); in prepareVideoRecorder() 150 List<Camera.Size> mSupportedVideoSizes = parameters.getSupportedVideoSizes(); in prepareVideoRecorder() 151 Camera.Size optimalSize = CameraHelper.getOptimalVideoSize(mSupportedVideoSizes, in prepareVideoRecorder()
|
/development/samples/devbytes/graphics/FoldingLayout/src/com/example/android/foldinglayout/ |
D | FoldingLayoutActivity.java | 27 import android.hardware.Camera; 102 private Camera mCamera; 189 mCamera = Camera.open(); 191 if (mCamera == null && Camera.getNumberOfCameras() > 1) { 192 mCamera = mCamera.open(Camera.CameraInfo.CAMERA_FACING_FRONT);
|
/development/samples/browseable/RuntimePermissionsBasic/ |
D | _index.jd | 8 …n for requesting permissions at runtime. Click the button to request the Camera permission and ope…
|