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

12

/frameworks/av/camera/
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 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 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 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 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/av/camera/tests/
H A DProCameraTests.cpp81 void onStatusChanged(Status status, int32_t cameraId) { argument
83 << (unsigned int) status << " cameraId " << cameraId
/frameworks/av/media/libmedia/
H A DMediaProfiles.cpp317 static bool isCameraIdFound(int cameraId, const Vector<int>& cameraIds) { argument
319 if (cameraId == cameraIds[i]) {
327 MediaProfiles::createCamcorderProfile(int cameraId, const char **atts, Vector<int>& cameraIds) argument
342 profile->mCameraId = cameraId;
343 if (!isCameraIdFound(cameraId, cameraIds)) {
344 cameraIds.add(cameraId);
353 MediaProfiles::findImageEncodingQualityLevels(int cameraId) const
358 if (levels->mCameraId == cameraId) {
365 void MediaProfiles::addImageEncodingQualityLevel(int cameraId, const char** atts) argument
369 ALOGV("%s: cameraId
389 addStartTimeOffset(int cameraId, const char** atts) argument
507 getRequiredProfileRefIndex(int cameraId) argument
528 int cameraId = mCamcorderProfiles[i]->mCameraId; local
1109 getCamcorderProfileIndex(int cameraId, camcorder_quality quality) const argument
1122 getCamcorderProfileParamByName(const char *name, int cameraId, camcorder_quality quality) const argument
1152 hasCamcorderProfile(int cameraId, camcorder_quality quality) const argument
[all...]
/frameworks/av/media/libmediaplayerservice/
H A DStagefrightRecorder.cpp466 status_t StagefrightRecorder::setParamVideoCameraId(int32_t cameraId) { argument
467 ALOGV("setParamVideoCameraId: %d", cameraId);
468 if (cameraId < 0) {
471 mCameraId = cameraId;
676 int32_t cameraId; local
677 if (safe_strtoi32(value.string(), &cameraId)) {
678 return setParamVideoCameraId(cameraId);
/frameworks/av/media/libstagefright/
H A DCameraSource.cpp150 int32_t cameraId,
158 CameraSource *source = new CameraSource(camera, proxy, cameraId,
167 int32_t cameraId,
192 mInitCheck = init(camera, proxy, cameraId,
205 int32_t cameraId, const String16& clientName, uid_t clientUid) {
208 mCamera = Camera::connect(cameraId, clientName, clientUid);
472 * @param cameraId if camera == 0, use camera with this id
489 int32_t cameraId,
499 err = initWithCameraAccess(camera, proxy, cameraId, clientName, clientUid,
509 int32_t cameraId,
147 CreateFromCamera( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, const String16& clientName, uid_t clientUid, Size videoSize, int32_t frameRate, const sp<IGraphicBufferProducer>& surface, bool storeMetaDataInVideoBuffers) argument
164 CameraSource( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, const String16& clientName, uid_t clientUid, Size videoSize, int32_t frameRate, const sp<IGraphicBufferProducer>& surface, bool storeMetaDataInVideoBuffers) argument
203 isCameraAvailable( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, const String16& clientName, uid_t clientUid) argument
486 init( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, const String16& clientName, uid_t clientUid, Size videoSize, int32_t frameRate, bool storeMetaDataInVideoBuffers) argument
506 initWithCameraAccess( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, const String16& clientName, uid_t clientUid, Size videoSize, int32_t frameRate, bool storeMetaDataInVideoBuffers) argument
[all...]
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/
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);
H A DCameraService.cpp159 void CameraService::onDeviceStatusChanged(int cameraId, argument
162 ALOGI("%s: Status changed for cameraId=%d, newStatus=%d", __FUNCTION__,
163 cameraId, newStatus);
165 if (cameraId < 0 || cameraId >= MAX_CAMERAS) {
166 ALOGE("%s: Bad camera ID %d", __FUNCTION__, cameraId);
170 if ((int)getStatus(cameraId) == newStatus) {
184 mShimParams.removeItem(cameraId);
187 sp<BasicClient> client = mClient[cameraId].promote();
192 int i = cameraId;
219 static_cast<ICameraServiceListener::Status>(newStatus), cameraId); local
227 getCameraInfo(int cameraId, struct CameraInfo* cameraInfo) argument
246 generateShimMetadata(int cameraId, CameraMetadata* cameraInfo) argument
331 getCameraCharacteristics(int cameraId, CameraMetadata* cameraInfo) argument
388 getDeviceVersion(int cameraId, int* facing) argument
470 initializeShimMetadata(int cameraId) argument
520 getLegacyParametersLazy(int cameraId, CameraParameters* parameters) argument
662 connectHelperLocked( sp<Client>& client, const sp<ICameraClient>& cameraClient, int cameraId, const String16& clientPackageName, int clientUid, int callingPid, int halVersion, bool legacyMode) argument
733 connect( const sp<ICameraClient>& cameraClient, int cameraId, const String16& clientPackageName, int clientUid, sp<ICamera>& device) argument
784 connectLegacy( const sp<ICameraClient>& cameraClient, int cameraId, int halVersion, const String16& clientPackageName, int clientUid, sp<ICamera>& device) argument
863 connectPro( const sp<IProCameraCallbacks>& cameraCb, int cameraId, const String16& clientPackageName, int clientUid, sp<IProCameraUser>& device) argument
939 connectDevice( const sp<ICameraDeviceCallbacks>& cameraCb, int cameraId, const String16& clientPackageName, int clientUid, sp<ICameraDeviceUser>& device) argument
1072 getLegacyParameters( int cameraId, String16* parameters) argument
1099 supportsCameraApi(int cameraId, int apiVersion) argument
1242 getClientByIdUnsafe(int cameraId) argument
1247 getClientLockById(int cameraId) argument
1299 setCameraBusy(int cameraId) argument
1305 setCameraFree(int cameraId) argument
1361 Client(const sp<CameraService>& cameraService, const sp<ICameraClient>& cameraClient, const String16& clientPackageName, int cameraId, int cameraFacing, int clientPid, uid_t clientUid, int servicePid) argument
1394 BasicClient(const sp<CameraService>& cameraService, const sp<IBinder>& remoteCallback, const String16& clientPackageName, int cameraId, int cameraFacing, int clientPid, uid_t clientUid, int servicePid) argument
1568 ProClient(const sp<CameraService>& cameraService, const sp<IProCameraCallbacks>& remoteCallback, const String16& clientPackageName, int cameraId, int cameraFacing, int clientPid, uid_t clientUid, int servicePid) argument
1749 updateStatus(ICameraServiceListener::Status status, int32_t cameraId, const StatusVector *rejectSourceStates) argument
[all...]
/frameworks/av/services/camera/libcameraservice/api1/
H A DCamera2Client.cpp52 int cameraId,
59 cameraId, cameraFacing, clientPid, clientUid, servicePid),
60 mParameters(cameraId, cameraFacing)
49 Camera2Client(const sp<CameraService>& cameraService, const sp<ICameraClient>& cameraClient, const String16& clientPackageName, int cameraId, int cameraFacing, int clientPid, uid_t clientUid, int servicePid, bool legacyMode) argument
H A DCameraClient.cpp39 int cameraId, int cameraFacing,
43 cameraId, cameraFacing, clientPid, clientUid, servicePid)
46 LOG1("CameraClient::CameraClient E (pid %d, id %d)", callingPid, cameraId);
59 LOG1("CameraClient::CameraClient X (pid %d, id %d)", callingPid, cameraId);
36 CameraClient(const sp<CameraService>& cameraService, const sp<ICameraClient>& cameraClient, const String16& clientPackageName, int cameraId, int cameraFacing, int clientPid, int clientUid, int servicePid, bool legacyMode) 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...]
H A DParameters.cpp39 Parameters::Parameters(int cameraId, argument
41 cameraId(cameraId),
194 __FUNCTION__, cameraId, outputFormats[i]);
400 __FUNCTION__, cameraId,
464 __FUNCTION__, cameraId, availableEffects.data.u8[i]);
506 __FUNCTION__, cameraId,
605 __FUNCTION__, cameraId,
715 __FUNCTION__, cameraId, availableAfModes.data.u8[i]);
881 ALOGI("Camera %d: Disabling ZSL mode", cameraId);
[all...]
H A DParameters.h45 int cameraId; member in struct:android::camera2::Parameters
234 Parameters(int cameraId, int cameraFacing);
400 SharedParameters(int cameraId, int cameraFacing): argument
401 mParameters(cameraId, cameraFacing) {
/frameworks/av/services/camera/libcameraservice/api2/
H A DCameraDeviceClient.cpp40 int cameraId,
46 cameraId, cameraFacing, clientPid, clientUid, servicePid),
55 int cameraId,
61 cameraId, cameraFacing, clientPid, clientUid, servicePid),
65 ALOGI("CameraDeviceClient %d: Opened", cameraId);
36 CameraDeviceClientBase( const sp<CameraService>& cameraService, const sp<ICameraDeviceCallbacks>& remoteCallback, const String16& clientPackageName, int cameraId, int cameraFacing, int clientPid, uid_t clientUid, int servicePid) argument
52 CameraDeviceClient(const sp<CameraService>& cameraService, const sp<ICameraDeviceCallbacks>& remoteCallback, const String16& clientPackageName, int cameraId, int cameraFacing, int clientPid, uid_t clientUid, int servicePid) 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/
H A DCamera.java236 public static void getCameraInfo(int cameraId, CameraInfo cameraInfo) { argument
237 _getCameraInfo(cameraId, cameraInfo);
250 private native static void _getCameraInfo(int cameraId, CameraInfo cameraInfo); argument
333 * @param cameraId the hardware camera to access, between 0 and
341 public static Camera open(int cameraId) { argument
342 return new Camera(cameraId);
385 * @param cameraId The hardware camera to access, between 0 and
401 public static Camera openLegacy(int cameraId, int halVersion) { argument
406 return new Camera(cameraId, halVersion);
412 * @param cameraId Th
416 Camera(int cameraId, int halVersion) argument
446 cameraInitVersion(int cameraId, int halVersion) argument
469 cameraInitNormal(int cameraId) argument
487 cameraInitUnspecified(int cameraId) argument
492 Camera(int cameraId) argument
533 native_setup(Object camera_this, int cameraId, int halVersion, String packageName) argument
[all...]
/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/core/java/android/hardware/camera2/impl/
H A DCameraDeviceImpl.java218 public CameraDeviceImpl(String cameraId, StateCallback callback, Handler handler, argument
220 if (cameraId == null || callback == null || handler == null || characteristics == null) {
223 mCameraId = cameraId;
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DCameraDeviceUserShim.java77 protected CameraDeviceUserShim(int cameraId, LegacyCameraDevice legacyCamera, argument
119 * @param cameraId numeric camera Id
123 public CameraLooper(int cameraId) { argument
124 mCameraId = cameraId;
311 int cameraId) {
322 CameraLooper init = new CameraLooper(cameraId);
337 Camera.getCameraInfo(cameraId, info);
350 cameraId, legacyCamera, characteristics, threadCallbacks);
351 return new CameraDeviceUserShim(cameraId, device, characteristics, init, threadCallbacks);
310 connectBinderShim(ICameraDeviceCallbacks callbacks, int cameraId) argument

Completed in 4484 milliseconds

12