OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:CameraInfo
(Results
1 - 25
of
108
) sorted by null
1
2
3
4
5
/frameworks/av/camera/aidl/android/hardware/
CameraInfo.aidl
20
parcelable
CameraInfo
cpp_header "camera/CameraBase.h";
/frameworks/base/core/java/android/hardware/
CameraInfo.java
27
public class
CameraInfo
implements Parcelable {
29
//
CameraInfo
.
30
public Camera.
CameraInfo
info = new Camera.
CameraInfo
();
48
public static final Parcelable.Creator<
CameraInfo
> CREATOR =
49
new Parcelable.Creator<
CameraInfo
>() {
51
public
CameraInfo
createFromParcel(Parcel in) {
52
CameraInfo
info = new
CameraInfo
();
59
public
CameraInfo
[] newArray(int size)
[
all
...]
/packages/apps/Camera2/src/com/android/camera/
CameraTestDevice.java
19
import android.hardware.Camera.
CameraInfo
;
29
public static void injectMockCamera(
CameraInfo
[] info, CameraProxy[] camera) {
DisableCameraReceiver.java
24
import android.hardware.Camera.
CameraInfo
;
64
CameraInfo
info = new
CameraInfo
();
67
if (info.facing ==
CameraInfo
.CAMERA_FACING_BACK) {
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/
MockCameraFactory.java
20
import android.hardware.Camera.
CameraInfo
;
31
private static Map<Camera,
CameraInfo
> sCameraInfos = new HashMap<Camera,
CameraInfo
>();
35
CameraInfo
cameraInfo
= new
CameraInfo
();
36
cameraInfo
.facing = facing;
37
sCameraInfos.put(camera,
cameraInfo
);
41
public static void getCameraInfo(Camera camera,
CameraInfo
outCameraInfo) {
42
CameraInfo
cameraInfo = sCameraInfos.get(camera)
[
all
...]
CameraManagerTest.java
20
import android.hardware.Camera.
CameraInfo
;
48
CameraManager.get().selectCamera(
CameraInfo
.CAMERA_FACING_BACK);
56
MockCameraFactory.createCamera(
CameraInfo
.CAMERA_FACING_FRONT)
60
CameraManager.get().selectCamera(
CameraInfo
.CAMERA_FACING_FRONT);
61
assertEquals(
CameraInfo
.CAMERA_FACING_FRONT, CameraManager.get().getCameraInfo().facing);
62
CameraManager.get().selectCamera(
CameraInfo
.CAMERA_FACING_BACK);
63
assertEquals(
CameraInfo
.CAMERA_FACING_FRONT, CameraManager.get().getCameraInfo().facing);
68
MockCameraFactory.createCamera(
CameraInfo
.CAMERA_FACING_BACK)
72
CameraManager.get().selectCamera(
CameraInfo
.CAMERA_FACING_FRONT);
73
assertEquals(
CameraInfo
.CAMERA_FACING_BACK, CameraManager.get().getCameraInfo().facing)
[
all
...]
/packages/services/Car/evs/app/
ConfigManager.h
25
struct
CameraInfo
{
70
const std::vector<
CameraInfo
>& getCameras() const { return mCameras; };
74
std::vector<
CameraInfo
> mCameras;
/frameworks/base/media/java/android/media/
CameraProfile.java
20
import android.hardware.Camera.
CameraInfo
;
59
CameraInfo
cameraInfo
= new
CameraInfo
();
61
Camera.getCameraInfo(i,
cameraInfo
);
62
if (
cameraInfo
.facing ==
CameraInfo
.CAMERA_FACING_BACK) {
CamcorderProfile.java
20
import android.hardware.Camera.
CameraInfo
;
327
CameraInfo
cameraInfo
= new
CameraInfo
();
329
Camera.getCameraInfo(i,
cameraInfo
);
330
if (
cameraInfo
.facing ==
CameraInfo
.CAMERA_FACING_BACK) {
426
CameraInfo
cameraInfo
= new
CameraInfo
();
[
all
...]
/packages/apps/Gallery2/src/com/android/camera/
DisableCameraReceiver.java
24
import android.hardware.Camera.
CameraInfo
;
63
CameraInfo
info = new
CameraInfo
();
66
if (info.facing ==
CameraInfo
.CAMERA_FACING_BACK) {
/developers/build/prebuilts/gradle/RuntimePermissionsBasic/Application/src/main/java/com/example/android/basicpermissions/camera/
CameraPreview.java
41
private Camera.
CameraInfo
mCameraInfo;
44
public CameraPreview(Context context, Camera camera, Camera.
CameraInfo
cameraInfo
,
49
if (camera == null ||
cameraInfo
== null) {
53
mCameraInfo =
cameraInfo
;
114
public static int calculatePreviewOrientation(Camera.
CameraInfo
info, int rotation) {
133
if (info.facing == Camera.
CameraInfo
.CAMERA_FACING_FRONT) {
/developers/samples/android/system/RuntimePermissionsBasic/Application/src/main/java/com/example/android/basicpermissions/camera/
CameraPreview.java
41
private Camera.
CameraInfo
mCameraInfo;
44
public CameraPreview(Context context, Camera camera, Camera.
CameraInfo
cameraInfo
,
49
if (camera == null ||
cameraInfo
== null) {
53
mCameraInfo =
cameraInfo
;
114
public static int calculatePreviewOrientation(Camera.
CameraInfo
info, int rotation) {
133
if (info.facing == Camera.
CameraInfo
.CAMERA_FACING_FRONT) {
/development/samples/browseable/RuntimePermissionsBasic/src/com.example.android.basicpermissions/camera/
CameraPreview.java
41
private Camera.
CameraInfo
mCameraInfo;
44
public CameraPreview(Context context, Camera camera, Camera.
CameraInfo
cameraInfo
,
49
if (camera == null ||
cameraInfo
== null) {
53
mCameraInfo =
cameraInfo
;
114
public static int calculatePreviewOrientation(Camera.
CameraInfo
info, int rotation) {
133
if (info.facing == Camera.
CameraInfo
.CAMERA_FACING_FRONT) {
/pdk/apps/TestingCamera/src/com/android/testingcamera/
InfoDialogFragment.java
4
import android.hardware.Camera.
CameraInfo
;
49
CameraInfo
cameraInfo
= new
CameraInfo
();
50
Camera.getCameraInfo(cameraId,
cameraInfo
);
53
b.append(
cameraInfo
.facing ==
CameraInfo
.CAMERA_FACING_FRONT ? "FRONT\n" : "BACK\n");
55
b.append(
cameraInfo
.orientation);
58
b.append(
cameraInfo
.canDisableShutterSound);
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowCamera.java
28
private static Map<Integer, Camera.
CameraInfo
> cameras = new HashMap<Integer,Camera.
CameraInfo
>();
103
public static void getCameraInfo(int cameraId, Camera.
CameraInfo
cameraInfo
) {
104
Camera.
CameraInfo
foundCam = cameras.get( cameraId );
105
cameraInfo
.facing = foundCam.facing;
106
cameraInfo
.orientation = foundCam.orientation;
142
* Add a mock {@code Camera.
CameraInfo
} object to simulate
149
public static void addCameraInfo(int id, Camera.
CameraInfo
camInfo) {
/packages/apps/Camera2/src/com/android/camera/one/v1/
LegacyOneCameraManagerImpl.java
45
private final Camera.
CameraInfo
[] mCameraInfos;
56
Camera.
CameraInfo
[] cameraInfos;
59
cameraInfos = new Camera.
CameraInfo
[numberOfCameras];
61
cameraInfos[i] = new Camera.
CameraInfo
();
73
if (cameraInfos[i].facing == Camera.
CameraInfo
.CAMERA_FACING_BACK) {
76
if (cameraInfos[i].facing == Camera.
CameraInfo
.CAMERA_FACING_FRONT) {
97
Camera.
CameraInfo
[] info) {
/packages/apps/LegacyCamera/src/com/android/camera/
CameraHolder.java
21
import android.hardware.Camera.
CameraInfo
;
54
private
CameraInfo
[] mInfo;
99
mInfo = new
CameraInfo
[mNumberOfCameras];
101
mInfo[i] = new
CameraInfo
();
103
if (mBackCameraId == -1 && mInfo[i].facing ==
CameraInfo
.CAMERA_FACING_BACK) {
106
if (mFrontCameraId == -1 && mInfo[i].facing ==
CameraInfo
.CAMERA_FACING_FRONT) {
116
public
CameraInfo
[] getCameraInfo() {
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
CameraTest.java
182
Camera.
CameraInfo
cameraQuery = new Camera.
CameraInfo
();
188
assertThat(cameraQuery.facing, equalTo(Camera.
CameraInfo
.CAMERA_FACING_BACK));
194
Camera.
CameraInfo
cameraQuery = new Camera.
CameraInfo
();
200
assertThat( cameraQuery.facing, equalTo(Camera.
CameraInfo
.CAMERA_FACING_BACK) );
203
assertThat( cameraQuery.facing, equalTo(Camera.
CameraInfo
.CAMERA_FACING_FRONT) );
208
Camera.
CameraInfo
frontCamera = new Camera.
CameraInfo
();
209
frontCamera.facing = Camera.
CameraInfo
.CAMERA_FACING_BACK
[
all
...]
/frameworks/av/camera/include/camera/
CameraBase.h
42
struct
CameraInfo
: public android::Parcelable {
92
using hardware::
CameraInfo
;
119
struct hardware::
CameraInfo
*
cameraInfo
);
/developers/build/prebuilts/gradle/RuntimePermissions/Application/src/main/java/com/example/android/system/runtimepermissions/camera/
CameraPreview.java
41
private Camera.
CameraInfo
mCameraInfo;
44
public CameraPreview(Context context, Camera camera, Camera.
CameraInfo
cameraInfo
,
49
if (camera == null ||
cameraInfo
== null) {
53
mCameraInfo =
cameraInfo
;
114
public static int calculatePreviewOrientation(Camera.
CameraInfo
info, int rotation) {
133
if (info.facing == Camera.
CameraInfo
.CAMERA_FACING_FRONT) {
/developers/samples/android/system/RuntimePermissions/Application/src/main/java/com/example/android/system/runtimepermissions/camera/
CameraPreview.java
41
private Camera.
CameraInfo
mCameraInfo;
44
public CameraPreview(Context context, Camera camera, Camera.
CameraInfo
cameraInfo
,
49
if (camera == null ||
cameraInfo
== null) {
53
mCameraInfo =
cameraInfo
;
114
public static int calculatePreviewOrientation(Camera.
CameraInfo
info, int rotation) {
133
if (info.facing == Camera.
CameraInfo
.CAMERA_FACING_FRONT) {
/development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/
CameraHelper.java
111
return getDefaultCamera(Camera.
CameraInfo
.CAMERA_FACING_BACK);
119
return getDefaultCamera(Camera.
CameraInfo
.CAMERA_FACING_FRONT);
125
* @param position Physical position of the camera i.e Camera.
CameraInfo
.CAMERA_FACING_FRONT
126
* or Camera.
CameraInfo
.CAMERA_FACING_BACK.
135
Camera.
CameraInfo
cameraInfo
= new Camera.
CameraInfo
();
137
Camera.getCameraInfo(i,
cameraInfo
);
138
if (
cameraInfo
.facing == position) {
/development/samples/browseable/BasicRenderScript/src/com.example.android.common.media/
CameraHelper.java
111
return getDefaultCamera(Camera.
CameraInfo
.CAMERA_FACING_BACK);
119
return getDefaultCamera(Camera.
CameraInfo
.CAMERA_FACING_FRONT);
125
* @param position Physical position of the camera i.e Camera.
CameraInfo
.CAMERA_FACING_FRONT
126
* or Camera.
CameraInfo
.CAMERA_FACING_BACK.
135
Camera.
CameraInfo
cameraInfo
= new Camera.
CameraInfo
();
137
Camera.getCameraInfo(i,
cameraInfo
);
138
if (
cameraInfo
.facing == position) {
/development/samples/browseable/MediaRecorder/src/com.example.android.common.media/
CameraHelper.java
111
return getDefaultCamera(Camera.
CameraInfo
.CAMERA_FACING_BACK);
119
return getDefaultCamera(Camera.
CameraInfo
.CAMERA_FACING_FRONT);
125
* @param position Physical position of the camera i.e Camera.
CameraInfo
.CAMERA_FACING_FRONT
126
* or Camera.
CameraInfo
.CAMERA_FACING_BACK.
135
Camera.
CameraInfo
cameraInfo
= new Camera.
CameraInfo
();
137
Camera.getCameraInfo(i,
cameraInfo
);
138
if (
cameraInfo
.facing == position) {
/development/samples/browseable/RuntimePermissions/src/com.example.android.system.runtimepermissions/camera/
CameraPreview.java
41
private Camera.
CameraInfo
mCameraInfo;
44
public CameraPreview(Context context, Camera camera, Camera.
CameraInfo
cameraInfo
,
49
if (camera == null ||
cameraInfo
== null) {
53
mCameraInfo =
cameraInfo
;
114
public static int calculatePreviewOrientation(Camera.
CameraInfo
info, int rotation) {
133
if (info.facing == Camera.
CameraInfo
.CAMERA_FACING_FRONT) {
Completed in 559 milliseconds
1
2
3
4
5