Home
last modified time | relevance | path

Searched refs:emptyIfNull (Results 1 – 25 of 51) sorted by relevance

123

/aosp12/frameworks/base/core/java/com/android/internal/util/
H A DCollectionUtils.java71 return emptyIfNull(result); in filter()
97 return emptyIfNull(result); in filter()
172 return emptyIfNull(result); in mapNotNull()
182 public static @NonNull <T> List<T> emptyIfNull(@Nullable List<T> cur) { in emptyIfNull() method in CollectionUtils
193 public static @NonNull <T> Set<T> emptyIfNull(@Nullable Set<T> cur) { in emptyIfNull() method in CollectionUtils
204 public static @NonNull <K, V> Map<K, V> emptyIfNull(@Nullable Map<K, V> cur) { in emptyIfNull() method in CollectionUtils
241 return emptyIfNull(result); in filter()
374 return emptyIfNull(cur); in remove()
385 return emptyIfNull(cur); in remove()
/aosp12/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
H A DAbstractGoogleSource.java103 return emptyIfNull(queryInternal(query), query); in getSuggestions()
107 return emptyIfNull(queryExternal(query), query); in getSuggestionsExternal()
110 private SourceResult emptyIfNull(SourceResult result, String query) { in emptyIfNull() method in AbstractGoogleSource
H A DGoogleSuggestionProvider.java66 private SourceResult emptyIfNull(SourceResult result, GoogleSource source, String query) { in emptyIfNull() method in GoogleSuggestionProvider
80 emptyIfNull(mSource.queryExternal(query), mSource, query)); in query()
/aosp12/frameworks/av/media/libaudioclient/include/media/
H A DAidlConversionUtil.h289 const char * const emptyIfNull = optionalMessage == nullptr ? "" : optionalMessage;
301 return Status::fromExceptionCode(Status::EX_SECURITY, emptyIfNull);
303 return Status::fromExceptionCode(Status::EX_ILLEGAL_ARGUMENT, emptyIfNull);
305 return Status::fromExceptionCode(Status::EX_ILLEGAL_STATE, emptyIfNull);
312 return Status::fromServiceSpecificError(status, emptyIfNull);
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/network/
H A DSubscriptionUtils.java21 import static com.android.internal.util.CollectionUtils.emptyIfNull;
46 emptyIfNull(subscriptionManager.getSelectableSubscriptionInfoList())); in getAvailableSubscriptions()
/aosp12/frameworks/base/telephony/common/com/android/internal/telephony/util/
H A DTelephonyUtils.java68 public static String emptyIfNull(@Nullable String str) { in emptyIfNull() method in TelephonyUtils
73 public static @NonNull <T> List<T> emptyIfNull(@Nullable List<T> cur) { in emptyIfNull() method in TelephonyUtils
/aosp12/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
H A DCompanionDeviceDiscoveryService.java23 import static com.android.internal.util.CollectionUtils.emptyIfNull;
188 for (BluetoothDevice dev : emptyIfNull(mBluetoothAdapter.getBondedDevices())) { in startDiscovery()
191 for (BluetoothDevice dev : emptyIfNull( in startDiscovery()
195 for (BluetoothDevice dev : emptyIfNull( in startDiscovery()
H A DCompanionDeviceActivity.java20 import static android.text.TextUtils.emptyIfNull;
84 String profilePrivacyDisclaimer = emptyIfNull(getRequest() in onCreate()
/aosp12/frameworks/base/core/java/android/companion/
H A DBluetoothDeviceFilter.java60 mServiceUuids = CollectionUtils.emptyIfNull(serviceUuids); in BluetoothDeviceFilter()
61 mServiceUuidMasks = CollectionUtils.emptyIfNull(serviceUuidMasks); in BluetoothDeviceFilter()
H A DAssociationRequest.java19 import static com.android.internal.util.CollectionUtils.emptyIfNull;
223 mSingleDevice, emptyIfNull(mDeviceFilters), in build()
H A DBluetoothLeDeviceFilter.java149 final StringBuilder sb = new StringBuilder(TextUtils.emptyIfNull(mRenamePrefix)); in getDeviceDisplayName()
164 return sb.append(TextUtils.emptyIfNull(mRenameSuffix)).toString(); in getDeviceDisplayName()
/aosp12/build/bazel/json_module_graph/
H A DprintModule.jq5 transformModuleReferences(emptyIfNull | removeLinkVariation | removeEmptyVariations) |
H A DvariantTransitions.jq5 .[] | transformModuleReferences(emptyIfNull | removeLinkVariation | removeEmptyVariations) |
H A Dlibrary.jq24 def emptyIfNull: if . == null then {} else . end
/aosp12/frameworks/base/services/core/java/com/android/server/om/
H A DIdmapDaemon.java118 return mService.createIdmap(targetPath, overlayPath, TextUtils.emptyIfNull(overlayName), in createIdmap()
133 return mService.verifyIdmap(targetPath, overlayPath, TextUtils.emptyIfNull(overlayName), in verifyIdmap()
/aosp12/frameworks/base/core/java/android/os/
H A DBatterySaverPolicyConfig.java90 String key = TextUtils.emptyIfNull(in.readString()); in BatterySaverPolicyConfig()
91 String val = TextUtils.emptyIfNull(in.readString()); in BatterySaverPolicyConfig()
428 mDeviceSpecificSettings.put(key, TextUtils.emptyIfNull(value)); in addDeviceSpecificSetting()
/aosp12/frameworks/base/core/java/android/content/om/
H A DFabricatedOverlay.java86 mTargetOverlayable = TextUtils.emptyIfNull(targetOverlayable); in setTargetOverlayable()
/aosp12/frameworks/base/media/java/android/media/
H A DToneGenerator.java902 return TextUtils.emptyIfNull(ActivityThread.currentOpPackageName()); in getCurrentOpPackageName()
/aosp12/packages/apps/Settings/src/com/android/settings/inputmethod/
H A DPhysicalKeyboardFragment.java261 return TextUtils.emptyIfNull(currentLayout.getLabel()); in getLayoutLabel()
309 mDeviceName = TextUtils.emptyIfNull(deviceName); in HardKeyboardDeviceInfo()
/aosp12/frameworks/base/services/core/java/com/android/server/
H A DUserspaceRebootLogger.java144 String reason = TextUtils.emptyIfNull(SystemProperties.get(LAST_BOOT_REASON_PROPERTY, "")); in computeOutcome()
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DAdnRecord.java294 s1 = ArrayUtils.emptyIfNull(s1, String.class); in arrayCompareNullEqualsEmpty()
295 s2 = ArrayUtils.emptyIfNull(s2, String.class); in arrayCompareNullEqualsEmpty()
/aosp12/frameworks/base/core/java/android/provider/
H A DSettingsStringUtil.java49 TextUtils.split(TextUtils.emptyIfNull(colonSeparatedItems), DELIMITER)) { in ColonDelimitedSet()
/aosp12/packages/apps/Settings/src/com/android/settings/network/
H A DSubscriptionUtil.java22 import static com.android.internal.util.CollectionUtils.emptyIfNull;
104 return new ArrayList<>(emptyIfNull(getSelectableSubscriptionInfoList(context))); in getAvailableSubscriptions()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DLockIcon.java253 final String setting = TextUtils.emptyIfNull( in getThemedAnimationResId()
/aosp12/frameworks/base/services/core/java/com/android/server/power/batterysaver/
H A DBatterySaverPolicy.java437 setting = TextUtils.emptyIfNull(setting); in updateConstantsLocked()
438 deviceSpecificSetting = TextUtils.emptyIfNull(deviceSpecificSetting); in updateConstantsLocked()
841 configSuffix = TextUtils.emptyIfNull(configSuffix); in fromSettings()

123