/hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/ |
H A D | VehicleUtils.h | 42 inline constexpr VehiclePropertyType getPropType(int32_t prop) { argument 44 prop & toInt(VehiclePropertyType::MASK)); 47 inline constexpr VehiclePropertyGroup getPropGroup(int32_t prop) { argument 49 prop & toInt(VehiclePropertyGroup::MASK)); 52 inline constexpr VehicleArea getPropArea(int32_t prop) { argument 53 return static_cast<VehicleArea>(prop & toInt(VehicleArea::MASK)); 56 inline constexpr bool isGlobalProp(int32_t prop) { argument 57 return getPropArea(prop) == VehicleArea::GLOBAL; 60 inline constexpr bool isSystemProperty(int32_t prop) { argument 61 return VehiclePropertyGroup::SYSTEM == getPropGroup(prop); [all...] |
H A D | VehiclePropertyStore.h | 54 int32_t prop; member in struct:android::hardware::automotive::vehicle::V2_0::VehiclePropertyStore::RecordId 78 std::unique_ptr<VehiclePropValue> readValueOrNull(int32_t prop, int32_t area = 0,
|
/hardware/interfaces/bluetooth/1.0/default/test/ |
H A D | bluetooth_address_test.cc | 129 char prop[PROP_VALUE_MAX] = ""; local 130 EXPECT_TRUE(property_get(PERSIST_BDADDR_PROPERTY, prop, NULL) == 0); 131 EXPECT_TRUE(property_get(PROPERTY_BT_BDADDR_PATH, prop, NULL) == 0); 132 EXPECT_TRUE(property_get(FACTORY_BDADDR_PROPERTY, prop, NULL) == 0); 140 EXPECT_TRUE(property_get(PERSIST_BDADDR_PROPERTY, prop, NULL) == 1); 141 EXPECT_TRUE(property_get(PROPERTY_BT_BDADDR_PATH, prop, NULL) == 2); 142 EXPECT_TRUE(property_get(FACTORY_BDADDR_PROPERTY, prop, NULL) == 3); 150 EXPECT_TRUE(property_get(PERSIST_BDADDR_PROPERTY, prop, NULL) == 0); 151 EXPECT_TRUE(property_get(PROPERTY_BT_BDADDR_PATH, prop, NULL) == 0); 152 EXPECT_TRUE(property_get(FACTORY_BDADDR_PROPERTY, prop, NUL 162 char prop[PROP_VALUE_MAX] = ""; local 228 char prop[PROP_VALUE_MAX] = "Before reading"; local [all...] |
/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/ |
H A D | DefaultConfig.h | 69 .prop = toInt(VehicleProperty::INFO_MAKE), 76 .prop = toInt(VehicleProperty::PERF_VEHICLE_SPEED), 86 .prop = toInt(VehicleProperty::PERF_ODOMETER), 95 .prop = toInt(VehicleProperty::ENGINE_RPM), 106 .prop = toInt(VehicleProperty::CURRENT_GEAR), 114 .prop = toInt(VehicleProperty::PARKING_BRAKE_ON), 122 .prop = toInt(VehicleProperty::FUEL_LEVEL_LOW), 130 .prop = toInt(VehicleProperty::HVAC_POWER_ON), 141 .config = {.prop = toInt(VehicleProperty::HVAC_DEFROSTER), 149 {.config = {.prop [all...] |
H A D | EmulatedVehicleHal.cpp | 62 if (propValue.prop == kGenerateFakeDataControllingProperty) { 66 if (mHvacPowerProps.count(propValue.prop)) { 92 if (isGlobalProp(cfg.prop)) { 103 VehiclePropValue prop = { local 104 .prop = cfg.prop, 110 prop.value = valueForAreaIt->second; 112 ALOGW("%s failed to get default value for prop 0x%x area 0x%x", 113 __func__, cfg.prop, curArea); 116 prop [all...] |
H A D | VehicleEmulator.cpp | 66 emulator::VehiclePropGet getProp = rxMsg.prop(0); 73 if (config.prop == getProp.prop()) { 98 emulator::VehiclePropGet getProp = rxMsg.prop(0); 99 int32_t propId = getProp.prop(); 109 VehiclePropValue request = { .prop = propId, .areaId = areaId }; 128 for (const auto& prop : mHal->getAllProperties()) { 130 populateProtoVehiclePropValue(protoVal, &prop); 139 .prop = protoVal.prop(), [all...] |
/hardware/interfaces/automotive/vehicle/2.1/default/impl/vhal_v2_1/ |
H A D | DefaultConfig.h | 42 .prop = WHEEL_TICK, 50 .prop = OBD2_LIVE_FRAME, 57 .prop = OBD2_FREEZE_FRAME, 64 .prop = OBD2_FREEZE_FRAME_INFO, 70 .prop = OBD2_FREEZE_FRAME_CLEAR, 76 .prop = VEHICLE_MAP_SERVICE,
|
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/ |
H A D | VehicleHalManager.cpp | 65 auto prop = properties[i]; local 66 if (mConfigIndex->hasConfig(prop)) { 67 configs.push_back(mConfigIndex->getConfig(prop)); 69 ALOGW("Requested config for undefined property: 0x%x", prop); 80 const auto* config = getPropConfigOrNull(requestedPropValue.prop); 83 requestedPropValue.prop); 102 auto prop = value.prop; local 103 const auto* config = getPropConfigOrNull(prop); 105 ALOGE("Failed to set value: config not found, property: 0x%x", prop); 125 auto prop = ops.propId; local [all...] |
H A D | VehiclePropertyStore.cpp | 29 return prop == other.prop && area == other.area && token == other.token; 33 return prop < other.prop 34 || (prop == other.prop && area < other.area) 35 || (prop == other.prop && area == other.area && token < other.token); 41 mConfigs.insert({ config.prop, RecordConfig { config, tokenFunc } }); 46 if (!mConfigs.count(propValue.prop)) retur 103 readValueOrNull( int32_t prop, int32_t area, int64_t token) const argument [all...] |
H A D | VehicleObjectPool.cpp | 40 if (src.prop == toInt(VehicleProperty::INVALID)) { 44 VehiclePropertyType type = getPropType(src.prop); 48 dest->prop = src.prop; 130 ALOGE("Discarding value for prop 0x%x because it contains " 133 o->prop, mPropType, mVectorSize);
|
/hardware/qcom/display/msm8084/libqdutils/ |
H A D | profiler.cpp | 51 char prop[PROPERTY_VALUE_MAX]; local 52 property_get("debug.gr.calcfps", prop, "0"); 53 debug_fps_level = atoi(prop); 70 char prop[PROPERTY_VALUE_MAX]; local 73 property_get("debug.gr.calcfps.type", prop, "0"); 74 debug_fps_metadata.type = (debug_fps_metadata_t::DfmType) atoi(prop); 77 property_get("debug.gr.calcfps.timeperiod", prop, "1000"); 78 debug_fps_metadata.time_period = atoi(prop); 80 property_get("debug.gr.calcfps.period", prop, "10"); 81 debug_fps_metadata.period = atoi(prop); [all...] |
/hardware/qcom/display/msm8226/libqdutils/ |
H A D | profiler.cpp | 51 char prop[PROPERTY_VALUE_MAX]; local 52 property_get("debug.gr.calcfps", prop, "0"); 53 debug_fps_level = atoi(prop); 70 char prop[PROPERTY_VALUE_MAX]; local 73 property_get("debug.gr.calcfps.type", prop, "0"); 74 debug_fps_metadata.type = (debug_fps_metadata_t::DfmType) atoi(prop); 77 property_get("debug.gr.calcfps.timeperiod", prop, "1000"); 78 debug_fps_metadata.time_period = atoi(prop); 80 property_get("debug.gr.calcfps.period", prop, "10"); 81 debug_fps_metadata.period = atoi(prop); [all...] |
/hardware/qcom/display/msm8909/libqdutils/ |
H A D | profiler.cpp | 51 char prop[PROPERTY_VALUE_MAX]; local 52 property_get("debug.gr.calcfps", prop, "0"); 53 debug_fps_level = atoi(prop); 70 char prop[PROPERTY_VALUE_MAX]; local 73 property_get("debug.gr.calcfps.type", prop, "0"); 74 debug_fps_metadata.type = (debug_fps_metadata_t::DfmType) atoi(prop); 77 property_get("debug.gr.calcfps.timeperiod", prop, "1000"); 78 debug_fps_metadata.time_period = atoi(prop); 80 property_get("debug.gr.calcfps.period", prop, "10"); 81 debug_fps_metadata.period = atoi(prop); [all...] |
/hardware/qcom/display/msm8960/libqdutils/ |
H A D | profiler.cpp | 50 char prop[PROPERTY_VALUE_MAX]; local 51 property_get("debug.gr.calcfps", prop, "0"); 52 debug_fps_level = atoi(prop); 69 char prop[PROPERTY_VALUE_MAX]; local 72 property_get("debug.gr.calcfps.type", prop, "0"); 73 debug_fps_metadata.type = (debug_fps_metadata_t::DfmType) atoi(prop); 76 property_get("debug.gr.calcfps.timeperiod", prop, "1000"); 77 debug_fps_metadata.time_period = atoi(prop); 79 property_get("debug.gr.calcfps.period", prop, "10"); 80 debug_fps_metadata.period = atoi(prop); [all...] |
/hardware/qcom/display/msm8994/libqdutils/ |
H A D | profiler.cpp | 51 char prop[PROPERTY_VALUE_MAX]; local 52 property_get("debug.gr.calcfps", prop, "0"); 53 debug_fps_level = atoi(prop); 70 char prop[PROPERTY_VALUE_MAX]; local 73 property_get("debug.gr.calcfps.type", prop, "0"); 74 debug_fps_metadata.type = (debug_fps_metadata_t::DfmType) atoi(prop); 77 property_get("debug.gr.calcfps.timeperiod", prop, "1000"); 78 debug_fps_metadata.time_period = atoi(prop); 80 property_get("debug.gr.calcfps.period", prop, "10"); 81 debug_fps_metadata.period = atoi(prop); [all...] |
/hardware/qcom/display/msm8996/libqdutils/ |
H A D | profiler.cpp | 51 char prop[PROPERTY_VALUE_MAX]; local 52 property_get("debug.gr.calcfps", prop, "0"); 53 debug_fps_level = atoi(prop); 70 char prop[PROPERTY_VALUE_MAX]; local 73 property_get("debug.gr.calcfps.type", prop, "0"); 74 debug_fps_metadata.type = (debug_fps_metadata_t::DfmType) atoi(prop); 77 property_get("debug.gr.calcfps.timeperiod", prop, "1000"); 78 debug_fps_metadata.time_period = atoi(prop); 80 property_get("debug.gr.calcfps.period", prop, "10"); 81 debug_fps_metadata.period = atoi(prop); [all...] |
/hardware/qcom/display/msm8998/libqdutils/ |
H A D | profiler.cpp | 52 char prop[PROPERTY_VALUE_MAX]; local 53 property_get("debug.gr.calcfps", prop, "0"); 54 debug_fps_level = atoi(prop); 71 char prop[PROPERTY_VALUE_MAX]; local 74 property_get("debug.gr.calcfps.type", prop, "0"); 75 debug_fps_metadata.type = (debug_fps_metadata_t::DfmType) atoi(prop); 78 property_get("debug.gr.calcfps.timeperiod", prop, "1000"); 79 debug_fps_metadata.time_period = atoi(prop); 81 property_get("debug.gr.calcfps.period", prop, "10"); 82 debug_fps_metadata.period = atoi(prop); [all...] |
/hardware/libhardware/modules/vehicle/ |
H A D | vehicle.c | 55 int32_t prop; member in struct:subscription 69 .prop = VEHICLE_PROPERTY_INFO_MAKE, 78 .prop = VEHICLE_PROPERTY_GEAR_SELECTION, 87 .prop = VEHICLE_PROPERTY_DRIVING_STATUS, 96 .prop = VEHICLE_PROPERTY_PARKING_BRAKE_ON, 105 .prop = VEHICLE_PROPERTY_PERF_VEHICLE_SPEED, 114 .prop = VEHICLE_PROPERTY_RADIO_PRESET, 125 vehicle_prop_config_t* find_config(int prop) { argument 128 if (CONFIGS[i].prop == prop) { 408 vdev_subscribe(vehicle_hw_device_t* device, int32_t prop, float sample_rate, int32_t zones UNUSED) argument 473 vdev_unsubscribe(vehicle_hw_device_t* device, int32_t prop) argument [all...] |
/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/proto/ |
H A D | VehicleHalProto.proto | 60 required int32 prop = 1; 75 required int32 prop = 1; 90 required int32 prop = 1; 97 repeated VehiclePropGet prop = 3; // Provided for getConfig, getProperty commands
|
/hardware/libhardware/ |
H A D | hardware.c | 167 char prop[PATH_MAX] = {0}; local 187 if (property_get(prop_name, prop, NULL) > 0) { 188 if (hw_module_exists(path, sizeof(path), name, prop) == 0) { 195 if (property_get(variant_keys[i], prop, NULL) == 0) { 198 if (hw_module_exists(path, sizeof(path), name, prop) == 0) {
|
/hardware/interfaces/automotive/vehicle/2.0/default/tests/ |
H A D | VehicleHalTestUtils.h | 39 .prop = toInt(VehicleProperty::INFO_MAKE), 46 .prop = toInt(VehicleProperty::HVAC_FAN_SPEED), 66 .prop = toInt(VehicleProperty::HVAC_SEAT_TEMPERATURE), 85 .prop = toInt(VehicleProperty::INFO_FUEL_CAPACITY), 97 .prop = toInt(VehicleProperty::DISPLAY_BRIGHTNESS), 109 .prop = toInt(VehicleProperty::MIRROR_FOLD), 117 .prop = kCustomComplexProperty, 228 << " prop: " << hexString(v.prop) << ",\n" 246 << " prop [all...] |
H A D | VehicleHalManager_test.cpp | 56 auto property = static_cast<VehicleProperty>(requestedPropValue.prop); 72 if (requestedPropValue.prop == kCustomComplexProperty) { 89 pValue->prop = toInt(property); 98 if (toInt(VehicleProperty::MIRROR_FOLD) == propValue.prop 131 return makeKey(v.prop, v.areaId); 134 int64_t makeKey(int32_t prop, int32_t area) const { argument 135 return (static_cast<int64_t>(prop) << 32) | area; 159 requestedValue.prop = property; 177 ASSERT_TRUE(called) << "callback wasn't called for prop: " 178 << hexString(requestedPropValue.prop); [all...] |
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/venc/src/ |
H A D | omx_swvenc_hevc.cpp | 405 SWVENC_PROP prop; local 406 prop.ePropId = SWVENC_PROP_ID_DIMENSIONS; 407 prop.uProperty.sDimensions.nWidth = portDefn->format.video.nFrameWidth; 408 prop.uProperty.sDimensions.nHeight= portDefn->format.video.nFrameHeight; 409 SWVENC_STATUS status = SwVenc_SetProperty(m_pSwVenc,&prop); 510 SWVENC_PROP prop; local 511 prop.uProperty.nFrameRate = portFmt->xFramerate; 512 prop.ePropId = SWVENC_PROP_ID_FRAMERATE; 513 SwVenc_SetProperty(m_pSwVenc, &prop); 555 SWVENC_PROP prop; local 680 SWVENC_PROP prop; local 792 SWVENC_PROP prop; local 867 SWVENC_PROP prop; local 889 SWVENC_PROP prop; local 923 SWVENC_PROP prop; local 947 SWVENC_PROP prop; local [all...] |
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/venc/src/ |
H A D | omx_swvenc_hevc.cpp | 405 SWVENC_PROP prop; local 406 prop.ePropId = SWVENC_PROP_ID_DIMENSIONS; 407 prop.uProperty.sDimensions.nWidth = portDefn->format.video.nFrameWidth; 408 prop.uProperty.sDimensions.nHeight= portDefn->format.video.nFrameHeight; 409 SWVENC_STATUS status = SwVenc_SetProperty(m_pSwVenc,&prop); 510 SWVENC_PROP prop; local 511 prop.uProperty.nFrameRate = portFmt->xFramerate; 512 prop.ePropId = SWVENC_PROP_ID_FRAMERATE; 513 SwVenc_SetProperty(m_pSwVenc, &prop); 555 SWVENC_PROP prop; local 680 SWVENC_PROP prop; local 792 SWVENC_PROP prop; local 867 SWVENC_PROP prop; local 889 SWVENC_PROP prop; local 923 SWVENC_PROP prop; local 947 SWVENC_PROP prop; local [all...] |
/hardware/intel/img/hwcomposer/merrifield/ips/common/ |
H A D | HdcpControl.cpp | 52 char prop[PROPERTY_VALUE_MAX]; local 53 if (property_get("debug.hwc.hdcp.enable", prop, "1") > 0) { 54 if (atoi(prop) == 0) { 106 char prop[PROPERTY_VALUE_MAX]; local 107 if (property_get("debug.hwc.hdcp.enable", prop, "1") > 0) { 108 if (atoi(prop) == 0) {
|