Home
last modified time | relevance | path

Searched refs:props (Results 1 – 25 of 49) sorted by relevance

12

/system/update_engine/
Dimage_properties_android_unittest.cc68 ImageProperties props = LoadImageProperties(&fake_system_state_); in TEST_F() local
69 EXPECT_EQ("abc", props.product_id); in TEST_F()
70 EXPECT_EQ("def", props.system_id); in TEST_F()
71 EXPECT_EQ("1.2.3.4", props.version); in TEST_F()
72 EXPECT_EQ("5.6.7.8", props.system_version); in TEST_F()
73 EXPECT_EQ("stable-channel", props.current_channel); in TEST_F()
74 EXPECT_EQ(constants::kOmahaDefaultProductionURL, props.omaha_url); in TEST_F()
80 ImageProperties props = LoadImageProperties(&fake_system_state_); in TEST_F() local
81 EXPECT_EQ("abc:def", props.product_id); in TEST_F()
82 EXPECT_EQ("abc:bar", props.system_id); in TEST_F()
[all …]
Dimage_properties_chromeos_unittest.cc64 ImageProperties props = LoadImageProperties(&fake_system_state_); in TEST_F() local
65 EXPECT_EQ("arm-generic", props.board); in TEST_F()
66 EXPECT_EQ("{87efface-864d-49a5-9bb3-4b050a7c227a}", props.product_id); in TEST_F()
67 EXPECT_EQ("0.2.2.3", props.version); in TEST_F()
68 EXPECT_EQ("dev-channel", props.current_channel); in TEST_F()
69 EXPECT_EQ("http://www.google.com", props.omaha_url); in TEST_F()
76 ImageProperties props = LoadImageProperties(&fake_system_state_); in TEST_F() local
77 EXPECT_EQ("{58c35cef-9d30-476e-9098-ce20377d535d}", props.product_id); in TEST_F()
85 ImageProperties props = LoadImageProperties(&fake_system_state_); in TEST_F() local
86 EXPECT_EQ("0.2.2.3", props.version); in TEST_F()
[all …]
/system/tools/sysprop/
DCommon.cpp47 std::string GenerateDefaultPropName(const sysprop::Properties& props,
50 Result<void> ValidateProp(const sysprop::Properties& props,
52 Result<void> ValidateProps(const sysprop::Properties& props);
54 std::string GenerateDefaultPropName(const sysprop::Properties& props, in GenerateDefaultPropName() argument
60 switch (props.owner()) { in GenerateDefaultPropName()
108 Result<void> ValidateProp(const sysprop::Properties& props, in ValidateProp() argument
138 if (prop_name.empty()) prop_name = GenerateDefaultPropName(props, prop); in ValidateProp()
149 switch (props.owner()) { in ValidateProp()
206 Result<void> ValidateProps(const sysprop::Properties& props) { in ValidateProps() argument
207 std::vector<std::string> names = android::base::Split(props.module(), "."); in ValidateProps()
[all …]
DApiChecker.cpp28 std::unordered_map<std::string, sysprop::Property> props; in CompareProps() local
32 props[prop.api_name()] = prop; in CompareProps()
46 auto itr = props.find(latest_prop.api_name()); in CompareProps()
47 if (itr == props.end()) { in CompareProps()
100 propsMap[current.props(i).module()] = current.props(i); in CompareApis()
108 CompareProps(latest.props(i), propsMap[latest.props(i).module()]); in CompareApis()
DJavaGen.cpp167 std::string GetJavaPackageName(const sysprop::Properties& props);
168 std::string GetJavaClassName(const sysprop::Properties& props);
171 std::string GenerateJavaClass(const sysprop::Properties& props,
281 std::string GetJavaPackageName(const sysprop::Properties& props) { in GetJavaPackageName() argument
282 const std::string& module = props.module(); in GetJavaPackageName()
286 std::string GetJavaClassName(const sysprop::Properties& props) { in GetJavaClassName() argument
287 const std::string& module = props.module(); in GetJavaClassName()
291 std::string GenerateJavaClass(const sysprop::Properties& props, in GenerateJavaClass() argument
293 std::string package_name = GetJavaPackageName(props); in GenerateJavaClass()
294 std::string class_name = GetJavaClassName(props); in GenerateJavaClass()
[all …]
DCppGen.cpp204 std::string GetCppNamespace(const sysprop::Properties& props);
206 std::string GenerateHeader(const sysprop::Properties& props,
208 std::string GenerateSource(const sysprop::Properties& props,
246 std::string GetCppNamespace(const sysprop::Properties& props) { in GetCppNamespace() argument
247 return std::regex_replace(props.module(), kRegexDot, "::"); in GetCppNamespace()
250 std::string GenerateHeader(const sysprop::Properties& props, in GenerateHeader() argument
259 std::string cpp_namespace = GetCppNamespace(props); in GenerateHeader()
264 for (int i = 0; i < props.prop_size(); ++i) { in GenerateHeader()
265 const sysprop::Property& prop = props.prop(i); in GenerateHeader()
304 std::string GenerateSource(const sysprop::Properties& props, in GenerateSource() argument
[all …]
DApiDumpMain.cpp60 for (auto& [name, props] : modules) { in main()
62 std::sort(props.mutable_prop()->begin(), props.mutable_prop()->end(), in main()
64 *api.add_props() = std::move(props); in main()
/system/core/healthd/
DBatteryMonitor.cpp85 auto* props = &health_info_2_1->legacy.legacy; in initHealthInfo() local
86 props->batteryStatus = BatteryStatus::UNKNOWN; in initHealthInfo()
87 props->batteryHealth = BatteryHealth::UNKNOWN; in initHealthInfo()
248 HealthInfo_1_0& props = mHealthInfo->legacy.legacy; in updateValues() local
251 props.batteryPresent = getBooleanField(mHealthdConfig->batteryPresentPath); in updateValues()
253 props.batteryPresent = mBatteryDevicePresent; in updateValues()
255 props.batteryLevel = mBatteryFixedCapacity ? in updateValues()
258 props.batteryVoltage = getIntField(mHealthdConfig->batteryVoltagePath) / 1000; in updateValues()
261 props.batteryCurrent = getIntField(mHealthdConfig->batteryCurrentNowPath); in updateValues()
264 props.batteryFullCharge = getIntField(mHealthdConfig->batteryFullChargePath); in updateValues()
[all …]
DHealthServiceHealthd.cpp74 int healthd_board_battery_update(struct android::BatteryProperties* props) { in healthd_board_battery_update() argument
82 convertToHealthInfo(props, info); in healthd_board_battery_update()
83 gHealth_1_0->update(info, [props, &logthis](int32_t ret, const auto& infoOut) { in healthd_board_battery_update()
85 convertFromHealthInfo(infoOut, props); in healthd_board_battery_update()
/system/libufdt/
Dufdt_prop_dict.c50 const struct fdt_property **prop_ptr = &dict->props[idx]; in _ufdt_prop_dict_find_index_by_name()
72 const struct fdt_property **props = in _ufdt_prop_dict_construct_int() local
74 if (props == NULL) return -1; in _ufdt_prop_dict_construct_int()
75 dto_memset(props, 0, size * entry_size); in _ufdt_prop_dict_construct_int()
80 dict->props = props; in _ufdt_prop_dict_construct_int()
92 dto_free(dict->props); in ufdt_prop_dict_destruct()
108 const struct fdt_property *prop = dict->props[i]; in _ufdt_prop_dict_enlarge_if_needed()
120 dto_free(dict->props); in _ufdt_prop_dict_enlarge_if_needed()
123 dict->props = temp_dict.props; in _ufdt_prop_dict_enlarge_if_needed()
Dufdt_prop_dict.h26 const struct fdt_property **props; member
/system/libsysprop/srcs/api/
DPlatformProperties-latest.txt1 props {
10 props {
26 props {
56 props {
74 props {
102 props {
110 props {
126 props {
143 props {
DPlatformProperties-current.txt1 props {
10 props {
19 props {
62 props {
92 props {
110 props {
138 props {
152 props {
170 props {
179 props {
[all …]
/system/update_engine/payload_generator/
Dxz_android.cc124 CXzProps props; in XzCompress() local
125 XzProps_Init(&props); in XzCompress()
129 props.checkId = XZ_CHECK_NO; in XzCompress()
141 props.lzma2Props = lzma2Props; in XzCompress()
143 props.filterProps.id = GetFilterID(in); in XzCompress()
147 SRes res = Xz_Encode(&out_writer, &in_reader, &props, nullptr /* progress */); in XzCompress()
/system/extras/simpleperf/scripts/inferno/
Dinferno.py116 process.props['ro.product.manufacturer'] = manufacturer
117 process.props['ro.product.model'] = model
118 process.props['ro.product.name'] = name
120 process.props['trace_offcpu'] = True
125 process.props['trace_offcpu'] = False
181 if process.props['trace_offcpu']:
203 if 'ro.product.model' in process.props:
206 (process.props["ro.product.model"],
207 process.props["ro.product.name"],
208 process.props["ro.product.manufacturer"]))
[all …]
/system/core/healthd/include/healthd/
Dhealthd.h78 bool (*screen_on)(android::BatteryProperties *props);
95 void (*battery_update)(struct android::BatteryProperties *props);
106 struct android::BatteryProperties *props);
131 int healthd_board_battery_update(struct android::BatteryProperties *props);
/system/bt/service/common/android/bluetooth/
DIBluetoothCallback.aidl38 in BluetoothRemoteDeviceProps props); in OnGetRemoteDeviceProperties() argument
40 in BluetoothRemoteDeviceProps props); in OnDeviceFound() argument
/system/bt/build/
Dfluoride.go35 type props struct {
40 p := &props{}
/system/apex/apexd/sysprop/api/
Dcom.android.sysprop.apex-latest.txt1 props {
Dcom.android.sysprop.apex-current.txt1 props {
/system/incremental_delivery/sysprop/api/
Dcom.android.sysprop.incremental-latest.txt1 props {
Dcom.android.sysprop.incremental-current.txt1 props {
/system/core/init/sysprop/api/
Dcom.android.sysprop.init-latest.txt1 props {
Dcom.android.sysprop.init-current.txt1 props {
/system/tools/sysprop/include/
DCommon.h27 std::string GetModuleName(const sysprop::Properties& props);

12