/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | ArrayUtilsTest.java | 48 assertTrue(ArrayUtils.contains(new Object[] { A, B, C }, A)); in testContains() 49 assertTrue(ArrayUtils.contains(new Object[] { A, B, C }, B)); in testContains() 50 assertTrue(ArrayUtils.contains(new Object[] { A, B, C }, C)); in testContains() 51 assertTrue(ArrayUtils.contains(new Object[] { A, null, C }, null)); in testContains() 53 assertFalse(ArrayUtils.contains(new Object[] { A, B, C }, null)); in testContains() 54 assertFalse(ArrayUtils.contains(new Object[] { }, null)); in testContains() 55 assertFalse(ArrayUtils.contains(new Object[] { null }, A)); in testContains() 65 assertEquals(0, ArrayUtils.indexOf(new Object[] { A, B, C }, A)); in testIndexOf() 66 assertEquals(1, ArrayUtils.indexOf(new Object[] { A, B, C }, B)); in testIndexOf() 67 assertEquals(2, ArrayUtils.indexOf(new Object[] { A, B, C }, C)); in testIndexOf() [all …]
|
/frameworks/base/core/java/android/database/ |
D | TranslatingCursor.java | 27 import com.android.internal.util.ArrayUtils; 77 if (ArrayUtils.contains(config.translateColumns, columnName)) { in TranslatingCursor() 105 final boolean requestedAuxiliaryColumn = ArrayUtils.isEmpty(projectionIn) in query() 106 || ArrayUtils.contains(projectionIn, config.auxiliaryColumn); in query() 107 final boolean requestedTranslateColumns = ArrayUtils.isEmpty(projectionIn) in query() 108 || ArrayUtils.containsAny(projectionIn, config.translateColumns); in query() 119 projectionIn = ArrayUtils.appendElement(String.class, projectionIn, in query() 148 if (ArrayUtils.contains(mTranslateColumnIndices, columnIndex)) { in getDouble() 157 if (ArrayUtils.contains(mTranslateColumnIndices, columnIndex)) { in getFloat() 166 if (ArrayUtils.contains(mTranslateColumnIndices, columnIndex)) { in getInt() [all …]
|
/frameworks/base/keystore/java/android/security/keystore/ |
D | KeyInfo.java | 127 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(encryptionPaddings)); in KeyInfo() 129 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(signaturePaddings)); in KeyInfo() 130 mDigests = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(digests)); in KeyInfo() 131 mBlockModes = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(blockModes)); in KeyInfo() 228 return ArrayUtils.cloneIfNotEmpty(mBlockModes); in getBlockModes() 240 return ArrayUtils.cloneIfNotEmpty(mEncryptionPaddings); in getEncryptionPaddings() 252 return ArrayUtils.cloneIfNotEmpty(mSignaturePaddings); in getSignaturePaddings() 263 return ArrayUtils.cloneIfNotEmpty(mDigests); in getDigests()
|
D | KeyProtection.java | 276 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(encryptionPaddings)); in KeyProtection() 278 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(signaturePaddings)); in KeyProtection() 279 mDigests = ArrayUtils.cloneIfNotEmpty(digests); in KeyProtection() 281 mBlockModes = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(blockModes)); in KeyProtection() 347 return ArrayUtils.cloneIfNotEmpty(mEncryptionPaddings); in getEncryptionPaddings() 359 return ArrayUtils.cloneIfNotEmpty(mSignaturePaddings); in getSignaturePaddings() 377 return ArrayUtils.cloneIfNotEmpty(mDigests); in getDigests() 433 return ArrayUtils.cloneIfNotEmpty(mBlockModes); in getBlockModes() 738 mEncryptionPaddings = ArrayUtils.cloneIfNotEmpty(paddings); in setEncryptionPaddings() 754 mSignaturePaddings = ArrayUtils.cloneIfNotEmpty(paddings); in setSignaturePaddings() [all …]
|
D | KeyGenParameterSpec.java | 414 mDigests = ArrayUtils.cloneIfNotEmpty(digests); in KeyGenParameterSpec() 419 ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(encryptionPaddings)); in KeyGenParameterSpec() 420 mSignaturePaddings = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(signaturePaddings)); in KeyGenParameterSpec() 421 mBlockModes = ArrayUtils.cloneIfNotEmpty(ArrayUtils.nullToEmpty(blockModes)); in KeyGenParameterSpec() 593 return ArrayUtils.cloneIfNotEmpty(mDigests); in getDigests() 651 return ArrayUtils.cloneIfNotEmpty(mEncryptionPaddings); in getEncryptionPaddings() 663 return ArrayUtils.cloneIfNotEmpty(mSignaturePaddings); in getSignaturePaddings() 675 return ArrayUtils.cloneIfNotEmpty(mBlockModes); in getBlockModes() 1270 mDigests = ArrayUtils.cloneIfNotEmpty(digests); in setDigests() 1321 mEncryptionPaddings = ArrayUtils.cloneIfNotEmpty(paddings); in setEncryptionPaddings() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/usage/ |
D | UsageStatsPersistenceTest.java | 24 import com.android.internal.util.ArrayUtils; 59 if (!(ArrayUtils.contains(USAGESTATS_PERSISTED_FIELDS, field.getName()) in testUsageStatsFields() 60 || ArrayUtils.contains(USAGESTATS_IGNORED_FIELDS, field.getName()))) { in testUsageStatsFields() 97 if (!(ArrayUtils.contains(USAGEEVENTS_PERSISTED_FIELDS, name) in testUsageEventsFields() 98 || ArrayUtils.contains(USAGEEVENTS_IGNORED_FIELDS, name) in testUsageEventsFields() 99 || ArrayUtils.contains(EVENT_TYPES, name))) { in testUsageEventsFields()
|
/frameworks/base/keystore/java/android/security/keystore2/ |
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()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | GrowingArrayUtils.java | 50 T[] newArray = ArrayUtils.newUnpaddedArray( in append() 67 int[] newArray = ArrayUtils.newUnpaddedIntArray(growSize(currentSize)); in append() 82 long[] newArray = ArrayUtils.newUnpaddedLongArray(growSize(currentSize)); in append() 97 boolean[] newArray = ArrayUtils.newUnpaddedBooleanArray(growSize(currentSize)); in append() 112 float[] newArray = ArrayUtils.newUnpaddedFloatArray(growSize(currentSize)); in append() 141 T[] newArray = ArrayUtils.newUnpaddedArray((Class<T>)array.getClass().getComponentType(), in insert() 161 int[] newArray = ArrayUtils.newUnpaddedIntArray(growSize(currentSize)); in insert() 180 long[] newArray = ArrayUtils.newUnpaddedLongArray(growSize(currentSize)); in insert() 199 boolean[] newArray = ArrayUtils.newUnpaddedBooleanArray(growSize(currentSize)); in insert()
|
/frameworks/base/core/java/android/util/ |
D | IntArray.java | 19 import com.android.internal.util.ArrayUtils; 55 mValues = ArrayUtils.newUnpaddedIntArray(initialCapacity); in IntArray() 106 ArrayUtils.checkBounds(mSize, index); in add() 166 final int[] newValues = ArrayUtils.newUnpaddedIntArray(newCapacity); in ensureCapacity() 188 ArrayUtils.checkBounds(mSize, index); in get() 196 ArrayUtils.checkBounds(mSize, index); in set() 223 ArrayUtils.checkBounds(mSize, index); in remove()
|
D | LongArray.java | 23 import com.android.internal.util.ArrayUtils; 60 mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongArray() 112 ArrayUtils.checkBounds(mSize, index); in add() 143 final long[] newValues = ArrayUtils.newUnpaddedLongArray(newCapacity); in ensureCapacity() 173 ArrayUtils.checkBounds(mSize, index); in get() 181 ArrayUtils.checkBounds(mSize, index); in set() 203 ArrayUtils.checkBounds(mSize, index); in remove()
|
D | LongArrayQueue.java | 19 import com.android.internal.util.ArrayUtils; 48 mValues = ArrayUtils.newUnpaddedLongArray(initialCapacity); in LongArrayQueue() 66 final long[] newArray = ArrayUtils.newUnpaddedLongArray(newSize); in grow()
|
/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; 42 mUpgradeKeySets = ArrayUtils.cloneOrNull(original.mUpgradeKeySets); in PackageKeySetData() 63 mUpgradeKeySets = ArrayUtils.appendLong(mUpgradeKeySets, ks); in addUpgradeKeySet() 76 mUpgradeKeySets = ArrayUtils.appendLong(mUpgradeKeySets, ks); in addUpgradeKeySetById()
|
D | PackageRemovedInfo.java | 22 import com.android.internal.util.ArrayUtils; 60 mInstantUserIds = ArrayUtils.appendInt(mInstantUserIds, userId); in populateBroadcastUsers() 62 mBroadcastUsers = ArrayUtils.appendInt(mBroadcastUsers, userId); in populateBroadcastUsers()
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
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()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
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()
|
/frameworks/base/services/core/java/com/android/server/power/stats/ |
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()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | LocalBluetoothProfileManager.java | 48 import com.android.internal.util.ArrayUtils; 623 if (ArrayUtils.contains(uuids, BluetoothUuid.LE_AUDIO) && mLeAudioProfile != null) { in updateProfiles() 629 if ((ArrayUtils.contains(localUuids, BluetoothUuid.HSP_AG) in updateProfiles() 630 && ArrayUtils.contains(uuids, BluetoothUuid.HSP)) in updateProfiles() 631 || (ArrayUtils.contains(localUuids, BluetoothUuid.HFP_AG) in updateProfiles() 632 && ArrayUtils.contains(uuids, BluetoothUuid.HFP))) { in updateProfiles() 639 ArrayUtils.contains(uuids, BluetoothUuid.HFP_AG) in updateProfiles() 640 && ArrayUtils.contains(localUuids, BluetoothUuid.HFP)) { in updateProfiles() 656 if (ArrayUtils.contains(uuids, BluetoothUuid.OBEX_OBJECT_PUSH) && mOppProfile != null) { in updateProfiles() 661 if ((ArrayUtils.contains(uuids, BluetoothUuid.HID) in updateProfiles() [all …]
|
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()
|
/frameworks/base/packages/SettingsProvider/src/android/provider/settings/validators/ |
D | DiscreteValueValidator.java | 21 import com.android.internal.util.ArrayUtils; 37 return value == null || ArrayUtils.contains(mValues, value); in validate()
|
/frameworks/base/graphics/java/android/graphics/ |
D | TemporaryBuffer.java | 21 import com.android.internal.util.ArrayUtils; 37 buf = ArrayUtils.newUnpaddedCharArray(len); in obtain()
|
/frameworks/base/services/core/java/com/android/server/om/ |
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()
|
/frameworks/base/services/core/java/com/android/server/utils/ |
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()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
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()
|
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/ |
D | InstallerTest.java | 30 import com.android.internal.util.ArrayUtils; 102 if (ArrayUtils.contains(appIds, appId)) { in testGetAppSize() 105 appIds = ArrayUtils.appendInt(appIds, appId); in testGetAppSize() 179 if (!ArrayUtils.contains(appIds, appId)) { in getAppIds() 180 appIds = ArrayUtils.appendInt(appIds, appId); in getAppIds()
|