Home
last modified time | relevance | path

Searched refs:value_or (Results 1 – 25 of 29) sorted by relevance

12

/system/linkerconfig/modules/
Denvironment.cc32 return Variables::GetValue("ro.vndk.lite").value_or("") == "true"; in IsVndkLiteDevice()
40 return Variables::GetValue("ro.vndk.version").value_or(""); in GetVendorVndkVersion()
44 return Variables::GetValue("ro.product.vndk.version").value_or(""); in GetProductVndkVersion()
/system/hardware/interfaces/suspend/1.0/default/
Dmain.cpp107 SuspendProperties::base_sleep_time_millis().value_or(kDefaultBaseSleepTimeMillis)), in main()
109 SuspendProperties::max_sleep_time_millis().value_or(kDefaultMaxSleepTimeMillis)), in main()
111 SuspendProperties::sleep_time_scale_factor().value_or(kDefaultSleepTimeScaleFactor), in main()
113 SuspendProperties::backoff_threshold_count().value_or(kDefaultBackoffThresholdCount), in main()
115 std::chrono::milliseconds(SuspendProperties::short_suspend_threshold_millis().value_or( in main()
117 .failedSuspendBackoffEnabled = SuspendProperties::failed_suspend_backoff_enabled().value_or( in main()
119 .shortSuspendBackoffEnabled = SuspendProperties::short_suspend_backoff_enabled().value_or( in main()
/system/core/healthd/
Dcharger.cpp29 if (CHARGER_FORCE_NO_UI || android::sysprop::ChargerProperties::no_ui().value_or(false)) { in main()
Dhealthd_draw.cpp29 return android::sysprop::ChargerProperties::draw_split_screen().value_or(false); in get_split_screen()
33 int64_t value = android::sysprop::ChargerProperties::draw_split_offset().value_or(0); in get_split_offset()
Dhealthd_mode_charger.cpp272 if (!android::sysprop::ChargerProperties::enable_suspend().value_or(false)) { in request_suspend()
330 if (android::sysprop::ChargerProperties::disable_init_blank().value_or(false)) { in UpdateScreenState()
/system/core/debuggerd/libdebuggerd/test/
Dopen_files_list_test.cpp42 EXPECT_EQ(file.second.path.value_or(""), std::string(tf.path)); in TEST()
/system/apex/apexd/
Dflattened_apex_test.cpp35 bool value = android::sysprop::ApexProperties::updatable().value_or(false); in TEST()
Dapexd_main.cpp124 if (!android::sysprop::ApexProperties::updatable().value_or(false)) { in main()
/system/update_engine/aosp/
Dapex_handler_android.cc51 if (android::sysprop::ApexProperties::updatable().value_or(false)) { in CreateApexHandler()
Dhardware_android.cc325 android::sysprop::GkiProperties::prevent_downgrade_version().value_or( in IsPartitionUpdateValid()
/system/bt/gd/hci/
Dhci_metrics_logging.cc857 …urce << "N:SDP::DIP::" << common::ToHexString(device.GetSdpDiVendorIdSource().value_or(0)).c_str(); in log_remote_device_information()
862 common::ToHexString(device.GetSdpDiManufacturer().value_or(0)).c_str(), in log_remote_device_information()
863 common::ToHexString(device.GetSdpDiModel().value_or(0)).c_str(), in log_remote_device_information()
864 common::ToHexString(device.GetSdpDiHardwareVersion().value_or(0)).c_str(), in log_remote_device_information()
871 device.GetLmpVersion().value_or(-1), in log_remote_device_information()
872 device.GetManufacturerCode().value_or(-1), in log_remote_device_information()
873 device.GetLmpSubVersion().value_or(-1)); in log_remote_device_information()
/system/bt/gd/storage/
Ddevice.h183 return static_cast<hci::DeviceType>(value | GetDeviceType().value_or(hci::DeviceType::UNKNOWN));
/system/core/init/
Dmount_namespace.cpp81 static bool updatable = android::sysprop::ApexProperties::updatable().value_or(false); in IsApexUpdatable()
Dbuiltins.cpp182 static bool is_apex_updatable = android::sysprop::ApexProperties::updatable().value_or(false); in do_class_start_post_data()
214 static bool is_apex_updatable = android::sysprop::ApexProperties::updatable().value_or(false); in do_class_reset_post_data()
1200 if (android::sysprop::InitProperties::userspace_reboot_in_progress().value_or(false)) { in ExecVdcRebootOnFailure()
1310 static bool updatable = android::sysprop::ApexProperties::updatable().value_or(false); in IsApexUpdatable()
Dservice.cpp306 static bool is_apex_updatable = android::sysprop::ApexProperties::updatable().value_or(false); in Reap()
Dreboot.cpp924 if (!android::sysprop::InitProperties::is_userspace_reboot_supported().value_or(false)) { in HandleUserspaceReboot()
/system/incremental_delivery/incfs/
Dincfs.cpp135 IncrementalProperties::enable().value_or(kDefaultValue)}; in incFsPropertyValue()
713 if (version.value_or(-1) != INCFS_SIGNATURE_VERSION) { in validateSignatureFormat()
721 if (hashAlgo.value_or(-1) != INCFS_HASH_TREE_SHA256) { in validateSignatureFormat()
725 if (logBlockSize.value_or(-1) != 12 /* 2^12 == 4096 */) { in validateSignatureFormat()
729 if (saltSize.value_or(-1) != 0) { in validateSignatureFormat()
733 if (rootHashSize.value_or(-1) != INCFS_MAX_HASH_SIZE) { in validateSignatureFormat()
743 if (signingSize.value_or(-1) != signature.size) { in validateSignatureFormat()
/system/libbase/
Dexpected_test.cpp422 EXPECT_EQ(10, e.value_or(20)); in TEST()
426 EXPECT_EQ(20, e2.value_or(20)); in TEST()
836 static_assert(exp_int(3).value_or(4) == 3); in TEST()
/system/libziparchive/
Dzip_archive.cc774 data->uncompressed_length = zip64_info.uncompressed_file_size.value_or(cdr->uncompressed_size); in FindEntry()
775 data->compressed_length = zip64_info.compressed_file_size.value_or(cdr->compressed_size); in FindEntry()
776 local_header_offset = zip64_info.local_header_offset.value_or(local_header_offset); in FindEntry()
/system/tools/aidl/
Daidl_to_ndk.cpp104 std::string cpp_name_for_array = cpp_name_for_array_opt.value_or(cpp_name); in PrimitiveType()
/system/libvintf/
Dcheck_vintf.cpp471 if (hasFcmExt.value_or(false) || (targetFcm != Level::UNSPECIFIED && targetFcm >= Level::R)) { in checkAllFiles()
/system/libbase/include/android-base/
Dexpected.h350 constexpr T value_or(U&& v) const& { in value_or() function
359 constexpr T value_or(U&& v) && { in value_or() function
/system/iorap/src/compiler/
Dcompiler.cc345 timestamp_relative_start = timestamp_relative_start.value_or(packet.timestamp()); in SelectPageCacheFtraceEvents()
/system/security/keystore2/src/km_compat/
Dkm_compat.cpp805 auto input = in_input.value_or(std::vector<uint8_t>()); in finish()
806 auto signature = in_signature.value_or(std::vector<uint8_t>()); in finish()
/system/vold/
DVolumeManager.cpp590 static bool apexUpdatable = android::sysprop::ApexProperties::updatable().value_or(false); in scanProcProcesses()

12