Home
last modified time | relevance | path

Searched refs:prop_name (Results 1 – 23 of 23) sorted by relevance

/system/tools/sysprop/
DCommon.cpp128 std::string prop_name = prop.prop_name(); in ValidateProp() local
129 if (prop_name.empty()) prop_name = GenerateDefaultPropName(props, prop); in ValidateProp()
131 if (!IsCorrectPropertyOrApiName(prop_name)) { in ValidateProp()
132 if (err) *err = "Invalid prop name \"" + prop.prop_name() + "\""; in ValidateProp()
143 if (std::regex_match(prop_name, vendor_regex) || in ValidateProp()
144 std::regex_match(prop_name, odm_regex)) { in ValidateProp()
146 *err = "Prop \"" + prop_name + in ValidateProp()
152 if (!std::regex_match(prop_name, vendor_regex)) { in ValidateProp()
154 *err = "Prop \"" + prop_name + in ValidateProp()
160 if (!std::regex_match(prop_name, odm_regex)) { in ValidateProp()
[all …]
DCppGen.cpp359 prop.prop_name().c_str()); in GenerateSource()
381 prop.prop_name().c_str()); in GenerateSource()
408 prop.prop_name().c_str(), format_expr); in GenerateSource()
DJavaGen.cpp368 prop.prop_name().c_str()); in GenerateJavaClass()
377 prop.prop_name().c_str()); in GenerateJavaClass()
393 prop.prop_name().c_str(), in GenerateJavaClass()
Dsysprop.proto60 string prop_name = 5; field
/system/core/init/
Daction_parser.cpp36 bool IsActionableProperty(Subcontext* subcontext, const std::string& prop_name) { in IsActionableProperty() argument
50 if (android::base::StartsWith(prop_name, prefix)) { in IsActionableProperty()
55 return CanReadProperty(subcontext->context(), prop_name); in IsActionableProperty()
61 std::string prop_name(trigger.substr(prop_str.length())); in ParsePropertyTrigger() local
62 size_t equal_pos = prop_name.find('='); in ParsePropertyTrigger()
67 std::string prop_value(prop_name.substr(equal_pos + 1)); in ParsePropertyTrigger()
68 prop_name.erase(equal_pos); in ParsePropertyTrigger()
70 if (!IsActionableProperty(subcontext, prop_name)) { in ParsePropertyTrigger()
71 return Error() << "unexported property trigger found: " << prop_name; in ParsePropertyTrigger()
74 if (auto [it, inserted] = property_triggers->emplace(prop_name, prop_value); !inserted) { in ParsePropertyTrigger()
Dutil.cpp316 std::string prop_name; in expand_props() local
326 prop_name = std::string(c, end); in expand_props()
328 size_t def = prop_name.find(":-"); in expand_props()
329 if (def < prop_name.size()) { in expand_props()
330 def_val = prop_name.substr(def + 2); in expand_props()
331 prop_name = prop_name.substr(0, def); in expand_props()
334 prop_name = c; in expand_props()
336 c += prop_name.size(); in expand_props()
339 if (prop_name.empty()) { in expand_props()
344 std::string prop_val = android::base::GetProperty(prop_name, ""); in expand_props()
[all …]
Dproperty_service.cpp544 char prop_name[PROP_NAME_MAX]; in handle_property_set_fd() local
547 if (!socket.RecvChars(prop_name, PROP_NAME_MAX, &timeout_ms) || in handle_property_set_fd()
553 prop_name[PROP_NAME_MAX-1] = 0; in handle_property_set_fd()
559 HandlePropertySet(prop_name, prop_value, socket.source_context(), cr, &error); in handle_property_set_fd()
561 LOG(ERROR) << "Unable to set property '" << prop_name << "' to '" << prop_value in handle_property_set_fd()
Dbuiltins.cpp653 std::string prop_name = "ro.boottime.init.mount_all."s + prop_post_fix; in do_mount_all() local
659 property_set(prop_name, std::to_string(t.duration().count())); in do_mount_all()
Dservice.cpp252 std::string prop_name = "init.svc." + name_; in NotifyStateChange() local
253 property_set(prop_name, new_state); in NotifyStateChange()
/system/libsysprop/srcs/android/sysprop/
DDisplayProperties.sysprop23 prop_name: "debug.egl.force_msaa"
31 prop_name: "debug.egl.trace"
40 prop_name: "debug.force_rtl"
49 prop_name: "debug.layout"
DContactsProperties.sysprop23 prop_name: "sync.contacts.aggregate"
31 prop_name: "debug.cp2.scan_all_packages"
40 prop_name: "contacts.display_photo_size"
57 prop_name: "debug.contacts.ksad"
66 prop_name: "contacts.thumbnail_size"
DVoldProperties.sysprop22 prop_name: "vold.decrypt"
29 prop_name: "vold.encrypt_progress"
36 prop_name: "vold.encrypt_time_remaining"
DCarProperties.sysprop23 prop_name: "android.car.systemuser.headless"
31 prop_name: "android.car.systemuser.bootuseroverrideid"
41 prop_name: "ro.android.car.trusteddevice.device_name_prefix"
DTraceProperties.sysprop23 prop_name: "debug.atrace.user_initiated"
32 prop_name: "persist.traced.enable"
DCryptoProperties.sysprop25 prop_name: "ro.crypto.type"
35 prop_name: "ro.crypto.state"
DSetupWizardProperties.sysprop22 prop_name: "setupwizard.theme"
31 prop_name: "ro.setupwizard.esim_cid_ignore"
DAdbProperties.sysprop23 prop_name: "ro.adb.secure"
/system/libufdt/
Dufdt_prop_dict.c54 const char *prop_name = fdt_string(dict->fdtp, fdt32_to_cpu(prop->nameoff)); in _ufdt_prop_dict_find_index_by_name() local
55 if (dto_strcmp(prop_name, name) == 0) return prop_ptr; in _ufdt_prop_dict_find_index_by_name()
/system/apex/apexd/sysprop/
DApexProperties.sysprop23 prop_name: "ro.apex.updatable"
/system/extras/simpleperf/
Denvironment.cpp357 const std::string prop_name = "security.perf_harden"; in CheckPerfEventLimit() local
358 std::string prop_value = android::base::GetProperty(prop_name, ""); in CheckPerfEventLimit()
367 if (android::base::SetProperty(prop_name, "0")) { in CheckPerfEventLimit()
372 if (android::base::GetProperty(prop_name, "") == "0") { in CheckPerfEventLimit()
393 static bool SetProperty(const char* prop_name, uint64_t value) { in SetProperty() argument
394 if (!android::base::SetProperty(prop_name, std::to_string(value))) { in SetProperty()
395 LOG(ERROR) << "Failed to SetProperty " << prop_name << " to " << value; in SetProperty()
/system/bt/btif/src/
Dbtif_dm.cc392 bt_property_t prop_name; in check_cached_remote_name() local
396 BTIF_STORAGE_FILL_PROPERTY(&prop_name, BT_PROPERTY_BDNAME, in check_cached_remote_name()
399 &p_search_data->inq_res.bd_addr, &prop_name) == BT_STATUS_SUCCESS) { in check_cached_remote_name()
412 bt_property_t prop_name; in get_cod() local
415 BTIF_STORAGE_FILL_PROPERTY(&prop_name, BT_PROPERTY_CLASS_OF_DEVICE, in get_cod()
418 (RawAddress*)remote_bdaddr, &prop_name) == BT_STATUS_SUCCESS) { in get_cod()
436 bt_property_t prop_name; in check_hid_le() local
439 BTIF_STORAGE_FILL_PROPERTY(&prop_name, BT_PROPERTY_TYPE_OF_DEVICE, in check_hid_le()
442 (RawAddress*)remote_bdaddr, &prop_name) == BT_STATUS_SUCCESS) { in check_hid_le()
466 bt_property_t prop_name; in check_sdp_bl() local
[all …]
Dbtif_hh.cc973 bt_property_t prop_name; in btif_hh_upstreams_evt() local
974 BTIF_STORAGE_FILL_PROPERTY(&prop_name, BT_PROPERTY_BDNAME, in btif_hh_upstreams_evt()
977 &p_dev->bd_addr, &prop_name) == BT_STATUS_SUCCESS) { in btif_hh_upstreams_evt()
/system/core/adb/
Dtest_device.py623 prop_name = 'foo.bar'
624 self.device.shell(['setprop', prop_name, '""'])
626 self.device.set_prop(prop_name, 'qux')
628 self.device.shell(['getprop', prop_name])[0].strip(), 'qux')