Searched defs:cameraId (Results 1 - 25 of 31) 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);
49 device = new Camera3Device(cameraId);
53 __FUNCTION__, cameraId, deviceVersion);
H A DCameraService.cpp147 void CameraService::onDeviceStatusChanged(int cameraId, argument
150 ALOGI("%s: Status changed for cameraId=%d, newStatus=%d", __FUNCTION__,
151 cameraId, newStatus);
153 if (cameraId < 0 || cameraId >= MAX_CAMERAS) {
154 ALOGE("%s: Bad camera ID %d", __FUNCTION__, cameraId);
158 if ((int)getStatus(cameraId) == newStatus) {
172 sp<BasicClient> client = mClient[cameraId].promote();
177 int i = cameraId;
204 static_cast<ICameraServiceListener::Status>(newStatus), cameraId); local
212 getCameraInfo(int cameraId, struct CameraInfo* cameraInfo) argument
229 getCameraCharacteristics(int cameraId, CameraMetadata* cameraInfo) argument
272 getDeviceVersion(int cameraId, int* facing) argument
292 isValidCameraId(int cameraId) argument
309 validateConnect(int cameraId, int& clientUid) const argument
361 canConnectUnsafe(int cameraId, const String16& clientPackageName, const sp<IBinder>& remoteCallback, sp<BasicClient> &client) argument
405 connect( const sp<ICameraClient>& cameraClient, int cameraId, const String16& clientPackageName, int clientUid, sp<ICamera>& device) argument
502 connectPro( const sp<IProCameraCallbacks>& cameraCb, int cameraId, const String16& clientPackageName, int clientUid, sp<IProCameraUser>& device) argument
571 connectDevice( const sp<ICameraDeviceCallbacks>& cameraCb, int cameraId, const String16& clientPackageName, int clientUid, sp<ICameraDeviceUser>& device) argument
806 getClientByIdUnsafe(int cameraId) argument
811 getClientLockById(int cameraId) argument
861 setCameraBusy(int cameraId) argument
867 setCameraFree(int cameraId) argument
923 Client(const sp<CameraService>& cameraService, const sp<ICameraClient>& cameraClient, const String16& clientPackageName, int cameraId, int cameraFacing, int clientPid, uid_t clientUid, int servicePid) argument
956 BasicClient(const sp<CameraService>& cameraService, const sp<IBinder>& remoteCallback, const String16& clientPackageName, int cameraId, int cameraFacing, int clientPid, uid_t clientUid, int servicePid) argument
1112 ProClient(const sp<CameraService>& cameraService, const sp<IProCameraCallbacks>& remoteCallback, const String16& clientPackageName, int cameraId, int cameraFacing, int clientPid, uid_t clientUid, int servicePid) argument
1278 updateStatus(ICameraServiceListener::Status status, int32_t cameraId, const StatusVector *rejectSourceStates) argument
[all...]
/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 DICameraService.cpp107 virtual status_t getCameraInfo(int cameraId, argument
111 data.writeInt32(cameraId);
124 virtual status_t getCameraCharacteristics(int cameraId, argument
128 data.writeInt32(cameraId);
147 virtual status_t connect(const sp<ICameraClient>& cameraClient, int cameraId, argument
155 data.writeInt32(cameraId);
169 virtual status_t connectPro(const sp<IProCameraCallbacks>& cameraCb, int cameraId, argument
177 data.writeInt32(cameraId);
193 int cameraId,
202 data.writeInt32(cameraId);
191 connectDevice( const sp<ICameraDeviceCallbacks>& cameraCb, int cameraId, const String16& clientPackageName, int clientUid, sp<ICameraDeviceUser>& device) argument
282 int32_t cameraId = data.readInt32(); local
302 int32_t cameraId = data.readInt32(); local
322 int32_t cameraId = data.readInt32(); local
[all...]
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);
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)
285 camera_metadata* ProCamera::getCameraInfo(int cameraId) { argument
286 ALOGV("%s: cameraId = %d", __FUNCTION__, cameraId);
292 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.java246 * @param cameraId the id for the camera
263 public static CamcorderProfile get(int cameraId, int quality) { argument
271 return native_get_camcorder_profile(cameraId, quality);
294 * @param cameraId the id for the camera
297 public static boolean hasProfile(int cameraId, int quality) { argument
298 return native_has_camcorder_profile(cameraId, quality);
337 int cameraId, int quality);
339 int cameraId, int quality);
336 native_get_camcorder_profile( int cameraId, int quality) argument
338 native_has_camcorder_profile( int cameraId, int quality) argument
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DFrameProcessor.cpp220 int cameraId = client->getCameraId(); local
242 &new3aState.afMode, frameNumber, cameraId);
245 &new3aState.awbMode, frameNumber, cameraId);
248 &new3aState.aeState, frameNumber, cameraId);
251 &new3aState.afState, frameNumber, cameraId);
254 &new3aState.awbState, frameNumber, cameraId);
257 &new3aState.afTriggerId, frameNumber, cameraId);
260 &new3aState.aeTriggerId, frameNumber, cameraId);
266 __FUNCTION__, cameraId,
275 __FUNCTION__, cameraId,
297 get3aResult(const CameraMetadata& result, int32_t tag, T* value, int32_t frameNumber, int cameraId) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/
H A DCameraManager.java157 * @param cameraId The id of the camera device to query
160 * @throws IllegalArgumentException if the cameraId does not match any
169 public CameraCharacteristics getCameraCharacteristics(String cameraId) argument
173 if (!getOrCreateDeviceIdListLocked().contains(cameraId)) {
175 " currently connected camera device", cameraId));
181 mCameraService.getCameraCharacteristics(Integer.valueOf(cameraId), info);
199 * @param cameraId The unique identifier of the camera device to open
204 * or too many camera devices are already open, or the cameraId does not match
214 private void openCameraDeviceUserAsync(String cameraId, argument
225 cameraId,
295 openCamera(String cameraId, final CameraDevice.StateListener listener, Handler handler) argument
335 onCameraAvailable(String cameraId) argument
350 onCameraUnavailable(String cameraId) argument
448 onStatusChanged(int status, int cameraId) argument
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
H A DCameraBinderTest.java78 for (int cameraId = 0; cameraId < mUtils.getGuessedNumCameras(); ++cameraId) {
85 "Camera service returned info for camera " + cameraId,
86 mUtils.getCameraService().getCameraInfo(cameraId, info) ==
88 assertTrue("Facing was not set for camera " + cameraId, info.info.facing != -1);
89 assertTrue("Orientation was not set for camera " + cameraId,
92 Log.v(TAG, "Camera " + cameraId + " info: facing " + info.info.facing
109 for (int cameraId = 0; cameraId < mUtil
195 onStatusChanged(int status, int cameraId) argument
[all...]
/frameworks/av/media/libstagefright/
H A DCameraSourceTimeLapse.cpp38 int32_t cameraId,
48 CameraSourceTimeLapse(camera, proxy, cameraId,
66 int32_t cameraId,
74 : CameraSource(camera, proxy, cameraId, clientName, clientUid,
35 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
63 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
H A DCameraSource.cpp138 int32_t cameraId,
146 CameraSource *source = new CameraSource(camera, proxy, cameraId,
155 int32_t cameraId,
180 mInitCheck = init(camera, proxy, cameraId,
193 int32_t cameraId, const String16& clientName, uid_t clientUid) {
196 mCamera = Camera::connect(cameraId, clientName, clientUid);
460 * @param cameraId if camera == 0, use camera with this id
477 int32_t cameraId,
487 err = initWithCameraAccess(camera, proxy, cameraId, clientName, clientUid,
497 int32_t cameraId,
135 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
152 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
191 isCameraAvailable( const sp<ICamera>& camera, const sp<ICameraRecordingProxy>& proxy, int32_t cameraId, const String16& clientName, uid_t clientUid) argument
474 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
494 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...]
/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.cpp48 int cameraId,
54 cameraId, cameraFacing, clientPid, clientUid, servicePid),
57 ALOGI("Camera %d: Opened", cameraId);
59 mDevice = CameraDeviceFactory::createDevice(cameraId);
44 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/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
H A DCamera2Source.java72 public void onCameraAvailable(String cameraId) { argument
78 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.StateListener 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/av/services/camera/libcameraservice/api2/
H A DCameraDeviceClient.cpp39 int cameraId,
45 cameraId, cameraFacing, clientPid, clientUid, servicePid),
54 int cameraId,
60 cameraId, cameraFacing, clientPid, clientUid, servicePid),
64 ALOGI("CameraDeviceClient %d: Opened", cameraId);
35 CameraDeviceClientBase( const sp<CameraService>& cameraService, const sp<ICameraDeviceCallbacks>& remoteCallback, const String16& clientPackageName, int cameraId, int cameraFacing, int clientPid, uid_t clientUid, int servicePid) argument
51 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/base/core/java/android/hardware/camera2/impl/
H A DCameraDevice.java131 public CameraDevice(String cameraId, StateListener listener, Handler handler) { argument
132 if (cameraId == null || listener == null || handler == null) {
135 mCameraId = cameraId;
/frameworks/av/services/camera/libcameraservice/api1/
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);
58 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) argument
/frameworks/base/media/jni/
H A Dandroid_media_MediaProfiles.cpp276 android_media_MediaProfiles_native_get_num_image_encoding_quality_levels(JNIEnv *env, jobject thiz, jint cameraId) argument
279 return sProfiles->getImageEncodingQualityLevels(cameraId).size();
283 android_media_MediaProfiles_native_get_image_encoding_quality_level(JNIEnv *env, jobject thiz, jint cameraId, jint index) argument
286 Vector<int> levels = sProfiles->getImageEncodingQualityLevels(cameraId);
/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.cpp302 static bool isCameraIdFound(int cameraId, const Vector<int>& cameraIds) { argument
304 if (cameraId == cameraIds[i]) {
312 MediaProfiles::createCamcorderProfile(int cameraId, const char **atts, Vector<int>& cameraIds) argument
327 profile->mCameraId = cameraId;
328 if (!isCameraIdFound(cameraId, cameraIds)) {
329 cameraIds.add(cameraId);
338 MediaProfiles::findImageEncodingQualityLevels(int cameraId) const
343 if (levels->mCameraId == cameraId) {
350 void MediaProfiles::addImageEncodingQualityLevel(int cameraId, const char** atts) argument
354 ALOGV("%s: cameraId
374 addStartTimeOffset(int cameraId, const char** atts) argument
487 getRequiredProfileRefIndex(int cameraId) argument
508 int cameraId = mCamcorderProfiles[i]->mCameraId; local
1086 getCamcorderProfileIndex(int cameraId, camcorder_quality quality) const argument
1099 getCamcorderProfileParamByName(const char *name, int cameraId, camcorder_quality quality) const argument
1129 hasCamcorderProfile(int cameraId, camcorder_quality quality) const argument
[all...]

Completed in 5052 milliseconds

12