Home
last modified time | relevance | path

Searched refs:CollectionUtils (Results 1 – 25 of 45) 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/modules/Connectivity/service/src/com/android/server/connectivity/
DNetworkRanker.java27 import static com.android.net.module.util.CollectionUtils.filter;
40 import com.android.net.module.util.CollectionUtils;
132 if (!CollectionUtils.any(accepted, n -> n.getScore().hasPolicy(POLICY_YIELD_TO_BAD_WIFI))) { in applyYieldToBadWifiPolicy()
136 if (!CollectionUtils.any(rejected, n -> isBadWiFi(n))) { in applyYieldToBadWifiPolicy()
140 if (CollectionUtils.all(accepted, n -> n.getScore().hasPolicy(POLICY_YIELD_TO_BAD_WIFI))) { in applyYieldToBadWifiPolicy()
DQosCallbackTracker.java33 import com.android.net.module.util.CollectionUtils;
121 if (CollectionUtils.any(mConnections, c -> c.getBinder().equals(binder))) { in handleRegisterCallbackInternal()
161 CollectionUtils.indexOf(mConnections, c -> c.getBinder().equals(binder)); in handleUnregisterCallback()
266 final int acIndex = CollectionUtils.indexOf(mConnections, in runOnAgentConnection()
DPermissionMonitor.java32 import static com.android.net.module.util.CollectionUtils.toIntArray;
64 import com.android.net.module.util.CollectionUtils;
321 final int index = CollectionUtils.indexOf(app.requestedPermissions, permission); in hasPermission()
503 if (!CollectionUtils.isEmpty(packages)) { in highestUidNetworkPermission()
837 if (CollectionUtils.isEmpty(pkgList)) { in onExternalApplicationsAvailable()
/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/modules/Permission/service/java/com/android/permission/util/
DCollectionUtils.java28 public class CollectionUtils { class
29 private CollectionUtils() {} in CollectionUtils() method in CollectionUtils
/packages/modules/Connectivity/tests/unit/java/android/net/
DIpSecAlgorithmTest.java33 import com.android.internal.util.CollectionUtils;
197 return CollectionUtils.filter( in getMandatoryAlgos()
203 return CollectionUtils.filter( in getOptionalAlgos()
/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/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DCollectionUtils.java31 public final class CollectionUtils { class
33 private CollectionUtils() {} in CollectionUtils() method in CollectionUtils
/packages/modules/NetworkStack/src/com/android/networkstack/metrics/
DDataStallDetectionStats.java27 import com.android.net.module.util.CollectionUtils;
302 CollectionUtils.toIntArray(mDnsReturnCode), in build()
303 CollectionUtils.toLongArray(mDnsTimeStamp), in build()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/
DRequestRoleActivity.java36 import com.android.permissioncontroller.permission.utils.CollectionUtils;
214 String holderPackageName = CollectionUtils.firstOrNull(roleManager.getRoleHolders( in handleChangeDefaultDialerDialogCompatibility()
266 String holderPackageName = CollectionUtils.firstOrNull(roleManager.getRoleHolders( in handleSmsDefaultDialogCompatibility()
/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/apps/Settings/src/com/android/settings/applications/appinfo/
DDefaultAppShortcutPreferenceControllerBase.java26 import com.android.internal.util.CollectionUtils;
119 final String packageName = CollectionUtils.firstOrNull(mRoleManager.getRoleHolders( in isDefaultApp()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/
DSmsRoleBehavior.java30 import com.android.permissioncontroller.permission.utils.CollectionUtils;
86 return CollectionUtils.firstOrNull(qualifyingPackageNames); in getFallbackHolder()
DBrowserRoleBehavior.java33 import com.android.permissioncontroller.permission.utils.CollectionUtils;
78 return CollectionUtils.firstOrNull(defaultPackageNames); in getFallbackHolder()
DHomeRoleBehavior.java36 import com.android.permissioncontroller.permission.utils.CollectionUtils;
111 String packageName = CollectionUtils.firstOrNull(roleManager.getRoleHoldersAsUser( in preparePreferenceAsUser()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataUsageUtils.java33 import com.android.internal.util.CollectionUtils;
110 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.java34 import com.android.internal.util.CollectionUtils;
115 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/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkStatsBinderTest.java39 import com.android.internal.util.CollectionUtils;
87 final PackageInfo match = CollectionUtils.find(apps, in getFirstAppUidThat()
/packages/apps/Settings/src/com/android/settings/development/storage/
DBlobInfoListView.java38 import com.android.internal.util.CollectionUtils;
95 if (CollectionUtils.isEmpty(blob.getLeases())) { in onListItemClick()
DLeaseInfoListView.java44 import com.android.internal.util.CollectionUtils;
150 if (CollectionUtils.isEmpty(leases)) {
/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/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsSubscriptionsMonitorTest.java45 import com.android.internal.util.CollectionUtils;
123 final RatTypeListener match = CollectionUtils in setRatTypeForSub()
243 final RatTypeListener listener = CollectionUtils in test5g()

12