Home
last modified time | relevance | path

Searched refs:key (Results 1 – 25 of 334) sorted by relevance

12345678910>>...14

/system/connectivity/shill/test-scripts/
Dtest-manager5 def print_sub_properties(key, value): argument
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 in ["Strength", "Priority"]:
[all …]
/system/update_engine/common/
Dprefs.cc32 bool PrefsBase::GetString(const string& key, string* value) const { in GetString() argument
33 return storage_->GetKey(key, value); in GetString()
36 bool PrefsBase::SetString(const string& key, const string& value) { in SetString() argument
37 TEST_AND_RETURN_FALSE(storage_->SetKey(key, value)); in SetString()
38 const auto observers_for_key = observers_.find(key); in SetString()
42 observer->OnPrefSet(key); in SetString()
47 bool PrefsBase::GetInt64(const string& key, int64_t* value) const { in GetInt64() argument
49 if (!GetString(key, &str_value)) in GetInt64()
56 bool PrefsBase::SetInt64(const string& key, const int64_t value) { in SetInt64() argument
57 return SetString(key, base::Int64ToString(value)); in SetInt64()
[all …]
Dfake_prefs.cc29 void CheckNotNull(const string& key, void* ptr) { in CheckNotNull() argument
31 << "Called Get*() for key \"" << key << "\" with a null parameter."; in CheckNotNull()
64 bool FakePrefs::GetString(const string& key, string* value) const { in GetString() argument
65 return GetValue(key, value); in GetString()
68 bool FakePrefs::SetString(const string& key, const string& value) { in SetString() argument
69 SetValue(key, value); in SetString()
73 bool FakePrefs::GetInt64(const string& key, int64_t* value) const { in GetInt64() argument
74 return GetValue(key, value); in GetInt64()
77 bool FakePrefs::SetInt64(const string& key, const int64_t value) { in SetInt64() argument
78 SetValue(key, value); in SetInt64()
[all …]
Dprefs.h43 virtual bool GetKey(const std::string& key, std::string* value) const = 0;
47 virtual bool SetKey(const std::string& key, const std::string& value) = 0;
50 virtual bool KeyExists(const std::string& key) const = 0;
54 virtual bool DeleteKey(const std::string& key) = 0;
63 bool GetString(const std::string& key, std::string* value) const override;
64 bool SetString(const std::string& key, const std::string& value) override;
65 bool GetInt64(const std::string& key, int64_t* value) const override;
66 bool SetInt64(const std::string& key, const int64_t value) override;
67 bool GetBoolean(const std::string& key, bool* value) const override;
68 bool SetBoolean(const std::string& key, const bool value) override;
[all …]
Dprefs_interface.h39 virtual void OnPrefSet(const std::string& key) = 0;
42 virtual void OnPrefDeleted(const std::string& key) = 0;
50 virtual bool GetString(const std::string& key, std::string* value) const = 0;
54 virtual bool SetString(const std::string& key, const std::string& value) = 0;
59 virtual bool GetInt64(const std::string& key, int64_t* value) const = 0;
63 virtual bool SetInt64(const std::string& key, const int64_t value) = 0;
68 virtual bool GetBoolean(const std::string& key, bool* value) const = 0;
72 virtual bool SetBoolean(const std::string& key, const bool value) = 0;
76 virtual bool Exists(const std::string& key) const = 0;
80 virtual bool Delete(const std::string& key) = 0;
[all …]
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, ObserverInterface*));
Dfake_prefs.h42 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, const bool value) override;
49 bool Exists(const std::string& key) const override;
50 bool Delete(const std::string& key) override;
52 void AddObserver(const std::string& key,
54 void RemoveObserver(const std::string& key,
[all …]
/system/core/libmincrypt/
Drsa.c33 static void subM(const RSAPublicKey* key, in subM() argument
37 for (i = 0; i < key->len; ++i) { in subM()
38 A += (uint64_t)a[i] - key->n[i]; in subM()
45 static int geM(const RSAPublicKey* key, in geM() argument
48 for (i = key->len; i;) { in geM()
50 if (a[i] < key->n[i]) return 0; in geM()
51 if (a[i] > key->n[i]) return 1; in geM()
57 static void montMulAdd(const RSAPublicKey* key, in montMulAdd() argument
62 uint32_t d0 = (uint32_t)A * key->n0inv; in montMulAdd()
63 uint64_t B = (uint64_t)d0 * key->n[0] + (uint32_t)A; in montMulAdd()
[all …]
/system/sepolicy/tools/sepolicy-analyze/
Dtypecmp.c21 if (k->source_type < c->key.source_type) in insert_type_rule()
23 if (k->source_type == c->key.source_type && in insert_type_rule()
24 k->target_type < c->key.target_type) in insert_type_rule()
26 if (k->source_type == c->key.source_type && in insert_type_rule()
27 k->target_type == c->key.target_type && in insert_type_rule()
28 k->target_class <= c->key.target_class) in insert_type_rule()
33 k->source_type == c->key.source_type && in insert_type_rule()
34 k->target_type == c->key.target_type && in insert_type_rule()
35 k->target_class == c->key.target_class) { in insert_type_rule()
47 n->key = *k; in insert_type_rule()
[all …]
/system/connectivity/shill/
Dfake_store.cc92 set<string> FakeStore::GetGroupsWithKey(const string& key) const { in GetGroupsWithKey()
98 if (group_settings.find(key) != group_settings.end()) { in GetGroupsWithKey()
124 bool FakeStore::DeleteKey(const string& group, const string& key) { in DeleteKey() argument
132 auto property_it = group_settings.find(key); in DeleteKey()
153 const string& key, in GetString() argument
155 return ReadSetting(group, key, value); in GetString()
159 const string& group, const string& key, const string& value) { in SetString() argument
160 return WriteSetting(group, key, value); in SetString()
163 bool FakeStore::GetBool(const string& group, const string& key, bool* value) in GetBool() argument
165 return ReadSetting(group, key, value); in GetBool()
[all …]
Djson_store.cc204 const string& key = it.key(); in ConvertDictionaryValueToVariantDictionary() local
208 LOG(ERROR) << "Key |" << key << "| has unsupported TYPE_NULL."; in ConvertDictionaryValueToVariantDictionary()
213 (*variant_dictionary)[key] = native_bool; in ConvertDictionaryValueToVariantDictionary()
219 (*variant_dictionary)[key] = native_int; in ConvertDictionaryValueToVariantDictionary()
223 LOG(ERROR) << "Key |" << key << "| has unsupported TYPE_DOUBLE."; in ConvertDictionaryValueToVariantDictionary()
228 (*variant_dictionary)[key] = native_string; in ConvertDictionaryValueToVariantDictionary()
233 LOG(ERROR) << "Key |" << key << "| has unexpected TYPE_BINARY."; in ConvertDictionaryValueToVariantDictionary()
239 LOG(ERROR) << "Key |" << key << "| has unsupported TYPE_DICTIONARY."; in ConvertDictionaryValueToVariantDictionary()
245 LOG(ERROR) << "Key |" << key << "| could not be decoded."; in ConvertDictionaryValueToVariantDictionary()
248 (*variant_dictionary)[key] = *decoded_coerced_value; in ConvertDictionaryValueToVariantDictionary()
[all …]
Dfake_store.h46 std::set<std::string> GetGroupsWithKey(const std::string& key) const override;
50 bool DeleteKey(const std::string& group, const std::string& key) override;
54 const std::string& key,
57 const std::string& key,
60 const std::string& key,
63 const std::string& key,
66 const std::string& key,
69 const std::string& key,
72 const std::string& key,
75 const std::string& key,
[all …]
Dstore_interface.h60 const std::string& key) const = 0;
74 virtual bool DeleteKey(const std::string& group, const std::string& key) = 0;
88 const std::string& key,
94 const std::string& key,
103 const std::string& key,
109 const std::string& key,
117 const std::string& key,
123 const std::string& key,
131 const std::string& key,
137 const std::string& key,
[all …]
Dmock_store.h44 std::set<std::string>(const std::string& key));
49 const std::string& key));
53 const std::string& key,
56 const std::string& key,
59 const std::string& key,
62 const std::string& key,
65 const std::string& key,
68 const std::string& key,
71 const std::string& key,
74 const std::string& key,
[all …]
Dstub_storage.h40 const std::string& key) const override { in GetGroupsWithKey() argument
50 bool DeleteKey(const std::string& group, const std::string& key) in DeleteKey() argument
55 const std::string& key, in GetString() argument
60 const std::string& key, in SetString() argument
65 const std::string& key, in GetBool() argument
70 const std::string& key, in SetBool() argument
75 const std::string& key, in GetInt() argument
80 const std::string& key, in SetInt() argument
85 const std::string& key, in GetUint64() argument
90 const std::string& key, in SetUint64() argument
[all …]
/system/core/libcutils/
Dstr_parms.c93 const char *key; member
96 static bool remove_pair(void *key, void *value, void *context) in remove_pair() argument
109 if (!ctxt->key) { in remove_pair()
112 } else if (!strcmp(ctxt->key, key)) { in remove_pair()
120 hashmapRemove(ctxt->str_parms->map, key); in remove_pair()
121 free(key); in remove_pair()
126 void str_parms_del(struct str_parms *str_parms, const char *key) in str_parms_del() argument
130 .key = key, in str_parms_del()
168 char *key; in str_parms_create_str() local
175 key = strndup(kvpair, eq - kvpair); in str_parms_create_str()
[all …]
Dproperties.c33 int8_t property_get_bool(const char *key, int8_t default_value) { in property_get_bool() argument
34 if (!key) { in property_get_bool()
41 int len = property_get(key, buf, ""); in property_get_bool()
61 static intmax_t property_get_imax(const char *key, intmax_t lower_bound, intmax_t upper_bound, in property_get_imax() argument
63 if (!key) { in property_get_imax()
71 int len = property_get(key, buf, ""); in property_get_imax()
81 ALOGV("%s(%s,%" PRIdMAX ") - overflow", __FUNCTION__, key, default_value); in property_get_imax()
85 ALOGV("%s(%s,%" PRIdMAX ") - out of range", __FUNCTION__, key, default_value); in property_get_imax()
90 __FUNCTION__, key, default_value); in property_get_imax()
99 int64_t property_get_int64(const char *key, int64_t default_value) { in property_get_int64() argument
[all …]
Dhashmap.c28 void* key; member
37 int (*hash)(void* key);
44 int (*hash)(void* key), bool (*equals)(void* keyA, void* keyB)) { in hashmapCreate() argument
83 static inline int hashKey(Hashmap* map, void* key) { in hashKey() argument
84 int h = map->hash(key); in hashKey()
162 int hashmapHash(void* key, size_t keySize) { in hashmapHash() argument
164 char* data = (char*) key; in hashmapHash()
173 static Entry* createEntry(void* key, int hash, void* value) { in createEntry() argument
178 entry->key = key; in createEntry()
196 void* hashmapPut(Hashmap* map, void* key, void* value) { in hashmapPut() argument
[all …]
/system/extras/perfprofd/
Dconfigreader.cc125 void ConfigReader::addUnsignedEntry(const char *key, in addUnsignedEntry() argument
130 std::string ks(key); in addUnsignedEntry()
133 W_ALOGE("internal error -- duplicate entry for key %s", key); in addUnsignedEntry()
143 void ConfigReader::addStringEntry(const char *key, const char *default_value) in addStringEntry() argument
145 std::string ks(key); in addStringEntry()
148 W_ALOGE("internal error -- duplicate entry for key %s", key); in addStringEntry()
152 W_ALOGE("internal error -- bad default value for key %s", key); in addStringEntry()
158 unsigned ConfigReader::getUnsignedValue(const char *key) const in getUnsignedValue()
160 std::string ks(key); in getUnsignedValue()
166 std::string ConfigReader::getStringValue(const char *key) const in getStringValue()
[all …]
/system/core/libmincrypt/tools/
DDumpPublicKey.java48 static int checkRSA(RSAPublicKey key, boolean useSHA256) throws Exception { in checkRSA() argument
49 BigInteger pubexp = key.getPublicExponent(); in checkRSA()
50 BigInteger modulus = key.getModulus(); in checkRSA()
76 static int checkEC(ECPublicKey key) throws Exception { in checkEC() argument
77 if (key.getParams().getCurve().getField().getFieldSize() != 256) { in checkEC()
87 static int check(PublicKey key, boolean useSHA256) throws Exception { in check() argument
88 if (key instanceof RSAPublicKey) { in check()
89 return checkRSA((RSAPublicKey) key, useSHA256); in check()
90 } else if (key instanceof ECPublicKey) { in check()
94 return checkEC((ECPublicKey) key); in check()
[all …]
/system/core/adb/
Dadb_auth_client.cpp37 RSAPublicKey key; member
70 auto key = reinterpret_cast<adb_public_key*>( in read_keys() local
72 if (key == nullptr) { in read_keys()
81 ret = __b64_pton(buf, (u_char *)&key->key, sizeof(key->key) + 4); in read_keys()
82 if (ret != sizeof(key->key)) { in read_keys()
84 free(key); in read_keys()
88 if (key->key.len != RSANUMWORDS) { in read_keys()
89 D("%s: Invalid key len %d", file, key->key.len); in read_keys()
90 free(key); in read_keys()
94 list_add_tail(list, &key->node); in read_keys()
[all …]
/system/media/radio/src/
Dradio_metadata.c49 bool is_valid_metadata_key(const radio_metadata_key_t key) in is_valid_metadata_key() argument
51 if (key < RADIO_METADATA_KEY_MIN || key > RADIO_METADATA_KEY_MAX) { in is_valid_metadata_key()
98 const radio_metadata_key_t key, in add_metadata() argument
122 entry->key = key; in add_metadata()
167 radio_metadata_type_t radio_metadata_type_of_key(const radio_metadata_key_t key) in radio_metadata_type_of_key() argument
169 if (!is_valid_metadata_key(key)) { in radio_metadata_type_of_key()
172 return metadata_key_type_table[key - RADIO_METADATA_KEY_MIN]; in radio_metadata_type_of_key()
201 const radio_metadata_key_t key, in radio_metadata_add_int() argument
204 radio_metadata_type_t type = radio_metadata_type_of_key(key); in radio_metadata_add_int()
209 key, type, &value, sizeof(int)); in radio_metadata_add_int()
[all …]
/system/core/include/cutils/
Dhashmap.h42 int (*hash)(void* key), bool (*equals)(void* keyA, void* keyB));
53 int hashmapHash(void* key, size_t keySize);
62 void* hashmapPut(Hashmap* map, void* key, void* value);
68 void* hashmapGet(Hashmap* map, void* key);
73 bool hashmapContainsKey(Hashmap* map, void* key);
82 void* hashmapMemoize(Hashmap* map, void* key,
83 void* (*initialValue)(void* key, void* context), void* context);
89 void* hashmapRemove(Hashmap* map, void* key);
101 bool (*callback)(void* key, void* value, void* context),
125 int hashmapIntHash(void* key);
/system/bt/osi/src/
Dhash_functions.c23 hash_index_t hash_function_naive(const void *key) { in hash_function_naive() argument
24 return (hash_index_t)key; in hash_function_naive()
27 hash_index_t hash_function_integer(const void *key) { in hash_function_integer() argument
28 return ((hash_index_t)key) * 2654435761; in hash_function_integer()
31 hash_index_t hash_function_pointer(const void *key) { in hash_function_pointer() argument
32 return ((hash_index_t)key) * 2654435761; in hash_function_pointer()
35 hash_index_t hash_function_string(const void *key) { in hash_function_string() argument
37 const char *name = (const char *)key; in hash_function_string()
/system/bt/btif/include/
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, 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);

12345678910>>...14