/system/bt/osi/include/ |
H A D | properties.h | 26 // Get value associated with key |key| into |value|. 32 int osi_property_get(const char* key, char* value, const char* default_value); 34 // Write value of property associated with key |key| to |value|. 36 int osi_property_set(const char* key, const char* value); 41 // returns the value of |key| truncated and coerced into an 43 int32_t osi_property_get_int32(const char* key, int32_t default_value); 48 // returns the value of |key| coerced into a bool. If the property is not set, 50 bool osi_property_get_bool(const char* key, boo [all...] |
/system/update_engine/common/ |
H A D | fake_prefs.cc | 29 void CheckNotNull(const string& key, void* ptr) { argument 31 << "Called Get*() for key \"" << key << "\" with a null parameter."; 64 bool FakePrefs::GetString(const string& key, string* value) const { argument 65 return GetValue(key, value); 68 bool FakePrefs::SetString(const string& key, const string& value) { argument 69 SetValue(key, value); 73 bool FakePrefs::GetInt64(const string& key, int64_t* value) const { argument 74 return GetValue(key, value); 77 bool FakePrefs::SetInt64(const string& key, cons argument 82 GetBoolean(const string& key, bool* value) const argument 86 SetBoolean(const string& key, const bool value) argument 95 Delete(const string& key) argument 120 CheckKeyType(const string& key, PrefType type) const argument 128 SetValue(const string& key, const T& value) argument 141 GetValue(const string& key, T* value) const argument 151 AddObserver(const string& key, ObserverInterface* observer) argument 155 RemoveObserver(const string& key, ObserverInterface* observer) argument [all...] |
H A D | mock_prefs.h | 32 bool(const std::string& key, std::string* value)); 33 MOCK_METHOD2(SetString, bool(const std::string& key, 35 MOCK_CONST_METHOD2(GetInt64, bool(const std::string& key, int64_t* value)); 36 MOCK_METHOD2(SetInt64, bool(const std::string& key, const int64_t value)); 38 MOCK_CONST_METHOD2(GetBoolean, bool(const std::string& key, bool* value)); 39 MOCK_METHOD2(SetBoolean, bool(const std::string& key, const bool value)); 41 MOCK_CONST_METHOD1(Exists, bool(const std::string& key)); 42 MOCK_METHOD1(Delete, bool(const std::string& key)); 44 MOCK_METHOD2(AddObserver, void(const std::string& key, ObserverInterface*)); 46 void(const std::string& key, ObserverInterfac [all...] |
H A D | prefs_interface.h | 33 // Observer class to be notified about key value changes. 38 // Called when the value is set for the observed |key|. 39 virtual void OnPrefSet(const std::string& key) = 0; 41 // Called when the observed |key| is deleted. 42 virtual void OnPrefDeleted(const std::string& key) = 0; 47 // Gets a string |value| associated with |key|. Returns true on 48 // success, false on failure (including when the |key| is not 50 virtual bool GetString(const std::string& key, std::string* value) const = 0; 52 // Associates |key| with a string |value|. Returns true on success, 54 virtual bool SetString(const std::string& key, cons [all...] |
H A D | prefs.cc | 32 bool PrefsBase::GetString(const string& key, string* value) const { argument 33 return storage_->GetKey(key, value); 36 bool PrefsBase::SetString(const string& key, const string& value) { argument 37 TEST_AND_RETURN_FALSE(storage_->SetKey(key, value)); 38 const auto observers_for_key = observers_.find(key); 42 observer->OnPrefSet(key); 47 bool PrefsBase::GetInt64(const string& key, int64_t* value) const { argument 49 if (!GetString(key, &str_value)) 56 bool PrefsBase::SetInt64(const string& key, const int64_t value) { argument 57 return SetString(key, bas 60 GetBoolean(const string& key, bool* value) const argument 76 SetBoolean(const string& key, const bool value) argument 84 Delete(const string& key) argument 95 AddObserver(const string& key, ObserverInterface* observer) argument 99 RemoveObserver(const string& key, ObserverInterface* observer) argument 118 GetKey(const string& key, string* value) const argument 128 SetKey(const string& key, const string& value) argument 147 DeleteKey(const string& key) argument 154 GetFileNameForKey(const string& key, base::FilePath* filename) const argument 169 GetKey(const string& key, string* value) const argument 178 SetKey(const string& key, const string& value) argument 188 DeleteKey(const string& key) argument [all...] |
H A D | fake_prefs.h | 31 // a key in a std::map, suitable for testing. It doesn't allow to set a value on 32 // a key with a different type than the previously set type. This enforces the 33 // type of a given key to be fixed. Also the class checks that the Get*() 34 // methods aren't called on a key set with a different type. 42 bool GetString(const std::string& key, std::string* value) const override; 43 bool SetString(const std::string& key, const std::string& value) override; 44 bool GetInt64(const std::string& key, int64_t* value) const override; 45 bool SetInt64(const std::string& key, const int64_t value) override; 46 bool GetBoolean(const std::string& key, bool* value) const override; 47 bool SetBoolean(const std::string& key, cons [all...] |
/system/libhidl/libhidlcache/ |
H A D | HidlCache.h | 36 HidlCacheLock(sp<HidlCache> cache, const Key& key) : mCache(cache), mKey(key) { argument 45 // lock the IMemory refered by key and keep it alive even if there's no 47 virtual bool lock(const Key& key); 48 virtual sp<Value> unlock(const Key& key); 49 virtual bool flush(const Key& key); 50 // fetch the sp<Value> with key from cache, 52 virtual sp<Value> fetch(const Key& key); 53 virtual sp<HidlCacheLock> lockGuard(const Key& key) { return new HidlCacheLock(this, key); } argument 74 lock(const Key& key) argument 98 unlock(const Key& key) argument 109 flush(const Key& key) argument 117 getCachedLocked(const Key& key) argument 131 fetch(const Key& key) argument [all...] |
/system/bt/osi/src/ |
H A D | properties.cc | 31 int osi_property_get(const char* key, char* value, const char* default_value) { argument 44 return property_get(key, value, default_value); 48 int osi_property_set(const char* key, const char* value) { argument 52 return property_set(key, value); 56 int32_t osi_property_get_int32(const char* key, int32_t default_value) { argument 60 return property_get_int32(key, default_value); 64 bool osi_property_get_bool(const char* key, bool default_value) { argument 68 return property_get_bool(key, default_value);
|
/system/core/fs_mgr/ |
H A D | fs_mgr_priv_boot_config.h | 23 bool fs_mgr_get_boot_config_from_kernel_cmdline(const std::string& key, std::string* out_val); 24 bool fs_mgr_get_boot_config(const std::string& key, std::string* out_val);
|
/system/core/include/cutils/ |
H A D | str_parms.h | 31 void str_parms_del(struct str_parms *str_parms, const char *key); 33 int str_parms_add_str(struct str_parms *str_parms, const char *key, 35 int str_parms_add_int(struct str_parms *str_parms, const char *key, int value); 37 int str_parms_add_float(struct str_parms *str_parms, const char *key, 40 // Returns non-zero if the str_parms contains the specified key. 41 int str_parms_has_key(struct str_parms *str_parms, const char *key); 43 // Gets value associated with the specified key (if present), placing it in the buffer 45 // If 'key' isn't in the parms, then return -ENOENT (-2) and leave 'out_val' untouched. 46 int str_parms_get_str(struct str_parms *str_parms, const char *key, 48 int str_parms_get_int(struct str_parms *str_parms, const char *key, [all...] |
H A D | hashmap.h | 42 int (*hash)(void* key), bool (*equals)(void* keyA, void* keyB)); 50 * Hashes the memory pointed to by key with the given size. Useful for 53 int hashmapHash(void* key, size_t keySize); 56 * Puts value for the given key in the map. Returns pre-existing value if 62 void* hashmapPut(Hashmap* map, void* key, void* value); 65 * Gets a value from the map. Returns NULL if no entry for the given key is 68 void* hashmapGet(Hashmap* map, void* key); 71 * Returns true if the map contains an entry for the given key. 73 bool hashmapContainsKey(Hashmap* map, void* key); 76 * Gets the value for a key [all...] |
/system/core/libcutils/include/cutils/ |
H A D | str_parms.h | 31 void str_parms_del(struct str_parms *str_parms, const char *key); 33 int str_parms_add_str(struct str_parms *str_parms, const char *key, 35 int str_parms_add_int(struct str_parms *str_parms, const char *key, int value); 37 int str_parms_add_float(struct str_parms *str_parms, const char *key, 40 // Returns non-zero if the str_parms contains the specified key. 41 int str_parms_has_key(struct str_parms *str_parms, const char *key); 43 // Gets value associated with the specified key (if present), placing it in the buffer 45 // If 'key' isn't in the parms, then return -ENOENT (-2) and leave 'out_val' untouched. 46 int str_parms_get_str(struct str_parms *str_parms, const char *key, 48 int str_parms_get_int(struct str_parms *str_parms, const char *key, [all...] |
H A D | hashmap.h | 42 int (*hash)(void* key), bool (*equals)(void* keyA, void* keyB)); 50 * Hashes the memory pointed to by key with the given size. Useful for 53 int hashmapHash(void* key, size_t keySize); 56 * Puts value for the given key in the map. Returns pre-existing value if 62 void* hashmapPut(Hashmap* map, void* key, void* value); 65 * Gets a value from the map. Returns NULL if no entry for the given key is 68 void* hashmapGet(Hashmap* map, void* key); 71 * Returns true if the map contains an entry for the given key. 73 bool hashmapContainsKey(Hashmap* map, void* key); 76 * Gets the value for a key [all...] |
/system/core/libcutils/include_vndk/cutils/ |
H A D | str_parms.h | 31 void str_parms_del(struct str_parms *str_parms, const char *key); 33 int str_parms_add_str(struct str_parms *str_parms, const char *key, 35 int str_parms_add_int(struct str_parms *str_parms, const char *key, int value); 37 int str_parms_add_float(struct str_parms *str_parms, const char *key, 40 // Returns non-zero if the str_parms contains the specified key. 41 int str_parms_has_key(struct str_parms *str_parms, const char *key); 43 // Gets value associated with the specified key (if present), placing it in the buffer 45 // If 'key' isn't in the parms, then return -ENOENT (-2) and leave 'out_val' untouched. 46 int str_parms_get_str(struct str_parms *str_parms, const char *key, 48 int str_parms_get_int(struct str_parms *str_parms, const char *key, [all...] |
H A D | hashmap.h | 42 int (*hash)(void* key), bool (*equals)(void* keyA, void* keyB)); 50 * Hashes the memory pointed to by key with the given size. Useful for 53 int hashmapHash(void* key, size_t keySize); 56 * Puts value for the given key in the map. Returns pre-existing value if 62 void* hashmapPut(Hashmap* map, void* key, void* value); 65 * Gets a value from the map. Returns NULL if no entry for the given key is 68 void* hashmapGet(Hashmap* map, void* key); 71 * Returns true if the map contains an entry for the given key. 73 bool hashmapContainsKey(Hashmap* map, void* key); 76 * Gets the value for a key [all...] |
/system/update_engine/scripts/update_payload/ |
H A D | histogram.py | 15 This object serves the sole purpose of formatting (key, val) pairs as an 34 data: list of (key, count) pairs constituting the histogram 42 self.max_key_len = max([len(str(key)) for key, count in self.data]) 43 self.total = sum([count for key, count in self.data]) 49 This simply converts a mapping from names to counts into a list of (key, 66 namer = lambda key: key_names[key] 68 namer = lambda key: key [all...] |
/system/bt/btif/include/ |
H A D | btif_config.h | 33 bool btif_config_exist(const std::string& section, const std::string& key); 34 bool btif_config_get_int(const std::string& section, const std::string& key, 36 bool btif_config_set_int(const std::string& section, const std::string& key, 38 bool btif_config_get_uint64(const std::string& section, const std::string& key, 40 bool btif_config_set_uint64(const std::string& section, const std::string& key, 42 bool btif_config_get_str(const std::string& section, const std::string& key, 44 bool btif_config_set_str(const std::string& section, const std::string& key, 46 bool btif_config_get_bin(const std::string& section, const std::string& key, 48 bool btif_config_set_bin(const std::string& section, const std::string& key, 50 bool btif_config_remove(const std::string& section, const std::string& key); [all...] |
/system/extras/perfprofd/ |
H A D | configreader.h | 28 // key/value pairs. Values come in two flavors: strings, or unsigned 39 unsigned getUnsignedValue(const char *key) const; 40 bool getBoolValue(const char *key) const; 41 std::string getStringValue(const char *key) const; 54 void overrideUnsignedEntry(const char *key, unsigned new_value); 59 void addUnsignedEntry(const char *key, 63 void addStringEntry(const char *key, const char *default_value); 65 bool parseLine(const char *key, const char *value, unsigned linecount);
|
/system/nfc/src/adaptation/ |
H A D | nfc_config.cc | 70 bool NfcConfig::hasKey(const std::string& key) { argument 71 return getInstance().config_.hasKey(key); 74 std::string NfcConfig::getString(const std::string& key) { argument 75 return getInstance().config_.getString(key); 78 std::string NfcConfig::getString(const std::string& key, argument 80 if (hasKey(key)) return getString(key); 84 unsigned NfcConfig::getUnsigned(const std::string& key) { argument 85 return getInstance().config_.getUnsigned(key); 88 unsigned NfcConfig::getUnsigned(const std::string& key, argument 94 getBytes(const std::string& key) argument [all...] |
/system/core/libcutils/ |
H A D | properties.cpp | 33 int8_t property_get_bool(const char *key, int8_t default_value) { argument 34 if (!key) { 41 int len = property_get(key, buf, ""); 61 static intmax_t property_get_imax(const char *key, intmax_t lower_bound, intmax_t upper_bound, argument 63 if (!key) { 71 int len = property_get(key, buf, ""); 81 ALOGV("%s(%s,%" PRIdMAX ") - overflow", __FUNCTION__, key, default_value); 85 ALOGV("%s(%s,%" PRIdMAX ") - out of range", __FUNCTION__, key, default_value); 89 ALOGV("%s(%s,%" PRIdMAX ") - numeric conversion failed", __FUNCTION__, key, 99 int64_t property_get_int64(const char *key, int64_ argument 103 property_get_int32(const char *key, int32_t default_value) argument 110 property_set(const char *key, const char *value) argument 114 property_get(const char *key, char *value, const char *default_value) argument [all...] |
/system/keymaster/tests/ |
H A D | kdf_test.cpp | 33 uint8_t key[128]; local 35 ASSERT_TRUE(kdf.Init(KM_DIGEST_SHA1, key, 128, salt, 128)); 36 ASSERT_TRUE(kdf.Init(KM_DIGEST_SHA_2_256, key, 128, salt, 128)); 37 ASSERT_TRUE(kdf.Init(KM_DIGEST_SHA1, key, 128, nullptr, 0)); 38 ASSERT_FALSE(kdf.Init(KM_DIGEST_MD5, key, 128, salt, 128)); 41 ASSERT_FALSE(kdf.Init(KM_DIGEST_SHA1, key, 0, salt, 128));
|
/system/libvintf/ |
H A D | utils.cpp | 39 std::string getProperty(const std::string& key, 41 return android::base::GetProperty(key, defaultValue); 43 uint64_t getUintProperty(const std::string& key, uint64_t defaultValue, 45 return android::base::GetUintProperty(key, defaultValue, max); 47 bool getBoolProperty(const std::string& key, bool defaultValue) const override { 48 return android::base::GetBoolProperty(key, defaultValue);
|
/system/nfc/src/include/ |
H A D | nfc_config.h | 57 static bool hasKey(const std::string& key); 58 static std::string getString(const std::string& key); 59 static std::string getString(const std::string& key, 61 static unsigned getUnsigned(const std::string& key); 62 static unsigned getUnsigned(const std::string& key, unsigned default_value); 63 static std::vector<uint8_t> getBytes(const std::string& key);
|
/system/keymaster/include/keymaster/km_openssl/ |
H A D | ckdf.h | 28 keymaster_error_t ckdf(const KeymasterKeyBlob& key, const KeymasterBlob& label, 36 inline keymaster_error_t ckdf(const KeymasterKeyBlob& key, const KeymasterBlob& label, argument 38 return ckdf(key, label, &context_chunks, 1 /* num_chunks */, output);
|
/system/bt/osi/include/socket_utils/ |
H A D | sockets.h | 38 char key[64]; local 39 snprintf(key, sizeof(key), ANDROID_SOCKET_ENV_PREFIX "%s", name); 41 const char* val = getenv(key);
|