Home
last modified time | relevance | path

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

12345

/art/libartbase/base/
Dvariant_map.h221 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/runtime/base/
Datomic_pair.h48 AtomicPair(IntType f, IntType s) : key(f), val(s) {} in AtomicPair()
50 IntType key; member
70 auto* key_ptr = reinterpret_cast<std::atomic_uint64_t*>(&pair->key); in AtomicPairLoadAcquire()
76 uint64_t key = key0 & ~kSeqMask; in AtomicPairLoadAcquire() local
78 return {key, val}; in AtomicPairLoadAcquire()
85 DCHECK((value.key & kSeqMask) == 0) << "Key=0x" << std::hex << value.key; in AtomicPairStoreRelease()
86 auto* key_ptr = reinterpret_cast<std::atomic_uint64_t*>(&pair->key); in AtomicPairStoreRelease()
88 uint64_t key = key_ptr->load(std::memory_order_relaxed); in AtomicPairStoreRelease() local
90 key &= ~kSeqLock; // Ensure that the CAS below fails if the lock bit is already set. in AtomicPairStoreRelease()
91 } while (!key_ptr->compare_exchange_weak(key, key | kSeqLock)); in AtomicPairStoreRelease()
[all …]
/art/libarttools/include/tools/
Dsystem_properties.h41 std::string Get(const std::string& key, const std::string& default_value) const { in Get() argument
42 std::string value = GetProperty(key); in Get()
57 std::string Get(const std::string& key, const std::string& fallback_key, Args... args) const { in Get() argument
58 return Get(key, Get(fallback_key, args...)); in Get()
73 std::string GetOrEmpty(const std::string& key, Args... fallback_keys) const { in GetOrEmpty() argument
74 return Get(key, fallback_keys..., /*default_value=*/""); in GetOrEmpty()
79 bool GetBool(const std::string& key, bool default_value) const { in GetBool() argument
80 android::base::ParseBoolResult result = android::base::ParseBool(GetProperty(key)); in GetBool()
95 bool GetBool(const std::string& key, const std::string& fallback_key, Args... args) const { in GetBool() argument
96 return GetBool(key, GetBool(fallback_key, args...)); in GetBool()
[all …]
/art/adbconnection/
Djdwpargs.cc47 std::string key = w.substr(0, pos); in JdwpArgs() local
49 put(key, value); in JdwpArgs()
50 VLOG(jdwp) << "Found jdwp parameters '" << key << "'='" << value << "'"; in JdwpArgs()
54 void JdwpArgs::put(const std::string& key, const std::string& value) { in put() argument
55 if (store.find(key) == store.end()) { in put()
56 keys.emplace_back(key); in put()
59 store[key] = value; in put()
64 for (const auto& key : keys) { in join() local
65 opts += key + "=" + store[key] + ","; in join()
Djdwpargs.h38 void put(const std::string& key, const std::string& value);
40 bool contains(const std::string& key) { return store.find(key) != store.end(); } in contains() argument
42 std::string& get(const std::string& key) { return store[key]; } in get() argument
/art/test/922-properties/src/art/
DTest922.java31 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/
Dinterpreter_cache-inl.h26 inline bool InterpreterCache::Get(Thread* self, const void* key, /* out */ size_t* value) { in Get() argument
28 Entry& entry = data_[IndexOf(key)]; in Get()
29 if (LIKELY(entry.first == key)) { in Get()
36 inline void InterpreterCache::Set(Thread* self, const void* key, size_t value) { in Set() argument
40 data_[IndexOf(key)] = Entry{key, value}; in Set()
Dinterpreter_cache.h65 ALWAYS_INLINE bool Get(Thread* self, const void* key, /* out */ size_t* value);
67 ALWAYS_INLINE void Set(Thread* self, const void* key, size_t value);
74 static ALWAYS_INLINE size_t IndexOf(const void* key) { in IndexOf() argument
76 size_t index = (reinterpret_cast<uintptr_t>(key) >> 2) & (kSize - 1); in IndexOf()
/art/tools/dexfuzz/src/dexfuzz/
DOptions.java215 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/
Dimmutables.py17 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/
Ddedupe_set-inl.h66 for (const HashedKey<StoreKey>& key : keys_) {
67 DCHECK(key.Key() != nullptr);
68 alloc_.Destroy(key.Key());
100 for (const HashedKey<StoreKey>& key : keys_) {
101 auto it = stats.find(key.Hash());
103 stats.insert({key.Hash(), 1u});
123 HashedKey(size_t hash, const T* key) : hash_(hash), key_(key) { }
148 bool IsEmpty(const HashedKey<StoreKey>& key) const {
149 return key.IsEmpty();
152 void MakeEmpty(HashedKey<StoreKey>& key) {
[all …]
/art/tools/
Dart_boot.cc25 static void SetPropertyAndLog(const std::string& key, in SetPropertyAndLog() argument
28 if (android::base::SetProperty(key, value)) { in SetPropertyAndLog()
29 LOG(INFO) << "Set property " << key << " to " << value << " " << message; in SetPropertyAndLog()
31 LOG(ERROR) << "Failed to set property " << key << " to " << value << " " << message; in SetPropertyAndLog()
/art/cmdline/
Dcmdline_parser_test.cc98 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 …]
/art/test/odsign/test-src/com/android/tests/odsign/
DDeviceState.java175 public void setProperty(String key, String value) throws Exception { in setProperty() argument
176 if (!mMutatedProperties.containsKey(key)) { in setProperty()
178 mMutatedProperties.put(key, mTestInfo.getDevice().getProperty(key)); in setProperty()
181 mTestInfo.getDevice().setProperty(key, value); in setProperty()
185 public void setPhenotypeFlag(String key, String value) throws Exception { in setPhenotypeFlag() argument
186 if (!mMutatedPhenotypeFlags.containsKey(key)) { in setPhenotypeFlag()
188 String.format("device_config get '%s' '%s'", PHENOTYPE_FLAG_NAMESPACE, key)); in setPhenotypeFlag()
189 mMutatedPhenotypeFlags.put(key, output.equals("null") ? null : output); in setPhenotypeFlag()
194 "device_config put '%s' '%s' '%s'", PHENOTYPE_FLAG_NAMESPACE, key, value)); in setPhenotypeFlag()
197 String.format("device_config delete '%s' '%s'", PHENOTYPE_FLAG_NAMESPACE, key)); in setPhenotypeFlag()
/art/test/687-deopt/src/
DMain.java27 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/
Drelative_patcher_arm_base.cc367 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 …]
Drelative_patcher_thumb2.cc90 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()
/art/test/800-smali/smali/
Db_24399945.smali14 :case1 # key = INT_MAX - 1
15 :case2 # key = INT_MAX
16 :case3 # key = INT_MIN (overflow!)
/art/test/922-properties/
Dproperties.cc58 JNIEnv* env, [[maybe_unused]] jclass Main_klass, jstring key) { in Java_art_Test922_getSystemProperty() argument
59 ScopedUtfChars string(env, key); in Java_art_Test922_getSystemProperty()
78 JNIEnv* env, [[maybe_unused]] jclass Main_klass, 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/
DMain.java49 for (String key : proxyClassNameMap.keySet()) { in replaceProxyClassNamesForOutput()
50 str = str.replace(key, proxyClassNameMap.get(key)); in replaceProxyClassNamesForOutput()
/art/build/
Dmakevars.go65 for _, key := range android.SortedKeys(testcasesContent) {
66 copy_cmds = append(copy_cmds, testcasesContent[key]+":"+key)
/art/runtime/oat/
Djni_stub_hash_map.cc110 size_t JniStubKeyOptimizedHash(const JniStubKey& key) { in JniStubKeyOptimizedHash() argument
111 bool is_static = key.Flags() & kAccStatic; in JniStubKeyOptimizedHash()
112 std::string_view shorty = key.Shorty(); in JniStubKeyOptimizedHash()
113 size_t result = key.Flags(); in JniStubKeyOptimizedHash()
169 size_t JniStubKeyGenericHash(const JniStubKey& key) { in JniStubKeyGenericHash() argument
170 std::string_view shorty = key.Shorty(); in JniStubKeyGenericHash()
171 size_t result = key.Flags(); in JniStubKeyGenericHash()
Djni_stub_hash_map.h77 using JniStubKeyHashFunction = size_t (*)(const JniStubKey& key);
83 size_t operator()(const JniStubKey& key) const { in operator()
84 return hash_func_(key); in operator()
/art/tools/luci/config/generated/
Dcr-buildbucket.cfg44 key: "luci.recipes.use_python3"
74 key: "luci.recipes.use_python3"
104 key: "luci.recipes.use_python3"
135 key: "luci.recipes.use_python3"
165 key: "luci.recipes.use_python3"
195 key: "luci.recipes.use_python3"
226 key: "luci.recipes.use_python3"
258 key: "luci.recipes.use_python3"
289 key: "luci.recipes.use_python3"
316 key: "luci.recipes.use_python3"
[all …]
/art/libartservice/service/java/com/android/server/art/
DArtJni.java123 public static Void setProperty(@NonNull String key, @NonNull String value) { in setProperty() argument
128 setPropertyNative(key, value); in setProperty()
169 private static native void setPropertyNative(@NonNull String key, @NonNull String value); in setPropertyNative() argument

12345