/frameworks/base/core/tests/utiltests/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/core/tests/coretests/src/com/android/internal/util/ |
D | ArrayUtilsTest.java | 41 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/ |
D | KeyInfo.java | 118 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(encryptionPaddings)); in KeyInfo() 120 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(signaturePaddings)); in KeyInfo() 121 mDigests = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(digests)); in KeyInfo() 122 mBlockModes = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(blockModes)); in KeyInfo() 212 return ArrayUtils.cloneIfNotEmpty(mBlockModes); in getBlockModes() 224 return ArrayUtils.cloneIfNotEmpty(mEncryptionPaddings); in getEncryptionPaddings() 236 return ArrayUtils.cloneIfNotEmpty(mSignaturePaddings); in getSignaturePaddings() 247 return ArrayUtils.cloneIfNotEmpty(mDigests); in getDigests()
|
D | KeyProtection.java | 262 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(encryptionPaddings)); in KeyProtection() 264 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(signaturePaddings)); in KeyProtection() 265 mDigests = ArrayUtils.cloneIfNotEmpty(digests); in KeyProtection() 266 mBlockModes = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(blockModes)); in KeyProtection() 329 return ArrayUtils.cloneIfNotEmpty(mEncryptionPaddings); in getEncryptionPaddings() 341 return ArrayUtils.cloneIfNotEmpty(mSignaturePaddings); in getSignaturePaddings() 359 return ArrayUtils.cloneIfNotEmpty(mDigests); in getDigests() 381 return ArrayUtils.cloneIfNotEmpty(mBlockModes); in getBlockModes() 655 mEncryptionPaddings = ArrayUtils.cloneIfNotEmpty(paddings); in setEncryptionPaddings() 671 mSignaturePaddings = ArrayUtils.cloneIfNotEmpty(paddings); in setSignaturePaddings() [all …]
|
D | KeyGenParameterSpec.java | 336 mDigests = ArrayUtils.cloneIfNotEmpty(digests); in KeyGenParameterSpec() 338 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(encryptionPaddings)); in KeyGenParameterSpec() 339 mSignaturePaddings = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(signaturePaddings)); in KeyGenParameterSpec() 340 mBlockModes = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(blockModes)); in KeyGenParameterSpec() 479 return ArrayUtils.cloneIfNotEmpty(mDigests); in getDigests() 503 return ArrayUtils.cloneIfNotEmpty(mEncryptionPaddings); in getEncryptionPaddings() 515 return ArrayUtils.cloneIfNotEmpty(mSignaturePaddings); in getSignaturePaddings() 527 return ArrayUtils.cloneIfNotEmpty(mBlockModes); in getBlockModes() 978 mDigests = ArrayUtils.cloneIfNotEmpty(digests); in setDigests() 1002 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()
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageSharedLibraryUpdater.java | 23 import com.android.internal.util.ArrayUtils; 43 pkg.usesLibraries = ArrayUtils.remove(pkg.usesLibraries, libraryName); in removeLibrary() 45 ArrayUtils.remove(pkg.usesOptionalLibraries, libraryName); in removeLibrary() 59 return ArrayUtils.contains(usesLibraries, apacheHttpLegacy) in isLibraryPresent() 60 || ArrayUtils.contains(usesOptionalLibraries, apacheHttpLegacy); in isLibraryPresent() 84 if (ArrayUtils.contains(usesLibraries, existingLibrary)) { in prefixImplicitDependency() 86 } else if (ArrayUtils.contains(usesOptionalLibraries, existingLibrary)) { in prefixImplicitDependency()
|
D | PackageUserState.java | 34 import com.android.internal.util.ArrayUtils; 98 disabledComponents = ArrayUtils.cloneOrNull(o.disabledComponents); in PackageUserState() 99 enabledComponents = ArrayUtils.cloneOrNull(o.enabledComponents); in PackageUserState() 175 if (ArrayUtils.contains(this.enabledComponents, componentInfo.name)) { in isEnabled() 178 if (ArrayUtils.contains(this.disabledComponents, componentInfo.name)) { in isEnabled()
|
/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() 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/text/ |
D | AutoGrowArray.java | 22 import com.android.internal.util.ArrayUtils; 70 mValues = ArrayUtils.newUnpaddedByteArray(initialCapacity); in ByteArray() 101 final byte[] newValues = ArrayUtils.newUnpaddedByteArray(newCapacity); in ensureCapacity() 179 mValues = ArrayUtils.newUnpaddedIntArray(initialCapacity); in IntArray() 210 final int[] newValues = ArrayUtils.newUnpaddedIntArray(newCapacity); in ensureCapacity() 288 mValues = ArrayUtils.newUnpaddedFloatArray(initialCapacity); in FloatArray() 319 final float[] newValues = ArrayUtils.newUnpaddedFloatArray(newCapacity); in ensureCapacity()
|
/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()
|
/frameworks/base/packages/ExtServices/src/android/ext/services/autofill/ |
D | AutofillFieldClassificationServiceImpl.java | 27 import com.android.internal.util.ArrayUtils; 40 if (ArrayUtils.isEmpty(actualValues) || ArrayUtils.isEmpty(userDataValues)) { in onGetScores()
|
/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/services/tests/servicestests/src/com/android/server/pm/ |
D | InstallerTest.java | 29 import com.android.internal.util.ArrayUtils; 101 if (ArrayUtils.contains(appIds, appId)) { in testGetAppSize() 104 appIds = ArrayUtils.appendInt(appIds, appId); in testGetAppSize() 178 if (!ArrayUtils.contains(appIds, appId)) { in getAppIds() 179 appIds = ArrayUtils.appendInt(appIds, appId); in getAppIds()
|
/frameworks/base/core/java/android/util/ |
D | IntArray.java | 19 import com.android.internal.util.ArrayUtils; 54 mValues = ArrayUtils.newUnpaddedIntArray(initialCapacity); in IntArray() 154 final int[] newValues = ArrayUtils.newUnpaddedIntArray(newCapacity); in ensureCapacity()
|
D | LongArray.java | 21 import com.android.internal.util.ArrayUtils; 58 mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongArray() 140 final long[] newValues = ArrayUtils.newUnpaddedLongArray(newCapacity); in ensureCapacity()
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
D | LegacyMetadataMapper.java | 34 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/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | ScanResultUtil.java | 23 import com.android.internal.util.ArrayUtils; 144 if (ArrayUtils.size(r.radioChainInfos) == 1) { in dumpScanResults() 147 } else if (ArrayUtils.size(r.radioChainInfos) == 2) { in dumpScanResults()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/ |
D | PowerWhitelistBackend.java | 33 import com.android.internal.util.ArrayUtils; 104 if (ArrayUtils.isEmpty(pkgs)) { in isWhitelisted() 121 if (ArrayUtils.isEmpty(pkgs)) { in isSysWhitelistedExceptIdle()
|
/frameworks/base/core/java/android/app/slice/ |
D | SliceItem.java | 31 import com.android.internal.util.ArrayUtils; 273 return ArrayUtils.contains(mHints, hint); in hasHint() 305 if (!TextUtils.isEmpty(hint) && !ArrayUtils.contains(mHints, hint)) { in hasHints() 318 if (ArrayUtils.contains(mHints, hint)) { in hasAnyHints()
|
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
D | CustomConfigLoader.java | 27 import com.android.internal.util.ArrayUtils; 108 if (!ArrayUtils.isEmpty(configs)) { in loadCarrierActionList() 164 if (!ArrayUtils.isEmpty(actions)) { in matchConfig()
|
/frameworks/support/slices/core/src/main/java/androidx/slice/ |
D | ArrayUtils.java | 29 class ArrayUtils { class 76 private ArrayUtils() { in ArrayUtils() method in ArrayUtils
|
/frameworks/base/core/java/android/companion/ |
D | BluetoothDeviceFilter.java | 33 import com.android.internal.util.ArrayUtils; 202 mServiceUuid = ArrayUtils.add(mServiceUuid, serviceUuid); in addServiceUuid() 203 mServiceUuidMask = ArrayUtils.add(mServiceUuidMask, serviceUuidMask); in addServiceUuid()
|
/frameworks/base/core/java/android/text/method/ |
D | DateKeyListener.java | 25 import com.android.internal.util.ArrayUtils; 74 mNeedsAdvancedInput = !ArrayUtils.containsAll(CHARACTERS, mCharacters); in DateKeyListener()
|