/aosp12/frameworks/base/core/java/com/android/internal/util/ |
H A D | CollectionUtils.java | 71 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 D | AbstractGoogleSource.java | 103 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 D | GoogleSuggestionProvider.java | 66 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 D | AidlConversionUtil.h | 289 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 D | SubscriptionUtils.java | 21 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 D | TelephonyUtils.java | 68 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 D | CompanionDeviceDiscoveryService.java | 23 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 D | CompanionDeviceActivity.java | 20 import static android.text.TextUtils.emptyIfNull; 84 String profilePrivacyDisclaimer = emptyIfNull(getRequest() in onCreate()
|
/aosp12/frameworks/base/core/java/android/companion/ |
H A D | BluetoothDeviceFilter.java | 60 mServiceUuids = CollectionUtils.emptyIfNull(serviceUuids); in BluetoothDeviceFilter() 61 mServiceUuidMasks = CollectionUtils.emptyIfNull(serviceUuidMasks); in BluetoothDeviceFilter()
|
H A D | AssociationRequest.java | 19 import static com.android.internal.util.CollectionUtils.emptyIfNull; 223 mSingleDevice, emptyIfNull(mDeviceFilters), in build()
|
H A D | BluetoothLeDeviceFilter.java | 149 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 D | printModule.jq | 5 transformModuleReferences(emptyIfNull | removeLinkVariation | removeEmptyVariations) |
|
H A D | variantTransitions.jq | 5 .[] | transformModuleReferences(emptyIfNull | removeLinkVariation | removeEmptyVariations) |
|
H A D | library.jq | 24 def emptyIfNull: if . == null then {} else . end
|
/aosp12/frameworks/base/services/core/java/com/android/server/om/ |
H A D | IdmapDaemon.java | 118 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 D | BatterySaverPolicyConfig.java | 90 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 D | FabricatedOverlay.java | 86 mTargetOverlayable = TextUtils.emptyIfNull(targetOverlayable); in setTargetOverlayable()
|
/aosp12/frameworks/base/media/java/android/media/ |
H A D | ToneGenerator.java | 902 return TextUtils.emptyIfNull(ActivityThread.currentOpPackageName()); in getCurrentOpPackageName()
|
/aosp12/packages/apps/Settings/src/com/android/settings/inputmethod/ |
H A D | PhysicalKeyboardFragment.java | 261 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 D | UserspaceRebootLogger.java | 144 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 D | AdnRecord.java | 294 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 D | SettingsStringUtil.java | 49 TextUtils.split(TextUtils.emptyIfNull(colonSeparatedItems), DELIMITER)) { in ColonDelimitedSet()
|
/aosp12/packages/apps/Settings/src/com/android/settings/network/ |
H A D | SubscriptionUtil.java | 22 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 D | LockIcon.java | 253 final String setting = TextUtils.emptyIfNull( in getThemedAnimationResId()
|
/aosp12/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
H A D | BatterySaverPolicy.java | 437 setting = TextUtils.emptyIfNull(setting); in updateConstantsLocked() 438 deviceSpecificSetting = TextUtils.emptyIfNull(deviceSpecificSetting); in updateConstantsLocked() 841 configSuffix = TextUtils.emptyIfNull(configSuffix); in fromSettings()
|