Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/util/
DCollectionUtils.java60 return emptyIfNull(result); in filter()
86 return emptyIfNull(result); in filter()
161 return emptyIfNull(result); in mapNotNull()
171 public static @NonNull <T> List<T> emptyIfNull(@Nullable List<T> cur) { in emptyIfNull() method in CollectionUtils
182 public static @NonNull <T> Set<T> emptyIfNull(@Nullable Set<T> cur) { in emptyIfNull() method in CollectionUtils
219 return emptyIfNull(result); in filter()
274 return emptyIfNull(cur); in remove()
285 return emptyIfNull(cur); in remove()
/frameworks/base/core/java/android/os/
DBatterySaverPolicyConfig.java89 String key = TextUtils.emptyIfNull(in.readString()); in BatterySaverPolicyConfig()
90 String val = TextUtils.emptyIfNull(in.readString()); in BatterySaverPolicyConfig()
383 mDeviceSpecificSettings.put(key, TextUtils.emptyIfNull(value)); in addDeviceSpecificSetting()
/frameworks/base/core/java/android/companion/
DBluetoothDeviceFilter.java59 mServiceUuids = CollectionUtils.emptyIfNull(serviceUuids); in BluetoothDeviceFilter()
60 mServiceUuidMasks = CollectionUtils.emptyIfNull(serviceUuidMasks); in BluetoothDeviceFilter()
DAssociationRequest.java53 this.mDeviceFilters = CollectionUtils.emptyIfNull(deviceFilters); in AssociationRequest()
DBluetoothLeDeviceFilter.java147 final StringBuilder sb = new StringBuilder(TextUtils.emptyIfNull(mRenamePrefix)); in getDeviceDisplayName()
162 return sb.append(TextUtils.emptyIfNull(mRenameSuffix)).toString(); in getDeviceDisplayName()
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverPolicy.java349 setting = TextUtils.emptyIfNull(setting); in updateConstantsLocked()
350 deviceSpecificSetting = TextUtils.emptyIfNull(deviceSpecificSetting); in updateConstantsLocked()
351 adaptiveSetting = TextUtils.emptyIfNull(adaptiveSetting); in updateConstantsLocked()
352 adaptiveDeviceSpecificSetting = TextUtils.emptyIfNull(adaptiveDeviceSpecificSetting); in updateConstantsLocked()
/frameworks/base/core/java/android/provider/
DSettingsStringUtil.java49 TextUtils.split(TextUtils.emptyIfNull(colonSeparatedItems), DELIMITER)) { in ColonDelimitedSet()
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
DDeviceDiscoveryService.java23 import static com.android.internal.util.CollectionUtils.emptyIfNull;
179 for (BluetoothDevice dev : emptyIfNull(mBluetoothAdapter.getBondedDevices())) { in startDiscovery()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DTelephonyMetrics.java2472 carrierIdMatchingResult.mccmnc = TextUtils.emptyIfNull(simInfo.mccMnc); in writeCarrierIdMatchingEvent()
2473 carrierIdMatchingResult.spn = TextUtils.emptyIfNull(simInfo.spn); in writeCarrierIdMatchingEvent()
2474 carrierIdMatchingResult.pnn = TextUtils.emptyIfNull(simInfo.plmn); in writeCarrierIdMatchingEvent()
2475 carrierIdMatchingResult.gid1 = TextUtils.emptyIfNull(simInfo.gid1); in writeCarrierIdMatchingEvent()
2476 carrierIdMatchingResult.gid2 = TextUtils.emptyIfNull(simInfo.gid2); in writeCarrierIdMatchingEvent()
2477 carrierIdMatchingResult.imsiPrefix = TextUtils.emptyIfNull(simInfo.imsiPrefixPattern); in writeCarrierIdMatchingEvent()
2478 carrierIdMatchingResult.iccidPrefix = TextUtils.emptyIfNull(simInfo.iccidPrefix); in writeCarrierIdMatchingEvent()
2479 carrierIdMatchingResult.preferApn = TextUtils.emptyIfNull(simInfo.apn); in writeCarrierIdMatchingEvent()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteConnectionPool.java1123 + ", journalMode=" + TextUtils.emptyIfNull(mConfiguration.journalMode) in dump()
1124 + ", syncMode=" + TextUtils.emptyIfNull(mConfiguration.syncMode)); in dump()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DBluetoothTile.java135 state.secondaryLabel = TextUtils.emptyIfNull( in handleUpdateState()
DDndTile.java236 state.secondaryLabel = TextUtils.emptyIfNull(ZenModeConfig.getDescription(mContext, in handleUpdateState()
/frameworks/base/core/java/android/text/
DTextUtils.java551 public static String emptyIfNull(@Nullable String str) { in emptyIfNull() method in TextUtils
/frameworks/base/services/core/java/com/android/server/
DStorageManagerService.java1641 for (AppOpsManager.PackageOps pkg : CollectionUtils.emptyIfNull(pkgs)) { in getLastAccessTime()
1642 for (AppOpsManager.OpEntry op : CollectionUtils.emptyIfNull(pkg.getOps())) { in getLastAccessTime()
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityNodeInfo.java1121 return CollectionUtils.emptyIfNull(mActions); in getActionList()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSubscriptionController.java3737 return TextUtils.emptyIfNull(getSubscriptionProperty(subId,