| /frameworks/base/core/tests/utiltests/src/com/android/internal/util/ | 
| ArrayUtilsTest.java | 25  * Tests for {@link ArrayUtils} 34         assertTrue(ArrayUtils.contains(new Object[] { A, B, C }, A));
 35         assertTrue(ArrayUtils.contains(new Object[] { A, B, C }, B));
 36         assertTrue(ArrayUtils.contains(new Object[] { A, B, C }, C));
 37         assertTrue(ArrayUtils.contains(new Object[] { A, null, C }, null));
 39         assertFalse(ArrayUtils.contains(new Object[] { A, B, C }, null));
 40         assertFalse(ArrayUtils.contains(new Object[] { }, null));
 41         assertFalse(ArrayUtils.contains(new Object[] { null }, A));
 50         assertEquals(0, ArrayUtils.indexOf(new Object[] { A, B, C }, A));
 51         assertEquals(1, ArrayUtils.indexOf(new Object[] { A, B, C }, B))
 [all...]
 | 
| /external/conscrypt/src/main/java/org/conscrypt/util/ | 
| ArrayUtils.java | 22 public final class ArrayUtils { 23     private ArrayUtils() {
 
 | 
| /external/mockito/src/org/mockito/internal/util/collections/ | 
| ArrayUtils.java | 8 public class ArrayUtils { 
 | 
| /frameworks/base/graphics/java/android/graphics/ | 
| TemporaryBuffer.java | 19 import com.android.internal.util.ArrayUtils; 34             buf = ArrayUtils.newUnpaddedCharArray(len);
 
 | 
| /packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/utils/ | 
| ArrayUtils.java | 21 public final class ArrayUtils { 22     private ArrayUtils() { /* cannot be instantiated */ }
 
 | 
| /frameworks/base/keystore/java/android/security/keystore/ | 
| KeyInfo.java | 114                 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(encryptionPaddings)); 116                 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(signaturePaddings));
 117         mDigests = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(digests));
 118         mBlockModes = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(blockModes));
 206         return ArrayUtils.cloneIfNotEmpty(mBlockModes);
 218         return ArrayUtils.cloneIfNotEmpty(mEncryptionPaddings)
 [all...]
 | 
| KeyProtection.java | 248                 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(encryptionPaddings)); 250                 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(signaturePaddings));
 251         mDigests = ArrayUtils.cloneIfNotEmpty(digests);
 252         mBlockModes = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(blockModes));
 309         return ArrayUtils.cloneIfNotEmpty(mEncryptionPaddings);
 321         return ArrayUtils.cloneIfNotEmpty(mSignaturePaddings);
 339         return ArrayUtils.cloneIfNotEmpty(mDigests)
 [all...]
 | 
| AndroidKeyStorePublicKey.java | 33         mEncoded = ArrayUtils.cloneIfNotEmpty(x509EncodedForm); 43         return ArrayUtils.cloneIfNotEmpty(mEncoded);
 
 | 
| KeyGenParameterSpec.java | 326         mDigests = ArrayUtils.cloneIfNotEmpty(digests); 328                 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(encryptionPaddings));
 329         mSignaturePaddings = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(signaturePaddings));
 330         mBlockModes = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(blockModes));
 465         return ArrayUtils.cloneIfNotEmpty(mDigests);
 489         return ArrayUtils.cloneIfNotEmpty(mEncryptionPaddings);
 501         return ArrayUtils.cloneIfNotEmpty(mSignaturePaddings)
 [all...]
 | 
| ArrayUtils.java | 24 public abstract class ArrayUtils { 25     private ArrayUtils() {}
 
 | 
| KeyStoreCryptoOperationChunkedStreamer.java | 106                 chunk = ArrayUtils.concat(mBuffered, mBufferedOffset, mBufferedLength, 119                     chunk = ArrayUtils.concat(mBuffered, mBufferedOffset, mBufferedLength,
 218         output = ArrayUtils.concat(output, flush());
 228         return ArrayUtils.concat(output, opResult.output);
 240             byte[] chunk = ArrayUtils.subarray(mBuffered, mBufferedOffset, mBufferedLength);
 
 | 
| /frameworks/base/core/tests/coretests/src/com/android/internal/util/ | 
| ArrayUtilsTest.java | 41         assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull)); 44         assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull));
 47         assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull));
 52         assertEquals(1, ArrayUtils.unstableRemoveIf(collection, isNull));
 56         assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull));
 62         assertEquals(1, ArrayUtils.unstableRemoveIf(collection, isNull));
 67         assertEquals(1, ArrayUtils.unstableRemoveIf(collection, isNull));
 72         assertEquals(2, ArrayUtils.unstableRemoveIf(collection, isNull));
 76         assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull));
 83         assertEquals(1, ArrayUtils.unstableRemoveIf(collection, isNull))
 [all...]
 | 
| /frameworks/base/services/core/java/com/android/server/pm/ | 
| PackageKeySetData.java | 21 import com.android.internal.util.ArrayUtils; 40         mUpgradeKeySets = ArrayUtils.cloneOrNull(original.mUpgradeKeySets);
 61             mUpgradeKeySets = ArrayUtils.appendLong(mUpgradeKeySets, ks);
 74         mUpgradeKeySets = ArrayUtils.appendLong(mUpgradeKeySets, ks);
 
 | 
| /frameworks/base/core/java/android/content/pm/ | 
| PackageUserState.java | 32 import com.android.internal.util.ArrayUtils; 75         disabledComponents = ArrayUtils.cloneOrNull(o.disabledComponents);
 76         enabledComponents = ArrayUtils.cloneOrNull(o.enabledComponents);
 141         if (ArrayUtils.contains(this.enabledComponents, componentInfo.name)) {
 144         if (ArrayUtils.contains(this.disabledComponents, componentInfo.name)) {
 
 | 
| /frameworks/base/core/java/android/util/ | 
| LongArray.java | 19 import com.android.internal.util.ArrayUtils; 47             mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity);
 100             final long[] newValues = ArrayUtils.newUnpaddedLongArray(newCapacity);
 
 | 
| IntArray.java | 19 import com.android.internal.util.ArrayUtils; 49             mValues = ArrayUtils.newUnpaddedIntArray(initialCapacity);
 120             final int[] newValues = ArrayUtils.newUnpaddedIntArray(newCapacity);
 
 | 
| LongSparseLongArray.java | 19 import com.android.internal.util.ArrayUtils; 71             mKeys = ArrayUtils.newUnpaddedLongArray(initialCapacity);
 
 | 
| SparseLongArray.java | 19 import com.android.internal.util.ArrayUtils; 69             mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity);
 
 | 
| /frameworks/base/core/java/com/android/internal/util/ | 
| GrowingArrayUtils.java | 45             T[] newArray = ArrayUtils.newUnpaddedArray( 61             int[] newArray = ArrayUtils.newUnpaddedIntArray(growSize(currentSize));
 76             long[] newArray = ArrayUtils.newUnpaddedLongArray(growSize(currentSize));
 91             boolean[] newArray = ArrayUtils.newUnpaddedBooleanArray(growSize(currentSize));
 106             float[] newArray = ArrayUtils.newUnpaddedFloatArray(growSize(currentSize));
 135         T[] newArray = ArrayUtils.newUnpaddedArray((Class<T>)array.getClass().getComponentType(),
 155         int[] newArray = ArrayUtils.newUnpaddedIntArray(growSize(currentSize));
 174         long[] newArray = ArrayUtils.newUnpaddedLongArray(growSize(currentSize));
 193         boolean[] newArray = ArrayUtils.newUnpaddedBooleanArray(growSize(currentSize));
 
 | 
| /external/mockito/src/org/mockito/internal/invocation/ | 
| ArgumentsProcessor.java | 10 import org.mockito.internal.util.collections.ArrayUtils; 22         if (!isVarArgs || new ArrayUtils().isEmpty(args) || args[args.length - 1] != null && !args[args.length - 1].getClass().isArray()) {
 
 | 
| /frameworks/base/core/java/android/hardware/camera2/utils/ | 
| ArrayUtils.java | 28 public class ArrayUtils { 30     private static final String TAG = "ArrayUtils";
 181     private ArrayUtils() {
 
 | 
| /frameworks/base/core/java/android/view/textservice/ | 
| SuggestionsInfo.java | 19 import com.android.internal.util.ArrayUtils; 28     private static final String[] EMPTY = ArrayUtils.emptyArray(String.class);
 
 | 
| /external/ceres-solver/internal/ceres/ | 
| array_utils_test.cc | 41 TEST(ArrayUtils, IsArrayValid) { 58 TEST(ArrayUtils, FindInvalidIndex) {
 
 | 
| /frameworks/opt/telephony/src/java/com/android/internal/telephony/ | 
| CarrierSignalAgent.java | 27 import com.android.internal.util.ArrayUtils; 106             if(!ArrayUtils.isEmpty(getCarrierSignalReceiverName(intent))) {
 
 | 
| /packages/providers/DownloadProvider/src/com/android/providers/downloads/ | 
| RealSystemFacade.java | 37 import com.android.internal.util.ArrayUtils; 89         if (ArrayUtils.isEmpty(packageNames)) {
 
 |