/external/apache-harmony/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/io/ |
UnixFileTest.java | 36 private File testFile; 131 assertFalse(testFile.canExecute()); 132 assertTrue(testFile.setExecutable(true, false)); 133 assertTrue(testFile.canExecute()); 134 assertTrue(testFile.setExecutable(true, true)); 135 assertTrue(testFile.canExecute()); 137 assertTrue(testFile.setExecutable(false, false)); 138 assertFalse(testFile.canExecute()); 139 assertTrue(testFile.setExecutable(false, true)); 140 assertFalse(testFile.canExecute()) [all...] |
/external/clang/utils/analyzer/ |
update_plist_test.pl | 7 my $testFile = shift @ARGV; 8 die "error: cannot read file $testFile\n" if (! -r $testFile); 18 open (IN, $testFile) or die "cannot open $testFile\n"; 50 `cp $filename $testFile`; 51 print "updated $testFile\n";
|
/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...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
Ver3DictDecoderTests.java | 63 File testFile = null; 65 testFile = File.createTempFile(testName, ".tmp", getContext().getCacheDir()); 70 assertNotNull(testFile); 71 final Ver3DictDecoder dictDecoder = new Ver3DictDecoder(testFile, factory); 78 writeDataToFile(testFile); 86 assertEquals(testFile.length(), dictDecoder.getDictBuffer().capacity()); 106 File testFile = null; 108 testFile = File.createTempFile(testName, ".tmp", getContext().getCacheDir()); 113 final Ver3DictDecoder dictDecoder = new Ver3DictDecoder(testFile, factory); 119 writeDataToFile(testFile); [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
OldAndroidFileTest.java | 27 public void testFile() throws Exception {
|
/external/chromium_org/third_party/icu/source/test/intltest/ |
ucaconf.cpp | 24 testFile(NULL), 47 if(testFile) { 48 fclose(testFile); 109 if(testFile) { 110 fclose(testFile); 125 testFile = fopen(buffer, "rb"); 127 if(testFile == 0) { 130 testFile = fopen(buffer, "rb"); 132 if(testFile == 0) { 135 testFile = fopen(buffer, "rb") [all...] |
ucaconf.h | 45 FILE *testFile;
|
tsmthred.cpp | 923 FILE *testFile = NULL; 935 if(testFile) { 936 fclose(testFile); 951 testFile = fopen(buffer, "rb"); 953 if(testFile == 0) { 956 testFile = fopen(buffer, "rb"); 958 if(testFile == 0) { 961 testFile = fopen(buffer, "rb"); 963 if (testFile == 0) { 986 while (fgets(buffer, 1024, testFile) != NULL) [all...] |
rbbitst.cpp | 659 UChar *testFile = NULL; 677 testFile = ReadAndConvertFile(testFileName, len, NULL, status); 695 current = testFile; [all...] |
/external/icu4c/test/intltest/ |
ucaconf.cpp | 25 testFile(NULL), 51 if (testFile) { 52 fclose(testFile); 108 if(testFile) { 109 fclose(testFile); 124 testFile = fopen(buffer, "rb"); 126 if(testFile == 0) { 129 testFile = fopen(buffer, "rb"); 131 if(testFile == 0) { 134 testFile = fopen(buffer, "rb") [all...] |
ucaconf.h | 45 FILE *testFile;
|
tsmthred.cpp | [all...] |
/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/ |
TestSuite.java | 41 protected TestSuite(String gname, File testFile) { 43 testSuiteFile = testFile;
|
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/icu/source/test/iotest/ |
iotest.cpp | 219 LocalUFILEPointer testFile; 233 testFile.adoptInstead(u_fopen(STANDARD_TEST_FILE, "w", fileLocale, "UTF-8")); 234 if (testFile.isNull()) { 259 uFileBufferLenReturned = u_fprintf_u(testFile.getAlias(), format, dbl); 264 uFileBufferLenReturned = u_fprintf_u(testFile.getAlias(), format, i8); 269 uFileBufferLenReturned = u_fprintf_u(testFile.getAlias(), format, i16); 274 uFileBufferLenReturned = u_fprintf_u(testFile.getAlias(), format, i32); 279 uFileBufferLenReturned = u_fprintf_u(testFile.getAlias(), format, i64); 284 uFileBufferLenReturned = u_fprintf_u(testFile.getAlias(), format, cBuffer); 288 uFileBufferLenReturned = u_fprintf_u(testFile.getAlias(), format, argument) [all...] |
/cts/hostsidetests/sample/src/android/sample/cts/ |
SampleHostResultTest.java | 98 final File testFile = mBuild.getTestPlanFile(PLAN_NAME); 110 assertTrue("Could not push file", device.pushFile(testFile, devicePath)); 114 assertFilesAreEqual(testFile, tmpFile);
|
/external/icu4c/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/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);
|
/frameworks/base/core/tests/coretests/src/android/content/ |
MemoryFileProviderTest.java | 69 public void testFile() throws Exception {
|
/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...] |
/packages/apps/Browser/tests/src/com/android/browser/tests/utils/ |
BP2TestCaseHelper.java | 228 for (File testFile : testFiles) { 229 testFile.delete();
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
PrintStreamTest.java | 38 private File testFile = null; 658 testFile = File.createTempFile("test", null); 659 testFilePath = testFile.getAbsolutePath(); 664 testFile.delete(); 665 testFile = null;
|
/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('\\', '/');
|
/libcore/luni/src/test/java/libcore/java/net/ |
OldURLTest.java | 443 URL testFile = new URL("file:///pages/index.html"); 449 assertTrue("file".equalsIgnoreCase(testFile.getProtocol()));
|