/aosp_15_r20/external/apache-commons-io/src/test/java/org/apache/commons/io/input/ |
H A D | MemoryMappedFileInputStreamTest.java | 61 private Path createTestFile(final int size) throws IOException { in createTestFile() method in MemoryMappedFileInputStreamTest 76 final Path file = createTestFile(1024 * 1024); in testAlternateBufferSize() 89 final Path file = createTestFile(0); in testEmptyFile() 100 final Path file = createTestFile(1024 * 1024); in testLargerFile() 113 final Path file = createTestFile(1 * 1024 * 1024); in testReadAfterClose() 126 final Path file = createTestFile(2); in testReadSingleByte() 141 final Path file = createTestFile(100); in testSkipAtStart() 156 final Path file = createTestFile(0); in testSkipEmpty() 168 final Path file = createTestFile(100); in testSkipInCurrentBuffer() 185 final Path file = createTestFile(10); in testSkipNoop() [all …]
|
/aosp_15_r20/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/ |
D | PersistAtomsStorageTest.java | 1778 createTestFile(0L); in loadAtoms_pullTimeMissing() 1796 createTestFile(/* lastPullTimeMillis= */ 100L); in loadAtoms_validContents() 1829 createTestFile(START_TIME_MILLIS); in addVoiceCallSession_withExistingCalls() 1902 createTestFile(START_TIME_MILLIS); in addVoiceCallRatUsage_withExistingUsages() 1939 createTestFile(START_TIME_MILLIS); in getVoiceCallRatUsages_tooFrequent() 1952 createTestFile(START_TIME_MILLIS); in getVoiceCallRatUsages_withSavedAtoms() 1988 createTestFile(START_TIME_MILLIS); in getVoiceCallSessions_tooFrequent() 2001 createTestFile(START_TIME_MILLIS); in getVoiceCallSessions_withSavedAtoms() 2084 createTestFile(START_TIME_MILLIS); in addCellularServiceStateAndCellularDataServiceSwitch_updateExistingEntries() 2154 createTestFile(START_TIME_MILLIS); in getCellularDataServiceSwitches_tooFrequent() [all …]
|
/aosp_15_r20/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/datasource/src/test/java/com/google/android/exoplayer2/upstream/cache/ |
H A D | SimpleCacheSpanTest.java | 18 import static com.google.android.exoplayer2.testutil.TestUtil.createTestFile; 80 File v3file = createTestFile(cacheDir, id + ".0.1.v3.exo"); in upgradeFileName() 81 File v2file = createTestFile(cacheDir, "abc%25def.1.2.v2.exo"); // %25 is '%' after escaping in upgradeFileName() 82 File wrongEscapedV2file = createTestFile(cacheDir, "abc%2Gdef.3.4.v2.exo"); // 2G is invalid hex in upgradeFileName() 83 File v1File = createTestFile(cacheDir, "abc%def.5.6.v1.exo"); // V1 did not escape in upgradeFileName() 127 createTestFile(cacheFile, /* length= */ 1); in assertCacheSpan()
|
H A D | CachedContentIndexTest.java | 18 import static com.google.android.exoplayer2.testutil.TestUtil.createTestFile; 242 createTestFile(cacheSpanFile, cacheFileLength); in addGetRemove() 424 createTestFile(cacheFile, cacheFileLength); in cantRemoveNotEmptyCachedContent()
|
/aosp_15_r20/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/datasource/src/test/java/com/google/android/exoplayer2/upstream/cache/ |
H A D | SimpleCacheSpanTest.java | 18 import static com.google.android.exoplayer2.testutil.TestUtil.createTestFile; 80 File v3file = createTestFile(cacheDir, id + ".0.1.v3.exo"); in upgradeFileName() 81 File v2file = createTestFile(cacheDir, "abc%25def.1.2.v2.exo"); // %25 is '%' after escaping in upgradeFileName() 82 File wrongEscapedV2file = createTestFile(cacheDir, "abc%2Gdef.3.4.v2.exo"); // 2G is invalid hex in upgradeFileName() 83 File v1File = createTestFile(cacheDir, "abc%def.5.6.v1.exo"); // V1 did not escape in upgradeFileName() 127 createTestFile(cacheFile, /* length= */ 1); in assertCacheSpan()
|
H A D | CachedContentIndexTest.java | 18 import static com.google.android.exoplayer2.testutil.TestUtil.createTestFile; 242 createTestFile(cacheSpanFile, cacheFileLength); in addGetRemove() 424 createTestFile(cacheFile, cacheFileLength); in cantRemoveNotEmptyCachedContent()
|
/aosp_15_r20/tools/tradefederation/core/util_apps/ContentProvider/androidTest/src/android/tradefed/contentprovider/ |
D | ManagedFileContentProviderTest.java | 103 createTestFile(mTestDir); in createTestDirectories() 106 private void createTestFile(File parentDir) throws Exception { in createTestFile() method in ManagedFileContentProviderTest 116 createTestFile(Environment.getExternalStorageDirectory()); in testDelete() 147 createTestFile(Environment.getExternalStorageDirectory()); in testQueryForFile() 186 createTestFile(Environment.getExternalStorageDirectory()); in testQueryForFile_sdcard()
|
/aosp_15_r20/packages/services/Mms/tests/unittests/src/com/android/mms/service/metrics/ |
D | PersistMmsAtomsStorageTest.java | 187 createTestFile(0L); in loadAtoms_pullTimeMissing() 202 createTestFile(100L); in loadAtoms_validContents() 251 createTestFile(START_TIME_MILLIS); in addIncomingMms_updateExistingEntries() 312 createTestFile(START_TIME_MILLIS); in getIncomingMms_tooFrequent() 326 createTestFile(START_TIME_MILLIS); in getIncomingMms_withSavedAtoms() 391 createTestFile(START_TIME_MILLIS); in addOutgoingMms_updateExistingEntries() 453 createTestFile(START_TIME_MILLIS); in getOutgoingMms_tooFrequent() 467 createTestFile(START_TIME_MILLIS); in getOutgoingMms_withSavedAtoms() 694 private void createTestFile(long lastPullTimeMillis) throws Exception { in createTestFile() method in PersistMmsAtomsStorageTest
|
/aosp_15_r20/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/openers/ |
H A D | IntegrityUriComputingOpenerTest.java | 56 Uri initialUri = createTestFile(ORIGTEXT); in integrityUriComputingOpener_shouldProduceCorrectChecksum() 71 Uri initialUri = TransformProtoFragments.addOrReplaceTransform(createTestFile(ORIGTEXT), spec); in integrityUriComputingOpener_shouldIgnoreIncorrectInitialSpec() 86 Uri initialUri = TransformProtoFragments.addOrReplaceTransform(createTestFile(ORIGTEXT), spec); in integrityUriComputingOpener_shouldIgnoreIntegrityParamWithNoSubparam() 93 private Uri createTestFile(String contents) throws Exception { in createTestFile() method in IntegrityUriComputingOpenerTest
|
/aosp_15_r20/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/ |
D | DownloadServiceTest.kt | 247 private fun createTestFile(extension: String = ".png"): File { in createTestFile() method in com.android.captiveportallogin.DownloadServiceTest 289 val testFile1 = createTestFile() in makeFileUri() 290 val testFile2 = createTestFile() in makeFileUri() 417 val outTextFile = createTestFile(extension = ".$TEST_TEXT_FILE_EXTENSION") in testDirectlyOpenMimeType_cancelTask() 444 private fun createTestDirectlyOpenFile() = createTestFile(extension = ".wificonfig") in createTestDirectlyOpenFile() 481 val testFile = createTestFile(extension = ".$TEST_TEXT_FILE_EXTENSION") in testTapDoneNotification()
|
/aosp_15_r20/external/skia/infra/bots/task_drivers/codesize/ |
H A D | codesize_test.go | 184 createTestFile(t, filepath.Join("build", "dm_stripped"), "This has 17 bytes") 185 createTestFile(t, filepath.Join("build_nopatch", "dm_stripped"), "This has 23 bytes total") 231 func createTestFile(t *testing.T, path, contents string) { func 355 createTestFile(t, filepath.Join("build", "dm_stripped"), "This has 17 bytes") 356 createTestFile(t, filepath.Join("build_nopatch", "dm_stripped"), "This has 23 bytes total")
|
/aosp_15_r20/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
H A D | TestUtil.java | 133 public static File createTestFile(File directory, String name) throws IOException { in createTestFile() method in TestUtil 134 return createTestFile(directory, name, /* length= */ 1); in createTestFile() 138 public static File createTestFile(File directory, String name, long length) throws IOException { in createTestFile() method in TestUtil 139 return createTestFile(new File(directory, name), length); in createTestFile() 143 public static File createTestFile(File file, long length) throws IOException { in createTestFile() method in TestUtil
|
/aosp_15_r20/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
H A D | TestUtil.java | 133 public static File createTestFile(File directory, String name) throws IOException { in createTestFile() method in TestUtil 134 return createTestFile(directory, name, /* length= */ 1); in createTestFile() 138 public static File createTestFile(File directory, String name, long length) throws IOException { in createTestFile() method in TestUtil 139 return createTestFile(new File(directory, name), length); in createTestFile() 143 public static File createTestFile(File file, long length) throws IOException { in createTestFile() method in TestUtil
|
/aosp_15_r20/cts/tests/tests/security/src/android/security/cts/ |
H A D | FileIntegrityManagerTest.java | 180 createTestFile(file); in testEnableAndMeasureFsVerityByFile() 197 createTestFile(file); in testFailToEnableUnsupportedLocation() 227 createTestFile(file); in testMeasureWithoutFsVerity() 234 private void createTestFile(File file) throws IOException { in createTestFile() method in FileIntegrityManagerTest
|
/aosp_15_r20/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/ |
H A D | Helper.java | 50 file = createTestFile(testName, "sreenshot.png", targetFolder); in takeScreenshotAndSave() 68 file = createTestFile(testName, "dumpsys.txt", targetFolder); in dumpsysAndSave() 93 private static File createTestFile(String testName, String name, String targetFolder) in createTestFile() method in Helper
|
/aosp_15_r20/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/ |
H A D | UTF8ZipFilesTest.java | 181 createTestFile(file, CharsetNames.US_ASCII, false, true); in testZipFileReadsUnicodeFields() 202 createTestFile(file, CharsetNames.US_ASCII, false, true); in testZipArchiveInputStreamReadsUnicodeFields() 249 createTestFile(file, encoding, withEFS, withExplicitUnicodeExtra); in testFileRoundtrip() 256 private static void createTestFile(final File file, final String encoding, in createTestFile() method in UTF8ZipFilesTest
|
/aosp_15_r20/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/test/java/com/google/android/exoplayer2/upstream/ |
H A D | CachedRegionTrackerTest.java | 137 createTestFile(cacheFile, length); in createCacheSpanFile() 141 private static void createTestFile(File file, int length) throws IOException { in createTestFile() method in CachedRegionTrackerTest
|
/aosp_15_r20/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/test/java/com/google/android/exoplayer2/upstream/ |
H A D | CachedRegionTrackerTest.java | 137 createTestFile(cacheFile, length); in createCacheSpanFile() 141 private static void createTestFile(File file, int length) throws IOException { in createTestFile() method in CachedRegionTrackerTest
|
/aosp_15_r20/cts/tests/translation/src/android/translation/cts/ |
H A D | Helper.java | 193 file = createTestFile(testName,"sreenshot.png", targetFolder); in takeScreenshotAndSave() 217 public static File createTestFile(String testName, String name, String targetFolder) in createTestFile() method in Helper
|
/aosp_15_r20/external/bazelbuild-rules_android/src/tools/ak/liteparse/ |
H A D | liteparse_test.go | 144 f := createTestFile(tc.arg, tc.content) 161 func createTestFile(path, content string) string { func
|
/aosp_15_r20/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/ |
H A D | VisualQueryDetectionServiceBasicTest.java | 708 mService.createTestFile(""); in testVisualQueryDetectionService_openFileReadOnly_success() 772 mService.createTestFile(""); in testVisualQueryDetectionService_openFileWrite_failure() 807 mService.createTestFile(Integer.toString(i)); in testVisualQueryDetectionService_openFileMultiple_success()
|
/aosp_15_r20/frameworks/base/services/robotests/backup/src/com/android/server/backup/ |
H A D | UserBackupManagerServiceTest.java | 1258 service.setAncestralSerialNumberFile(createTestFile()); in testGetAncestralSerialNumber_set_returnsCorrectValue() 1274 service.setAncestralSerialNumberFile(createTestFile()); in testGetAncestralSerialNumber_setTwice_returnsCorrectValue() 1321 private File createTestFile() throws IOException { in createTestFile() method in UserBackupManagerServiceTest
|
/aosp_15_r20/external/python/pyfakefs/pyfakefs/tests/ |
D | fake_os_test.py | 43 def createTestFile(self, path): member in FakeOsModuleTestBase 1878 self.createTestFile(path) 1892 self.createTestFile(path) 1907 self.createTestFile(path) 1926 self.createTestFile(path) 1974 self.createTestFile(path) 1987 self.createTestFile(path) 1997 self.createTestFile(path) 2011 self.createTestFile(path) 2029 self.createTestFile(path) [all …]
|
/aosp_15_r20/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/services/ |
H A D | BaseVoiceInteractionService.java | 534 public void createTestFile(String suffix) throws Throwable { in createTestFile() method in BaseVoiceInteractionService
|
/aosp_15_r20/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/ |
H A D | UiBot.java | 1271 final File file = Helper.createTestFile("hierarchy.xml"); 1335 file = Helper.createTestFile("screenshot.png");
|