Home
last modified time | relevance | path

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

12345

/aosp12/frameworks/native/services/surfaceflinger/Scheduler/
H A DVsyncConfiguration.cpp109 .value_or(std::numeric_limits<nsecs_t>::max()), in PhaseOffsets()
110 getProperty("debug.sf.hwc.min.duration").value_or(0)) {} in PhaseOffsets()
167 ? mEarlySfOffsetNs.value_or(mSfVSyncPhaseOffsetNs) in getDefaultOffsets()
168 : mEarlySfOffsetNs.value_or(mSfVSyncPhaseOffsetNs) - vsyncDuration; in getDefaultOffsets()
173 ? mEarlyGpuSfOffsetNs.value_or(mSfVSyncPhaseOffsetNs) in getDefaultOffsets()
204 ? mHighFpsEarlySfOffsetNs.value_or(mHighFpsSfVSyncPhaseOffsetNs) in getHighFpsOffsets()
207 const auto earlyGpuSfOffset = mHighFpsEarlyGpuSfOffsetNs.value_or( in getHighFpsOffsets()
210 ? mHighFpsEarlyGpuSfOffsetNs.value_or(mHighFpsSfVSyncPhaseOffsetNs) in getHighFpsOffsets()
265 getProperty(prop).value_or(-1)); in validateSysprops()
358 getProperty("debug.sf.late.app.duration").value_or(-1), in WorkDuration()
[all …]
/aosp12/frameworks/native/services/surfaceflinger/
H A DSurfaceFlingerProperties.cpp327 return SurfaceFlingerProperties::enable_sdr_dimming().value_or(defaultValue); in enable_sdr_dimming()
364 {{static_cast<float>(mDisplay_primary_red[0].value_or(kSrgbRedX)), in getDisplayNativePrimaries()
365 static_cast<float>(mDisplay_primary_red[1].value_or(kSrgbRedY)), in getDisplayNativePrimaries()
366 static_cast<float>(mDisplay_primary_red[2].value_or(kSrgbRedZ))}, in getDisplayNativePrimaries()
367 {static_cast<float>(mDisplay_primary_green[0].value_or(kSrgbGreenX)), in getDisplayNativePrimaries()
368 static_cast<float>(mDisplay_primary_green[1].value_or(kSrgbGreenY)), in getDisplayNativePrimaries()
370 {static_cast<float>(mDisplay_primary_blue[0].value_or(kSrgbBlueX)), in getDisplayNativePrimaries()
371 static_cast<float>(mDisplay_primary_blue[1].value_or(kSrgbBlueY)), in getDisplayNativePrimaries()
372 static_cast<float>(mDisplay_primary_blue[2].value_or(kSrgbBlueZ))}, in getDisplayNativePrimaries()
373 {static_cast<float>(mDisplay_primary_white[0].value_or(kSrgbWhiteX)), in getDisplayNativePrimaries()
[all …]
/aosp12/art/runtime/
H A Dapp_info.cc104 *out_compiler_filter = cli.compiler_filter.value_or(kUnknownValue); in GetPrimaryApkOptimizationStatus()
105 *out_compilation_reason = cli.compilation_reason.value_or(kUnknownValue); in GetPrimaryApkOptimizationStatus()
116 os << "AppInfo for package_name=" << rhs.package_name_.value_or(kUnknownValue) << "\n"; in operator <<()
123 << "\ncompiler_filter=" << cli.compiler_filter.value_or(kUnknownValue) in operator <<()
124 << "\ncompilation_reason=" << cli.compilation_reason.value_or(kUnknownValue) in operator <<()
125 << "\nodex_status=" << cli.odex_status.value_or(kUnknownValue) in operator <<()
126 << "\ncur_profile=" << cli.cur_profile_path.value_or(kUnknownValue) in operator <<()
127 << "\nref_profile=" << cli.ref_profile_path.value_or(kUnknownValue) in operator <<()
/aosp12/system/hardware/interfaces/suspend/1.0/default/
H A 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()
/aosp12/system/linkerconfig/modules/
H A 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()
/aosp12/frameworks/native/services/inputflinger/reader/controller/
H A DPeripheralController.cpp75 int rawMaxBrightness = rawInfoOpt->maxBrightness.value_or(MAX_BRIGHTNESS); in getRawLightBrightness()
94 int rawMaxBrightness = rawInfo->maxBrightness.value_or(MAX_BRIGHTNESS); in setRawLightBrightness()
238 dump += StringPrintf(INDENT4 "Color: 0x%x\n", getLightColor().value_or(0)); in dump()
242 dump += StringPrintf(INDENT4 "PlayerId: %d\n", getLightPlayerId().value_or(-1)); in dump()
251 dump += StringPrintf(INDENT4 "Color: 0x%x\n", getLightColor().value_or(0)); in dump()
261 dump += StringPrintf(INDENT4 "Color: 0x%x\n", getLightColor().value_or(0)); in dump()
307 dump += StringPrintf(INDENT4 "%d", rawInfo->maxBrightness.value_or(MAX_BRIGHTNESS)); in dump()
309 getDeviceContext().getLightBrightness(rawId).value_or(-1)); in dump()
322 switch (getBatteryStatus(batteryId).value_or(BATTERY_STATUS_UNKNOWN)) { in dump()
415 rawInfo->maxBrightness.value_or(MAX_BRIGHTNESS), rawInfo->flags.string().c_str()); in configureLights()
[all …]
/aosp12/frameworks/av/media/libaudioclient/
H A DIAudioFlinger.cpp239 return result.value_or(0); in sampleRate()
260 return result.value_or(0); in frameCount()
271 return result.value_or(0); in latency()
289 return result.value_or(0.f); in masterVolume()
424 return result.value_or(0); in getInputBufferSize()
443 return result.value_or(0); in openDuplicateOutput()
505 return result.value_or(0); in getInputFramesLost()
627 return result.value_or(0); in loadHwModule()
638 return result.value_or(0); in getPrimaryOutputSamplingRate()
649 return result.value_or(0); in getPrimaryOutputFrameCount()
[all …]
/aosp12/hardware/google/pixel/misc_writer/
H A Dmisc_writer.cpp56 offset = override_offset.value_or(kThemeFlagOffsetInVendorSpace); in PerformAction()
63 offset = override_offset.value_or(kSotaFlagOffsetInVendorSpace); in PerformAction()
/aosp12/hardware/interfaces/security/keymint/support/
H A Dremote_prov_utils_test.cpp81 EXPECT_THAT(eekId, ElementsAreArray(geek->getBstrValue(CoseKey::KEY_ID).value_or(empty))); in TEST()
82 EXPECT_THAT(eekPub, ElementsAreArray(geek->getBstrValue(CoseKey::PUBKEY_X).value_or(empty))); in TEST()
/aosp12/bootable/recovery/recovery_utils/
H A Dparse_install_logs.cpp56 bytes_written_in_mib = bytes_written_in_mib.value_or(0) + parsed_num / kMiB; in ParseRecoveryUpdateMetrics()
58 bytes_stashed_in_mib = bytes_stashed_in_mib.value_or(0) + parsed_num / kMiB; in ParseRecoveryUpdateMetrics()
/aosp12/frameworks/native/libs/ftl/
H A Dsmall_map_test.cpp102 const auto ref = map.find('d').value_or(std::cref(d)); in TEST()
113 const auto ref = map.find('d').value_or(std::ref(d)); in TEST()
/aosp12/system/core/healthd/
H A Dcharger.cpp29 if (CHARGER_FORCE_NO_UI || android::sysprop::ChargerProperties::no_ui().value_or(false)) { in main()
H A 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()
/aosp12/system/core/debuggerd/libdebuggerd/test/
H A Dopen_files_list_test.cpp42 EXPECT_EQ(file.second.path.value_or(""), std::string(tf.path)); in TEST()
/aosp12/frameworks/native/services/surfaceflinger/tests/unittests/
H A DDisplayIdentificationTest.cpp297 EXPECT_STREQ("SEC", getPnpId(0x4ca3u).value_or(PnpId{}).data()); in TEST()
298 EXPECT_STREQ("HWP", getPnpId(0x22f0u).value_or(PnpId{}).data()); in TEST()
299 EXPECT_STREQ("SAM", getPnpId(0x4c2du).value_or(PnpId{}).data()); in TEST()
/aosp12/system/bt/gd/hci/
H A Dhci_metrics_logging.cc865 …urce << "N:SDP::DIP::" << common::ToHexString(device.GetSdpDiVendorIdSource().value_or(0)).c_str(); in log_remote_device_information()
870 common::ToHexString(device.GetSdpDiManufacturer().value_or(0)).c_str(), in log_remote_device_information()
871 common::ToHexString(device.GetSdpDiModel().value_or(0)).c_str(), in log_remote_device_information()
872 common::ToHexString(device.GetSdpDiHardwareVersion().value_or(0)).c_str(), in log_remote_device_information()
879 device.GetLmpVersion().value_or(-1), in log_remote_device_information()
880 device.GetManufacturerCode().value_or(-1), in log_remote_device_information()
881 device.GetLmpSubVersion().value_or(-1)); in log_remote_device_information()
/aosp12/frameworks/native/cmds/idlcli/
H A DIdlCli.h39 while (args.get<std::string>().value_or("").find("-") == 0) { in doArgs()
/aosp12/frameworks/native/libs/gui/view/
H A DSurface.cpp80 return str.value_or(String16()); in readMaybeEmptyString16()
/aosp12/frameworks/base/libs/androidfw/
H A DAttributeResolution.cpp140 BagAttributeFinder def_style_attr_finder(default_style_bag.value_or(nullptr)); in ResolveAttrs()
246 BagAttributeFinder def_style_attr_finder(default_style_bag.value_or(nullptr)); in ApplyStyle()
247 BagAttributeFinder xml_style_attr_finder(xml_style_bag.value_or(nullptr)); in ApplyStyle()
/aosp12/system/apex/apexd/
H A Dflattened_apex_test.cpp35 bool value = android::sysprop::ApexProperties::updatable().value_or(false); in TEST()
/aosp12/system/update_engine/aosp/
H A Dapex_handler_android.cc51 if (android::sysprop::ApexProperties::updatable().value_or(false)) { in CreateApexHandler()
/aosp12/frameworks/native/services/inputflinger/reader/mapper/
H A DTouchCursorInputMapperCommon.h36 return sysprop::InputFlingerProperties::per_window_input_rotation().value_or(false); in isPerWindowInputRotationEnabled()
/aosp12/hardware/interfaces/neuralnetworks/utils/common/include/nnapi/hal/
H A DHandleError.h88 if (const auto canonical = ::android::nn::convert(status).value_or( \
/aosp12/frameworks/native/cmds/idlcli/vibrator/
H A DCommandCompose.cpp47 while (args.get<std::string>().value_or("").find("-") == 0) { in doArgs()
H A DCommandOn.cpp45 while (args.get<std::string>().value_or("").find("-") == 0) { in doArgs()

12345