/art/libartbase/base/ |
D | variant_map.h | 221 const TValue* Get(const TKey<TValue>& key) const { in Get() 222 return GetValuePtr(key); in Get() 228 TValue* Get(const TKey<TValue>& key) { in Get() 229 return GetValuePtr(key); in Get() 235 TValue GetOrDefault(const TKey<TValue>& key) const { in GetOrDefault() 236 auto* ptr = Get(key); in GetOrDefault() 237 return (ptr == nullptr) ? key.CreateDefaultValue() : *ptr; in GetOrDefault() 241 void AssignIfExists(const TKey<T>& key, U* out) { in AssignIfExists() 243 if (Exists(key)) { in AssignIfExists() 244 *out = std::move(*Get(key)); in AssignIfExists() [all …]
|
/art/test/922-properties/src/art/ |
D | Test922.java | 31 for (String key : recommendedProperties) { in doTest() 32 checkProperty(key); in doTest() 49 for (String key : nonRecommended) { in doTest() 50 checkProperty(key); in doTest() 54 String key = generate(allProperties); in doTest() local 55 checkProperty(key); in doTest() 92 private static void checkProperty(String key) { in checkProperty() argument 93 System.out.print(" \"" + key + "\": "); in checkProperty() 97 value = getSystemProperty(key); in checkProperty() 101 String sysValue = System.getProperty(key); in checkProperty() [all …]
|
/art/runtime/interpreter/ |
D | interpreter_cache.h | 65 ALWAYS_INLINE bool Get(const void* key, /* out */ size_t* value) { in Get() argument 67 Entry& entry = data_[IndexOf(key)]; in Get() 68 if (LIKELY(entry.first == key)) { in Get() 75 ALWAYS_INLINE void Set(const void* key, size_t value) { in Set() argument 77 data_[IndexOf(key)] = Entry{key, value}; in Set() 87 static ALWAYS_INLINE size_t IndexOf(const void* key) { in IndexOf() argument 89 size_t index = (reinterpret_cast<uintptr_t>(key) >> 2) & (kSize - 1); in IndexOf()
|
/art/tools/checker/common/ |
D | immutables.py | 16 def __setitem__(self, key, value): argument 19 def __delitem__(self, key): argument 22 def copyWith(self, key, value): argument 24 dict.__setitem__(newDict, key, value)
|
/art/tools/dexfuzz/src/dexfuzz/ |
D | Options.java | 215 private static void handleKeyValueOption(String key, String value) { in handleKeyValueOption() argument 216 if (key.equals("input")) { in handleKeyValueOption() 218 } else if (key.equals("inputs")) { in handleKeyValueOption() 228 } else if (key.equals("output")) { in handleKeyValueOption() 230 } else if (key.equals("seed")) { in handleKeyValueOption() 233 } else if (key.equals("method-mutations")) { in handleKeyValueOption() 235 } else if (key.equals("min-methods")) { in handleKeyValueOption() 237 } else if (key.equals("max-methods")) { in handleKeyValueOption() 239 } else if (key.equals("repeat")) { in handleKeyValueOption() 241 } else if (key.equals("divergence-retry")) { in handleKeyValueOption() [all …]
|
/art/compiler/utils/ |
D | dedupe_set-inl.h | 65 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) { } 142 bool IsEmpty(const HashedKey<StoreKey>& key) const { 143 return key.IsEmpty(); 146 void MakeEmpty(HashedKey<StoreKey>& key) { [all …]
|
D | dedupe_set_test.cc | 49 void Destroy(const std::vector<uint8_t>* key) { in Destroy() argument 50 delete key; in Destroy()
|
/art/test/687-deopt/src/ |
D | Main.java | 27 Main key = new Main(); in main() local 30 map.put(key, value); in main() 31 Integer res = map.get(key); in main()
|
/art/cmdline/ |
D | cmdline_parser_test.cc | 98 const TKey& key) { in IsExpectedKeyValue() argument 99 auto* actual = map.Get(key); in IsExpectedKeyValue() 115 const TKey& key) { in IsExpectedDefaultKeyValue() argument 116 const T& actual = map.GetOrDefault(key); in IsExpectedDefaultKeyValue() 168 #define EXPECT_KEY_EXISTS(map, key) EXPECT_TRUE((map).Exists(key)) argument 169 #define EXPECT_KEY_VALUE(map, key, expected) EXPECT_TRUE(IsExpectedKeyValue(expected, map, key)) argument 170 #define EXPECT_DEFAULT_KEY_VALUE(map, key, expected) EXPECT_TRUE(IsExpectedDefaultKeyValue(expected… argument 181 #define EXPECT_SINGLE_PARSE_DEFAULT_VALUE(expected, argv, key)\ argument 184 EXPECT_DEFAULT_KEY_VALUE(args, key, expected); \ 187 #define _EXPECT_SINGLE_PARSE_EXISTS(argv, key) \ argument [all …]
|
D | cmdline_parser.h | 73 void SaveToMap(const TVariantMapKey<TArg>& key, TArg& value) { in SaveToMap() 74 variant_map_->Set(key, value); in SaveToMap() 79 TArg& GetOrCreateFromMap(const TVariantMapKey<TArg>& key) { in GetOrCreateFromMap() 80 auto* ptr = variant_map_->Get(key); in GetOrCreateFromMap() 82 variant_map_->Set(key, TArg()); in GetOrCreateFromMap() 83 ptr = variant_map_->Get(key); in GetOrCreateFromMap() 188 CmdlineParser::Builder& IntoKey(const MapKey& key) { in IntoKey() 192 save_value_ = [save_destination, &key](TArg& value) { in IntoKey() 193 save_destination->SaveToMap(key, value); in IntoKey() 198 load_value_ = [save_destination, &key]() -> TArg& { in IntoKey() [all …]
|
/art/test/800-smali/smali/ |
D | b_24399945.smali | 14 :case1 # key = INT_MAX - 1 15 :case2 # key = INT_MAX 16 :case3 # key = INT_MIN (overflow!)
|
D | PackedSwitch.smali | 37 :case1 # key = INT_MAX - 1 38 :case2 # key = INT_MAX
|
/art/dex2oat/linker/arm/ |
D | relative_patcher_arm_base.cc | 367 uint32_t ArmBaseRelativePatcher::GetThunkTargetOffset(const ThunkKey& key, uint32_t patch_offset) { in GetThunkTargetOffset() argument 368 auto it = thunks_.find(key); in GetThunkTargetOffset() 374 if (patch_offset - offset <= MaxNegativeDisplacement(key)) { in GetThunkTargetOffset() 381 DCHECK_LE(offset - patch_offset, MaxPositiveDisplacement(key)); in GetThunkTargetOffset() 407 ThunkKey key(static_cast<ThunkType>(-1)); in ProcessPatches() local 411 key = GetMethodCallKey(); in ProcessPatches() 414 uint32_t max_next_offset = CalculateMaxNextOffset(patch_offset, key); in ProcessPatches() 415 auto it = thunks_.Put(key, ThunkDataForPatch(patch, max_next_offset)); in ProcessPatches() 422 key = GetEntrypointCallKey(patch); in ProcessPatches() 425 key = GetBakerThunkKey(patch); in ProcessPatches() [all …]
|
D | relative_patcher_thumb2.cc | 91 ThunkKey key = GetEntrypointCallKey(patch); in PatchEntrypointCall() local 92 uint32_t target_offset = GetThunkTargetOffset(key, patch_offset); in PatchEntrypointCall() 107 ThunkKey key = GetBakerThunkKey(patch); in PatchBakerReadBarrierBranch() local 108 uint32_t target_offset = GetThunkTargetOffset(key, patch_offset); in PatchBakerReadBarrierBranch() 120 uint32_t Thumb2RelativePatcher::MaxPositiveDisplacement(const ThunkKey& key) { in MaxPositiveDisplacement() argument 121 switch (key.GetType()) { in MaxPositiveDisplacement() 130 uint32_t Thumb2RelativePatcher::MaxNegativeDisplacement(const ThunkKey& key) { in MaxNegativeDisplacement() argument 131 switch (key.GetType()) { in MaxNegativeDisplacement()
|
D | relative_patcher_arm_base.h | 95 uint32_t GetThunkTargetOffset(const ThunkKey& key, uint32_t patch_offset); 100 virtual uint32_t MaxPositiveDisplacement(const ThunkKey& key) = 0; 101 virtual uint32_t MaxNegativeDisplacement(const ThunkKey& key) = 0; 111 uint32_t CalculateMaxNextOffset(uint32_t patch_offset, const ThunkKey& key);
|
D | relative_patcher_thumb2.h | 53 uint32_t MaxPositiveDisplacement(const ThunkKey& key) override; 54 uint32_t MaxNegativeDisplacement(const ThunkKey& key) override;
|
/art/test/044-proxy/src/ |
D | Main.java | 49 for (String key : proxyClassNameMap.keySet()) { in replaceProxyClassNamesForOutput() 50 str = str.replace(key, proxyClassNameMap.get(key)); in replaceProxyClassNamesForOutput()
|
/art/test/922-properties/ |
D | properties.cc | 58 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jstring key) { in Java_art_Test922_getSystemProperty() argument 59 ScopedUtfChars string(env, key); in Java_art_Test922_getSystemProperty() 78 JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jstring key, jstring value) { in Java_art_Test922_setSystemProperty() argument 79 ScopedUtfChars key_string(env, key); in Java_art_Test922_setSystemProperty()
|
/art/build/ |
D | makevars.go | 65 for _, key := range android.SortedStringKeys(testcasesContent) { 66 copy_cmds = append(copy_cmds, testcasesContent[key]+":"+key)
|
/art/runtime/ |
D | oat.h | 98 const char* GetStoreValueByKey(const char* key) const; 99 bool GetStoreKeyValuePairByIndex(size_t index, const char** key, const char** value) const; 109 bool KeyHasValue(const char* key, const char* value, size_t value_size) const; 117 bool IsKeyEnabled(const char* key) const;
|
D | oat.cc | 327 const char* OatHeader::GetStoreValueByKey(const char* key) const { in GetStoreValueByKey() 335 if (strcmp(key, ptr) == 0) { in GetStoreValueByKey() 352 bool OatHeader::GetStoreKeyValuePairByIndex(size_t index, const char** key, in GetStoreKeyValuePairByIndex() argument 366 *key = maybe_key; in GetStoreKeyValuePairByIndex() 412 bool OatHeader::KeyHasValue(const char* key, const char* value, size_t value_size) const { in KeyHasValue() argument 413 const char* key_value = GetStoreValueByKey(key); in KeyHasValue() 417 bool OatHeader::IsKeyEnabled(const char* key) const { in IsKeyEnabled() 418 return KeyHasValue(key, kTrueValue, sizeof(kTrueValue)); in IsKeyEnabled()
|
/art/tools/ahat/src/main/com/android/ahat/heapdump/ |
D | Parser.java | 813 public void put(long key, T value) { in put() argument 817 mKeyAt0 = key; in put() 818 mMaxKey = key; in put() 819 mMinKey = key; in put() 823 long max = Math.max(mMaxKey, key); in put() 824 long min = Math.min(mMinKey, key); in put() 840 mValues[indexOf(key)] = value; in put() 848 public T get(long key) throws HprofFormatException { in get() argument 850 if (mValues != null && key >= mMinKey && key <= mMaxKey) { in get() 851 value = (T)mValues[indexOf(key)]; in get() [all …]
|
D | Diff.java | 200 Key key = Key.keyFor(inst); in instances() local 201 InstanceListPair pair = byKey.get(key); in instances() 204 byKey.put(key, pair); in instances() 209 Key key = Key.keyFor(inst); in instances() local 210 InstanceListPair pair = byKey.get(key); in instances() 213 byKey.put(key, pair); in instances()
|
/art/test/800-smali/ |
D | expected.txt | 3 PackedSwitch key INT_MAX 4 PackedSwitch key overflow
|
/art/tools/dexfuzz/src/dexfuzz/executors/ |
D | Device.java | 68 private String checkForEnvVar(Map<String, String> envVars, String key) { in checkForEnvVar() argument 69 if (!envVars.containsKey(key)) { in checkForEnvVar() 70 Log.errorAndQuit("Cannot run a fuzzed program if $" + key + " is not set!"); in checkForEnvVar() 72 return envVars.get(key); in checkForEnvVar()
|