Searched refs:key (Results 1 - 25 of 280) sorted by relevance

1234567891011>>

/system/bt/osi/include/
H A Dproperties.h28 // Get value associated with key |key| into |value|.
34 int osi_property_get(const char* key, char* value, const char* default_value);
36 // Write value of property associated with key |key| to |value|.
38 int osi_property_set(const char* key, const char* value);
43 // returns the value of |key| truncated and coerced into an
45 int32_t osi_property_get_int32(const char* key, int32_t default_value);
/system/update_engine/common/
H A Dfake_prefs.cc29 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 Dmock_prefs.h32 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 Dprefs_interface.h33 // 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 Dprefs.cc32 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 Dfake_prefs.h31 // 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...]
H A Dprefs.h31 // Implements a preference store by storing the value associated with a key
41 // Get the key named |key| and store its value in the referenced |value|.
43 virtual bool GetKey(const std::string& key, std::string* value) const = 0;
45 // Set the value of the key named |key| to |value| regardless of the
47 virtual bool SetKey(const std::string& key, const std::string& value) = 0;
49 // Returns whether the key named |key| exists.
50 virtual bool KeyExists(const std::string& key) cons
[all...]
/system/bt/btif/include/
H A Dbtif_config.h31 bool btif_config_exist(const char* section, const char* key);
32 bool btif_config_get_int(const char* section, const char* key, int* value);
33 bool btif_config_set_int(const char* section, const char* key, int value);
34 bool btif_config_get_str(const char* section, const char* key, char* value,
36 bool btif_config_set_str(const char* section, const char* key,
38 bool btif_config_get_bin(const char* section, const char* key, uint8_t* value,
40 bool btif_config_set_bin(const char* section, const char* key,
42 bool btif_config_remove(const char* section, const char* key);
44 size_t btif_config_get_bin_length(const char* section, const char* key);
/system/bt/osi/src/
H A Dproperties.cc23 int osi_property_get(const char* key, char* value, const char* default_value) { argument
36 return property_get(key, value, default_value);
40 int osi_property_set(const char* key, const char* value) { argument
44 return property_set(key, value);
48 int32_t osi_property_get_int32(const char* key, int32_t default_value) { argument
52 return property_get_int32(key, default_value);
/system/core/include/cutils/
H A Dstr_parms.h31 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 Dhashmap.h42 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...]
H A Dproperties.h46 int property_get(const char *key, char *value, const char *default_value)
53 /* property_get_bool: returns the value of key coerced into a
64 ** If no property with this key is set (or the key is NULL) or the boolean
67 int8_t property_get_bool(const char *key, int8_t default_value);
69 /* property_get_int64: returns the value of key truncated and coerced into a
85 ** If no property with this key is set (or the key is NULL) or the numeric
88 int64_t property_get_int64(const char *key, int64_t default_value);
90 /* property_get_int32: returns the value of key truncate
[all...]
/system/core/libcutils/include/cutils/
H A Dstr_parms.h31 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 Dhashmap.h42 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...]
H A Dproperties.h46 int property_get(const char *key, char *value, const char *default_value)
53 /* property_get_bool: returns the value of key coerced into a
64 ** If no property with this key is set (or the key is NULL) or the boolean
67 int8_t property_get_bool(const char *key, int8_t default_value);
69 /* property_get_int64: returns the value of key truncated and coerced into a
85 ** If no property with this key is set (or the key is NULL) or the numeric
88 int64_t property_get_int64(const char *key, int64_t default_value);
90 /* property_get_int32: returns the value of key truncate
[all...]
/system/core/libcutils/include_vndk/cutils/
H A Dstr_parms.h31 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 Dhashmap.h42 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...]
H A Dproperties.h46 int property_get(const char *key, char *value, const char *default_value)
53 /* property_get_bool: returns the value of key coerced into a
64 ** If no property with this key is set (or the key is NULL) or the boolean
67 int8_t property_get_bool(const char *key, int8_t default_value);
69 /* property_get_int64: returns the value of key truncated and coerced into a
85 ** If no property with this key is set (or the key is NULL) or the numeric
88 int64_t property_get_int64(const char *key, int64_t default_value);
90 /* property_get_int32: returns the value of key truncate
[all...]
/system/update_engine/scripts/update_payload/
H A Dhistogram.py15 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/extras/perfprofd/
H A Dconfigreader.h26 // key/value pairs. Values come in two flavors: strings, or unsigned
37 unsigned getUnsignedValue(const char *key) const;
38 std::string getStringValue(const char *key) const;
49 void overrideUnsignedEntry(const char *key, unsigned new_value);
52 void addUnsignedEntry(const char *key,
56 void addStringEntry(const char *key, const char *default_value);
58 void parseLine(const char *key, const char *value, unsigned linecount);
/system/keymaster/
H A Dkdf_test.cpp33 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/bt/osi/include/socket_utils/
H A Dsockets.h38 char key[64]; local
39 snprintf(key, sizeof(key), ANDROID_SOCKET_ENV_PREFIX "%s", name);
41 const char* val = getenv(key);
/system/security/keystore/include/keystore/
H A Dkeystore_get.h29 * Keys and values are 8-bit safe. The first two arguments are the key and its
33 ssize_t keystore_get(const char *key, size_t length, uint8_t** value);
/system/sepolicy/tools/sepolicy-analyze/
H A Dtypecmp.c21 if (k->source_type < c->key.source_type)
23 if (k->source_type == c->key.source_type &&
24 k->target_type < c->key.target_type)
26 if (k->source_type == c->key.source_type &&
27 k->target_type == c->key.target_type &&
28 k->target_class <= c->key.target_class)
33 k->source_type == c->key.source_type &&
34 k->target_type == c->key.target_type &&
35 k->target_class == c->key.target_class) {
47 n->key
58 avtab_key_t key; local
[all...]
/system/core/libcutils/
H A Dstr_parms.c93 const char *key; member in struct:remove_ctxt
96 static bool remove_pair(void *key, void *value, void *context) argument
102 * - if key is not supplied, then we are removing all entries,
103 * so remove key and continue (i.e. return true)
104 * - if key is supplied and matches, then remove it and don't
106 * for key.
109 if (!ctxt->key) {
112 } else if (!strcmp(ctxt->key, key)) {
120 hashmapRemove(ctxt->str_parms->map, key);
126 str_parms_del(struct str_parms *str_parms, const char *key) argument
168 char *key; local
213 str_parms_add_str(struct str_parms *str_parms, const char *key, const char *value) argument
261 str_parms_add_int(struct str_parms *str_parms, const char *key, int value) argument
274 str_parms_add_float(struct str_parms *str_parms, const char *key, float value) argument
288 str_parms_has_key(struct str_parms *str_parms, const char *key) argument
292 str_parms_get_str(struct str_parms *str_parms, const char *key, char *val, int len) argument
304 str_parms_get_int(struct str_parms *str_parms, const char *key, int *val) argument
320 str_parms_get_float(struct str_parms *str_parms, const char *key, float *val) argument
339 combine_strings(void *key, void *value, void *context) argument
373 dump_entry(void *key, void *value, void *context UNUSED) argument
[all...]

Completed in 345 milliseconds

1234567891011>>