Home
last modified time | relevance | path

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

/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/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.cpp263 if (!android::sysprop::ChargerProperties::enable_suspend().value_or(false)) { in request_suspend()
321 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.cpp113 if (!android::sysprop::ApexProperties::updatable().value_or(false)) { in main()
Dapexd.cpp1065 if (!android::sysprop::ApexProperties::updatable().value_or(false)) { in emitApexInfoList()
/system/incremental_delivery/incfs/
Dincfs.cpp142 android::sysprop::IncrementalProperties::enable().value_or("")}; in incFsPropertyValue()
615 if (version.value_or(-1) != INCFS_SIGNATURE_VERSION) { in validateSignatureFormat()
623 if (hashAlgo.value_or(-1) != INCFS_HASH_TREE_SHA256) { in validateSignatureFormat()
627 if (logBlockSize.value_or(-1) != 12 /* 2^12 == 4096 */) { in validateSignatureFormat()
631 if (saltSize.value_or(-1) != 0) { in validateSignatureFormat()
635 if (rootHashSize.value_or(-1) != INCFS_MAX_HASH_SIZE) { in validateSignatureFormat()
645 if (signingSize.value_or(-1) != signature.size) { in validateSignatureFormat()
/system/core/adb/client/
Dadb_install.cpp497 fallback_mode.value_or(INSTALL_PUSH) == INSTALL_STREAM) && in install_app()
532 if (res && fallback_mode.value_or(primary_mode) != primary_mode) { in install_app()
698 fallback_mode.value_or(INSTALL_PUSH) == INSTALL_STREAM) && in install_multiple_app()
718 if (res && fallback_mode.value_or(primary_mode) != primary_mode) { in install_multiple_app()
/system/bt/gd/storage/
Ddevice.h181 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.cpp181 static bool is_apex_updatable = android::sysprop::ApexProperties::updatable().value_or(false); in do_class_start_post_data()
213 static bool is_apex_updatable = android::sysprop::ApexProperties::updatable().value_or(false); in do_class_reset_post_data()
1141 if (android::sysprop::InitProperties::userspace_reboot_in_progress().value_or(false)) { in ExecVdcRebootOnFailure()
1239 static bool updatable = android::sysprop::ApexProperties::updatable().value_or(false); in IsApexUpdatable()
Dservice.cpp309 static bool is_apex_updatable = android::sysprop::ApexProperties::updatable().value_or(false); in Reap()
Dreboot.cpp888 if (!android::sysprop::InitProperties::is_userspace_reboot_supported().value_or(false)) { in HandleUserspaceReboot()
Dproperty_service.cpp499 if (value == "reboot,userspace" && !is_userspace_reboot_supported().value_or(false)) { in HandlePropertySet()
/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/core/adb/daemon/
Dfile_sync_service.cpp618 return send_impl(s, path, msg.send_v2_setup.mode, compression.value_or(CompressionType::None), in do_send_v2()
763 return recv_impl(s, path, compression.value_or(CompressionType::None), buffer); in do_recv_v2()
/system/libziparchive/
Dzip_archive.cc721 data->uncompressed_length = zip64_info.uncompressed_file_size.value_or(cdr->uncompressed_size); in FindEntry()
722 data->compressed_length = zip64_info.compressed_file_size.value_or(cdr->compressed_size); in FindEntry()
723 local_header_offset = zip64_info.local_header_offset.value_or(local_header_offset); in FindEntry()
/system/tools/aidl/
Daidl_to_ndk.cpp92 std::string cpp_name_for_array = cpp_name_for_array_opt.value_or(cpp_name); in PrimitiveType()
/system/vold/
DVolumeManager.cpp464 static bool apexUpdatable = android::sysprop::ApexProperties::updatable().value_or(false); in remountUid()
/system/libvintf/
Dcheck_vintf.cpp422 if (hasFcmExt.value_or(false) || (targetFcm != Level::UNSPECIFIED && targetFcm >= Level::R)) { in checkAllFiles()
/system/libbase/include/android-base/
Dexpected.h351 constexpr T value_or(U&& v) const& { in value_or() function
360 constexpr T value_or(U&& v) && { in value_or() function
/system/core/fs_mgr/libsnapshot/
Dsnapshot_test.cpp1051 ASSERT_EQ(3_MiB, GetSnapshotSize("sys_b").value_or(0)); in TEST_F()
1061 ASSERT_EQ(4_MiB, GetSnapshotSize("sys_b").value_or(0)); in TEST_F()