/system/nativepower/daemon/ |
H A D | system_property_setter.cc | 27 bool SystemPropertySetter::SetProperty(const std::string& key, argument 29 return property_set(key.c_str(), value.c_str()) == 0;
|
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/bt/osi/src/ |
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);
|
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;
|
/system/core/debuggerd/test/ |
H A D | property_fake.cpp | 34 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 D | btif_config_transcode.cpp | 54 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 D | sockets.h | 42 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 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;
|
H A D | crypto_des_cbc.h | 43 // 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 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...] |
/system/keymaster/ |
H A D | hmac_test.cpp | 32 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 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));
|
H A D | ec_key.h | 38 EC_KEY* key() const { return ec_key_.get(); } function in class:keymaster::EcKey
|
H A D | hkdf_test.cpp | 62 const string key = hex2str(test.key_hex); local 69 ASSERT_TRUE(hkdf.Init(reinterpret_cast<const uint8_t*>(key.data()), key.size(),
|
H A D | hmac.cpp | 34 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 D | kdf1_test.cpp | 45 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 D | kdf2_test.cpp | 69 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 D | rsa_key.h | 42 RSA* key() const { return rsa_key_.get(); } function in class:keymaster::RsaKey
|
/system/security/keystore/ |
H A D | keystore_get.cpp | 24 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 D | hash_map.h | 29 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 D | hash_map_utils_test.cpp | 58 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 D | MemUnreachable_test.cpp | 128 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 D | DumpPublicKey.java | 40 * @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 D | radio_metadata_hidden.h | 31 radio_metadata_key_t key; member in struct:radio_metadata_entry
|
/system/sepolicy/tools/sepolicy-analyze/ |
H A D | sepolicy-analyze.c | 17 const char *key; member in struct:__anon1911 56 if (!strcmp(analyze_components[i].key, argv[2])) {
|