Home
last modified time | relevance | path

Searched refs:isNullOrEmpty (Results 1 – 25 of 104) sorted by relevance

12345

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DCollectionUtilsTests.java97 assertTrue(CollectionUtils.isNullOrEmpty((List<String>) null)); in testIsNullOrEmpty()
98 assertTrue(CollectionUtils.isNullOrEmpty((Map<String, String>) null)); in testIsNullOrEmpty()
99 assertTrue(CollectionUtils.isNullOrEmpty(new ArrayList<String>())); in testIsNullOrEmpty()
100 assertTrue(CollectionUtils.isNullOrEmpty(new HashMap<String, String>())); in testIsNullOrEmpty()
101 assertFalse(CollectionUtils.isNullOrEmpty(Collections.singletonList("Not empty"))); in testIsNullOrEmpty()
102 assertFalse(CollectionUtils.isNullOrEmpty(Collections.singletonMap("Not", "empty"))); in testIsNullOrEmpty()
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/
DSafetySourceIntentHandler.kt120 if (broadcastId.isNullOrEmpty()) { in processRefreshSafetySources()
125 if (sourceIds.isNullOrEmpty()) { in processRefreshSafetySources()
160 if (sourceId.isNullOrEmpty()) { in createRefreshEvent()
167 if (sourceIssueId.isNullOrEmpty()) { in createRefreshEvent()
174 if (sourceIssueActionId.isNullOrEmpty()) { in createRefreshEvent()
208 if (sourceId.isNullOrEmpty()) { in createResolveActionSuccessEvent()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/converter/
DWallpaperModelFactory.kt145 effectsBottomSheetTitle.takeUnless { it.isNullOrEmpty() } ?: return null in getWallpaperModel()
147 effectsBottomSheetSubtitle.takeUnless { it.isNullOrEmpty() } ?: return null in getWallpaperModel()
149 clearActionsUri.takeUnless { it?.scheme.isNullOrEmpty() } ?: return null in getWallpaperModel()
150 val effectsUri = effectsUri.takeUnless { it?.scheme.isNullOrEmpty() } ?: return null in getWallpaperModel()
/packages/services/Car/tests/RailwayReferenceApp/src/com/google/android/car/networking/railway/
DConfigurationUpdater.java69 return Strings.isNullOrEmpty(ipConfigurationText) ? null : in getIpConfiguration()
81 if (Strings.isNullOrEmpty(networkCapabilitiesText)) { in getCapabilities()
94 if (!Strings.isNullOrEmpty(packageNames)) { in getCapabilities()
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/audiostreams/
DAudioStreamsDialogFragment.java216 if (!Strings.isNullOrEmpty(mSubTitle1)) { in build()
221 if (!Strings.isNullOrEmpty(mSubTitle2)) { in build()
226 if (!Strings.isNullOrEmpty(mLeftButtonText)) { in build()
237 if (!Strings.isNullOrEmpty(mRightButtonText)) { in build()
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DCollectionUtils.java64 public static boolean isNullOrEmpty(@Nullable final Collection c) { in isNullOrEmpty() method in CollectionUtils
74 public static boolean isNullOrEmpty(@Nullable final Map map) { in isNullOrEmpty() method in CollectionUtils
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/
DAuctionServerCustomAudienceFilterer.java44 .allMatch(Strings::isNullOrEmpty)) { in isValidCustomAudienceForServerSideAuction()
60 .allMatch(ad -> Strings.isNullOrEmpty(ad.getAdRenderId()))) { in isValidCustomAudienceForServerSideAuction()
/packages/apps/Settings/src/com/android/settings/system/
DClientInitiatedActionRepository.kt46 if (action.isNullOrEmpty()) return in onSystemUpdate()
52 if (!extra.isNullOrEmpty()) putExtra(extra, extraValue) in onSystemUpdate()
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DPermissionRationaleTest.kt143 Assume.assumeFalse(getPermissionControllerResString(HELP_CENTER_URL_ID).isNullOrEmpty()) in <lambda>()
157 Assume.assumeTrue(getPermissionControllerResString(HELP_CENTER_URL_ID).isNullOrEmpty()) in <lambda>()
365 assertFalse(observedIntentDataString.isNullOrEmpty()) in <lambda>()
368 assertFalse(observedIntentScheme.isNullOrEmpty()) in <lambda>()
DAppDataSharingUpdatesTest.kt281 Assume.assumeFalse(getPermissionControllerResString(HELP_CENTER_URL_ID).isNullOrEmpty()) in <lambda>()
300 Assume.assumeTrue(getPermissionControllerResString(HELP_CENTER_URL_ID).isNullOrEmpty()) in <lambda>()
708 assertFalse(observedIntentDataString.isNullOrEmpty()) in <lambda>()
711 assertFalse(observedIntentScheme.isNullOrEmpty()) in <lambda>()
717 return !getPermissionControllerResString(HELP_CENTER_URL_ID).isNullOrEmpty() in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/
DSafetyCenterSubpageFragment.kt119 subpageIssues.isNullOrEmpty() && subpageIllustration.illustrationDrawable != null in updateSafetyCenterIssues()
121 if (subpageIssues.isNullOrEmpty() && subpageDismissedIssues.isNullOrEmpty()) { in updateSafetyCenterIssues()
DPrivacySubpageFragment.kt104 if (subpageIssues.isNullOrEmpty() && subpageDismissedIssues.isNullOrEmpty()) { in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DManagePermissionsViewModel.kt109 !unusedPermissionGroups.value.isNullOrEmpty() || in <lambda>()
110 !additionalPermissionGroups.value.isNullOrEmpty() in <lambda>()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/view/
DPreviewActionFloatingSheet.kt132 if (!text.isNullOrEmpty()) { in <lambda>()
138 if (!text.isNullOrEmpty()) { in <lambda>()
144 if (!text.isNullOrEmpty()) { in <lambda>()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DFirstScreenBroadcastHelper.kt182 if (installer.isNullOrEmpty() || appPackage.isNullOrEmpty()) return@forEach in <lambda>()
201 if (installer.isNullOrEmpty()) return@forEach in <lambda>()
223 if (installer.isNullOrEmpty()) return@forEach in <lambda>()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/customization/domain/interactor/
DWallpaperSnapshotRestorer.kt53 if (!homeWallpaperId.isNullOrEmpty()) { in <lambda>()
62 if (!lockWallpaperId.isNullOrEmpty()) { in <lambda>()
/packages/apps/Contacts/src/com/android/contacts/sdn/
DSdnProvider.kt177 if (lookupKey.isNullOrEmpty()) { in <lambda>()
236 if (phoneNumber.isNullOrEmpty()) { in <lambda>()
259 if (callingPackage.isNullOrEmpty()) { in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/
DWearPermissionAppsHelper.kt70 if (!allowedList.isNullOrEmpty()) { in <lambda>()
99 if (!list.isNullOrEmpty()) { in <lambda>()
204 if (chipsByCategory[categoryName].isNullOrEmpty()) { in <lambda>()
DWearPermissionAppsScreen.kt81 val firstItemIndex = categoryOrder.indexOfFirst { !chipsByCategory[it].isNullOrEmpty() } in WearPermissionAppsContent()
84 if (chips.isNullOrEmpty()) { in WearPermissionAppsContent()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/viewmodel/
DPreviewActionsViewModel.kt91 if (wallpaperModel.commonWallpaperData.exploreActionUrl.isNullOrEmpty()) { in <lambda>()
520 return (!attributions.isNullOrEmpty() && attributions.any { !it.isNullOrEmpty() }) || in <lambda>()
521 !commonWallpaperData.exploreActionUrl.isNullOrEmpty() in <lambda>()
549 if (settingsActivity.isNullOrEmpty()) { in <lambda>()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultWallpaperPreferences.kt230 if (attributions.isNullOrEmpty()) { in <lambda>()
290 if (!attributions.isNullOrEmpty()) { in <lambda>()
334 if (!attributions.isNullOrEmpty()) { in <lambda>()
448 if (attributions.isNullOrEmpty()) { in <lambda>()
507 if (!attributions.isNullOrEmpty()) { in <lambda>()
551 if (!attributions.isNullOrEmpty()) { in <lambda>()
/packages/apps/Settings/src/com/android/settings/deviceinfo/hardwareinfo/
DManufacturedYearPreferenceController.kt29 if (!year.isNullOrEmpty()) AVAILABLE else UNSUPPORTED_ON_DEVICE
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
DSimpleUploaderAsyncTask.java147 if (!Strings.isNullOrEmpty(bugReport.getAudioFileName())) { in upload()
151 if (!Strings.isNullOrEmpty(bugReport.getBugReportFileName())) { in upload()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/ecm/
DEnhancedConfirmationDialogActivity.kt78 require(!packageName.isNullOrEmpty()) { "EXTRA_PACKAGE_NAME cannot be null or empty" } in <lambda>()
79 require(!settingIdentifier.isNullOrEmpty()) { "EXTRA_SUBJECT cannot be null or empty" } in <lambda>()
/packages/apps/Settings/src/com/android/settings/applications/defaultapps/
DDefaultPrivateAutofillPreferenceController.kt50 return if (!flattenComponent.isNullOrEmpty()) { in <lambda>()

12345