Searched defs:key (Results 1 - 25 of 173) sorted by relevance

1234567

/system/nativepower/daemon/
H A Dsystem_property_setter.cc27 bool SystemPropertySetter::SetProperty(const std::string& key, argument
29 return property_set(key.c_str(), value.c_str()) == 0;
H A Dsystem_property_setter_stub.cc26 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/bt/osi/src/
H A Dproperties.c23 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);
H A Dhash_functions.c23 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;
/system/core/debuggerd/test/
H A Dproperty_fake.cpp34 extern "C" int property_get(const char* key, char* value, const char* default_value) { argument
35 if (g_properties.count(key) == 0) {
41 strncpy(value, g_properties[key].c_str(), PROP_VALUE_MAX-1);
/system/bt/btif/src/
H A Dbtif_config_transcode.cpp54 const char *key = k->Attribute("Tag"); local
56 if (section && key && value)
57 config_set_string(config, section, key, value);
/system/bt/osi/include/socket_utils/
H A Dsockets.h42 char key[64]; local
43 snprintf(key, sizeof(key), ANDROID_SOCKET_ENV_PREFIX "%s", name);
45 const char *val = getenv(key);
/system/connectivity/shill/
H A Dgeolocation_info.cc31 void GeolocationInfo::AddField(const string& key, argument
33 properties_[key] = value;
37 const string& key) const {
38 return properties_.find(key)->second;
H A Dcrypto_des_cbc.h43 // Sets the DES key to the last |kBlockSize| bytes of |key_matter_path| and
53 const std::vector<char>& key() const { return key_; } function in class:shill::CryptoDESCBC
/system/core/include/cutils/
H A Dproperties.h46 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...]
/system/keymaster/
H A Dhmac_test.cpp32 const char* key; member in struct:keymaster::test::HmacTest
66 const string key = hex2str(test.key); local
67 Buffer key_buffer(key.data(), key.size());
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));
H A Dec_key.h38 EC_KEY* key() const { return ec_key_.get(); } function in class:keymaster::EcKey
H A Dhkdf_test.cpp62 const string key = hex2str(test.key_hex); local
69 ASSERT_TRUE(hkdf.Init(reinterpret_cast<const uint8_t*>(key.data()), key.size(),
H A Dhmac.cpp34 bool HmacSha256::Init(const Buffer& key) { argument
35 return Init(key.peek_read(), key.available_read());
38 bool HmacSha256::Init(const uint8_t* key, size_t key_len) { argument
39 if (!key)
43 key_.reset(dup_buffer(key, key_len));
H A Dkdf1_test.cpp45 const string key = hex2str(test.key_hex); local
52 kdf1.Init(test.digest_type, reinterpret_cast<const uint8_t*>(key.data()), key.size()));
H A Dkdf2_test.cpp69 const string key = hex2str(test.key_hex); local
77 kdf2.Init(test.digest_type, reinterpret_cast<const uint8_t*>(key.data()), key.size()));
H A Drsa_key.h42 RSA* key() const { return rsa_key_.get(); } function in class:keymaster::RsaKey
/system/security/keystore/
H A Dkeystore_get.cpp24 ssize_t keystore_get(const char *key, size_t keyLength, uint8_t** value) { argument
34 int32_t ret = service->get(String16(key, keyLength), -1, value, &valueLength);
/system/bt/osi/include/
H A Dhash_map.h29 const void *key; member in struct:hash_map_entry_t
36 // Takes a key structure and returns a hash value.
37 typedef hash_index_t (*hash_index_fn)(const void *key);
42 typedef void (*key_free_fn)(void *key);
52 // is necessary on element removal. |equality_fn| is used to check for key equality.
78 // Returns true if the hash_map has a valid entry for the presented key.
80 bool hash_map_has_key(const hash_map_t *hash_map, const void *key);
82 // Returns the element indexed by |key| in the hash_map without removing it. |hash_map|
83 // may not be NULL. Returns NULL if no entry indexed by |key|.
84 void *hash_map_get(const hash_map_t *hash_map, const void *key);
[all...]
/system/bt/osi/test/
H A Dhash_map_utils_test.cpp58 char key[] = "keyOfSomething"; local
62 EXPECT_EQ(0, strcmp(value, (char *)hash_map_get(map, key)));
66 char params[] = "key=valu0;key=value1";
67 char key[] = "key"; local
71 EXPECT_EQ(0, strcmp(value1, (char *)hash_map_get(map, key)));
76 char key[] = "keyOfSomething"; local
80 EXPECT_EQ(0, strcmp(value, (char *)hash_map_get(map, key)));
85 char key[] local
94 char key[] = "keyOfSomething"; local
[all...]
/system/core/libmemunreachable/tests/
H A DMemUnreachable_test.cpp128 pthread_key_t key; local
129 pthread_key_create(&key, NULL);
131 pthread_setspecific(key, hidden_ptr.Get());
140 pthread_setspecific(key, nullptr);
158 pthread_key_delete(key);
/system/core/libmincrypt/tools/
H A DDumpPublicKey.java40 * @param key to perform sanity checks on
41 * @return version number of key. Supported versions are:
42 * 1: 2048-bit RSA key with e=3 and SHA-1 hash
43 * 2: 2048-bit RSA key with e=65537 and SHA-1 hash
44 * 3: 2048-bit RSA key with e=3 and SHA-256 hash
45 * 4: 2048-bit RSA key with e=65537 and SHA-256 hash
46 * @throws Exception if the key has the wrong size or public exponent
48 static int checkRSA(RSAPublicKey key, boolean useSHA256) throws Exception { argument
49 BigInteger pubexp = key.getPublicExponent();
50 BigInteger modulus = key
76 checkEC(ECPublicKey key) argument
87 check(PublicKey key, boolean useSHA256) argument
106 printRSA(RSAPublicKey key, boolean useSHA256) argument
171 printEC(ECPublicKey key) argument
221 print(PublicKey key, boolean useSHA256) argument
[all...]
/system/media/private/radio/include/
H A Dradio_metadata_hidden.h31 radio_metadata_key_t key; member in struct:radio_metadata_entry
/system/sepolicy/tools/sepolicy-analyze/
H A Dsepolicy-analyze.c17 const char *key; member in struct:__anon1911
56 if (!strcmp(analyze_components[i].key, argv[2])) {

Completed in 1090 milliseconds

1234567