/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/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | NetworkRanker.java | 27 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()
|
D | QosCallbackTracker.java | 33 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()
|
D | PermissionMonitor.java | 32 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/ |
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/modules/Permission/service/java/com/android/permission/util/ |
D | CollectionUtils.java | 28 public class CollectionUtils { class 29 private CollectionUtils() {} in CollectionUtils() method in CollectionUtils
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | IpSecAlgorithmTest.java | 33 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/ |
D | CollectionUtils.java | 31 public final class CollectionUtils { class 32 private CollectionUtils() { in CollectionUtils() method in CollectionUtils
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/ |
D | CollectionUtils.java | 31 public final class CollectionUtils { class 33 private CollectionUtils() {} in CollectionUtils() method in CollectionUtils
|
/packages/modules/NetworkStack/src/com/android/networkstack/metrics/ |
D | DataStallDetectionStats.java | 27 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/ |
D | RequestRoleActivity.java | 36 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/ |
D | RestrictAppAction.java | 25 import com.android.internal.util.CollectionUtils; 64 if (CollectionUtils.isEmpty(appInfo.anomalyTypes)) { in handlePositiveAction()
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | DefaultAppShortcutPreferenceControllerBase.java | 26 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/ |
D | SmsRoleBehavior.java | 30 import com.android.permissioncontroller.permission.utils.CollectionUtils; 86 return CollectionUtils.firstOrNull(qualifyingPackageNames); in getFallbackHolder()
|
D | BrowserRoleBehavior.java | 33 import com.android.permissioncontroller.permission.utils.CollectionUtils; 78 return CollectionUtils.firstOrNull(defaultPackageNames); in getFallbackHolder()
|
D | HomeRoleBehavior.java | 36 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/ |
D | DataUsageUtils.java | 33 import com.android.internal.util.CollectionUtils; 110 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 | 34 import com.android.internal.util.CollectionUtils; 115 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/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | NetworkStatsBinderTest.java | 39 import com.android.internal.util.CollectionUtils; 87 final PackageInfo match = CollectionUtils.find(apps, in getFirstAppUidThat()
|
/packages/apps/Settings/src/com/android/settings/development/storage/ |
D | BlobInfoListView.java | 38 import com.android.internal.util.CollectionUtils; 95 if (CollectionUtils.isEmpty(blob.getLeases())) { in onListItemClick()
|
D | LeaseInfoListView.java | 44 import com.android.internal.util.CollectionUtils; 150 if (CollectionUtils.isEmpty(leases)) {
|
/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/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsSubscriptionsMonitorTest.java | 45 import com.android.internal.util.CollectionUtils; 123 final RatTypeListener match = CollectionUtils in setRatTypeForSub() 243 final RatTypeListener listener = CollectionUtils in test5g()
|