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

1 2

  /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...]
  /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/
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...]
  /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...]
  /external/icu/icu4c/source/test/intltest/
ucaconf.cpp 27 testFile(NULL),
53 if (testFile) {
54 fclose(testFile);
110 if(testFile) {
111 fclose(testFile);
126 testFile = fopen(buffer, "rb");
128 if(testFile == 0) {
131 testFile = fopen(buffer, "rb");
133 if(testFile == 0) {
136 testFile = fopen(buffer, "rb")
    [all...]
ucaconf.h 45 FILE *testFile;
tsmthred.cpp     [all...]
  /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/
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/qemu/android/avd/
util_unittest.cpp 35 const char* testFile =
44 EXPECT_EQ(0,fileData_initFromMemory(&fd, testFile, strlen(testFile)));
  /frameworks/webview/chromium/tests/java/src/com/android/uiautomator/platform/
WebViewFlingTest.java 101 private void runBrowserPageFling(File testFile) throws UiObjectNotFoundException, IOException {
102 loadUrl("file://" + testFile.getAbsolutePath());
  /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...]