Home
last modified time | relevance | path

Searched refs:halVersion (Results 1 – 14 of 14) 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.cpp124 const Operand* operands, HalVersion halVersion) in OperationValidationContext() argument
130 halVersion(halVersion) {} in OperationValidationContext()
152 HalVersion halVersion; member in android::nn::__anon8d54713c0111::OperationValidationContext
156 return halVersion; in getHalVersion()
532 static int validateHalVersion(ANeuralNetworksOperationType opType, HalVersion halVersion, in validateHalVersion() argument
534 if (halVersion < minSupportedHalVersion) { in validateHalVersion()
537 << " and later (validating using " << toString(halVersion) << ")"; in validateHalVersion()
546 HalVersion halVersion) { in validateOperation() argument
555 if (halVersion < HalVersion::V1_2) { in validateOperation()
558 << toString(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/ml/nn/common/include/
DUtils.h255 inline std::string toString(HalVersion halVersion) { in toString() argument
256 switch (halVersion) { in toString()
292 HalVersion halVersion);
/frameworks/av/camera/aidl/android/hardware/
DICameraService.aidl102 int halVersion, in connectLegacy() argument
/frameworks/base/core/java/android/hardware/
DCamera.java459 public static Camera openLegacy(int cameraId, int halVersion) { in openLegacy() argument
460 if (halVersion < CAMERA_HAL_API_VERSION_1_0) { in openLegacy()
461 throw new IllegalArgumentException("Invalid HAL version " + halVersion); in openLegacy()
464 return new Camera(cameraId, halVersion); in openLegacy()
474 private Camera(int cameraId, int halVersion) { in Camera() argument
475 int err = cameraInitVersion(cameraId, halVersion); in Camera()
502 private int cameraInitVersion(int cameraId, int halVersion) { in cameraInitVersion() argument
520 return native_setup(new WeakReference<Camera>(this), cameraId, halVersion, in cameraInitVersion()
613 private native final int native_setup(Object camera_this, int cameraId, int halVersion, in native_setup() argument
/frameworks/av/camera/include/camera/
DCamera.h87 static status_t connectLegacy(int cameraId, int halVersion,
/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/services/camera/libcameraservice/
DCameraService.cpp638 int halVersion, int deviceVersion, apiLevel effectiveApiLevel, in makeClient() argument
641 if (halVersion < 0 || halVersion == deviceVersion) { in makeClient()
688 halVersion == CAMERA_DEVICE_API_VERSION_1_0) { in makeClient()
697 " opened as HAL %x device", halVersion, deviceVersion, in makeClient()
701 cameraId.string(), deviceVersion, halVersion); in makeClient()
1302 int api1CameraId, int halVersion, in connectLegacy() argument
1313 ret = connectHelper<ICameraClient,Client>(cameraClient, id, api1CameraId, halVersion, in connectLegacy()
1369 int api1CameraId, int halVersion, const String16& clientPackageName, int clientUid, in connectHelper() argument
1380 (halVersion == -1) ? "default" : std::to_string(halVersion).c_str(), in connectHelper()
1464 halVersion, deviceVersion, effectiveApiLevel, in connectHelper()
DCameraService.h129 int32_t cameraId, int32_t halVersion,
641 int api1CameraId, int halVersion, const String16& clientPackageName,
930 int halVersion, int deviceVersion, apiLevel effectiveApiLevel,
/frameworks/ml/nn/runtime/test/fuzzing/
DTestRandomGraph.cpp381 #define TEST_SINGLE_OPERATION(operation, halVersion, criteria) \ argument
382 TEST_P(SingleOperationTest, operation##_##halVersion) { \
384 .versions = {HalVersion::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.cpp733 DeviceSpecification(const std::string& name, float perf, HalVersion halVersion, in DeviceSpecification()
737 makeOperationMask(halVersion, operationMaskV1_0, in DeviceSpecification()
739 mHalVersion = halVersion; in DeviceSpecification()
770 static uint32_t makeOperationMask(HalVersion halVersion, uint32_t operationMaskV1_0, in makeOperationMask()
772 if (halVersion < HalVersion::V1_2) { in makeOperationMask()
775 if (halVersion < HalVersion::V1_1) { in makeOperationMask()
/frameworks/native/services/sensorservice/
DSensorService.cpp720 const int halVersion = device.getHalDeviceVersion(); in threadLoop() local
811 if (halVersion < SENSORS_DEVICE_API_VERSION_1_0) { in threadLoop()
1645 const int halVersion = dev.getHalDeviceVersion(); in flushSensor() local
1660 if (halVersion <= SENSORS_DEVICE_API_VERSION_1_0 || isVirtualSensor(handle)) { in flushSensor()