Searched refs:ArrayUtils (Results 1 - 25 of 183) sorted by relevance

12345678

/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
H A DArrayUtilsTest.java25 * 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
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DTemporaryBuffer.java19 import com.android.internal.util.ArrayUtils;
34 buf = ArrayUtils.newUnpaddedCharArray(len);
/frameworks/base/keystore/java/android/security/keystore/
H A DKeyInfo.java118 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(encryptionPaddings));
120 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(signaturePaddings));
121 mDigests = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(digests));
122 mBlockModes = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(blockModes));
212 return ArrayUtils.cloneIfNotEmpty(mBlockModes);
224 return ArrayUtils
[all...]
H A DKeyProtection.java262 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(encryptionPaddings));
264 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(signaturePaddings));
265 mDigests = ArrayUtils.cloneIfNotEmpty(digests);
266 mBlockModes = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(blockModes));
329 return ArrayUtils.cloneIfNotEmpty(mEncryptionPaddings);
341 return ArrayUtils.cloneIfNotEmpty(mSignaturePaddings);
359 return ArrayUtils
[all...]
H A DAndroidKeyStorePublicKey.java33 mEncoded = ArrayUtils.cloneIfNotEmpty(x509EncodedForm);
43 return ArrayUtils.cloneIfNotEmpty(mEncoded);
H A DKeyGenParameterSpec.java336 mDigests = ArrayUtils.cloneIfNotEmpty(digests);
338 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(encryptionPaddings));
339 mSignaturePaddings = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(signaturePaddings));
340 mBlockModes = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(blockModes));
479 return ArrayUtils.cloneIfNotEmpty(mDigests);
503 return ArrayUtils.cloneIfNotEmpty(mEncryptionPaddings);
515 return ArrayUtils
[all...]
H A DArrayUtils.java24 public abstract class ArrayUtils { class
25 private ArrayUtils() {} method in class:ArrayUtils
H A DKeyStoreCryptoOperationChunkedStreamer.java106 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/java/android/content/pm/
H A DSELinuxUtil.java19 import com.android.internal.util.ArrayUtils;
H A DPackageSharedLibraryUpdater.java23 import com.android.internal.util.ArrayUtils;
43 pkg.usesLibraries = ArrayUtils.remove(pkg.usesLibraries, libraryName);
45 ArrayUtils.remove(pkg.usesOptionalLibraries, libraryName);
59 return ArrayUtils.contains(usesLibraries, apacheHttpLegacy)
60 || ArrayUtils.contains(usesOptionalLibraries, apacheHttpLegacy);
84 if (ArrayUtils.contains(usesLibraries, existingLibrary)) {
86 } else if (ArrayUtils.contains(usesOptionalLibraries, existingLibrary)) {
H A DPackageUserState.java34 import com.android.internal.util.ArrayUtils;
98 disabledComponents = ArrayUtils.cloneOrNull(o.disabledComponents);
99 enabledComponents = ArrayUtils.cloneOrNull(o.enabledComponents);
175 if (ArrayUtils.contains(this.enabledComponents, componentInfo.name)) {
178 if (ArrayUtils.contains(this.disabledComponents, componentInfo.name)) {
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DArrayUtilsTest.java41 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
[all...]
/frameworks/base/services/core/java/com/android/server/pm/
H A DPackageKeySetData.java21 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/packages/ExtServices/src/android/ext/services/autofill/
H A DAutofillFieldClassificationServiceImpl.java27 import com.android.internal.util.ArrayUtils;
40 if (ArrayUtils.isEmpty(actualValues) || ArrayUtils.isEmpty(userDataValues)) {
/frameworks/base/core/java/android/text/
H A DAutoGrowArray.java22 import com.android.internal.util.ArrayUtils;
70 mValues = ArrayUtils.newUnpaddedByteArray(initialCapacity);
101 final byte[] newValues = ArrayUtils.newUnpaddedByteArray(newCapacity);
179 mValues = ArrayUtils.newUnpaddedIntArray(initialCapacity);
210 final int[] newValues = ArrayUtils.newUnpaddedIntArray(newCapacity);
288 mValues = ArrayUtils.newUnpaddedFloatArray(initialCapacity);
319 final float[] newValues = ArrayUtils.newUnpaddedFloatArray(newCapacity);
/frameworks/base/core/java/com/android/internal/util/
H A DGrowingArrayUtils.java45 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));
/frameworks/support/slices/core/src/main/java/androidx/slice/
H A DArrayUtils.java29 class ArrayUtils { class
76 private ArrayUtils() { method in class:ArrayUtils
/frameworks/base/core/java/android/content/pm/split/
H A DDefaultSplitAssetLoader.java28 import com.android.internal.util.ArrayUtils;
79 if (!ArrayUtils.isEmpty(mSplitCodePaths)) {
/frameworks/base/core/java/android/hardware/camera2/utils/
H A DArrayUtils.java28 public class ArrayUtils { class
30 private static final String TAG = "ArrayUtils";
181 private ArrayUtils() { method in class:ArrayUtils
/frameworks/base/core/java/android/text/method/
H A DDateKeyListener.java25 import com.android.internal.util.ArrayUtils;
74 mNeedsAdvancedInput = !ArrayUtils.containsAll(CHARACTERS, mCharacters);
H A DDateTimeKeyListener.java25 import com.android.internal.util.ArrayUtils;
85 mNeedsAdvancedInput = !ArrayUtils.containsAll(CHARACTERS, mCharacters);
H A DTimeKeyListener.java25 import com.android.internal.util.ArrayUtils;
85 mNeedsAdvancedInput = !ArrayUtils.containsAll(CHARACTERS, mCharacters);
/frameworks/base/core/java/android/view/textservice/
H A DSuggestionsInfo.java22 import com.android.internal.util.ArrayUtils;
28 private static final String[] EMPTY = ArrayUtils.emptyArray(String.class);
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
H A DAbstractConnectivityPreferenceController.java26 import com.android.internal.util.ArrayUtils;
45 if (ArrayUtils.contains(getConnectivityIntents(), action)) {
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DInstallerTest.java29 import com.android.internal.util.ArrayUtils;
101 if (ArrayUtils.contains(appIds, appId)) {
104 appIds = ArrayUtils.appendInt(appIds, appId);
178 if (!ArrayUtils.contains(appIds, appId)) {
179 appIds = ArrayUtils.appendInt(appIds, appId);

Completed in 446 milliseconds

12345678