/system/bt/osi/src/ |
H A D | properties.cc | 23 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);
|
H A D | hash_map_utils.cc | 40 // Parse |str| and add extracted key-and-value pair(s) in |map|. 49 char* key; local 52 key = osi_strndup(kvpair, eq - kvpair); 58 key = osi_strdup(kvpair); 62 map[key] = value; 64 osi_free(key); 81 LOG_INFO(LOG_TAG, "key: '%s' value: '%s'\n", ptr.first.c_str(),
|
/system/core/debuggerd/libdebuggerd/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/core/fs_mgr/ |
H A D | fs_mgr_boot_config.cpp | 28 bool fs_mgr_get_boot_config_from_kernel_cmdline(const std::string& key, std::string* out_val) { argument 32 std::string cmdline_key("androidboot." + key); 51 bool fs_mgr_get_boot_config(const std::string& key, std::string* out_val) { argument 55 *out_val = android::base::GetProperty("ro.boot." + key, ""); 61 if (fs_mgr_get_boot_config_from_kernel_cmdline(key, out_val)) { 67 std::string file_name = get_android_dt_dir() + "/" + key;
|
/system/bt/btif/src/ |
H A D | btif_config_transcode.cc | 58 const char* key = k->Attribute("Tag"); local 60 if (section && key && value) 61 config_set_string(config, section, key, value);
|
/system/bt/osi/include/socket_utils/ |
H A D | sockets.h | 38 char key[64]; local 39 snprintf(key, sizeof(key), ANDROID_SOCKET_ENV_PREFIX "%s", name); 41 const char* val = getenv(key);
|
/system/core/libcutils/tests/ |
H A D | android_get_control_socket_test.cpp | 36 static const char key[] = ANDROID_SOCKET_ENV_PREFIX "SocketsTest_android_get_control_socket"; local 37 static const char* name = key + strlen(ANDROID_SOCKET_ENV_PREFIX); 39 EXPECT_EQ(unsetenv(key), 0); 62 EXPECT_EQ(setenv(key, val, true), 0); 69 EXPECT_EQ(unsetenv(key), 0);
|
/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 | 25 ssize_t keystore_get(const char *key, size_t keyLength, uint8_t** value) { argument 35 auto ret = service->get(String16(key, keyLength), -1, &result);
|
H A D | keystore_get_wifi_hidl.cpp | 36 ssize_t keystore_get(const char *key, size_t keyLength, uint8_t** value) { argument 37 if (key == NULL || keyLength == 0 || value == NULL) { 58 Return<void> ret = service->getBlob(hidl_string(key, keyLength), cb);
|
/system/update_engine/ |
H A D | image_properties_android_unittest.cc | 44 void WriteOsRelease(const string& key, const string& value) { argument 45 ASSERT_TRUE(WriteFileString(osrelease_dir_.Append(key).value(), value));
|
/system/bt/osi/test/ |
H A D | hash_map_utils_test.cc | 53 char key[] = "keyOfSomething"; local 57 EXPECT_EQ(value, map[key]); 62 char params[] = "key=valu0;key=value1"; 63 char key[] = "key"; local 67 EXPECT_EQ(value1, map[key]); 72 char key[] = "keyOfSomething"; local 76 EXPECT_EQ(value, map[key]); 81 char key[] local 90 char key[] = "keyOfSomething"; local [all...] |
/system/core/libcutils/ |
H A D | android_get_control_file.cpp | 51 char *key = NULL; local 52 if (asprintf(&key, "%s%s", prefix, name) < 0) return -1; 53 if (!key) return -1; 55 char *cp = key; 61 const char* val = getenv(key); 62 free(key);
|
/system/media/brillo/audio/audioservice/test/ |
H A D | audio_volume_handler_test.cpp | 96 auto key = handler_.kCurrentIndexKey_ + ".1.2"; local 97 handler_.kv_store_->GetString(key, &value);
|
/system/media/radio/src/ |
H A D | radio_metadata_hidden.h | 31 radio_metadata_key_t key; member in struct:radio_metadata_entry
|
/system/netd/libnetdutils/include/netdutils/ |
H A D | Misc.h | 25 // Lookup key in map, returing a default value if key is not found 27 inline const V& findWithDefault(const std::map<U, V>& map, const U& key, const V& dflt) { argument 28 auto it = map.find(key);
|
/system/sepolicy/tools/sepolicy-analyze/ |
H A D | sepolicy-analyze.c | 17 const char *key; member in struct:__anon2503 56 if (!strcmp(analyze_components[i].key, argv[2])) {
|
H A D | utils.c | 12 void display_allow(policydb_t *policydb, avtab_key_t *key, int idx, uint32_t perms) argument 15 policydb->p_type_val_to_name[key->source_type 16 ? key->source_type - 1 : idx], 17 key->target_type == key->source_type ? "self" : 18 policydb->p_type_val_to_name[key->target_type 19 ? key->target_type - 1 : idx], 20 policydb->p_class_val_to_name[key->target_class - 1], 22 (policydb, key->target_class, perms));
|