Home
last modified time | relevance | path

Searched refs:has_value (Results 1 – 25 of 56) sorted by relevance

123

/art/libartbase/base/
Dflags_test.cc49 void AssertCmdlineValue(bool has_value, int expected) { in AssertCmdlineValue() argument
50 ASSERT_EQ(flag_->from_command_line_.has_value(), has_value); in AssertCmdlineValue()
51 if (has_value) { in AssertCmdlineValue()
56 void AssertSysPropValue(bool has_value, int expected) { in AssertSysPropValue() argument
57 ASSERT_EQ(flag_->from_system_property_.has_value(), has_value); in AssertSysPropValue()
58 if (has_value) { in AssertSysPropValue()
63 void AssertServerSettingValue(bool has_value, int expected) { in AssertServerSettingValue() argument
64 ASSERT_EQ(flag_->from_server_setting_.has_value(), has_value); in AssertServerSettingValue()
65 if (has_value) { in AssertServerSettingValue()
Dflags.h199 if (from_server_setting_.has_value()) { in GetValueAndOrigin()
202 if (from_system_property_.has_value()) { in GetValueAndOrigin()
205 if (from_command_line_.has_value()) { in GetValueAndOrigin()
Dflags.cc146 if (val.has_value()) { in DumpValue()
Dleb128.h42 if (end.has_value() && ptr >= end.value()) { in DecodeLeb128Helper()
/art/runtime/metrics/
Dreporter.cc52 DCHECK(!thread_.has_value()) << "The config cannot be reloaded after the background " in ReloadConfig()
62 CHECK(!thread_.has_value()); in MaybeStartBackgroundThread()
76 if (thread_.has_value()) { in MaybeStopBackgroundThread()
84 if (ShouldReportAtStartup() && thread_.has_value()) { in NotifyStartupCompleted()
102 if (thread_.has_value()) { in RequestMetricsReport()
112 if (thread_.has_value()) { in SetCompilationInfo()
132 if (config_.dump_to_file.has_value()) { in BackgroundThreadRun()
225 config_.period_spec.has_value() && in ShouldReportAtStartup()
234 config_.period_spec.has_value() && in ShouldContinueReporting()
270 if (spec_str.has_value()) { in FromFlags()
[all …]
Dreporter_test.cc116 ASSERT_TRUE(config.period_spec.has_value()); in SetupReporter()
424 ASSERT_EQ(valid, spec.has_value()) << spec_str; in Verify()
/art/compiler/optimizing/
Dconstructor_fence_redundancy_elimination.cc51 if (!candidate_fence_targets_.has_value()) { in VisitConstructorFence()
165 DCHECK_IMPLIES(candidate_fence_targets_.has_value(), in VisitSetLocation()
182 DCHECK_IMPLIES(candidate_fence_targets_.has_value(), in HasInterestingPublishTargetAsInput()
224 DCHECK(candidate_fence_targets_.has_value()); in MergeCandidateFences()
231 DCHECK(candidate_fence_targets_.has_value()); in IsInterestingPublishTarget()
/art/runtime/oat/
Doat_file_assistant_context.cc47 runtime_options_->boot_class_path_files.has_value(), in OatFileAssistantContext()
161 File* file = bcp_files.has_value() ? &(*bcp_files)[bcp_index] : &noFile; in GetBcpChecksums()
169 DCHECK(checksum.has_value()); in GetBcpChecksums()
171 if (checksum.has_value()) { in GetBcpChecksums()
178 if (apex_versions_.has_value()) { in GetApexVersions()
Doat_file_assistant.cc246 if (context_str.has_value()) { in Create()
452 return checksum.has_value(); in HasDexFiles()
470 if (!dex_checksum.has_value()) { in DexChecksumUpToDate()
488 CHECK(dex_checksum.has_value()); in DexChecksumUpToDate()
727 if (cached_required_dex_checksums_error_.has_value()) { in GetRequiredDexChecksum()
733 if (!cached_required_dex_checksums_.has_value()) { in GetRequiredDexChecksum()
1026 if (has_dex_files.has_value()) { in GetDexOptNeeded()
1323 if (!has_dex_files.has_value()) { in GetOptimizationStatus()
/art/runtime/base/
Dmessage_queue.h127 if (deadline_milliseconds_.has_value() && deadline_milliseconds_.value() < current_time) { in ReceiveMessage()
140 if (deadline_milliseconds_.has_value()) { in ReceiveMessage()
/art/cmdline/
Dcmdline.h314 if (bcp_str.has_value() && bcp_location_str.has_value()) { in ParseBootclasspath()
317 } else if (bcp_str.has_value()) { in ParseBootclasspath()
/art/libdexfile/dex/
Dart_dex_file_loader_test.cc104 ASSERT_TRUE(checksum.has_value()); in TEST_F()
120 ASSERT_TRUE(checksum.has_value()); in TEST_F()
134 EXPECT_FALSE(checksum.has_value()); in TEST_F()
143 EXPECT_TRUE(checksum.has_value()); in TEST_F()
Ddex_file_loader.h98 if (!checksum.has_value()) { // First dex file. in GetMultiDexChecksum()
110 CHECK(checksum.has_value()); in GetMultiDexChecksum()
/art/libelffile/elf/
Delf_debug_reader.h114 addr = addr.has_value() ? std::min(addr.value(), phdr.p_vaddr) : phdr.p_vaddr; in GetLoadAddress()
117 CHECK(addr.has_value()); in GetLoadAddress()
/art/runtime/
Dquick_exception_handler.h108 DCHECK(handler_dex_pc_list_.has_value()); in GetHandlerDexPcList()
Dapp_info.cc99 return package_name_.has_value(); in HasRegisteredAppInfo()
/art/artd/
Dartd.cc178 if (!size.has_value()) { in GetSizeAndDeleteFile()
535 if (se_context.has_value()) { in Restorecon()
869 if (in_referenceProfile.has_value()) { in mergeProfiles()
976 if (!has_dex_files.has_value()) { in getDexoptNeeded()
1005 in_profile.has_value() ? in dexopt()
1012 if (in_classLoaderContext.has_value()) { in dexopt()
1119 if (in_inputVdex.has_value()) { in dexopt()
1128 if (in_dmFile.has_value()) { in dexopt()
1136 if (profile_path.has_value()) { in dexopt()
1525 if (!cached_boot_image_locations_.has_value()) { in GetBootImageLocations()
[all …]
/art/odrefresh/
Dodr_metrics.cc160 if (result.has_value()) { in ConvertExecResult()
Dodrefresh.cc347 checksum.has_value() ? StringPrintf("%08x", checksum.value()) : std::string(); in GenerateComponents()
758 if (!info_list.has_value()) { in GetApexInfoList()
790 if (!cache_info.has_value()) { in ReadCacheInfo()
822 if (!apex_info_list.has_value()) { in WriteCacheInfo()
827 if (!art_apex_info.has_value()) { in WriteCacheInfo()
1184 if (!art_apex_info.has_value()) { in CheckPreconditionForSystem()
1272 if (!current_art_info.has_value()) { in CheckPreconditionForData()
1632 if (!apex_info_list.has_value()) { in CheckArtifactsAreUpToDate()
1640 if (!art_apex_info.has_value()) { in CheckArtifactsAreUpToDate()
2219 if (first_failure.has_value()) { in Compile()
Dodr_config.h215 return partial_compilation_.has_value(); in HasPartialCompilation()
/art/libartbase/base/metrics/
Dmetrics_common.cc144 if (session_data.has_value()) { in FormatBeginReport()
202 if (session_data.has_value()) { in FormatBeginReport()
/art/cmdline/detail/
Dcmdline_parse_argument_detail.h166 } else if (metavar_.has_value()) { in DumpHelp()
181 if (help_.has_value()) { in DumpHelp()
/art/libarttools/
Dart_exec.cc207 if (options.priority.has_value()) { in main()
/art/libnativeloader/
Dnative_loader.cpp82 if (name.has_value()) { in FindApexNamespace()
291 if (ns.has_value()) { in OpenNativeLibrary()
/art/dexopt_chroot_setup/
Ddexopt_chroot_setup.cc89 bool IsOtaUpdate(const std::optional<std::string>& ota_slot) { return ota_slot.has_value(); } in IsOtaUpdate()
347 if (in_otaSlot.has_value() && (in_otaSlot.value() != "_a" && in_otaSlot.value() != "_b")) { in setUp()

123