Home
last modified time | relevance | path

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

12345678910>>...17

/device/amlogic/yukawa/input/
DGeneric.kl16 # Generic key layout file for full alphabetic US English PC style external keyboards.
19 # Do not edit the generic key layout to support a specific keyboard; instead, create
20 # a new key layout file with the required keyboard configuration.
23 key 1 ESCAPE
24 key 2 1
25 key 3 2
26 key 4 3
27 key 5 4
28 key 6 5
29 key 7 6
[all …]
/device/google/atv/
DGeneric.kl16 # Generic key layout file for full alphabetic US English PC style external keyboards.
19 # Do not edit the generic key layout to support a specific keyboard; instead, create
20 # a new key layout file with the required keyboard configuration.
23 key 1 ESCAPE
24 key 2 1
25 key 3 2
26 key 4 3
27 key 5 4
28 key 6 5
29 key 7 6
[all …]
/device/generic/goldfish/input/
Dqwerty2.kl22 key 399 GRAVE
23 key 2 1
24 key 3 2
25 key 4 3
26 key 5 4
27 key 6 5
28 key 7 6
29 key 8 7
30 key 9 8
31 key 10 9
[all …]
Dqwerty2.kcm21 key A {
30 key B {
39 key C {
48 key D {
57 key E {
66 key F {
75 key G {
84 key H {
93 key I {
102 key J {
[all …]
/device/sample/skins/WVGAMedDpi/
Dlayout111 image key.png
116 image key.png
121 image key.png
126 image key.png
131 image key.png
136 image key.png
141 image key.png
146 image key.png
151 image key.png
156 image key.png
[all …]
/device/google/coral/json-c/
Djson_object.h70 char *key; member
275 extern void json_object_object_add(struct json_object* obj, const char *key,
296 const char *key));
317 const char *key,
329 extern void json_object_object_del(struct json_object* obj, const char *key);
346 # define json_object_object_foreach(obj,key,val) \ argument
347 char *key; \
349 for(struct lh_entry *entry ## key = json_object_get_object(obj)->head, *entry_next ## key = NULL; \
350 ({ if(entry ## key) { \
351 key = (char*)entry ## key->k; \
[all …]
/device/google/sunfish/json-c/
Djson_object.h70 char *key; member
275 extern void json_object_object_add(struct json_object* obj, const char *key,
296 const char *key));
317 const char *key,
329 extern void json_object_object_del(struct json_object* obj, const char *key);
346 # define json_object_object_foreach(obj,key,val) \ argument
347 char *key; \
349 for(struct lh_entry *entry ## key = json_object_get_object(obj)->head, *entry_next ## key = NULL; \
350 ({ if(entry ## key) { \
351 key = (char*)entry ## key->k; \
[all …]
/device/google/redbull/json-c/
Djson_object.h70 char *key; member
275 extern void json_object_object_add(struct json_object* obj, const char *key,
296 const char *key));
317 const char *key,
329 extern void json_object_object_del(struct json_object* obj, const char *key);
346 # define json_object_object_foreach(obj,key,val) \ argument
347 char *key; \
349 for(struct lh_entry *entry ## key = json_object_get_object(obj)->head, *entry_next ## key = NULL; \
350 ({ if(entry ## key) { \
351 key = (char*)entry ## key->k; \
[all …]
/device/google/contexthub/util/common/
DJSONObject.h109 if (!getValue(key, &value)) { \
113 bool getFieldType(KEY key, JSONValue::FieldType *type) const { in getFieldType()
119 bool getInt32(KEY key, int32_t *out) const { in getInt32()
124 bool getFloat(KEY key, float *out) const { in getFloat()
129 bool getString(KEY key, AString *out) const { in getString()
134 bool getBoolean(KEY key, bool *out) const { in getBoolean()
139 bool getObject(KEY key, sp<JSONObject> *obj) const { in getObject()
144 bool getArray(KEY key, sp<JSONArray> *obj) const { in getArray()
154 virtual bool getValue(KEY key, JSONValue *value) const = 0;
164 void setValue(const char *key, const JSONValue &value);
[all …]
DJSONObject.cpp126 JSONValue key; in Parse() local
127 ssize_t n = Parse(&data[offset], size - offset, &key); in Parse()
133 if (key.type() != TYPE_STRING) { in Parse()
157 CHECK(key.getString(&keyVal)); in Parse()
667 bool JSONObject::getValue(const char *key, JSONValue *value) const { in getValue() argument
668 ssize_t index = mValues.indexOfKey(key); in getValue()
678 void JSONObject::setValue(const char *key, const JSONValue &value) { in setValue() argument
679 mValues.add(AString(key), value); in setValue()
687 AString key = mValues.keyAt(i); in internalToString() local
689 EscapeString(key.c_str(), key.size(), &escapedKey); in internalToString()
[all …]
/device/linaro/dragonboard/shared/utils/qrtr/src/
Dmap.c64 static int map_hash(struct map *map, unsigned int key) in map_hash() argument
72 idx = key % map->size; in map_hash()
80 if (e->item->key == key) in map_hash()
91 int map_reput(struct map *map, unsigned int key, struct map_item *value, in map_reput() argument
96 while ((rc = map_hash(map, key)) < 0) { in map_reput()
109 map->data[rc].item->key = key; in map_reput()
114 int map_put(struct map *map, unsigned int key, struct map_item *value) in map_put() argument
116 return map_reput(map, key, value, NULL); in map_put()
139 rc = map_put(map, oldt[i].item->key, oldt[i].item); in map_rehash()
149 static struct map_entry *map_find(const struct map *map, unsigned int key) in map_find() argument
[all …]
/device/google/contexthub/util/nanotool/
Dandroidcontexthub.cpp66 static bool CopyInt32Array(const char *key, in CopyInt32Array() argument
69 if (json->getArray(key, &array)) { in CopyInt32Array()
81 static bool CopyFloatArray(const char *key, in CopyFloatArray() argument
84 if (json->getArray(key, &array)) { in CopyFloatArray()
96 static bool GetCalibrationBytes(const char *key, SensorType sensor_type, in GetCalibrationBytes() argument
108 success = CopyInt32Array(key, json, bytes); in GetCalibrationBytes()
112 success = CopyFloatArray(key, json, bytes); in GetCalibrationBytes()
118 success = json->getFloat(key, &value); in GetCalibrationBytes()
128 success = CopyInt32Array(key, json, bytes); in GetCalibrationBytes()
131 success = json->getInt32(key, &value); in GetCalibrationBytes()
[all …]
/device/google/cuttlefish/host/commands/assemble_cvd/
Dmisc_info.cc67 const std::string& key) { in GetExpected() argument
68 auto lookup = misc_info.find(key); in GetExpected()
70 "Unable to retrieve expected value from key: {}", key); in GetExpected()
91 const std::string& key, in GetPartitionList() argument
93 std::string vendor_list = GetExpected(vendor_info, key).value_or(""); in GetPartitionList()
94 std::string system_list = GetExpected(system_info, key).value_or(""); in GetPartitionList()
166 const auto key = android::base::Trim(line.substr(0, eq_pos)); in ParseMiscInfo() local
168 const bool duplicate = Contains(misc_info, key) && misc_info[key] != value; in ParseMiscInfo()
172 key, misc_info[key], value); in ParseMiscInfo()
173 misc_info[key] = value; in ParseMiscInfo()
[all …]
/device/google/gs-common/modem/android_property_manager/fake/
Dfake_android_property_manager.cpp14 bool FakeAndroidPropertyManager::GetBoolProperty(const std::string& key, in GetBoolProperty() argument
16 auto value_result = GetProperty(key); in GetBoolProperty()
21 const std::string& key, const std::string& default_value) { in GetProperty() argument
22 auto value_result = GetProperty(key); in GetProperty()
26 int FakeAndroidPropertyManager::GetIntProperty(const std::string& key, in GetIntProperty() argument
30 auto property_result = GetProperty(key); in GetIntProperty()
45 bool FakeAndroidPropertyManager::SetProperty(const std::string& key, in SetProperty() argument
47 if (key == logging::kModemLoggingEnabledProperty) { in SetProperty()
58 property_map_[key] = value; in SetProperty()
71 const std::string& key) { in GetProperty() argument
[all …]
/device/google/felix/vibrator/common/
DHardwareBase.cpp90 std::string key, value; in HwCalBase() local
91 if (std::getline(is_line, key, ':') && std::getline(is_line, value)) { in HwCalBase()
92 mCalData[utils::trim(key)] = utils::trim(value); in HwCalBase()
103 std::string key, value; in HwCalBase() local
104 if (std::getline(is_line, key, ':') && std::getline(is_line, value)) { in HwCalBase()
105 key = utils::trim(key) + "_dual"; in HwCalBase()
106 mCalData[key] = utils::trim(value); in HwCalBase()
123 [](const char *key, const char *value, void *cookie) { in debug() argument
128 const std::string actual{key, std::min(strlen(key), expect.size())}; in debug()
130 dprintf(fd, " %s:\n", key); in debug()
/device/google/cuttlefish/host/commands/secure_env/storage/
Dtpm_storage.cpp53 Result<bool> TpmStorage::HasKey(const std::string& key) const { in HasKey()
54 return CF_EXPECT(GetHandle(key)).has_value(); in HasKey()
57 Result<ManagedStorageData> TpmStorage::Read(const std::string& key) const { in Read()
58 auto handle_optional = CF_EXPECT(GetHandle(key)); in Read()
111 Result<void> TpmStorage::Write(const std::string& key, const StorageData& data) { in Write() argument
112 if (!CF_EXPECT(HasKey(key))) { in Write()
113 CF_EXPECT(Allocate(key, data.size)); in Write()
115 auto handle_optional = CF_EXPECT(GetHandle(key)); in Write()
164 Result<std::optional<TPM2_HANDLE>> TpmStorage::GetHandle(const std::string& key) const { in GetHandle()
167 if (entry[kKey] != key) { in GetHandle()
[all …]
Dinsecure_json_storage.cpp52 Result<bool> InsecureJsonStorage::HasKey(const std::string& key) const { in HasKey()
56 return CF_EXPECT(ReadJson(path_)).isMember(key); in HasKey()
59 Result<ManagedStorageData> InsecureJsonStorage::Read(const std::string& key) const { in Read()
61 CF_EXPECT(root.isMember(key), "Key: " << key << " not found in " << path_); in Read()
64 CF_EXPECT(DecodeBase64(root[key].asString(), &base64_buffer), in Read()
65 "Failed to decode base64 to read key: " << key); in Read()
72 Result<void> InsecureJsonStorage::Write(const std::string& key, const StorageData& data) { in Write() argument
80 "Failed to encode base64 to write key: " << key); in Write()
81 root[key] = value_base64; in Write()
/device/generic/goldfish-opengl/system/hwc3/
DLruCache.h25 Value* get(const Key& key) { in get() argument
26 auto tableIt = m_table.find(key); in get()
37 void set(const Key& key, Value&& value) { in set() argument
38 auto tableIt = m_table.find(key); in set()
42 m_table.erase(kv.key); in set()
50 key, in set()
53 m_table[key] = m_elements.begin(); in set()
56 void remove(const Key& key) { in remove() argument
57 auto tableIt = m_table.find(key); in remove()
73 Key key; member
/device/linaro/dragonboard/shared/utils/pd-mapper/
Djson.c270 struct json_value key; in json_parse_property() local
276 ret = json_parse_string(&key); in json_parse_property()
280 value->key = key.u.string; in json_parse_property()
360 struct json_value *json_get_child(struct json_value *object, const char *key) in json_get_child() argument
368 if (!strcmp(it->key, key)) in json_get_child()
389 int json_get_number(struct json_value *object, const char *key, double *number) in json_get_number() argument
397 if (!strcmp(it->key, key)) { in json_get_number()
409 const char *json_get_string(struct json_value *object, const char *key) in json_get_string() argument
417 if (!strcmp(it->key, key)) { in json_get_string()
433 free((char *)value->key); in json_free()
Dassoc.c66 void *assoc_get(struct assoc *assoc, const char *key) in assoc_get() argument
70 hash = assoc_hash(key) % assoc->size; in assoc_get()
72 if (!strcmp(assoc->keys[hash], key)) in assoc_get()
81 static void _assoc_set(struct assoc *assoc, const char *key, void *value) in _assoc_set() argument
107 hash = assoc_hash(key) % assoc->size; in _assoc_set()
109 if (!strcmp(assoc->keys[hash], key)) { in _assoc_set()
117 assoc->keys[hash] = key; in _assoc_set()
122 void assoc_set(struct assoc *assoc, const char *key, void *value) in assoc_set() argument
124 _assoc_set(assoc, strdup(key), value); in assoc_set()
/device/google/cuttlefish/tools/
Dmake_manifest.sh72 key=$1
74 grep -q "^${key}=" manifest.txt && \
75 sed -i "s/^${key}=.*/${key}=${value}/" manifest.txt || \
76 echo "${key}=${value}" >> manifest.txt
85 key=$1
91 if [ "$key" == "UbootEnv" ] && [ "${filetype}" == "application/gzip" ]; then
94 if [ "$key" != "UbootEnv" ] && [ "${filetype}" != "application/gzip" ]; then
105 addKVToManifest "${key}" "${filename}"
/device/google/gs-common/modem/android_property_manager/impl/
Dandroid_property_manager_impl.cpp9 bool AndroidPropertyManagerImpl::GetBoolProperty(const std::string& key, in GetBoolProperty() argument
11 return android::base::GetBoolProperty(key, default_value); in GetBoolProperty()
15 const std::string& key, const std::string& default_value) { in GetProperty() argument
16 return android::base::GetProperty(key, default_value); in GetProperty()
19 int AndroidPropertyManagerImpl::GetIntProperty(const std::string& key, in GetIntProperty() argument
21 return android::base::GetIntProperty(key, default_value); in GetIntProperty()
24 bool AndroidPropertyManagerImpl::SetProperty(const std::string& key, in SetProperty() argument
26 return android::base::SetProperty(key, value); in SetProperty()
/device/google/cuttlefish/host/commands/secure_env/
Dtpm_keymaster_context.cpp186 keymaster::UniquePtr<keymaster::Key> key; in UpgradeKeyBlob() local
187 auto error = ParseKeyBlob(blob_to_upgrade, upgrade_params, &key); in UpgradeKeyBlob()
200 int key_os_version_pos = key->hw_enforced().find(keymaster::TAG_OS_VERSION); in UpgradeKeyBlob()
202 uint32_t key_os_version = key->hw_enforced()[key_os_version_pos].integer; in UpgradeKeyBlob()
204 key->hw_enforced()[key_os_version_pos].integer = os_version_; in UpgradeKeyBlob()
211 &key->hw_enforced(), &set_changed); in UpgradeKeyBlob()
215 &key->hw_enforced(), &set_changed); in UpgradeKeyBlob()
229 key->key_material(), key->hw_enforced(), key->sw_enforced(), in UpgradeKeyBlob()
235 keymaster::UniquePtr<keymaster::Key>* key) const { in ParseKeyBlob()
262 std::move(hw_enforced), std::move(sw_enforced), key); in ParseKeyBlob()
[all …]
Dtpm_gatekeeper.cpp69 const uint8_t* key, in ComputePasswordSignature() argument
80 key, in ComputePasswordSignature()
95 const uint8_t* key, in ComputeSignature() argument
100 std::string key_unique(reinterpret_cast<const char*>(key), key_length); in ComputeSignature()
158 std::string key = std::to_string(uid); in GetFailureRecordImpl() local
159 if (!CF_EXPECT(storage.HasKey(key))) { in GetFailureRecordImpl()
161 CF_EXPECT(storage.Write(key, *data)); in GetFailureRecordImpl()
163 auto record_read = CF_EXPECT(storage.Read(key)); in GetFailureRecordImpl()
172 CF_EXPECT(storage.Write(key, *data)); in GetFailureRecordImpl()
195 std::string key = std::to_string(uid); in WriteFailureRecordImpl() local
[all …]
/device/google/cuttlefish/host/frontend/webrtc_operator/certs/
Dcreate_certs.sh20 openssl genrsa -des3 -passout pass:xxxx -out server.pass.key 2048
21 openssl rsa -passin pass:xxxx -in server.pass.key -out server.key
22 rm -f server.pass.key
26 -new -key server.key -out server.csr
28 openssl x509 -req -sha256 -days 99999 -in server.csr -signkey server.key -out server.crt
46 openssl pkcs12 -export -inkey server.key -in server.crt -name localhost -out server.p12

12345678910>>...17