Home
last modified time | relevance | path

Searched refs:ICameraService (Results 1 – 25 of 67) sorted by relevance

123

/frameworks/base/core/java/android/hardware/camera2/utils/
DExceptionUtils.java19 import android.hardware.ICameraService;
49 case ICameraService.ERROR_DISCONNECTED: in throwAsPublicException()
52 case ICameraService.ERROR_DISABLED: in throwAsPublicException()
55 case ICameraService.ERROR_CAMERA_IN_USE: in throwAsPublicException()
58 case ICameraService.ERROR_MAX_CAMERAS_IN_USE: in throwAsPublicException()
61 case ICameraService.ERROR_DEPRECATED_HAL: in throwAsPublicException()
64 case ICameraService.ERROR_ILLEGAL_ARGUMENT: in throwAsPublicException()
65 case ICameraService.ERROR_ALREADY_EXISTS: in throwAsPublicException()
67 case ICameraService.ERROR_PERMISSION_DENIED: in throwAsPublicException()
69 case ICameraService.ERROR_TIMED_OUT: in throwAsPublicException()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
DCameraBinderTest.java25 import android.hardware.ICameraService;
92 ICameraService.ROTATION_OVERRIDE_NONE, DEVICE_ID_DEFAULT, in testCameraInfo()
165 ICameraService.USE_CALLING_UID, in testConnect()
166 ICameraService.USE_CALLING_PID, in testConnect()
168 ICameraService.ROTATION_OVERRIDE_NONE, in testConnect()
268 ICameraService.USE_CALLING_UID, 0 /*oomScoreOffset*/, in testConnectDevice()
270 ICameraService.ROTATION_OVERRIDE_NONE, DEVICE_ID_DEFAULT, in testConnectDevice()
335 e.errorCode, ICameraService.ERROR_ILLEGAL_ARGUMENT); in testAddRemoveListeners()
345 e.errorCode, ICameraService.ERROR_ALREADY_EXISTS); in testAddRemoveListeners()
355 e.errorCode, ICameraService.ERROR_ILLEGAL_ARGUMENT); in testAddRemoveListeners()
DCameraBinderTestUtils.java10 import android.hardware.ICameraService;
16 private final ICameraService mCameraService;
34 this.mCameraService = ICameraService.Stub.asInterface(cameraServiceBinder); in CameraBinderTestUtils()
83 ICameraService getCameraService() { in getCameraService()
DCameraDeviceBinderTest.java32 import android.hardware.ICameraService;
249 clientPackageName, clientAttributionTag, ICameraService.USE_CALLING_UID, in setUp()
251 ICameraService.ROTATION_OVERRIDE_NONE, DEVICE_ID_DEFAULT, DEVICE_POLICY_DEFAULT); in setUp()
289 e.errorCode, ICameraService.ERROR_ALREADY_EXISTS); in testCreateStream()
303 assertEquals(e.errorCode, ICameraService.ERROR_ILLEGAL_ARGUMENT); in testDeleteInvalidStream()
319 ICameraService.ERROR_ALREADY_EXISTS, e.errorCode); in testCreateStreamTwo()
345 "since we had 0 surface targets set.", ICameraService.ERROR_ILLEGAL_ARGUMENT, in testSubmitBadRequest()
357 ICameraService.ERROR_ILLEGAL_ARGUMENT, e.errorCode); in testSubmitBadRequest()
393 ICameraService.ERROR_ILLEGAL_ARGUMENT, e.errorCode); in testSubmitStreamingRequest()
401 ICameraService.ERROR_ILLEGAL_ARGUMENT, e.errorCode); in testSubmitStreamingRequest()
[all …]
/frameworks/base/core/java/android/hardware/camera2/
DCameraManager.java43 import android.hardware.ICameraService;
180 public static final int ROTATION_OVERRIDE_NONE = ICameraService.ROTATION_OVERRIDE_NONE;
191 ICameraService.ROTATION_OVERRIDE_OVERRIDE_TO_PORTRAIT;
201 ICameraService.ROTATION_OVERRIDE_ROTATION_ONLY;
629 String cameraId, CameraMetadataNative info, ICameraService cameraService) in getPhysicalCameraMultiResolutionConfigs()
664 /*rotationOverride*/ ICameraService.ROTATION_OVERRIDE_NONE, in getPhysicalCameraMultiResolutionConfigs()
676 ICameraService.ERROR_DISCONNECTED, in getPhysicalCameraMultiResolutionConfigs()
739 ? ICameraService.ROTATION_OVERRIDE_OVERRIDE_TO_PORTRAIT in getCameraCharacteristics()
740 : ICameraService.ROTATION_OVERRIDE_NONE); in getCameraCharacteristics()
751 ICameraService cameraService = CameraManagerGlobal.get().getCameraService(); in getCameraCharacteristics()
[all …]
/frameworks/base/core/java/android/hardware/camera2/impl/
DCameraDeviceSetupImpl.java22 import android.hardware.ICameraService;
67 ICameraService cameraService = mCameraManager.getCameraService(); in createCaptureRequest()
100 ICameraService cameraService = mCameraManager.getCameraService(); in isSessionConfigurationSupported()
129 ICameraService cameraService = mCameraManager.getCameraService(); in getSessionCharacteristics()
147 case ICameraService.ERROR_INVALID_OPERATION -> in getSessionCharacteristics()
150 case ICameraService.ERROR_ILLEGAL_ARGUMENT -> in getSessionCharacteristics()
DICameraDeviceUserWrapper.java19 import android.hardware.ICameraService;
198 if (e.errorCode == ICameraService.ERROR_INVALID_OPERATION) { in isSessionConfigurationSupported()
201 } else if (e.errorCode == ICameraService.ERROR_ILLEGAL_ARGUMENT) { in isSessionConfigurationSupported()
/frameworks/av/camera/tests/
DCameraCharacteristicsPermission.cpp41 sp<ICameraService> mCameraService;
49 mCameraService = interface_cast<ICameraService>(binder); in SetUp()
51 hardware::ICameraService::CAMERA_TYPE_ALL, kDefaultDeviceId, /*devicePolicy*/0, in SetUp()
68 hardware::ICameraService::API_VERSION_2, &isSupported); in TEST_F()
DCameraZSLTests.cpp72 sp<ICameraService> mCameraService;
86 mCameraService = interface_cast<ICameraService>(binder); in SetUp()
88 hardware::ICameraService::CAMERA_TYPE_ALL, kDefaultDeviceId, /*devicePolicy*/0, in SetUp()
177 hardware::ICameraService::API_VERSION_1, &isSupported); in TEST_F()
213 "ZSLTest", hardware::ICameraService::USE_CALLING_UID, in TEST_F()
214 hardware::ICameraService::USE_CALLING_PID, in TEST_F()
DCameraBinderTests.cpp62 using ::android::hardware::ICameraService;
344 sp<hardware::ICameraService> service = in TEST()
345 interface_cast<hardware::ICameraService>(binder); in TEST()
350 res = service->getNumberOfCameras(hardware::ICameraService::CAMERA_TYPE_ALL, kDefaultDeviceId, in TEST()
370 hardware::ICameraService::API_VERSION_2, &isSupported); in TEST()
397 {}, hardware::ICameraService::USE_CALLING_UID, /*oomScoreOffset*/ 0, in TEST()
428 sp<hardware::ICameraService> service;
441 {}, hardware::ICameraService::USE_CALLING_UID, /*oomScoreOffset*/ 0, in openNewDevice()
472 service = interface_cast<hardware::ICameraService>(binder); in SetUp()
479 service->getNumberOfCameras(hardware::ICameraService::CAMERA_TYPE_BACKWARD_COMPATIBLE, in SetUp()
[all …]
/frameworks/av/camera/ndk/impl/
DACameraManager.cpp167 sp<hardware::ICameraService> CameraManagerGlobal::getCameraService() { in getCameraService()
172 sp<hardware::ICameraService> CameraManagerGlobal::getCameraServiceLocked() { in getCameraServiceLocked()
192 mCameraService = interface_cast<hardware::ICameraService>(binder); in getCameraServiceLocked()
247 hardware::ICameraService::ERROR_DISCONNECTED) { in getCameraServiceLocked()
266 hardware::ICameraService::ERROR_DEPRECATED_HAL) { in getCameraServiceLocked()
406 hardware::ICameraService::API_VERSION_2, &camera2Support); in supportsCamera2ApiLocked()
805 sp<hardware::ICameraService> cs = mGlobalManager->getCameraService(); in getCameraCharacteristics()
814 targetSdkVersion, /*rotationOverride*/hardware::ICameraService::ROTATION_OVERRIDE_NONE, in getCameraCharacteristics()
819 case hardware::ICameraService::ERROR_DISCONNECTED: in getCameraCharacteristics()
822 case hardware::ICameraService::ERROR_ILLEGAL_ARGUMENT: in getCameraCharacteristics()
[all …]
/frameworks/av/services/camera/libcameraservice/hidl/
DUtils.cpp238 case hardware::ICameraService::ERROR_DISCONNECTED: in B2HStatus()
241 case hardware::ICameraService::ERROR_CAMERA_IN_USE: in B2HStatus()
244 case hardware::ICameraService::ERROR_MAX_CAMERAS_IN_USE: in B2HStatus()
247 case hardware::ICameraService::ERROR_ILLEGAL_ARGUMENT: in B2HStatus()
250 case hardware::ICameraService::ERROR_DEPRECATED_HAL: in B2HStatus()
254 case hardware::ICameraService::ERROR_DISABLED: in B2HStatus()
257 case hardware::ICameraService::ERROR_PERMISSION_DENIED: in B2HStatus()
260 case hardware::ICameraService::ERROR_INVALID_OPERATION: in B2HStatus()
/frameworks/hardware/interfaces/cameraservice/service/2.2/
DICameraService.hal19 import android.frameworks.cameraservice.service@2.1::ICameraService;
21 interface ICameraService extends @2.1::ICameraService {
/frameworks/av/camera/
DCameraBase.cpp110 sp<::android::hardware::ICameraService> gCameraService;
138 const sp<::android::hardware::ICameraService> CameraBase<TCam, TCamTraits>::getCameraService() in getCameraService()
156 gCameraService = interface_cast<::android::hardware::ICameraService>(binder); in getCameraService()
172 const sp<::android::hardware::ICameraService> cs = getCameraService(); in connect()
261 const sp<::android::hardware::ICameraService> cs = getCameraService(); in getNumberOfCameras()
269 ::android::hardware::ICameraService::CAMERA_TYPE_BACKWARD_COMPATIBLE, deviceId, in getNumberOfCameras()
284 const sp<::android::hardware::ICameraService> cs = getCameraService(); in getCameraInfo()
/frameworks/av/services/camera/libcameraservice/tests/
DCameraPermissionsTest.cpp239 hardware::ICameraService::ROTATION_OVERRIDE_NONE, in TEST_F()
243 ASSERT_EQ(status.serviceSpecificErrorCode(), hardware::ICameraService::ERROR_DISABLED) in TEST_F()
255 hardware::ICameraService::ROTATION_OVERRIDE_NONE, in TEST_F()
276 hardware::ICameraService::ROTATION_OVERRIDE_NONE, in TEST_F()
285 hardware::ICameraService::ROTATION_OVERRIDE_NONE, in TEST_F()
308 hardware::ICameraService::ROTATION_OVERRIDE_NONE, in TEST_F()
317 hardware::ICameraService::ROTATION_OVERRIDE_NONE, in TEST_F()
/frameworks/hardware/interfaces/cameraservice/service/2.1/
DICameraService.hal20 import android.frameworks.cameraservice.service@2.0::ICameraService;
25 interface ICameraService extends @2.0::ICameraService {
29 * Identical to @2.0::ICameraService.addListener, except that:
/frameworks/av/services/camera/libcameraservice/aidl/
DAidlUtils.cpp183 case hardware::ICameraService::ERROR_DISCONNECTED: in convertToAidl()
185 case hardware::ICameraService::ERROR_CAMERA_IN_USE: in convertToAidl()
187 case hardware::ICameraService::ERROR_MAX_CAMERAS_IN_USE: in convertToAidl()
189 case hardware::ICameraService::ERROR_ILLEGAL_ARGUMENT: in convertToAidl()
191 case hardware::ICameraService::ERROR_DEPRECATED_HAL: in convertToAidl()
194 case hardware::ICameraService::ERROR_DISABLED: in convertToAidl()
196 case hardware::ICameraService::ERROR_PERMISSION_DENIED: in convertToAidl()
198 case hardware::ICameraService::ERROR_INVALID_OPERATION: in convertToAidl()
/frameworks/hardware/interfaces/
Dcurrent.txt31 …7fabcb6dcbb32e25a64eed382e700cf49e6e33 android.frameworks.cameraservice.service@2.0::ICameraService
40 …6d6f967e210835dc4ac4ea014cd12bc476639e android.frameworks.cameraservice.service@2.1::ICameraService
47 …d4c8a0673d5585fa9aad2ab03f01f1b76b1945 android.frameworks.cameraservice.service@2.2::ICameraService
/frameworks/base/services/core/java/com/android/server/camera/
DCameraServiceProxy.java50 import android.hardware.ICameraService;
187 ICameraService.DEVICE_STATE_BACK_COVERED,
188 ICameraService.DEVICE_STATE_FRONT_COVERED,
189 ICameraService.DEVICE_STATE_FOLDED
221 private ICameraService mCameraServiceRaw;
504 case ICameraService.ERROR_ILLEGAL_ARGUMENT: in logSelf()
507 case ICameraService.ERROR_INVALID_OPERATION: in logSelf()
540 ICameraService cs = getCameraServiceRawLocked(); in onDisplayConfigurationChanged()
970 setDeviceStateFlags(ICameraService.DEVICE_STATE_FOLDED); in CameraServiceProxy()
972 clearDeviceStateFlags(ICameraService.DEVICE_STATE_FOLDED); in CameraServiceProxy()
[all …]
/frameworks/av/camera/include/camera/
DCamera.h60 typedef ::android::binder::Status (::android::hardware::ICameraService::*TCamConnectService)
75 USE_CALLING_UID = ::android::hardware::ICameraService::USE_CALLING_UID
78 USE_CALLING_PID = ::android::hardware::ICameraService::USE_CALLING_PID
DCameraBase.h32 class ICameraService; variable
166 static const sp<::android::hardware::ICameraService> getCameraService();
/frameworks/av/services/camera/libcameraservice/device3/hidl/
DHidlCamera3OfflineSession.cpp112 hardware::ICameraService::ROTATION_OVERRIDE_NONE, activePhysicalId}, mResultMetadataQueue in processCaptureResult_3_4()
154 hardware::ICameraService::ROTATION_OVERRIDE_NONE, activePhysicalId}, mResultMetadataQueue in processCaptureResult()
191 hardware::ICameraService::ROTATION_OVERRIDE_NONE, activePhysicalId}, mResultMetadataQueue in notify()
/frameworks/av/camera/tests/fuzzer/
Dcamera_fuzzer.cpp123 sp<ICameraService> cameraService = nullptr; in initCamera()
124 cameraService = interface_cast<ICameraService>(binder); in initCamera()
128 hardware::ICameraService::USE_CALLING_UID, in initCamera()
129 hardware::ICameraService::USE_CALLING_PID, in initCamera()
/frameworks/av/camera/cameraserver/
Dcameraserver.rc10 interface aidl android.frameworks.cameraservice.service.ICameraService/default
/frameworks/hardware/interfaces/cameraservice/service/2.0/
DAndroid.bp12 "ICameraService.hal",

123