/hardware/interfaces/bluetooth/1.0/default/test/ |
D | bluetooth_address_test.cc | 130 char prop[PROP_VALUE_MAX] = ""; in TEST_F() local 131 EXPECT_TRUE(property_get(PERSIST_BDADDR_PROPERTY, prop, NULL) == 0); in TEST_F() 132 EXPECT_TRUE(property_get(PROPERTY_BT_BDADDR_PATH, prop, NULL) == 0); in TEST_F() 133 EXPECT_TRUE(property_get(FACTORY_BDADDR_PROPERTY, prop, NULL) == 0); in TEST_F() 141 EXPECT_TRUE(property_get(PERSIST_BDADDR_PROPERTY, prop, NULL) == 1); in TEST_F() 142 EXPECT_TRUE(property_get(PROPERTY_BT_BDADDR_PATH, prop, NULL) == 2); in TEST_F() 143 EXPECT_TRUE(property_get(FACTORY_BDADDR_PROPERTY, prop, NULL) == 3); in TEST_F() 151 EXPECT_TRUE(property_get(PERSIST_BDADDR_PROPERTY, prop, NULL) == 0); in TEST_F() 152 EXPECT_TRUE(property_get(PROPERTY_BT_BDADDR_PATH, prop, NULL) == 0); in TEST_F() 153 EXPECT_TRUE(property_get(FACTORY_BDADDR_PROPERTY, prop, NULL) == 0); in TEST_F() [all …]
|
/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/ |
D | DefaultConfig.h | 198 .prop = toInt(VehicleProperty::INFO_FUEL_CAPACITY), 206 .prop = toInt(VehicleProperty::INFO_FUEL_TYPE), 214 .prop = toInt(VehicleProperty::INFO_EV_BATTERY_CAPACITY), 222 .prop = toInt(VehicleProperty::INFO_EV_CONNECTOR_TYPE), 230 .prop = toInt(VehicleProperty::INFO_DRIVER_SEAT), 238 .prop = toInt(VehicleProperty::INFO_FUEL_DOOR_LOCATION), 246 .prop = toInt(VehicleProperty::INFO_EV_PORT_LOCATION), 254 .prop = toInt(VehicleProperty::INFO_MULTI_EV_PORT_LOCATIONS), 262 .prop = toInt(VehicleProperty::INFO_MAKE), 269 .prop = toInt(VehicleProperty::INFO_EXTERIOR_DIMENSIONS), [all …]
|
D | EmulatedVehicleHal.cpp | 138 auto propId = requestedPropValue.prop; in get() 195 if (propValue.prop == kGenerateFakeDataControllingProperty) { in set() 203 } else if (mHvacPowerProps.count(propValue.prop)) { in set() 216 switch (propValue.prop) { in set() 242 if (mInEmulator && propValue.prop == toInt(VehicleProperty::DISPLAY_BRIGHTNESS)) { in set() 265 switch (propConfig.prop) { in isDiagnosticProperty() 301 if (isGlobalProp(cfg.prop)) { in onCreate() 308 if (isGlobalProp(cfg.prop)) { in onCreate() 315 VehiclePropValue prop = { in onCreate() local 317 .prop = cfg.prop, in onCreate() [all …]
|
D | VehicleEmulator.cpp | 81 vhal_proto::VehiclePropGet getProp = rxMsg.prop(0); in doGetConfig() 88 if (config.prop == getProp.prop()) { in doGetConfig() 113 vhal_proto::VehiclePropGet getProp = rxMsg.prop(0); in doGetProperty() 114 int32_t propId = getProp.prop(); in doGetProperty() 126 .prop = propId, in doGetProperty() 146 for (const auto& prop : mHal->getAllProperties()) { in doGetPropertyAll() local 148 populateProtoVehiclePropValue(protoVal, &prop); in doGetPropertyAll() 159 .prop = protoVal.prop(), in doSetProperty()
|
D | ProtoMessageConverter.cpp | 74 protoCfg->set_prop(cfg.prop); in toProto() 77 protoCfg->set_value_type(toInt(getPropType(cfg.prop))); in toProto() 92 switch (getPropType(cfg.prop)) { in toProto() 115 ALOGW("%s: Unknown property type: 0x%x", __func__, toInt(getPropType(cfg.prop))); in toProto() 125 CHECK_COPY_PROTOBUF_VAR_TO_VHAL_TYPE(protoCfg, prop, cfg, prop); in fromProto() 152 protoVal->set_prop(val.prop); in toProto() 153 protoVal->set_value_type(toInt(getPropType(val.prop))); in toProto() 183 CHECK_COPY_PROTOBUF_VAR_TO_VHAL_TYPE(protoVal, prop, val, prop); in fromProto()
|
D | JsonFakeValueGenerator.cpp | 123 .prop = rawEvent["prop"].asInt(), in parseFakeValueJson() 129 switch (getPropType(event.prop)) { in parseFakeValueJson() 155 if (isDiagnosticProperty(event.prop)) { in parseFakeValueJson() 160 ALOGE("%s: unsupported type for property: 0x%x", __func__, event.prop); in parseFakeValueJson() 190 bool JsonFakeValueGenerator::isDiagnosticProperty(int32_t prop) { in isDiagnosticProperty() argument 191 return prop == (int32_t)VehicleProperty::OBD2_LIVE_FRAME || in isDiagnosticProperty() 192 prop == (int32_t)VehicleProperty::OBD2_FREEZE_FRAME; in isDiagnosticProperty()
|
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/ |
D | VehicleHalManager.cpp | 75 auto prop = properties[i]; in getPropConfigs() local 76 if (mConfigIndex->hasConfig(prop)) { in getPropConfigs() 77 configs.push_back(mConfigIndex->getConfig(prop)); in getPropConfigs() 79 ALOGW("Requested config for undefined property: 0x%x", prop); in getPropConfigs() 90 const auto* config = getPropConfigOrNull(requestedPropValue.prop); in get() 93 requestedPropValue.prop); in get() 112 auto prop = value.prop; in set() local 113 const auto* config = getPropConfigOrNull(prop); in set() 115 ALOGE("Failed to set value: config not found, property: 0x%x", prop); in set() 135 auto prop = ops.propId; in subscribe() local [all …]
|
D | VehiclePropertyStore.cpp | 29 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() 116 int32_t prop, int32_t area, int64_t token) const { in readValueOrNull() argument 117 RecordId recId = {prop, isGlobalProp(prop) ? 0 : area, token }; in readValueOrNull() 152 .prop = valuePrototype.prop, in getRecordIdLocked() 153 .area = isGlobalProp(valuePrototype.prop) ? 0 : valuePrototype.areaId, in getRecordIdLocked() [all …]
|
/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/tests/ |
D | ProtoMessageConverter_test.cpp | 42 EXPECT_EQ(config.prop, tmpConfig.prop); in CheckPropConfigConversion() 52 auto cfgType = getPropType(config.prop); in CheckPropConfigConversion() 92 VehiclePropValue prop; in TEST() local 93 prop.timestamp = elapsedRealtimeNano(); in TEST() 94 prop.areaId = 123; in TEST() 95 prop.prop = property.config.prop; in TEST() 96 prop.value = property.initialValue; in TEST() 97 prop.status = VehiclePropertyStatus::ERROR; in TEST() 98 CheckPropValueConversion(prop); in TEST()
|
/hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/ |
D | VehicleUtils.h | 43 inline constexpr VehiclePropertyType getPropType(int32_t prop) { in getPropType() argument 45 prop & toInt(VehiclePropertyType::MASK)); in getPropType() 48 inline constexpr VehiclePropertyGroup getPropGroup(int32_t prop) { in getPropGroup() argument 50 prop & toInt(VehiclePropertyGroup::MASK)); in getPropGroup() 53 inline constexpr VehicleArea getPropArea(int32_t prop) { in getPropArea() argument 54 return static_cast<VehicleArea>(prop & toInt(VehicleArea::MASK)); in getPropArea() 57 inline constexpr bool isGlobalProp(int32_t prop) { in isGlobalProp() argument 58 return getPropArea(prop) == VehicleArea::GLOBAL; in isGlobalProp() 61 inline constexpr bool isSystemProperty(int32_t prop) { in isSystemProperty() argument 62 return VehiclePropertyGroup::SYSTEM == getPropGroup(prop); in isSystemProperty()
|
/hardware/qcom/display/msm8084/libqdutils/ |
D | profiler.cpp | 51 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/msm8998/libqdutils/ |
D | profiler.cpp | 52 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/msm8996/libqdutils/ |
D | profiler.cpp | 51 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/ |
D | profiler.cpp | 52 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/ |
D | profiler.cpp | 52 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/msm8226/libqdutils/ |
D | profiler.cpp | 51 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/msm8994/libqdutils/ |
D | profiler.cpp | 51 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/ |
D | profiler.cpp | 50 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/ |
D | omx_swvenc_hevc.cpp | 405 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/ |
D | VehicleHalManager_test.cpp | 57 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 …]
|
D | VehicleHalTestUtils.h | 37 .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/ |
D | BroadcastRadio.cpp | 44 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/ |
D | QCameraParameters.cpp | 1534 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/ |
D | Health.cpp | 92 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/ |
D | hardware.c | 201 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()
|