Searched defs:bb (Results 1 - 25 of 85) sorted by relevance

1234

/openjdk7/jdk/test/java/nio/Buffer/
H A DAllocateDirectInit.java35 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 DOrder.java44 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 DLazy.java36 volatile Boolean bb; field in class:Lazy
55 Boolean.class, "bb");
81 z.bb == true))
/openjdk7/langtools/test/tools/javac/T6356217/
H A DT6356217.java33 boolean bb; field in class:T
43 } while ((b ? t1 : t2).bb);
/openjdk7/jdk/test/java/io/Serializable/notAvailable/
H A DNotAvailable.java81 public Class1(int aa, int bb) { argument
83 b = bb;
/openjdk7/jdk/test/sun/nio/cs/
H A DFindASCIICodingBugs.java44 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 DTestX11CNS.java35 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 DPerfStringVariableMonitor.java47 * @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 DPerfByteArrayMonitor.java48 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 DPerfStringConstantMonitor.java53 * @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 DPerfStringMonitor.java50 * @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 DUtil.java114 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 DUtil.java114 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 DUtil.java114 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 DValidate.java79 public Class1(int aa, int bb) { argument
81 b = bb;
/openjdk7/jdk/test/java/nio/channels/DatagramChannel/
H A DEmptyBuffer.java50 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 DSender.java77 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 DShortWrite.java43 static long computeChecksum(ByteBuffer bb) { argument
45 crc32.update(bb.array());
/openjdk7/jdk/test/java/nio/charset/coders/
H A DUtil.java31 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 DZipCoding.java57 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 DChannelInputStream.java47 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 DISO2022_CN_CNS.java79 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 DStringContent.java80 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 DFlush.java36 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 DByteBufferInputStream.java42 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...]

Completed in 101 milliseconds

1234