/cts/tests/tests/media/src/android/media/cts/ |
CamcorderProfileTest.java | 38 // Uses get without id if cameraId == -1 and get with id otherwise. 39 private CamcorderProfile getWithOptionalId(int quality, int cameraId) { 40 if (cameraId == -1) { 43 return CamcorderProfile.get(cameraId, quality); 151 int cameraId, 162 if ((cameraId != -1 && CamcorderProfile.hasProfile(cameraId, quality)) || 163 (cameraId == -1 && CamcorderProfile.hasProfile(quality))) { 164 CamcorderProfile profile = getWithOptionalId(quality, cameraId); 191 private void checkGet(int cameraId) { [all...] |
/frameworks/base/media/java/android/media/ |
CameraProfile.java | 74 * @param cameraId The id of the camera 77 public static int getJpegEncodingQualityParameter(int cameraId, int quality) { 82 int[] levels = sCache.get(cameraId); 84 levels = getImageEncodingQualityLevels(cameraId); 85 sCache.put(cameraId, levels); 96 private static int[] getImageEncodingQualityLevels(int cameraId) { 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); 113 private static native final int native_get_image_encoding_quality_level(int cameraId, int index) [all...] |
CamcorderProfile.java | 243 * @param cameraId the id for the camera 260 public static CamcorderProfile get(int cameraId, int quality) { 268 return native_get_camcorder_profile(cameraId, quality); 291 * @param cameraId the id for the camera 294 public static boolean hasProfile(int cameraId, int quality) { 295 return native_has_camcorder_profile(cameraId, quality); 334 int cameraId, int quality); 336 int cameraId, int quality);
|
/hardware/ti/omap4xxx/camera/ |
CameraHal_Module.cpp | 67 int cameraid; member in struct:ti_camera_device 88 rv = gCameraHals[ti_dev->cameraid]->setPreviewWindow(window); 109 gCameraHals[ti_dev->cameraid]->setCallbacks(notify_cb, data_cb, data_cb_timestamp, get_memory, user); 123 gCameraHals[ti_dev->cameraid]->enableMsgType(msg_type); 137 gCameraHals[ti_dev->cameraid]->disableMsgType(msg_type); 151 return gCameraHals[ti_dev->cameraid]->msgTypeEnabled(msg_type); 166 rv = gCameraHals[ti_dev->cameraid]->startPreview(); 182 gCameraHals[ti_dev->cameraid]->stopPreview(); 197 rv = gCameraHals[ti_dev->cameraid]->previewEnabled(); 214 rv = gCameraHals[ti_dev->cameraid]->storeMetaDataInBuffers(enable) 488 int cameraid; local [all...] |
/frameworks/base/media/libmedia/ |
MediaProfiles.cpp | 300 static bool isCameraIdFound(int cameraId, const Vector<int>& cameraIds) { 302 if (cameraId == cameraIds[i]) { 310 MediaProfiles::createCamcorderProfile(int cameraId, const char **atts, Vector<int>& cameraIds) 325 profile->mCameraId = cameraId; 326 if (!isCameraIdFound(cameraId, cameraIds)) { 327 cameraIds.add(cameraId); 336 MediaProfiles::findImageEncodingQualityLevels(int cameraId) const 341 if (levels->mCameraId == cameraId) { 348 void MediaProfiles::addImageEncodingQualityLevel(int cameraId, const char** atts) 352 LOGV("%s: cameraId=%d, quality=%d\n", __func__, cameraId, quality) [all...] |
/frameworks/base/include/media/stagefright/ |
CameraSource.h | 51 * cameraId. 53 * @param cameraId the id of the camera that the source will connect 73 int32_t cameraId, 157 int32_t cameraId, 198 int32_t cameraId, Size videoSize, int32_t frameRate, 203 int32_t cameraId, Size videoSize, int32_t frameRate, 208 int32_t cameraId);
|
/packages/apps/Camera/src/com/android/camera/ |
CameraHolder.java | 120 public synchronized android.hardware.Camera open(int cameraId) 123 if (mCameraDevice != null && mCameraId != cameraId) { 130 Log.v(TAG, "open camera " + cameraId); 131 mCameraDevice = android.hardware.Camera.open(cameraId); 132 mCameraId = cameraId; 157 public synchronized android.hardware.Camera tryOpen(int cameraId) { 159 return mUsers == 0 ? open(cameraId) : null;
|
CameraButtonIntentReceiver.java | 40 int cameraId = CameraSettings.readPreferredCameraId(pref); 41 if (holder.tryOpen(cameraId) == null) return;
|
/frameworks/base/libs/camera/ |
ICameraService.cpp | 47 virtual status_t getCameraInfo(int cameraId, 51 data.writeInt32(cameraId); 59 virtual sp<ICamera> connect(const sp<ICameraClient>& cameraClient, int cameraId) 64 data.writeInt32(cameraId);
|
/development/tools/emulator/system/camera/ |
EmulatedFakeCamera.cpp | 31 EmulatedFakeCamera::EmulatedFakeCamera(int cameraId, struct hw_module_t* module) 32 : EmulatedCamera(cameraId, module),
|
EmulatedQemuCamera.cpp | 30 EmulatedQemuCamera::EmulatedQemuCamera(int cameraId, struct hw_module_t* module) 31 : EmulatedCamera(cameraId, module),
|
media_profiles.xml | 28 <!ATTLIST EncoderProfile cameraId (0|1) #REQUIRED> 89 <CamcorderProfiles cameraId="0"> 123 <CamcorderProfiles cameraId="1"> 157 <CamcorderProfiles cameraId="2"> 191 <CamcorderProfiles cameraId="3"> 225 <CamcorderProfiles cameraId="4"> 259 <CamcorderProfiles cameraId="5"> 293 <CamcorderProfiles cameraId="6">
|
EmulatedFakeCamera.h | 38 EmulatedFakeCamera(int cameraId, struct hw_module_t* module);
|
EmulatedQemuCamera.h | 35 EmulatedQemuCamera(int cameraId, struct hw_module_t* module);
|
/frameworks/base/include/camera/ |
ICameraService.h | 42 virtual status_t getCameraInfo(int cameraId, 45 int cameraId) = 0;
|
/packages/apps/Camera/src/com/android/camera/ui/ |
CameraPicker.java | 58 String cameraId = pref.getValue(); 60 if (mCameras[CameraInfo.CAMERA_FACING_FRONT].equals(cameraId)) {
|
/frameworks/base/services/camera/libcameraservice/ |
CameraService.h | 47 virtual status_t getCameraInfo(int cameraId, 49 virtual sp<ICamera> connect(const sp<ICameraClient>& cameraClient, int cameraId); 51 virtual sp<Client> getClientById(int cameraId); 75 void setCameraBusy(int cameraId); 76 void setCameraFree(int cameraId); 116 int cameraId,
|
CameraService.cpp | 126 status_t CameraService::getCameraInfo(int cameraId, 132 if (cameraId < 0 || cameraId >= mNumberOfCameras) { 137 status_t rc = mModule->get_camera_info(cameraId, &info); 144 const sp<ICameraClient>& cameraClient, int cameraId) { 148 LOG1("CameraService::connect E (pid %d, id %d)", callingPid, cameraId); 156 if (cameraId < 0 || cameraId >= mNumberOfCameras) { 157 LOGE("CameraService::connect X (pid %d) rejected (invalid cameraId %d).", 158 callingPid, cameraId); [all...] |
/cts/tests/tests/hardware/src/android/hardware/cts/ |
CameraGLTest.java | 128 private void initializeMessageLooper(final int cameraId) { 141 mCamera = Camera.open(cameraId); 143 Log.v(TAG, "Camera " + cameraId + " is opened."); 302 void run(int cameraId) throws Exception; 343 public void run(int cameraId) throws Exception { 347 initializeMessageLooper(cameraId); 356 initializeMessageLooper(cameraId); 383 public void run(int cameraId) throws Exception { 388 initializeMessageLooper(cameraId); 405 initializeMessageLooper(cameraId); [all...] |
CameraTest.java | 133 private void initializeMessageLooper(final int cameraId) throws IOException { 145 mCamera = Camera.open(cameraId); 418 private void testPreviewCallbackByCamera(int cameraId) throws Exception { 419 initializeMessageLooper(cameraId); 426 initializeMessageLooper(cameraId); 432 initializeMessageLooper(cameraId); 467 private void testSetOneShotPreviewCallbackByCamera(int cameraId) throws Exception { 468 initializeMessageLooper(cameraId); 475 initializeMessageLooper(cameraId); 495 private void testSetPreviewDisplayByCamera(int cameraId) throws Exception [all...] |
/frameworks/base/services/camera/tests/CameraServiceTest/ |
CameraServiceTest.cpp | 430 void testConnect(int cameraId) { 434 sp<ICamera> c = cs->connect(cc, cameraId); 439 void testAllowConnectOnceOnly(int cameraId) { 444 sp<ICamera> c = cs->connect(cc, cameraId); 447 ASSERT(cs->connect(cc, cameraId) != 0); 450 ASSERT(cs->connect(cc2, cameraId) == 0); 533 void testReconnect(int cameraId) { 537 sp<ICamera> c = cs->connect(cc, cameraId); 548 void testLockUnlock(int cameraId) { 551 sp<ICamera> c = cs->connect(cc, cameraId); [all...] |
/frameworks/base/include/media/ |
MediaProfiles.h | 98 int getCamcorderProfileParamByName(const char *name, int cameraId, 105 bool hasCamcorderProfile(int cameraId, camcorder_quality quality) const; 189 Vector<int> getImageEncodingQualityLevels(int cameraId) const; 195 int getStartTimeOffsetMs(int cameraId) const; 374 int getCamcorderProfileIndex(int cameraId, camcorder_quality quality) const; 376 int getRequiredProfileRefIndex(int cameraId); 402 int cameraId, const char **atts, Vector<int>& cameraIds); 406 void addStartTimeOffset(int cameraId, const char **atts); 408 ImageEncodingQualityLevels* findImageEncodingQualityLevels(int cameraId) const; 409 void addImageEncodingQualityLevel(int cameraId, const char** atts) [all...] |
/frameworks/base/media/libstagefright/ |
CameraSourceTimeLapse.cpp | 38 int32_t cameraId, 45 CameraSourceTimeLapse(camera, proxy, cameraId, 61 int32_t cameraId, 66 : CameraSource(camera, proxy, cameraId, videoSize, videoFrameRate, surface, true),
|
CameraSource.cpp | 131 int32_t cameraId, 137 CameraSource *source = new CameraSource(camera, proxy, cameraId, 146 int32_t cameraId, 167 mInitCheck = init(camera, proxy, cameraId, 179 int32_t cameraId) { 182 mCamera = Camera::connect(cameraId); 446 * @param cameraId if camera == 0, use camera with this id 463 int32_t cameraId, 471 err = initWithCameraAccess(camera, proxy, cameraId, 481 int32_t cameraId, [all...] |
/device/ti/panda/ |
media_profiles.xml | 28 <!ATTLIST EncoderProfile cameraId (0|1) #REQUIRED> 80 <CamcorderProfiles cameraId="0"> 116 <CamcorderProfiles cameraId="1">
|