/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/common/testing/ |
D | FakeFileBackendTest.java | 38 @Rule public TemporaryUri tmpUri = new TemporaryUri(); field in FakeFileBackendTest 47 return tmpUri.newDirectoryUri(); in legalUriBase() 67 Uri uri = tmpUri.newUri(); in throwsExceptions_forRead() 80 Uri uri = tmpUri.newUri(); in throwsExceptions_forWrite() 92 Uri uri = tmpUri.newUri(); in throwsExceptions_forQuery() 93 Uri dir = tmpUri.newDirectoryUri(); in throwsExceptions_forQuery() 114 Uri uri = tmpUri.newUri(); in throwsExceptions_forManage() 115 Uri uri2 = tmpUri.newUri(); in throwsExceptions_forManage() 116 Uri dir = tmpUri.newDirectoryUri(); in throwsExceptions_forManage() 136 Uri uri = tmpUri.newUri(); in throwsExceptions_forAll()
|
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/openers/ |
D | ReadProtoOpenerTest.java | 47 @Rule public TemporaryUri tmpUri = new TemporaryUri(); field in ReadProtoOpenerTest 58 Uri uri = tmpUri.newUri(); in create_fromMessageParser_returnsOpenerWithCorrectGenericType() 70 Uri uri = tmpUri.newUri(); in create_fromMessageInstance_returnsOpenerWithCorrectGenericType() 82 Uri uri = tmpUri.newUri(); in open_readsFullProtoFromFile() 92 Uri uri = tmpUri.newUri(); in open_readsEmptyProtoFromFile() 100 Uri uri = tmpUri.newUriBuilder().withTransform(TransformProtos.DEFAULT_COMPRESS_SPEC).build(); in open_invokesTransforms() 108 Uri uri = tmpUri.newUri(); in open_throwsIOExceptionOnBadParse() 118 Uri uri = tmpUri.newUri(); in withRegistry_readsExtension() 134 Uri uri = tmpUri.newUri(); in withOutRegistry_failsToReadsExtension()
|
D | RecursiveSizeOpenerTest.java | 41 @Rule public TemporaryUri tmpUri = new TemporaryUri(); field in RecursiveSizeOpenerTest 50 Uri missing = tmpUri.newUri(); in open_nonExistentUri_throwsFileNotFoundException() 57 Uri file = tmpUri.newUri(); in open_file_throwsFileNotFoundException() 65 Uri dir = tmpUri.newDirectoryUri(); in open_emptyDirectory_returns0() 71 Uri dir = tmpUri.newDirectoryUri(); in open_nonEmptyDirectory_returnsSizeOfChildrenFiles() 84 Uri dir = tmpUri.newDirectoryUri(); in open_directoryTree_recurses() 106 Uri dir = tmpUri.newDirectoryUri(); in open_canFindChildRegardlessOfFilenameEncoding() 130 Uri dir = tmpUri.newDirectoryUri(); in open_returnsOnDiskSizeNotLogicalTransformedSize()
|
D | WriteProtoOpenerTest.java | 49 @Rule public TemporaryUri tmpUri = new TemporaryUri(); field in WriteProtoOpenerTest 59 Uri uri = tmpUri.newUri(); in writesProto() 68 Uri uri = tmpUri.newUri().buildUpon().encodedFragment("transform=compress").build(); in writesProto_withTransform() 78 Uri uri = tmpUri.newUri(); in failedWrite_noChange() 94 Uri uri = tmpUri.newUri(); in failedRename_noChange() 110 Uri uri1 = tmpUri.newUri(); in invokes_autoSync()
|
D | RecursiveDeleteOpenerTest.java | 42 @Rule public TemporaryUri tmpUri = new TemporaryUri(); field in RecursiveDeleteOpenerTest 49 Uri dir = tmpUri.newDirectoryUri(); in open_nonExistentUri_throwsException() 56 Uri file = tmpUri.newUri(); in open_file_deletesFile() 66 Uri dir = tmpUri.newDirectoryUri(); in open_emptyDirectory_deletesDirectory() 75 Uri dir = tmpUri.newDirectoryUri(); in open_nonEmptyDirectory_deletesChildrenThenDirectory() 92 Uri dir = tmpUri.newDirectoryUri(); in open_directoryTree_recursesMultipleLevels() 125 Uri dir = tmpUri.newDirectoryUri(); in open_suppressesExceptionsUntilEnd()
|
D | StreamMutationOpenerTest.java | 50 @Rule public TemporaryUri tmpUri = new TemporaryUri(); field in StreamMutationOpenerTest 61 Uri dirUri = tmpUri.newDirectoryUri(); in okIfFileDoesNotExist() 85 Uri uri = tmpUri.newDirectoryUri(); in willFailToOverwriteDirectory() 103 Uri uri = tmpUri.newUri(); in canMutate() 126 Uri uri = tmpUri.newUri(); in canMutate_butNotCommit() 148 Uri uri = tmpUri.newUri(); in canMutate_repeatedly() 177 Uri uri = tmpUri.newUri(); in canMutate_withSync() 201 Uri dirUri = tmpUri.newDirectoryUri(); in okIfFileDoesNotExist_withExclusiveLock() 230 Uri uri = tmpUri.newUri(); in canMutate_withExclusiveLock() 259 Uri dirUri = tmpUri.newDirectoryUri(); in rollsBack_afterIOException() [all …]
|
D | MappedByteBufferOpenerAndroidTest.java | 46 @Rule public TemporaryUri tmpUri = new TemporaryUri(); field in MappedByteBufferOpenerAndroidTest 58 Uri uri = tmpUri.newUri(); in succeedsWithSimplePath() 68 Uri uri = tmpUri.newUri(); in bufferIsReadOnly() 78 Uri uri = tmpUri.newUriBuilder().withTransform(TransformProtos.DEFAULT_COMPRESS_SPEC).build(); in failsWithTransform() 102 Uri uri = tmpUri.newUri(); in failsWithActiveMonitor() 119 Uri uri = tmpUri.newUri(); in succeedsWithInactiveMonitor()
|
D | ReadByteArrayOpenerTest.java | 39 @Rule public TemporaryUri tmpUri = new TemporaryUri(); field in ReadByteArrayOpenerTest 62 Uri uri = tmpUri.newUri(); in directFile_producesArray() 75 Uri uri = tmpUri.newUri(); in withMonitor_producesArray() 88 Uri uri = tmpUri.newUriBuilder().withTransform(TransformProtos.DEFAULT_COMPRESS_SPEC).build(); in withTransform_producesArray() 101 Uri uri = tmpUri.newUri(); in withFakeBackend_producesArray()
|
D | WriteByteArrayOpenerTest.java | 49 @Rule public TemporaryUri tmpUri = new TemporaryUri(); field in WriteByteArrayOpenerTest 75 Uri uri = tmpUri.newUri(); in directFile_writesArray() 85 Uri uri = tmpUri.newUri(); in directFile_writesArrayThatExceedsOsBufferSize() 95 Uri uri = tmpUri.newUri(); in withMonitor_writesArray() 105 Uri uri = tmpUri.newUriBuilder().withTransform(TransformProtos.DEFAULT_COMPRESS_SPEC).build(); in withTransform_producesArray() 128 Uri uri1 = tmpUri.newUri(); in invokes_autoSync()
|
D | SystemLibraryOpenerAndroidTest.java | 53 @Rule public TemporaryUri tmpUri = new TemporaryUri(); field in SystemLibraryOpenerAndroidTest 65 Uri uri = tmpUri.newUri(); in openFromFileWithoutCache_shouldLoad() 77 Uri uri = tmpUri.newUriBuilder().withTransform(TransformProtos.DEFAULT_COMPRESS_SPEC).build(); in openCompressedFromFileWithoutCache_shouldFail() 88 Uri uri = tmpUri.newUriBuilder().withTransform(TransformProtos.DEFAULT_COMPRESS_SPEC).build(); in openCompressedFromFileWithCache_shouldSucceed() 94 Uri cacheDir = tmpUri.getRootUri(); in openCompressedFromFileWithCache_shouldSucceed()
|
D | StringOpenerTest.java | 38 @Rule public TemporaryUri tmpUri = new TemporaryUri(); field in StringOpenerTest 48 Uri uri = tmpUri.newUri(); in withMonitor_writesString() 56 Uri uri = tmpUri.newUri(); in writesString_withDifferentCharsets() 70 Uri uri1 = tmpUri.newUri(); in invokes_autoSync()
|
D | ReadStreamOpenerTest.java | 43 @Rule public TemporaryUri tmpUri = new TemporaryUri(); field in ReadStreamOpenerTest 56 Uri uri = tmpUri.newUri(); in open_withoutTransforms_returnsRawBackendStream() 65 Uri uri = tmpUri.newUri(); in open_withBufferedIo_returnsBufferedInputStream()
|
D | ParcelFileDescriptorOpenerAndroidTest.java | 52 @Rule public TemporaryUri tmpUri = new TemporaryUri(); field in ParcelFileDescriptorOpenerAndroidTest 63 Uri uri = tmpUri.newUri(); in openParcelFileDescriptor_shouldReadFile() 87 Uri uri = tmpUri.newUri(); in openParcelFileDescriptor_withMonitor_shouldReadFile() 100 Uri uri = tmpUri.newUriBuilder().withTransform(TransformProtos.DEFAULT_COMPRESS_SPEC).build(); in openParcelFileDescriptor_withTransform_throwsUnsupportedOperation()
|
D | AssetFileDescriptorOpenerAndroidTest.java | 49 @Rule public TemporaryUri tmpUri = new TemporaryUri(); field in AssetFileDescriptorOpenerAndroidTest 58 Uri uri = tmpUri.newUri(); in openAssetFileDescriptor_shouldReadFile() 83 Uri uri = tmpUri.newUri(); in openAssetFileDescriptor_withMonitor_shouldReadFile()
|
D | IntegrityUriComputingOpenerTest.java | 42 @Rule public TemporaryUri tmpUri = new TemporaryUri(); field in IntegrityUriComputingOpenerTest 94 Uri uri = tmpUri.newUri(); in createTestFile()
|
D | NativeReadOpenerAndroidTest.java | 49 @Rule public TemporaryUri tmpUri = new TemporaryUri(); field in NativeReadOpenerAndroidTest 58 Uri uri = tmpUri.newUri(); in openForNativeRead_returnsAWorkingFileDescriptor()
|
D | StreamMutationOpenerAndroidTest.java | 57 @Rule public TemporaryUri tmpUri = new TemporaryUri(); field in StreamMutationOpenerAndroidTest 70 Uri dirUri = tmpUri.newDirectoryUri(); in interleaveMutations_withoutLocking_lacksIsolation() 132 Uri dirUri = tmpUri.newDirectoryUri(); in interleaveMutations_withLocking()
|
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/transforms/ |
D | IntegrityTransformTest.java | 54 @Rule public TemporaryUri tmpUri = new TemporaryUri(); field in IntegrityTransformTest 73 Uri uri = tmpUri.newUriBuilder().withTransform(TransformProtos.DEFAULT_INTEGRITY_SPEC).build(); in write_shouldComputeChecksum() 90 FileUri.Builder builder = tmpUri.newUriBuilder(); in consumeStream_shouldComputeChecksum() 107 FileUri.Builder builder = tmpUri.newUriBuilder(); in consumeStream_shouldBothVerifyAndComputeChecksum() 138 FileUri.Builder builder = tmpUri.newUriBuilder(); in readFully_shouldComputeChecksum() 158 FileUri.Builder builder = tmpUri.newUriBuilder(); in readWithWithPrematureClose_shouldComputeDifferentChecksum() 178 FileUri.Builder builder = tmpUri.newUriBuilder(); in read_shouldValidateChecksum() 206 FileUri.Builder builder = tmpUri.newUriBuilder(); in read_shouldValidateChecksumWithReadingOneByteAtATime() 228 FileUri.Builder builder = tmpUri.newUriBuilder(); in partialReadAndClose_shouldFailValidation()
|
D | BufferTransformTest.java | 49 @Rule public TemporaryUri tmpUri = new TemporaryUri(); field in BufferTransformTest 78 tmpUri.newUriBuilder().build().buildUpon().encodedFragment("transform=buffer").build(); in writeThenRead() 88 tmpUri.newUriBuilder().build().buildUpon().encodedFragment("transform=buffer").build(); in param_hasDefaultBufferSize() 103 tmpUri in param_controlsBufferSize() 123 tmpUri.newUriBuilder().build().buildUpon().encodedFragment("transform=buffer").build(); in write_buffers() 147 tmpUri.newUriBuilder().build().buildUpon().encodedFragment("transform=buffer").build(); in flush_emptiesBuffer()
|
D | CompressTransformTest.java | 45 @Rule public TemporaryUri tmpUri = new TemporaryUri(); field in CompressTransformTest 59 Uri uri = tmpUri.newUriBuilder().withTransform(TransformProtos.DEFAULT_COMPRESS_SPEC).build(); in counterWithCompress() 87 FileUri.Builder builder = tmpUri.newUriBuilder(); in compressGoldenFile()
|
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/common/ |
D | LockScopeTest.java | 45 @Rule public final TemporaryUri tmpUri = new TemporaryUri(); field in LockScopeTest 54 Uri uri = tmpUri.newUri(); in createWithSharedThreadLocks_sharesThreadLocksAcrossInstances() 66 Uri uri = tmpUri.newUri(); in createWithFailingThreadLocks_willFailToAcquireThreadLocks() 75 Uri uri = tmpUri.newUri(); in createFileLockSucceedsInSingleProcess()
|
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/samples/ |
D | SamplesTest.java | 52 @Rule public TemporaryUri tmpUri = new TemporaryUri(); field in SamplesTest 67 Uri uri = tmpUri.newUri().buildUpon().encodedFragment("transform=capitalize+base64").build(); in capitalizeAndBase64ShouldRoundTrip() 94 tmpUri.newUri().buildUpon().encodedFragment("transform=capitalize+base64+compress").build(); in capitalizeAndBase64AndCompressShouldRoundTrip() 102 Uri uri = tmpUri.newUri().buildUpon().scheme("base64").build(); in base64BackendShouldRoundTrip() 111 Uri uri = tmpUri.newUri().buildUpon().encodedFragment("transform=capitalize").build(); in capitalizationTransform_shouldBeSizable()
|
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/integration/downloader/ |
D | DownloadDestinationOpenerTest.java | 62 @Rule public TemporaryUri tmpUri = new TemporaryUri(); field in DownloadDestinationOpenerTest 87 Uri fileUri = tmpUri.newUri(); in opener_withNoExistingData_createsNewMetadata() 102 Uri fileUri = tmpUri.newUri(); in opener_withNoExistingData_writes() 135 Uri fileUri = tmpUri.newUri(); in opener_withExistingData_usesExistingMetadata() 156 Uri fileUri = tmpUri.newUri(); in opener_withExistingData_writes() 198 Uri fileUri = tmpUri.newUri(); in opener_clearsMetadataAndData()
|
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/downloader/offroad/ |
D | Offroad2FileDownloaderTest.java | 128 public TemporaryUri tmpUri = new TemporaryUri(); field in Offroad2FileDownloaderTest 195 Uri fileUri = tmpUri.newUri(); in testStartDownloading_downloadConditionsNull_usesWifiOnly() 232 Uri fileUri = tmpUri.newUri(); in testStartDownloading_wifi() 277 Uri fileUri = tmpUri.newUri(); in testStartDownloading_wifi_notSettingTrafficTag() 302 Uri fileUri = tmpUri.newUri(); in testStartDownloading_extraHttpHeaders() 332 Uri fileUri = tmpUri.newUri(); in testStartDownloading_cellular() 361 Uri fileUri = tmpUri.newUri(); in testStartDownloading_failed() 384 Uri fileUri = tmpUri.newUri(); in testStartDownloading_whenPartialFile_whenMetadataNotPresent_getsFullFile() 425 Uri fileUri = tmpUri.newUri(); in testStartDownloading_whenPartialFile_whenMetadataPresent_reusesPartialFile() 470 Uri fileUri = tmpUri.newUriBuilder().appendPath("unique").build(); in testCancelDownload_notFinishedFuture() [all …]
|
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/behaviors/ |
D | SyncingBehaviorAndroidTest.java | 40 @Rule public TemporaryUri tmpUri = new TemporaryUri(); field in SyncingBehaviorAndroidTest 52 tmpUri in syncing_sync()
|