Home
last modified time | relevance | path

Searched refs:halVersion (Results 1 – 17 of 17) sorted by relevance

/frameworks/native/libs/sensor/
DSensor.cpp44 Sensor::Sensor(struct sensor_t const* hwSensor, int halVersion) : in Sensor() argument
45 Sensor(*hwSensor, uuid_t(), halVersion) { in Sensor()
48 Sensor::Sensor(struct sensor_t const& hwSensor, const uuid_t& uuid, int halVersion) : in Sensor() argument
65 if (halVersion > SENSORS_DEVICE_API_VERSION_1_0) { in Sensor()
73 if (halVersion >= SENSORS_DEVICE_API_VERSION_1_3) { in Sensor()
156 if (halVersion < SENSORS_DEVICE_API_VERSION_1_3) { in Sensor()
171 if (halVersion < SENSORS_DEVICE_API_VERSION_1_3) { in Sensor()
198 if (halVersion < SENSORS_DEVICE_API_VERSION_1_3) { in Sensor()
205 if (halVersion < SENSORS_DEVICE_API_VERSION_1_3) { in Sensor()
212 if (halVersion < SENSORS_DEVICE_API_VERSION_1_3) { in Sensor()
[all …]
/frameworks/ml/nn/common/
DUtils.cpp199 HalVersion halVersion) in OperationValidationContext() argument
206 halVersion(halVersion) {} in OperationValidationContext()
230 HalVersion halVersion; member in android::nn::__anon8d54713c0111::OperationValidationContext
238 return halVersion; in getHalVersion()
684 static int validateHalVersion(ANeuralNetworksOperationType opType, HalVersion halVersion, in validateHalVersion() argument
686 if (halVersion < minSupportedHalVersion) { in validateHalVersion()
689 << " and later (validating using " << toString(halVersion) << ")"; in validateHalVersion()
851 HalVersion halVersion) { in validateOperation() argument
853 NN_RETURN_IF_ERROR(validateHalVersion(opType, halVersion, HalVersion::V1_3)); in validateOperation()
858 halVersion, {}); in validateOperation()
[all …]
/frameworks/native/libs/sensor/include/sensor/
DSensor.h68 explicit Sensor(struct sensor_t const* hwSensor, int halVersion = 0);
69 Sensor(struct sensor_t const& hwSensor, const uuid_t& uuid, int halVersion = 0);
/frameworks/av/camera/aidl/android/hardware/
DICameraService.aidl105 int halVersion, in connectLegacy() argument
/frameworks/base/core/java/android/hardware/
DCamera.java465 public static Camera openLegacy(int cameraId, int halVersion) { in openLegacy() argument
466 if (halVersion < CAMERA_HAL_API_VERSION_1_0) { in openLegacy()
467 throw new IllegalArgumentException("Invalid HAL version " + halVersion); in openLegacy()
470 return new Camera(cameraId, halVersion); in openLegacy()
480 private Camera(int cameraId, int halVersion) { in Camera() argument
481 int err = cameraInitVersion(cameraId, halVersion); in Camera()
508 private int cameraInitVersion(int cameraId, int halVersion) { in cameraInitVersion() argument
526 return native_setup(new WeakReference<Camera>(this), cameraId, halVersion, in cameraInitVersion()
619 private native final int native_setup(Object camera_this, int cameraId, int halVersion, in native_setup() argument
/frameworks/base/services/core/jni/
Dcom_android_server_power_PowerManagerService.cpp149 HalVersion halVersion = connectPowerHalLocked(); in getPowerHalHidlV1_0() local
150 if (halVersion == HalVersion::HIDL_1_0 || halVersion == HalVersion::HIDL_1_1) { in getPowerHalHidlV1_0()
/frameworks/av/camera/
DCamera.cpp80 status_t Camera::connectLegacy(int cameraId, int halVersion, in connectLegacy() argument
93 ret = cs.get()->connectLegacy(cl, cameraId, halVersion, clientPackageName, in connectLegacy()
/frameworks/av/camera/include/camera/
DCamera.h87 static status_t connectLegacy(int cameraId, int halVersion,
/frameworks/ml/nn/common/include/
DUtils.h347 inline std::string toString(HalVersion halVersion) {
348 switch (halVersion) {
405 HalVersion halVersion, const SubgraphValidationHelper& helper);
/frameworks/av/services/camera/libcameraservice/
DCameraService.cpp806 int facing, int clientPid, uid_t clientUid, int servicePid, int halVersion, in makeClient() argument
810 if (halVersion < 0 || halVersion == deviceVersion) { in makeClient()
858 halVersion == CAMERA_DEVICE_API_VERSION_1_0) { in makeClient()
867 " opened as HAL %x device", halVersion, deviceVersion, in makeClient()
871 cameraId.string(), deviceVersion, halVersion); in makeClient()
1494 int api1CameraId, int halVersion, in connectLegacy() argument
1505 ret = connectHelper<ICameraClient,Client>(cameraClient, id, api1CameraId, halVersion, in connectLegacy()
1614 int api1CameraId, int halVersion, const String16& clientPackageName, in connectHelper() argument
1626 (halVersion == -1) ? "default" : std::to_string(halVersion).c_str(), in connectHelper()
1706 halVersion, deviceVersion, effectiveApiLevel, in connectHelper()
DCameraService.h137 int32_t cameraId, int32_t halVersion,
730 int api1CameraId, int halVersion, const String16& clientPackageName,
1061 int facing, int clientPid, uid_t clientUid, int servicePid, int halVersion,
/frameworks/ml/nn/runtime/test/fuzzing/
DTestRandomGraph.cpp456 #define TEST_SINGLE_OPERATION(operation, halVersion, criteria) \ argument
457 TEST_P(SingleOperationTest, operation##_##halVersion) { \
459 .versions = {TestHalVersion::halVersion}}; \
/frameworks/base/core/jni/
Dandroid_hardware_Camera.cpp559 jobject weak_this, jint cameraId, jint halVersion, jstring clientPackageName) in android_hardware_Camera_native_setup() argument
570 if (halVersion == CAMERA_HAL_API_VERSION_NORMAL_CONNECT) { in android_hardware_Camera_native_setup()
575 jint status = Camera::connectLegacy(cameraId, halVersion, clientName, in android_hardware_Camera_native_setup()
/frameworks/ml/nn/runtime/test/
DTestPartitioning.cpp970 DeviceSpecification(const std::string& name, float perf, HalVersion halVersion, in DeviceSpecification()
975 makeOperationMask(halVersion, operationMaskV1_0, operationMaskV1_1, in DeviceSpecification()
977 mHalVersion = halVersion; in DeviceSpecification()
1009 static uint32_t makeOperationMask(HalVersion halVersion, uint32_t operationMaskV1_0, in makeOperationMask()
1012 if (halVersion < HalVersion::V1_3) { in makeOperationMask()
1015 if (halVersion < HalVersion::V1_2) { in makeOperationMask()
1018 if (halVersion < HalVersion::V1_1) { in makeOperationMask()
/frameworks/native/services/sensorservice/
DSensorService.cpp854 const int halVersion = device.getHalDeviceVersion(); in threadLoop() local
936 if (halVersion < SENSORS_DEVICE_API_VERSION_1_0) { in threadLoop()
1760 const int halVersion = dev.getHalDeviceVersion(); in flushSensor() local
1774 if (halVersion <= SENSORS_DEVICE_API_VERSION_1_0 || isVirtualSensor(handle)) { in flushSensor()
/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssLocationProvider.java814 GnssConfiguration.HalInterfaceVersion halVersion = in handleRequestLocation() local
816 if (isUserEmergency || halVersion.mMajor < 2) { in handleRequestLocation()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRIL.java449 public void setCompatVersion(int rilRequest, @NonNull HalVersion halVersion) { in setCompatVersion() argument
452 if (oldVersion != null && halVersion.greaterOrEqual(oldVersion)) { in setCompatVersion()
453 riljLoge("setCompatVersion with equal or greater one, ignored, halVerion=" + halVersion in setCompatVersion()
457 mCompatOverrides.put(rilRequest, halVersion); in setCompatVersion()