Searched refs:key (Results 1 - 25 of 53) sorted by relevance

123

/art/tools/checker/common/
H A Dimmutables.py16 def __setitem__(self, key, value):
19 def __delitem__(self, key):
22 def copyWith(self, key, value):
24 dict.__setitem__(newDict, key, value)
/art/libartbase/base/
H A Dvariant_map.h31 // A variant map is a heterogenous, type safe key->value map. It allows
38 // TValue* Get(Key<T> key); // null if the value was never set, otherwise the value.
41 // void Set(Key<T> key, TValue value);
44 // Since the key is strongly typed at compile-time, it is impossible to accidentally
45 // read/write a value with a different type than the key at either compile-time or run-time.
96 // Clone the key, creating a copy of the contents.
99 // Delete a value whose runtime type is that of the non-erased key's TValue.
102 // Clone a value whose runtime type is that of the non-erased key's TValue.
105 // Compare one key to another (same as operator<).
138 // Instantiate a default value for this key
228 Get(const TKey<TValue>& key) argument
241 AssignIfExists(const TKey<T>& key, U* out) argument
252 ScopedRemove(VariantMap& map, const TKey<TValue>& key) argument
265 ReleaseOrDefault(const TKey<TValue>& key) argument
285 Set(const TKey<TValue>& key, const typename Identity<TValue>::type& value) argument
298 SetIfMissing(const TKey<TValue>& key, const typename Identity<TValue>::type& value) argument
309 Remove(const TKey<TValue>& key) argument
389 InitializeParameters(const TK& key, const TValue& value, const Rest& ... rest) argument
415 GetKeyValueIterator(const TKey<TValue>& key) argument
433 GetValuePtr(const TKey<TValue>& key) argument
[all...]
H A Dhash_map.h35 size_t operator()(const Key& key) const {
36 return fn_(key);
/art/test/922-properties/src/art/
H A DTest922.java31 for (String key : recommendedProperties) {
32 checkProperty(key);
49 for (String key : nonRecommended) {
50 checkProperty(key);
54 String key = generate(allProperties);
55 checkProperty(key);
92 private static void checkProperty(String key) { argument
93 System.out.print(" \"" + key + "\": ");
97 value = getSystemProperty(key);
101 String sysValue = System.getProperty(key);
153 getSystemProperty(String key) argument
154 setSystemProperty(String key, String value) argument
[all...]
/art/test/044-proxy/src/
H A DMain.java48 for (String key : proxyClassNameMap.keySet()) {
49 str = str.replace(key, proxyClassNameMap.get(key));
/art/tools/dexfuzz/src/dexfuzz/
H A DOptions.java219 * Given a key-value option (one that features an =), handle it
220 * accordingly. Report an error and print usage info if the key is not
223 private static void handleKeyValueOption(String key, String value) { argument
224 if (key.equals("input")) {
226 } else if (key.equals("inputs")) {
236 } else if (key.equals("output")) {
238 } else if (key.equals("seed")) {
241 } else if (key.equals("method-mutations")) {
243 } else if (key.equals("min-methods")) {
245 } else if (key
[all...]
/art/compiler/utils/
H A Ddedupe_set-inl.h65 for (const HashedKey<StoreKey>& key : keys_) {
66 DCHECK(key.Key() != nullptr);
67 alloc_.Destroy(key.Key());
94 for (const HashedKey<StoreKey>& key : keys_) {
95 auto it = stats.find(key.Hash());
97 stats.insert({key.Hash(), 1u});
117 HashedKey(size_t hash, const T* key) : hash_(hash), key_(key) { } argument
142 bool IsEmpty(const HashedKey<StoreKey>& key) const {
143 return key
146 MakeEmpty(HashedKey<StoreKey>& key) argument
189 Add( Thread* self, const InKey& key) argument
[all...]
H A Ddedupe_set.h41 // Add a new key to the dedupe set if not present. Return the equivalent deduplicated stored key.
42 const StoreKey* Add(Thread* self, const InKey& key);
H A Ddedupe_set_test.cc49 void Destroy(const std::vector<uint8_t>* key) { argument
50 delete key;
/art/test/922-properties/
H A Dproperties.cc58 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jstring key) {
59 ScopedUtfChars string(env, key);
78 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jstring key, jstring value) {
79 ScopedUtfChars key_string(env, key);
57 Java_art_Test922_getSystemProperty( JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jstring key) argument
77 Java_art_Test922_setSystemProperty( JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jstring key, jstring value) argument
/art/cmdline/
H A Dcmdline_parser_test.cc93 const TKey& key) {
94 auto* actual = map.Get(key);
104 return ::testing::AssertionFailure() << "key was not in the map";
110 const TKey& key) {
111 const T& actual = map.GetOrDefault(key);
163 #define EXPECT_KEY_EXISTS(map, key) EXPECT_TRUE((map).Exists(key))
164 #define EXPECT_KEY_VALUE(map, key, expected) EXPECT_TRUE(IsExpectedKeyValue(expected, map, key))
165 #define EXPECT_DEFAULT_KEY_VALUE(map, key, expecte
91 IsExpectedKeyValue(const T& expected, const TMap& map, const TKey& key) argument
108 IsExpectedDefaultKeyValue(const T& expected, const TMap& map, const TKey& key) argument
[all...]
H A Dcmdline_parser.h68 void SaveToMap(const TVariantMapKey<TArg>& key, TArg& value) { argument
69 variant_map_->Set(key, value);
74 TArg& GetOrCreateFromMap(const TVariantMapKey<TArg>& key) { argument
75 auto* ptr = variant_map_->Get(key);
77 variant_map_->Set(key, TArg());
78 ptr = variant_map_->Get(key);
168 // Convenience type alias for the variant map key type definition.
171 // Write the results of this argument into the key.
172 // To look up the parsed arguments, get the map and then use this key with VariantMap::Get
173 CmdlineParser::Builder& IntoKey(const MapKey& key) { argument
311 IntoKey(const TVariantMapKey<Unit>& key) argument
[all...]
/art/compiler/linker/arm/
H A Drelative_patcher_arm_base.h92 uint32_t GetThunkTargetOffset(const ThunkKey& key, uint32_t patch_offset);
97 virtual std::vector<uint8_t> CompileThunk(const ThunkKey& key) = 0;
98 virtual std::string GetThunkDebugName(const ThunkKey& key) = 0;
99 virtual uint32_t MaxPositiveDisplacement(const ThunkKey& key) = 0;
100 virtual uint32_t MaxNegativeDisplacement(const ThunkKey& key) = 0;
110 uint32_t CalculateMaxNextOffset(uint32_t patch_offset, const ThunkKey& key);
H A Drelative_patcher_arm_base.cc242 const ThunkKey& key = entry.first; local
249 std::string base_name = GetThunkDebugName(key);
360 uint32_t ArmBaseRelativePatcher::GetThunkTargetOffset(const ThunkKey& key, uint32_t patch_offset) { argument
361 auto it = thunks_.find(key);
367 if (patch_offset - offset <= MaxNegativeDisplacement(key)) {
374 DCHECK_LE(offset - patch_offset, MaxPositiveDisplacement(key));
394 ThunkKey key(static_cast<ThunkType>(-1));
397 key = GetMethodCallKey();
400 uint32_t max_next_offset = CalculateMaxNextOffset(patch_offset, key);
401 auto it = thunks_.Put(key, ThunkDat
515 CalculateMaxNextOffset(uint32_t patch_offset, const ThunkKey& key) argument
[all...]
H A Drelative_patcher_thumb2.h86 std::vector<uint8_t> CompileThunk(const ThunkKey& key) OVERRIDE;
87 std::string GetThunkDebugName(const ThunkKey& key) OVERRIDE;
88 uint32_t MaxPositiveDisplacement(const ThunkKey& key) OVERRIDE;
89 uint32_t MaxNegativeDisplacement(const ThunkKey& key) OVERRIDE;
H A Drelative_patcher_thumb2.cc112 ThunkKey key = GetBakerThunkKey(patch); local
114 const uint32_t encoded_data = key.GetCustomValue1();
165 LOG(FATAL) << "Unexpected type: " << static_cast<uint32_t>(key.GetType());
169 uint32_t target_offset = GetThunkTargetOffset(key, patch_offset);
357 std::vector<uint8_t> Thumb2RelativePatcher::CompileThunk(const ThunkKey& key) { argument
362 switch (key.GetType()) {
374 CompileBakerReadBarrierThunk(assembler, key.GetCustomValue1());
385 std::string Thumb2RelativePatcher::GetThunkDebugName(const ThunkKey& key) { argument
386 switch (key.GetType()) {
391 uint32_t encoded_data = key
425 MaxPositiveDisplacement(const ThunkKey& key) argument
434 MaxNegativeDisplacement(const ThunkKey& key) argument
[all...]
/art/test/testrunner/
H A Denv.py68 # Split out "$key='$value'" via regex.
72 key = match.group(1)
74 _DUMP_MANY_VARS[key] = value
90 def get_env(key):
91 return _env.get(key)
/art/tools/ahat/src/main/com/android/ahat/
H A DDoc.java91 void description(DocString key, DocString value); argument
/art/compiler/linker/arm64/
H A Drelative_patcher_arm64.h78 std::vector<uint8_t> CompileThunk(const ThunkKey& key) OVERRIDE;
79 std::string GetThunkDebugName(const ThunkKey& key) OVERRIDE;
80 uint32_t MaxPositiveDisplacement(const ThunkKey& key) OVERRIDE;
81 uint32_t MaxNegativeDisplacement(const ThunkKey& key) OVERRIDE;
/art/runtime/
H A Doat.h112 const char* GetStoreValueByKey(const char* key) const;
113 bool GetStoreKeyValuePairByIndex(size_t index, const char** key, const char** value) const;
123 bool KeyHasValue(const char* key, const char* value, size_t value_size) const;
130 // Returns true if the value of the given key is "true", false otherwise.
131 bool IsKeyEnabled(const char* key) const;
H A Doat.cc424 const char* OatHeader::GetStoreValueByKey(const char* key) const {
432 if (strcmp(key, ptr) == 0) {
433 // Same as key. Check if value is OK.
438 // Different from key. Advance over the value.
449 bool OatHeader::GetStoreKeyValuePairByIndex(size_t index, const char** key, argument
463 *key = maybe_key;
509 bool OatHeader::KeyHasValue(const char* key, const char* value, size_t value_size) const { argument
510 const char* key_value = GetStoreValueByKey(key);
514 bool OatHeader::IsKeyEnabled(const char* key) const {
515 return KeyHasValue(key, kTrueValu
[all...]
/art/test/701-easy-div-rem/
H A DgenMain.py43 for key, value in variables.iteritems():
44 text = text.replace(str(key), str(value))
/art/tools/ahat/src/main/com/android/ahat/heapdump/
H A DParser.java739 // mKeyAt0 is the key corresponding to index 0 of mValues. Values with
758 public void put(long key, T value) { argument
762 mKeyAt0 = key;
763 mMaxKey = key;
764 mMinKey = key;
768 long max = Math.max(mMaxKey, key);
769 long min = Math.min(mMinKey, key);
785 mValues[indexOf(key)] = value;
789 * Returns the value for the given key.
790 * @throws HprofFormatException if there is no value with the key i
793 get(long key) argument
806 indexOf(long key) argument
829 put(long key, T value) argument
838 get(long key) argument
[all...]
H A DDiff.java116 * Return the key for the given instance.
200 Key key = Key.keyFor(inst);
201 InstanceListPair pair = byKey.get(key);
204 byKey.put(key, pair);
209 Key key = Key.keyFor(inst);
210 InstanceListPair pair = byKey.get(key);
213 byKey.put(key, pair);
218 // diff objects from the same key class.
/art/tools/dexfuzz/src/dexfuzz/executors/
H A DDevice.java68 private String checkForEnvVar(Map<String, String> envVars, String key) { argument
69 if (!envVars.containsKey(key)) {
70 Log.errorAndQuit("Cannot run a fuzzed program if $" + key + " is not set!");
72 return envVars.get(key);

Completed in 1473 milliseconds

123