Home
last modified time | relevance | path

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

12345

/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DArrayUtilsTest.java34 assertTrue(ArrayUtils.contains(new Object[] { A, B, C }, A)); in testContains()
35 assertTrue(ArrayUtils.contains(new Object[] { A, B, C }, B)); in testContains()
36 assertTrue(ArrayUtils.contains(new Object[] { A, B, C }, C)); in testContains()
37 assertTrue(ArrayUtils.contains(new Object[] { A, null, C }, null)); in testContains()
39 assertFalse(ArrayUtils.contains(new Object[] { A, B, C }, null)); in testContains()
40 assertFalse(ArrayUtils.contains(new Object[] { }, null)); in testContains()
41 assertFalse(ArrayUtils.contains(new Object[] { null }, A)); in testContains()
50 assertEquals(0, ArrayUtils.indexOf(new Object[] { A, B, C }, A)); in testIndexOf()
51 assertEquals(1, ArrayUtils.indexOf(new Object[] { A, B, C }, B)); in testIndexOf()
52 assertEquals(2, ArrayUtils.indexOf(new Object[] { A, B, C }, C)); in testIndexOf()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DArrayUtilsTest.java41 assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull)); in testUnstableRemoveIf()
44 assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull)); in testUnstableRemoveIf()
47 assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull)); in testUnstableRemoveIf()
52 assertEquals(1, ArrayUtils.unstableRemoveIf(collection, isNull)); in testUnstableRemoveIf()
56 assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull)); in testUnstableRemoveIf()
62 assertEquals(1, ArrayUtils.unstableRemoveIf(collection, isNull)); in testUnstableRemoveIf()
67 assertEquals(1, ArrayUtils.unstableRemoveIf(collection, isNull)); in testUnstableRemoveIf()
72 assertEquals(2, ArrayUtils.unstableRemoveIf(collection, isNull)); in testUnstableRemoveIf()
76 assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull)); in testUnstableRemoveIf()
83 assertEquals(1, ArrayUtils.unstableRemoveIf(collection, isNull)); in testUnstableRemoveIf()
[all …]
/frameworks/base/keystore/java/android/security/keystore/
DKeyInfo.java114 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(encryptionPaddings)); in KeyInfo()
116 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(signaturePaddings)); in KeyInfo()
117 mDigests = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(digests)); in KeyInfo()
118 mBlockModes = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(blockModes)); in KeyInfo()
206 return ArrayUtils.cloneIfNotEmpty(mBlockModes); in getBlockModes()
218 return ArrayUtils.cloneIfNotEmpty(mEncryptionPaddings); in getEncryptionPaddings()
230 return ArrayUtils.cloneIfNotEmpty(mSignaturePaddings); in getSignaturePaddings()
241 return ArrayUtils.cloneIfNotEmpty(mDigests); in getDigests()
DKeyProtection.java248 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(encryptionPaddings)); in KeyProtection()
250 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(signaturePaddings)); in KeyProtection()
251 mDigests = ArrayUtils.cloneIfNotEmpty(digests); in KeyProtection()
252 mBlockModes = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(blockModes)); in KeyProtection()
309 return ArrayUtils.cloneIfNotEmpty(mEncryptionPaddings); in getEncryptionPaddings()
321 return ArrayUtils.cloneIfNotEmpty(mSignaturePaddings); in getSignaturePaddings()
339 return ArrayUtils.cloneIfNotEmpty(mDigests); in getDigests()
361 return ArrayUtils.cloneIfNotEmpty(mBlockModes); in getBlockModes()
544 mEncryptionPaddings = ArrayUtils.cloneIfNotEmpty(paddings); in setEncryptionPaddings()
560 mSignaturePaddings = ArrayUtils.cloneIfNotEmpty(paddings); in setSignaturePaddings()
[all …]
DKeyGenParameterSpec.java326 mDigests = ArrayUtils.cloneIfNotEmpty(digests); in KeyGenParameterSpec()
328 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(encryptionPaddings)); in KeyGenParameterSpec()
329 mSignaturePaddings = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(signaturePaddings)); in KeyGenParameterSpec()
330 mBlockModes = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(blockModes)); in KeyGenParameterSpec()
465 return ArrayUtils.cloneIfNotEmpty(mDigests); in getDigests()
489 return ArrayUtils.cloneIfNotEmpty(mEncryptionPaddings); in getEncryptionPaddings()
501 return ArrayUtils.cloneIfNotEmpty(mSignaturePaddings); in getSignaturePaddings()
513 return ArrayUtils.cloneIfNotEmpty(mBlockModes); in getBlockModes()
865 mDigests = ArrayUtils.cloneIfNotEmpty(digests); in setDigests()
889 mEncryptionPaddings = ArrayUtils.cloneIfNotEmpty(paddings); in setEncryptionPaddings()
[all …]
DKeyStoreCryptoOperationChunkedStreamer.java106 chunk = ArrayUtils.concat(mBuffered, mBufferedOffset, mBufferedLength, in update()
119 chunk = ArrayUtils.concat(mBuffered, mBufferedOffset, mBufferedLength, in update()
218 output = ArrayUtils.concat(output, flush()); in doFinal()
228 return ArrayUtils.concat(output, opResult.output); in doFinal()
240 byte[] chunk = ArrayUtils.subarray(mBuffered, mBufferedOffset, mBufferedLength); in flush()
DAndroidKeyStorePublicKey.java33 mEncoded = ArrayUtils.cloneIfNotEmpty(x509EncodedForm); in AndroidKeyStorePublicKey()
43 return ArrayUtils.cloneIfNotEmpty(mEncoded); in getEncoded()
DArrayUtils.java24 public abstract class ArrayUtils { class
25 private ArrayUtils() {} in ArrayUtils() method in ArrayUtils
/frameworks/base/core/java/com/android/internal/util/
DGrowingArrayUtils.java45 T[] newArray = ArrayUtils.newUnpaddedArray( in append()
61 int[] newArray = ArrayUtils.newUnpaddedIntArray(growSize(currentSize)); in append()
76 long[] newArray = ArrayUtils.newUnpaddedLongArray(growSize(currentSize)); in append()
91 boolean[] newArray = ArrayUtils.newUnpaddedBooleanArray(growSize(currentSize)); in append()
106 float[] newArray = ArrayUtils.newUnpaddedFloatArray(growSize(currentSize)); in append()
135 T[] newArray = ArrayUtils.newUnpaddedArray((Class<T>)array.getClass().getComponentType(), in insert()
155 int[] newArray = ArrayUtils.newUnpaddedIntArray(growSize(currentSize)); in insert()
174 long[] newArray = ArrayUtils.newUnpaddedLongArray(growSize(currentSize)); in insert()
193 boolean[] newArray = ArrayUtils.newUnpaddedBooleanArray(growSize(currentSize)); in insert()
/frameworks/base/core/java/android/content/pm/
DPackageUserState.java32 import com.android.internal.util.ArrayUtils;
75 disabledComponents = ArrayUtils.cloneOrNull(o.disabledComponents); in PackageUserState()
76 enabledComponents = ArrayUtils.cloneOrNull(o.enabledComponents); in PackageUserState()
141 if (ArrayUtils.contains(this.enabledComponents, componentInfo.name)) { in isEnabled()
144 if (ArrayUtils.contains(this.disabledComponents, componentInfo.name)) { in isEnabled()
DSignature.java22 import com.android.internal.util.ArrayUtils;
254 return (a.length == b.length) && ArrayUtils.containsAll(a, b) in areExactMatch()
255 && ArrayUtils.containsAll(b, a); in areExactMatch()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageKeySetData.java21 import com.android.internal.util.ArrayUtils;
40 mUpgradeKeySets = ArrayUtils.cloneOrNull(original.mUpgradeKeySets); in PackageKeySetData()
61 mUpgradeKeySets = ArrayUtils.appendLong(mUpgradeKeySets, ks); in addUpgradeKeySet()
74 mUpgradeKeySets = ArrayUtils.appendLong(mUpgradeKeySets, ks); in addUpgradeKeySetById()
/frameworks/base/core/java/android/util/
DLongArray.java19 import com.android.internal.util.ArrayUtils;
47 mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongArray()
100 final long[] newValues = ArrayUtils.newUnpaddedLongArray(newCapacity); in ensureCapacity()
DIntArray.java19 import com.android.internal.util.ArrayUtils;
49 mValues = ArrayUtils.newUnpaddedIntArray(initialCapacity); in IntArray()
120 final int[] newValues = ArrayUtils.newUnpaddedIntArray(newCapacity); in ensureCapacity()
DLongSparseArray.java19 import com.android.internal.util.ArrayUtils;
79 mKeys = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongSparseArray()
80 mValues = ArrayUtils.newUnpaddedObjectArray(initialCapacity); in LongSparseArray()
DLongSparseLongArray.java19 import com.android.internal.util.ArrayUtils;
71 mKeys = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongSparseLongArray()
DSparseLongArray.java19 import com.android.internal.util.ArrayUtils;
69 mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity); in SparseLongArray()
DSparseIntArray.java19 import com.android.internal.util.ArrayUtils;
71 mKeys = ArrayUtils.newUnpaddedIntArray(initialCapacity); in SparseIntArray()
/frameworks/base/graphics/java/android/graphics/
DTemporaryBuffer.java19 import com.android.internal.util.ArrayUtils;
34 buf = ArrayUtils.newUnpaddedCharArray(len); in obtain()
/frameworks/base/core/java/android/hardware/camera2/legacy/
DLegacyMetadataMapper.java34 import android.hardware.camera2.utils.ArrayUtils;
447 int[] aeAvail = ArrayUtils.convertStringListToIntArray( in mapControlAe()
519 List<Integer> afAvail = ArrayUtils.convertStringListToIntList( in mapControlAf()
529 m.set(CONTROL_AF_AVAILABLE_MODES, ArrayUtils.toIntArray(afAvail)); in mapControlAf()
569 List<Integer> awbAvail = ArrayUtils.convertStringListToIntList( in mapControlAwb()
579 m.set(CONTROL_AWB_AVAILABLE_MODES, ArrayUtils.toIntArray(awbAvail)); in mapControlAwb()
635 ArrayUtils.convertStringListToIntArray(effectModes, sLegacyEffectMode, in mapControlOther()
645 ArrayUtils.convertStringListToIntList(sceneModes, sLegacySceneModes, sSceneModes); in mapControlOther()
669 m.set(CONTROL_AVAILABLE_SCENE_MODES, ArrayUtils.toIntArray(supportedSceneModes)); in mapControlOther()
1074 int index = ArrayUtils.getArrayIndex(sLegacySceneModes, mode); in convertSceneModeFromLegacy()
[all …]
/frameworks/base/core/java/android/view/textservice/
DSuggestionsInfo.java19 import com.android.internal.util.ArrayUtils;
28 private static final String[] EMPTY = ArrayUtils.emptyArray(String.class);
/frameworks/base/core/java/android/hardware/camera2/utils/
DArrayUtils.java28 public class ArrayUtils { class
181 private ArrayUtils() { in ArrayUtils() method in ArrayUtils
/frameworks/base/core/java/android/text/
DMeasuredText.java24 import com.android.internal.util.ArrayUtils;
111 mWidths = ArrayUtils.newUnpaddedFloatArray(len); in setPara()
114 mChars = ArrayUtils.newUnpaddedCharArray(len); in setPara()
143 mLevels = ArrayUtils.newUnpaddedByteArray(len); in setPara()
/frameworks/base/core/java/android/net/
DNetworkTemplate.java39 import com.android.internal.util.ArrayUtils;
310 && !ArrayUtils.isEmpty(mMatchSubscriberIds) in matchesMobile()
311 && ArrayUtils.contains(mMatchSubscriberIds, ident.mSubscriberId); in matchesMobile()
453 if (template.isMatchRuleMobile() && ArrayUtils.contains(merged, template.mSubscriberId)) { in normalize()
/frameworks/base/core/java/android/webkit/
DWebViewDelegate.java36 import com.android.internal.util.ArrayUtils;
188 if (!ArrayUtils.contains(libs, newAssetPath)) { in addWebViewAssetPath()

12345