/system/bt/osi/include/ |
H A D | hash_functions.h | 23 hash_index_t hash_function_naive(const void *key); 25 hash_index_t hash_function_integer(const void *key); 28 hash_index_t hash_function_pointer(const void *key); 30 hash_index_t hash_function_string(const void *key);
|
H A D | properties.h | 27 // Get value associated with key |key| into |value|. 33 int osi_property_get(const char *key, char *value, const char *default_value); 35 // Write value of property associated with key |key| to |value|. 37 int osi_property_set(const char *key, const char *value);
|
/system/connectivity/shill/test-scripts/ |
H A D | test-manager | 5 def print_sub_properties(key, value): 6 if key == "Profiles": 8 elif key == "Devices": 10 elif key == "Services": 15 print "%s" % (key) 23 for key in properties.keys(): 24 if key in ["Networks", "Services"]: 27 if key in ["Powered", "Scanning", "Connected", 29 if properties[key] == dbus.Boolean(1): 33 elif key i [all...] |
H A D | list-devices | 11 for key in obj_properties.keys(): 13 (key, flimflam.convert_dbus_value(obj_properties[key], 4))
|
H A D | list-profiles | 26 for key in obj_properties.keys(): 28 (key, flimflam.convert_dbus_value(obj_properties[key], 4))
|
H A D | list-services | 12 for key in properties.keys(): 14 (key, flimflam.convert_dbus_value(properties[key], 4))
|
/system/bt/osi/src/ |
H A D | hash_functions.c | 23 hash_index_t hash_function_naive(const void *key) { argument 24 return (hash_index_t)key; 27 hash_index_t hash_function_integer(const void *key) { argument 28 return ((hash_index_t)key) * 2654435761; 31 hash_index_t hash_function_pointer(const void *key) { argument 32 return ((hash_index_t)key) * 2654435761; 35 hash_index_t hash_function_string(const void *key) { argument 37 const char *name = (const char *)key;
|
H A D | properties.c | 23 int osi_property_get(const char *key, char *value, const char *default_value) { argument 38 return property_get(key, value, default_value); 42 int osi_property_set(const char *key, const char *value) { argument 46 return property_set(key, value);
|
/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 | 37 bool Prefs::GetString(const string& key, string* value) const { argument 39 TEST_AND_RETURN_FALSE(GetFileNameForKey(key, &filename)); 41 LOG(INFO) << key << " not present in " << prefs_dir_.value(); 47 bool Prefs::SetString(const string& key, const string& value) { argument 49 TEST_AND_RETURN_FALSE(GetFileNameForKey(key, &filename)); 57 const auto observers_for_key = observers_.find(key); 61 observer->OnPrefSet(key); 66 bool Prefs::GetInt64(const string& key, int64_t* value) const { argument 68 if (!GetString(key, &str_value)) 75 bool Prefs::SetInt64(const string& key, cons argument 79 GetBoolean(const string& key, bool* value) const argument 95 SetBoolean(const string& key, const bool value) argument 105 Delete(const string& key) argument 118 AddObserver(const string& key, ObserverInterface* observer) argument 122 RemoveObserver(const string& key, ObserverInterface* observer) argument 130 GetFileNameForKey(const string& key, base::FilePath* filename) const argument [all...] |
H A D | prefs.h | 32 // a key in a separate file named after the key under a preference 45 bool GetString(const std::string& key, std::string* value) const override; 46 bool SetString(const std::string& key, const std::string& value) override; 47 bool GetInt64(const std::string& key, int64_t* value) const override; 48 bool SetInt64(const std::string& key, const int64_t value) override; 49 bool GetBoolean(const std::string& key, bool* value) const override; 50 bool SetBoolean(const std::string& key, const bool value) override; 52 bool Exists(const std::string& key) const override; 53 bool Delete(const std::string& key) overrid [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/bt/btif/include/ |
H A D | btif_config.h | 31 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, int *size_bytes); 35 bool btif_config_set_str(const char *section, const char *key, const char *value); 36 bool btif_config_get_bin(const char *section, const char *key, uint8_t *value, size_t *length); 37 bool btif_config_set_bin(const char *section, const char *key, const uint8_t *value, size_t length); 38 bool btif_config_remove(const char *section, const char *key); 40 size_t btif_config_get_bin_length(const char *section, const char *key);
|
/system/core/include/cutils/ |
H A D | properties.h | 46 int property_get(const char *key, char *value, const char *default_value); 48 /* property_get_bool: returns the value of key coerced into a 59 ** If no property with this key is set (or the key is NULL) or the boolean 62 int8_t property_get_bool(const char *key, int8_t default_value); 64 /* property_get_int64: returns the value of key truncated and coerced into a 80 ** If no property with this key is set (or the key is NULL) or the numeric 83 int64_t property_get_int64(const char *key, int64_t default_value); 85 /* property_get_int32: returns the value of key truncate 119 property_get(const char *key, char *value, const char *default_value) argument [all...] |
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/connectivity/shill/ |
H A D | geolocation_info.cc | 31 void GeolocationInfo::AddField(const string& key, argument 33 properties_[key] = value; 37 const string& key) const { 38 return properties_.find(key)->second;
|
/system/nativepower/daemon/ |
H A D | system_property_setter_stub.cc | 26 const std::string& key) const { 27 const auto it = properties_.find(key); 31 bool SystemPropertySetterStub::SetProperty(const std::string& key, argument 33 properties_[key] = value;
|
/system/core/libmincrypt/ |
H A D | rsa.c | 33 static void subM(const RSAPublicKey* key, argument 37 for (i = 0; i < key->len; ++i) { 38 A += (uint64_t)a[i] - key->n[i]; 45 static int geM(const RSAPublicKey* key, argument 48 for (i = key->len; i;) { 50 if (a[i] < key->n[i]) return 0; 51 if (a[i] > key->n[i]) return 1; 57 static void montMulAdd(const RSAPublicKey* key, argument 62 uint32_t d0 = (uint32_t)A * key->n0inv; 63 uint64_t B = (uint64_t)d0 * key 82 montMul(const RSAPublicKey* key, uint32_t* c, const uint32_t* a, const uint32_t* b) argument 97 modpow(const RSAPublicKey* key, uint8_t* inout) argument 249 RSA_verify(const RSAPublicKey *key, const uint8_t *signature, const int len, const uint8_t *hash, const int hash_len) argument [all...] |
/system/extras/perfprofd/ |
H A D | configreader.h | 26 // 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 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/security/keystore/include/keystore/ |
H A D | keystore_get.h | 29 * 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 D | typecmp.c | 21 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...] |