/libcore/luni/src/test/java/libcore/libcore/io/ |
D | OsTest.java | 22 import libcore.io.Os; 29 Os defaultOs = Os.getDefault(); in testCompareAndSetDefault_success() 30 Os mockOs = Mockito.mock(Os.class); in testCompareAndSetDefault_success() 33 assertTrue(Os.compareAndSetDefault(defaultOs, mockOs)); in testCompareAndSetDefault_success() 34 assertSame(mockOs, Os.getDefault()); in testCompareAndSetDefault_success() 37 android.system.Os.rename("/old/path", "/new/path"); in testCompareAndSetDefault_success() 40 assertTrue(Os.compareAndSetDefault(mockOs, defaultOs)); in testCompareAndSetDefault_success() 41 assertSame(defaultOs, Os.getDefault()); in testCompareAndSetDefault_success() 46 Os defaultOs = Os.getDefault(); in testCompareandSetDefault_null() 49 Os.compareAndSetDefault(defaultOs, null); in testCompareandSetDefault_null() [all …]
|
D | ForwardingOsTest.java | 28 import libcore.io.Os; 44 Os mockOs = Mockito.mock(Os.class); in toStringContainsDelegate()
|
D | BlockGuardOsTest.java | 60 import libcore.io.Os; 80 @Mock private Os mockOsDelegate; 109 Os.getDefault().rename(oldPath, newPath); in test_blockguardOsIsNotifiedByDefault_rename() 327 for (Method method : Os.class.getDeclaredMethods()) { in test_checkNewMethodsInPosix()
|
/libcore/luni/src/test/java/libcore/android/system/ |
D | OsTest.java | 22 import android.system.Os; 102 assertFalse(S_ISSOCK(Os.fstat(fis.getFD()).st_mode)); in testIsSocket() 106 assertTrue(S_ISSOCK(Os.fstat(s.getImpl().getFD$()).st_mode)); in testIsSocket() 116 Os.fcntlInt(fis.getFD(), F_SETFD, FD_CLOEXEC); in testFcntlInt() 117 int flags = Os.fcntlVoid(fis.getFD(), F_GETFD); in testFcntlInt() 127 final FileDescriptor fd = Os.socket(AF_INET, SOCK_DGRAM, 0); in testFcntlInt_udpSocket() 129 assertEquals(0, (Os.fcntlVoid(fd, F_GETFL) & O_NONBLOCK)); in testFcntlInt_udpSocket() 132 Os.fcntlInt(fd, F_SETFL, SOCK_DGRAM | O_NONBLOCK); in testFcntlInt_udpSocket() 133 assertTrue((Os.fcntlVoid(fd, F_GETFL) & O_NONBLOCK) != 0); in testFcntlInt_udpSocket() 136 Os.fcntlInt(fd, F_SETFL, SOCK_DGRAM); in testFcntlInt_udpSocket() [all …]
|
/libcore/luni/src/main/java/libcore/io/ |
D | Libcore.java | 31 public static final Os rawOs = new Linux(); 39 public static volatile Os os = new BlockGuardOs(rawOs); 41 public static Os getOs() { in getOs() 49 public static boolean compareAndSetOs(Os expect, Os update) { in compareAndSetOs()
|
D | Os.java | 62 public interface Os { interface 792 public static boolean compareAndSetDefault(Os expect, Os update) { in compareAndSetDefault() 802 public static Os getDefault() { in getDefault()
|
D | ForwardingOs.java | 61 public class ForwardingOs implements Os { 63 private final Os os; 74 protected ForwardingOs(@NonNull Os os) { in ForwardingOs() 83 protected final Os delegate() { in delegate()
|
D | BlockGuardOs.java | 49 public BlockGuardOs(Os os) { in BlockGuardOs() 117 int flag = android.system.Os.fcntlInt(fd, F_GETFL, 0); in isNonBlockingFile()
|
D | Linux.java | 48 public final class Linux implements Os {
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | FileInputStreamTest.java | 20 import android.system.Os; 226 android.system.Os.ioctlInt(input.getFD(), OsConstants.FIONREAD); in test_available_on_nonIOCTL_supported_file() 255 final StructStatVfs statVfs = Os.statvfs(largeFile.getPath()); in testSkipOnLargeFiles() 282 Os.posix_fallocate(fos.getFD(), 0, fileSize); in allocateEmptyFile() 290 Os.ftruncate(fos.getFD(), fileSize); in allocateEmptyFile() 301 File fdPath = new File(android.system.Os.readlink(fd.getAbsolutePath())); in getOpenFdsForPrefix()
|
D | FileDescriptorTest.java | 19 import android.system.Os; 72 Os.close(target); in testFileDescriptorCloneForFork()
|
D | FileTest.java | 36 import static android.system.Os.stat;
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | ProcessBuilderTest.java | 20 import android.system.Os; 92 Os.stat(path + "1").st_ino, Os.stat(path + "2").st_ino); in testRedirectErrorStream_outputAndErrorAreMerged() 113 Os.fstat(FileDescriptor.in).st_ino, in testRedirectInherit() 114 Os.fstat(FileDescriptor.out).st_ino, in testRedirectInherit() 115 Os.fstat(FileDescriptor.err).st_ino); in testRedirectInherit() 119 Os.stat("/proc/" + childPid + "/fd/0").st_ino, in testRedirectInherit() 120 Os.stat("/proc/" + childPid + "/fd/1").st_ino, in testRedirectInherit() 121 Os.stat("/proc/" + childPid + "/fd/2").st_ino); in testRedirectInherit()
|
D | SystemTest.java | 30 import android.system.Os; 36 String sysname = Os.uname().sysname; in testOsName()
|
/libcore/luni/src/test/java/libcore/dalvik/system/ |
D | BlockGuardTest.java | 19 import android.system.Os; 291 FileDescriptor fd = Os.open(temp.getPath(), OsConstants.O_RDWR, 0); in testOpen() 293 Os.close(fd); in testOpen() 297 fd = Os.open(temp.getPath(), OsConstants.O_RDONLY, 0); in testOpen() 299 Os.close(fd); in testOpen()
|
/libcore/ojluni/src/main/java/java/io/ |
D | FileDescriptor.java | 29 import android.system.Os; 206 int newDescriptor = Os.fcntlInt(this, F_DUPFD_CLOEXEC, 0); in cloneForFork()
|
D | RandomAccessFile.java | 32 import android.system.Os; 324 Os.fdatasync(fd); in maybeSync()
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | SelectorTest.java | 18 import android.system.Os; 184 dup = Os.dup(sc.socket().getFileDescriptor$()); in test28318596() 210 Os.close(dup); in test28318596()
|
/libcore/support/src/test/java/libcore/java/security/ |
D | CpuFeatures.java | 19 import android.system.Os; 52 String machine = Os.uname().machine; in currentArch()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | NetworkInterfaceTest.java | 43 import libcore.io.Os; 234 Os originalOs = Libcore.getOs(); in testGetNetworkInterfaces_OrphanInterfaceDoesNotThrow() 235 Os mockOs = Mockito.mock(Os.class); in testGetNetworkInterfaces_OrphanInterfaceDoesNotThrow()
|
D | SocketTest.java | 34 import android.system.Os; 731 FileDescriptor v4sock = Os.socket(AF_INET, SOCK_DGRAM, 0); 732 FileDescriptor v6sock = Os.socket(AF_INET6, SOCK_DGRAM, 0); 746 Os.close(v4sock); 747 Os.close(v6sock); 756 Os.connect(socket, new InetSocketAddress(dst, 53));
|
/libcore/libart/src/main/java/java/lang/ |
D | Daemons.java | 20 import android.system.Os; 664 Os.kill(Os.getpid(), OsConstants.SIGQUIT); in timedOut()
|
/libcore/api/ |
D | module-lib-current.txt | 39 public final class Os { 600 public class ForwardingOs implements libcore.io.Os { 601 ctor protected ForwardingOs(@NonNull libcore.io.Os); 638 public interface Os { 639 method public static boolean compareAndSetDefault(libcore.io.Os, libcore.io.Os); 640 method public static libcore.io.Os getDefault();
|
/libcore/luni/src/main/java/android/system/ |
D | Os.java | 43 public final class Os { class 44 private Os() {} in Os() method in Os
|
/libcore/mmodules/intracoreapi/api/intra/ |
D | current.txt | 24 public final class Os {
|