Home
last modified time | relevance | path

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

1234567891011

/packages/modules/Bluetooth/framework/tests/util/src/android/bluetooth/cts/
DTestUtils.java54 return BluetoothProperties.isProfileA2dpSourceEnabled().orElse(false); in isProfileEnabled()
57 return BluetoothProperties.isProfileA2dpSinkEnabled().orElse(false); in isProfileEnabled()
63 return BluetoothProperties.isProfileAvrcpControllerEnabled().orElse(false); in isProfileEnabled()
66 return BluetoothProperties.isProfileCsipSetCoordinatorEnabled().orElse(false); in isProfileEnabled()
69 return BluetoothProperties.isProfileGattEnabled().orElse(true); in isProfileEnabled()
72 return BluetoothProperties.isProfileHapClientEnabled().orElse(false); in isProfileEnabled()
75 return BluetoothProperties.isProfileHfpAgEnabled().orElse(false); in isProfileEnabled()
78 return BluetoothProperties.isProfileHfpHfEnabled().orElse(false); in isProfileEnabled()
89 return BluetoothProperties.isProfileAshaCentralEnabled().orElse(default_value); in isProfileEnabled()
92 return BluetoothProperties.isProfileHidDeviceEnabled().orElse(false); in isProfileEnabled()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/common/
DFledgeRoomConverters.java49 return Optional.ofNullable(instant).map(Instant::toEpochMilli).orElse(null); in serializeInstant()
56 return Optional.ofNullable(epochMilli).map(Instant::ofEpochMilli).orElse(null); in deserializeInstant()
63 return Optional.ofNullable(uri).map(Uri::parse).orElse(null); in deserializeUri()
70 return Optional.ofNullable(uri).map(Uri::toString).orElse(null); in serializeUri()
77 return Optional.ofNullable(adTechIdentifier).map(AdTechIdentifier::toString).orElse(null); in serializeAdTechIdentifier()
84 return Optional.ofNullable(adTechIdentifier).map(AdTechIdentifier::fromString).orElse(null); in deserializeAdTechIdentifier()
91 return Optional.ofNullable(signals).map(AdSelectionSignals::toString).orElse(null); in serializeAdSelectionSignals()
98 return Optional.ofNullable(signals).map(AdSelectionSignals::fromString).orElse(null); in deserializeAdSelectionSignals()
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/entitlement/
DEntitlementConfiguration.java71 mXmlDoc = new XmlDoc(mConfigurationsDataStore.getRawXml().orElse(null)); in EntitlementConfiguration()
89 return mConfigurationsDataStore.getRawXml().orElse(null); in getRawXml()
94 return Integer.parseInt(mConfigurationsDataStore.getEntitlementVersion().orElse("0")); in getEntitlementVersion()
133 .orElse(DEFAULT_VALIDITY); in getTokenValidity()
142 .orElse(String.valueOf(DEFAULT_VERSION)); in getVersion()
152 .orElse(DEFAULT_VALIDITY); in getVersValidity()
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/ts43/
DTs43VonrStatus.java58 .orElse(EntitlementStatus.INCOMPATIBLE)) in builder()
60 doc.getFromVonrHome(NETWORK_VOICE_IRAT_CAPABILITY).orElse("")) in builder()
64 .orElse(EntitlementStatus.INCOMPATIBLE)) in builder()
66 doc.getFromVonrRoaming(NETWORK_VOICE_IRAT_CAPABILITY).orElse("")); in builder()
DTs43VowifiStatus.java83 .orElse(EntitlementStatus.INCOMPATIBLE)) in builder()
87 .orElse(TcStatus.NOT_REQUIRED)) in builder()
91 .orElse(AddrStatus.NOT_REQUIRED)) in builder()
95 .orElse(ProvStatus.NOT_REQUIRED)); in builder()
/packages/apps/TV/partner_support/src/com/google/android/tv/partner/support/
DPartnerCustomizations.java46 .orElse(false); in doesTvProviderAllowSystemInsertsToProgramTable()
50 return getBooleanResource(context, TVPROVIDER_ALLOWS_COLUMN_CREATION).orElse(false); in doesTvProviderAllowColumnCreation()
54 return getBooleanResource(context, TURN_OFF_EMBEDDED_TUNER).orElse(false); in turnOffEmbeddedTuner()
/packages/apps/Settings/tests/unit/src/com/android/settings/development/mediadrm/
DForceSwSecureCryptoFallbackPreferenceControllerTest.java73 assertThat(WidevineProperties.forcel3_enabled().orElse(false)).isFalse(); in updateState_flagEnabled_checkPreference()
78 assertThat(WidevineProperties.forcel3_enabled().orElse(false)).isTrue(); in updateState_flagEnabled_checkPreference()
85 assertThat(WidevineProperties.forcel3_enabled().orElse(false)).isFalse(); in updateState_flagEnabled_checkPreference()
93 assertThat(WidevineProperties.forcel3_enabled().orElse(false)).isTrue(); in updateState_flagEnabled_checkPreference()
98 assertThat(WidevineProperties.forcel3_enabled().orElse(false)).isFalse(); in updateState_flagEnabled_checkPreference()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/
DBluetoothOppTestUtils.java89 .orElse(new CursorMockData("", -1, null)) in setUpMockCursor()
101 .orElse(new CursorMockData("", -1, -1)) in setUpMockCursor()
113 .orElse(new CursorMockData("", -1, -1)) in setUpMockCursor()
125 .orElse(new CursorMockData("", -1, null)) in setUpMockCursor()
DBluetoothOppBtEnableActivityTest.java60 Assume.assumeTrue(BluetoothProperties.isProfileOppEnabled().orElse(false)); in setUp()
71 if (!BluetoothProperties.isProfileOppEnabled().orElse(false)) { in tearDown()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DShowLayoutBoundsPreferenceControllerTest.java61 final boolean mode = DisplayProperties.debug_layout().orElse(false); in onPreferenceChanged_settingEnabled_turnOnShowLayoutBounds()
70 final boolean mode = DisplayProperties.debug_layout().orElse(false); in onPreferenceChanged_settingDisabled_turnOffShowLayoutBounds()
95 final boolean mode = DisplayProperties.debug_layout().orElse(false); in onDeveloperOptionsDisabled_shouldDisablePreference()
DBluetoothSnoopLogFilterProfileMapPreferenceControllerTest.java103 .orElse(BluetoothProperties.snoop_log_filter_profile_map_values.DISABLED); in onPreferenceChanged_turnOnBluetoothSnoopLogFullFilterMap()
121 .orElse(BluetoothProperties.snoop_log_filter_profile_map_values.DISABLED); in onPreferenceChanged_turnOnBluetoothSnoopLogHeaderFilterMap()
138 .orElse(BluetoothProperties.snoop_log_filter_profile_map_values.DISABLED); in onPreferenceChanged_turnOnBluetoothSnoopLogMagicFilterMap()
155 .orElse(BluetoothProperties.snoop_log_filter_profile_map_values.DISABLED); in onPreferenceChanged_turnOffBluetoothSnoopLogFilterMap()
DBluetoothSnoopLogFilterProfilePbapPreferenceControllerTest.java103 .orElse(BluetoothProperties.snoop_log_filter_profile_pbap_values.DISABLED); in onPreferenceChanged_turnOnBluetoothSnoopLogFullFilterPbap()
121 .orElse(BluetoothProperties.snoop_log_filter_profile_pbap_values.DISABLED); in onPreferenceChanged_turnOnBluetoothSnoopLogHeaderFilterPbap()
138 .orElse(BluetoothProperties.snoop_log_filter_profile_pbap_values.DISABLED); in onPreferenceChanged_turnOnBluetoothSnoopLogMagicFilterPbap()
155 .orElse(BluetoothProperties.snoop_log_filter_profile_pbap_values.DISABLED); in onPreferenceChanged_turnOffBluetoothSnoopLogFilterPbap()
DForceMSAAPreferenceControllerTest.java63 final boolean mode = DisplayProperties.debug_force_msaa().orElse(false); in onPreferenceChanged_settingEnabled_turnOnForceMsaa()
72 final boolean mode = DisplayProperties.debug_force_msaa().orElse(false); in onPreferenceChanged_settingDisabled_turnOffForceMsaa()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/attribution/
DXnaSourceCreator.java143 .orElse(true); in createSourceExpiryOverridePredicate()
154 .orElse(true); in createSourcePriorityRangePredicate()
174 .orElse(true); in createFilterMatchPredicate()
200 .orElse(false);
268 .orElse(Long.MAX_VALUE);
/packages/modules/Virtualization/java/framework/src/android/system/virtualmachine/
DVirtualMachineConfig.java662 config.name = Optional.ofNullable(customImageConfig.getName()).orElse(""); in toVsRawConfig()
675 .orElse(null); in toVsRawConfig()
680 .orElse(null); in toVsRawConfig()
684 .orElse(null); in toVsRawConfig()
693 .orElse(""); in toVsRawConfig()
698 .orElse(0)]; in toVsRawConfig()
713 .orElse(null); in toVsRawConfig()
717 .orElse(null); in toVsRawConfig()
1103 if (!HypervisorProperties.hypervisor_protected_vm_supported().orElse(false)) { in setProtectedVm()
1108 if (!HypervisorProperties.hypervisor_vm_supported().orElse(false)) { in setProtectedVm()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/data/glide/
DGlideLoadable.java59 Optional.ofNullable(prefix).orElse("") + mUri.toString() + mCacheKey.orElse("")); in getLoadableSignature()
/packages/apps/Settings/src/com/android/settings/accessibility/rtt/
DTelecomUtil.java41 .orElse(new ArrayList<>()); in getCallCapablePhoneAccounts()
54 .orElse(SubscriptionManager.INVALID_SUBSCRIPTION_ID); in getSubIdForPhoneAccountHandle()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DActiveNetworkProvider.java65 return mWifiManagerOptional.map(WifiManager::isWifiEnabled).orElse(false); in isWifiEnabled()
77 .orElse(null); in getSsid()
/packages/apps/Settings/src/com/android/settings/development/
DBluetoothLeAudioPreferenceController.java71 return BluetoothProperties.isProfileBapUnicastClientEnabled().orElse(false) in isAvailable()
72 && !BluetoothProperties.isProfileBapBroadcastSourceEnabled().orElse(false); in isAvailable()
DBluetoothSnoopLogFilterProfilePbapPreferenceController.java51 .orElse(BluetoothProperties.snoop_log_mode_values.DISABLED) in isSnoopLogModeFilteredEnabled()
97 .orElse( in updateState()
DBluetoothSnoopLogFilterProfileMapPreferenceController.java51 .orElse(BluetoothProperties.snoop_log_mode_values.DISABLED) in isSnoopLogModeFilteredEnabled()
98 .orElse( in updateState()
/packages/apps/Launcher3/src/com/android/launcher3/model/data/
DItemInfo.java224 return Optional.ofNullable(getIntent()).map(Intent::getComponent).orElse(mComponentName); in getTargetComponent()
365 .orElse(LauncherAtom.Application.newBuilder())); in buildProto()
378 .orElse(LauncherAtom.Shortcut.newBuilder())); in buildProto()
386 .orElse(LauncherAtom.Widget.newBuilder()) in buildProto()
396 .orElse(LauncherAtom.Task.newBuilder())); in buildProto()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/ui/util/
DUxEngineUtil.java59 .orElse(PrivacySandboxUxCollection.UNSUPPORTED_UX); in getEligibleUxCollection()
74 .orElse(null); in getEligibleEnrollmentChannelCollection()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBlockingPrefWithSliceController.java189 Log.d(TAG, "Title: " + title.orElse("no title") in createPreferenceItem()
190 + ", Subtitle: " + subtitle.orElse("no Subtitle") in createPreferenceItem()
191 + ", Action: " + sliceAction.orElse(null)); in createPreferenceItem()
304 title.orElse(/* other= */ ""))); in extractActionFromSlice()
/packages/modules/Virtualization/compos/service/java/com/android/server/compos/
DIsolatedCompilationService.java78 if (HypervisorProperties.hypervisor_protected_vm_supported().orElse(false)) { in isIsolatedCompilationSupported()
84 return HypervisorProperties.hypervisor_vm_supported().orElse(false); in isIsolatedCompilationSupported()

1234567891011