Home
last modified time | relevance | path

Searched refs:property (Results 1 – 25 of 240) sorted by relevance

12345678910

/system/bt/btcore/src/
Dproperty.cc120 void property_free(bt_property_t* property) { in property_free() argument
121 property_free_array(property, 1); in property_free()
134 bool property_is_addr(const bt_property_t* property) { in property_is_addr() argument
135 CHECK(property != NULL); in property_is_addr()
136 return property->type == BT_PROPERTY_BDADDR; in property_is_addr()
139 bool property_is_device_class(const bt_property_t* property) { in property_is_device_class() argument
140 CHECK(property != NULL); in property_is_device_class()
141 return property->type == BT_PROPERTY_CLASS_OF_DEVICE; in property_is_device_class()
144 bool property_is_device_type(const bt_property_t* property) { in property_is_device_type() argument
145 CHECK(property != NULL); in property_is_device_type()
[all …]
/system/bt/btcore/test/
Dproperty_test.cc31 bt_property_t* property = property_new_addr(&addr0); in TEST_F() local
33 EXPECT_EQ(addr0.address[0], ((uint8_t*)property->val)[0]); in TEST_F()
34 EXPECT_EQ(addr0.address[1], ((uint8_t*)property->val)[1]); in TEST_F()
35 EXPECT_EQ(addr0.address[2], ((uint8_t*)property->val)[2]); in TEST_F()
36 EXPECT_EQ(addr0.address[3], ((uint8_t*)property->val)[3]); in TEST_F()
37 EXPECT_EQ(addr0.address[4], ((uint8_t*)property->val)[4]); in TEST_F()
38 EXPECT_EQ(addr0.address[5], ((uint8_t*)property->val)[5]); in TEST_F()
39 EXPECT_EQ(BT_PROPERTY_BDADDR, property->type); in TEST_F()
40 EXPECT_EQ((int)sizeof(RawAddress), property->len); in TEST_F()
42 const RawAddress* addr1 = property_as_addr(property); in TEST_F()
[all …]
/system/bt/btcore/include/
Dproperty.h55 void property_free(bt_property_t* property);
61 bool property_is_addr(const bt_property_t* property);
62 bool property_is_device_class(const bt_property_t* property);
63 bool property_is_device_type(const bt_property_t* property);
64 bool property_is_discovery_timeout(const bt_property_t* property);
65 bool property_is_name(const bt_property_t* property);
66 bool property_is_rssi(const bt_property_t* property);
67 bool property_is_scan_mode(const bt_property_t* property);
68 bool property_is_uuids(const bt_property_t* property);
72 const RawAddress* property_as_addr(const bt_property_t* property);
[all …]
/system/bt/gd/storage/
Dconfig_cache_helper.cc25 void ConfigCacheHelper::SetBool(const std::string& section, const std::string& property, bool value… in SetBool() argument
26 config_cache_.SetProperty(section, property, value ? "true" : "false"); in SetBool()
29 …l<bool> ConfigCacheHelper::GetBool(const std::string& section, const std::string& property) const { in GetBool()
30 auto value_str = config_cache_.GetProperty(section, property); in GetBool()
43 void ConfigCacheHelper::SetUint64(const std::string& section, const std::string& property, uint64_t… in SetUint64() argument
44 config_cache_.SetProperty(section, property, std::to_string(value)); in SetUint64()
47 …64_t> ConfigCacheHelper::GetUint64(const std::string& section, const std::string& property) const { in GetUint64()
48 auto value_str = config_cache_.GetProperty(section, property); in GetUint64()
55 void ConfigCacheHelper::SetUint32(const std::string& section, const std::string& property, uint32_t… in SetUint32() argument
56 config_cache_.SetProperty(section, property, std::to_string(value)); in SetUint32()
[all …]
Dconfig_cache_helper.h45 virtual void SetBool(const std::string& section, const std::string& property, bool value);
46 …virtual std::optional<bool> GetBool(const std::string& section, const std::string& property) const;
47 virtual void SetUint64(const std::string& section, const std::string& property, uint64_t value);
48 …virtual std::optional<uint64_t> GetUint64(const std::string& section, const std::string& property)…
49 virtual void SetUint32(const std::string& section, const std::string& property, uint32_t value);
50 …virtual std::optional<uint32_t> GetUint32(const std::string& section, const std::string& property)…
51 virtual void SetInt64(const std::string& section, const std::string& property, int64_t value);
52 …virtual std::optional<int64_t> GetInt64(const std::string& section, const std::string& property) c…
53 virtual void SetInt(const std::string& section, const std::string& property, int value);
54 virtual std::optional<int> GetInt(const std::string& section, const std::string& property) const;
[all …]
Dconfig_cache.cc120 bool ConfigCache::HasProperty(const std::string& section, const std::string& property) const { in HasProperty()
124 return section_iter->second.find(property) != section_iter->second.end(); in HasProperty()
128 return section_iter->second.find(property) != section_iter->second.end(); in HasProperty()
132 return section_iter->second.find(property) != section_iter->second.end(); in HasProperty()
137 …::string> ConfigCache::GetProperty(const std::string& section, const std::string& property) const { in GetProperty()
141 auto property_iter = section_iter->second.find(property); in GetProperty()
148 auto property_iter = section_iter->second.find(property); in GetProperty()
155 auto property_iter = section_iter->second.find(property); in GetProperty()
163 void ConfigCache::SetProperty(std::string section, std::string property, std::string value) { in SetProperty() argument
165 if (TrimAfterNewLine(section) || TrimAfterNewLine(property) || TrimAfterNewLine(value)) { in SetProperty()
[all …]
Dconfig_cache.h70 virtual bool HasProperty(const std::string& section, const std::string& property) const;
72 …::optional<std::string> GetProperty(const std::string& section, const std::string& property) const;
81 virtual bool IsPersistentProperty(const std::string& property) const;
87 std::string property; member
89 return section == rhs.section && property == rhs.property;
95 …td::vector<SectionAndPropertyValue> GetSectionNamesWithProperty(const std::string& property) const;
100 virtual void SetProperty(std::string section, std::string property, std::string value);
102 virtual bool RemoveProperty(const std::string& section, const std::string& property);
105 virtual void RemoveSectionWithProperty(const std::string& property);
Dmutation_entry.cc33 property(std::move(property_param)), in MutationEntry()
38 ASSERT_LOG(!property.empty(), "property cannot be empty for EntryType::SET"); in MutationEntry()
43 ASSERT_LOG(!property.empty(), "property cannot be empty for EntryType::REMOVE_PROPERTY"); in MutationEntry()
/system/bt/main/shim/
Dconfig.cc41 const std::string& property) { in HasProperty() argument
42 return GetStorage()->GetConfigCache()->HasProperty(section, property); in HasProperty()
46 const std::string& property, int* value) { in GetInt() argument
49 .GetInt(section, property); in GetInt()
57 const std::string& property, int value) { in SetInt() argument
59 .SetInt(section, property, value); in SetInt()
64 const std::string& property, in GetUint64() argument
68 .GetUint64(section, property); in GetUint64()
76 const std::string& property, in SetUint64() argument
79 .SetUint64(section, property, value); in SetUint64()
[all …]
/system/core/logcat/
Dlogpersist11 property=persist.logd.logpersistd
13 case `getprop ${property#persist.}.enable` in
71 logd_logpersistd="`getprop ${property}`"
90 setprop ${property#persist.} "clear"
113 setprop ${property#persist.} "clear"
116 setprop ${property}.buffer "${buffer}"
119 setprop ${property#persist.}.buffer ""
123 setprop ${property}.size "${size}"
126 setprop ${property#persist.}.size ""
139 setprop ${property} ${service}
[all …]
Dlogcatd.rc4 # Make sure any property changes are only performed with /data mounted, after
12 on property:persist.logd.logpersistd.count=*
13 # expect /init to report failure if property empty (default)
16 on property:persist.logd.logpersistd.size=*
19 on property:persist.logd.logpersistd.rotate_kbytes=*
22 on property:persist.logd.logpersistd.buffer=*
25 on property:persist.logd.logpersistd=logcatd
32 on property:logd.logpersistd.enable=true && property:logd.logpersistd=logcatd
38 on property:logd.logpersistd.enable=true && property:logd.logpersistd=clear
46 on property:logd.logpersistd=stop
[all …]
/system/bt/gd/os/android/
Dsystem_properties.cc28 std::optional<std::string> GetSystemProperty(const std::string& property) { in GetSystemProperty() argument
29 if (property.size() >= PROP_NAME_MAX) { in GetSystemProperty()
30 …Property name's maximum size is %d, but %zu chars were given", PROP_NAME_MAX - 1, property.size()); in GetSystemProperty()
34 auto value_len = property_get(property.c_str(), value_array.data(), nullptr); in GetSystemProperty()
41 bool SetSystemProperty(const std::string& property, const std::string& value) { in SetSystemProperty() argument
42 if (property.size() >= PROP_NAME_MAX) { in SetSystemProperty()
43 …Property name's maximum size is %d, but %zu chars were given", PROP_NAME_MAX - 1, property.size()); in SetSystemProperty()
50 auto ret = property_set(property.c_str(), value.c_str()); in SetSystemProperty()
52 LOG_ERROR("Set property %s failed with error code %d", property.c_str(), ret); in SetSystemProperty()
Dsystem_properties_test.cc44 std::string property(PROP_NAME_MAX, 'a'); in TEST() local
47 ASSERT_FALSE(SetSystemProperty(property, "true")); in TEST()
49 ASSERT_FALSE(SetSystemProperty(property, value)); in TEST()
50 ASSERT_FALSE(GetSystemProperty(property)); in TEST()
/system/core/rootdir/
Dinit.usb.configfs.rc1 on property:sys.usb.config=none && property:sys.usb.configfs=1
14 on property:init.svc.adbd=stopped
17 on property:sys.usb.config=adb && property:sys.usb.configfs=1
20 on property:sys.usb.ffs.ready=1 && property:sys.usb.config=adb && property:sys.usb.configfs=1
26 on property:sys.usb.config=mtp && property:sys.usb.configfs=1
32 on property:sys.usb.config=mtp,adb && property:sys.usb.configfs=1
35 on property:sys.usb.ffs.ready=1 && property:sys.usb.config=mtp,adb && property:sys.usb.configfs=1
42 on property:sys.usb.config=ptp && property:sys.usb.configfs=1
48 on property:sys.usb.config=ptp,adb && property:sys.usb.configfs=1
51 on property:sys.usb.ffs.ready=1 && property:sys.usb.config=ptp,adb && property:sys.usb.configfs=1
[all …]
Dinit.usb.rc14 # adbd is controlled via property triggers in init.<platform>.usb.rc
28 on property:sys.usb.config=none && property:sys.usb.configfs=0
37 on property:sys.usb.config=adb && property:sys.usb.configfs=0
47 on property:sys.usb.config=accessory && property:sys.usb.configfs=0
56 on property:sys.usb.config=accessory,adb && property:sys.usb.configfs=0
66 on property:sys.usb.config=audio_source && property:sys.usb.configfs=0
75 on property:sys.usb.config=audio_source,adb && property:sys.usb.configfs=0
85 on property:sys.usb.config=accessory,audio_source && property:sys.usb.configfs=0
94 on property:sys.usb.config=accessory,audio_source,adb && property:sys.usb.configfs=0
105 on boot && property:persist.sys.usb.config=*
[all …]
Dinit-debug.rc1 on property:persist.mmc.max_read_speed=*
4 on property:persist.mmc.max_write_speed=*
7 on property:persist.mmc.cache_size=*
/system/bt/service/hal/
Dfake_bluetooth_interface.cc114 bt_property_t property; in NotifyAdapterNamePropertyChanged() local
115 property.len = sizeof(hal_name); in NotifyAdapterNamePropertyChanged()
116 property.val = &hal_name; in NotifyAdapterNamePropertyChanged()
117 property.type = BT_PROPERTY_BDNAME; in NotifyAdapterNamePropertyChanged()
119 NotifyAdapterPropertiesChanged(1, &property); in NotifyAdapterNamePropertyChanged()
124 bt_property_t property; in NotifyAdapterAddressPropertyChanged() local
125 property.len = RawAddress::kLength; in NotifyAdapterAddressPropertyChanged()
126 property.val = (void*)address->address; in NotifyAdapterAddressPropertyChanged()
127 property.type = BT_PROPERTY_BDADDR; in NotifyAdapterAddressPropertyChanged()
129 NotifyAdapterPropertiesChanged(1, &property); in NotifyAdapterAddressPropertyChanged()
[all …]
/system/bt/tools/bdtool/
Dadapter.c31 static void parse_properties(int num_properties, bt_property_t* property);
111 void device_found(int num_properties, bt_property_t* property) { in device_found() argument
113 parse_properties(num_properties, property); in device_found()
190 static void parse_properties(int num_properties, bt_property_t* property) { in parse_properties() argument
192 switch (property->type) { in parse_properties()
194 const bt_bdname_t* name = property_as_name(property); in parse_properties()
200 const RawAddress* addr = property_as_addr(property); in parse_properties()
208 const Uuid* uuid = property_as_uuids(property, &num_uuid); in parse_properties()
221 bt_device_type_t device_type = property_as_device_type(property); in parse_properties()
239 const bt_device_class_t* dc = property_as_device_class(property); in parse_properties()
[all …]
Dbdtool.c118 bt_property_t* property = in main() local
121 int rc = bt_interface->set_adapter_property(property); in main()
127 property_free(property); in main()
167 bt_property_t* property = adapter_get_property(BT_PROPERTY_BDNAME); in main() local
168 const bt_bdname_t* name = property_as_name(property); in main()
179 bt_property_t* property = property_new_name(bd_name); in main() local
182 CALL_AND_WAIT(error = bt_interface->set_adapter_property(property), in main()
195 property_free(property); in main()
205 bt_property_t* property = in main() local
207 CALL_AND_WAIT(bt_interface->set_adapter_property(property), in main()
[all …]
/system/core/llkd/
Dllkd.rc2 on property:ro.debuggable=*
6 on property:ro.llk.enable=true
9 on property:llk.enable=1
12 on property:llk.enable=0
15 on property:ro.khungtask.enable=true
18 on property:khungtask.enable=1
21 on property:khungtask.enable=0
25 on property:khungtask.enable=true
31 on property:khungtask.enable=false
34 on property:llk.enable=true
/system/media/camera/docs/
Dmetadata_model.py56 @property
60 @property
221 @property
228 @property
232 @property
618 @property
622 @property
626 @property
652 @property
656 @property
[all …]
/system/bt/service/
Dadapter.cc57 bt_property_t* property = properties + i; in ParseRemoteDeviceProps() local
58 switch (property->type) { in ParseRemoteDeviceProps()
60 if (property->len < 0) { in ParseRemoteDeviceProps()
64 bt_bdname_t* hal_name = reinterpret_cast<bt_bdname_t*>(property->val); in ParseRemoteDeviceProps()
69 if (property->len != sizeof(RawAddress)) { in ParseRemoteDeviceProps()
73 address = BtAddrString(reinterpret_cast<RawAddress*>(property->val)); in ParseRemoteDeviceProps()
77 if (property->len < 0) { in ParseRemoteDeviceProps()
81 if (property->len % sizeof(Uuid) != 0) { in ParseRemoteDeviceProps()
84 auto uuids = static_cast<const Uuid*>(property->val); in ParseRemoteDeviceProps()
86 for (size_t i = 0; i < property->len / sizeof(Uuid); ++i) { in ParseRemoteDeviceProps()
[all …]
/system/apex/tests/testdata/
Dtrigger_watchdog.rc2 on boot && property:persist.debug.trigger_watchdog.apex=*
8 on boot && property:debug.trigger_reboot_once_after_activation=1 && property:persist.debug.trigger_…
13 on boot && property:persist.debug.trigger_reboot_twice_after_activation=1 && property:persist.debug…
18 on boot && property:persist.debug.trigger_updatable_crashing_for_testing=1
23 on boot && property:test.apex_revert_test_force_reboot=1
30 on userspace-reboot-fs-remount && property:test.apex_userspace_reboot_simulate_remount_failed=1
35 on userspace-reboot-requested && property:test.apex_userspace_reboot_simulate_shutdown_failed=1
/system/vold/
DCryptoType.cpp28 const CryptoType& default_alg, const char* property) { in lookup_crypto_algorithm() argument
31 property_get(property, paramstr, default_alg.get_config_name()); in lookup_crypto_algorithm()
37 LOG(ERROR) << "Invalid name (" << paramstr << ") for " << property << ". Defaulting to " in lookup_crypto_algorithm()
DCryptoType.h39 constexpr CryptoType set_config_name(const char* property) const { in set_config_name()
40 return CryptoType(property, this->kernel_name, this->keysize); in set_config_name()
55 constexpr CryptoType(const char* property, const char* crypto, size_t ksize) in CryptoType()
56 : config_name(property), kernel_name(crypto), keysize(ksize) {} in CryptoType()
62 const CryptoType& default_alg, const char* property);

12345678910