Home
last modified time | relevance | path

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

12

/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeEncryptedPayloadBody.java157 byte[] iv, in IkeEncryptedPayloadBody() argument
161 mIv = iv; in IkeEncryptedPayloadBody()
171 iv, in IkeEncryptedPayloadBody()
188 iv, in IkeEncryptedPayloadBody()
197 iv, in IkeEncryptedPayloadBody()
218 byte[] iv, in generateOutboundChecksum() argument
225 + iv.length in generateOutboundChecksum()
237 authenticatedSectionBuffer.put(skfHeaderBytes).put(iv).put(encryptedAndPaddedData); in generateOutboundChecksum()
266 byte[] iv, in normalModeEncrypt() argument
271 return encryptCipher.encrypt(paddedData, encryptionKey, iv); in normalModeEncrypt()
[all …]
/packages/apps/Car/Dialer/src/com/android/car/dialer/storage/
DCipherConverter.java83 byte[] iv = new byte[ivLength]; in decrypt()
84 byteArrayInputStream.read(iv, 0, ivLength); in decrypt()
89 cipher.init(Cipher.DECRYPT_MODE, decryptionKey, new GCMParameterSpec(128, iv)); in decrypt()
132 byte[] iv = cipher.getIV(); in encrypt()
134 outputStream.write(iv.length); in encrypt()
135 outputStream.write(iv); in encrypt()
/packages/apps/Gallery2/jni/filters/
Dhsv.c87 int H,X,ih,is,iv; in hsv2rgb() local
109 iv=(int)cv; in hsv2rgb()
112 X = ((iv*is)/k2)*(k2- abs(6*ih- 2*(H>>1)*k2 - k2)) ; in hsv2rgb()
115 X=( (X+iv*(k1 - is ))/k1 + k3 ) >> ABITS; in hsv2rgb()
/packages/apps/Settings/src/com/android/settings/applications/
DProcStatsData.java278 for (int iv = 0; iv < vpkgs.size(); iv++) { in getProcs()
279 final ProcessStats.PackageState st = vpkgs.valueAt(iv); in getProcs()
319 for (int iv = 0; iv < vpkgs.size(); iv++) { in getProcs()
320 ProcessStats.PackageState ps = vpkgs.valueAt(iv); in getProcs()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DEncryptedData.java31 public EncryptedData(byte[] encryptedData, byte[] iv) { in EncryptedData() argument
33 Preconditions.checkNotNull(iv); in EncryptedData()
35 mIv = iv; in EncryptedData()
DXmlUtil.java1547 byte[] iv = null; in parseFromXml()
1561 iv = (byte[]) value; in parseFromXml()
1568 return new EncryptedData(encryptedData, iv); in parseFromXml()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppTransferAdapter.java70 ImageView iv = (ImageView) view.findViewById(R.id.transfer_icon); in bindView() local
74 iv.setImageResource(android.R.drawable.stat_notify_error); in bindView()
77 iv.setImageResource(android.R.drawable.stat_sys_upload_done); in bindView()
79 iv.setImageResource(android.R.drawable.stat_sys_download_done); in bindView()
/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenModeConversationsImagePreferenceController.java109 ImageView iv = new ImageView(mContext); in updateState() local
110 iv.setImageDrawable(mConversationDrawables.get(i)); in updateState()
111 iv.setLayoutParams(new ViewGroup.LayoutParams(mIconSizePx, mIconSizePx)); in updateState()
114 fl.addView(iv); in updateState()
/packages/apps/Gallery2/src/com/android/photos/adapters/
DPhotoThumbnailAdapter.java49 ImageView iv = (ImageView) view.findViewById(R.id.thumbnail); in bindView() local
50 Drawable recycle = iv.getDrawable(); in bindView()
53 iv.setImageDrawable(drawable); in bindView()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/crypto/
DIkeCipher.java192 byte[] iv = new byte[getIvLen()]; in generateIv()
193 new SecureRandom().nextBytes(iv); in generateIv()
194 return iv; in generateIv()
DIkeNormalModeCipher.java81 IvParameterSpec iv = new IvParameterSpec(nonce); in doCipherAction() local
82 mCipher.init(opmode, key, iv); in doCipherAction()
DAesXCbcImpl.java141 IvParameterSpec iv = new IvParameterSpec(new byte[AES_CBC_IV_LEN]); in encryptAesBlock() local
147 Cipher.ENCRYPT_MODE, new SecretKeySpec(keyBytes, mCipher.getAlgorithm()), iv); in encryptAesBlock()
/packages/apps/Stk/src/com/android/stk/
DToneDialog.java66 ImageView iv = (ImageView) dialogView.findViewById(R.id.icon); in onCreate() local
76 iv.setImageResource(com.android.internal.R.drawable.ic_volume); in onCreate()
78 iv.setImageBitmap(toneMsg.icon); in onCreate()
DStkDialogActivity.java134 ImageView iv = (ImageView) dialogView.findViewById(R.id.icon); in onCreate() local
137 iv.setImageBitmap(mTextMsg.icon); in onCreate()
139 iv.setVisibility(View.GONE); in onCreate()
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DPacketUtils.java394 byte[] iv = new byte[AES_CBC_IV_LEN]; in getCiphertext()
395 new SecureRandom().nextBytes(iv); in getCiphertext()
396 IvParameterSpec ivParameterSpec = new IvParameterSpec(iv); in getCiphertext()
406 cipherText.put(iv); in getCiphertext()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DPacketUtils.java517 public void updateIv(byte[] iv) { in updateIv() argument
518 this.mIv = iv; in updateIv()
540 final byte[] iv = new byte[ivLen]; in getIv()
541 new SecureRandom().nextBytes(iv); in getIv()
542 return iv; in getIv()
DIpSecAlgorithmImplTest.java184 final byte[] iv = in runTest()
190 mEspCipher.updateIv(iv); in runTest()
/packages/apps/Gallery2/src/com/android/photos/
DAlbumFragment.java90 ImageView iv = (ImageView) mHeaderView.findViewById(R.id.album_header_image); in updateHeaderView() local
98 iv.setImageDrawable(mLoaderCompatShim.drawableForItem(mAdapter.getItem(0), null)); in updateHeaderView()
/packages/apps/Settings/src/com/android/settings/notification/app/
DBubblePreference.java158 ButtonViewHolder(View v, ImageView iv, TextView tv, int identifier) { in ButtonViewHolder() argument
160 mImageView = iv; in ButtonViewHolder()
/packages/apps/Gallery/src/com/android/camera/
DGalleryPicker.java923 GalleryPickerItem iv =
926 iv.setOverlay(item.getOverlay());
928 iv.setImageBitmap(item.mThumbBitmap);
932 iv.setImageResource(android.R.color.transparent);
DViewImage.java978 for (ImageViewTouchBase iv : mSlideShowImageViews) { in onStop()
979 iv.clear(); in onStop()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDragView.java596 ImageView iv = new ImageView(context); in getViewFromDrawable() local
597 iv.setImageDrawable(drawable); in getViewFromDrawable()
598 return iv; in getViewFromDrawable()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiConfigStoreTest.java873 byte[] iv = new byte[0]; in testReadVersion2StoreFile()
876 random.nextBytes(iv); in testReadVersion2StoreFile()
903 HexEncoding.encodeToString(iv), in testReadVersion2StoreFile()
908 HexEncoding.encodeToString(iv), in testReadVersion2StoreFile()
/packages/apps/RemoteProvisioner/tests/unittests/src/com/android/remoteprovisioner/unittest/
DSystemInterfaceTest.java298 byte[] iv = ((ByteString) unprotectedHeaders.get(new UnsignedInteger(5))).getBytes(); in testDecryptProtectedPayload()
310 new GCMParameterSpec(128 /* iv length */, iv)); in testDecryptProtectedPayload()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeMessageTest.java865 byte[] iv = new byte[IKE_AUTH_CIPHER_IV_SIZE]; in testEncodeAndEncryptFragments()
867 doReturn(iv).when(mMockCipher).generateIv(); in testEncodeAndEncryptFragments()
934 .encrypt(any(), eq(encryptionKey), eq(iv)); in testEncodeAndEncryptFragments()

12