Home
last modified time | relevance | path

Searched refs:iv (Results 1 – 25 of 29) sorted by relevance

12

/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
H A DQSIconViewImpl.java138 if (iv instanceof SlashImageView) { in updateIcon()
142 iv.setImageDrawable(d); in updateIcon()
145 iv.setTag(R.id.qs_icon_tag, icon); in updateIcon()
147 iv.setPadding(0, padding, 0, padding); in updateIcon()
168 private boolean shouldAnimate(ImageView iv) { in shouldAnimate() argument
169 return mAnimationEnabled && iv.isShown() && iv.getDrawable() != null; in shouldAnimate()
178 animateGrayScale(mTint, color, iv, () -> updateIcon(iv, state, allowAnimations)); in setIcon()
184 setTint(iv, color); in setIcon()
200 ((AlphaControlledSlashImageView)iv) in animateGrayScale()
217 setTint(iv, toColor); in animateGrayScale()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
H A DQSIconViewImplTest.java61 ImageView iv = mock(ImageView.class); in testNoFirstAnimation() local
63 when(iv.isShown()).thenReturn(true); in testNoFirstAnimation()
68 mIconView.updateIcon(iv, s, true); in testNoFirstAnimation()
75 mIconView.updateIcon(iv, s, true); in testNoFirstAnimation()
89 when(iv.isShown()).thenReturn(true); in testMutateIconDrawable()
104 when(iv.isShown()).thenReturn(true); in testNoFirstFade()
106 mIconView.setIcon(iv, s, true); in testNoFirstFade()
119 mIconView.setIcon(iv, s, false); in testStateSetCorrectly_toString()
151 mIconView.updateIcon(iv, s, false); in testIconStartedAndStoppedWhenAllowAnimationsFalse()
170 mIconView.updateIcon(iv, s, true); in testAnimatorCallbackRemovedOnOldDrawable()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/accounts/
H A DCryptoHelper.java67 byte[] iv = cipher.getIV(); in encryptBundle()
68 byte[] mac = createMac(encryptedBytes, iv); in encryptBundle()
73 encryptedBundle.putByteArray(KEY_IV, iv); in encryptBundle()
81 byte[] iv = bundle.getByteArray(KEY_IV); in decryptBundle()
84 if (!verifyMac(encryptedBytes, iv, mac)) { in decryptBundle()
89 IvParameterSpec ivSpec = new IvParameterSpec(iv); in decryptBundle()
103 …private boolean verifyMac(@Nullable byte[] cipherArray, @Nullable byte[] iv, @Nullable byte[] macA… in verifyMac() argument
112 return constantTimeArrayEquals(macArray, createMac(cipherArray, iv)); in verifyMac()
116 …private byte[] createMac(@NonNull byte[] cipher, @NonNull byte[] iv) throws GeneralSecurityExcepti… in createMac() argument
120 mac.update(iv); in createMac()
/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/
H A DAesEncryptionUtil.java50 byte[] iv = new byte[ivSize]; in decrypt()
51 cipherStream.readFully(iv); in decrypt()
64 c.init(Cipher.DECRYPT_MODE, key, new GCMParameterSpec(128, iv)); in decrypt()
91 final byte[] iv; in encrypt()
96 iv = cipher.getIV(); in encrypt()
102 dos.writeInt(iv.length); in encrypt()
103 dos.write(iv); in encrypt()
H A DSyntheticPasswordCrypto.java69 byte[] iv = Arrays.copyOfRange(blob, 0, AES_GCM_IV_SIZE); in decrypt()
73 cipher.init(Cipher.DECRYPT_MODE, key, new GCMParameterSpec(AES_GCM_TAG_SIZE * 8, iv)); in decrypt()
89 byte[] iv = cipher.getIV(); in encrypt()
90 if (iv.length != AES_GCM_IV_SIZE) { in encrypt()
91 throw new IllegalArgumentException("Invalid iv length: " + iv.length + " bytes"); in encrypt()
98 return ArrayUtils.concat(iv, ciphertext); in encrypt()
H A DManagedProfilePasswordCache.java112 byte[] iv = cipher.getIV(); in storePassword()
113 byte[] block = ArrayUtils.concat(iv, ciphertext); in storePassword()
140 byte[] iv = Arrays.copyOf(block, 12); in retrievePassword()
145 cipher.init(Cipher.DECRYPT_MODE, key, new GCMParameterSpec(128, iv)); in retrievePassword()
H A DLockSettingsService.java1339 byte[] iv = Arrays.copyOfRange(storedData, 0, PROFILE_KEY_IV_SIZE); in getDecryptedPasswordForTiedProfile()
1349 cipher.init(Cipher.DECRYPT_MODE, decryptionKey, new GCMParameterSpec(128, iv)); in getDecryptedPasswordForTiedProfile()
1926 final byte[] iv; in tieProfileLockToParent()
1965 iv = cipher.getIV(); in tieProfileLockToParent()
1975 if (iv.length != PROFILE_KEY_IV_SIZE) { in tieProfileLockToParent()
1976 throw new IllegalArgumentException("Invalid iv length: " + iv.length); in tieProfileLockToParent()
1978 mStorage.writeChildProfileLock(profileUserId, ArrayUtils.concat(iv, ciphertext)); in tieProfileLockToParent()
/aosp14/frameworks/base/keystore/java/android/security/keystore2/
H A DAndroidKeyStoreAuthenticatedAESCipherSpi.java106 byte[] iv = spec.getIV(); in initAlgorithmSpecificParameters()
107 if (iv == null) { in initAlgorithmSpecificParameters()
109 } else if (iv.length != IV_LENGTH_BYTES) { in initAlgorithmSpecificParameters()
111 + iv.length + " bytes. Only " + IV_LENGTH_BYTES in initAlgorithmSpecificParameters()
122 setIv(iv); in initAlgorithmSpecificParameters()
162 byte[] iv = getIv(); in engineGetParameters()
163 if ((iv != null) && (iv.length > 0)) { in engineGetParameters()
166 params.init(new GCMParameterSpec(mTagLengthBits, iv)); in engineGetParameters()
356 protected void setIv(byte[] iv) { in setIv() argument
357 mIv = iv; in setIv()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
H A DAlphaControlledSignalTileViewTest.java53 TestableSlashImageView iv = new TestableSlashImageView(mContext); in testSlashImageView_createsAlphaControlledSlashDrawable() local
55 iv.ensureSlashDrawable(); in testSlashImageView_createsAlphaControlledSlashDrawable()
56 assertTrue(iv.getSlashDrawable() instanceof AlphaControlledSlashDrawable); in testSlashImageView_createsAlphaControlledSlashDrawable()
H A DSlashImageViewTest.java86 SlashImageView iv = new SlashImageView(mContext); in testSetImageDrawableUsesDrawableLevel() local
90 iv.setImageDrawable(mockDrawable); in testSetImageDrawableUsesDrawableLevel()
/aosp14/frameworks/base/identity/java/android/security/identity/
H A DCredstoreIdentityCredential.java175 ByteBuffer iv = ByteBuffer.allocate(12); in encryptMessageToReader() local
176 iv.putInt(0, 0x00000000); in encryptMessageToReader()
177 iv.putInt(4, 0x00000001); in encryptMessageToReader()
178 iv.putInt(8, mEphemeralCounter); in encryptMessageToReader()
180 GCMParameterSpec encryptionParameterSpec = new GCMParameterSpec(128, iv.array()); in encryptMessageToReader()
198 ByteBuffer iv = ByteBuffer.allocate(12); in decryptMessageFromReader() local
199 iv.putInt(0, 0x00000000); in decryptMessageFromReader()
200 iv.putInt(4, 0x00000000); in decryptMessageFromReader()
201 iv.putInt(8, mReadersExpectedEphemeralCounter); in decryptMessageFromReader()
206 new GCMParameterSpec(128, iv.array())); in decryptMessageFromReader()
/aosp14/frameworks/base/services/companion/java/com/android/server/companion/transport/
H A DCryptoManager.java95 byte[] iv = new byte[buffer.getInt()]; in decrypt()
96 buffer.get(iv); in decrypt()
100 mDecryptCipher.init(Cipher.DECRYPT_MODE, getKey(), new IvParameterSpec(iv)); in decrypt()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/icon/ui/viewbinder/
H A DNotificationIconAreaControllerViewBinderWrapperImpl.kt571 val iv = notificationIcons!!.getChildAt(i) as StatusBarIconView regex
572 if (iv.width != 0) {
573 updateTintForIcon(iv, iconTint)
575 iv.executeOnLayout { updateTintForIcon(iv, iconTint) }
621 val iv = aodIcons!!.getChildAt(i) as StatusBarIconView regex
622 if (iv.width != 0) {
623 updateTintForIcon(iv, aodIconTint)
625 iv.executeOnLayout { updateTintForIcon(iv, aodIconTint) }
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DLegacyNotificationIconAreaControllerImpl.java487 final StatusBarIconView iv = (StatusBarIconView) mNotificationIcons.getChildAt(i); in applyNotificationIconsTint() local
488 if (iv.getWidth() != 0) { in applyNotificationIconsTint()
489 updateTintForIcon(iv, mIconTint); in applyNotificationIconsTint()
491 iv.executeOnLayout(() -> updateTintForIcon(iv, mIconTint)); in applyNotificationIconsTint()
590 final StatusBarIconView iv = (StatusBarIconView) mAodIcons.getChildAt(i); in updateAodIconColors() local
591 if (iv.getWidth() != 0) { in updateAodIconColors()
592 updateTintForIcon(iv, mAodIconTint); in updateAodIconColors()
594 iv.executeOnLayout(() -> updateTintForIcon(iv, mAodIconTint)); in updateAodIconColors()
/aosp14/frameworks/base/core/java/com/android/internal/app/procstats/
H A DProcessStats.java303 for (int iv=0; iv<versions.size(); iv++) { in add()
549 for (int iv=vpkgs.size()-1; iv>=0; iv--) { in resetSafely()
580 vpkgs.removeAt(iv); in resetSafely()
892 for (int iv=0; iv<NVERS; iv++) { in writeToParcel()
975 for (int iv=0; iv<NVERS; iv++) { in writeToParcel()
1649 for (int iv = 0; iv < vpkgs.size(); iv++) { in dumpLocked()
2110 for (int iv=0; iv<NVERS; iv++) { in collectProcessesLocked()
2184 for (int iv = 0; iv < vpkgs.size(); iv++) { in dumpCheckinLocked()
2346 for (int iv = 0; iv < vers.size(); iv++) { in dumpDebug()
2416 for (int iv = 0, versionsSize = versions.size(); iv < versionsSize; iv++) { in forEachAssociation()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
H A DNotificationMenuRow.java795 AlphaOptimizedImageView iv = new AlphaOptimizedImageView(context); in NotificationMenuItem() local
796 iv.setPadding(padding, padding, padding, padding); in NotificationMenuItem()
798 iv.setImageDrawable(icon); in NotificationMenuItem()
799 iv.setColorFilter(tint); in NotificationMenuItem()
800 iv.setAlpha(1f); in NotificationMenuItem()
801 mMenuView = iv; in NotificationMenuItem()
/aosp14/frameworks/base/media/jni/
H A Dandroid_media_MediaCodec.h102 const uint8_t iv[16],
121 const uint8_t iv[16],
H A Dandroid_media_MediaCodec.cpp421 const uint8_t iv[16], in queueSecureInputBuffer()
428 index, offset, subSamples, numSubSamples, key, iv, mode, pattern, in queueSecureInputBuffer()
446 const uint8_t iv[16], in queueEncryptedLinearBlock()
454 index, buffer, offset, subSamples, numSubSamples, key, iv, mode, pattern, in queueEncryptedLinearBlock()
2126 jbyte *iv = NULL; in android_media_MediaCodec_queueSecureInputBuffer() local
2194 iv = env->GetByteArrayElements(ivObj, &isCopy); in android_media_MediaCodec_queueSecureInputBuffer()
2204 (const uint8_t *)key, (const uint8_t *)iv, in android_media_MediaCodec_queueSecureInputBuffer()
2212 if (iv != NULL) { in android_media_MediaCodec_queueSecureInputBuffer()
2213 env->ReleaseByteArrayElements(ivObj, iv, 0); in android_media_MediaCodec_queueSecureInputBuffer()
2214 iv = NULL; in android_media_MediaCodec_queueSecureInputBuffer()
H A Dandroid_media_MediaDrm.cpp1868 Vector<uint8_t> iv(JByteArrayToVector(env, jiv)); in android_media_MediaDrm_encryptNative() local
1871 DrmStatus err = drm->encrypt(sessionId, keyId, input, iv, output); in android_media_MediaDrm_encryptNative()
1899 Vector<uint8_t> iv(JByteArrayToVector(env, jiv)); in android_media_MediaDrm_decryptNative() local
1902 DrmStatus err = drm->decrypt(sessionId, keyId, input, iv, output); in android_media_MediaDrm_decryptNative()
/aosp14/frameworks/base/media/java/android/media/
H A DMediaDrm.java2282 @NonNull byte[] keyId, @NonNull byte[] input, @NonNull byte[] iv);
2287 @NonNull byte[] keyId, @NonNull byte[] input, @NonNull byte[] iv);
2359 @NonNull byte[] keyid, @NonNull byte[] input, @NonNull byte[] iv) {
2360 return encryptNative(MediaDrm.this, mSessionId, keyid, input, iv);
2372 @NonNull byte[] keyid, @NonNull byte[] input, @NonNull byte[] iv) {
2373 return decryptNative(MediaDrm.this, mSessionId, keyid, input, iv);
H A DMediaCodec.java2927 public byte[] iv;
3007 iv = newIV;
3045 for (int i = 0; i < iv.length; i++) {
3046 builder.append(hexdigits.charAt((iv[i] & 0xf0) >> 4)); in builder.append()
3047 builder.append(hexdigits.charAt(iv[i] & 0x0f));
/aosp14/frameworks/base/services/core/java/com/android/server/am/
H A DProcessStatsService.java416 for (int iv=0; iv<NVERS; iv++) { in readLF()
417 Slog.w(TAG, " Vers: " + vers.keyAt(iv)); in readLF()
418 ProcessStats.PackageState pkgState = vers.valueAt(iv); in readLF()
/aosp14/frameworks/base/core/res/geoid_height_map_assets/
H A Dtile-b.textpb2iv\321\266\220\2554\2550\2550\255FV\262qF)\010\246\021L\"\243\"\223\006\220\216*\"9\244#\212a\034\…
H A Dtile-1.textpb2 …323\307Zp\245\243\245<T\252\005L\253\212~)\245N)\244c\232\205\310\31593\216iv\347\255E\"c\245W9\00…
H A Dtile-9.textpb2 …L*2\264\302\264\302\264\322\264\322\224\302\224\302\264\322\264\322\264\233iv\322\355\245\305\000S…

12