Home
last modified time | relevance | path

Searched refs:CollectionUtils (Results 1 – 25 of 32) sorted by relevance

12

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DCollectionUtilsTests.java27 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/
DMoreKeySpec.java24 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/
DMediaOutputIndicatorSlice.java35 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/
DMediaOutputIndicatorSlice.java37 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/
DRequestRoleActivity.java36 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/
DMobileNetworkActivity.java38 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/
DCollectionUtils.java31 public final class CollectionUtils { class
32 private CollectionUtils() { in CollectionUtils() method in CollectionUtils
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/utils/
DCollectionUtils.java31 public final class CollectionUtils { class
33 private CollectionUtils() {} in CollectionUtils() method in CollectionUtils
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/actions/
DRestrictAppAction.java25 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/
DRestrictAppAction.java25 import com.android.internal.util.CollectionUtils;
64 if (CollectionUtils.isEmpty(appInfo.anomalyTypes)) { in handlePositiveAction()
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/
DExclusiveDefaultHolderMixin.java28 import com.android.packageinstaller.permission.utils.CollectionUtils;
49 return CollectionUtils.singletonOrEmpty(getDefaultHolder(role, resourceName, context)); in getDefaultHolders()
DSmsRoleBehavior.java28 import com.android.packageinstaller.permission.utils.CollectionUtils;
75 return CollectionUtils.firstOrNull(qualifyingPackageNames); in getFallbackHolder()
DHomeRoleBehavior.java36 import com.android.packageinstaller.permission.utils.CollectionUtils;
106 String packageName = CollectionUtils.firstOrNull(roleManager.getRoleHoldersAsUser( in preparePreferenceAsUser()
DPermissions.java39 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/
DDataUsageUtils.java31 import com.android.internal.util.CollectionUtils;
92 if (CollectionUtils.isEmpty(plans)) { in getPrimaryPlan()
/packages/apps/TV/src/com/android/tv/dvr/recorder/
DSeriesRecordingScheduler.java33 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/
DMobileNetworkFragment.java29 import com.android.internal.util.CollectionUtils;
107 if (info == null && !CollectionUtils.isEmpty( in onMobileNetworkUpdated()
DMobileNetworkUpdateManager.java32 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/
DMobileNetworkActivity.java41 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/
DDefaultAppShortcutPreferenceControllerBase.java28 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/
DDefaultAppShortcutPreferenceControllerBase.java28 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/
DBatteryTipUtils.java29 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/
DBatteryTipUtils.java29 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/
DWifiCallingSettings.java35 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/
DWifiCallingSettings.java36 import com.android.internal.util.CollectionUtils;
220 if (CollectionUtils.size(mSil) > 1) { in updateTitleForCurrentSub()

12