/frameworks/av/camera/ |
ICameraServiceListener.cpp | 44 virtual void onStatusChanged(Status status, int32_t cameraId) 51 data.writeInt32(cameraId); 75 int32_t cameraId = data.readInt32(); 77 onStatusChanged(status, cameraId);
|
ICameraService.cpp | 107 virtual status_t getCameraInfo(int cameraId, 111 data.writeInt32(cameraId); 124 virtual status_t getCameraCharacteristics(int cameraId, 128 data.writeInt32(cameraId); 147 virtual status_t connect(const sp<ICameraClient>& cameraClient, int cameraId, 155 data.writeInt32(cameraId); 169 virtual status_t connectPro(const sp<IProCameraCallbacks>& cameraCb, int cameraId, 177 data.writeInt32(cameraId); 193 int cameraId, 202 data.writeInt32(cameraId); [all...] |
IProCameraUser.cpp | 179 virtual status_t getCameraInfo(int cameraId, camera_metadata** info) 183 data.writeInt32(cameraId); 304 int cameraId = data.readInt32(); 308 ret = getCameraInfo(cameraId, &info);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/ |
SelectableResolution.java | 23 public final int cameraId; 30 public SelectableResolution(int cameraId, int width, int height) { 31 this.cameraId = cameraId; 40 return "Cam " + cameraId + ": " + width + " x " + height + " - "
|
PhotoCaptureActivity.java | 137 for (int cameraId = 0; cameraId < Camera.getNumberOfCameras(); ++cameraId) { 138 mPreviewSizeCamerasToProcess.add(cameraId); 168 switchToCamera(resolution.cameraId, false); 198 for (int cameraId = 0; cameraId < numCameras; ++cameraId) { 199 Camera camera = Camera.open(cameraId); 206 new SelectableResolution(cameraId, size.width, size.height)) [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
MediaFrameworkIntegrationTestRunner.java | 60 String cameraId = (String) icicle.get("camera_id"); 61 if (cameraId != null) { 64 String.format("Reading camera_id from icicle: '%s'", cameraId)); 65 mCameraId = Integer.parseInt(cameraId);
|
/packages/apps/Camera/src/com/android/camera/ |
CameraButtonIntentReceiver.java | 40 int cameraId = CameraSettings.readPreferredCameraId(pref); 41 if (holder.tryOpen(cameraId) == null) return;
|
CameraSettings.java | 79 int cameraId, CameraInfo[] cameraInfo) { 82 mCameraId = cameraId; 95 public static String getDefaultVideoQuality(int cameraId, 99 cameraId, Integer.valueOf(defaultQuality))) { 418 int cameraId = readPreferredCameraId(pref); 419 if (cameraId == 0) return; // fast path 422 if (cameraId < 0 || cameraId >= n) { 432 int cameraId) { 434 editor.putString(KEY_CAMERA_ID, Integer.toString(cameraId)); [all...] |
Util.java | 310 public static CameraManager.CameraProxy openCamera(Activity activity, int cameraId) 315 return CameraHolder.instance().open(cameraId); 389 public static int getDisplayOrientation(int degrees, int cameraId) { 393 Camera.getCameraInfo(cameraId, info); 404 public static int getCameraOrientation(int cameraId) { 406 Camera.getCameraInfo(cameraId, info); 548 int cameraId = -1; 557 cameraId = frontCameraId; 563 cameraId = backCameraId; 566 return cameraId; [all...] |
/packages/apps/Camera2/src/com/android/camera/ |
CameraButtonIntentReceiver.java | 40 int cameraId = CameraSettings.readPreferredCameraId(pref); 41 if (holder.tryOpen(null, cameraId, null) == null) {
|
CameraSettings.java | 83 int cameraId, CameraInfo[] cameraInfo) { 86 mCameraId = cameraId; 98 public static String getSupportedHighestVideoQuality(int cameraId, 102 List<String> supported = getSupportedVideoQuality(cameraId); 422 int cameraId = readPreferredCameraId(pref); 423 if (cameraId == 0) return; // fast path 426 if (cameraId < 0 || cameraId >= n) { 436 int cameraId) { 438 editor.putString(KEY_CAMERA_ID, Integer.toString(cameraId)); [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/ |
CameraButtonIntentReceiver.java | 40 int cameraId = CameraSettings.readPreferredCameraId(pref); 41 if (holder.tryOpen(cameraId) == null) return;
|
Util.java | 257 public static android.hardware.Camera openCamera(Activity activity, int cameraId) 267 return CameraHolder.instance().open(cameraId); 338 public static int getDisplayOrientation(int degrees, int cameraId) { 342 Camera.getCameraInfo(cameraId, info); 353 public static int getCameraOrientation(int cameraId) { 355 Camera.getCameraInfo(cameraId, info); 493 int cameraId = -1; 502 cameraId = frontCameraId; 508 cameraId = backCameraId; 511 return cameraId; [all...] |
/device/generic/goldfish/camera/ |
EmulatedCameraHotplugThread.cpp | 77 __FUNCTION__, it->CameraID, strerror(errno), 83 __FUNCTION__, it->CameraID); 123 int cameraId = *it; 124 if (!addWatch(cameraId)) { 178 int cameraId = getCameraId(event->wd); 180 if (cameraId < 0) { 185 String8 filePath = getFilePath(cameraId); 201 gEmulatedCameraFactory.onStatusChanged(cameraId, 222 String8 EmulatedCameraHotplugThread::getFilePath(int cameraId) const { 223 return String8::format(FAKE_HOTPLUG_FILE ".%d", cameraId); [all...] |
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
FrameProcessor.cpp | 220 int cameraId = client->getCameraId(); 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, [all...] |
Parameters.h | 45 int cameraId; 218 Parameters(int cameraId, int cameraFacing); 347 SharedParameters(int cameraId, int cameraFacing): 348 mParameters(cameraId, cameraFacing) {
|
/device/lge/mako/camera/QCamera/HAL/wrapper/ |
QualcommCamera.cpp | 54 * If getNumberOfCameras() returns N, the valid cameraId for getCameraInfo() 118 int cameraId; 188 int cameraId = atoi(id); 200 camHal->hardware = new QCameraHardwareInterface(cameraId, mode); //HAL_openCameraHardware(cameraId); 202 camHal->cameraId = cameraId;
|
/device/lge/mako/camera/ |
QualcommCamera2.cpp | 54 * If getNumberOfCameras() returns N, the valid cameraId for getCameraInfo() 118 int cameraId; 198 int cameraId = atoi(id); 211 camHal->hardware = new QCameraHardwareInterface(cameraId, mode); //HAL_openCameraHardware(cameraId); 213 camHal->cameraId = cameraId;
|
QualcommCamera.cpp | 41 * If getNumberOfCameras() returns N, the valid cameraId for getCameraInfo() 339 int cameraId = atoi(id); 349 camHal->hardware = HAL_openCameraHardware(cameraId);
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
MediaRecorderStressTest.java | 85 int cameraId = 0; 86 CamcorderProfile profile = CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_HIGH);
|
/frameworks/av/services/camera/libcameraservice/ |
CameraService.cpp | 147 void CameraService::onDeviceStatusChanged(int cameraId, 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); [all...] |
/frameworks/av/media/libmedia/ |
MediaProfiles.cpp | 302 static bool isCameraIdFound(int cameraId, const Vector<int>& cameraIds) { 304 if (cameraId == cameraIds[i]) { 312 MediaProfiles::createCamcorderProfile(int cameraId, const char **atts, Vector<int>& cameraIds) 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) 354 ALOGV("%s: cameraId=%d, quality=%d", __func__, cameraId, quality) [all...] |
/frameworks/av/media/libmediaplayerservice/ |
StagefrightRecorder.cpp | 458 status_t StagefrightRecorder::setParamVideoCameraId(int32_t cameraId) { 459 ALOGV("setParamVideoCameraId: %d", cameraId); 460 if (cameraId < 0) { 463 mCameraId = cameraId; 668 int32_t cameraId; 669 if (safe_strtoi32(value.string(), &cameraId)) { 670 return setParamVideoCameraId(cameraId); [all...] |
/packages/apps/Camera2/src/com/android/camera/util/ |
CameraUtil.java | 331 Activity activity, final int cameraId, 335 return CameraHolder.instance().open(handler, cameraId, cb); 340 cb.onCameraDisabled(cameraId); 437 public static int getDisplayOrientation(int degrees, int cameraId) { 441 Camera.getCameraInfo(cameraId, info); 452 public static int getCameraOrientation(int cameraId) { 454 Camera.getCameraInfo(cameraId, info); 605 int cameraId = -1; 614 cameraId = frontCameraId; 620 cameraId = backCameraId [all...] |
/hardware/samsung_slsi/exynos5/libcamera2/ |
ExynosCameraHWInterface2.cpp | 940 ExynosCameraHWInterface2::ExynosCameraHWInterface2(int cameraId, camera2_device_t *dev, ExynosCamera2 * camera, int *openInvalid): 974 m_cameraId(cameraId), [all...] |