/development/samples/Vault/tests/src/com/example/android/vault/ |
D | EncryptedDocumentTest.java | 46 private File mFile; field in EncryptedDocumentTest 62 mFile = new File(getContext().getFilesDir(), "meow"); in setUp() 75 mFile.createNewFile(); in testEmptyFile() 76 final EncryptedDocument doc = new EncryptedDocument(4, mFile, mDataKey, mMacKey); in testEmptyFile() 105 final EncryptedDocument doc = new EncryptedDocument(4, mFile, mDataKey, mMacKey); in testMetadataAndContents() 159 final EncryptedDocument doc = new EncryptedDocument(4, mFile, mDataKey, mMacKey); in testNormalMetadataOnly() 179 final EncryptedDocument doc1 = new EncryptedDocument(1, mFile, mDataKey, mMacKey); in testCopiedFile() 180 final EncryptedDocument doc4 = new EncryptedDocument(4, mFile, mDataKey, mMacKey); in testCopiedFile() 196 final EncryptedDocument doc = new EncryptedDocument(4, mFile, mDataKey, mMacKey); in testBitTwiddle() 203 final RandomAccessFile f = new RandomAccessFile(mFile, "rw"); in testBitTwiddle() [all …]
|
/development/tools/rmtypedefs/src/com/android/tools/rmtypedefs/ |
D | RmTypeDefs.java | 239 for (File mFile : mAnnotationClassFiles) { in deleteAnnotationClasses() 242 System.out.println("Would delete " + mFile); in deleteAnnotationClasses() 244 System.out.println("Deleting " + mFile); in deleteAnnotationClasses() 248 boolean deleted = mFile.delete(); in deleteAnnotationClasses() 250 System.err.println("Could not delete " + mFile); in deleteAnnotationClasses() 264 private File mFile; field in RmTypeDefs.TypeDefVisitor 280 mFile = file; in TypeDefVisitor() 316 System.err.println(mFile + ": Warning: Annotation should be annotated " 321 addTypeDef(mName, mFile);
|
/development/samples/Vault/src/com/example/android/vault/ |
D | EncryptedDocument.java | 88 private final File mFile; field in EncryptedDocument 114 mFile = file; in EncryptedDocument() 120 return mFile; in getFile() 125 return mFile.getName(); in toString() 136 final RandomAccessFile f = new RandomAccessFile(mFile, "r"); in readMetadata() 180 final RandomAccessFile f = new RandomAccessFile(mFile, "r"); in readContent() 214 final String tempName = mFile.getName() + ".tmp_" + Thread.currentThread().getId(); in writeMetadataAndContent() 215 final File tempFile = new File(mFile.getParentFile(), tempName); in writeMetadataAndContent() 254 tempFile.renameTo(mFile); in writeMetadataAndContent()
|
/development/samples/browseable/Camera2Basic/src/com.example.android.camera2basic/ |
D | Camera2BasicFragment.java | 235 private File mFile; field in Camera2BasicFragment 246 mBackgroundHandler.post(new ImageSaver(reader.acquireNextImage(), mFile)); 437 mFile = new File(getActivity().getExternalFilesDir(null), "pic.jpg"); in onActivityCreated() 838 showToast("Saved: " + mFile); in captureStillPicture() 839 Log.d(TAG, mFile.toString()); in captureStillPicture() 925 private final File mFile; field in Camera2BasicFragment.ImageSaver 929 mFile = file; in ImageSaver() 939 output = new FileOutputStream(mFile); in run()
|
/development/samples/browseable/Camera2Raw/src/com.example.android.camera2raw/ |
D | Camera2RawFragment.java | 1332 private final File mFile; field in Camera2RawFragment.ImageSaver 1358 mFile = file; in ImageSaver() 1376 output = new FileOutputStream(mFile); in run() 1391 output = new FileOutputStream(mFile); in run() 1413 MediaScannerConnection.scanFile(mContext, new String[]{mFile.getPath()}, in run() 1436 private File mFile; field in Camera2RawFragment.ImageSaver.ImageSaverBuilder 1468 mFile = file; in setFile() 1489 return new ImageSaver(mImage, mFile, mCaptureResult, mCharacteristics, mContext, in buildIfComplete() 1494 return (mFile == null) ? "Unknown" : mFile.toString(); in getSaveLocation() 1498 return mImage != null && mFile != null && mCaptureResult != null in isComplete()
|