Home
last modified time | relevance | path

Searched refs:mParcelFileDescriptor (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/packages/BackupEncryption/test/unittest/src/com/android/server/backup/encryption/transport/
DIntermediateEncryptingTransportTest.java62 @Mock private ParcelFileDescriptor mParcelFileDescriptor; field in IntermediateEncryptingTransportTest
112 mIntermediateEncryptingTransport.performBackup(mTestPackage, mParcelFileDescriptor, 0); in testPerformBackup_shouldEncryptTrue_encryptsDataAndPassesToDelegate()
115 .encryptKeyValueData(eq(TEST_PACKAGE_NAME), eq(mParcelFileDescriptor), any()); in testPerformBackup_shouldEncryptTrue_encryptsDataAndPassesToDelegate()
126 mIntermediateEncryptingTransport.performBackup(mTestPackage, mParcelFileDescriptor, 0); in testPerformBackup_shouldEncryptFalse_doesntEncryptDataAndPassedToDelegate()
130 .performBackup(eq(mTestPackage), eq(mParcelFileDescriptor), eq(0)); in testPerformBackup_shouldEncryptFalse_doesntEncryptDataAndPassedToDelegate()
140 mIntermediateEncryptingTransport.getRestoreData(mParcelFileDescriptor); in testGetRestoreData_shouldEncryptTrue_decryptsDataAndPassesToDelegate()
143 .decryptKeyValueData(eq(TEST_PACKAGE_NAME), any(), eq(mParcelFileDescriptor)); in testGetRestoreData_shouldEncryptTrue_decryptsDataAndPassesToDelegate()
155 mIntermediateEncryptingTransport.getRestoreData(mParcelFileDescriptor); in testGetRestoreData_shouldEncryptFalse_doesntDecryptDataAndPassesToDelegate()
158 verify(mRealTransport, times(1)).getRestoreData(eq(mParcelFileDescriptor)); in testGetRestoreData_shouldEncryptFalse_doesntDecryptDataAndPassesToDelegate()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DInstallTask.java43 private ParcelFileDescriptor mParcelFileDescriptor; field in InstallTask
58 mParcelFileDescriptor = parcelFileDescriptor; in InstallTask()
130 if (mParcelFileDescriptor == null || mParcelFileDescriptor.getFileDescriptor() == null) { in writeToOutputStreamFromAsset()
140 inputStream = new ParcelFileDescriptor.AutoCloseInputStream(mParcelFileDescriptor); in writeToOutputStreamFromAsset()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/
DEncryptedKvRestoreTaskTest.java73 @Mock private ParcelFileDescriptor mParcelFileDescriptor; field in EncryptedKvRestoreTaskTest
107 task.getRestoreData(mParcelFileDescriptor); in testGetRestoreData_writesPairsToOutputInOrder()
120 assertThrows(IOException.class, () -> task.getRestoreData(mParcelFileDescriptor)); in testGetRestoreData_exceptionDuringDecryption_throws()
126 assertThrows(IOException.class, () -> task.getRestoreData(mParcelFileDescriptor)); in testGetRestoreData_exceptionDuringDownload_throws()
132 assertThrows(InvalidKeyException.class, () -> task.getRestoreData(mParcelFileDescriptor)); in testGetRestoreData_exceptionDuringDecryption_deletesTemporaryFiles()
139 assertThrows(IOException.class, () -> task.getRestoreData(mParcelFileDescriptor)); in testGetRestoreData_exceptionDuringDownload_deletesTemporaryFiles()
/frameworks/base/packages/BackupEncryption/test/robolectric-integration/src/com/android/server/backup/encryption/
DRoundTripTest.java116 @Mock private ParcelFileDescriptor mParcelFileDescriptor; field in RoundTripTest
175 mParcelFileDescriptor, in performNonIncrementalKeyValueBackup()
210 restoreTask.getRestoreData(mParcelFileDescriptor); in performKeyValueRestore()