HomeSort by relevance Sort by last modified time
    Searched refs:CAMERA (Results 1 - 25 of 95) sorted by null

1 2 3 4

  /packages/apps/Gallery2/src/com/android/gallery3d/util/
BucketNames.java 24 public static final String CAMERA = "DCIM/Camera";
MediaSetUtils.java 33 + BucketNames.CAMERA);
  /developers/build/prebuilts/gradle/RuntimePermissionsBasic/Application/src/main/java/com/example/android/basicpermissions/
MainActivity.java 19 import com.example.android.basicpermissions.camera.CameraPreviewActivity;
35 * This Activity requests permissions to access the camera
36 * ({@link android.Manifest.permission#CAMERA})
37 * when the 'Show Camera Preview' button is clicked to start {@link CameraPreviewActivity} once
40 * First, the status of the Camera permission is checked using {@link
68 // Register a listener for the 'Show Camera Preview' button.
83 // Request for camera permission.
85 // Permission has been granted. Start camera preview Activity.
86 Snackbar.make(mLayout, "Camera permission was granted. Starting preview.",
92 Snackbar.make(mLayout, "Camera permission request was denied."
    [all...]
  /developers/samples/android/system/RuntimePermissionsBasic/Application/src/main/java/com/example/android/basicpermissions/
MainActivity.java 19 import com.example.android.basicpermissions.camera.CameraPreviewActivity;
35 * This Activity requests permissions to access the camera
36 * ({@link android.Manifest.permission#CAMERA})
37 * when the 'Show Camera Preview' button is clicked to start {@link CameraPreviewActivity} once
40 * First, the status of the Camera permission is checked using {@link
68 // Register a listener for the 'Show Camera Preview' button.
83 // Request for camera permission.
85 // Permission has been granted. Start camera preview Activity.
86 Snackbar.make(mLayout, "Camera permission was granted. Starting preview.",
92 Snackbar.make(mLayout, "Camera permission request was denied."
    [all...]
  /development/samples/browseable/RuntimePermissionsBasic/src/com.example.android.basicpermissions/
MainActivity.java 19 import com.example.android.basicpermissions.camera.CameraPreviewActivity;
35 * This Activity requests permissions to access the camera
36 * ({@link android.Manifest.permission#CAMERA})
37 * when the 'Show Camera Preview' button is clicked to start {@link CameraPreviewActivity} once
40 * First, the status of the Camera permission is checked using {@link
68 // Register a listener for the 'Show Camera Preview' button.
83 // Request for camera permission.
85 // Permission has been granted. Start camera preview Activity.
86 Snackbar.make(mLayout, "Camera permission was granted. Starting preview.",
92 Snackbar.make(mLayout, "Camera permission request was denied."
    [all...]
  /external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/util/
PreferenceConstants.java 47 public static final String CAMERA = "camera";
  /developers/build/prebuilts/gradle/RuntimePermissions/Application/src/main/java/com/example/android/system/runtimepermissions/
MainActivity.java 23 import com.example.android.system.runtimepermissions.camera.CameraPreviewFragment;
47 * This Activity requests permissions to access the camera ({@link android.Manifest.permission#CAMERA})
48 * when the 'Show Camera' button is clicked to display the camera preview.
78 * For example the camera cannot be opened or an empty list of contacts is returned. No special
89 * Id to identify a camera permission request.
113 * Called when the 'show camera' button is clicked.
117 Log.i(TAG, "Show camera button pressed. Checking permission.");
119 // Check if the Camera permission is already available
    [all...]
  /developers/samples/android/system/RuntimePermissions/Application/src/main/java/com/example/android/system/runtimepermissions/
MainActivity.java 23 import com.example.android.system.runtimepermissions.camera.CameraPreviewFragment;
47 * This Activity requests permissions to access the camera ({@link android.Manifest.permission#CAMERA})
48 * when the 'Show Camera' button is clicked to display the camera preview.
78 * For example the camera cannot be opened or an empty list of contacts is returned. No special
89 * Id to identify a camera permission request.
113 * Called when the 'show camera' button is clicked.
117 Log.i(TAG, "Show camera button pressed. Checking permission.");
119 // Check if the Camera permission is already available
    [all...]
  /development/samples/browseable/RuntimePermissions/src/com.example.android.system.runtimepermissions/
MainActivity.java 23 import com.example.android.system.runtimepermissions.camera.CameraPreviewFragment;
47 * This Activity requests permissions to access the camera ({@link android.Manifest.permission#CAMERA})
48 * when the 'Show Camera' button is clicked to display the camera preview.
78 * For example the camera cannot be opened or an empty list of contacts is returned. No special
89 * Id to identify a camera permission request.
113 * Called when the 'show camera' button is clicked.
117 Log.i(TAG, "Show camera button pressed. Checking permission.");
119 // Check if the Camera permission is already available
    [all...]
  /hardware/ti/omap4-aah/
omap4.mk 25 libOMX.TI.DUCATI1.VIDEO.CAMERA \
32 camera.omap4 \
  /hardware/ti/omap4xxx/
omap4.mk 25 libOMX.TI.DUCATI1.VIDEO.CAMERA \
32 camera.omap4 \
  /pdk/apps/TestingCamera2/src/com/android/testingcamera2/
CameraOps2.java 31 * A central manager of camera devices and current clients for them.
49 throw new AssertionError("Can't connect to camera manager!");
53 TLog.i("Camera count: %d", cameraIds.length);
55 TLog.i(" Camera %s", cameraId);
58 TLog.e("Unable to get camera list: %s", e);
65 * Add a listener for new camera addition events, and retrieve the list of
69 * A listener to notify on changes to camera availability
72 * if the camera manager cannot be queried
88 TLog.i("Camera %s is now available", cameraId);
93 TLog.i("Camera %s is now unavailable", cameraId)
    [all...]
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
MediaRecorderTest.java 4 import android.hardware.Camera;
70 Camera c = Robolectric.newInstanceOf(Camera.class);
175 assertThat(shadowMediaRecorder.getVideoSource(), not(equalTo(MediaRecorder.VideoSource.CAMERA)));
177 mediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
178 assertThat(shadowMediaRecorder.getVideoSource(), equalTo(MediaRecorder.VideoSource.CAMERA));
  /cts/tests/camera/src/android/hardware/multiprocess/camera/cts/
MediaRecorderCameraActivity.java 17 package android.hardware.multiprocess.camera.cts;
20 import android.camera.cts.R;
32 * Activity implementing basic access of camera using MediaRecorder API.
35 * This will log all errors to {@link android.hardware.multiprocess.camera.cts.ErrorLoggingService}.
84 " camera exception during connection: " + e);
122 mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
132 TAG + " camera connected");
135 " camera exception during connection: " + e);
  /frameworks/base/core/java/com/android/internal/os/
BatterySipper.java 91 CAMERA
  /hardware/ti/omap4-aah/domx/omx_proxy_component/
Android.mk 34 # dump of NV12 buffers from Decoder/Camera
72 # libOMX.TI.DUCATI1.VIDEO.CAMERA
100 LOCAL_MODULE:= libOMX.TI.DUCATI1.VIDEO.CAMERA
116 $(HARDWARE_TI_OMAP4_BASE)/camera/inc \
151 $(HARDWARE_TI_OMAP4_BASE)/camera/inc \
  /hardware/ti/omap4xxx/domx/omx_proxy_component/
Android.mk 64 # libOMX.TI.DUCATI1.VIDEO.CAMERA
90 LOCAL_MODULE:= libOMX.TI.DUCATI1.VIDEO.CAMERA
106 $(HARDWARE_TI_OMAP4_BASE)/camera/inc \
142 $(HARDWARE_TI_OMAP4_BASE)/camera/inc \
  /packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
MmsVideoRecorder.java 19 import android.hardware.Camera;
45 public MmsVideoRecorder(final Camera camera, final int cameraIndex, final int orientation,
73 setCamera(camera);
76 setVideoSource(MediaRecorder.VideoSource.CAMERA);
  /external/libgdx/gdx/src/com/badlogic/gdx/
Input.java 90 public static final int CAMERA = 27;
306 case CAMERA:
307 return "Camera";
  /packages/apps/Camera2/src/com/android/camera/
PermissionsActivity.java 1 package com.android.camera;
18 import com.android.camera.app.CameraServicesImpl;
19 import com.android.camera.debug.Log;
20 import com.android.camera.settings.Keys;
21 import com.android.camera.settings.SettingsManager;
22 import com.android.camera.util.QuickActivity;
73 // 1. from secure lock screen, user starts secure camera
100 if (checkSelfPermission(Manifest.permission.CAMERA)
149 permissionsToRequest[permissionsRequestIndex] = Manifest.permission.CAMERA;
  /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...]
  /developers/build/prebuilts/gradle/HdrViewfinder/Application/src/main/java/com/example/android/hdrviewfinder/
HdrViewfinderActivity.java 57 * A small demo of advanced camera functionality with the Android camera2 API.
59 * <p>This demo implements a real-time high-dynamic-range camera viewfinder,
77 * necessary YUV->RGB conversion. The camera subsystem outputs YUV images naturally, while the GPU
83 * <p>Data is passed between the subsystems (camera, RenderScript, and display) using the
97 * View for the camera preview.
186 // Wait until camera is closed to ensure the next application can open it
263 * Return the current state of the camera permissions.
266 int permissionState = ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA);
268 // Check if the Camera permission is already available.
270 // Camera permission has not been granted
    [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/HdrViewfinder/Application/src/main/java/com/example/android/hdrviewfinder/
HdrViewfinderActivity.java 57 * A small demo of advanced camera functionality with the Android camera2 API.
59 * <p>This demo implements a real-time high-dynamic-range camera viewfinder,
77 * necessary YUV->RGB conversion. The camera subsystem outputs YUV images naturally, while the GPU
83 * <p>Data is passed between the subsystems (camera, RenderScript, and display) using the
97 * View for the camera preview.
186 // Wait until camera is closed to ensure the next application can open it
263 * Return the current state of the camera permissions.
266 int permissionState = ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA);
268 // Check if the Camera permission is already available.
270 // Camera permission has not been granted
    [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...]

Completed in 562 milliseconds

1 2 3 4