HomeSort by relevance Sort by last modified time
    Searched defs:testFile (Results 1 - 25 of 42) sorted by null

1 2

  /external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/
ImportantFileWriterAndroidTest.java 45 private void checkFile(File testFile, byte[] data) {
46 assertTrue(testFile.exists());
48 byte[] fileData = new byte[(int) testFile.length()];
50 new DataInputStream(new FileInputStream(testFile));
72 File testFile = new File(dir, "ImportantFileTest");
75 if (testFile.exists()) {
76 assertTrue(testFile.delete());
82 testFile.getAbsolutePath(), data1));
83 checkFile(testFile, data1);
89 testFile.getAbsolutePath(), data2))
    [all...]
  /external/chromium_org/third_party/icu/source/test/intltest/
ucaconf.h 45 FILE *testFile;
tsmthred.cpp     [all...]
  /external/icu/icu4c/source/test/intltest/
ucaconf.h 45 FILE *testFile;
tsmthred.cpp     [all...]
  /libcore/luni/src/test/java/libcore/java/io/
OldAndroidFileTest.java 27 public void testFile() throws Exception {
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
Ver2DictDecoderTests.java 62 File testFile = null;
64 testFile = File.createTempFile(testName, ".tmp", getContext().getCacheDir());
69 assertNotNull(testFile);
70 final Ver2DictDecoder dictDecoder = new Ver2DictDecoder(testFile, 0, testFile.length(),
78 writeDataToFile(testFile);
86 assertEquals(testFile.length(), dictDecoder.getDictBuffer().capacity());
105 File testFile = null;
107 testFile = File.createTempFile(testName, ".tmp", getContext().getCacheDir());
112 final Ver2DictDecoder dictDecoder = new Ver2DictDecoder(testFile, 0, testFile.length()
    [all...]
  /external/qemu/android/avd/
util_unittest.cpp 35 const char* testFile =
44 EXPECT_EQ(0,fileData_initFromMemory(&fd, testFile, strlen(testFile)));
  /frameworks/base/core/tests/coretests/src/android/content/
MemoryFileProviderTest.java 69 public void testFile() throws Exception {
  /external/apache-harmony/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/io/
UnixFileTest.java 35 private File testFile;
129 assertFalse(testFile.canExecute());
130 assertTrue(testFile.setExecutable(true, false));
131 assertTrue(testFile.canExecute());
132 assertTrue(testFile.setExecutable(true, true));
133 assertTrue(testFile.canExecute());
135 assertTrue(testFile.setExecutable(false, false));
136 assertFalse(testFile.canExecute());
137 assertTrue(testFile.setExecutable(false, true));
138 assertFalse(testFile.canExecute())
    [all...]
  /cts/hostsidetests/sample/src/android/sample/cts/
SampleHostResultTest.java 109 final File testFile = mBuild.getTestPlanFile(PLAN_NAME);
121 assertTrue("Could not push file", device.pushFile(testFile, devicePath));
125 assertFilesAreEqual(testFile, tmpFile);
  /cts/tests/tests/content/src/android/content/cts/
ReadableUriExtraToClipDataTest.java 63 File testFile = new File(getContext().getFilesDir() + File.separator + fileName);
64 writeTestInputToFile(testFile);
65 mTestFiles.add(testFile);
66 mTestFileUris.add(Uri.fromFile(testFile));
72 for (File testFile : mTestFiles) {
73 if (testFile.exists()) {
74 assertTrue(testFile.delete());
  /frameworks/base/services/tests/servicestests/src/com/android/server/net/
NetworkStatsCollectionTest.java 63 final File testFile = new File(getContext().getFilesDir(), TEST_FILE);
64 stageFile(R.raw.netstats_v1, testFile);
67 collection.readLegacyNetwork(testFile);
89 final File testFile = new File(getContext().getFilesDir(), TEST_FILE);
90 stageFile(R.raw.netstats_uid_v4, testFile);
93 collection.readLegacyUid(testFile, false);
115 final File testFile = new File(getContext().getFilesDir(), TEST_FILE);
116 stageFile(R.raw.netstats_uid_v4, testFile);
119 collection.readLegacyUid(testFile, true);
  /external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/model/
TestSuiteFactory.java 73 final File testFile = new File(grammarDir + File.separator + grammarName + TEST_SUITE_EXT);
75 final TestSuite result = new TestSuite(grammarName, testFile);
  /external/chromium_org/third_party/skia/tools/skpdiff/
SkDiffContext.cpp 249 SkString testFile = SkOSPath::Join(testPath, baseFilename);
252 if (sk_exists(testFile.c_str()) && !sk_isdir(testFile.c_str())) {
254 runnableDiffs[x].setup(this, baselineFile, testFile);
  /external/skia/tools/skpdiff/
SkDiffContext.cpp 174 SkString testFile = SkOSPath::SkPathJoin(testPath, baseFilename);
177 if (sk_exists(testFile.c_str()) && !sk_isdir(testFile.c_str())) {
179 runnableDiffs[x].setup(this, baselineFile, testFile);
  /packages/apps/Browser/tests/src/com/android/browser/tests/utils/
BP2TestCaseHelper.java 228 for (File testFile : testFiles) {
229 testFile.delete();
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
PrintStreamTest.java 38 private File testFile = null;
660 testFile = File.createTempFile("test", null);
661 testFilePath = testFile.getAbsolutePath();
666 testFile.delete();
667 testFile = null;
  /cts/tests/tests/os/src/android/os/storage/cts/
StorageManagerTest.java 76 final File testFile = new File(mountDir, "test1.txt");
79 assertTrue("test1.txt does not exist in OBB dir", testFile.exists());
80 assertFileContains(testFile, TEST1_CONTENTS);
  /external/chromium_org/third_party/icu/source/test/iotest/
iotest.cpp 220 LocalUFILEPointer testFile;
234 testFile.adoptInstead(u_fopen(STANDARD_TEST_FILE, "w", fileLocale, "UTF-8"));
235 if (testFile.isNull()) {
260 uFileBufferLenReturned = u_fprintf_u(testFile.getAlias(), format, dbl);
265 uFileBufferLenReturned = u_fprintf_u(testFile.getAlias(), format, i8);
270 uFileBufferLenReturned = u_fprintf_u(testFile.getAlias(), format, i16);
275 uFileBufferLenReturned = u_fprintf_u(testFile.getAlias(), format, i32);
280 uFileBufferLenReturned = u_fprintf_u(testFile.getAlias(), format, i64);
285 uFileBufferLenReturned = u_fprintf_u(testFile.getAlias(), format, cBuffer);
289 uFileBufferLenReturned = u_fprintf_u(testFile.getAlias(), format, argument)
    [all...]
  /external/icu/icu4c/source/test/iotest/
iotest.cpp 220 LocalUFILEPointer testFile;
234 testFile.adoptInstead(u_fopen(STANDARD_TEST_FILE, "w", fileLocale, "UTF-8"));
235 if (testFile.isNull()) {
260 uFileBufferLenReturned = u_fprintf_u(testFile.getAlias(), format, dbl);
265 uFileBufferLenReturned = u_fprintf_u(testFile.getAlias(), format, i8);
270 uFileBufferLenReturned = u_fprintf_u(testFile.getAlias(), format, i16);
275 uFileBufferLenReturned = u_fprintf_u(testFile.getAlias(), format, i32);
280 uFileBufferLenReturned = u_fprintf_u(testFile.getAlias(), format, i64);
285 uFileBufferLenReturned = u_fprintf_u(testFile.getAlias(), format, cBuffer);
289 uFileBufferLenReturned = u_fprintf_u(testFile.getAlias(), format, argument)
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.ndk/src/com/android/ide/eclipse/ndk/internal/discovery/
NdkDiscoveryUpdater.java 97 File testFile = new File(FileLocator.toFileURL(url).toURI());
98 String testFileName = testFile.getAbsolutePath().replace('\\', '/');
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/
BuildHelper.java 308 File testFile = new File(folder.getLocation().toOSString());
309 if (testFile.isDirectory()) {
310 pathList.add(testFile.getAbsolutePath());
    [all...]
  /frameworks/base/core/tests/coretests/src/android/content/pm/
AppCacheTest.java 243 File file1 = new File(fileArr[i], "testFile"+j+".txt");
297 File testFile = new File(testDir, "testFile"+i+".txt");
298 if(localLOGV) Log.i(TAG, "Creating "+i+"th test file "+testFile);
303 fos = new FileOutputStream(testFile);
305 Log.i(TAG, "Failed creating test file:"+testFile);
313 Log.i(TAG, "Failed to write to file:"+testFile);
320 Log.i(TAG, "Failed closing file:"+testFile);
325 createdFileBlks += getFileNumBlocks(testFile.length(), blkSize);
343 File testFile = new File(testDir, "testFile"+k+".txt")
    [all...]
  /frameworks/base/core/tests/coretests/src/android/net/
UriTest.java 260 public void testFile() {

Completed in 640 milliseconds

1 2