Home
last modified time | relevance | path

Searched refs:fs (Results 1 – 25 of 67) sorted by relevance

123

/libcore/ojluni/src/main/java/java/io/
DFile.java162 private static final FileSystem fs = DefaultFileSystem.getFileSystem(); field in File
221 public static final char separatorChar = fs.getSeparator();
240 public static final char pathSeparatorChar = fs.getPathSeparator();
268 this.path = fs.resolve(parent.path, child); in File()
285 this.path = fs.normalize(pathname); in File()
286 this.prefixLength = fs.prefixLength(this.path); in File()
327 this.path = fs.resolve(fs.normalize(parent), in File()
328 fs.normalize(child)); in File()
331 this.path = fs.normalize(child); in File()
333 this.prefixLength = fs.prefixLength(this.path); in File()
[all …]
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DInfiniteStreamWithLimitOpTest.java180 public void testSubsizedWithRange(String description, UnaryOperator<Stream<Long>> fs) {
185 stream(s -> fs.apply(s)).
191 public void testIntSubsizedWithRange(String description, UnaryOperator<IntStream> fs) {
196 stream(s -> fs.apply(s)).
202 public void testLongSubsizedWithRange(String description, UnaryOperator<LongStream> fs) {
207 stream(s -> fs.apply(s)).
213 public void testDoubleSubsizedWithRange(String description, UnaryOperator<DoubleStream> fs) {
218 stream(s -> fs.apply(s)).
227 public void testUnorderedFinite(String description, UnaryOperator<Stream<Long>> fs) {
232 stream(s -> fs.apply(s.filter(i -> true).unordered().boxed())).
[all …]
DFindFirstOpTest.java67 … void exerciseStream(TestData.OfRef<Integer> data, Function<Stream<Integer>, Stream<Integer>> fs) { in exerciseStream() argument
68 Optional<Integer> r = exerciseTerminalOps(data, fs, s -> s.findFirst()); in exerciseStream()
70 Iterator<Integer> i = fs.apply(data.stream()).iterator(); in exerciseStream()
75 assertFalse(fs.apply(data.stream()).iterator().hasNext()); in exerciseStream()
87 void exerciseIntStream(TestData.OfInt data, Function<IntStream, IntStream> fs) { in exerciseIntStream() argument
88 OptionalInt r = exerciseTerminalOps(data, fs, s -> s.findFirst()); in exerciseIntStream()
90 PrimitiveIterator.OfInt i = fs.apply(data.stream()).iterator(); in exerciseIntStream()
95 assertFalse(fs.apply(data.stream()).iterator().hasNext()); in exerciseIntStream()
107 void exerciseLongStream(TestData.OfLong data, Function<LongStream, LongStream> fs) { in exerciseLongStream() argument
108 OptionalLong r = exerciseTerminalOps(data, fs, s -> s.findFirst()); in exerciseLongStream()
[all …]
DFindAnyOpTest.java74 … void exerciseStream(TestData.OfRef<Integer> data, Function<Stream<Integer>, Stream<Integer>> fs) { in exerciseStream() argument
75 …Optional<Integer> or = withData(data).terminal(fs, s -> s.findAny()).equalator(VALID_ANSWER).exerc… in exerciseStream()
78 Iterator<Integer> it = fs.apply(data.stream()).iterator(); in exerciseStream()
86 assertFalse(fs.apply(data.stream()).iterator().hasNext()); in exerciseStream()
98 void exerciseIntStream(TestData.OfInt data, Function<IntStream, IntStream> fs) { in exerciseIntStream() argument
99 …OptionalInt or = withData(data).terminal(fs, s -> s.findAny()).equalator(INT_VALID_ANSWER).exercis… in exerciseIntStream()
102 PrimitiveIterator.OfInt it = fs.apply(data.stream()).iterator(); in exerciseIntStream()
110 assertFalse(fs.apply(data.stream()).iterator().hasNext()); in exerciseIntStream()
122 void exerciseLongStream(TestData.OfLong data, Function<LongStream, LongStream> fs) { in exerciseLongStream() argument
123 …OptionalLong or = withData(data).terminal(fs, s -> s.findAny()).equalator(LONG_VALID_ANSWER).exerc… in exerciseLongStream()
[all …]
/libcore/luni/src/test/java/libcore/java/nio/file/
DFileSystemsTest.java56 FileSystem fs = FileSystems.getDefault(); in test_getDefault() local
57 assertNotNull(fs.provider()); in test_getDefault()
63 FileSystem fs = FileSystems.getFileSystem(testPath.toUri()); in test_getFileSystem() local
64 assertNotNull(fs.provider()); in test_getFileSystem()
132 FileSystem fs = FileSystems.newFileSystem(stubURI, stubEnv, fileSystemsClassLoader); in test_newFileSystem$URI$Map$ClassLoader_customClassLoader() local
133 assertEquals("mypackage.MockFileSystem", fs.getClass().getName()); in test_newFileSystem$URI$Map$ClassLoader_customClassLoader()
134 assertSame(stubURI, fs.getClass().getDeclaredMethod("getURI").invoke(fs)); in test_newFileSystem$URI$Map$ClassLoader_customClassLoader()
135 assertSame(stubEnv, fs.getClass().getDeclaredMethod("getEnv").invoke(fs)); in test_newFileSystem$URI$Map$ClassLoader_customClassLoader()
167 FileSystem fs = FileSystems.newFileSystem(filesSetup.getDataFilePath(), in test_newFileSystem$Path$ClassLoader_customClassLoader() local
170 assertEquals("mypackage.MockFileSystem", fs.getClass().getName()); in test_newFileSystem$Path$ClassLoader_customClassLoader()
[all …]
/libcore/luni/src/test/java/libcore/java/text/
DOldDecimalFormatSymbolsTest.java105 DecimalFormatSymbols fs = new DecimalFormatSymbols(Locale.US); in test_clone() local
106 DecimalFormatSymbols fsc = (DecimalFormatSymbols) fs.clone(); in test_clone()
107 assertEquals(fs.getCurrency(), fsc.getCurrency()); in test_clone()
110 fs = new DecimalFormatSymbols(); in test_clone()
111 DecimalFormatSymbols fsc2 = (DecimalFormatSymbols) (fs.clone()); in test_clone()
113 assertTrue("Object's clone isn't equal!", fs.equals(fsc2)); in test_clone()
119 fs.setNaN("not-a-number"); in test_clone()
120 assertTrue("Object's changed clone should not be equal!", !fs.equals(fsc2)); in test_clone()
/libcore/ojluni/src/main/java/sun/nio/fs/
DLinuxFileStore.java26 package sun.nio.fs;
47 LinuxFileStore(UnixFileSystem fs, UnixMountEntry entry) throws IOException { in LinuxFileStore() argument
48 super(fs, entry); in LinuxFileStore()
57 LinuxFileSystem fs = (LinuxFileSystem)file().getFileSystem(); in findMountEntry() local
63 path = new UnixPath(fs, rp); in findMountEntry()
86 for (UnixMountEntry entry: fs.getMountEntries("/proc/mounts")) { in findMountEntry()
DLinuxWatchService.java26 package sun.nio.fs;
38 import static sun.nio.fs.UnixNativeDispatcher.*;
39 import static sun.nio.fs.UnixConstants.*;
58 LinuxWatchService(UnixFileSystem fs) throws IOException { in LinuxWatchService() argument
82 this.poller = new Poller(fs, this, ifd, sp); in LinuxWatchService()
179 private final UnixFileSystem fs; field in LinuxWatchService.Poller
195 Poller(UnixFileSystem fs, LinuxWatchService watcher, int ifd, int[] sp) { in Poller() argument
196 this.fs = fs; in Poller()
391 name = new UnixPath(fs, buf); in run()
DUnixPath.java26 package sun.nio.fs;
36 import static sun.nio.fs.UnixNativeDispatcher.*;
37 import static sun.nio.fs.UnixConstants.*;
50 private final UnixFileSystem fs; field in UnixPath
64 UnixPath(UnixFileSystem fs, byte[] path) { in UnixPath() argument
65 this.fs = fs; in UnixPath()
69 UnixPath(UnixFileSystem fs, String input) { in UnixPath() argument
71 this(fs, encode(fs, normalizeAndCheck(input))); in UnixPath()
119 private static byte[] encode(UnixFileSystem fs, String input) { in encode() argument
129 char[] ca = fs.normalizeNativePath(input.toCharArray()); in encode()
[all …]
DLinuxFileSystem.java26 package sun.nio.fs;
31 import static sun.nio.fs.LinuxNativeDispatcher.*;
DUnixUriUtils.java26 package sun.nio.fs;
44 static Path fromUri(UnixFileSystem fs, URI uri) { in fromUri() argument
94 return new UnixPath(fs, result); in fromUri()
DBasicFileAttributesHolder.java26 package sun.nio.fs;
DUnixFileStore.java26 package sun.nio.fs;
68 UnixFileStore(UnixFileSystem fs, UnixMountEntry entry) throws IOException { in UnixFileStore() argument
69 this.file = new UnixPath(fs, entry.dir()); in UnixFileStore()
DDynamicFileAttributeView.java26 package sun.nio.fs;
DLinuxDosFileAttributeView.java26 package sun.nio.fs;
34 import static sun.nio.fs.UnixNativeDispatcher.*;
35 import static sun.nio.fs.UnixConstants.*;
DDefaultFileTypeDetector.java26 package sun.nio.fs;
DUnixFileStoreAttributes.java26 package sun.nio.fs;
DUnixDirectoryStream.java26 package sun.nio.fs;
36 import static sun.nio.fs.UnixNativeDispatcher.*;
DUnixUserPrincipals.java26 package sun.nio.fs;
30 import static sun.nio.fs.UnixNativeDispatcher.*;
DUnixChannelFactory.java26 package sun.nio.fs;
39 import static sun.nio.fs.UnixNativeDispatcher.*;
40 import static sun.nio.fs.UnixConstants.*;
DUnixMountEntry.java26 package sun.nio.fs;
DUnixFileKey.java26 package sun.nio.fs;
/libcore/ojluni/src/test/java/util/concurrent/tck/
DCompletableFutureTest.java3123 CompletableFuture<Integer>[] fs in testAllOf_normal() local
3126 fs[i] = new CompletableFuture<>(); in testAllOf_normal()
3127 CompletableFuture<Void> f = CompletableFuture.allOf(fs); in testAllOf_normal()
3130 checkIncomplete(CompletableFuture.allOf(fs)); in testAllOf_normal()
3131 fs[i].complete(one); in testAllOf_normal()
3134 checkCompletedNormally(CompletableFuture.allOf(fs), null); in testAllOf_normal()
3140 CompletableFuture<Integer>[] fs in testAllOf_normal_backwards() local
3143 fs[i] = new CompletableFuture<>(); in testAllOf_normal_backwards()
3144 CompletableFuture<Void> f = CompletableFuture.allOf(fs); in testAllOf_normal_backwards()
3147 checkIncomplete(CompletableFuture.allOf(fs)); in testAllOf_normal_backwards()
[all …]
/libcore/ojluni/annotations/hiddenapi/sun/nio/fs/
DBasicFileAttributesHolder.java26 package sun.nio.fs;
/libcore/luni/src/test/java/libcore/java/nio/file/spi/
DFileTypeDetectorTest.java14 FileTypeDetector defaultFileTypeDetector = sun.nio.fs.DefaultFileTypeDetector.create(); in test_probeFileType()

123