Searched refs:iv (Results 1 - 25 of 80) sorted by relevance

1234

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
H A DQSIconViewImplTest.java55 ImageView iv = mock(ImageView.class);
57 when(iv.isShown()).thenReturn(true);
61 when(iv.getDrawable()).thenReturn(null);
62 mIconView.updateIcon(iv, s);
68 when(iv.getDrawable()).thenReturn(mock(Drawable.class));
69 mIconView.updateIcon(iv, s);
76 ImageView iv = mock(ImageView.class);
80 when(iv.isShown()).thenReturn(true);
82 mIconView.setIcon(iv, s);
83 verify(iv)
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
H A DQSIconViewImpl.java87 protected void updateIcon(ImageView iv, State state) { argument
88 if (!Objects.equals(state.icon, iv.getTag(R.id.qs_icon_tag))) {
89 boolean shouldAnimate = iv.isShown() && mAnimationEnabled
90 && iv.getDrawable() != null;
98 iv.setImageDrawable(d);
99 iv.setTag(R.id.qs_icon_tag, state.icon);
100 iv.setPadding(0, padding, 0, padding);
116 protected void setIcon(ImageView iv, QSTile.State state) { argument
117 updateIcon(iv, state);
119 iv
140 animateGrayScale(int fromColor, int toColor, ImageView iv) argument
159 setTint(ImageView iv, int color) argument
[all...]
/frameworks/base/services/core/java/com/android/server/accounts/
H A DCryptoHelper.java30 private static final String KEY_IV = "iv";
66 byte[] iv = cipher.getIV();
67 byte[] mac = createMac(encryptedBytes, iv);
72 encryptedBundle.putByteArray(KEY_IV, iv);
80 byte[] iv = bundle.getByteArray(KEY_IV);
83 if (!verifyMac(encryptedBytes, iv, mac)) {
88 IvParameterSpec ivSpec = new IvParameterSpec(iv);
102 private boolean verifyMac(@Nullable byte[] cipherArray, @Nullable byte[] iv, @Nullable byte[] macArray) argument
111 return constantTimeArrayEquals(macArray, createMac(cipherArray, iv));
115 private byte[] createMac(@NonNull byte[] cipher, @NonNull byte[] iv) throw argument
[all...]
/frameworks/rs/tests/java_api/MathErr/src/com/example/android/rs/matherr/
H A Dmath_err.rs23 int32_t iv;
32 (i) = gf_u.iv; \
40 sf_u.iv = (i); \
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DCellTileView.java43 protected void updateIcon(ImageView iv, State state) { argument
44 if (!Objects.equals(state.icon, iv.getTag(R.id.qs_icon_tag))) {
46 iv.setImageDrawable(mSignalDrawable);
47 iv.setTag(R.id.qs_icon_tag, state.icon);
/frameworks/av/drm/mediadrm/plugins/clearkey/
H A DAesCtrDecryptor.h33 android::status_t decrypt(const android::Vector<uint8_t>& key, const Iv iv,
H A DAesCtrDecryptor.cpp30 const Iv iv, const uint8_t* source,
43 memcpy(opensslIv, iv, sizeof(opensslIv));
29 decrypt(const android::Vector<uint8_t>& key, const Iv iv, const uint8_t* source, uint8_t* destination, const SubSample* subSamples, size_t numSubSamples, size_t* bytesDecryptedOut) argument
H A DCryptoPlugin.cpp35 ssize_t CryptoPlugin::decrypt(bool secure, const KeyId keyId, const Iv iv, argument
67 status_t res = mSession->decrypt(keyId, iv, srcPtr, dstPtr, subSamples,
H A DSession.cpp65 const KeyId keyId, const Iv iv, const void* source,
79 key, iv,
64 decrypt( const KeyId keyId, const Iv iv, const void* source, void* destination, const SubSample* subSamples, size_t numSubSamples, size_t* bytesDecryptedOut) argument
H A DCryptoPlugin.h46 bool secure, const KeyId keyId, const Iv iv,
H A DDrmPlugin.h186 const Vector<uint8_t>& iv,
189 input.size() == 0 || iv.size() == 0) {
200 const Vector<uint8_t>& iv,
203 input.size() == 0 || iv.size() == 0) {
182 encrypt( const Vector<uint8_t>& sessionId, const Vector<uint8_t>& keyId, const Vector<uint8_t>& input, const Vector<uint8_t>& iv, Vector<uint8_t>& output) argument
196 decrypt( const Vector<uint8_t>& sessionId, const Vector<uint8_t>& keyId, const Vector<uint8_t>& input, const Vector<uint8_t>& iv, Vector<uint8_t>& output) argument
H A DSession.h49 const KeyId keyId, const Iv iv, const void* source,
/frameworks/base/keystore/java/android/security/keystore/
H A DAndroidKeyStoreAuthenticatedAESCipherSpi.java100 byte[] iv = spec.getIV();
101 if (iv == null) {
103 } else if (iv.length != IV_LENGTH_BYTES) {
105 + iv.length + " bytes. Only " + IV_LENGTH_BYTES
116 setIv(iv);
156 byte[] iv = getIv();
157 if ((iv != null) && (iv.length > 0)) {
160 params.init(new GCMParameterSpec(mTagLengthBits, iv));
333 protected void setIv(byte[] iv) { argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_net_LocalSocketImpl.cpp188 struct iovec iv; local
195 memset(&iv, 0, sizeof(iv));
197 iv.iov_base = buf;
198 iv.iov_len = len;
200 msg.msg_iov = &iv;
290 struct iovec iv; local
291 memset(&iv, 0, sizeof(iv));
293 iv
[all...]
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayerDrm.h98 uint8_t iv[kBlockSize]; member in struct:android::NuPlayerDrm::CryptoInfo
107 uint8_t iv[kBlockSize],
H A DNuPlayerDrm.cpp236 uint8_t iv[kBlockSize],
251 memcpy(ret->iv, iv, kBlockSize);
311 const void *iv; local
313 if (meta->findData(kKeyCryptoIV, &type, &iv, &ivsize)) {
329 (uint8_t*) iv,
233 makeCryptoInfo( int numSubSamples, uint8_t key[kBlockSize], uint8_t iv[kBlockSize], CryptoPlugin::Mode mode, size_t *clearbytes, size_t *encryptedbytes) argument
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
H A Dshadows.rs103 int H,X,ih,is,iv;
125 iv=(int)cv;
128 X = ((iv*is)/k2)*(k2- abs(6*ih- 2*(H>>1)*k2 - k2)) ;
131 X=( (X+iv*(k1 - is ))/k1 + k3 ) >> ABITS;
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
H A Dshadows.rs103 int H,X,ih,is,iv;
125 iv=(int)cv;
128 X = ((iv*is)/k2)*(k2- abs(6*ih- 2*(H>>1)*k2 - k2)) ;
131 X=( (X+iv*(k1 - is ))/k1 + k3 ) >> ABITS;
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
H A Dshadows.rs103 int H,X,ih,is,iv;
125 iv=(int)cv;
128 X = ((iv*is)/k2)*(k2- abs(6*ih- 2*(H>>1)*k2 - k2)) ;
131 X=( (X+iv*(k1 - is ))/k1 + k3 ) >> ABITS;
/frameworks/rs/tests/java_api/ScriptGroupTest/src/com/android/rs/sgtest/
H A Dshadows_f.rs103 int H,X,ih,is,iv;
125 iv=(int)cv;
128 X = ((iv*is)/k2)*(k2- abs(6*ih- 2*(H>>1)*k2 - k2)) ;
131 X=( (X+iv*(k1 - is ))/k1 + k3 ) >> ABITS;
/frameworks/base/services/core/java/com/android/server/
H A DSyntheticPasswordCrypto.java59 byte[] iv = Arrays.copyOfRange(blob, 0, PROFILE_KEY_IV_SIZE);
63 cipher.init(Cipher.DECRYPT_MODE, key, new GCMParameterSpec(128, iv));
78 byte[] iv = cipher.getIV();
79 if (iv.length != PROFILE_KEY_IV_SIZE) {
80 throw new RuntimeException("Invalid iv length: " + iv.length);
83 outputStream.write(iv);
/frameworks/av/drm/libmediadrm/
H A DICrypto.cpp99 virtual ssize_t decrypt(const uint8_t key[16], const uint8_t iv[16], argument
116 if (iv == NULL) {
117 iv = kDummy;
121 data.write(iv, 16);
321 uint8_t iv[16]; local
322 data.read(iv, sizeof(iv));
393 result = decrypt(key, iv, mode, pattern, source, offset,
/frameworks/av/drm/mediadrm/plugins/clearkey/tests/
H A DAesCtrDecryptorUnittest.cpp33 status_t attemptDecrypt(const Key& key, const Iv& iv, const uint8_t* source, argument
40 return decryptor.decrypt(keyVector, iv, source, destination, subSamples,
45 void attemptDecryptExpectingSuccess(const Key& key, const Iv& iv, argument
52 ASSERT_EQ(android::OK, attemptDecrypt(key, iv, encrypted, outputBuffer,
70 Iv iv = { local
101 attemptDecryptExpectingSuccess<kTotalSize>(key, iv, encrypted, decrypted,
115 Iv iv = { local
147 attemptDecryptExpectingSuccess<kTotalSize>(key, iv, encrypted, decrypted,
161 Iv iv = { local
193 attemptDecryptExpectingSuccess<kTotalSize>(key, iv, encrypte
207 Iv iv = { local
256 Iv iv = { local
310 Iv iv = { local
365 Iv iv = { local
[all...]
/frameworks/av/include/media/
H A DCrypto.h52 virtual ssize_t decrypt(const uint8_t key[16], const uint8_t iv[16],
/frameworks/av/media/libmedia/include/media/
H A DCrypto.h52 virtual ssize_t decrypt(const uint8_t key[16], const uint8_t iv[16],

Completed in 468 milliseconds

1234