Home
last modified time | relevance | path

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

12345678910>>...25

/hardware/google/gfxstream/guest/mesa/src/util/
Dset.c96 key_pointer_is_reserved(const void *key) in key_pointer_is_reserved() argument
98 return key == NULL || key == deleted_key; in key_pointer_is_reserved()
104 return entry->key == NULL; in entry_is_free()
110 return entry->key == deleted_key; in entry_is_deleted()
116 return entry->key != NULL && entry->key != deleted_key; in entry_is_present()
121 uint32_t (*key_hash_function)(const void *key), in _mesa_set_init() argument
142 uint32_t (*key_hash_function)(const void *key), in _mesa_set_create() argument
161 key_u32_hash(const void *key) in key_u32_hash() argument
163 uint32_t u = (uint32_t)(uintptr_t)key; in key_u32_hash()
250 entry->key = NULL; in _mesa_set_clear()
[all …]
Dhash_table.c125 key_pointer_is_reserved(const struct hash_table *ht, const void *key) in key_pointer_is_reserved() argument
127 return key == NULL || key == ht->deleted_key; in key_pointer_is_reserved()
133 return entry->key == NULL; in entry_is_free()
139 return entry->key == ht->deleted_key; in entry_is_deleted()
145 return entry->key != NULL && entry->key != ht->deleted_key; in entry_is_present()
151 uint32_t (*key_hash_function)(const void *key), in _mesa_hash_table_init() argument
173 uint32_t (*key_hash_function)(const void *key), in _mesa_hash_table_create() argument
195 key_u32_hash(const void *key) in key_u32_hash() argument
197 uint32_t u = (uint32_t)(uintptr_t)key; in key_u32_hash()
284 entry->key = NULL; in _mesa_hash_table_clear()
[all …]
Dhash_table.h42 const void *key; member
48 uint32_t (*key_hash_function)(const void *key);
63 uint32_t (*key_hash_function)(const void *key),
70 uint32_t (*key_hash_function)(const void *key),
92 _mesa_hash_table_insert(struct hash_table *ht, const void *key, void *data);
95 const void *key, void *data);
97 _mesa_hash_table_search(struct hash_table *ht, const void *key);
100 const void *key);
104 const void *key);
117 uint32_t _mesa_hash_int(const void *key);
[all …]
Dset.h40 const void *key; member
46 uint32_t (*key_hash_function)(const void *key);
60 uint32_t (*key_hash_function)(const void *key),
66 uint32_t (*key_hash_function)(const void *key),
85 _mesa_set_add(struct set *set, const void *key);
87 _mesa_set_add_pre_hashed(struct set *set, uint32_t hash, const void *key);
90 _mesa_set_search_or_add(struct set *set, const void *key, bool *found);
93 const void *key, bool *found);
96 _mesa_set_search(const struct set *set, const void *key);
99 const void *key);
[all …]
Ddisk_cache.h60 (*disk_cache_put_cb) (const void *key, signed long keySize,
64 (*disk_cache_get_cb) (const void *key, signed long keySize,
184 disk_cache_remove(struct disk_cache *cache, const cache_key key);
196 disk_cache_put(struct disk_cache *cache, const cache_key key,
212 disk_cache_put_nocopy(struct disk_cache *cache, const cache_key key,
230 disk_cache_get(struct disk_cache *cache, const cache_key key, size_t *size);
242 disk_cache_put_key(struct disk_cache *cache, const cache_key key);
255 disk_cache_has_key(struct disk_cache *cache, const cache_key key);
262 cache_key key);
283 disk_cache_put(struct disk_cache *cache, const cache_key key, in disk_cache_put() argument
[all …]
/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 …]
/hardware/nxp/secure_element/pn8x/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 …]
/hardware/google/av/media/eco/
DECOData.cpp185 ECODataStatus ECOData::setString(const std::string& key, const std::string& value) { in setString() argument
186 if (key.empty() || value.empty()) { in setString()
190 mKeyValueStore[key] = value; in setString()
196 ECODataStatus ECOData::findString(const std::string& key, std::string* value) const { in findString() argument
197 if (key.empty()) { in findString()
202 if (mKeyValueStore.find(key) == mKeyValueStore.end()) { in findString()
207 const std::string& entryValue = std::get<std::string>(mKeyValueStore.at(key)); in findString()
216 ECODataStatus ECOData::setValue(const std::string& key, T value) { in setValue() argument
217 if (key.empty()) { in setValue()
221 mKeyValueStore[key] = value; in setValue()
[all …]
/hardware/google/pixel/power-libperfmgr/libperfmgr/tests/
DPropertyNodeTest.cc49 std::string key = _InitProperty("test.libperfmgr.key"); in TEST() local
50 PropertyNode t("t", key, {{"value0"}, {"value1"}, {"value2"}}, 1, false); in TEST()
52 _VerifyPropertyValue(key, ""); in TEST()
57 std::string key = _InitProperty("test.libperfmgr.key"); in TEST() local
58 PropertyNode t("t", key, {{"value0"}, {"value1"}, {"value2"}}, 1, true); in TEST()
60 _VerifyPropertyValue(key, "value1"); in TEST()
69 std::string key = _InitProperty("test.libperfmgr.key"); in TEST() local
70 PropertyNode t("test_dump", key, {{"value0"}, {"value1"}, {"value2"}}, 1, in TEST()
82 "test_dump", key.c_str(), static_cast<size_t>(1), "value1")); in TEST()
91 std::string key = _InitProperty("test.libperfmgr.key"); in TEST() local
[all …]
/hardware/nxp/secure_element/snxxx/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()
/hardware/google/gfxstream/guest/mesa/src/util/tests/
Drb_tree_test.cpp52 int key; member
60 return *(int *)v - tn->key; in rb_test_node_cmp_void()
69 return tb->key - ta->key; in rb_test_node_cmp()
80 assert(n->key >= max_val); in validate_tree_order()
81 if (n->key > max_val) { in validate_tree_order()
82 max_val = n->key; in validate_tree_order()
101 assert(n->key >= max_val); in validate_tree_order()
102 if (n->key > max_val) { in validate_tree_order()
103 max_val = n->key; in validate_tree_order()
122 assert(n->key <= min_val); in validate_tree_order()
[all …]
/hardware/google/av/media/eco/include/eco/
DECOData.h100 ECODataStatus set(const std::string& key, const ECODataValueType& value);
101 ECODataStatus find(const std::string& key, ECODataValueType* out) const;
104 ECODataStatus setString(const std::string& key, const std::string& value);
105 ECODataStatus findString(const std::string& key, std::string* out) const;
108 ECODataStatus setInt32(const std::string& key, int32_t value);
109 ECODataStatus findInt32(const std::string& key, int32_t* out) const;
112 ECODataStatus setInt64(const std::string& key, int64_t value);
113 ECODataStatus findInt64(const std::string& key, int64_t* out) const;
116 ECODataStatus setFloat(const std::string& key, float value);
117 ECODataStatus findFloat(const std::string& key, float* out) const;
[all …]
/hardware/google/gfxstream/guest/mesa/src/util/tests/hash_table/
Dcollision.c37 free((void *)entry->key); in entry_free()
64 assert(entry1->key == str1); in main()
67 assert(entry2->key == str2); in main()
71 assert(entry1->key == str1); in main()
76 assert(entry2->key == str2); in main()
82 assert(search_entry == entry2 || search_entry->key != str2); in main()
90 char *key = malloc(10); in main() local
91 sprintf(key, "spam%d", i); in main()
92 _mesa_hash_table_insert_pre_hashed(ht, _mesa_hash_string(key), key, NULL); in main()
95 assert(entry1->key == str1); in main()
[all …]
/hardware/google/gfxstream/guest/android-emu/aemu/base/threads/
DAndroidThreadStore.cpp91 void unregisterKey(int key) { in unregisterKey() argument
92 D("key=%d\n", key); in unregisterKey()
93 if (key < 0 || key >= kMaxTlsSlots) { in unregisterKey()
102 mDestructors[key] = NULL; in unregisterKey()
108 void* getValue(int key) const { in getValue()
109 D("Entering key=%d\n", key); in getValue()
110 if (key < 0 || key >= kMaxTlsSlots) { in getValue()
116 void* ret = (*array)[key]; in getValue()
122 void setValue(int key, void* value) { in setValue() argument
123 D("Entering key=%d\n",key); in setValue()
[all …]
/hardware/google/gfxstream/guest/mesa/include/android_stub/cutils/
Dproperties.h49 int property_get(const char* key, char* value, const char* default_value);
65 int8_t property_get_bool(const char *key, int8_t default_value);
86 int64_t property_get_int64(const char *key, int64_t default_value);
107 int32_t property_get_int32(const char *key, int32_t default_value);
111 int property_set(const char *key, const char *value);
113 int property_list(void (*propfn)(const char *key, const char *value, void *cookie), void *cookie);
123 int property_get(const char* key, char* value, const char* default_value)
136 int property_get(const char *key, char *value, const char *default_value) { in property_get() argument
141 return __property_get_real(key, value, default_value); in property_get()
/hardware/qcom/sm7150/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/sm8150/gps/utils/
DLocUnorderedSetMap.h106 inline unordered_set<VAL>* getValSetPtr(const KEY& key) { in getValSetPtr() argument
107 auto entry = mMap.find(key); in getValSetPtr()
113 inline unordered_set<VAL> getValSet(const KEY& key) { in getValSet() argument
114 auto entry = mMap.find(key); in getValSet()
127 inline bool remove(const KEY& key) { in remove() argument
128 return mMap.erase(key) > 0; in remove()
142 for (auto key : keys) { in trimOrRemove() local
143 auto iter = mMap.find(key); in trimOrRemove()
152 bool add(const KEY& key, const unordered_set<VAL>& newVals) { in add() argument
155 auto iter = mMap.find(key); in add()
[all …]
/hardware/qcom/sm7250/gps/utils/
DLocUnorderedSetMap.h106 inline unordered_set<VAL>* getValSetPtr(const KEY& key) { in getValSetPtr() argument
107 auto entry = mMap.find(key); in getValSetPtr()
113 inline unordered_set<VAL> getValSet(const KEY& key) { in getValSet() argument
114 auto entry = mMap.find(key); in getValSet()
127 inline bool remove(const KEY& key) { in remove() argument
128 return mMap.erase(key) > 0; in remove()
142 for (auto key : keys) { in trimOrRemove() local
143 auto iter = mMap.find(key); in trimOrRemove()
152 bool add(const KEY& key, const unordered_set<VAL>& newVals) { in add() argument
155 auto iter = mMap.find(key); in add()
[all …]
/hardware/qcom/sm8150p/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/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/google/aemu/base/include/aemu/base/
DLruCache.h30 Value* get(const Key& key) { in get() argument
31 auto tableIt = m_table.find(key); in get()
42 void set(const Key& key, Value&& value) { in set() argument
43 auto tableIt = m_table.find(key); in set()
47 m_table.erase(kv.key); in set()
55 key, in set()
58 m_table[key] = m_elements.begin(); in set()
61 void remove(const Key& key) { in remove() argument
62 auto tableIt = m_table.find(key); in remove()
73 Key key; member
/hardware/google/aemu/host-common/
DMediaH264DecoderDefault.cpp50 uint64_t key = H264PingInfoParser::parseHostDecoderId(ptr); in readId() local
51 return key; in readId()
54 MediaH264DecoderPlugin* MediaH264DecoderDefault::getDecoder(uint64_t key) { in getDecoder() argument
57 auto iter = mDecoders.find(key); in getDecoder()
62 H264_DPRINT("Error: cannot find decoder with key %" PRIx64 "", key); in getDecoder()
71 void MediaH264DecoderDefault::addDecoder(uint64_t key, in addDecoder() argument
75 if (mDecoders.find(key) == mDecoders.end()) { in addDecoder()
76 mDecoders[key] = val; in addDecoder()
77 H264_DPRINT("added decoder key %" PRIx64 " val: %p", key, val); in addDecoder()
84 void MediaH264DecoderDefault::updateDecoder(uint64_t key, in updateDecoder() argument
[all …]
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/spec_tools/
Dalgo.py36 for key in key_iterable:
37 _ = self[key]
39 def __getitem__(self, key): argument
45 if key in self.d:
46 ret = self.d[key]
51 "f({}) depends on itself".format(key))
57 self.d[key] = None
59 ret = self._compute(key)
61 self.d[key] = ret

12345678910>>...25