Home
last modified time | relevance | path

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

12345678910

/hardware/qcom/msm8998/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 …]
/hardware/google/av/media/eco/
DECOData.cpp186 ECODataStatus ECOData::setString(const std::string& key, const std::string& value) { in setString() argument
187 if (key.empty() || value.empty()) { in setString()
191 mKeyValueStore[key] = value; in setString()
197 ECODataStatus ECOData::findString(const std::string& key, std::string* value) const { in findString() argument
198 if (key.empty()) { in findString()
203 if (mKeyValueStore.find(key) == mKeyValueStore.end()) { in findString()
208 const std::string& entryValue = std::get<std::string>(mKeyValueStore.at(key)); in findString()
217 ECODataStatus ECOData::setValue(const std::string& key, T value) { in setValue() argument
218 if (key.empty()) { in setValue()
222 mKeyValueStore[key] = value; in setValue()
[all …]
DECOSession.cpp183 const std::string& key = entry.first; in processSessionStats() local
185 ECOLOGV("Processing key: %s", key.c_str()); in processSessionStats()
186 if (!key.compare(KEY_STATS_TYPE)) { in processSessionStats()
189 } else if (!key.compare(ENCODER_TYPE)) { in processSessionStats()
192 } else if (!key.compare(ENCODER_PROFILE)) { in processSessionStats()
195 } else if (!key.compare(ENCODER_LEVEL)) { in processSessionStats()
198 } else if (!key.compare(ENCODER_TARGET_BITRATE_BPS)) { in processSessionStats()
201 } else if (!key.compare(ENCODER_KFI_FRAMES)) { in processSessionStats()
204 } else if (!key.compare(ENCODER_FRAMERATE_FPS)) { in processSessionStats()
207 } else if (!key.compare(ENCODER_INPUT_WIDTH)) { in processSessionStats()
[all …]
/hardware/nxp/secure_element/libese-spi/p73/utils/
Dese_config.cpp59 bool EseConfig::hasKey(const std::string& key) { in hasKey() argument
60 return getInstance().config_.hasKey(key); in hasKey()
63 std::string EseConfig::getString(const std::string& key) { in getString() argument
64 return getInstance().config_.getString(key); in getString()
67 std::string EseConfig::getString(const std::string& key, in getString() argument
69 if (hasKey(key)) return getString(key); in getString()
73 unsigned EseConfig::getUnsigned(const std::string& key) { in getUnsigned() argument
74 return getInstance().config_.getUnsigned(key); in getUnsigned()
77 unsigned EseConfig::getUnsigned(const std::string& key, in getUnsigned() argument
79 if (hasKey(key)) return getUnsigned(key); in getUnsigned()
[all …]
Dconfig.cpp105 string key(Trim(line.substr(0, search))); in parseFromString() local
111 CHECK(!hasKey(key)); in parseFromString()
112 values_.emplace(key, value); in parseFromString()
114 LOG(INFO) << "ConfigFile - [" << key << "] = " << value_string; in parseFromString()
118 bool ConfigFile::hasKey(const std::string& key) { in hasKey() argument
119 return values_.count(key) != 0; in hasKey()
122 ConfigValue& ConfigFile::getValue(const std::string& key) { in getValue() argument
123 auto search = values_.find(key); in getValue()
128 std::string ConfigFile::getString(const std::string& key) { in getString() argument
129 return getValue(key).getString(); in getString()
[all …]
Dese_config.h41 static bool hasKey(const std::string& key);
42 static std::string getString(const std::string& key);
43 static std::string getString(const std::string& key,
45 static unsigned getUnsigned(const std::string& key);
46 static unsigned getUnsigned(const std::string& key, unsigned default_value);
47 static std::vector<uint8_t> getBytes(const std::string& key);
Dconfig.h45 bool hasKey(const std::string& key);
46 std::string getString(const std::string& key);
47 unsigned getUnsigned(const std::string& key);
48 std::vector<uint8_t> getBytes(const std::string& key);
53 ConfigValue& getValue(const std::string& key);
/hardware/interfaces/bluetooth/1.0/default/test/
Dproperties.cc31 char key[PROP_KEY_MAX + 2]; member
39 static int property_find(const char* key) { in property_find() argument
41 if (strncmp(properties[i].key, key, PROP_KEY_MAX) == 0) { in property_find()
48 int property_set(const char* key, const char* value) { in property_set() argument
52 int prop_index = property_find(key); in property_set()
61 strncpy(properties[prop_index].key, key, PROP_KEY_MAX + 1); in property_set()
66 int property_get(const char* key, char* value, const char* default_value) { in property_get() argument
71 int prop_index = property_find(key); in property_get()
/hardware/google/av/media/eco/include/eco/
DECOData.h98 ECODataStatus set(const std::string& key, const ECODataValueType& value);
99 ECODataStatus find(const std::string& key, ECODataValueType* out) const;
102 ECODataStatus setString(const std::string& key, const std::string& value);
103 ECODataStatus findString(const std::string& key, std::string* out) const;
106 ECODataStatus setInt32(const std::string& key, int32_t value);
107 ECODataStatus findInt32(const std::string& key, int32_t* out) const;
110 ECODataStatus setInt64(const std::string& key, int64_t value);
111 ECODataStatus findInt64(const std::string& key, int64_t* out) const;
114 ECODataStatus setFloat(const std::string& key, float value);
115 ECODataStatus findFloat(const std::string& key, float* out) const;
[all …]
/hardware/qcom/sdm845/gps/sdm845/utils/
DLocUnorderedSetMap.h98 inline unordered_set<VAL>* getValSetPtr(const KEY& key) { in getValSetPtr() argument
99 auto entry = mMap.find(key); in getValSetPtr()
105 inline unordered_set<VAL> getValSet(const KEY& key) { in getValSet() argument
106 auto entry = mMap.find(key); in getValSet()
119 inline bool remove(const KEY& key) { in remove() argument
120 return mMap.erase(key) > 0; in remove()
133 for (auto key : keys) { in trimOrRemove() local
134 auto iter = mMap.find(key); in trimOrRemove()
143 bool add(const KEY& key, const unordered_set<VAL>& newVals) { in add() argument
146 auto iter = mMap.find(key); in add()
[all …]
/hardware/libhardware_legacy/audio/
DA2dpAudioInterface.cpp138 String8 key; in setParameters() local
143 key = "bluetooth_enabled"; in setParameters()
144 if (param.get(key, value) == NO_ERROR) { in setParameters()
149 param.remove(key); in setParameters()
151 key = String8("A2dpSuspended"); in setParameters()
152 if (param.get(key, value) == NO_ERROR) { in setParameters()
157 param.remove(key); in setParameters()
175 String8 key; in getParameters() local
177 key = "bluetooth_enabled"; in getParameters()
178 if (param.get(key, value) == NO_ERROR) { in getParameters()
[all …]
DAudioHardwareGeneric.cpp273 String8 key = String8(AudioParameter::keyRouting); in setParameters() local
278 if (param.getInt(key, device) == NO_ERROR) { in setParameters()
280 param.remove(key); in setParameters()
293 String8 key = String8(AudioParameter::keyRouting); in getParameters() local
295 if (param.get(key, value) == NO_ERROR) { in getParameters()
296 param.addInt(key, (int)mDevice); in getParameters()
381 String8 key = String8(AudioParameter::keyRouting); in setParameters() local
386 if (param.getInt(key, device) == NO_ERROR) { in setParameters()
388 param.remove(key); in setParameters()
401 String8 key = String8(AudioParameter::keyRouting); in getParameters() local
[all …]
/hardware/invensense/6515/libsensors_iio/software/core/mllite/
Dstorage_manager.c40 unsigned int key; member
71 … inv_error_t (*save_func)(unsigned char *data), size_t size, unsigned int key) in inv_register_load_store() argument
76 if (key == ds.hd[kk].key) { in inv_register_load_store()
85 ds.hd[ds.num].key = key; in inv_register_load_store()
109 static int inv_find_entry(unsigned int key) in inv_find_entry() argument
113 if (key == ds.hd[kk].key) { in inv_find_entry()
139 if (hd->key != DEFAULT_KEY) in inv_load_mpl_states()
151 entry = inv_find_entry(hd->key); in inv_load_mpl_states()
192 hd->key = ds.hd[kk].key; in inv_save_mpl_states()
202 hd->key = DEFAULT_KEY; in inv_save_mpl_states()
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/
Dstorage_manager.c40 unsigned int key; member
71 … inv_error_t (*save_func)(unsigned char *data), size_t size, unsigned int key) in inv_register_load_store() argument
76 if (key == ds.hd[kk].key) { in inv_register_load_store()
85 ds.hd[ds.num].key = key; in inv_register_load_store()
109 static int inv_find_entry(unsigned int key) in inv_find_entry() argument
113 if (key == ds.hd[kk].key) { in inv_find_entry()
139 if (hd->key != DEFAULT_KEY) in inv_load_mpl_states()
151 entry = inv_find_entry(hd->key); in inv_load_mpl_states()
192 hd->key = ds.hd[kk].key; in inv_save_mpl_states()
202 hd->key = DEFAULT_KEY; in inv_save_mpl_states()
/hardware/interfaces/media/omx/1.0/
DIOmxStore.hal35 * Attribute is a key-value pair of strings. The `value` member is generally
46 string key;
54 * key: 'max-video-encoder-input-buffers', value-type: num
55 * key: 'supports-multiple-secure-codecs', value-type: enum<0,1>
56 * key: 'supports-secure-with-non-secure-codec', value-type: enum<0,1>
79 * key: 'bitrate-range', value-type: range<num>
80 * key: 'max-concurrent-instances', value-type: num
81 * key: 'max-supported-instances', value-type: num
84 * key: 'max-channel-count', value-type: num
85 * key: 'sample-rate-ranges', value-type: list<range<num>>
[all …]
/hardware/qcom/audio/legacy/alsa_sound/
DALSAStreamOps.cpp191 String8 key = String8(AudioParameter::keyRouting); in setParameters() local
205 if (param.getInt(key, device) == NO_ERROR) { in setParameters()
220 param.remove(key); in setParameters()
224 key = String8(AudioParameter::keyHandleFm); in setParameters()
225 if (param.getInt(key, device) == NO_ERROR) { in setParameters()
231 param.remove(key); in setParameters()
243 String8 key = String8(AudioParameter::keyRouting); in getParameters() local
245 if (param.get(key, value) == NO_ERROR) { in getParameters()
246 param.addInt(key, (int)mDevices); in getParameters()
250 key = String8(AudioParameter::keyVoipCheck); in getParameters()
[all …]
DAudioHardwareALSA.cpp341 String8 key; in setParameters() local
349 key = String8(TTY_MODE_KEY); in setParameters()
350 if (param.get(key, value) == NO_ERROR) { in setParameters()
369 key = String8(FLUENCE_KEY); in setParameters()
370 if (param.get(key, value) == NO_ERROR) { in setParameters()
390 key = String8(INCALLMUSIC_KEY); in setParameters()
391 if (param.get(key, value) == NO_ERROR) { in setParameters()
411 key = String8(ANC_KEY); in setParameters()
412 if (param.get(key, value) == NO_ERROR) { in setParameters()
424 key = String8(AudioParameter::keyRouting); in setParameters()
[all …]
/hardware/interfaces/weaver/1.0/
DIWeaver.hal20 * corresponding key has been presented.
24 * key and value must be suitably large such that they cannot be easily guessed.
26 * Weaver is structured as an array of slots, each containing a key-value pair.
42 * Overwrites the identified slot with the provided key and value.
48 * @param key to write to the slot.
52 write(uint32_t slotId, vec<uint8_t> key, vec<uint8_t> value)
58 * The value is only returned if the provided key matches the key stored in
59 * the slot. The value is never returned if the wrong key is provided.
63 * correct key is provided. If called when throttling is active, the time
67 * @param key that is stored in the slot.
[all …]
/hardware/interfaces/keymaster/3.0/
DIKeymasterDevice.hal43 * key attestation certificates, signed with a key injected in a secure
75 * Generates a key, or key pair, returning a key blob and/or a description of the key.
82 * @return keyBlob Opaque, encrypted descriptor of the generated key, which generally contains a
83 * copy of the key material, wrapped in a key unavailable outside secure hardware.
85 * @return keyCharacteristics Description of the generated key. See KeyCharacteristis in
92 * Imports a key, or key pair, returning a key blob and/or a description of the key.
97 * @param keyFormat The format of the key material to import. See KeyFormat in types.hal.
99 * @pram keyData The key material to import, in the format specifed in keyFormat.
103 * @return keyBlob Opaque, encrypted descriptor of the generated key, which will generally
104 * contain a copy of the key material, wrapped in a key unavailable outside secure
[all …]
Dtypes.hal55 ECIES_SINGLE_HASH_MODE = TagType:BOOL | 201, /* Whether the ephemeral public key is fed into the
57 INCLUDE_UNIQUE_ID = TagType:BOOL | 202, /* If true, attestation certificates for this key
77 * cryptographic operations with the key. */
78 MAX_USES_PER_BOOT = TagType:UINT | 404, /* Number of times the key can be used per
87 NO_AUTH_REQUIRED = TagType:BOOL | 503, /** If key is usable without authentication. */
93 * private/secret key operations, in seconds. Public
94 * key operations require no authentication. If
98 ALLOW_WHILE_ON_BODY = TagType:BOOL | 506, /* Allow key to be used after authentication timeout
103 ALL_APPLICATIONS = TagType:BOOL | 600, /* Specified to indicate key is usable by all
106 EXPORTABLE = TagType:BOOL | 602, /* If true, private/secret key can be exported, but only
[all …]
/hardware/interfaces/keymaster/4.0/
DIKeymasterDevice.hal41 * the key, ensuring that the key cannot be used in any other way.
50 * All of the operations and storage of key material must occur in a secure environment. Secure
108 * - Any key size that is between 64 and 512 bits (inclusive) and a multiple of 8 must be
122 * repeated is specified in the documentation for the tag and in the TagType. When a key is created
141 * unknown tags, must be cryptographically bound to the private/secret key material such that any
142 * modification of the portion of the key blob that contains the authorization list makes it
143 * impossible for the secure environment to obtain the private/secret key material. The recommended
145 * key as input to a secure key derivation function used to derive a key that is used to encrypt the
146 * private/secret key material.
150 * time after which a key may not be used to encrypt or sign new messages. Unless the
[all …]
Dtypes.hal63 * Tag::PURPOSE specifies the set of purposes for which the key may be used. Possible values
68 * is specified. If the purpose specified for the operation is not authorized by the key (the
69 * key didn't have a corresponding Tag::PURPOSE provided during generation/import), the
77 * Tag::ALGORITHM specifies the cryptographic algorithm with which the key is used. This tag
78 * must be provided to generateKey and importKey, and must be specified in the wrapped key
86 * Tag::KEY_SIZE pecifies the size, in bits, of the key, measuring in the normal way for the
87 * key's algorithm. For example, for RSA keys, Tag::KEY_SIZE specifies the size of the public
88 * modulus. For AES keys it specifies the length of the secret key material. For 3DES keys it
89 * specifies the length of the key material, not counting parity bits (though parity bits must
90 * be provided for import, etc.). Since only three-key 3DES keys are supported, 3DES
[all …]
/hardware/interfaces/camera/common/1.0/default/include/
DCameraParameters.h55 void set(const char *key, const char *value);
56 void set(const char *key, int value);
57 void setFloat(const char *key, float value);
58 const char *get(const char *key) const;
59 int getInt(const char *key) const;
60 float getFloat(const char *key) const;
62 void remove(const char *key);
/hardware/interfaces/camera/common/1.0/default/
DCameraParameters.cpp245 void CameraParameters::set(const char *key, const char *value) in set() argument
248 if (strchr(key, '=') || strchr(key, ';')) { in set()
258 mMap.replaceValueFor(String8(key), String8(value)); in set()
261 void CameraParameters::set(const char *key, int value) in set() argument
265 set(key, str); in set()
268 void CameraParameters::setFloat(const char *key, float value) in setFloat() argument
272 set(key, str); in setFloat()
275 const char *CameraParameters::get(const char *key) const in get()
277 String8 v = mMap.valueFor(String8(key)); in get()
283 int CameraParameters::getInt(const char *key) const in getInt()
[all …]
/hardware/google/pixel/perfstatsd/
Dmain.cpp72 int serviceCall(int mode, const std::string &key, const std::string &value) { in serviceCall() argument
95 LOG_TO(SYSTEM, INFO) << "set option: " << key << " , " << value; in serviceCall()
97 ->setOptions(std::forward<const std::string>(key), in serviceCall()
125 std::string key(argv[2]); in main() local
127 return serviceCall(SET_OPTION, std::move(key), std::move(value)); in main()

12345678910