Searched defs:cameraId (Results 1 - 25 of 48) sorted by relevance

12

/frameworks/av/services/camera/libcameraservice/
H A DCameraDeviceFactory.cpp31 sp<CameraDeviceBase> CameraDeviceFactory::createDevice(int cameraId) { argument
39 int deviceVersion = svc->getDeviceVersion(cameraId, /*facing*/NULL);
46 device = new Camera2Device(cameraId);
51 device = new Camera3Device(cameraId);
55 __FUNCTION__, cameraId, deviceVersion);
/frameworks/av/camera/
H A DICameraServiceListener.cpp44 virtual void onStatusChanged(Status status, int32_t cameraId) argument
51 data.writeInt32(cameraId);
75 int32_t cameraId = data.readInt32(); local
77 onStatusChanged(status, cameraId);
H A DCameraBase.cpp94 sp<TCam> CameraBase<TCam, TCamTraits>::connect(int cameraId, argument
99 sp<TCam> c = new TCam(cameraId);
106 status = (cs.get()->*fnConnectService)(cl, cameraId, clientPackageName, clientUid,
113 ALOGW("An error occurred while connecting to camera: %d", cameraId);
132 CameraBase<TCam, TCamTraits>::CameraBase(int cameraId) : argument
134 mCameraId(cameraId)
197 status_t CameraBase<TCam, TCamTraits>::getCameraInfo(int cameraId, argument
201 return cs->getCameraInfo(cameraId, cameraInfo);
H A DCamera.cpp37 Camera::Camera(int cameraId) argument
38 : CameraBase(cameraId)
74 sp<Camera> Camera::connect(int cameraId, const String16& clientPackageName, argument
77 return CameraBaseT::connect(cameraId, clientPackageName, clientUid);
80 status_t Camera::connectLegacy(int cameraId, int halVersion, argument
86 sp<Camera> c = new Camera(cameraId);
92 status = cs.get()->connectLegacy(cl, cameraId, halVersion, clientPackageName,
100 ALOGW("An error occurred while connecting to camera: %d", cameraId);
H A DICameraService.cpp110 virtual status_t getCameraInfo(int cameraId, argument
114 data.writeInt32(cameraId);
127 virtual status_t getCameraCharacteristics(int cameraId, argument
131 data.writeInt32(cameraId);
168 virtual status_t connect(const sp<ICameraClient>& cameraClient, int cameraId, argument
176 data.writeInt32(cameraId);
190 virtual status_t connectLegacy(const sp<ICameraClient>& cameraClient, int cameraId, argument
198 data.writeInt32(cameraId);
213 virtual status_t connectPro(const sp<IProCameraCallbacks>& cameraCb, int cameraId, argument
221 data.writeInt32(cameraId);
235 connectDevice( const sp<ICameraDeviceCallbacks>& cameraCb, int cameraId, const String16& clientPackageName, int clientUid, sp<ICameraDeviceUser>& device) argument
281 getLegacyParameters(int cameraId, String16* parameters) argument
304 supportsCameraApi(int cameraId, int apiVersion) argument
377 int32_t cameraId = data.readInt32(); local
397 int32_t cameraId = data.readInt32(); local
417 int32_t cameraId = data.readInt32(); local
451 int cameraId = data.readInt32(); local
464 int cameraId = data.readInt32(); local
476 int32_t cameraId = data.readInt32(); local
[all...]
H A DIProCameraUser.cpp179 virtual status_t getCameraInfo(int cameraId, camera_metadata** info) argument
183 data.writeInt32(cameraId);
304 int cameraId = data.readInt32(); local
308 ret = getCameraInfo(cameraId, &info);
H A DProCamera.cpp38 sp<ProCamera> ProCamera::connect(int cameraId) argument
40 return CameraBaseT::connect(cameraId, String16(),
44 ProCamera::ProCamera(int cameraId) argument
45 : CameraBase(cameraId)
288 camera_metadata* ProCamera::getCameraInfo(int cameraId) { argument
289 ALOGV("%s: cameraId = %d", __FUNCTION__, cameraId);
295 status_t status = c->getCameraInfo(cameraId, &ptr);
/frameworks/base/media/java/android/media/
H A DCameraProfile.java74 * @param cameraId The id of the camera
77 public static int getJpegEncodingQualityParameter(int cameraId, int quality) { argument
82 int[] levels = sCache.get(cameraId);
84 levels = getImageEncodingQualityLevels(cameraId);
85 sCache.put(cameraId, levels);
96 private static int[] getImageEncodingQualityLevels(int cameraId) { argument
97 int nLevels = native_get_num_image_encoding_quality_levels(cameraId);
104 levels[i] = native_get_image_encoding_quality_level(cameraId, i);
112 private static native final int native_get_num_image_encoding_quality_levels(int cameraId); argument
113 private static native final int native_get_image_encoding_quality_level(int cameraId, in argument
[all...]
H A DCamcorderProfile.java299 * @param cameraId the id for the camera
324 public static CamcorderProfile get(int cameraId, int quality) { argument
334 return native_get_camcorder_profile(cameraId, quality);
393 * @param cameraId the id for the camera
396 public static boolean hasProfile(int cameraId, int quality) { argument
397 return native_has_camcorder_profile(cameraId, quality);
436 int cameraId, int quality);
438 int cameraId, int quality);
435 native_get_camcorder_profile( int cameraId, int quality) argument
437 native_has_camcorder_profile( int cameraId, int quality) argument
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DHistoryHandler.java42 String generateHistoryString(int cameraId) { argument
44 info += "_ID" + cameraId;
H A DCameraDeviceInfo.java32 * @param cameraId Which device to interrogate.
35 Characteristics getCharacteristics(int cameraId); argument
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DFrameProcessor.cpp247 int cameraId = client->getCameraId(); local
269 &new3aState.afMode, frameNumber, cameraId);
272 &new3aState.awbMode, frameNumber, cameraId);
275 &new3aState.aeState, frameNumber, cameraId);
278 &new3aState.afState, frameNumber, cameraId);
281 &new3aState.awbState, frameNumber, cameraId);
288 &new3aState.afTriggerId, frameNumber, cameraId);
291 &new3aState.aeTriggerId, frameNumber, cameraId);
298 __FUNCTION__, cameraId,
307 __FUNCTION__, cameraId,
329 get3aResult(const CameraMetadata& result, int32_t tag, T* value, int32_t frameNumber, int cameraId) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DGLThreadManager.java136 * @param cameraId the camera id for this thread.
140 public GLThreadManager(int cameraId, int facing, CameraDeviceState state) { argument
142 TAG = String.format("CameraDeviceGLThread-%d", cameraId);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
H A DCameraBinderTest.java84 for (int cameraId = 0; cameraId < mUtils.getGuessedNumCameras(); ++cameraId) {
91 "Camera service returned info for camera " + cameraId,
92 mUtils.getCameraService().getCameraInfo(cameraId, info) ==
94 assertTrue("Facing was not set for camera " + cameraId, info.info.facing != -1);
95 assertTrue("Orientation was not set for camera " + cameraId,
98 Log.v(TAG, "Camera " + cameraId + " info: facing " + info.info.facing
105 for (int cameraId = 0; cameraId < mUtil
315 onStatusChanged(int status, int cameraId) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DSecureCameraLaunchManager.java95 public void onCameraUnavailable(String cameraId) { argument
96 if (DEBUG) Log.d(TAG, "onCameraUnavailble(" + cameraId + ")");
97 mCameraAvailabilityMap.put(cameraId, false);
101 public void onCameraAvailable(String cameraId) { argument
102 if (DEBUG) Log.d(TAG, "onCameraAvailable(" + cameraId + ")");
103 mCameraAvailabilityMap.put(cameraId, true);
/frameworks/av/media/libstagefright/
H A DCameraSourceTimeLapse.cpp40 int32_t cameraId,
50 CameraSourceTimeLapse(camera, proxy, cameraId,
68 int32_t cameraId,
76 : CameraSource(camera, proxy, cameraId, clientName, clientUid,
37 CreateFromCamera( const sp<ICamera> &camera, const sp<ICameraRecordingProxy> &proxy, int32_t cameraId, const String16& clientName, uid_t clientUid, Size videoSize, int32_t videoFrameRate, const sp<IGraphicBufferProducer>& surface, int64_t timeBetweenFrameCaptureUs, bool storeMetaDataInVideoBuffers) argument
65 CameraSourceTimeLapse( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, const String16& clientName, uid_t clientUid, Size videoSize, int32_t videoFrameRate, const sp<IGraphicBufferProducer>& surface, int64_t timeBetweenFrameCaptureUs, bool storeMetaDataInVideoBuffers) argument
/frameworks/av/services/camera/libcameraservice/api_pro/
H A DProCamera2Client.cpp39 int cameraId,
45 cameraId, cameraFacing, clientPid, clientUid, servicePid)
48 ALOGI("ProCamera %d: Opened", cameraId);
315 status_t ProCamera2Client::getCameraInfo(int cameraId, argument
319 if (cameraId != mCameraId) {
36 ProCamera2Client(const sp<CameraService>& cameraService, const sp<IProCameraCallbacks>& remoteCallback, const String16& clientPackageName, int cameraId, int cameraFacing, int clientPid, uid_t clientUid, int servicePid) argument
/frameworks/av/services/camera/libcameraservice/common/
H A DCamera2ClientBase.cpp50 int cameraId,
56 cameraId, cameraFacing, clientPid, clientUid, servicePid),
58 mDeviceVersion(cameraService->getDeviceVersion(cameraId))
60 ALOGI("Camera %d: Opened. Client: %s (PID %d, UID %d)", cameraId,
64 mDevice = CameraDeviceFactory::createDevice(cameraId);
46 Camera2ClientBase( const sp<CameraService>& cameraService, const sp<TCamCallbacks>& remoteCallback, const String16& clientPackageName, int cameraId, int cameraFacing, int clientPid, uid_t clientUid, int servicePid) argument
/frameworks/base/core/java/android/hardware/camera2/
H A DCameraManager.java144 * @param cameraId The id of the camera device to query
147 * @throws IllegalArgumentException if the cameraId does not match any
157 public CameraCharacteristics getCameraCharacteristics(String cameraId) argument
162 if (!getOrCreateDeviceIdListLocked().contains(cameraId)) {
164 " currently connected camera device", cameraId));
167 int id = Integer.valueOf(cameraId);
180 if (!supportsCamera2ApiLocked(cameraId)) {
214 * @param cameraId The unique identifier of the camera device to open
219 * or too many camera devices are already open, or the cameraId does not match
230 private CameraDevice openCameraDeviceUserAsync(String cameraId, argument
366 openCamera(String cameraId, final CameraDevice.StateCallback callback, Handler handler) argument
410 onCameraAvailable(String cameraId) argument
425 onCameraUnavailable(String cameraId) argument
501 supportsCamera2ApiLocked(String cameraId) argument
512 supportsCameraApiLocked(String cameraId, int apiVersion) argument
827 onStatusChanged(int status, int cameraId) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DFlashlightController.java144 private Size getSmallestSize(String cameraId) throws CameraAccessException { argument
145 Size[] outputSizes = mCameraManager.getCameraCharacteristics(cameraId)
150 "Camera " + cameraId + "doesn't support any outputSize.");
349 public void onCameraAvailable(String cameraId) {
350 if (DEBUG) Log.d(TAG, "onCameraAvailable(" + cameraId + ")");
351 if (cameraId.equals(mCameraId)) {
357 public void onCameraUnavailable(String cameraId) {
358 if (DEBUG) Log.d(TAG, "onCameraUnavailable(" + cameraId + ")");
359 if (cameraId.equals(mCameraId)) {
/frameworks/base/telecomm/java/android/telecom/
H A DVideoCallImpl.java169 public void setCamera(String cameraId) { argument
171 mVideoProvider.setCamera(cameraId);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
H A DCamera2Source.java78 public void onCameraAvailable(String cameraId) { argument
84 public void onCameraUnavailable(String cameraId) { argument
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/
H A DBlockingCameraManager.java127 * @param cameraId
145 public CameraDevice openCamera(String cameraId, CameraDevice.StateCallback listener, argument
154 return (new OpenListener(mManager, cameraId, listener, handler)).blockUntilOpen();
189 OpenListener(CameraManager manager, String cameraId, argument
192 mCameraId = cameraId;
194 manager.openCamera(cameraId, this, handler);
/frameworks/opt/net/ims/src/java/com/android/ims/internal/
H A DImsVideoCallProvider.java99 public void setCamera(String cameraId) { argument
100 mProviderHandler.obtainMessage(MSG_SET_CAMERA, cameraId).sendToTarget();
154 public abstract void onSetCamera(String cameraId); argument
H A DImsVideoCallProviderWrapper.java167 public void onSetCamera(String cameraId) { argument
169 mVideoCallProvider.setCamera(cameraId);

Completed in 538 milliseconds

12