Home
last modified time | relevance | path

Searched refs:orElse (Results 1 – 25 of 109) sorted by relevance

12345

/aosp14/frameworks/base/services/core/java/com/android/server/input/
H A DInputFeatureFlagProvider.java34 InputProperties.enable_keyboard_backlight_control().orElse(true);
39 InputProperties.enable_keyboard_backlight_animation().orElse(false);
45 InputProperties.enable_keyboard_backlight_custom_levels().orElse(true);
51 InputProperties.enable_ambient_keyboard_backlight_control().orElse(true);
59 return sKeyboardBacklightControlOverride.orElse(KEYBOARD_BACKLIGHT_CONTROL_ENABLED); in isKeyboardBacklightControlEnabled()
63 return sKeyboardBacklightAnimationOverride.orElse(KEYBOARD_BACKLIGHT_ANIMATION_ENABLED); in isKeyboardBacklightAnimationEnabled()
67 return sKeyboardBacklightCustomLevelsOverride.orElse( in isKeyboardBacklightCustomLevelsEnabled()
72 return sAmbientKeyboardBacklightControlOverride.orElse( in isAmbientKeyboardBacklightControlEnabled()
/aosp14/frameworks/base/core/java/com/android/internal/os/
H A DRoSystemProperties.java43 HdmiProperties.forward_volume_keys_when_system_audio_mode_off().orElse(false);
67 CryptoProperties.state().orElse(CryptoProperties.state_values.UNSUPPORTED);
69 CryptoProperties.type().orElse(CryptoProperties.type_values.NONE);
/aosp14/frameworks/base/tools/codegen/src/com/android/codegen/
H A DFieldInfo.kt31 val javadoc: Javadoc? = fieldAst.javadoc.orElse(null)
84 variableAst.initializer.orElse(null)?.let { return it }
104 typeAst.typeArguments.orElse(null)?.map { it.asString() } ?: emptyList()
H A DInputSignaturesComputation.kt112 …}) + (type.typeArguments.orElse(null)?.let { args -> args.joinToString(",") {getFullClassName(it)}…
127 val thisPackagePrefix = fileAst.packageDeclaration.map { it.nameAsString + "." }.orElse("")
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/smartspace/
H A DDreamSmartspaceController.kt69 private val weatherPlugin: BcSmartspaceDataPlugin? = optionalWeatherPlugin.orElse(null)
70 private val plugin: BcSmartspaceDataPlugin? = optionalPlugin.orElse(null)
71 private var targetFilter: SmartspaceTargetFilter? = optionalTargetFilter.orElse(null)
/aosp14/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
H A DTestModelEnrollmentDatabase.java124 .orElse(null); in getKeyphraseSoundModel()
137 .orElse(null); in getKeyphraseSoundModel()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/kotlin/
H A Dnullability.kt30 inline fun <T> Optional<T>.getOrNull(): T? = orElse(null)
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/clipboardoverlay/
H A DClipboardOverlayUtilsTest.java99 RemoteAction result = mClipboardUtils.getAction(links, "test").orElse(null); in test_getAction_returnsFirstLink()
116 RemoteAction result = mClipboardUtils.getAction(links, "abc").orElse(null); in test_getAction_skipsMatchingComponent()
140 RemoteAction result = mClipboardUtils.getAction(textLinks.build(), "test").orElse(null); in test_getAction_skipsShortEntity()
/aosp14/frameworks/base/core/java/android/os/
H A DBuild.java149 public static final String SOC_MANUFACTURER = SocProperties.soc_manufacturer().orElse(UNKNOWN);
153 public static final String SOC_MODEL = SocProperties.soc_model().orElse(UNKNOWN);
378 DeviceProperties.media_performance_class().orElse(0);
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/lockscreen/
H A DLockscreenSmartspaceController.kt110 private val datePlugin: BcSmartspaceDataPlugin? = optionalDatePlugin.orElse(null)
111 private val weatherPlugin: BcSmartspaceDataPlugin? = optionalWeatherPlugin.orElse(null)
112 private val plugin: BcSmartspaceDataPlugin? = optionalPlugin.orElse(null)
113 private val configPlugin: BcSmartspaceConfigPlugin? = optionalConfigPlugin.orElse(null)
/aosp14/frameworks/base/tools/protologtool/src/com/android/protolog/tool/
H A DProtoLogTool.kt142 ParsingContext(fileName, problem.location.orElse(null)
143 ?.begin?.range?.orElse(null)?.begin?.line
/aosp14/frameworks/base/packages/SimAppDialog/src/com/android/simappdialog/
H A DInstallCarrierAppActivity.java54 SetupWizardProperties.theme().orElse(""), in onCreate()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/touch/
H A DShadeTouchHandler.java54 if (mSurfaces.map(CentralSurfaces::isBouncerShowing).orElse(false)) { in onSessionStart()
H A DBouncerSwipeTouchHandler.java130 .orElse(false);
242 if (mCentralSurfaces.map(CentralSurfaces::isBouncerShowing).orElse(false)) { in getTouchInitiationRegion()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DCsipDeviceManager.java273 .findFirst().orElse(null); in getPreferredMainDevice()
299 .findFirst().orElse(null); in getPreferredMainDevice()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
H A DOverviewProxyRecentsImpl.java106 if (centralSurfacesOptional.map(CentralSurfaces::isKeyguardShowing).orElse(false)) { in toggleRecentApps()
/aosp14/frameworks/base/cmds/svc/src/com/android/commands/svc/
H A DPowerCommand.java149 if (powerProp.isEmpty() && !InitProperties.userspace_reboot_in_progress().orElse(false)) { in maybeLogRemoteException()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/dagger/
H A DControlsComponent.kt62 optionalControlsTileResourceConfiguration.orElse(ControlsTileResourceConfigurationImpl())
/aosp14/frameworks/base/services/core/java/com/android/server/timedetector/
H A DServiceConfigAccessorImpl.java312 .orElse(TimeDetectorHelper.INSTANCE.getAutoSuggestionLowerBoundDefault()); in getAutoSuggestionLowerBound()
408 return priorityStrings.orElse(null); in lookupPriorityStrings()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
H A DRampToStepAdapterTest.java126 .setCapabilities(IntStream.of(capabilities).reduce((a, b) -> a | b).orElse(0)) in createVibratorInfo()
/aosp14/frameworks/base/services/core/java/com/android/server/
H A DWatchdog.java761 .orElse(watchdogTimeoutMillis * Build.HW_TIMEOUT_MULTIPLIER)); in run()
866 && !WatchdogProperties.should_ignore_fatal_count().orElse(false)) { in run()
1014 int fatalCount = WatchdogProperties.fatal_count().orElse(0); in isCrashLoopFound()
1016 WatchdogProperties.fatal_window_seconds().orElse(0)); in isCrashLoopFound()
/aosp14/frameworks/base/services/tests/apexsystemservices/src/com/android/server/
H A DApexSystemServicesTestCases.java135 .orElse(null); in getDebugMessage()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
H A DApexManagerTest.java136 .orElse(null); in findActive()
146 .orElse(null); in findFactory()
205 assertThat(services.stream().map(ApexSystemServiceInfo::getName).findFirst().orElse(null)) in testGetApexSystemServices()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DScreenOffAnimationController.kt36 .orElse(null)?.getFoldAodAnimationController()
/aosp14/frameworks/base/core/java/android/hardware/input/
H A DInputSettings.java329 || InputProperties.force_enable_stylus_pointer_icon().orElse(false); in isStylusPointerIconEnabled()

12345