Home
last modified time | relevance | path

Searched refs:prop (Results 1 – 25 of 80) sorted by relevance

1234

/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/
DDefaultConfig.h167 .prop = toInt(VehicleProperty::INFO_FUEL_CAPACITY),
176 .prop = toInt(VehicleProperty::INFO_FUEL_TYPE),
184 .prop = toInt(VehicleProperty::INFO_EV_BATTERY_CAPACITY),
193 .prop = toInt(VehicleProperty::INFO_EV_CONNECTOR_TYPE),
201 .prop = toInt(VehicleProperty::INFO_DRIVER_SEAT),
210 .prop = toInt(VehicleProperty::INFO_FUEL_DOOR_LOCATION),
219 .prop = toInt(VehicleProperty::INFO_EV_PORT_LOCATION),
228 .prop = toInt(VehicleProperty::INFO_MAKE),
235 .prop = toInt(VehicleProperty::PERF_VEHICLE_SPEED),
245 .prop = toInt(VehicleProperty::VEHICLE_SPEED_DISPLAY_UNITS),
[all …]
DVehicleEmulator.cpp80 emulator::VehiclePropGet getProp = rxMsg.prop(0); in doGetConfig()
87 if (config.prop == getProp.prop()) { in doGetConfig()
112 emulator::VehiclePropGet getProp = rxMsg.prop(0); in doGetProperty()
113 int32_t propId = getProp.prop(); in doGetProperty()
125 .prop = propId, in doGetProperty()
145 for (const auto& prop : mHal->getAllProperties()) { in doGetPropertyAll() local
147 populateProtoVehiclePropValue(protoVal, &prop); in doGetPropertyAll()
158 .prop = protoVal.prop(), in doSetProperty()
220 protoCfg->set_prop(cfg.prop); in populateProtoVehicleConfig()
223 protoCfg->set_value_type(toInt(getPropType(cfg.prop))); in populateProtoVehicleConfig()
[all …]
DEmulatedVehicleHal.cpp106 auto propId = requestedPropValue.prop; in get()
135 if (propValue.prop == kGenerateFakeDataControllingProperty) { in set()
140 } else if (mHvacPowerProps.count(propValue.prop)) { in set()
153 switch (propValue.prop) { in set()
208 if (mInEmulator && propValue.prop == toInt(VehicleProperty::DISPLAY_BRIGHTNESS)) { in set()
221 switch (propConfig.prop) { in isDiagnosticProperty()
257 if (isGlobalProp(cfg.prop)) { in onCreate()
264 if (isGlobalProp(cfg.prop)) { in onCreate()
271 VehiclePropValue prop = { in onCreate() local
273 .prop = cfg.prop, in onCreate()
[all …]
DJsonFakeValueGenerator.cpp107 .prop = rawEvent["prop"].asInt(), in parseFakeValueJson()
112 switch (getPropType(event.prop)) { in parseFakeValueJson()
131 if (isDiagnosticProperty(event.prop)) { in parseFakeValueJson()
136 ALOGE("%s: unsupported type for property: 0x%x", __func__, event.prop); in parseFakeValueJson()
166 bool JsonFakeValueGenerator::isDiagnosticProperty(int32_t prop) { in isDiagnosticProperty() argument
167 return prop == (int32_t)VehicleProperty::OBD2_LIVE_FRAME || in isDiagnosticProperty()
168 prop == (int32_t)VehicleProperty::OBD2_FREEZE_FRAME; in isDiagnosticProperty()
DLinearFakeValueGenerator.cpp49 VehiclePropValue event = {.prop = mGenCfg.propId}; in nextEvent()
51 switch (getPropType(event.prop)) { in nextEvent()
65 ALOGE("%s: unsupported property type for 0x%x", __func__, event.prop); in nextEvent()
/hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/
DVehicleUtils.h41 inline constexpr VehiclePropertyType getPropType(int32_t prop) { in getPropType() argument
43 prop & toInt(VehiclePropertyType::MASK)); in getPropType()
46 inline constexpr VehiclePropertyGroup getPropGroup(int32_t prop) { in getPropGroup() argument
48 prop & toInt(VehiclePropertyGroup::MASK)); in getPropGroup()
51 inline constexpr VehicleArea getPropArea(int32_t prop) { in getPropArea() argument
52 return static_cast<VehicleArea>(prop & toInt(VehicleArea::MASK)); in getPropArea()
55 inline constexpr bool isGlobalProp(int32_t prop) { in isGlobalProp() argument
56 return getPropArea(prop) == VehicleArea::GLOBAL; in isGlobalProp()
59 inline constexpr bool isSystemProperty(int32_t prop) { in isSystemProperty() argument
60 return VehiclePropertyGroup::SYSTEM == getPropGroup(prop); in isSystemProperty()
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/
DVehiclePropertyStore.cpp29 return prop == other.prop && area == other.area && token == other.token; in operator ==()
33 return prop < other.prop in operator <()
34 || (prop == other.prop && area < other.area) in operator <()
35 || (prop == other.prop && area == other.area && token < other.token); in operator <()
41 mConfigs.insert({ config.prop, RecordConfig { config, tokenFunc } }); in registerProperty()
47 if (!mConfigs.count(propValue.prop)) return false; in writeValue()
108 int32_t prop, int32_t area, int64_t token) const { in readValueOrNull() argument
109 RecordId recId = {prop, isGlobalProp(prop) ? 0 : area, token }; in readValueOrNull()
144 .prop = valuePrototype.prop, in getRecordIdLocked()
145 .area = isGlobalProp(valuePrototype.prop) ? 0 : valuePrototype.areaId, in getRecordIdLocked()
[all …]
DVehicleHalManager.cpp65 auto prop = properties[i]; in getPropConfigs() local
66 if (mConfigIndex->hasConfig(prop)) { in getPropConfigs()
67 configs.push_back(mConfigIndex->getConfig(prop)); in getPropConfigs()
69 ALOGW("Requested config for undefined property: 0x%x", prop); in getPropConfigs()
80 const auto* config = getPropConfigOrNull(requestedPropValue.prop); in get()
83 requestedPropValue.prop); in get()
102 auto prop = value.prop; in set() local
103 const auto* config = getPropConfigOrNull(prop); in set()
105 ALOGE("Failed to set value: config not found, property: 0x%x", prop); in set()
125 auto prop = ops.propId; in subscribe() local
[all …]
DVehicleObjectPool.cpp40 if (src.prop == toInt(VehicleProperty::INVALID)) { in obtain()
44 VehiclePropertyType type = getPropType(src.prop); in obtain()
48 dest->prop = src.prop; in obtain()
134 o->prop, mPropType, mVectorSize); in recycle()
/hardware/qcom/display/msm8084/libqdutils/
Dprofiler.cpp51 char prop[PROPERTY_VALUE_MAX]; in Init() local
52 property_get("debug.gr.calcfps", prop, "0"); in Init()
53 debug_fps_level = atoi(prop); in Init()
70 char prop[PROPERTY_VALUE_MAX]; in populate_debug_fps_metadata() local
73 property_get("debug.gr.calcfps.type", prop, "0"); in populate_debug_fps_metadata()
74 debug_fps_metadata.type = (debug_fps_metadata_t::DfmType) atoi(prop); in populate_debug_fps_metadata()
77 property_get("debug.gr.calcfps.timeperiod", prop, "1000"); in populate_debug_fps_metadata()
78 debug_fps_metadata.time_period = atoi(prop); in populate_debug_fps_metadata()
80 property_get("debug.gr.calcfps.period", prop, "10"); in populate_debug_fps_metadata()
81 debug_fps_metadata.period = atoi(prop); in populate_debug_fps_metadata()
[all …]
/hardware/qcom/display/msm8996/libqdutils/
Dprofiler.cpp51 char prop[PROPERTY_VALUE_MAX]; in Init() local
52 property_get("debug.gr.calcfps", prop, "0"); in Init()
53 debug_fps_level = atoi(prop); in Init()
70 char prop[PROPERTY_VALUE_MAX]; in populate_debug_fps_metadata() local
73 property_get("debug.gr.calcfps.type", prop, "0"); in populate_debug_fps_metadata()
74 debug_fps_metadata.type = (debug_fps_metadata_t::DfmType) atoi(prop); in populate_debug_fps_metadata()
77 property_get("debug.gr.calcfps.timeperiod", prop, "1000"); in populate_debug_fps_metadata()
78 debug_fps_metadata.time_period = atoi(prop); in populate_debug_fps_metadata()
80 property_get("debug.gr.calcfps.period", prop, "10"); in populate_debug_fps_metadata()
81 debug_fps_metadata.period = atoi(prop); in populate_debug_fps_metadata()
[all …]
/hardware/qcom/display/msm8909w_3100/libqdutils/
Dprofiler.cpp52 char prop[PROPERTY_VALUE_MAX]; in Init() local
53 property_get("debug.gr.calcfps", prop, "0"); in Init()
54 debug_fps_level = atoi(prop); in Init()
71 char prop[PROPERTY_VALUE_MAX]; in populate_debug_fps_metadata() local
74 property_get("debug.gr.calcfps.type", prop, "0"); in populate_debug_fps_metadata()
75 debug_fps_metadata.type = (debug_fps_metadata_t::DfmType) atoi(prop); in populate_debug_fps_metadata()
78 property_get("debug.gr.calcfps.timeperiod", prop, "1000"); in populate_debug_fps_metadata()
79 debug_fps_metadata.time_period = atoi(prop); in populate_debug_fps_metadata()
81 property_get("debug.gr.calcfps.period", prop, "10"); in populate_debug_fps_metadata()
82 debug_fps_metadata.period = atoi(prop); in populate_debug_fps_metadata()
[all …]
/hardware/qcom/display/msm8998/libqdutils/
Dprofiler.cpp52 char prop[PROPERTY_VALUE_MAX]; in Init() local
53 property_get("debug.gr.calcfps", prop, "0"); in Init()
54 debug_fps_level = atoi(prop); in Init()
71 char prop[PROPERTY_VALUE_MAX]; in populate_debug_fps_metadata() local
74 property_get("debug.gr.calcfps.type", prop, "0"); in populate_debug_fps_metadata()
75 debug_fps_metadata.type = (debug_fps_metadata_t::DfmType) atoi(prop); in populate_debug_fps_metadata()
78 property_get("debug.gr.calcfps.timeperiod", prop, "1000"); in populate_debug_fps_metadata()
79 debug_fps_metadata.time_period = atoi(prop); in populate_debug_fps_metadata()
81 property_get("debug.gr.calcfps.period", prop, "10"); in populate_debug_fps_metadata()
82 debug_fps_metadata.period = atoi(prop); in populate_debug_fps_metadata()
[all …]
/hardware/qcom/display/msm8909/libqdutils/
Dprofiler.cpp52 char prop[PROPERTY_VALUE_MAX]; in Init() local
53 property_get("debug.gr.calcfps", prop, "0"); in Init()
54 debug_fps_level = atoi(prop); in Init()
71 char prop[PROPERTY_VALUE_MAX]; in populate_debug_fps_metadata() local
74 property_get("debug.gr.calcfps.type", prop, "0"); in populate_debug_fps_metadata()
75 debug_fps_metadata.type = (debug_fps_metadata_t::DfmType) atoi(prop); in populate_debug_fps_metadata()
78 property_get("debug.gr.calcfps.timeperiod", prop, "1000"); in populate_debug_fps_metadata()
79 debug_fps_metadata.time_period = atoi(prop); in populate_debug_fps_metadata()
81 property_get("debug.gr.calcfps.period", prop, "10"); in populate_debug_fps_metadata()
82 debug_fps_metadata.period = atoi(prop); in populate_debug_fps_metadata()
[all …]
/hardware/qcom/display/msm8994/libqdutils/
Dprofiler.cpp51 char prop[PROPERTY_VALUE_MAX]; in Init() local
52 property_get("debug.gr.calcfps", prop, "0"); in Init()
53 debug_fps_level = atoi(prop); in Init()
70 char prop[PROPERTY_VALUE_MAX]; in populate_debug_fps_metadata() local
73 property_get("debug.gr.calcfps.type", prop, "0"); in populate_debug_fps_metadata()
74 debug_fps_metadata.type = (debug_fps_metadata_t::DfmType) atoi(prop); in populate_debug_fps_metadata()
77 property_get("debug.gr.calcfps.timeperiod", prop, "1000"); in populate_debug_fps_metadata()
78 debug_fps_metadata.time_period = atoi(prop); in populate_debug_fps_metadata()
80 property_get("debug.gr.calcfps.period", prop, "10"); in populate_debug_fps_metadata()
81 debug_fps_metadata.period = atoi(prop); in populate_debug_fps_metadata()
[all …]
/hardware/qcom/display/msm8226/libqdutils/
Dprofiler.cpp51 char prop[PROPERTY_VALUE_MAX]; in Init() local
52 property_get("debug.gr.calcfps", prop, "0"); in Init()
53 debug_fps_level = atoi(prop); in Init()
70 char prop[PROPERTY_VALUE_MAX]; in populate_debug_fps_metadata() local
73 property_get("debug.gr.calcfps.type", prop, "0"); in populate_debug_fps_metadata()
74 debug_fps_metadata.type = (debug_fps_metadata_t::DfmType) atoi(prop); in populate_debug_fps_metadata()
77 property_get("debug.gr.calcfps.timeperiod", prop, "1000"); in populate_debug_fps_metadata()
78 debug_fps_metadata.time_period = atoi(prop); in populate_debug_fps_metadata()
80 property_get("debug.gr.calcfps.period", prop, "10"); in populate_debug_fps_metadata()
81 debug_fps_metadata.period = atoi(prop); in populate_debug_fps_metadata()
[all …]
/hardware/qcom/display/msm8960/libqdutils/
Dprofiler.cpp50 char prop[PROPERTY_VALUE_MAX]; in Init() local
51 property_get("debug.gr.calcfps", prop, "0"); in Init()
52 debug_fps_level = atoi(prop); in Init()
69 char prop[PROPERTY_VALUE_MAX]; in populate_debug_fps_metadata() local
72 property_get("debug.gr.calcfps.type", prop, "0"); in populate_debug_fps_metadata()
73 debug_fps_metadata.type = (debug_fps_metadata_t::DfmType) atoi(prop); in populate_debug_fps_metadata()
76 property_get("debug.gr.calcfps.timeperiod", prop, "1000"); in populate_debug_fps_metadata()
77 debug_fps_metadata.time_period = atoi(prop); in populate_debug_fps_metadata()
79 property_get("debug.gr.calcfps.period", prop, "10"); in populate_debug_fps_metadata()
80 debug_fps_metadata.period = atoi(prop); in populate_debug_fps_metadata()
[all …]
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/venc/src/
Domx_swvenc_hevc.cpp405 SWVENC_PROP prop; in set_parameter() local
406 prop.ePropId = SWVENC_PROP_ID_DIMENSIONS; in set_parameter()
407 prop.uProperty.sDimensions.nWidth = portDefn->format.video.nFrameWidth; in set_parameter()
408 prop.uProperty.sDimensions.nHeight= portDefn->format.video.nFrameHeight; in set_parameter()
409 SWVENC_STATUS status = SwVenc_SetProperty(m_pSwVenc,&prop); in set_parameter()
510 SWVENC_PROP prop; in set_parameter() local
511 prop.uProperty.nFrameRate = portFmt->xFramerate; in set_parameter()
512 prop.ePropId = SWVENC_PROP_ID_FRAMERATE; in set_parameter()
513 SwVenc_SetProperty(m_pSwVenc, &prop); in set_parameter()
555 SWVENC_PROP prop; in set_parameter() local
[all …]
/hardware/interfaces/automotive/vehicle/2.0/default/tests/
DVehicleHalManager_test.cpp57 auto property = static_cast<VehicleProperty>(requestedPropValue.prop); in get()
73 if (requestedPropValue.prop == kCustomComplexProperty) { in get()
90 pValue->prop = toInt(property); in get()
99 if (toInt(VehicleProperty::MIRROR_FOLD) == propValue.prop in set()
131 return makeKey(v.prop, v.areaId); in makeKey()
134 int64_t makeKey(int32_t prop, int32_t area) const { in makeKey() argument
135 return (static_cast<int64_t>(prop) << 32) | area; in makeKey()
159 requestedValue.prop = property; in invokeGet()
178 << hexString(requestedPropValue.prop); in invokeGet()
265 unsubscribedValue->prop = toInt(VehicleProperty::HVAC_FAN_SPEED); in TEST_F()
[all …]
DVehicleHalTestUtils.h37 .prop = toInt(VehicleProperty::INFO_MAKE),
43 {.prop = toInt(VehicleProperty::HVAC_FAN_SPEED),
54 {.prop = toInt(VehicleProperty::HVAC_SEAT_TEMPERATURE),
66 {.prop = toInt(VehicleProperty::INFO_FUEL_CAPACITY),
71 {.prop = toInt(VehicleProperty::DISPLAY_BRIGHTNESS),
77 .prop = toInt(VehicleProperty::MIRROR_FOLD),
84 {.prop = kCustomComplexProperty,
/hardware/interfaces/broadcastradio/2.0/default/
DBroadcastRadio.cpp44 Properties prop = {}; in initProperties() local
46 prop.maker = "Google"; in initProperties()
47 prop.product = virtualRadio.getName(); in initProperties()
48 prop.supportedIdentifierTypes = hidl_vec<uint32_t>({ in initProperties()
54 prop.vendorInfo = hidl_vec<VendorKeyValue>({ in initProperties()
58 return prop; in initProperties()
/hardware/qcom/camera/msm8998/QCamera2/HAL/
DQCameraParameters.cpp1534 char prop[PROPERTY_VALUE_MAX]; in setPreviewSize() local
1536 property_get("persist.camera.aux.preview.size", prop, "0"); in setPreviewSize()
1537 parse_pair(prop, &width, &height, 'x', NULL); in setPreviewSize()
1618 char prop[PROPERTY_VALUE_MAX]; in setPictureSize() local
1620 property_get("persist.camera.aux.picture.size", prop, "0"); in setPictureSize()
1621 parse_pair(prop, &width, &height, 'x', NULL); in setPictureSize()
1983 char prop[PROPERTY_VALUE_MAX]; in setPreviewFormat() local
1985 memset(prop, 0, sizeof(prop)); in setPreviewFormat()
1986 property_get("persist.camera.preview.ubwc", prop, "1"); in setPreviewFormat()
1988 pFormat = atoi(prop); in setPreviewFormat()
[all …]
/hardware/interfaces/health/2.0/default/
DHealth.cpp92 struct BatteryProperty prop; in getProperty() local
95 status_t err = monitor->getProperty(static_cast<int>(id), &prop); in getProperty()
100 ret = static_cast<T>(prop.valueInt64); in getProperty()
193 struct BatteryProperty prop; in notifyListeners() local
194 status_t ret = battery_monitor_->getProperty(BATTERY_PROP_CURRENT_AVG, &prop); in notifyListeners()
196 currentAvg = static_cast<int32_t>(prop.valueInt64); in notifyListeners()
272 struct BatteryProperty prop; in getHealthInfo() local
273 status_t ret = battery_monitor_->getProperty(BATTERY_PROP_CURRENT_AVG, &prop); in getHealthInfo()
275 currentAvg = static_cast<int32_t>(prop.valueInt64); in getHealthInfo()
/hardware/libhardware/
Dhardware.c201 char prop[PATH_MAX] = {0}; in hw_get_module_by_class() local
221 if (property_get(prop_name, prop, NULL) > 0) { in hw_get_module_by_class()
222 if (hw_module_exists(path, sizeof(path), name, prop) == 0) { in hw_get_module_by_class()
229 if (property_get(variant_keys[i], prop, NULL) == 0) { in hw_get_module_by_class()
232 if (hw_module_exists(path, sizeof(path), name, prop) == 0) { in hw_get_module_by_class()
/hardware/qcom/camera/msm8998/QCamera2/util/
DQCameraCommon.cpp289 char prop[PROPERTY_VALUE_MAX]; in isVideoUBWCEnabled() local
291 memset(prop, 0, sizeof(prop)); in isVideoUBWCEnabled()
294 property_get("video.disable.ubwc", prop, "0"); in isVideoUBWCEnabled()
295 pFormat = atoi(prop); in isVideoUBWCEnabled()

1234