/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 std::optional<TValue> GetOptional(const TKey<TValue>& key) const { in GetOptional() 236 auto* ptr = Get(key); in GetOptional() 243 TValue GetOrDefault(const TKey<TValue>& key) const { in GetOrDefault() 244 auto* ptr = Get(key); in GetOrDefault() 245 return (ptr == nullptr) ? key.CreateDefaultValue() : *ptr; in GetOrDefault() 249 void AssignIfExists(const TKey<T>& key, U* out) { 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/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/tools/checker/common/ |
D | immutables.py | 17 def __setitem__(self, key, value): argument 20 def __delitem__(self, key): argument 23 def copy_with(self, key, value): argument 25 dict.__setitem__(new_dict, key, value)
|
/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 …]
|
/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/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/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 | 90 ThunkKey key = GetEntrypointCallKey(patch); in PatchEntrypointCall() local 91 uint32_t target_offset = GetThunkTargetOffset(key, patch_offset); in PatchEntrypointCall() 106 ThunkKey key = GetBakerThunkKey(patch); in PatchBakerReadBarrierBranch() local 107 uint32_t target_offset = GetThunkTargetOffset(key, patch_offset); in PatchBakerReadBarrierBranch() 119 uint32_t Thumb2RelativePatcher::MaxPositiveDisplacement(const ThunkKey& key) { in MaxPositiveDisplacement() argument 120 switch (key.GetType()) { in MaxPositiveDisplacement() 129 uint32_t Thumb2RelativePatcher::MaxNegativeDisplacement(const ThunkKey& key) { in MaxNegativeDisplacement() argument 130 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/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/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/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/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 | 102 const char* GetStoreValueByKey(const char* key) const; 103 bool GetStoreKeyValuePairByIndex(size_t index, const char** key, const char** value) const; 113 bool KeyHasValue(const char* key, const char* value, size_t value_size) const; 121 bool IsKeyEnabled(const char* key) const;
|
D | oat.cc | 338 const char* OatHeader::GetStoreValueByKey(const char* key) const { in GetStoreValueByKey() 339 std::string_view key_view(key); in GetStoreValueByKey() 369 const char** key, in GetStoreKeyValuePairByIndex() argument 390 *key = ptr; in GetStoreKeyValuePairByIndex() 432 bool OatHeader::KeyHasValue(const char* key, const char* value, size_t value_size) const { in KeyHasValue() argument 433 const char* key_value = GetStoreValueByKey(key); in KeyHasValue() 437 bool OatHeader::IsKeyEnabled(const char* key) const { in IsKeyEnabled() 438 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-stdout.txt | 3 PackedSwitch key INT_MAX 4 PackedSwitch key overflow
|
/art/dex2oat/linker/arm64/ |
D | relative_patcher_arm64.cc | 313 ThunkKey key = GetEntrypointCallKey(patch); in PatchEntrypointCall() local 314 uint32_t target_offset = GetThunkTargetOffset(key, patch_offset); in PatchEntrypointCall() 326 ThunkKey key = GetBakerThunkKey(patch); in PatchBakerReadBarrierBranch() local 327 uint32_t target_offset = GetThunkTargetOffset(key, patch_offset); in PatchBakerReadBarrierBranch() 335 uint32_t Arm64RelativePatcher::MaxPositiveDisplacement(const ThunkKey& key) { in MaxPositiveDisplacement() argument 336 switch (key.GetType()) { in MaxPositiveDisplacement() 345 uint32_t Arm64RelativePatcher::MaxNegativeDisplacement(const ThunkKey& key) { in MaxNegativeDisplacement() argument 346 switch (key.GetType()) { in MaxNegativeDisplacement()
|
/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()
|