Home
last modified time | relevance | path

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

1234

/hardware/interfaces/bluetooth/1.0/default/test/
Dbluetooth_address_test.cc130 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/
DDefaultConfig.h81 .prop = toInt(VehicleProperty::INFO_MAKE),
88 .prop = toInt(VehicleProperty::PERF_VEHICLE_SPEED),
98 .prop = toInt(VehicleProperty::PERF_ODOMETER),
107 .prop = toInt(VehicleProperty::ENGINE_RPM),
118 .prop = toInt(VehicleProperty::CURRENT_GEAR),
126 .prop = toInt(VehicleProperty::PARKING_BRAKE_ON),
134 .prop = toInt(VehicleProperty::FUEL_LEVEL_LOW),
142 .prop = toInt(VehicleProperty::HVAC_POWER_ON),
153 .config = {.prop = toInt(VehicleProperty::HVAC_DEFROSTER),
161 {.config = {.prop = toInt(VehicleProperty::HVAC_RECIRC_ON),
[all …]
DVehicleEmulator.cpp66 emulator::VehiclePropGet getProp = rxMsg.prop(0); in doGetConfig()
73 if (config.prop == getProp.prop()) { in doGetConfig()
98 emulator::VehiclePropGet getProp = rxMsg.prop(0); in doGetProperty()
99 int32_t propId = getProp.prop(); in doGetProperty()
109 VehiclePropValue request = { .prop = propId, .areaId = areaId }; in doGetProperty()
128 for (const auto& prop : mHal->getAllProperties()) { in doGetPropertyAll() local
130 populateProtoVehiclePropValue(protoVal, &prop); in doGetPropertyAll()
139 .prop = protoVal.prop(), in doSetProperty()
232 protoCfg->set_prop(cfg.prop); in populateProtoVehicleConfig()
235 protoCfg->set_value_type(toInt(getPropType(cfg.prop))); in populateProtoVehicleConfig()
[all …]
DEmulatedVehicleHal.cpp108 auto propId = requestedPropValue.prop; in get()
135 if (propValue.prop == kGenerateFakeDataControllingProperty) { in set()
140 } else if (mHvacPowerProps.count(propValue.prop)) { in set()
148 } else if (propValue.prop == OBD2_FREEZE_FRAME_CLEAR) { in set()
150 } else if (propValue.prop == VEHICLE_MAP_SERVICE) { in set()
166 switch (propConfig.prop) { in isDiagnosticProperty()
189 if (isGlobalProp(cfg.prop)) { in onCreate()
200 VehiclePropValue prop = { in onCreate() local
201 .prop = cfg.prop, in onCreate()
207 prop.value = valueForAreaIt->second; in onCreate()
[all …]
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/
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 …]
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()
46 if (!mConfigs.count(propValue.prop)) return false; in writeValue()
104 int32_t prop, int32_t area, int64_t token) const { in readValueOrNull() argument
105 RecordId recId = {prop, isGlobalProp(prop) ? 0 : area, token }; in readValueOrNull()
140 .prop = valuePrototype.prop, in getRecordIdLocked()
141 .area = isGlobalProp(valuePrototype.prop) ? 0 : valuePrototype.areaId, in getRecordIdLocked()
[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()
133 o->prop, mPropType, mVectorSize); in recycle()
/hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/
DVehicleUtils.h42 inline constexpr VehiclePropertyType getPropType(int32_t prop) { in getPropType() argument
44 prop & toInt(VehiclePropertyType::MASK)); in getPropType()
47 inline constexpr VehiclePropertyGroup getPropGroup(int32_t prop) { in getPropGroup() argument
49 prop & toInt(VehiclePropertyGroup::MASK)); in getPropGroup()
52 inline constexpr VehicleArea getPropArea(int32_t prop) { in getPropArea() argument
53 return static_cast<VehicleArea>(prop & toInt(VehicleArea::MASK)); in getPropArea()
56 inline constexpr bool isGlobalProp(int32_t prop) { in isGlobalProp() argument
57 return getPropArea(prop) == VehicleArea::GLOBAL; in isGlobalProp()
60 inline constexpr bool isSystemProperty(int32_t prop) { in isSystemProperty() argument
61 return VehiclePropertyGroup::SYSTEM == getPropGroup(prop); in isSystemProperty()
/hardware/libhardware/modules/vehicle/
Dvehicle.c55 int32_t prop; member
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) { in find_config() argument
128 if (CONFIGS[i].prop == prop) { in find_config()
193 vehicle_prop_config_t* config = find_config(data->prop); in vdev_get()
[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/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/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/sdm845/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.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/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/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/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/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()
132 return makeKey(v.prop, v.areaId); in makeKey()
135 int64_t makeKey(int32_t prop, int32_t area) const { in makeKey() argument
136 return (static_cast<int64_t>(prop) << 32) | area; in makeKey()
160 requestedValue.prop = property; in invokeGet()
179 << hexString(requestedPropValue.prop); in invokeGet()
273 unsubscribedValue->prop = toInt(VehicleProperty::HVAC_FAN_SPEED); in TEST_F()
[all …]
DVehicleHalTestUtils.h39 .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,
/hardware/libhardware/
Dhardware.c167 char prop[PATH_MAX] = {0}; in hw_get_module_by_class() local
187 if (property_get(prop_name, prop, NULL) > 0) { in hw_get_module_by_class()
188 if (hw_module_exists(path, sizeof(path), name, prop) == 0) { in hw_get_module_by_class()
195 if (property_get(variant_keys[i], prop, NULL) == 0) { in hw_get_module_by_class()
198 if (hw_module_exists(path, sizeof(path), name, prop) == 0) { in hw_get_module_by_class()
/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/intel/img/hwcomposer/moorefield_hdmi/ips/common/
DHdcpControl.cpp53 char prop[PROPERTY_VALUE_MAX]; in startHdcp() local
54 if (property_get("debug.hwc.hdcp.enable", prop, "1") > 0) { in startHdcp()
55 if (atoi(prop) == 0) { in startHdcp()
107 char prop[PROPERTY_VALUE_MAX]; in startHdcpAsync() local
108 if (property_get("debug.hwc.hdcp.enable", prop, "1") > 0) { in startHdcpAsync()
109 if (atoi(prop) == 0) { in startHdcpAsync()
/hardware/intel/img/hwcomposer/merrifield/ips/common/
DHdcpControl.cpp52 char prop[PROPERTY_VALUE_MAX]; in startHdcp() local
53 if (property_get("debug.hwc.hdcp.enable", prop, "1") > 0) { in startHdcp()
54 if (atoi(prop) == 0) { in startHdcp()
106 char prop[PROPERTY_VALUE_MAX]; in startHdcpAsync() local
107 if (property_get("debug.hwc.hdcp.enable", prop, "1") > 0) { in startHdcpAsync()
108 if (atoi(prop) == 0) { in startHdcpAsync()
/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