/art/runtime/arch/ |
H A D | instruction_set_features_test.cc | 45 std::string key = StringPrintf("dalvik.vm.isa.%s.variant", GetInstructionSetString(kRuntimeISA)); local 46 std::string dex2oat_isa_variant = android::base::GetProperty(key, "");
|
/art/test/055-enum-performance/src/ |
H A D | Main.java | 123 static String basisValueOf(String key) { argument 125 if (s.equals(key)) {
|
/art/test/922-properties/ |
H A D | properties.cc | 58 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/compiler/utils/ |
H A D | dedupe_set_test.cc | 49 void Destroy(const std::vector<uint8_t>* key) { argument 50 delete key;
|
H A D | dedupe_set-inl.h | 64 for (const HashedKey<StoreKey>& key : keys_) { 65 DCHECK(key.Key() != nullptr); 66 alloc_.Destroy(key.Key()); 93 for (const HashedKey<StoreKey>& key : keys_) { 94 auto it = stats.find(key.Hash()); 96 stats.insert({key.Hash(), 1u}); 116 HashedKey(size_t hash, const T* key) : hash_(hash), key_(key) { } argument 141 bool IsEmpty(const HashedKey<StoreKey>& key) const { 142 return key 145 MakeEmpty(HashedKey<StoreKey>& key) argument 188 Add( Thread* self, const InKey& key) argument [all...] |
H A D | test_dex_file_builder.h | 56 FieldKey key = { class_descriptor, type, name }; local 57 fields_.emplace(key, 0u); 260 FieldKey key = { class_descriptor, type, name }; local 261 auto it = fields_.find(key); 342 ProtoKey key = { local 348 key.shorty += (*args == '[') ? 'L' : *args; 360 key.args.emplace_back(arg_start, args); 362 return key;
|
/art/test/922-properties/src/art/ |
H A D | Test922.java | 31 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/tools/ahat/src/ |
H A D | Doc.java | 91 void description(DocString key, DocString value); argument
|
H A D | HtmlDoc.java | 175 public void description(DocString key, DocString value) { argument 176 ps.format("<tr><th align=\"left\">%s:</th><td>%s</td></tr>", key.html(), value.html());
|
/art/tools/dexfuzz/src/dexfuzz/executors/ |
H A D | Device.java | 68 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);
|
/art/cmdline/ |
H A D | cmdline_parser_test.cc | 88 const TKey& key) { 89 auto* actual = map.Get(key); 99 return ::testing::AssertionFailure() << "key was not in the map"; 105 const TKey& key) { 106 const T& actual = map.GetOrDefault(key); 157 #define EXPECT_KEY_EXISTS(map, key) EXPECT_TRUE((map).Exists(key)) 158 #define EXPECT_KEY_VALUE(map, key, expected) EXPECT_TRUE(IsExpectedKeyValue(expected, map, key)) 159 #define EXPECT_DEFAULT_KEY_VALUE(map, key, expecte 86 IsExpectedKeyValue(const T& expected, const TMap& map, const TKey& key) argument 103 IsExpectedDefaultKeyValue(const T& expected, const TMap& map, const TKey& key) argument [all...] |
H A D | cmdline_parser.h | 68 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 D | relative_patcher_thumb2.cc | 99 std::vector<uint8_t> Thumb2RelativePatcher::CompileThunk(const ThunkKey& key) { argument 100 DCHECK(key.GetType() == ThunkType::kMethodCall);
|
H A D | relative_patcher_arm_base.cc | 295 uint32_t ArmBaseRelativePatcher::GetThunkTargetOffset(const ThunkKey& key, uint32_t patch_offset) { argument 296 auto it = thunks_.find(key); 302 if (patch_offset - offset <= MaxNegativeDisplacement(key.GetType())) { 309 DCHECK_LE(offset - patch_offset, MaxPositiveDisplacement(key.GetType())); 323 ThunkKey key(key_type, ThunkParams{{ 0u, 0u }}); // NOLINT(whitespace/braces) 325 auto it = thunks_.Put(key, ThunkData(CompileThunk(key), max_next_offset)); 332 ThunkKey key = GetBakerReadBarrierKey(patch); local 333 key_type = key.GetType(); 334 auto lb = thunks_.lower_bound(key); [all...] |
/art/runtime/ |
H A D | instrumentation_test.cc | 153 void CheckConfigureStubs(const char* key, Instrumentation::InstrumentationLevel level) { argument 161 instr->ConfigureStubs(key, level); 223 const char* key, bool disable_deoptimization) 234 instrumentation->DisableDeoptimization(key); 238 void DeoptimizeEverything(Thread* self, const char* key, bool enable_deoptimization) 250 instrumentation->DeoptimizeEverything(key); 253 void UndeoptimizeEverything(Thread* self, const char* key, bool disable_deoptimization) 262 instrumentation->UndeoptimizeEverything(key); 264 instrumentation->DisableDeoptimization(key); 268 void EnableMethodTracing(Thread* self, const char* key, boo [all...] |
H A D | oat.cc | 408 const char* OatHeader::GetStoreValueByKey(const char* key) const { 416 if (strcmp(key, ptr) == 0) { 417 // Same as key. Check if value is OK. 422 // Different from key. Advance over the value. 433 bool OatHeader::GetStoreKeyValuePairByIndex(size_t index, const char** key, argument 447 *key = maybe_key; 493 bool OatHeader::KeyHasValue(const char* key, const char* value, size_t value_size) const { argument 494 const char* key_value = GetStoreValueByKey(key); 498 bool OatHeader::IsKeyEnabled(const char* key) const { 499 return KeyHasValue(key, kTrueValu [all...] |
H A D | instrumentation.cc | 575 void Instrumentation::ConfigureStubs(const char* key, InstrumentationLevel desired_level) { argument 576 // Store the instrumentation level for this key or remove it. 579 requested_instrumentation_levels_.erase(key); 582 requested_instrumentation_levels_.Overwrite(key, desired_level); 848 void Instrumentation::DisableDeoptimization(const char* key) { argument 853 UndeoptimizeEverything(key); 879 void Instrumentation::DeoptimizeEverything(const char* key) { argument 881 ConfigureStubs(key, InstrumentationLevel::kInstrumentWithInterpreter); 884 void Instrumentation::UndeoptimizeEverything(const char* key) { argument 887 ConfigureStubs(key, InstrumentationLeve 890 EnableMethodTracing(const char* key, bool needs_interpreter) argument 900 DisableMethodTracing(const char* key) argument [all...] |
/art/tools/dexfuzz/src/dexfuzz/ |
H A D | Options.java | 215 * Given a key-value option (one that features an =), handle it 216 * accordingly. Report an error and print usage info if the key is not 219 private static void handleKeyValueOption(String key, String value) { argument 220 if (key.equals("input")) { 222 } else if (key.equals("inputs")) { 232 } else if (key.equals("output")) { 234 } else if (key.equals("seed")) { 237 } else if (key.equals("method-mutations")) { 239 } else if (key.equals("min-methods")) { 241 } else if (key [all...] |
/art/runtime/base/ |
H A D | variant_map.h | 30 // A variant map is a heterogenous, type safe key->value map. It allows 37 // TValue* Get(Key<T> key); // null if the value was never set, otherwise the value. 40 // void Set(Key<T> key, TValue value); 43 // Since the key is strongly typed at compile-time, it is impossible to accidentally 44 // read/write a value with a different type than the key at either compile-time or run-time. 95 // Clone the key, creating a copy of the contents. 98 // Delete a value whose runtime type is that of the non-erased key's TValue. 101 // Clone a value whose runtime type is that of the non-erased key's TValue. 104 // Compare one key to another (same as operator<). 137 // Instantiate a default value for this key 227 Get(const TKey<TValue>& key) argument 243 ScopedRemove(VariantMap& map, const TKey<TValue>& key) argument 256 ReleaseOrDefault(const TKey<TValue>& key) argument 276 Set(const TKey<TValue>& key, const typename Identity<TValue>::type& value) argument 288 SetIfMissing(const TKey<TValue>& key, const typename Identity<TValue>::type& value) argument 299 Remove(const TKey<TValue>& key) argument 379 InitializeParameters(const TK& key, const TValue& value, const Rest& ... rest) argument 405 GetKeyValueIterator(const TKey<TValue>& key) argument 423 GetValuePtr(const TKey<TValue>& key) argument [all...] |
H A D | hash_set.h | 363 // Allows custom key (K) types, example of when this is useful: 367 iterator Find(const K& key) { argument 368 return FindWithHash(key, hashfn_(key)); 372 const_iterator Find(const K& key) const { 373 return FindWithHash(key, hashfn_(key)); 377 iterator FindWithHash(const K& key, size_t hash) { argument 378 return iterator(this, FindIndex(key, hash)); 382 const_iterator FindWithHash(const K& key, size_ argument [all...] |
/art/runtime/jit/ |
H A D | profile_compilation_info.h | 264 // Return the profile key associated with the given dex location. 297 // Note that we could do without profile_key (the key used to encode the dex 304 const std::string& key, 308 profile_key(key), 316 // The profile key this data belongs to. 337 // Return the profile data for the given profile key or null if the dex location 370 // Return the dex data associated with the given profile key or null if the profile 371 // doesn't contain the key. 497 // over the info_ vector when searching by profile key. 303 DexFileData(ArenaAllocator* arena, const std::string& key, uint32_t location_checksum, uint16_t index) argument
|
/art/sigchainlib/ |
H A D | sigchain.cc | 126 static pthread_key_t key; local 129 int rc = pthread_key_create(&key, nullptr); 131 fatal("failed to create sigchain pthread key: %s", strerror(rc)); 134 return key;
|
/art/compiler/linker/arm64/ |
H A D | relative_patcher_arm64.cc | 307 ThunkKey key = GetBakerReadBarrierKey(patch); local 310 switch (key.GetType()) { 316 CHECK_EQ(next_insn & 0xffc003e0u, 0xb9400000u | (key.GetOffsetParams().base_reg << 5)); 323 CHECK_EQ(prev_insn & 0xffc0001fu, 0xb9400000u | key.GetRootParams().root_reg); 327 LOG(FATAL) << "Unexpected type: " << static_cast<uint32_t>(key.GetType()); 331 uint32_t target_offset = GetThunkTargetOffset(key, patch_offset); 402 std::vector<uint8_t> Arm64RelativePatcher::CompileThunk(const ThunkKey& key) { argument 408 switch (key.GetType()) { 422 auto holder_reg = Register::GetXRegFromCode(key.GetOffsetParams().holder_reg); 423 auto base_reg = Register::GetXRegFromCode(key [all...] |
H A D | relative_patcher_arm64_test.cc | 163 ArmBaseRelativePatcher::ThunkKey key( 166 return down_cast<Arm64RelativePatcher*>(patcher_.get())->CompileThunk(key); 470 ArmBaseRelativePatcher::ThunkKey key = patcher->GetBakerReadBarrierKey(patch); local 471 return patcher->CompileThunk(key); 478 ArmBaseRelativePatcher::ThunkKey key = patcher->GetBakerReadBarrierKey(patch); local 479 return patcher->CompileThunk(key);
|
/art/runtime/hprof/ |
H A D | hprof.cc | 999 uint64_t key = (static_cast<uint64_t>(heap_tag) << 32) | PointerToLowMemUInt32(obj); local 1000 if (simple_roots_.insert(key).second) {
|