Home
last modified time | relevance | path

Searched refs:mCameraId (Results 1 – 25 of 27) sorted by relevance

12

/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/camera2/
DCameraPreviewManager.java56 private final String mCameraId; field in CameraPreviewManager
84 mCameraId = cameraId; in CameraPreviewManager()
99 Log.d(TAG, "Opening camera " + mCameraId); in openCamera()
100 mCameraManager.openCamera(mCameraId, mCameraDeviceStateListener, null); in openCamera()
102 Log.e(TAG, "Failed to open camera " + mCameraId + ". Got:", e); in openCamera()
113 Log.d(TAG, "Closed camera " + mCameraId); in closeCamera()
127 mVideoFilePath = String.format("%s_id_%s.mp4", filePrefix, mCameraId); in startRecordingSession()
129 "Video recording path for camera %s set to %s", mCameraId, mVideoFilePath)); in startRecordingSession()
145 Log.e(TAG, "Unable to prepare media recorder with camera " + mCameraId, e); in setupMediaRecorder()
151 Log.d(TAG, "Attempting to stop current recording session of camera " + mCameraId); in stopSession()
[all …]
DCameraSystemActivity.java52 private String mCameraId; field in CameraSystemActivity
95 mCameraId = cameraIds[0]; in openCamera()
96 Log.i(TAG, "Opening camera " + mCameraId); in openCamera()
97 mCameraManager.openCamera(mCameraId, mCameraStateListener, mHandler); in openCamera()
/packages/apps/Camera2/src/com/android/camera/device/
DCameraId.java27 private final String mCameraId; field in CameraId
61 mCameraId = cameraId; in CameraId()
69 return mCameraId; in getValue()
80 + " supported on legacy camera API's: " + mCameraId); in getLegacyValue()
107 return mCameraId.equals(otherCameraId.mCameraId); in equals()
112 return mCameraId.hashCode(); in hashCode()
118 "Api2='" + mCameraId + "\',Api1:"+mLegacyCameraId+"}"; in toString()
DCameraDeviceKey.java46 private final CameraId mCameraId; field in CameraDeviceKey
59 return mCameraId; in getCameraId()
67 mCameraId = cameraId; in CameraDeviceKey()
74 ", mCameraId: " + mCameraId + "}"; in toString()
91 if (!mCameraId.equals(other.mCameraId)) { in equals()
100 return Objects.hash(mApiType, mCameraId); in hashCode()
DLegacyCameraActions.java86 private final int mCameraId; field in LegacyCameraActions.OpenCameraRunnable
92 mCameraId = cameraId; in OpenCameraRunnable()
100 mLogger.i("Camera.open(id: " + mCameraId + ")"); in run()
101 Camera device = Camera.open(mCameraId); in run()
115 private final int mCameraId; field in LegacyCameraActions.CloseCameraRunnable
125 mCameraId = cameraId; in CloseCameraRunnable()
132 mLogger.i("Camera.release(id: " + mCameraId + ")"); in run()
DCamera2Actions.java88 private final String mCameraId; field in Camera2Actions.OpenCameraRunnable
97 mCameraId = cameraId; in OpenCameraRunnable()
106 mLogger.i("mCameraManager.openCamera(id: " + mCameraId + ")"); in run()
107 mCameraManager.openCamera(mCameraId, new OpenCameraStateCallback(mOpenListener, in run()
110 mLogger.e("There was a problem opening camera " + mCameraId, e); in run()
DPortabilityCameraActions.java122 private final int mCameraId; field in PortabilityCameraActions.OpenCameraRunnable
131 mCameraId = cameraId; in OpenCameraRunnable()
140 mLogger.i("mCameraAgent.openCamera(id: " + mCameraId + ")"); in run()
141 mCameraAgent.openCamera(mHandler, mCameraId, in run()
/packages/modules/ImsMedia/framework/src/android/telephony/imsmedia/
DVideoConfig.java267 private final int mCameraId; field in VideoConfig
290 mCameraId = in.readInt(); in VideoConfig()
312 mCameraId = builder.mCameraId; in VideoConfig()
364 return this.mCameraId; in getCameraId()
419 + ", mCameraId=" + mCameraId in toString()
434 mPacketizationMode, mCameraId, mCameraZoom, mResolutionWidth, mResolutionHeight, in hashCode()
463 && mCameraId == s.mCameraId in equals()
494 dest.writeInt(mCameraId); in writeToParcel()
530 private int mCameraId; field in VideoConfig.Builder
638 this.mCameraId = cameraId; in setCameraId()
/packages/services/Car/service/src/com/android/car/evs/
DCarEvsServiceUtils.java93 private String mCameraId; field in CarEvsServiceUtils.Parameters
97 mCameraId = cameraId; in Parameters()
110 String getCameraId() { return mCameraId; } in getCameraId()
111 void setCameraId(String cameraId) { mCameraId = cameraId; } in setCameraId()
117 ", cameraId=" + mCameraId + ", activityName=" + mActivityName; in toString()
DStateMachine.java128 private final String mCameraId; field in StateMachine
321 mCameraId = cameraId; in StateMachine()
369 mCameraIdOverride = mCameraId; in setCameraId()
383 return mCameraIdOverride != null ? mCameraIdOverride : mCameraId; in getCameraId()
557 writer.printf("Camera Id = %s.\n", mCameraId); in dump()
1111 String cameraId = mCameraIdOverride != null ? mCameraIdOverride : mCameraId; in startService()
/packages/apps/LegacyCamera/src/com/android/camera/
DCameraHolder.java52 private int mCameraId = -1; // current camera id field in CameraHolder
123 if (mCameraDevice != null && mCameraId != cameraId) { in open()
126 mCameraId = -1; in open()
132 mCameraId = cameraId; in open()
191 mCameraId = -1; in releaseCamera()
DVideoCamera.java243 private int mCameraId; field in VideoCamera
360 mCameraId = CameraSettings.readPreferredCameraId(mPreferences); in onCreate()
365 mCameraId = intentCameraId; in onCreate()
368 mPreferences.setLocalId(this, mCameraId); in onCreate()
388 mCameraDevice = Util.openCamera(VideoCamera.this, mCameraId); in onCreate()
489 mCameraId, CameraHolder.instance().getCameraInfo()); in loadCameraPreferences()
718 String defaultQuality = CameraSettings.getDefaultVideoQuality(mCameraId, in readVideoPreferences()
780 mProfile = CamcorderProfile.get(mCameraId, quality); in readVideoPreferences()
840 mCameraDevice = Util.openCamera(this, mCameraId); in doOnResume()
924 int orientation = Util.getDisplayOrientation(mDisplayRotation, mCameraId); in startPreview()
[all …]
DCamera.java269 private int mCameraId; field in Camera
385 CameraInfo info = CameraHolder.instance().getCameraInfo()[mCameraId]; in initializeFirstTime()
532 CameraInfo info = CameraHolder.instance().getCameraInfo()[mCameraId]; in startFaceDetection()
1050 Util.setRotationParameter(mParameters, mCameraId, mOrientation); in capture()
1099 mCameraId = 0; in getPreferredCameraId()
1101 mCameraId = attemptedCameraId; in getPreferredCameraId()
1107 mCameraId = intentCameraId; in getPreferredCameraId()
1114 mCameraDevice = Util.openCamera(Camera.this, mCameraId);
1158 mPreferences.setLocalId(this, mCameraId); in onCreate()
1254 mCameraId, CameraHolder.instance().getCameraInfo()); in loadCameraPreferences()
[all …]
DCameraSettings.java68 private final int mCameraId; field in CameraSettings
74 mCameraId = cameraId; in CameraSettings()
458 if (CamcorderProfile.hasProfile(mCameraId, CamcorderProfile.QUALITY_1080P)) { in getSupportedVideoQuality()
461 if (CamcorderProfile.hasProfile(mCameraId, CamcorderProfile.QUALITY_720P)) { in getSupportedVideoQuality()
464 if (CamcorderProfile.hasProfile(mCameraId, CamcorderProfile.QUALITY_480P)) { in getSupportedVideoQuality()
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/video/nodes/
DIVideoSourceNode.cpp37 mCameraId = 0; in IVideoSourceNode()
61 IMLOGD3("[Start] codec[%d], mode[%d], cameraId[%d]", mCodecType, mVideoMode, mCameraId); in Start()
73 mVideoSource->SetCameraConfig(mCameraId, mCameraZoom); in Start()
146 mCameraId = pConfig->getCameraId(); in SetConfig()
171 mBitrate == pConfig->getBitrate() && mCameraId == pConfig->getCameraId() && in IsSameConfig()
199 mCameraId != pConfig->getCameraId() || mWidth != pConfig->getResolutionWidth() || in UpdateConfig()
/packages/services/DeviceAsWebcam/src/com/android/DeviceAsWebcam/
DCameraInfo.java26 private final CameraId mCameraId; field in CameraInfo
39 mCameraId = cameraId; in CameraInfo()
53 return mCameraId; in getCameraId()
DCameraController.java168 private CameraId mCameraId = null; field in CameraController
270 mCameraAvailabilityState.get(mCameraId.mainCameraId) ==
274 + mCameraId.mainCameraId);
372 mCameraId = fetchCameraIdFromUserPrefs(/*defaultCameraId*/ mBackCameraId); in CameraController()
373 mCameraInfo = getOrCreateCameraInfo(mCameraId); in CameraController()
374 mZoomRatio = mUserPrefs.fetchZoomRatio(mCameraId.toString(), /*defaultZoom*/ 1.0f); in CameraController()
790 if (mCameraId == null) { in openCameraBlocking()
799 mCameraManager.openCamera(mCameraId.mainCameraId, mCameraCallbacksExecutor, in openCameraBlocking()
802 Log.e(TAG, "openCamera failed for cameraId : " + mCameraId.mainCameraId, e); in openCameraBlocking()
1242 if (mCameraId.physicalCameraId != null) { in createCaptureSessionBlocking()
[all …]
/packages/apps/Camera2/src/com/android/camera/captureintent/state/
DStateOpeningCamera.java62 private final CameraId mCameraId; field in StateOpeningCamera
124 mCameraId = cameraId; in StateOpeningCamera()
127 mCameraSettingsScope = SettingsManager.getCameraSettingScope(mCameraId.getValue()); in StateOpeningCamera()
170 mCameraId, in registerEventHandlers()
200 mCameraId, mCameraFacing); in onEnter()
216 mCameraId, in onEnter()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestVideoProvider.java73 private String mCameraId; field in TestVideoProvider
87 mCameraId = cameraId; in onSetCamera()
91 setCameraCapabilities(mCameraId); in onSetCamera()
103 if (!TextUtils.isEmpty(mCameraId) && mPreviewSurface != null) { in onSetPreviewSurface()
104 startCamera(mCameraId); in onSetPreviewSurface()
/packages/apps/Camera2/src/com/android/camera/captureintent/resource/
DResourceOpenedCameraImpl.java37 private final CameraId mCameraId; field in ResourceOpenedCameraImpl
76 mCameraId = cameraId; in ResourceOpenedCameraImpl()
98 return mCameraId; in getCameraId()
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/video/android/
DImsMediaVideoSource.cpp39 mCameraId = 0; in ImsMediaVideoSource()
70 mCameraId = cameraId; in SetCameraConfig()
121 mCamera->GetSensorOrientation(mCameraId, &facing, &sensorOrientation); in SetDeviceOrientation()
256 if (mCameraId != -1 && (mVideoMode == kVideoModePreview || mVideoMode == kVideoModeRecording)) in Start()
260 mCamera->SetCameraConfig(mCameraId, mCameraZoom, mFramerate); in Start()
400 mCamera->GetSensorOrientation(mCameraId, &facing, &sensorOrientation); in onCameraFrame()
/packages/apps/DevCamera/src/com/android/devcamera/
DCameraInfoCache.java43 private String mCameraId; field in CameraInfoCache
65 mCameraId = id; in CameraInfoCache()
74 if (mCameraId == null) { in CameraInfoCache()
252 return mCameraId; in getCameraId()
/packages/apps/Camera2/src/com/android/camera/
DVideoModule.java122 private int mCameraId; field in VideoModule
340 mCameraId = settingsManager.getInteger(mAppController.getModuleScope(), in init()
347 requestCamera(mCameraId); in init()
442 return mAppController.getCameraProvider().getCharacteristics(mCameraId) in isCameraFrontFacing()
450 return mAppController.getCameraProvider().getCharacteristics(mCameraId) in isCameraBackFacing()
735 int quality = SettingsUtil.getVideoQuality(videoQuality, mCameraId); in readVideoPreferences()
762 if (CamcorderProfile.hasProfile(mCameraId, quality) == false) { in readVideoPreferences()
765 mProfile = CamcorderProfile.get(mCameraId, quality); in readVideoPreferences()
867 mActivity.getCameraProvider().getCharacteristics(mCameraId); in setDisplayOrientation()
1179 mActivity.getCameraProvider().getCharacteristics(mCameraId).getSensorOrientation(); in initializeRecorder()
[all …]
DPhotoModule.java130 private int mCameraId; field in PhotoModule
396 mCameraId = settingsManager.getInteger(mAppController.getModuleScope(), in init()
491 mCameraId = mPendingSwitchCameraId; in switchCamera()
493 settingsManager.set(mAppController.getModuleScope(), Keys.KEY_CAMERA_ID, mCameraId); in switchCamera() local
512 mActivity.getCameraProvider().requestCamera(mCameraId, in requestCameraOpen()
1141 Characteristics info = mActivity.getCameraProvider().getCharacteristics(mCameraId); in capture()
1488 return mAppController.getCameraProvider().getCharacteristics(mCameraId) in isCameraFrontFacing()
1728 mActivity.getCameraProvider().getCharacteristics(mCameraId); in setDisplayOrientation()
2024 int jpegQuality = CameraProfile.getJpegEncodingQualityParameter(mCameraId, in updateParametersPictureQuality()
/packages/apps/Settings/src/com/android/settings/biometrics/face/
DFaceEnrollPreviewFragment.java61 private String mCameraId; field in FaceEnrollPreviewFragment
256 mCameraId = cameraId; in setUpCameraOutputs()
277 mCameraManager.openCamera(mCameraId, mCameraStateCallback, mHandler); in openCamera()

12