/libcore/luni/src/main/java/libcore/io/ |
D | ForwardingOs.java | 64 private final Os os; field in ForwardingOs 76 protected ForwardingOs(@NonNull Os os) { in ForwardingOs() argument 77 this.os = Objects.requireNonNull(os); in ForwardingOs() 86 return os; in delegate() 93 …SocketAddress peerAddress) throws ErrnoException, SocketException { return os.accept(fd, peerAddre… in accept() 131 …public boolean access(@Nullable String path, int mode) throws ErrnoException { return os.access(pa… in access() 136 …String node, StructAddrinfo hints, int netId) throws GaiException { return os.android_getaddrinfo(… in android_getaddrinfo() 141 …d, InetAddress address, int port) throws ErrnoException, SocketException { os.bind(fd, address, po… in bind() 146 …criptor fd, SocketAddress address) throws ErrnoException, SocketException { os.bind(fd, address); } in bind() 153 return os.capget(hdr); in capget() [all …]
|
D | IoBridge.java | 107 int available = Libcore.os.ioctlInt(fd, FIONREAD); in available() 146 Libcore.os.bind(fd, address, port); in bind() 202 Libcore.os.connect(fd, inetAddress, port); in connectErrno() 219 Libcore.os.connect(fd, inetAddress, port); in connectErrno() 313 Libcore.os.close(oldFd); in closeAndSignalBlockedThreads() 328 int rc = Libcore.os.poll(pollFds, remainingTimeoutMs); in isConnected() 332 int connectError = Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_ERROR); in isConnected() 379 return Libcore.os.getsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_IF); in getSocketOptionErrno() 385 return !booleanFromInt(Libcore.os.getsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_LOOP)); in getSocketOptionErrno() 389 return Libcore.os.getsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS); in getSocketOptionErrno() [all …]
|
D | Libcore.java | 39 public static volatile Os os = new BlockGuardOs(rawOs); field in Libcore 42 return os; in getOs() 51 if (os != expect) { in compareAndSetOs() 55 boolean result = (os == expect); in compareAndSetOs() 57 os = update; in compareAndSetOs()
|
D | MemoryMappedFile.java | 54 FileDescriptor fd = Libcore.os.open(path, O_RDONLY, 0); in mmapRO() 56 long size = Libcore.os.fstat(fd).st_size; in mmapRO() 57 long address = Libcore.os.mmap(0L, size, PROT_READ, MAP_SHARED, fd, 0); in mmapRO() 60 Libcore.os.close(fd); in mmapRO() 75 Libcore.os.munmap(address, size); in close()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | DataOutputStreamTest.java | 28 private DataOutputStream os; field in DataOutputStreamTest 49 os.writeInt(9087589); in test_flush() 50 os.flush(); in test_flush() 61 os.write(fileString.getBytes(), 0, 150); in test_size() 62 os.close(); in test_size() 67 assertEquals("Incorrect size returned", 150, os.size()); in test_size() 74 os.write(fileString.getBytes(), 0, 150); in test_write$BII() 75 os.close(); in test_write$BII() 88 os.write((int) 't'); in test_writeI() 89 os.close(); in test_writeI() [all …]
|
D | PrintStreamTest.java | 62 public MockPrintStream(OutputStream os) { in MockPrintStream() argument 63 super(os); in MockPrintStream() 81 PrintStream os = new PrintStream(testFilePath); in test_Constructor_Ljava_lang_String() local 82 os.print(UNICODE_STRING); in test_Constructor_Ljava_lang_String() 83 os.close(); in test_Constructor_Ljava_lang_String() 100 PrintStream os = new PrintStream(testFilePath, "utf-8"); in test_Constructor_Ljava_lang_String_Ljava_lang_String() local 101 os.print(UNICODE_STRING); in test_Constructor_Ljava_lang_String_Ljava_lang_String() 102 os.close(); in test_Constructor_Ljava_lang_String_Ljava_lang_String() 107 PrintStream os = new PrintStream(testFilePath, "utf-16"); in test_Constructor_Ljava_lang_String_Ljava_lang_String() local 108 os.print(UNICODE_STRING); in test_Constructor_Ljava_lang_String_Ljava_lang_String() [all …]
|
D | FilterOutputStreamTest.java | 32 private OutputStream os; field in FilterOutputStreamTest 47 os = new FilterOutputStream(bos); in test_ConstructorLjava_io_OutputStream() 48 os.write('t'); in test_ConstructorLjava_io_OutputStream() 56 os = new FilterOutputStream(bos); in test_close() 57 os.write(fileString.getBytes(), 0, 500); in test_close() 58 os.flush(); in test_close() 60 os.close(); in test_close() 91 os = new FilterOutputStream(bos); in test_flush() 92 os.write(fileString.getBytes(), 0, 500); in test_flush() 93 os.flush(); in test_flush() [all …]
|
D | DataInputStreamTest.java | 30 private DataOutputStream os; field in DataInputStreamTest 45 os.writeChar('t'); in test_ConstructorLjava_io_InputStream() 46 os.close(); in test_ConstructorLjava_io_InputStream() 57 os.write(fileString.getBytes()); in test_read$B() 58 os.close(); in test_read$B() 70 os.write(fileString.getBytes()); in test_read$BII() 71 os.close(); in test_read$BII() 83 os.writeBoolean(true); in test_readBoolean() 84 os.close(); in test_readBoolean() 93 os.writeByte((byte) 127); in test_readByte() [all …]
|
/libcore/luni/src/main/java/android/system/ |
D | Os.java | 57 …dress peerAddress) throws ErrnoException, SocketException { return Libcore.os.accept(fd, peerAddre… in accept() 62 …public static boolean access(String path, int mode) throws ErrnoException { return Libcore.os.acce… in access() 65 …ode, StructAddrinfo hints, int netId) throws GaiException { return Libcore.os.android_getaddrinfo(… in android_getaddrinfo() 70 …ddress address, int port) throws ErrnoException, SocketException { Libcore.os.bind(fd, address, po… in bind() 75 …ull SocketAddress address) throws ErrnoException, SocketException { Libcore.os.bind(fd, address); } in bind() 90 return Libcore.os.capget(hdr); in capget() 115 Libcore.os.capset(hdr, data); in capset() 121 …public static void chmod(String path, int mode) throws ErrnoException { Libcore.os.chmod(path, mod… in chmod() 126 …public static void chown(String path, int uid, int gid) throws ErrnoException { Libcore.os.chown(p… in chown() 131 public static void close(FileDescriptor fd) throws ErrnoException { Libcore.os.close(fd); } in close() [all …]
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldFilterOutputStreamTest.java | 28 private java.io.FilterOutputStream os; field in OldFilterOutputStreamTest 45 os = new FilterOutputStream(bos); in test_ConstructorLjava_io_OutputStream() 46 os.write('t'); in test_ConstructorLjava_io_OutputStream() 54 os = new FilterOutputStream(sos); in test_close() 55 os.close(); in test_close() 58 os.write(42); in test_close() 65 os.write(42); in test_close() 71 os = new FilterOutputStream(sos); in test_close() 73 os.close(); in test_close() 82 os = new FilterOutputStream(sos); in test_flush() [all …]
|
D | OldDataOutputStreamTest.java | 30 private DataOutputStream os; field in OldDataOutputStreamTest 49 os = new DataOutputStream(buf); in test_flush() 50 os.writeInt(9087589); in test_flush() 53 os.flush(); in test_flush() 56 os.close(); in test_flush() 63 os = new DataOutputStream(sos); in test_flush() 65 os.flush(); in test_flush() 74 os.write(testString.getBytes(), 5, testLength - 7); in test_write$BII() 75 os.close(); in test_write$BII() 92 os.write(nullByteArray, 0, 1); in test_write$BII_Exception() [all …]
|
D | OldBufferedOutputStreamTest.java | 28 private java.io.OutputStream os; field in OldBufferedOutputStreamTest 41 os = new java.io.BufferedOutputStream(baos); in test_ConstructorLjava_io_OutputStream() 42 os.write(fileString.getBytes(), 0, 500); in test_ConstructorLjava_io_OutputStream() 53 os = new java.io.BufferedOutputStream(baos, -1); in test_ConstructorLjava_io_OutputStreamI() 59 os = new java.io.BufferedOutputStream(baos, 1024); in test_ConstructorLjava_io_OutputStreamI() 60 os.write(fileString.getBytes(), 0, 500); in test_ConstructorLjava_io_OutputStreamI() 68 os = new java.io.BufferedOutputStream(baos, 600); in test_flush() 69 os.write(fileString.getBytes(), 0, 500); in test_flush() 70 os.flush(); in test_flush() 73 os.close(); in test_flush() [all …]
|
D | OldDataInputOutputStreamTest.java | 29 private DataOutputStream os; field in OldDataInputOutputStreamTest 38 os.writeBoolean(true); in test_read_writeBoolean() 41 os.writeBoolean(false); in test_read_writeBoolean() 48 os.close(); in test_read_writeBoolean() 70 os.writeByte((byte) 127); in test_read_writeByte() 73 os.writeByte((byte) 127); in test_read_writeByte() 80 os.close(); in test_read_writeByte() 102 os.writeChar('b'); in test_read_writeChar() 105 os.writeChar('k'); in test_read_writeChar() 112 os.close(); in test_read_writeChar() [all …]
|
D | DataOutputStreamTest.java | 29 private DataOutputStream os = new DataOutputStream(bytes); field in DataOutputStreamTest 32 os.writeBoolean(true); in test_writeBoolean() 33 os.writeBoolean(false); in test_writeBoolean() 38 os.writeByte(-1); in test_writeByte() 39 os.writeByte(0); in test_writeByte() 40 os.writeByte(1); in test_writeByte() 41 os.writeByte(129); in test_writeByte() 43 os.writeByte(0x1234); in test_writeByte() 49 os.writeBytes("0\u12341"); in test_writeBytes() 55 os.writeChar('0'); in test_writeChar() [all …]
|
D | OldObjectInputOutputStreamTest.java | 28 private ObjectOutputStream os; field in OldObjectInputOutputStreamTest 37 os.writeBoolean(true); in test_read_writeBoolean() 39 os.close(); in test_read_writeBoolean() 61 os.writeByte((byte) 127); in test_read_writeByte() 63 os.close(); in test_read_writeByte() 85 os.writeChar('b'); in test_read_writeChar() 87 os.close(); in test_read_writeChar() 109 os.writeDouble(2345.76834720202); in test_read_writeDouble() 111 os.close(); in test_read_writeDouble() 133 os.writeFloat(29.08764f); in test_read_writeFloat() [all …]
|
D | OldDataInputStreamTest.java | 30 private DataOutputStream os; field in OldDataInputStreamTest 44 os.writeChar('t'); in test_ConstructorLjava_io_InputStream() 45 os.close(); in test_ConstructorLjava_io_InputStream() 63 os.write(fileString.getBytes()); in test_read$B() 64 os.close(); in test_read$B() 94 os.write(fileString.getBytes()); in test_read$BII() 95 os.close(); in test_read$BII() 124 os.write(fileString.getBytes()); in test_read$BII_Exception() 125 os.close(); in test_read$BII_Exception() 153 os.write(fileString.getBytes()); in test_readFully$B() [all …]
|
D | OutputStreamWriterTest.java | 34 FlushCountingOutputStream os = new FlushCountingOutputStream(); in testFlushCount() local 35 OutputStreamWriter writer = new OutputStreamWriter(os, "UTF-8"); in testFlushCount() 41 assertEquals(0, os.flushCount); in testFlushCount() 43 assertEquals(1, os.flushCount); in testFlushCount() 45 assertEquals(1, os.flushCount); in testFlushCount()
|
/libcore/tools/testmapping/ |
D | save_logs.py | 22 import os 29 LOGS_ROOT = os.path.join(ANDROID_REPOSITORY_ROOT, 'out', 'host', 'linux-x86', 31 CTS_LOGS_PATTERN = os.path.join(LOGS_ROOT, '*', '*', 33 LIBCORE_DIR = os.path.join(ANDROID_REPOSITORY_ROOT, 'libcore') 34 DESTINATION_DIR = os.path.join(LIBCORE_DIR, 'smoketest') 39 if not os.path.isdir(LIBCORE_DIR): 41 if not os.path.isdir(DESTINATION_DIR): 44 os.mkdir(DESTINATION_DIR, 0o755) 69 return sorted(sources, key=os.path.getmtime, reverse=True) 74 return os.path.relpath(source, LOGS_ROOT) [all …]
|
D | util.py | 18 import os 23 if 'ANDROID_BUILD_TOP' not in os.environ: 25 return os.environ['ANDROID_BUILD_TOP'] 30 relative_path = os.path.relpath(filename)
|
/libcore/luni/src/test/java/libcore/libcore/io/ |
D | FdsanTest.java | 36 long tag = Libcore.os.android_fdsan_get_owner_tag(fd); in testFileInputStream() 38 assertEquals("FileInputStream", Libcore.os.android_fdsan_get_tag_type(tag)); in testFileInputStream() 39 assertEquals(System.identityHashCode(fis), Libcore.os.android_fdsan_get_tag_value(tag)); in testFileInputStream() 46 long tag = Libcore.os.android_fdsan_get_owner_tag(fd); in testFileOutputStream() 48 assertEquals("FileOutputStream", Libcore.os.android_fdsan_get_tag_type(tag)); in testFileOutputStream() 49 assertEquals(System.identityHashCode(fis), Libcore.os.android_fdsan_get_tag_value(tag)); in testFileOutputStream() 56 long tag = Libcore.os.android_fdsan_get_owner_tag(fd); in testRandomAccessFile() 58 assertEquals("RandomAccessFile", Libcore.os.android_fdsan_get_tag_type(tag)); in testRandomAccessFile() 59 assertEquals(System.identityHashCode(fis), Libcore.os.android_fdsan_get_tag_value(tag)); in testRandomAccessFile() 80 long tag = Libcore.os.android_fdsan_get_owner_tag(fd); in testParcelFileDescriptor() [all …]
|
D | BlockGuardOsTest.java | 155 FileDescriptor unixSocket = Libcore.os.socket(AF_UNIX, SOCK_DGRAM, 0); in test_nonblock() 156 FileDescriptor udpSocket = Libcore.os.socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); in test_nonblock() 157 Libcore.os.fcntlInt(unixSocket, F_SETFL, O_NONBLOCK); in test_nonblock() 158 Libcore.os.fcntlInt(udpSocket, F_SETFL, O_NONBLOCK); in test_nonblock() 169 FileDescriptor unixSocket = Libcore.os.socket(AF_UNIX, SOCK_DGRAM, 0); in test_unixSocket() 170 FileDescriptor udpSocket = Libcore.os.socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); in test_unixSocket() 183 FileDescriptor unixSocket = Libcore.os.socket(AF_UNIX, SOCK_DGRAM, 0); in test_accept_networkPolicy() 184 Libcore.os.fcntlInt(unixSocket, F_SETFL, O_NONBLOCK); in test_accept_networkPolicy() 186 Libcore.os.bind(unixSocket, address); in test_accept_networkPolicy() 199 FileDescriptor udpSocket = Libcore.os.socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); in test_connect_networkPolicy() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | InflaterOutputStreamTest.java | 36 private ByteArrayOutputStream os = new ByteArrayOutputStream(); field in InflaterOutputStreamTest 52 new InflaterOutputStream(os).close(); in test_ConstructorLjava_io_OutputStream() 67 new InflaterOutputStream(os, inflater).close(); in test_ConstructorLjava_io_OutputStreamLjava_util_zip_Inflater() 77 new InflaterOutputStream(os, null); in test_ConstructorLjava_io_OutputStreamLjava_util_zip_Inflater() 91 new InflaterOutputStream(os, inflater, 20).close(); in test_ConstructorLjava_io_OutputStreamLjava_util_zip_InflaterI() 108 new InflaterOutputStream(os, null, -1); in test_ConstructorLjava_io_OutputStreamLjava_util_zip_InflaterI() 122 new InflaterOutputStream(os, inflater, 0); in test_ConstructorLjava_io_OutputStreamLjava_util_zip_InflaterI() 129 new InflaterOutputStream(os, inflater, -10000); in test_ConstructorLjava_io_OutputStreamLjava_util_zip_InflaterI() 142 InflaterOutputStream ios = new InflaterOutputStream(os); in test_close() 152 InflaterOutputStream ios = new InflaterOutputStream(os); in test_flush() [all …]
|
/libcore/tools/upstream/ |
D | upstream-diff | 53 import os 54 import os.path 61 android_build_top = os.environ['ANDROID_BUILD_TOP'] 63 ojluni_upstreams = os.environ['OJLUNI_UPSTREAMS'] 85 upstreams = os.environ['OJLUNI_UPSTREAMS'] 88 [d for d in os.listdir(upstreams) if os.path.isdir(os.path.join(upstreams, d))]
|
/libcore/ojluni/src/main/java/javax/crypto/ |
D | CipherOutputStream.java | 91 public CipherOutputStream(OutputStream os, Cipher c) { in CipherOutputStream() argument 92 super(os); in CipherOutputStream() 93 output = os; in CipherOutputStream() 106 protected CipherOutputStream(OutputStream os) { in CipherOutputStream() argument 107 super(os); in CipherOutputStream() 108 output = os; in CipherOutputStream()
|
/libcore/ojluni/src/main/java/java/net/ |
D | PlainSocketImpl.java | 180 Libcore.os.listen(fd, count); in socketListen() 201 FileDescriptor newfd = Libcore.os.accept(fd, peerAddress); in socketAccept() 237 Libcore.os.dup2(markerFD, fd.getInt$()); in socketClose0() 238 Libcore.os.close(markerFD); in socketClose0() 265 Libcore.os.socketpair(AF_UNIX, SOCK_STREAM, 0, fd1, fd2); in getMarkerFD() 268 Libcore.os.shutdown(fd1, SHUT_RDWR); in getMarkerFD() 269 Libcore.os.close(fd2); in getMarkerFD() 281 Libcore.os.shutdown(fd, howto); in socketShutdown() 307 Libcore.os.sendto(fd, buffer, 0, 1, MSG_OOB, null, 0); in socketSendUrgentData()
|