/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
D | ArrayUtilsTest.java | 34 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/ |
D | KeyInfo.java | 112 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()
|
D | KeyProtection.java | 235 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 …]
|
D | KeyGenParameterSpec.java | 306 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 …]
|
D | KeyStoreCryptoOperationChunkedStreamer.java | 106 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()
|
D | AndroidKeyStorePublicKey.java | 33 mEncoded = ArrayUtils.cloneIfNotEmpty(x509EncodedForm); in AndroidKeyStorePublicKey() 43 return ArrayUtils.cloneIfNotEmpty(mEncoded); in getEncoded()
|
D | ArrayUtils.java | 24 public abstract class ArrayUtils { class 25 private ArrayUtils() {} in ArrayUtils() method in ArrayUtils
|
/frameworks/base/core/java/com/android/internal/util/ |
D | GrowingArrayUtils.java | 45 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/ |
D | PackageKeySetData.java | 21 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()
|
D | PermissionsState.java | 24 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/ |
D | TemporaryBuffer.java | 19 import com.android.internal.util.ArrayUtils; 34 buf = ArrayUtils.newUnpaddedCharArray(len); in obtain()
|
/frameworks/base/core/java/android/util/ |
D | LongArray.java | 19 import com.android.internal.util.ArrayUtils; 47 mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongArray() 100 final long[] newValues = ArrayUtils.newUnpaddedLongArray(newCapacity); in ensureCapacity()
|
D | IntArray.java | 19 import com.android.internal.util.ArrayUtils; 49 mValues = ArrayUtils.newUnpaddedIntArray(initialCapacity); in IntArray() 120 final int[] newValues = ArrayUtils.newUnpaddedIntArray(newCapacity); in ensureCapacity()
|
D | LongSparseArray.java | 19 import com.android.internal.util.ArrayUtils; 79 mKeys = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongSparseArray() 80 mValues = ArrayUtils.newUnpaddedObjectArray(initialCapacity); in LongSparseArray()
|
D | LongSparseLongArray.java | 19 import com.android.internal.util.ArrayUtils; 71 mKeys = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongSparseLongArray()
|
D | SparseLongArray.java | 19 import com.android.internal.util.ArrayUtils; 69 mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity); in SparseLongArray()
|
D | SparseIntArray.java | 19 import com.android.internal.util.ArrayUtils; 69 mKeys = ArrayUtils.newUnpaddedIntArray(initialCapacity); in SparseIntArray()
|
D | SparseBooleanArray.java | 19 import com.android.internal.util.ArrayUtils; 66 mKeys = ArrayUtils.newUnpaddedIntArray(initialCapacity); in SparseBooleanArray()
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
D | LegacyMetadataMapper.java | 34 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/ |
D | SuggestionsInfo.java | 19 import com.android.internal.util.ArrayUtils; 28 private static final String[] EMPTY = ArrayUtils.emptyArray(String.class);
|
/frameworks/base/core/java/android/net/ |
D | NetworkTemplate.java | 31 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/ |
D | ArrayUtils.java | 28 public class ArrayUtils { class 181 private ArrayUtils() { in ArrayUtils() method in ArrayUtils
|
/frameworks/base/core/java/android/text/ |
D | MeasuredText.java | 24 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/ |
D | Signature.java | 22 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/ |
D | UserDetailItemView.java | 19 import com.android.internal.util.ArrayUtils; 124 boolean activated = ArrayUtils.contains(getDrawableState(), android.R.attr.state_activated); in updateTypeface()
|