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
60
) sorted by null
1
2
3
/frameworks/av/camera/aidl/android/hardware/
CameraInfo.aidl
20
parcelable
CameraInfo
cpp_header "camera/CameraBase.h";
/developers/build/prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/Application/src/main/java/com/example/android/basicpermissions/util/
CameraExt.kt
22
fun Camera.
CameraInfo
.calculatePreviewOrientation(rotation: Int): Int {
31
return if (facing == Camera.
CameraInfo
.CAMERA_FACING_FRONT) {
/developers/samples/android/system/RuntimePermissionsBasic/kotlinApp/Application/src/main/java/com/example/android/basicpermissions/util/
CameraExt.kt
22
fun Camera.
CameraInfo
.calculatePreviewOrientation(rotation: Int): Int {
31
return if (facing == Camera.
CameraInfo
.CAMERA_FACING_FRONT) {
/developers/build/prebuilts/gradle/RuntimePermissions/kotlinApp/app/src/main/java/com/example/android/system/runtimepermissions/extensions/
CameraExts.kt
28
fun Camera.
CameraInfo
.calculatePreviewOrientation(rotation: Int): Int {
39
Camera.
CameraInfo
.CAMERA_FACING_FRONT -> (360 - ((orientation + degrees) % 360)) % 360
40
Camera.
CameraInfo
.CAMERA_FACING_BACK -> (orientation - degrees + 360) % 360
/developers/samples/android/system/RuntimePermissions/kotlinApp/app/src/main/java/com/example/android/system/runtimepermissions/extensions/
CameraExts.kt
28
fun Camera.
CameraInfo
.calculatePreviewOrientation(rotation: Int): Int {
39
Camera.
CameraInfo
.CAMERA_FACING_FRONT -> (360 - ((orientation + degrees) % 360)) % 360
40
Camera.
CameraInfo
.CAMERA_FACING_BACK -> (orientation - degrees + 360) % 360
/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) {
CameraPreviewActivity.java
56
Camera.
CameraInfo
cameraInfo
= new Camera.
CameraInfo
();
57
Camera.getCameraInfo(CAMERA_ID,
cameraInfo
);
59
if (mCamera == null ||
cameraInfo
== null) {
72
mPreview = new CameraPreview(this, mCamera,
cameraInfo
, displayRotation);
/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
43
private Camera.
CameraInfo
mCameraInfo;
50
public CameraPreview(Context context, Camera camera, Camera.
CameraInfo
cameraInfo
,
55
if (camera == null ||
cameraInfo
== null) {
59
mCameraInfo =
cameraInfo
;
74
public static int calculatePreviewOrientation(Camera.
CameraInfo
info, int rotation) {
93
if (info.facing == Camera.
CameraInfo
.CAMERA_FACING_FRONT) {
/developers/build/prebuilts/gradle/RuntimePermissionsBasic/Application/src/main/java/com/example/android/basicpermissions/camera/
CameraPreview.java
43
private Camera.
CameraInfo
mCameraInfo;
51
Camera camera, Camera.
CameraInfo
cameraInfo
, int displayOrientation) {
55
if (camera == null ||
cameraInfo
== null) {
59
mCameraInfo =
cameraInfo
;
74
public static int calculatePreviewOrientation(Camera.
CameraInfo
info, int rotation) {
93
if (info.facing == Camera.
CameraInfo
.CAMERA_FACING_FRONT) {
CameraPreviewActivity.java
54
Camera.
CameraInfo
cameraInfo
= new Camera.
CameraInfo
();
55
Camera.getCameraInfo(CAMERA_ID,
cameraInfo
);
69
0, mCamera,
cameraInfo
, displayRotation);
/developers/samples/android/system/RuntimePermissions/Application/src/main/java/com/example/android/system/runtimepermissions/camera/
CameraPreview.java
43
private Camera.
CameraInfo
mCameraInfo;
50
public CameraPreview(Context context, Camera camera, Camera.
CameraInfo
cameraInfo
,
55
if (camera == null ||
cameraInfo
== null) {
59
mCameraInfo =
cameraInfo
;
74
public static int calculatePreviewOrientation(Camera.
CameraInfo
info, int rotation) {
93
if (info.facing == Camera.
CameraInfo
.CAMERA_FACING_FRONT) {
/developers/samples/android/system/RuntimePermissionsBasic/Application/src/main/java/com/example/android/basicpermissions/camera/
CameraPreview.java
43
private Camera.
CameraInfo
mCameraInfo;
51
Camera camera, Camera.
CameraInfo
cameraInfo
, int displayOrientation) {
55
if (camera == null ||
cameraInfo
== null) {
59
mCameraInfo =
cameraInfo
;
74
public static int calculatePreviewOrientation(Camera.
CameraInfo
info, int rotation) {
93
if (info.facing == Camera.
CameraInfo
.CAMERA_FACING_FRONT) {
CameraPreviewActivity.java
54
Camera.
CameraInfo
cameraInfo
= new Camera.
CameraInfo
();
55
Camera.getCameraInfo(CAMERA_ID,
cameraInfo
);
69
0, mCamera,
cameraInfo
, displayRotation);
/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) {
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowCameraTest.java
202
Camera.
CameraInfo
cameraQuery = new Camera.
CameraInfo
();
254
Camera.
CameraInfo
cameraQuery = new Camera.
CameraInfo
();
260
assertThat(cameraQuery.facing).isEqualTo(Camera.
CameraInfo
.CAMERA_FACING_BACK);
266
Camera.
CameraInfo
cameraQuery = new Camera.
CameraInfo
();
272
assertThat(cameraQuery.facing).isEqualTo(Camera.
CameraInfo
.CAMERA_FACING_BACK);
275
assertThat(cameraQuery.facing).isEqualTo(Camera.
CameraInfo
.CAMERA_FACING_FRONT);
294
Camera.
CameraInfo
backCamera = new Camera.CameraInfo()
[
all
...]
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/
CameraEnumerationAndroid.java
132
android.hardware.Camera.
CameraInfo
info = new android.hardware.Camera.
CameraInfo
();
141
(info.facing == android.hardware.Camera.
CameraInfo
.CAMERA_FACING_FRONT) ? "front" : "back";
149
return getNameOfDevice(android.hardware.Camera.
CameraInfo
.CAMERA_FACING_FRONT);
155
return getNameOfDevice(android.hardware.Camera.
CameraInfo
.CAMERA_FACING_BACK);
214
final android.hardware.Camera.
CameraInfo
info = new android.hardware.Camera.
CameraInfo
();
/developers/build/prebuilts/gradle/BasicMediaDecoder/Application/src/main/java/com/example/android/common/media/
CameraHelper.java
112
return getDefaultCamera(Camera.
CameraInfo
.CAMERA_FACING_BACK);
120
return getDefaultCamera(Camera.
CameraInfo
.CAMERA_FACING_FRONT);
126
* @param position Physical position of the camera i.e Camera.
CameraInfo
.CAMERA_FACING_FRONT
127
* or Camera.
CameraInfo
.CAMERA_FACING_BACK.
136
Camera.
CameraInfo
cameraInfo
= new Camera.
CameraInfo
();
138
Camera.getCameraInfo(i,
cameraInfo
);
139
if (
cameraInfo
.facing == position) {
/developers/build/prebuilts/gradle/MediaRecorder/Application/src/main/java/com/example/android/common/media/
CameraHelper.java
112
return getDefaultCamera(Camera.
CameraInfo
.CAMERA_FACING_BACK);
120
return getDefaultCamera(Camera.
CameraInfo
.CAMERA_FACING_FRONT);
126
* @param position Physical position of the camera i.e Camera.
CameraInfo
.CAMERA_FACING_FRONT
127
* or Camera.
CameraInfo
.CAMERA_FACING_BACK.
136
Camera.
CameraInfo
cameraInfo
= new Camera.
CameraInfo
();
138
Camera.getCameraInfo(i,
cameraInfo
);
139
if (
cameraInfo
.facing == position) {
/developers/build/prebuilts/gradle/RuntimePermissions/kotlinApp/app/src/main/java/com/example/android/system/runtimepermissions/camera/
CameraPreviewFragment.kt
52
val
cameraInfo
: Camera.
CameraInfo
= Camera.
CameraInfo
()
56
Camera.getCameraInfo(CAMERA_ID,
cameraInfo
)
72
preview = CameraPreview(activity, camera,
cameraInfo
, displayRotation)
/developers/samples/android/common/src/java/com/example/android/common/media/
CameraHelper.java
112
return getDefaultCamera(Camera.
CameraInfo
.CAMERA_FACING_BACK);
120
return getDefaultCamera(Camera.
CameraInfo
.CAMERA_FACING_FRONT);
126
* @param position Physical position of the camera i.e Camera.
CameraInfo
.CAMERA_FACING_FRONT
127
* or Camera.
CameraInfo
.CAMERA_FACING_BACK.
136
Camera.
CameraInfo
cameraInfo
= new Camera.
CameraInfo
();
138
Camera.getCameraInfo(i,
cameraInfo
);
139
if (
cameraInfo
.facing == position) {
/developers/samples/android/system/RuntimePermissions/kotlinApp/app/src/main/java/com/example/android/system/runtimepermissions/camera/
CameraPreviewFragment.kt
52
val
cameraInfo
: Camera.
CameraInfo
= Camera.
CameraInfo
()
56
Camera.getCameraInfo(CAMERA_ID,
cameraInfo
)
72
preview = CameraPreview(activity, camera,
cameraInfo
, displayRotation)
Completed in 854 milliseconds
1
2
3