/openjdk7/jdk/test/java/nio/Buffer/ |
H A D | AllocateDirectInit.java | 35 ByteBuffer bb = ByteBuffer.allocateDirect(1024); 36 // printByteBuffer(bb); 37 for (bb.position(0); bb.position() < bb.limit(); ) { 38 if ((bb.get() & 0xff) != 0) 40 + bb.position()); 45 private static void printByteBuffer(ByteBuffer bb) { argument 47 for (bb.position(0); bb [all...] |
H A D | Order.java | 44 static void ckViews(ByteBuffer bb, ByteOrder ord) { argument 45 ck(bb.asCharBuffer().order(), bb.order()); 46 ck(bb.asIntBuffer().order(), bb.order()); 47 ck(bb.asLongBuffer().order(), bb.order()); 48 ck(bb.asFloatBuffer().order(), bb.order()); 49 ck(bb 52 ckByteBuffer(ByteBuffer bb) argument [all...] |
/openjdk7/jdk/test/java/util/concurrent/atomic/ |
H A D | Lazy.java | 36 volatile Boolean bb; field in class:Lazy 55 Boolean.class, "bb"); 81 z.bb == true))
|
/openjdk7/langtools/test/tools/javac/T6356217/ |
H A D | T6356217.java | 33 boolean bb; field in class:T 43 } while ((b ? t1 : t2).bb);
|
/openjdk7/jdk/test/java/io/Serializable/notAvailable/ |
H A D | NotAvailable.java | 81 public Class1(int aa, int bb) { argument 83 b = bb;
|
/openjdk7/jdk/test/sun/nio/cs/ |
H A D | FindASCIICodingBugs.java | 44 private static boolean equals(byte[] ba, ByteBuffer bb) { argument 45 if (ba.length != bb.limit()) 48 if (ba[i] != bb.get(i)) 74 ByteBuffer bb = enc.encode(CharBuffer.wrap(new char[]{'A'})); 76 check(equals(bytes1, bb)); 79 CharBuffer cb = dec.decode(bb);
|
H A D | TestX11CNS.java | 35 static char[] decode(byte[] bb, Charset cs) argument 38 ByteBuffer bbf = ByteBuffer.wrap(bb); 39 CharBuffer cbf = CharBuffer.allocate(bb.length); 44 System.out.printf(" cr=%s, bbf.pos=%d, bb[pos]=%x,%x,%x,%x%n", 46 bb[pos++]&0xff, bb[pos++]&0xff,bb[pos++]&0xff, bb[pos++]&0xff); 69 byte[] bb = new byte[bbf.position()]; 70 bbf.flip(); bbf.get(bb); [all...] |
/openjdk7/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/ |
H A D | PerfStringVariableMonitor.java | 47 * @param bb the buffer containing the string instrument data. 50 ByteBuffer bb) { 51 this(name, supported, bb, bb.limit()); 59 * @param bb the buffer containing the string instrument data. 64 ByteBuffer bb, int maxLength) { 66 super(name, Variability.VARIABLE, supported, bb, maxLength+1); 49 PerfStringVariableMonitor(String name, boolean supported, ByteBuffer bb) argument 63 PerfStringVariableMonitor(String name, boolean supported, ByteBuffer bb, int maxLength) argument
|
H A D | PerfByteArrayMonitor.java | 48 ByteBuffer bb; field in class:PerfByteArrayMonitor 58 * @param bb the buffer containing the byte array instrument data 62 boolean supported, ByteBuffer bb, 65 this.bb = bb; 88 bb.position(0); 89 byte[] b = new byte[bb.limit()]; 92 bb.get(b); 104 bb.position(index); 105 return bb 61 PerfByteArrayMonitor(String name, Units u, Variability v, boolean supported, ByteBuffer bb, int vectorLength) argument [all...] |
H A D | PerfStringConstantMonitor.java | 53 * @param bb the buffer containing the string instrument data 56 ByteBuffer bb) { 57 super(name, Variability.CONSTANT, supported, bb); 55 PerfStringConstantMonitor(String name, boolean supported, ByteBuffer bb) argument
|
H A D | PerfStringMonitor.java | 50 * @param bb the buffer containing the string instrument data. 53 ByteBuffer bb) { 54 this(name, v, supported, bb, bb.limit()); 64 * @param bb the buffer containing the string instrument data. 68 ByteBuffer bb, int maxLength) { 69 super(name, Units.STRING, v, supported, bb, maxLength); 52 PerfStringMonitor(String name, Variability v, boolean supported, ByteBuffer bb) argument 67 PerfStringMonitor(String name, Variability v, boolean supported, ByteBuffer bb, int maxLength) argument
|
/openjdk7/jdk/test/com/sun/nio/sctp/SctpChannel/ |
H A D | Util.java | 114 static boolean compare(ByteBuffer bb, byte[] message) { argument 115 if (message.length != bb.remaining()) { 121 byte b = bb.get(); 131 static boolean compare(ByteBuffer bb, String str) { argument 133 return Util.compare(bb, str.getBytes("ISO-8859-1"));
|
/openjdk7/jdk/test/com/sun/nio/sctp/SctpMultiChannel/ |
H A D | Util.java | 114 static boolean compare(ByteBuffer bb, byte[] message) { argument 115 if (message.length != bb.remaining()) { 121 byte b = bb.get(); 131 static boolean compare(ByteBuffer bb, String str) { argument 133 return Util.compare(bb, str.getBytes("ISO-8859-1"));
|
/openjdk7/jdk/test/com/sun/nio/sctp/SctpServerChannel/ |
H A D | Util.java | 114 static boolean compare(ByteBuffer bb, byte[] message) { argument 115 if (message.length != bb.remaining()) { 121 byte b = bb.get(); 131 static boolean compare(ByteBuffer bb, String str) { argument 133 return Util.compare(bb, str.getBytes("ISO-8859-1"));
|
/openjdk7/jdk/test/java/io/Serializable/validate/ |
H A D | Validate.java | 79 public Class1(int aa, int bb) { argument 81 b = bb;
|
/openjdk7/jdk/test/java/nio/channels/DatagramChannel/ |
H A D | EmptyBuffer.java | 50 ByteBuffer bb = ByteBuffer.allocateDirect(12); 51 bb.order(ByteOrder.BIG_ENDIAN); 52 bb.putInt(1).putLong(1); 53 bb.flip(); 57 dc.write(bb); 58 bb.rewind(); 59 dc.write(bb); 60 bb.rewind(); 61 dc.write(bb); 87 void showBuffer(String s, ByteBuffer bb) { argument [all...] |
H A D | Sender.java | 77 ByteBuffer bb = ByteBuffer.allocateDirect(12); 78 bb.order(ByteOrder.BIG_ENDIAN); 79 bb.putInt(1).putLong(1); 80 bb.flip(); 84 dc.write(bb); 108 void showBuffer(String s, ByteBuffer bb) { argument 110 bb.rewind(); 111 for (int i=0; i<bb.limit(); i++) { 112 byte element = bb.get(); 122 ByteBuffer bb [all...] |
/openjdk7/jdk/test/java/nio/channels/SocketChannel/ |
H A D | ShortWrite.java | 43 static long computeChecksum(ByteBuffer bb) { argument 45 crc32.update(bb.array());
|
/openjdk7/jdk/test/java/nio/charset/coders/ |
H A D | Util.java | 31 public static int cmp(byte[] ba, byte[] bb) { argument 32 int n = Math.min(ba.length, bb.length); 34 if ((i >= ba.length) || (i >= bb.length)) 36 if (ba[i] != bb[i]) 39 if (ba.length != bb.length)
|
/openjdk7/jdk/test/java/util/zip/ |
H A D | ZipCoding.java | 57 String name, String comment, byte[] bb) 64 byte[] bBuf = new byte[bb.length << 1]; 66 if (n != bb.length || 67 !Arrays.equals(bb, Arrays.copyOf(bBuf, n))) { 74 String name, String comment, byte[] bb) 86 byte[] bBuf = new byte[bb.length << 1]; 92 if (n != bb.length || 93 !Arrays.equals(bb, Arrays.copyOf(bBuf, n))) { 102 byte[] bb = "This is the content of the zipfile".getBytes("ISO-8859-1"); 109 zos.write(bb, 56 testZipInputStream(InputStream is, Charset cs, String name, String comment, byte[] bb) argument 73 testZipFile(File f, Charset cs, String name, String comment, byte[] bb) argument [all...] |
/openjdk7/jdk/src/share/classes/sun/nio/ch/ |
H A D | ChannelInputStream.java | 47 public static int read(ReadableByteChannel ch, ByteBuffer bb, argument 59 int n = ch.read(bb); 65 return ch.read(bb); 70 private ByteBuffer bb = null; field in class:ChannelInputStream 96 ByteBuffer bb = ((this.bs == bs) 97 ? this.bb 99 bb.limit(Math.min(off + len, bb.capacity())); 100 bb.position(off); 101 this.bb 106 read(ByteBuffer bb) argument [all...] |
/openjdk7/jdk/src/share/classes/sun/nio/cs/ext/ |
H A D | ISO2022_CN_CNS.java | 79 private byte[] bb = new byte[4]; field in class:ISO2022_CN_CNS.Encoder 83 (n = ((EUC_TW.Encoder)ISOEncoder).toEUC(c, bb)) == 2 || 84 (n == 4 && bb[0] == SS2 && 85 (bb[1] == PLANE2 || bb[1] == PLANE3)));
|
/openjdk7/jdk/src/share/sample/nio/server/ |
H A D | StringContent.java | 80 private ByteBuffer bb = null; field in class:StringContent 83 if (bb == null) 84 bb = ascii.encode(CharBuffer.wrap(content)); 89 return bb.remaining(); 94 bb.rewind(); 98 if (bb == null) 100 cio.write(bb); 102 return bb.hasRemaining();
|
/openjdk7/jdk/test/java/nio/charset/CharsetEncoder/ |
H A D | Flush.java | 36 private static byte[] contents(ByteBuffer bb) { argument 37 byte[] contents = new byte[bb.position()]; 38 ((ByteBuffer)(bb.duplicate().flip())).get(contents); 42 private static ByteBuffer extend(ByteBuffer bb) { argument 43 ByteBuffer x = ByteBuffer.allocate(2*bb.capacity()+10); 44 bb.flip(); 45 x.put(bb); 56 ByteBuffer bb = ByteBuffer.allocate(6); 59 check(enc.encode(cb, bb, true).isUnderflow()); 61 System.out.println(Arrays.toString(contents(bb))); [all...] |
/openjdk7/jdk/src/share/classes/sun/security/ssl/ |
H A D | ByteBufferInputStream.java | 42 ByteBuffer bb; field in class:ByteBufferInputStream 44 ByteBufferInputStream(ByteBuffer bb) { argument 45 this.bb = bb; 55 if (bb == null) { 59 if (bb.remaining() == 0) { 62 return bb.get(); 72 if (bb == null) { 86 if (bb == null) { 98 int length = Math.min(bb [all...] |