Home
last modified time | relevance | path

Searched refs:GetOrDefault (Results 1 – 13 of 13) sorted by relevance

/art/runtime/
Dparsed_options_test.cc82 #define EXPECT_PARSED_EQ(expected, actual_key) EXPECT_EQ(expected, map.GetOrDefault(actual_key)) in TEST_F()
84 EXPECT_EQ(expected, static_cast<std::vector<std::string>>(map.GetOrDefault(actual_key))) in TEST_F()
95 EXPECT_DOUBLE_EQ(0.75, map.GetOrDefault(Opt::HeapTargetUtilization)); in TEST_F()
96 EXPECT_TRUE(test_vfprintf == map.GetOrDefault(Opt::HookVfprintf)); in TEST_F()
97 EXPECT_TRUE(test_exit == map.GetOrDefault(Opt::HookExit)); in TEST_F()
98 EXPECT_TRUE(test_abort == map.GetOrDefault(Opt::HookAbort)); in TEST_F()
113 auto&& properties_list = map.GetOrDefault(Opt::PropertiesList); in TEST_F()
132 XGcOption xgc = map.GetOrDefault(Opt::GcOption); in TEST_F()
149 XGcOption xgc = map.GetOrDefault(Opt::GcOption); in TEST_F()
162 InstructionSet isa = map.GetOrDefault(Opt::ImageInstructionSet); in TEST_F()
[all …]
Druntime.cc1203 verifier_missing_kthrow_fatal_ = runtime_options.GetOrDefault(Opt::VerifierMissingKThrowFatal); in Init()
1204 perfetto_hprof_enabled_ = runtime_options.GetOrDefault(Opt::PerfettoHprof); in Init()
1239 Thread::SetSensitiveThreadHook(runtime_options.GetOrDefault(Opt::HookIsSensitiveThread)); in Init()
1240 Monitor::Init(runtime_options.GetOrDefault(Opt::LockProfThreshold), in Init()
1241 runtime_options.GetOrDefault(Opt::StackDumpLockProfThreshold)); in Init()
1243 image_location_ = runtime_options.GetOrDefault(Opt::Image); in Init()
1245 SetInstructionSet(runtime_options.GetOrDefault(Opt::ImageInstructionSet)); in Init()
1284 compiler_callbacks_ = runtime_options.GetOrDefault(Opt::CompilerCallbacksPtr); in Init()
1285 must_relocate_ = runtime_options.GetOrDefault(Opt::Relocate); in Init()
1289 image_dex2oat_enabled_ = runtime_options.GetOrDefault(Opt::ImageDex2Oat); in Init()
[all …]
Dparsed_options.cc579 if (args.GetOrDefault(M::Interpret)) { in DoParse()
612 SetRuntimeDebugFlagsEnabled(args.GetOrDefault(M::SlowDebug)); in DoParse()
615 Trace::SetDefaultClockSource(args.GetOrDefault(M::ProfileClock)); in DoParse()
629 background_collector_type_ = args.GetOrDefault(M::BackgroundGc); in DoParse()
668 if (args.GetOrDefault(M::HeapGrowthLimit) <= 0u || in DoParse()
669 args.GetOrDefault(M::HeapGrowthLimit) > args.GetOrDefault(M::MemoryMaximumSize)) { in DoParse()
670 args.Set(M::HeapGrowthLimit, args.GetOrDefault(M::MemoryMaximumSize)); in DoParse()
Druntime_options.def29 // Default values are only used by Map::GetOrDefault(K<T>).
/art/libartbase/base/
Dvariant_map_test.cc174 TEST(VariantMaps, GetOrDefault) { in TEST() argument
178 int apple = fm.GetOrDefault(FruitMap::Apple); in TEST()
185 double orange = fm.GetOrDefault(FruitMap::Orange); in TEST()
Dvariant_map.h235 TValue GetOrDefault(const TKey<TValue>& key) const { in GetOrDefault() function
/art/compiler/driver/
Dcompiler_options_map.def29 // Default values are only used by Map::GetOrDefault(K<T>).
Dcompiler_options_map-inl.h77 options->deduplicate_code_ = map.GetOrDefault(Base::DeduplicateCode); in ReadCompilerOptions()
/art/runtime/jit/
Djit.cc91 jit_options->use_jit_compilation_ = options.GetOrDefault(RuntimeArgumentMap::UseJitCompilation); in CreateFromRuntimeArguments()
93 options.GetOrDefault(RuntimeArgumentMap::UseTieredJitCompilation); in CreateFromRuntimeArguments()
96 options.GetOrDefault(RuntimeArgumentMap::JITCodeCacheInitialCapacity); in CreateFromRuntimeArguments()
98 options.GetOrDefault(RuntimeArgumentMap::JITCodeCacheMaxCapacity); in CreateFromRuntimeArguments()
102 options.GetOrDefault(RuntimeArgumentMap::ProfileSaverOpts); in CreateFromRuntimeArguments()
104 options.GetOrDefault(RuntimeArgumentMap::JITPoolThreadPthreadPriority); in CreateFromRuntimeArguments()
/art/dex2oat/
Ddex2oat_options.def29 // Default values are only used by Map::GetOrDefault(K<T>).
/art/cmdline/
DREADME.md61 std::cout << "Help? " << map.GetOrDefault(FruitVariantMap::Help) << std::endl;
62 std::cout << "Apple? " << map.GetOrDefault(FruitVariantMap::Apple) << std::endl;
63 std::cout << "Orange? " << map.GetOrDefault(FruitVariantMap::Orange) << std::endl;
Dcmdline_parser_test.cc116 const T& actual = map.GetOrDefault(key); in IsExpectedDefaultKeyValue()
/art/runtime/jni/
Djava_vm_ext.cc498 trace_(runtime_options.GetOrDefault(RuntimeArgumentMap::JniTrace)), in JavaVMExt()
512 runtime_options.GetOrDefault(RuntimeArgumentMap::GlobalRefAllocStackTraceLimit)), in JavaVMExt()