Home
last modified time | relevance | path

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

123

/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.cpp205 std::string GetJavaPackageName(const sysprop::Properties& props);
206 std::string GetJavaClassName(const sysprop::Properties& props);
209 std::string GenerateJavaClass(const sysprop::Properties& props,
345 std::string GetJavaPackageName(const sysprop::Properties& props) { in GetJavaPackageName() argument
346 const std::string& module = props.module(); in GetJavaPackageName()
350 std::string GetJavaClassName(const sysprop::Properties& props) { in GetJavaClassName() argument
351 const std::string& module = props.module(); in GetJavaClassName()
355 std::string GenerateJavaClass(const sysprop::Properties& props, in GenerateJavaClass() argument
357 std::string package_name = GetJavaPackageName(props); in GenerateJavaClass()
358 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()
61 auto& prop_list = *props.mutable_prop(); in main()
76 *api.add_props() = std::move(props); in main()
DTypeChecker.cpp100 for (auto& props : api.props()) { in CheckPropertyTypes() local
101 for (auto& prop : props.prop()) { in CheckPropertyTypes()
/system/libufdt/
Dufdt_prop_dict.c50 const struct fdt_property **prop_ptr = &dict->props[idx]; in _ufdt_prop_dict_find_index_by_name()
73 const struct fdt_property **props = in _ufdt_prop_dict_construct_int() local
75 if (props == NULL) return -1; in _ufdt_prop_dict_construct_int()
76 dto_memset(props, 0, size * entry_size); in _ufdt_prop_dict_construct_int()
81 dict->props = props; in _ufdt_prop_dict_construct_int()
93 dto_free(dict->props); in ufdt_prop_dict_destruct()
109 const struct fdt_property *prop = dict->props[i]; in _ufdt_prop_dict_enlarge_if_needed()
121 dto_free(dict->props); in _ufdt_prop_dict_enlarge_if_needed()
124 dict->props = temp_dict.props; in _ufdt_prop_dict_enlarge_if_needed()
Dufdt_prop_dict.h26 const struct fdt_property **props; member
/system/core/healthd/
DBatteryMonitor_v1.cpp415 static void doLogValues(const HealthInfo& props, const struct healthd_config& healthd_config) { in doLogValues() argument
418 if (props.batteryPresent) { in doLogValues()
420 props.batteryLevel, props.batteryVoltageMillivolts, in doLogValues()
421 props.batteryTemperatureTenthsCelsius < 0 ? "-" : "", in doLogValues()
422 abs(props.batteryTemperatureTenthsCelsius / 10), in doLogValues()
423 abs(props.batteryTemperatureTenthsCelsius % 10), props.batteryHealth, in doLogValues()
424 props.batteryStatus); in doLogValues()
429 props.batteryCurrentMicroamps); in doLogValues()
434 props.batteryFullChargeUah); in doLogValues()
439 props.batteryCycleCount); in doLogValues()
[all …]
DBatteryMonitor.cpp501 static void doLogValues(const HealthInfo& props, const struct healthd_config& healthd_config) { in doLogValues() argument
504 if (props.batteryPresent) { in doLogValues()
506 props.batteryLevel, props.batteryVoltageMillivolts, in doLogValues()
507 props.batteryTemperatureTenthsCelsius < 0 ? "-" : "", in doLogValues()
508 abs(props.batteryTemperatureTenthsCelsius / 10), in doLogValues()
509 abs(props.batteryTemperatureTenthsCelsius % 10), props.batteryHealth, in doLogValues()
510 props.batteryStatus); in doLogValues()
515 props.batteryCurrentMicroamps); in doLogValues()
520 props.batteryFullChargeUah); in doLogValues()
525 props.batteryCycleCount); in doLogValues()
[all …]
/system/update_engine/payload_generator/
Dxz_android.cc123 CXzProps props; in XzCompress() local
124 XzProps_Init(&props); in XzCompress()
128 props.checkId = XZ_CHECK_NO; in XzCompress()
140 props.lzma2Props = lzma2Props; in XzCompress()
142 props.filterProps.id = GetFilterID(in); in XzCompress()
146 SRes res = Xz_Encode(&out_writer, &in_reader, &props, nullptr /* progress */); in XzCompress()
/system/extras/simpleperf/scripts/inferno/
Dinferno.py119 process.props['ro.product.manufacturer'] = manufacturer
120 process.props['ro.product.model'] = model
121 process.props['ro.product.name'] = name
123 process.props['trace_offcpu'] = True
128 process.props['trace_offcpu'] = False
184 if process.props['trace_offcpu']:
206 if 'ro.product.model' in process.props:
209 (process.props["ro.product.model"],
210 process.props["ro.product.name"],
211 process.props["ro.product.manufacturer"]))
[all …]
/system/core/healthd/include/healthd/
Dhealthd.h84 bool (*screen_on)(android::BatteryProperties *props);
101 void (*battery_update)(struct android::BatteryProperties *props);
112 struct android::BatteryProperties *props);
137 int healthd_board_battery_update(struct android::BatteryProperties *props);
/system/libsysprop/srcs/api/
DPlatformProperties-latest.txt1 props {
10 props {
19 props {
42 props {
72 props {
90 props {
118 props {
177 props {
195 props {
209 props {
[all …]
DPlatformProperties-current.txt1 props {
10 props {
240 props {
249 props {
265 props {
293 props {
301 props {
314 props {
339 props {
361 props {
[all …]
/system/apex/apexd/sysprop/api/
Dcom.android.sysprop.apex-latest.txt1 props {
/system/incremental_delivery/sysprop/api/
Dcom.android.sysprop.incremental-latest.txt1 props {
/system/core/init/sysprop/api/
Dcom.android.sysprop.init-current.txt1 props {
Dcom.android.sysprop.init-latest.txt1 props {
/system/sepolicy/prebuilts/api/33.0/private/
Dproperty.te80 # init is in coredomain, but should be able to read/write all props.
81 # dumpstate is also in coredomain, but should be able to read all props.
417 # Allow the shell to set MTE & GWP-ASan props, so that non-root users with adb
419 # set MTE props, so Developer Options can set them.
588 # ro.product.property_source_order is useless after initialization of ro.product.* props.
619 # Only init and the remote provisioner can set the ro.remote_provisioning.* props
/system/tools/sysprop/include/
DCommon.h27 std::string GetModuleName(const sysprop::Properties& props);
/system/core/healthd/api/
Dcharger_sysprop-latest.txt1 props {
/system/hardware/interfaces/suspend/1.0/default/api/
DSuspendProperties-current.txt1 props {
DSuspendProperties-latest.txt1 props {
/system/libvintf/
Dcheck_vintf.cpp99 void setProperties(const Properties& props) { mProps.insert(props.begin(), props.end()); } in setProperties() argument
442 android::base::Result<void> checkAllFiles(const Dirmap& dirmap, const Properties& props, in checkAllFiles() argument
446 hostPropertyFetcher->setProperties(props); in checkAllFiles()
506 int checkOne(const Dirmap& dirmap, const Properties& props) { in checkOne() argument
514 hostPropertyFetcher->setProperties(props); in checkOne()
/system/sepolicy/prebuilts/api/31.0/private/
Dproperty.te69 # init is in coredomain, but should be able to read/write all props.
70 # dumpstate is also in coredomain, but should be able to read all props.
396 # Allow the shell to set MTE props, so that non-root users with adb shell
398 # Allow system apps to set MTE props, so Developer Options can set them.
565 # ro.product.property_source_order is useless after initialization of ro.product.* props.

123