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()
160 switch (props.owner()) { in ValidateProp()
202 Result<void> ValidateProps(const sysprop::Properties& props) { in ValidateProps() argument
203 std::vector<std::string> names = android::base::Split(props.module(), "."); in ValidateProps()
[all …]
DJavaGen.cpp168 std::string GetJavaPackageName(const sysprop::Properties& props);
169 std::string GetJavaClassName(const sysprop::Properties& props);
172 std::string GenerateJavaClass(const sysprop::Properties& props,
283 std::string GetJavaPackageName(const sysprop::Properties& props) { in GetJavaPackageName() argument
284 const std::string& module = props.module(); in GetJavaPackageName()
288 std::string GetJavaClassName(const sysprop::Properties& props) { in GetJavaClassName() argument
289 const std::string& module = props.module(); in GetJavaClassName()
293 std::string GenerateJavaClass(const sysprop::Properties& props, in GenerateJavaClass() argument
295 std::string package_name = GetJavaPackageName(props); in GenerateJavaClass()
296 std::string class_name = GetJavaClassName(props); in GenerateJavaClass()
[all …]
DApiChecker.cpp28 std::unordered_map<std::string, sysprop::Property> props; in CompareProps() local
33 props[prop.api_name()] = prop; in CompareProps()
54 auto itr = props.find(latest_prop.api_name()); in CompareProps()
56 if (itr != props.end()) { in CompareProps()
123 propsMap[current.props(i).module()] = current.props(i); in CompareApis()
131 CompareProps(latest.props(i), propsMap[latest.props(i).module()]); in CompareApis()
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()
DTypeChecker.cpp97 for (auto& props : api.props()) { in CheckPropertyTypes() local
98 for (auto& prop : props.prop()) { in CheckPropertyTypes()
/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 {
32 props {
62 props {
80 props {
108 props {
116 props {
132 props {
149 props {
DPlatformProperties-current.txt1 props {
10 props {
19 props {
55 props {
85 props {
103 props {
131 props {
174 props {
183 props {
191 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-current.txt1 props {
Dcom.android.sysprop.apex-latest.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/bt/service/
Dadapter.h94 const RemoteDeviceProps& props);
98 const RemoteDeviceProps& props);

12