Home
last modified time | relevance | path

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

1234

/frameworks/base/core/tests/coretests/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/keystore/java/android/security/keystore/
DKeyInfo.java112 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(encryptionPaddings)); in KeyInfo()
114 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(signaturePaddings)); in KeyInfo()
115 mDigests = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(digests)); in KeyInfo()
116 mBlockModes = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(blockModes)); in KeyInfo()
202 return ArrayUtils.cloneIfNotEmpty(mBlockModes); in getBlockModes()
214 return ArrayUtils.cloneIfNotEmpty(mEncryptionPaddings); in getEncryptionPaddings()
226 return ArrayUtils.cloneIfNotEmpty(mSignaturePaddings); in getSignaturePaddings()
237 return ArrayUtils.cloneIfNotEmpty(mDigests); in getDigests()
DKeyProtection.java235 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(encryptionPaddings)); in KeyProtection()
237 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(signaturePaddings)); in KeyProtection()
238 mDigests = ArrayUtils.cloneIfNotEmpty(digests); in KeyProtection()
239 mBlockModes = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(blockModes)); in KeyProtection()
294 return ArrayUtils.cloneIfNotEmpty(mEncryptionPaddings); in getEncryptionPaddings()
306 return ArrayUtils.cloneIfNotEmpty(mSignaturePaddings); in getSignaturePaddings()
324 return ArrayUtils.cloneIfNotEmpty(mDigests); in getDigests()
346 return ArrayUtils.cloneIfNotEmpty(mBlockModes); in getBlockModes()
498 mEncryptionPaddings = ArrayUtils.cloneIfNotEmpty(paddings); in setEncryptionPaddings()
514 mSignaturePaddings = ArrayUtils.cloneIfNotEmpty(paddings); in setSignaturePaddings()
[all …]
DKeyGenParameterSpec.java306 mDigests = ArrayUtils.cloneIfNotEmpty(digests); in KeyGenParameterSpec()
308 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(encryptionPaddings)); in KeyGenParameterSpec()
309 mSignaturePaddings = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(signaturePaddings)); in KeyGenParameterSpec()
310 mBlockModes = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(blockModes)); in KeyGenParameterSpec()
431 return ArrayUtils.cloneIfNotEmpty(mDigests); in getDigests()
455 return ArrayUtils.cloneIfNotEmpty(mEncryptionPaddings); in getEncryptionPaddings()
467 return ArrayUtils.cloneIfNotEmpty(mSignaturePaddings); in getSignaturePaddings()
479 return ArrayUtils.cloneIfNotEmpty(mBlockModes); in getBlockModes()
746 mDigests = ArrayUtils.cloneIfNotEmpty(digests); in setDigests()
770 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()
120 T[] newArray = ArrayUtils.newUnpaddedArray((Class<T>)array.getClass().getComponentType(), in insert()
140 int[] newArray = ArrayUtils.newUnpaddedIntArray(growSize(currentSize)); in insert()
159 long[] newArray = ArrayUtils.newUnpaddedLongArray(growSize(currentSize)); in insert()
178 boolean[] newArray = ArrayUtils.newUnpaddedBooleanArray(growSize(currentSize)); in insert()
/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()
DPermissionsState.java24 import com.android.internal.util.ArrayUtils;
81 if (!ArrayUtils.isEmpty(globalGids)) { in setGlobalGids()
473 final boolean hasGids = !ArrayUtils.isEmpty(permission.computeGids(userId)); in grantPermission()
497 final boolean hasGids = !ArrayUtils.isEmpty(permission.computeGids(userId)); in revokePermission()
523 current = ArrayUtils.appendInt(current, guid); in appendInts()
/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/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;
69 mKeys = ArrayUtils.newUnpaddedIntArray(initialCapacity); in SparseIntArray()
DSparseBooleanArray.java19 import com.android.internal.util.ArrayUtils;
66 mKeys = ArrayUtils.newUnpaddedIntArray(initialCapacity); in SparseBooleanArray()
/frameworks/base/core/java/android/hardware/camera2/legacy/
DLegacyMetadataMapper.java34 import android.hardware.camera2.utils.ArrayUtils;
445 int[] aeAvail = ArrayUtils.convertStringListToIntArray( in mapControlAe()
517 List<Integer> afAvail = ArrayUtils.convertStringListToIntList( in mapControlAf()
527 m.set(CONTROL_AF_AVAILABLE_MODES, ArrayUtils.toIntArray(afAvail)); in mapControlAf()
567 List<Integer> awbAvail = ArrayUtils.convertStringListToIntList( in mapControlAwb()
577 m.set(CONTROL_AWB_AVAILABLE_MODES, ArrayUtils.toIntArray(awbAvail)); in mapControlAwb()
633 ArrayUtils.convertStringListToIntArray(effectModes, sLegacyEffectMode, in mapControlOther()
643 ArrayUtils.convertStringListToIntList(sceneModes, sLegacySceneModes, sSceneModes); in mapControlOther()
667 m.set(CONTROL_AVAILABLE_SCENE_MODES, ArrayUtils.toIntArray(supportedSceneModes)); in mapControlOther()
1072 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/net/
DNetworkTemplate.java31 import static com.android.internal.util.ArrayUtils.contains;
38 import com.android.internal.util.ArrayUtils;
291 return matchesType && ArrayUtils.contains(mMatchSubscriberIds, ident.mSubscriberId); in matchesMobile()
424 if (template.isMatchRuleMobile() && ArrayUtils.contains(merged, template.mSubscriberId)) { in normalize()
/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/content/pm/
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/packages/SystemUI/src/com/android/systemui/qs/tiles/
DUserDetailItemView.java19 import com.android.internal.util.ArrayUtils;
124 boolean activated = ArrayUtils.contains(getDrawableState(), android.R.attr.state_activated); in updateTypeface()

1234