Home
last modified time | relevance | path

Searched refs:ArrayUtils (Results 1 – 25 of 93) sorted by relevance

1234

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/util/
DArrayUtilsTest.java38 assertThat(ArrayUtils.equals(array1, array2, 2)).isTrue(); in testEquals()
39 assertThat(ArrayUtils.equals(array1, array2, 3)).isFalse(); in testEquals()
45 assertThat(ArrayUtils.equals(array1, array1, 2)).isTrue(); in testEqualsSameArray()
51 assertThat(ArrayUtils.equals(array1, null, 2)).isFalse(); in testEqualsNull()
52 assertThat(ArrayUtils.equals(null, array1, 2)).isFalse(); in testEqualsNull()
59 assertThat(ArrayUtils.equals(array1, array2, 4)).isFalse(); in testEqualsLengthTooSmall()
66 () -> ArrayUtils.equals(array1, array1, -1)); in testEqualsNegativeLength()
71 Integer[] array1 = ArrayUtils.emptyArray(Integer.class); in testEmptyArray()
73 Integer[] array2 = ArrayUtils.emptyArray(Integer.class); in testEmptyArray()
74 Float[] array3 = ArrayUtils.emptyArray(Float.class); in testEmptyArray()
[all …]
/packages/services/Car/car-lib/src/com/android/car/internal/util/
DLongArray.java59 mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongArray()
110 ArrayUtils.checkBounds(mSize, index); in add()
141 final long[] newValues = ArrayUtils.newUnpaddedLongArray(newCapacity); in ensureCapacity()
170 ArrayUtils.checkBounds(mSize, index); in get()
178 ArrayUtils.checkBounds(mSize, index); in set()
200 ArrayUtils.checkBounds(mSize, index); in remove()
DIntArray.java106 ArrayUtils.checkBounds(mSize, index); in add()
190 ArrayUtils.checkBounds(mSize, index); in get()
198 ArrayUtils.checkBounds(mSize, index); in set()
220 ArrayUtils.checkBounds(mSize, index); in remove()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowRestrictedLockUtilsInternal.java22 import com.android.internal.util.ArrayUtils;
56 if (ArrayUtils.contains(sRestrictedPkgs, packageName)) { in checkIfMeteredDataRestricted()
72 if (ArrayUtils.contains(sDisabledTypes, accountType)) { in checkIfAccountManagementDisabled()
/packages/services/Car/car-lib/src/android/car/user/
DUserIdentificationAssociationResponse.java28 import com.android.car.internal.util.ArrayUtils;
109 Preconditions.checkArgument(!ArrayUtils.isEmpty(values), "must have at least one value"); in forSuccess()
121 Preconditions.checkArgument(!ArrayUtils.isEmpty(values), "must have at least one value"); in forSuccess()
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/common/ble/testing/
DFastPairTestData.java19 import com.android.server.nearby.util.ArrayUtils;
52 modelId.length == 3 ? modelId : ArrayUtils.concatByteArrays(new byte[] {header}, in newFastPairRecord()
/packages/modules/Permission/service/java/com/android/permission/util/
DArrayUtils.java26 public final class ArrayUtils { class
27 private ArrayUtils() {} in ArrayUtils() method in ArrayUtils
/packages/modules/Uwb/service/java/com/android/server/uwb/util/
DArrayUtils.java27 public class ArrayUtils { class
28 private ArrayUtils() { /* cannot be instantiated */ } in ArrayUtils() method in ArrayUtils
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DArrayUtils.java25 public final class ArrayUtils { class
26 private ArrayUtils() { /* cannot be instantiated */ } in ArrayUtils() method in ArrayUtils
/packages/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/
DWifiControlPreferenceController.java26 import com.android.internal.util.ArrayUtils;
46 return !ArrayUtils.contains(
/packages/apps/Settings/src/com/android/settings/deviceinfo/legal/
DModuleLicensesPreferenceController.java26 import com.android.internal.util.ArrayUtils;
67 return ArrayUtils.contains( in test()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryUtils.java45 import com.android.internal.util.ArrayUtils;
284 return ArrayUtils.isEmpty(packageNames) ? null : packageNames[0]; in getPackageName()
497 if (ArrayUtils.isEmpty(packageNames)) { in isPreOApp()
516 if (ArrayUtils.isEmpty(packageNames)) { in shouldHideAnomaly()
569 if (ArrayUtils.contains(packageNames, resolveInfo.activityInfo.packageName)) { in hasLauncherEntry()
/packages/modules/Uwb/service/java/com/android/server/uwb/discovery/info/
DChannelPowerInfo.java21 import com.android.server.uwb.util.ArrayUtils;
51 if (ArrayUtils.isEmpty(bytes)) { in fromBytes()
DVendorSpecificData.java24 import com.android.server.uwb.util.ArrayUtils;
57 if (ArrayUtils.isEmpty(bytes)) { in fromBytes()
DFiraProfileSupportInfo.java23 import com.android.server.uwb.util.ArrayUtils;
88 if (ArrayUtils.isEmpty(bytes)) { in fromBytes()
/packages/apps/Car/Settings/src/com/android/car/settings/location/
DLocationRecentAccessUtil.java25 import com.android.internal.util.ArrayUtils;
49 if (ArrayUtils.contains( in createAppPreference()
/packages/apps/Nfc/tests/unit/src/com/android/nfc/
DNfcFeatureFlagTest.java32 import com.android.internal.util.ArrayUtils;
71 if (TextUtils.isEmpty(sku) || !ArrayUtils.contains(skuList, sku)) { in testIsSecureNfcSupported()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DArrayUtils.java27 public class ArrayUtils { class
28 private ArrayUtils() { /* cannot be instantiated */ } in ArrayUtils() method in ArrayUtils
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothUnbondedDevicesPreferenceController.java28 import com.android.internal.util.ArrayUtils;
97 && ArrayUtils.contains( in matches()
/packages/apps/Car/Launcher/tests/src/com/android/car/carlauncher/homescreen/audio/
DInCallModelTest.java40 import com.android.internal.util.ArrayUtils;
210 assertTrue(ArrayUtils.contains(mInCallModel.getMuteButtonDrawableState(), in updateMuteButtonIconState_outOfSync_updatesIconState()
220 assertFalse(ArrayUtils.contains(mInCallModel.getMuteButtonDrawableState(), in updateMuteButtonIconState_outOfSync_updatesIconState()
/packages/apps/Settings/src/com/android/settings/wifi/
DAppStateChangeWifiStateBridge.java23 import com.android.internal.util.ArrayUtils;
95 if (ArrayUtils.contains(requestedPermissions, PM_NETWORK_SETTINGS)) {
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/homescreen/audio/
DInCallModel.java54 import com.android.internal.util.ArrayUtils;
252 boolean selectedStateExists = ArrayUtils.contains(iconState, in updateMuteButtonIconState()
261 iconState = ArrayUtils.appendInt(iconState, in updateMuteButtonIconState()
264 iconState = ArrayUtils.removeInt(iconState, in updateMuteButtonIconState()
/packages/apps/Settings/src/com/android/settings/datausage/lib/
DDataUsageLib.java29 import com.android.internal.util.ArrayUtils;
70 if (ArrayUtils.isEmpty(mergedSubscriberIds)) { in getNormalizedMobileTemplate()
/packages/modules/Uwb/service/java/com/android/server/uwb/discovery/ble/
DDiscoveryAdvertisement.java27 import com.android.server.uwb.util.ArrayUtils;
106 if (ArrayUtils.isEmpty(serviceData)) { in fromBytes()
208 if (!ArrayUtils.isEmpty(manufacturerSpecificData)) { in fromBytes()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/
DAppOpPermissions.java27 import com.android.permissioncontroller.permission.utils.ArrayUtils;
55 if (!ArrayUtils.contains(packageInfo.requestedPermissions, appOpPermission)) { in grant()

1234