/external/apache-harmony/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/io/ |
D | UnixFileTest.java | 44 private File testFile; field in UnixFileTest 128 assertFalse(testFile.canExecute()); in test_canExecute() 129 assertTrue(testFile.setExecutable(true, false)); in test_canExecute() 130 assertTrue(testFile.canExecute()); in test_canExecute() 131 assertTrue(testFile.setExecutable(true, true)); in test_canExecute() 132 assertTrue(testFile.canExecute()); in test_canExecute() 134 assertTrue(testFile.setExecutable(false, false)); in test_canExecute() 135 assertFalse(testFile.canExecute()); in test_canExecute() 136 assertTrue(testFile.setExecutable(false, true)); in test_canExecute() 137 assertFalse(testFile.canExecute()); in test_canExecute() [all …]
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/ |
D | CompilationUnitTest.java | 48 … Path testFile = sourceRoot.resolve(Paths.get("com", "github", "javaparser", "storage", "Z.java")); in testGetSourceRoot() local 50 CompilationUnit cu = parse(testFile); in testGetSourceRoot() 59 … Path testFile = sourceRoot.resolve(Paths.get("com", "github", "javaparser", "storage", "A.java")); in testGetSourceRootWithBadPackageDeclaration() 60 CompilationUnit cu = parse(testFile); in testGetSourceRootWithBadPackageDeclaration() 69 Path testFile = sourceRoot.resolve(Paths.get("B.java")); in testGetSourceRootInDefaultPackage() local 71 CompilationUnit cu = parse(testFile); in testGetSourceRootInDefaultPackage() 79 …Path testFile = sourceRoot.resolve(Paths.get("com", "github", "javaparser", "storage", "PrimaryTyp… in testGetPrimaryTypeName() local 80 CompilationUnit cu = parse(testFile); in testGetPrimaryTypeName() 94 …Path testFile = sourceRoot.resolve(Paths.get("com", "github", "javaparser", "storage", "PrimaryTyp… in testGetPrimaryType() local 95 CompilationUnit cu = parse(testFile); in testGetPrimaryType() [all …]
|
/external/llvm-project/clang/utils/analyzer/ |
D | 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/clang/utils/analyzer/ |
D | 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/skia/tests/ |
D | SkSLTest.cpp | 40 const char* testFile, in test_one_permutation() argument 43 SkString resourcePath = SkStringPrintf("sksl/%s", testFile); in test_one_permutation() 46 ERRORF(r, "%s%s: Unable to load file", testFile, permutationSuffix); in test_one_permutation() 53 ERRORF(r, "%s%s: %s", testFile, permutationSuffix, result.errorText.c_str()); in test_one_permutation() 78 ERRORF(r, "%s%s: Unable to build shader", testFile, permutationSuffix); in test_one_permutation() 99 const char* testFile, in test_permutations() argument 104 test_one_permutation(r, surface, testFile, "", options); in test_permutations() 107 test_one_permutation(r, surface, testFile, " (NoInline)", options); in test_permutations() 110 static void test_cpu(skiatest::Reporter* r, const char* testFile) { in test_cpu() argument 114 test_permutations(r, surface.get(), testFile, /*worksInES2=*/true); in test_cpu() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | ucaconf.cpp | 29 testFile(NULL), in UCAConformanceTest() 55 if (testFile) { in ~UCAConformanceTest() 56 fclose(testFile); in ~UCAConformanceTest() 112 if(testFile) { in openTestFile() 113 fclose(testFile); in openTestFile() 128 testFile = fopen(buffer, "rb"); in openTestFile() 130 if(testFile == 0) { in openTestFile() 133 testFile = fopen(buffer, "rb"); in openTestFile() 135 if(testFile == 0) { in openTestFile() 138 testFile = fopen(buffer, "rb"); in openTestFile() [all …]
|
D | tsmthred.cpp | 797 FILE *testFile = NULL; in TestCollators() local 809 if(testFile) { in TestCollators() 810 fclose(testFile); in TestCollators() 825 testFile = fopen(buffer, "rb"); in TestCollators() 827 if(testFile == 0) { in TestCollators() 830 testFile = fopen(buffer, "rb"); in TestCollators() 832 if(testFile == 0) { in TestCollators() 835 testFile = fopen(buffer, "rb"); in TestCollators() 837 if (testFile == 0) { in TestCollators() 858 while (fgets(buffer, 1024, testFile) != NULL) { in TestCollators() [all …]
|
/external/downloader/src/test/java/com/google/android/downloader/ |
D | IOUtilTest.java | 47 File testFile = temporaryFolder.newFile(); in validateChannel_notOpen() local 48 FileChannel channel = FileChannel.open(testFile.toPath()); in validateChannel_notOpen() 56 File testFile = temporaryFolder.newFile(); in validateChannel_valid() local 57 FileChannel channel = FileChannel.open(testFile.toPath()); in validateChannel_valid() 64 File testFile = temporaryFolder.newFile(); in blockingWrite() local 66 FileChannel channel = FileChannel.open(testFile.toPath(), StandardOpenOption.WRITE); in blockingWrite() 71 assertThat(Files.asCharSource(testFile, UTF_8).read()).isEqualTo(message); in blockingWrite()
|
/external/smali/smalidea/src/test/java/org/jf/smalidea/findUsages/ |
D | FindUsagesTest.java | 112 for (TestFile testFile: testFiles) { in doTest() 113 int refIndex = testFile.getRefIndex(); in doTest() 115 PsiElement element = testFile.psiFile.findElementAt(refIndex); in doTest() 128 reference = testFile.psiFile.findReferenceAt(refIndex); in doTest() 133 testFile.psiFile.findElementAt(refIndex), 0); in doTest() 143 for (TestFile testFile: testFiles) { in doTest() 144 assertUsages(testFile, usages); in doTest() 148 private void assertUsages(@NotNull TestFile testFile, @NotNull Collection<UsageInfo> usages) { in assertUsages() argument 151 if (usage.getFile().getName().equals(testFile.fileName)) { in assertUsages() 156 for (Integer usageIndex: testFile.getUsageIndices()) { in assertUsages()
|
/external/libcxx/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.members/ |
D | ctor.pass.cpp | 93 path const testFile = testDir / "testFile"; in TEST_CASE() local 95 env.create_file(testFile, 42); in TEST_CASE() 129 path const testFile = env.make_env_path("file1"); in TEST_CASE() local 130 env.create_file(testFile, 42); in TEST_CASE() 133 permissions(testFile, perms::none); in TEST_CASE() 139 RDI it(testFile, ec); in TEST_CASE() 147 RDI it(testFile, directory_options::skip_permission_denied, ec); in TEST_CASE() 195 const path testFile = StaticEnv::File; in TEST_CASE() local 199 RDI it(testFile, ec); in TEST_CASE() 204 TEST_CHECK_THROW(filesystem_error, RDI(testFile)); in TEST_CASE()
|
/external/llvm-project/libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/ |
D | ctor.pass.cpp | 92 path const testFile = testDir / "testFile"; in TEST_CASE() local 94 env.create_file(testFile, 42); in TEST_CASE() 127 path const testFile = env.make_env_path("file1"); in TEST_CASE() local 128 env.create_file(testFile, 42); in TEST_CASE() 131 permissions(testFile, perms::none); in TEST_CASE() 137 directory_iterator it(testFile, ec); in TEST_CASE() 145 directory_iterator it(testFile, directory_options::skip_permission_denied, ec); in TEST_CASE() 195 const path testFile = static_env.File; in TEST_CASE() local 199 directory_iterator it(testFile, ec); in TEST_CASE() 204 TEST_CHECK_THROW(filesystem_error, directory_iterator(testFile)); in TEST_CASE()
|
/external/libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/ |
D | ctor.pass.cpp | 92 path const testFile = testDir / "testFile"; in TEST_CASE() local 94 env.create_file(testFile, 42); in TEST_CASE() 127 path const testFile = env.make_env_path("file1"); in TEST_CASE() local 128 env.create_file(testFile, 42); in TEST_CASE() 131 permissions(testFile, perms::none); in TEST_CASE() 137 directory_iterator it(testFile, ec); in TEST_CASE() 145 directory_iterator it(testFile, directory_options::skip_permission_denied, ec); in TEST_CASE() 193 const path testFile = StaticEnv::File; in TEST_CASE() local 197 directory_iterator it(testFile, ec); in TEST_CASE() 202 TEST_CHECK_THROW(filesystem_error, directory_iterator(testFile)); in TEST_CASE()
|
/external/llvm-project/libcxx/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.members/ |
D | ctor.pass.cpp | 93 path const testFile = testDir / "testFile"; in TEST_CASE() local 95 env.create_file(testFile, 42); in TEST_CASE() 129 path const testFile = env.make_env_path("file1"); in TEST_CASE() local 130 env.create_file(testFile, 42); in TEST_CASE() 133 permissions(testFile, perms::none); in TEST_CASE() 139 RDI it(testFile, ec); in TEST_CASE() 147 RDI it(testFile, directory_options::skip_permission_denied, ec); in TEST_CASE() 197 const path testFile = static_env.File; in TEST_CASE() local 201 RDI it(testFile, ec); in TEST_CASE() 206 TEST_CHECK_THROW(filesystem_error, RDI(testFile)); in TEST_CASE()
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | TestFactory.java | 20 CLDRFile testFile = new CLDRFile(mySource); 21 addFile(testFile); 24 public void addFile(CLDRFile testFile) { in addFile() argument 25 final String localeID = testFile.getLocaleID(); in addFile() 26 unresolved.put(localeID, testFile); in addFile()
|
/external/toybox/tests/ |
D | chattr.test | 54 echo "$_t" > testFile && chattr +$attr testFile 2>/dev/null || SKIPNEXT=1 73 touch testFile; chattr -v 1234 testFile 2>/dev/null || SKIPNEXT=1
|
/external/icu/icu4c/source/test/iotest/ |
D | iotest.cpp | 223 LocalUFILEPointer testFile; in DataDrivenPrintf() local 237 testFile.adoptInstead(u_fopen(STANDARD_TEST_FILE, "w", fileLocale, "UTF-8")); in DataDrivenPrintf() 238 if (testFile.isNull()) { in DataDrivenPrintf() 263 uFileBufferLenReturned = u_fprintf_u(testFile.getAlias(), format, dbl); in DataDrivenPrintf() 268 uFileBufferLenReturned = u_fprintf_u(testFile.getAlias(), format, i8); in DataDrivenPrintf() 273 uFileBufferLenReturned = u_fprintf_u(testFile.getAlias(), format, i16); in DataDrivenPrintf() 278 uFileBufferLenReturned = u_fprintf_u(testFile.getAlias(), format, i32); in DataDrivenPrintf() 283 uFileBufferLenReturned = u_fprintf_u(testFile.getAlias(), format, i64); in DataDrivenPrintf() 288 uFileBufferLenReturned = u_fprintf_u(testFile.getAlias(), format, cBuffer); in DataDrivenPrintf() 292 uFileBufferLenReturned = u_fprintf_u(testFile.getAlias(), format, argument); in DataDrivenPrintf() [all …]
|
/external/icu/android_icu4j/testing/src/com/android/i18n/test/timezone/ |
D | ZoneInfoDbTest.java | 145 File testFile = makeTemporaryFile(data); in testLoadTzData_validTestData() local 147 ZoneInfoDb db = ZoneInfoDb.loadTzData(testFile.getPath()); in testLoadTzData_validTestData() 151 testFile.delete(); in testLoadTzData_validTestData() 245 File testFile = makeTemporaryFile(data); in checkInvalidDataDetected() local 247 assertNull(ZoneInfoDb.loadTzData(testFile.getPath())); in checkInvalidDataDetected() 249 testFile.delete(); in checkInvalidDataDetected()
|
/external/parameter-framework/upstream/tools/clientSimulator/clientsimulator/configuration/ |
D | ConfigParser.py | 41 with open(confFileName, "r") as testFile: 42 self.__conf = json.load(testFile)
|
/external/python/cpython2/Demo/parser/ |
D | test_parser.py | 33 def testFile(fileName): function 44 map(testFile, args)
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/ |
D | ArchiveStreamFactoryTest.java | 166 final String testFile; field in ArchiveStreamFactoryTest.TestData 173 …TestData(final String testFile, final String type, final boolean hasOut, final String expectedEnco… in TestData() argument 174 this.testFile = testFile; in TestData() 184 …return "TestData [testFile=" + testFile + ", expectedEncoding=" + expectedEncoding + ", fac=" + fac in toString() 318 try (final ArchiveInputStream ais = getInputStreamFor(test.testFile, test.fac)) { in testEncodingInputStreamAutodetect() 337 … try (final ArchiveInputStream ais = getInputStreamFor(test.type, test.testFile, test.fac)) { in testEncodingInputStream() argument
|
/external/llvm-project/clang/unittests/DirectoryWatcher/ |
D | DirectoryWatcherTest.cpp | 60 SmallString<128> getPathInWatched(const std::string &testFile) { in getPathInWatched() 63 path::append(pathBuf, testFile); in getPathInWatched() 67 void addFile(const std::string &testFile) { in addFile() 68 Expected<file_t> ft = openNativeFileForWrite(getPathInWatched(testFile), in addFile() 74 llvm::errs() << getPathInWatched(testFile) << "\n"; in addFile() 79 void deleteFile(const std::string &testFile) { in deleteFile() 81 remove(getPathInWatched(testFile), /*IgnoreNonExisting=*/false); in deleteFile()
|
/external/cldr/tools/java/org/unicode/cldr/tool/ |
D | Chart.java | 33 public static String dataScrapeMessage(String specPart, String testFile, String... dataFiles) { in dataScrapeMessage() argument 44 + (testFile == null ? "" : ", and for test data, access " + dataFileLink(testFile)) in dataScrapeMessage()
|
/external/llvm-project/lldb/test/API/ |
D | lldbtest.py | 47 testPath, testFile = os.path.split(test.getSourcePath()) 56 cmd = [executable] + self.dotest_cmd + [testPath, '-p', testFile] 61 test.config.lldb_reproducer_directory, testFile)
|
/external/antlr/gunit/src/main/java/org/antlr/gunit/swingui/model/ |
D | TestSuite.java | 41 protected TestSuite(String gname, File testFile) { in TestSuite() argument 43 testSuiteFile = testFile; in TestSuite()
|
/external/icu/tools/cldr/cldr-to-icu/src/test/java/org/unicode/icu/tool/cldrtoicu/ant/ |
D | CleanOutputDirectoryTaskTest.java | 80 .that(CleanOutputDirectoryTask.wasFileAutoGenerated(testFile(fileLines), HEADER)); in assertWasAutogenerated() 83 private static BufferedReader testFile(String... lines) { in testFile() method in CleanOutputDirectoryTaskTest
|