Home
last modified time | relevance | path

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

12

/aosp14/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
248 return emptyIfNull(result); in filter()
381 return emptyIfNull(cur); in remove()
392 return emptyIfNull(cur); in remove()
H A DParcelling.java151 return CollectionUtils.emptyIfNull(list); in unparcel()
H A DArrayUtils.java142 public static @NonNull <T> T[] emptyIfNull(@Nullable T[] items, Class<T> kind) { in emptyIfNull() method in ArrayUtils
/aosp14/frameworks/base/telephony/java/android/telephony/
H A DSubscriptionInfo.java361 this.mMcc = TextUtils.emptyIfNull(mcc); in SubscriptionInfo()
362 this.mMnc = TextUtils.emptyIfNull(mnc); in SubscriptionInfo()
365 this.mCountryIso = TextUtils.emptyIfNull(countryIso); in SubscriptionInfo()
368 this.mCardString = TextUtils.emptyIfNull(cardString); in SubscriptionInfo()
376 this.mGroupOwner = TextUtils.emptyIfNull(groupOwner); in SubscriptionInfo()
1300 mIccId = TextUtils.emptyIfNull(iccId); in setIccId()
1377 mNumber = TextUtils.emptyIfNull(number); in setNumber()
1463 mCountryIso = TextUtils.emptyIfNull(countryIso); in setCountryIso()
1502 mCardString = TextUtils.emptyIfNull(cardString); in setCardString()
1607 mGroupOwner = TextUtils.emptyIfNull(groupOwner); in setGroupOwner()
/aosp14/frameworks/base/core/java/android/content/om/
H A DFabricatedOverlay.java157 mTargetOverlayable = TextUtils.emptyIfNull(targetOverlayable); in setTargetOverlayable()
309 overlay.targetOverlayable = TextUtils.emptyIfNull(targetOverlayable); in generateFabricatedOverlayInternal()
346 mOverlay.targetOverlayable = TextUtils.emptyIfNull(targetOverlayable); in setTargetOverlayable()
/aosp14/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.java21 import static com.android.internal.util.CollectionUtils.emptyIfNull;
462 return new AssociationRequest(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()
/aosp14/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()
/aosp14/frameworks/base/telephony/common/com/android/internal/telephony/util/
H A DTelephonyUtils.java79 public static String emptyIfNull(@Nullable String str) { in emptyIfNull() method in TelephonyUtils
84 public static @NonNull <T> List<T> emptyIfNull(@Nullable List<T> cur) { in emptyIfNull() method in TelephonyUtils
/aosp14/frameworks/base/services/core/java/com/android/server/om/
H A DIdmapDaemon.java135 return idmap2.createIdmap(targetPath, overlayPath, TextUtils.emptyIfNull(overlayName), in createIdmap()
165 return idmap2.verifyIdmap(targetPath, overlayPath, TextUtils.emptyIfNull(overlayName), in verifyIdmap()
H A DOverlayManagerService.java298 String shellPkgName = TextUtils.emptyIfNull( in OverlayManagerService()
946 return CollectionUtils.emptyIfNull(result);
/aosp14/frameworks/base/media/java/android/media/
H A DToneGenerator.java902 return TextUtils.emptyIfNull(ActivityThread.currentOpPackageName()); in getCurrentOpPackageName()
H A DPlayerBase.java542 return TextUtils.emptyIfNull(ActivityThread.currentOpPackageName()); in getCurrentOpPackageName()
/aosp14/frameworks/base/services/core/java/com/android/server/
H A DUserspaceRebootLogger.java144 String reason = TextUtils.emptyIfNull(SystemProperties.get(LAST_BOOT_REASON_PROPERTY, "")); in computeOutcome()
/aosp14/frameworks/base/core/java/android/provider/
H A DSettingsStringUtil.java49 TextUtils.split(TextUtils.emptyIfNull(colonSeparatedItems), DELIMITER)) { in ColonDelimitedSet()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DLockIcon.java253 final String setting = TextUtils.emptyIfNull( in getThemedAnimationResId()
/aosp14/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()
807 configSuffix = TextUtils.emptyIfNull(configSuffix); in fromSettings()
/aosp14/frameworks/base/core/java/android/content/res/
H A DApkAssets.java335 return TextUtils.emptyIfNull(nativeGetAssetPath(mNativePtr)); in getAssetPath()
/aosp14/frameworks/base/core/java/android/permission/
H A DPermissionControllerManager.java577 callback.onGetAppPermissions(CollectionUtils.emptyIfNull(getAppPermissionsResult)); in getAppPermissions()
667 CollectionUtils.emptyIfNull(getPermissionUsagesResult)); in getPermissionUsages()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DBluetoothTile.java159 state.secondaryLabel = TextUtils.emptyIfNull( in handleUpdateState()
H A DDndTile.java241 state.secondaryLabel = TextUtils.emptyIfNull(ZenModeConfig.getDescription(mContext, in handleUpdateState()
/aosp14/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteConnectionPool.java1157 + ", journalMode=" + TextUtils.emptyIfNull(mConfiguration.resolveJournalMode()) in dump()
1158 + ", syncMode=" + TextUtils.emptyIfNull(mConfiguration.resolveSyncMode())); in dump()
/aosp14/frameworks/base/telephony/java/android/telephony/data/
H A DDataProfile.java136 return TextUtils.emptyIfNull(mApnSetting.getApnName()); in getApn()
/aosp14/frameworks/base/core/java/android/view/inputmethod/
H A DInputMethodSubtype.java516 result = TextUtils.emptyIfNull(result); in getCanonicalizedLanguageTag()

12