/aosp14/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
H A D | ArrayUtilsTest.java | 101 ArrayUtils.appendInt(null, 1)); in testAppendInt() 111 assertNull(ArrayUtils.removeInt(null, 1)); in testRemoveInt() 138 ArrayUtils.appendLong(null, 1)); in testAppendLong() 148 assertNull(ArrayUtils.removeLong(null, 1)); in testRemoveLong() 362 ArrayUtils.throwsIfOutOfBounds(10, 2, 6); in testThrowsIfOutOfBounds_passesWhenRangeInsideArray() 367 ArrayUtils.throwsIfOutOfBounds(10, 0, 10); in testThrowsIfOutOfBounds_passesWhenRangeIsWholeArray() 372 ArrayUtils.throwsIfOutOfBounds(10, 0, 0); in testThrowsIfOutOfBounds_passesWhenEmptyRangeAtStart() 377 ArrayUtils.throwsIfOutOfBounds(10, 10, 0); in testThrowsIfOutOfBounds_passesWhenEmptyRangeAtEnd() 382 ArrayUtils.throwsIfOutOfBounds(0, 0, 0); in testThrowsIfOutOfBounds_passesWhenEmptyArray() 418 ArrayUtils.throwsIfOutOfBounds(10, 5, 6); in testThrowsIfOutOfBounds_failsWhenRangeEndTooHigh() [all …]
|
/aosp14/frameworks/base/core/java/android/database/ |
H A D | TranslatingCursor.java | 27 import com.android.internal.util.ArrayUtils; 148 if (ArrayUtils.contains(mTranslateColumnIndices, columnIndex)) { in getDouble() 157 if (ArrayUtils.contains(mTranslateColumnIndices, columnIndex)) { in getFloat() 166 if (ArrayUtils.contains(mTranslateColumnIndices, columnIndex)) { in getInt() 175 if (ArrayUtils.contains(mTranslateColumnIndices, columnIndex)) { in getLong() 184 if (ArrayUtils.contains(mTranslateColumnIndices, columnIndex)) { in getShort() 193 if (ArrayUtils.contains(mTranslateColumnIndices, columnIndex)) { in getString() 203 if (ArrayUtils.contains(mTranslateColumnIndices, columnIndex)) { in copyStringToBuffer() 212 if (ArrayUtils.contains(mTranslateColumnIndices, columnIndex)) { in getBlob() 221 if (ArrayUtils.contains(mTranslateColumnIndices, columnIndex)) { in getType() [all …]
|
/aosp14/frameworks/base/keystore/java/android/security/keystore/ |
H A D | KeyInfo.java | 124 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(encryptionPaddings)); in KeyInfo() 126 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(signaturePaddings)); in KeyInfo() 127 mDigests = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(digests)); in KeyInfo() 128 mBlockModes = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(blockModes)); in KeyInfo() 224 return ArrayUtils.cloneIfNotEmpty(mBlockModes); in getBlockModes() 236 return ArrayUtils.cloneIfNotEmpty(mEncryptionPaddings); in getEncryptionPaddings() 248 return ArrayUtils.cloneIfNotEmpty(mSignaturePaddings); in getSignaturePaddings() 259 return ArrayUtils.cloneIfNotEmpty(mDigests); in getDigests()
|
H A D | KeyProtection.java | 270 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(encryptionPaddings)); in KeyProtection() 272 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(signaturePaddings)); in KeyProtection() 273 mDigests = ArrayUtils.cloneIfNotEmpty(digests); in KeyProtection() 274 mBlockModes = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(blockModes)); in KeyProtection() 340 return ArrayUtils.cloneIfNotEmpty(mEncryptionPaddings); in getEncryptionPaddings() 352 return ArrayUtils.cloneIfNotEmpty(mSignaturePaddings); in getSignaturePaddings() 370 return ArrayUtils.cloneIfNotEmpty(mDigests); in getDigests() 392 return ArrayUtils.cloneIfNotEmpty(mBlockModes); in getBlockModes() 713 mSignaturePaddings = ArrayUtils.cloneIfNotEmpty(paddings); in setSignaturePaddings() 737 mDigests = ArrayUtils.cloneIfNotEmpty(digests); in setDigests() [all …]
|
H A D | KeyGenParameterSpec.java | 406 mDigests = ArrayUtils.cloneIfNotEmpty(digests); in KeyGenParameterSpec() 408 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(encryptionPaddings)); in KeyGenParameterSpec() 409 mSignaturePaddings = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(signaturePaddings)); in KeyGenParameterSpec() 410 mBlockModes = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(blockModes)); in KeyGenParameterSpec() 582 return ArrayUtils.cloneIfNotEmpty(mDigests); in getDigests() 606 return ArrayUtils.cloneIfNotEmpty(mEncryptionPaddings); in getEncryptionPaddings() 618 return ArrayUtils.cloneIfNotEmpty(mSignaturePaddings); in getSignaturePaddings() 630 return ArrayUtils.cloneIfNotEmpty(mBlockModes); in getBlockModes() 1228 mDigests = ArrayUtils.cloneIfNotEmpty(digests); in setDigests() 1268 mSignaturePaddings = ArrayUtils.cloneIfNotEmpty(paddings); in setSignaturePaddings() [all …]
|
/aosp14/frameworks/base/core/tests/coretests/src/android/app/usage/ |
H A D | UsageStatsPersistenceTest.java | 25 import com.android.internal.util.ArrayUtils; 60 if (!(ArrayUtils.contains(USAGESTATS_PERSISTED_FIELDS, field.getName()) in testUsageStatsFields() 61 || ArrayUtils.contains(USAGESTATS_IGNORED_FIELDS, field.getName()))) { in testUsageStatsFields() 98 if (!(ArrayUtils.contains(USAGEEVENTS_PERSISTED_FIELDS, name) in testUsageEventsFields() 99 || ArrayUtils.contains(USAGEEVENTS_IGNORED_FIELDS, name) in testUsageEventsFields() 100 || ArrayUtils.contains(EVENT_TYPES, name))) { in testUsageEventsFields()
|
/aosp14/frameworks/base/keystore/java/android/security/keystore2/ |
H A D | KeyStoreCryptoOperationChunkedStreamer.java | 23 import android.security.keystore.ArrayUtils; 139 int inputConsumed = ArrayUtils.copy(input, inputOffset, mChunk, mChunkLength, in update() 147 output = ArrayUtils.concat(output, o); in update() 156 byte[] o = mKeyStoreStream.update(ArrayUtils.subarray(input, inputOffset, in update() 162 output = ArrayUtils.concat(output, o); in update() 169 mChunkLength = ArrayUtils.copy(input, inputOffset, mChunk, 0, inputLength); in update() 180 byte[] finalChunk = ArrayUtils.subarray(mChunk, 0, mChunkLength); in doFinal() 188 output = ArrayUtils.concat(output, o); in doFinal()
|
/aosp14/frameworks/base/core/java/com/android/internal/util/ |
H A D | GrowingArrayUtils.java | 49 T[] newArray = ArrayUtils.newUnpaddedArray( in append() 66 int[] newArray = ArrayUtils.newUnpaddedIntArray(growSize(currentSize)); in append() 81 long[] newArray = ArrayUtils.newUnpaddedLongArray(growSize(currentSize)); in append() 96 boolean[] newArray = ArrayUtils.newUnpaddedBooleanArray(growSize(currentSize)); in append() 111 float[] newArray = ArrayUtils.newUnpaddedFloatArray(growSize(currentSize)); in append() 140 T[] newArray = ArrayUtils.newUnpaddedArray((Class<T>)array.getClass().getComponentType(), in insert() 160 int[] newArray = ArrayUtils.newUnpaddedIntArray(growSize(currentSize)); in insert() 179 long[] newArray = ArrayUtils.newUnpaddedLongArray(growSize(currentSize)); in insert() 198 boolean[] newArray = ArrayUtils.newUnpaddedBooleanArray(growSize(currentSize)); in insert()
|
/aosp14/frameworks/base/core/java/android/util/ |
H A D | IntArray.java | 19 import com.android.internal.util.ArrayUtils; 56 mValues = ArrayUtils.newUnpaddedIntArray(initialCapacity); in IntArray() 107 ArrayUtils.checkBounds(mSize, index); in add() 167 final int[] newValues = ArrayUtils.newUnpaddedIntArray(newCapacity); in ensureCapacity() 189 ArrayUtils.checkBounds(mSize, index); in get() 197 ArrayUtils.checkBounds(mSize, index); in set() 219 ArrayUtils.checkBounds(mSize, index); in remove()
|
H A D | LongArray.java | 23 import com.android.internal.util.ArrayUtils; 61 mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongArray() 113 ArrayUtils.checkBounds(mSize, index); in add() 144 final long[] newValues = ArrayUtils.newUnpaddedLongArray(newCapacity); in ensureCapacity() 174 ArrayUtils.checkBounds(mSize, index); in get() 182 ArrayUtils.checkBounds(mSize, index); in set() 204 ArrayUtils.checkBounds(mSize, index); in remove()
|
H A D | LongArrayQueue.java | 19 import com.android.internal.util.ArrayUtils; 49 mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongArrayQueue() 67 final long[] newArray = ArrayUtils.newUnpaddedLongArray(newSize); in grow()
|
/aosp14/frameworks/base/core/java/android/text/ |
H A 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()
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/parsing/library/ |
H A D | PackageSharedLibraryUpdater.java | 22 import com.android.internal.util.ArrayUtils; 60 return ArrayUtils.contains(usesLibraries, apacheHttpLegacy) in isLibraryPresent() 61 || ArrayUtils.contains(usesOptionalLibraries, apacheHttpLegacy); in isLibraryPresent() 80 if (ArrayUtils.contains(usesLibraries, existingLibrary)) { in prefixImplicitDependency() 82 } else if (ArrayUtils.contains(usesOptionalLibraries, existingLibrary)) { in prefixImplicitDependency()
|
/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
H A D | KeySyncUtils.java | 23 import com.android.internal.util.ArrayUtils; 93 byte[] header = ArrayUtils.concat(THM_ENCRYPTED_RECOVERY_KEY_HEADER, vaultParams); in thmEncryptRecoveryKey() 176 header = ArrayUtils.concat(ENCRYPTED_APPLICATION_KEY_HEADER, metadata); in encryptKeysWithRecoveryKey() 223 /*header=*/ ArrayUtils.concat(RECOVERY_CLAIM_HEADER, vaultParams, challenge), in encryptRecoveryClaim() 224 /*payload=*/ ArrayUtils.concat(thmKfHash, keyClaimant)); in encryptRecoveryClaim() 245 /*header=*/ ArrayUtils.concat(RECOVERY_RESPONSE_HEADER, vaultParams), in decryptRecoveryClaimResponse() 285 header = ArrayUtils.concat(ENCRYPTED_APPLICATION_KEY_HEADER, applicationKeyMetadata); in decryptApplicationKey()
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | PackageKeySetData.java | 21 import com.android.internal.util.ArrayUtils; 42 mUpgradeKeySets = ArrayUtils.cloneOrNull(original.mUpgradeKeySets); in PackageKeySetData() 63 mUpgradeKeySets = ArrayUtils.appendLong(mUpgradeKeySets, ks); in addUpgradeKeySet() 76 mUpgradeKeySets = ArrayUtils.appendLong(mUpgradeKeySets, ks); in addUpgradeKeySetById()
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | DeviceStateController.java | 28 import com.android.internal.util.ArrayUtils; 122 return ArrayUtils.contains(mReverseRotationAroundZAxisStates, mCurrentState); in shouldReverseRotationDirectionAroundZAxis() 150 if (ArrayUtils.contains(mHalfFoldedDeviceStates, state)) { in onDeviceStateReceivedByDisplayManager() 152 } else if (ArrayUtils.contains(mFoldedDeviceStates, state)) { in onDeviceStateReceivedByDisplayManager() 154 } else if (ArrayUtils.contains(mRearDisplayDeviceStates, state)) { in onDeviceStateReceivedByDisplayManager() 156 } else if (ArrayUtils.contains(mOpenDeviceStates, state)) { in onDeviceStateReceivedByDisplayManager()
|
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
H A D | LocalBluetoothProfileManager.java | 48 import com.android.internal.util.ArrayUtils; 628 if ((ArrayUtils.contains(localUuids, BluetoothUuid.HSP_AG) in updateProfiles() 629 && ArrayUtils.contains(uuids, BluetoothUuid.HSP)) in updateProfiles() 630 || (ArrayUtils.contains(localUuids, BluetoothUuid.HFP_AG) in updateProfiles() 631 && ArrayUtils.contains(uuids, BluetoothUuid.HFP))) { in updateProfiles() 638 ArrayUtils.contains(uuids, BluetoothUuid.HFP_AG) in updateProfiles() 639 && ArrayUtils.contains(localUuids, BluetoothUuid.HFP)) { in updateProfiles() 660 if ((ArrayUtils.contains(uuids, BluetoothUuid.HID) in updateProfiles() 674 if ((ArrayUtils.contains(uuids, BluetoothUuid.NAP) && mPanProfile != null) in updateProfiles() 722 && ArrayUtils.contains(uuids, BluetoothUuid.VOLUME_CONTROL)) { in updateProfiles() [all …]
|
H A D | BluetoothDeviceFilter.java | 26 import com.android.internal.util.ArrayUtils; 136 if (ArrayUtils.contains(uuids, BluetoothUuid.OBEX_OBJECT_PUSH)) { in matches() 150 if (ArrayUtils.contains(uuids, BluetoothUuid.PANU)) { in matches() 164 if (ArrayUtils.contains(uuids, BluetoothUuid.NAP)) { in matches()
|
/aosp14/frameworks/base/services/core/java/com/android/server/power/stats/ |
H A D | UserPowerCalculator.java | 28 import com.android.internal.util.ArrayUtils; 44 if (ArrayUtils.contains(userIds, UserHandle.USER_ALL)) { in calculate() 63 if (!ArrayUtils.contains(userIds, userId)) { in calculate()
|
/aosp14/frameworks/base/services/core/java/com/android/server/audio/ |
H A D | FadeOutManager.java | 26 import com.android.internal.util.ArrayUtils; 114 if (ArrayUtils.contains(UNFADEABLE_PLAYER_TYPES, apc.getPlayerType())) { in canBeFadedOut() 118 if (ArrayUtils.contains(UNFADEABLE_CONTENT_TYPES, in canBeFadedOut() 126 if (!ArrayUtils.contains(FADEABLE_USAGES, apc.getAudioAttributes().getUsage())) { in canBeFadedOut() 136 if (ArrayUtils.contains(UNFADEABLE_CONTENT_TYPES, aa.getContentType())) { in getFadeOutDurationOnFocusLossMillis() 139 if (!ArrayUtils.contains(FADEABLE_USAGES, aa.getUsage())) { in getFadeOutDurationOnFocusLossMillis()
|
/aosp14/frameworks/base/services/core/java/com/android/server/om/ |
H A D | OverlayActorEnforcer.java | 29 import com.android.internal.util.ArrayUtils; 66 if (ArrayUtils.isEmpty(namespace)) { in getPackageNameForActor() 125 if (ArrayUtils.isEmpty(callingPackageNames)) { in isAllowedActor() 130 if (ArrayUtils.contains(callingPackageNames, targetPackageName)) { in isAllowedActor() 201 if (ArrayUtils.contains(callingPackageNames, actorPackageName)) { in isAllowedActor()
|
/aosp14/frameworks/base/packages/SettingsProvider/src/android/provider/settings/validators/ |
H A D | DiscreteValueValidator.java | 21 import com.android.internal.util.ArrayUtils; 37 return value == null || ArrayUtils.contains(mValues, value); in validate()
|
/aosp14/frameworks/base/services/core/java/com/android/server/utils/ |
H A D | WatchedSparseBooleanMatrix.java | 26 import com.android.internal.util.ArrayUtils; 161 mInUse = ArrayUtils.newUnpaddedBooleanArray(mOrder); in WatchedSparseBooleanMatrix() 162 mKeys = ArrayUtils.newUnpaddedIntArray(mOrder); in WatchedSparseBooleanMatrix() 163 mMap = ArrayUtils.newUnpaddedIntArray(mOrder); in WatchedSparseBooleanMatrix() 164 mValues = ArrayUtils.newUnpaddedIntArray(mOrder * mOrder / PACKING); in WatchedSparseBooleanMatrix() 463 boolean[] newInUse = ArrayUtils.newUnpaddedBooleanArray(newOrder); in resizeMatrix() 465 int[] newMap = ArrayUtils.newUnpaddedIntArray(newOrder); in resizeMatrix() 467 int[] newKeys = ArrayUtils.newUnpaddedIntArray(newOrder); in resizeMatrix() 470 int[] newValues = ArrayUtils.newUnpaddedIntArray(newOrder * newOrder / PACKING); in resizeMatrix()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
H A D | KeySyncUtilsTest.java | 30 import com.android.internal.util.ArrayUtils; 248 /*header=*/ ArrayUtils.concat(RECOVERY_RESPONSE_HEADER, vaultParams), in decryptRecoveryClaimResponse_decryptsAValidResponse() 264 /*header=*/ ArrayUtils.concat(RECOVERY_RESPONSE_HEADER, vaultParams), in decryptRecoveryClaimResponse_throwsIfCannotDecrypt() 293 /*header=*/ ArrayUtils.concat(RECOVERY_CLAIM_HEADER, vaultParams, challenge), in encryptRecoveryClaim_encryptsLockScreenAndKeyClaimant() 295 assertArrayEquals(ArrayUtils.concat(LOCK_SCREEN_HASH_1, keyClaimant), decrypted); in encryptRecoveryClaim_encryptsLockScreenAndKeyClaimant() 315 /*header=*/ ArrayUtils.concat( in encryptRecoveryClaim_cannotBeDecryptedWithoutChallenge() 341 /*header=*/ ArrayUtils.concat( in encryptRecoveryClaim_cannotBeDecryptedWithoutCorrectSecretKey() 367 /*header=*/ ArrayUtils.concat( in encryptRecoveryClaim_cannotBeDecryptedWithoutCorrectVaultParams() 394 /*header=*/ ArrayUtils.concat(randomBytes(10), vaultParams, challenge), in encryptRecoveryClaim_cannotBeDecryptedWithoutCorrectHeader()
|
/aosp14/frameworks/base/graphics/java/android/graphics/ |
H A D | TemporaryBuffer.java | 21 import com.android.internal.util.ArrayUtils; 37 buf = ArrayUtils.newUnpaddedCharArray(len); in obtain()
|