Home
last modified time | relevance | path

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

1234567891011

/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.cpp110 string key(Trim(line.substr(0, search))); in parseFromString() local
116 CHECK(!hasKey(key)); in parseFromString()
117 values_.emplace(key, value); in parseFromString()
119 LOG(INFO) << "ConfigFile - [" << key << "] = " << value_string; in parseFromString()
123 bool ConfigFile::hasKey(const std::string& key) { in hasKey() argument
124 return values_.count(key) != 0; in hasKey()
127 ConfigValue& ConfigFile::getValue(const std::string& key) { in getValue() argument
128 auto search = values_.find(key); in getValue()
133 std::string ConfigFile::getString(const std::string& key) { in getString() argument
134 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.h46 bool hasKey(const std::string& key);
47 std::string getString(const std::string& key);
48 unsigned getUnsigned(const std::string& key);
49 std::vector<uint8_t> getBytes(const std::string& key);
54 ConfigValue& getValue(const std::string& key);
/hardware/st/secure_element/ese-spi-driver/utils-lib/
Dese_config.cc61 bool EseConfig::hasKey(const std::string& key) { in hasKey() argument
62 return getInstance().config_.hasKey(key); in hasKey()
65 std::string EseConfig::getString(const std::string& key) { in getString() argument
66 return getInstance().config_.getString(key); in getString()
69 std::string EseConfig::getString(const std::string& key, in getString() argument
71 if (hasKey(key)) return getString(key); in getString()
75 unsigned EseConfig::getUnsigned(const std::string& key) { in getUnsigned() argument
76 return getInstance().config_.getUnsigned(key); in getUnsigned()
79 unsigned EseConfig::getUnsigned(const std::string& key, in getUnsigned() argument
81 if (hasKey(key)) return getUnsigned(key); in getUnsigned()
[all …]
Dconfig.cc105 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.h34 static bool hasKey(const std::string& key);
35 static std::string getString(const std::string& key);
36 static std::string getString(const std::string& key,
38 static unsigned getUnsigned(const std::string& key);
39 static unsigned getUnsigned(const std::string& key, unsigned default_value);
40 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/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/sm8150/gps/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/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 …]
/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/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/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 …]
/hardware/interfaces/keymaster/4.1/
Dtypes.hal32 * attestation using a device-unique key is requested, rather than a batch key. When a
33 * device-unique key is used, only the attestation certificate is returned; no additional
35 * signing key. Only SecurityLevel::STRONGBOX IKeymasterDevices may support device-unique
47 * IDENTITY_CREDENTIAL_KEY is never used by IKeymasterDevice, is not a valid argument to key
48 * generation or any operation, is never returned by any method and is never used in a key
60 * STORAGE_KEY is used to denote that a key generated or imported is a key used for storage
62 … * keymaster. exportKey() can be used to re-wrap storage key with a per-boot ephemeral key wrapped
63 * key once the key characteristics are enforced.
66 * ErrorCode::INVALID_OPERATION is returned when a key with Tag::STORAGE_KEY is provided to
/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 …]
/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);

1234567891011