/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 …]
|
D | hash_map.h | 35 size_t operator()(const Key& key) const { in operator() 36 return fn_(key); in operator()
|
/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() 83 static ALWAYS_INLINE size_t IndexOf(const void* key) { in IndexOf() argument 85 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 | 223 private static void handleKeyValueOption(String key, String value) { in handleKeyValueOption() argument 224 if (key.equals("input")) { in handleKeyValueOption() 226 } else if (key.equals("inputs")) { in handleKeyValueOption() 236 } else if (key.equals("output")) { in handleKeyValueOption() 238 } else if (key.equals("seed")) { in handleKeyValueOption() 241 } else if (key.equals("method-mutations")) { in handleKeyValueOption() 243 } else if (key.equals("min-methods")) { in handleKeyValueOption() 245 } else if (key.equals("max-methods")) { in handleKeyValueOption() 247 } else if (key.equals("repeat")) { in handleKeyValueOption() 249 } 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 …]
|
/art/cmdline/ |
D | cmdline_parser_test.cc | 99 const TKey& key) { in IsExpectedKeyValue() argument 100 auto* actual = map.Get(key); in IsExpectedKeyValue() 116 const TKey& key) { in IsExpectedDefaultKeyValue() argument 117 const T& actual = map.GetOrDefault(key); in IsExpectedDefaultKeyValue() 169 #define EXPECT_KEY_EXISTS(map, key) EXPECT_TRUE((map).Exists(key)) argument 170 #define EXPECT_KEY_VALUE(map, key, expected) EXPECT_TRUE(IsExpectedKeyValue(expected, map, key)) argument 171 #define EXPECT_DEFAULT_KEY_VALUE(map, key, expected) EXPECT_TRUE(IsExpectedDefaultKeyValue(expected… argument 182 #define EXPECT_SINGLE_PARSE_DEFAULT_VALUE(expected, argv, key)\ argument 185 EXPECT_DEFAULT_KEY_VALUE(args, key, expected); \ 188 #define _EXPECT_SINGLE_PARSE_EXISTS(argv, key) \ argument [all …]
|
D | cmdline_parser.h | 68 void SaveToMap(const TVariantMapKey<TArg>& key, TArg& value) { in SaveToMap() 69 variant_map_->Set(key, value); in SaveToMap() 74 TArg& GetOrCreateFromMap(const TVariantMapKey<TArg>& key) { in GetOrCreateFromMap() 75 auto* ptr = variant_map_->Get(key); in GetOrCreateFromMap() 77 variant_map_->Set(key, TArg()); in GetOrCreateFromMap() 78 ptr = variant_map_->Get(key); in GetOrCreateFromMap() 173 CmdlineParser::Builder& IntoKey(const MapKey& key) { in IntoKey() 177 save_value_ = [save_destination, &key](TArg& value) { in IntoKey() 178 save_destination->SaveToMap(key, value); in IntoKey() 183 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/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() 401 ThunkKey key(static_cast<ThunkType>(-1)); in ProcessPatches() local 404 key = GetMethodCallKey(); in ProcessPatches() 407 uint32_t max_next_offset = CalculateMaxNextOffset(patch_offset, key); in ProcessPatches() 408 auto it = thunks_.Put(key, ThunkDataForPatch(patch, max_next_offset)); in ProcessPatches() 415 key = GetBakerThunkKey(patch); in ProcessPatches() 416 auto lb = thunks_.lower_bound(key); in ProcessPatches() [all …]
|
D | relative_patcher_thumb2.cc | 114 ThunkKey key = GetBakerThunkKey(patch); in PatchBakerReadBarrierBranch() local 115 uint32_t target_offset = GetThunkTargetOffset(key, patch_offset); in PatchBakerReadBarrierBranch() 127 uint32_t Thumb2RelativePatcher::MaxPositiveDisplacement(const ThunkKey& key) { in MaxPositiveDisplacement() argument 128 switch (key.GetType()) { in MaxPositiveDisplacement() 136 uint32_t Thumb2RelativePatcher::MaxNegativeDisplacement(const ThunkKey& key) { in MaxNegativeDisplacement() argument 137 switch (key.GetType()) { in MaxNegativeDisplacement()
|
D | relative_patcher_arm_base.h | 93 uint32_t GetThunkTargetOffset(const ThunkKey& key, uint32_t patch_offset); 98 virtual uint32_t MaxPositiveDisplacement(const ThunkKey& key) = 0; 99 virtual uint32_t MaxNegativeDisplacement(const ThunkKey& key) = 0; 109 uint32_t CalculateMaxNextOffset(uint32_t patch_offset, const ThunkKey& key);
|
D | relative_patcher_thumb2.h | 50 uint32_t MaxPositiveDisplacement(const ThunkKey& key) override; 51 uint32_t MaxNegativeDisplacement(const ThunkKey& key) override;
|
/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 | 48 for (String key : proxyClassNameMap.keySet()) { in replaceProxyClassNamesForOutput() 49 str = str.replace(key, proxyClassNameMap.get(key)); in replaceProxyClassNamesForOutput()
|
/art/runtime/ |
D | oat.h | 94 const char* GetStoreValueByKey(const char* key) const; 95 bool GetStoreKeyValuePairByIndex(size_t index, const char** key, const char** value) const; 104 bool KeyHasValue(const char* key, const char* value, size_t value_size) const; 112 bool IsKeyEnabled(const char* key) const;
|
D | oat.cc | 309 const char* OatHeader::GetStoreValueByKey(const char* key) const { in GetStoreValueByKey() 317 if (strcmp(key, ptr) == 0) { in GetStoreValueByKey() 334 bool OatHeader::GetStoreKeyValuePairByIndex(size_t index, const char** key, in GetStoreKeyValuePairByIndex() argument 348 *key = maybe_key; in GetStoreKeyValuePairByIndex() 390 bool OatHeader::KeyHasValue(const char* key, const char* value, size_t value_size) const { in KeyHasValue() argument 391 const char* key_value = GetStoreValueByKey(key); in KeyHasValue() 395 bool OatHeader::IsKeyEnabled(const char* key) const { in IsKeyEnabled() 396 return KeyHasValue(key, kTrueValue, sizeof(kTrueValue)); in IsKeyEnabled()
|
/art/build/ |
D | art.go | 417 func envDefault(ctx android.BaseContext, key string, defaultValue string) string { 418 ret := ctx.AConfig().Getenv(key) 425 func envTrue(ctx android.BaseContext, key string) bool { 426 return ctx.AConfig().Getenv(key) == "true" 429 func envFalse(ctx android.BaseContext, key string) bool { 430 return ctx.AConfig().Getenv(key) == "false" 433 func envTrueOrDefault(ctx android.BaseContext, key string) bool { 434 return ctx.AConfig().Getenv(key) != "false"
|
/art/tools/ahat/src/main/com/android/ahat/heapdump/ |
D | Parser.java | 807 public void put(long key, T value) { in put() argument 811 mKeyAt0 = key; in put() 812 mMaxKey = key; in put() 813 mMinKey = key; in put() 817 long max = Math.max(mMaxKey, key); in put() 818 long min = Math.min(mMinKey, key); in put() 834 mValues[indexOf(key)] = value; in put() 842 public T get(long key) throws HprofFormatException { in get() argument 844 if (mValues != null && key >= mMinKey && key <= mMaxKey) { in get() 845 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()
|