/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
D | CollectionUtilsTests.java | 27 import com.android.inputmethod.latin.common.CollectionUtils; 54 CollectionUtils.arrayAsList(array, -1, 1); in testArrayAsListFailure() 61 CollectionUtils.arrayAsList(array, 1, -1); in testArrayAsListFailure() 68 CollectionUtils.arrayAsList(array, 1, 3); in testArrayAsListFailure() 82 assertEquals(empty, CollectionUtils.arrayAsList(new String[] {}, 0, 0)); in testArrayAsList() 84 assertEquals(empty, CollectionUtils.arrayAsList(array, 0, 0)); in testArrayAsList() 85 assertEquals(empty, CollectionUtils.arrayAsList(array, 1, 1)); in testArrayAsList() 86 assertEquals(empty, CollectionUtils.arrayAsList(array, array.length, array.length)); in testArrayAsList() 88 assertEquals(expected123, CollectionUtils.arrayAsList(array, 1, 4)); in testArrayAsList() 97 assertTrue(CollectionUtils.isNullOrEmpty((List<String>) null)); in testIsNullOrEmpty() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | MoreKeySpec.java | 24 import com.android.inputmethod.latin.common.CollectionUtils; 245 out = CollectionUtils.arrayAsList(array, 0, i); in filterOutEmptyString() 280 out = CollectionUtils.arrayAsList(moreKeys, 0, moreKeyIndex); in insertAdditionalMoreKeys() 292 out = CollectionUtils.arrayAsList(additionalMoreKeys, additionalIndex, additionalCount); in insertAdditionalMoreKeys() 299 out = CollectionUtils.arrayAsList(moreKeys, 0, moreKeysCount); in insertAdditionalMoreKeys()
|
/packages/apps/Settings/src/com/android/settings/media/ |
D | MediaOutputIndicatorSlice.java | 35 import com.android.internal.util.CollectionUtils; 123 && (!CollectionUtils.isEmpty(getConnectedA2dpDevices()) in isVisible() 124 || !CollectionUtils.isEmpty(getConnectedHearingAidDevices())); in isVisible()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/media/ |
D | MediaOutputIndicatorSlice.java | 37 import com.android.internal.util.CollectionUtils; 117 return !CollectionUtils.isEmpty(getConnectableA2dpDevices()) in isVisible() 118 || !CollectionUtils.isEmpty(getConnectableHearingAidDevices()); in isVisible()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/role/ui/ |
D | RequestRoleActivity.java | 36 import com.android.packageinstaller.permission.utils.CollectionUtils; 214 String holderPackageName = CollectionUtils.firstOrNull(roleManager.getRoleHolders( in handleChangeDefaultDialerDialogCompatibility() 266 String holderPackageName = CollectionUtils.firstOrNull(roleManager.getRoleHolders( in handleSmsDefaultDialogCompatibility()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/ |
D | MobileNetworkActivity.java | 38 import com.android.internal.util.CollectionUtils; 176 if (CollectionUtils.isEmpty(mSubscriptionInfos)) { in getSubscription() 198 if (CollectionUtils.size(mSubscriptionInfos) <= 1) { in updateBottomNavigationView()
|
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/ |
D | CollectionUtils.java | 31 public final class CollectionUtils { class 32 private CollectionUtils() { in CollectionUtils() method in CollectionUtils
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/utils/ |
D | CollectionUtils.java | 31 public final class CollectionUtils { class 33 private CollectionUtils() {} in CollectionUtils() method in CollectionUtils
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/actions/ |
D | RestrictAppAction.java | 25 import com.android.internal.util.CollectionUtils; 64 if (CollectionUtils.isEmpty(appInfo.anomalyTypes)) { in handlePositiveAction()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/actions/ |
D | RestrictAppAction.java | 25 import com.android.internal.util.CollectionUtils; 64 if (CollectionUtils.isEmpty(appInfo.anomalyTypes)) { in handlePositiveAction()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/ |
D | ExclusiveDefaultHolderMixin.java | 28 import com.android.packageinstaller.permission.utils.CollectionUtils; 49 return CollectionUtils.singletonOrEmpty(getDefaultHolder(role, resourceName, context)); in getDefaultHolders()
|
D | SmsRoleBehavior.java | 28 import com.android.packageinstaller.permission.utils.CollectionUtils; 75 return CollectionUtils.firstOrNull(qualifyingPackageNames); in getFallbackHolder()
|
D | HomeRoleBehavior.java | 36 import com.android.packageinstaller.permission.utils.CollectionUtils; 106 String packageName = CollectionUtils.firstOrNull(roleManager.getRoleHoldersAsUser( in preparePreferenceAsUser()
|
D | Permissions.java | 39 import com.android.packageinstaller.permission.utils.CollectionUtils; 112 CollectionUtils.retainAll(permissionsToGrant, packageInfo.requestedPermissions); in grant() 129 CollectionUtils.retainAll(permissionsToGrant, in grant() 388 CollectionUtils.retainAll(permissionsToRevoke, packageInfo.requestedPermissions); in revoke()
|
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/ |
D | DataUsageUtils.java | 31 import com.android.internal.util.CollectionUtils; 92 if (CollectionUtils.isEmpty(plans)) { in getPrimaryPlan()
|
/packages/apps/TV/src/com/android/tv/dvr/recorder/ |
D | SeriesRecordingScheduler.java | 33 import com.android.tv.common.util.CollectionUtils; 115 if (CollectionUtils.subtract( 341 if (CollectionUtils.containsAny( in updateSchedules() 350 CollectionUtils.union( in updateSchedules()
|
/packages/apps/Car/Settings/src/com/android/car/settings/network/ |
D | MobileNetworkFragment.java | 29 import com.android.internal.util.CollectionUtils; 107 if (info == null && !CollectionUtils.isEmpty( in onMobileNetworkUpdated()
|
D | MobileNetworkUpdateManager.java | 32 import com.android.internal.util.CollectionUtils; 155 return CollectionUtils.isEmpty(mSubscriptionInfos) ? null : mSubscriptionInfos.get(0); in getSubscription()
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | MobileNetworkActivity.java | 41 import com.android.internal.util.CollectionUtils; 211 if (CollectionUtils.isEmpty(mSubscriptionInfos)) { in getSubscription() 250 if (CollectionUtils.size(mSubscriptionInfos) <= 1) { in updateBottomNavigationView()
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | DefaultAppShortcutPreferenceControllerBase.java | 28 import com.android.internal.util.CollectionUtils; 123 final String packageName = CollectionUtils.firstOrNull(mRoleManager.getRoleHolders( in isDefaultApp()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/ |
D | DefaultAppShortcutPreferenceControllerBase.java | 28 import com.android.internal.util.CollectionUtils; 123 final String packageName = CollectionUtils.firstOrNull(mRoleManager.getRoleHolders( in isDefaultApp()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/ |
D | BatteryTipUtils.java | 29 import com.android.internal.util.CollectionUtils; 65 for (int i = 0, size = CollectionUtils.size(packageOpsList); i < size; i++) { in getRestrictedAppsList()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/ |
D | BatteryTipUtils.java | 29 import com.android.internal.util.CollectionUtils; 65 for (int i = 0, size = CollectionUtils.size(packageOpsList); i < size; i++) { in getRestrictedAppsList()
|
/packages/apps/Settings/src/com/android/settings/wifi/calling/ |
D | WifiCallingSettings.java | 35 import com.android.internal.util.CollectionUtils; 215 if (CollectionUtils.size(mSil) > 1) { in updateTitleForCurrentSub()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/calling/ |
D | WifiCallingSettings.java | 36 import com.android.internal.util.CollectionUtils; 220 if (CollectionUtils.size(mSil) > 1) { in updateTitleForCurrentSub()
|