Home
last modified time | relevance | path

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

/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/common/testing/
DBackendTestBase.java21 …ic com.google.android.libraries.mobiledatadownload.file.common.testing.StreamUtils.readFileInBytes;
169 assertThat(readFileInBytes(storage, uri)).isEqualTo(TEST_CONTENT); in openForRead_readsWrittenContent()
210 assertThat(readFileInBytes(storage, uri)).isEqualTo(TEST_CONTENT); in openForWrite_overwritesExistingContent()
235 assertThat(readFileInBytes(storage(), uri)).isEqualTo(TEST_CONTENT); in openForWrite_returnsFileConvertible()
256 assertThat(readFileInBytes(storage, uri)).isEqualTo(Bytes.concat(OTHER_CONTENT, TEST_CONTENT)); in openForAppend_appendsContent()
271 assertThat(readFileInBytes(storage(), uri)) in openForAppend_returnsFileConvertible()
313 assertThat(readFileInBytes(storage, uri2)).isEqualTo(OTHER_CONTENT); in rename_renamesFile()
314 assertThat(readFileInBytes(storage, uri3)).isEqualTo(TEST_CONTENT); in rename_renamesFile()
DStreamUtils.java88 public static byte[] readFileInBytes(SynchronousFileStorage storage, Uri uri) throws IOException { in readFileInBytes() method in StreamUtils
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/backends/
DAndroidFileBackendTest.java20 …ic com.google.android.libraries.mobiledatadownload.file.common.testing.StreamUtils.readFileInBytes;
127 assertThat(readFileInBytes(storage(), uri)).isEqualTo(TEST_CONTENT); in openForWrite_shouldUseContextAuthorityIfWithoutAuthority()
141 assertThat(readFileInBytes(storage(), from)).isEqualTo(TEST_CONTENT); in rename_shouldNotRenameAcrossAuthority()
164 assertThat(readFileInBytes(storage(), uri)).isEqualTo(TEST_CONTENT); in openForRead_directBootFilesOnNShouldUseDeviceProtectedStorageContext()
187 assertThat(readFileInBytes(storage(), uri)).isEqualTo(TEST_CONTENT); in openForRead_directBootCacheOnNShouldUseDeviceProtectedStorageContext()
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/
DTwoStepPopulator.java71 step1Content = new String(StreamUtils.readFileInBytes(fileStorage, fileUri), UTF_8); in refreshFileGroups()