Home
last modified time | relevance | path

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

/development/samples/BrokenKeyDerivation/src/com/example/android/brokenkeyderivation/
DBrokenKeyDerivationActivity.java158 byte[] data, SecretKey key, byte[] iv, boolean isEncrypt) { in encryptOrDecrypt() argument
162 new IvParameterSpec(iv)); in encryptOrDecrypt()
169 private static byte[] encryptData(byte[] data, byte[] iv, SecretKey key) { in encryptData() argument
170 return encryptOrDecrypt(data, key, iv, true); in encryptData()
173 private static byte[] decryptData(byte[] data, byte[] iv, SecretKey key) { in decryptData() argument
174 return encryptOrDecrypt(data, key, iv, false); in decryptData()
208 byte[] iv = new byte[IV_SIZE]; in retrieveIv()
211 readFromFileOrCreateRandom("iv", iv); in retrieveIv()
212 return iv; in retrieveIv()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DDialogActivity.java70 ImageView iv = new ImageView(DialogActivity.this);
71 iv.setImageDrawable(getResources().getDrawable(R.drawable.icon48x48_1));
72 iv.setPadding(4, 4, 4, 4);
73 layout.addView(iv);
/development/samples/browseable/ShareActionProvider/src/com.example.android.shareactionprovider/
DMainActivity.java140 ImageView iv = (ImageView) mInflater
144 iv.setImageURI(item.getContentUri());
147 container.addView(iv);
148 return iv;
/development/samples/Vault/src/com/example/android/vault/
DEncryptedDocument.java277 final IvParameterSpec ivSpec = new IvParameterSpec(section.iv); in readSection()
317 mRandom.nextBytes(section.iv); in writeSection()
319 final IvParameterSpec ivSpec = new IvParameterSpec(section.iv); in writeSection()
360 final byte[] iv = new byte[DATA_KEY_LENGTH]; field in EncryptedDocument.Section
365 f.readFully(iv); in read()
371 f.write(iv); in write()
/development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/
DRecipeListAdapter.java123 ImageView iv = (ImageView) view.findViewById(R.id.imageView); in getView() local
128 iv.setImageBitmap(item.image); in getView()
130 iv.setImageDrawable(mContext.getResources().getDrawable(R.drawable.ic_noimage)); in getView()
DRecipeActivity.java119 ImageView iv = (ImageView) view.findViewById(R.id.stepImageView); in displayRecipe() local
121 iv.setVisibility(View.GONE); in displayRecipe()
124 iv.setImageBitmap(stepImage); in displayRecipe()
/development/samples/browseable/NavigationDrawer/src/com.example.android.navigationdrawer/
DNavigationDrawerActivity.java238 ImageView iv = ((ImageView) rootView.findViewById(R.id.image)); in onCreateView() local
239 iv.setImageResource(imageId); in onCreateView()