Home
last modified time | relevance | path

Searched refs:r (Results 1 – 25 of 82) sorted by relevance

1234

/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DNullCipherTest.java102 byte [] r = c.update(b); in testUpdatebyteArray()
103 assertEquals("different length", b.length, r.length); in testUpdatebyteArray()
104 assertTrue("different content", Arrays.equals(b, r)); in testUpdatebyteArray()
112 byte [] r = c.update(b, 0, 5); in testUpdatebyteArrayintint()
113 assertEquals("different length", b.length, r.length); in testUpdatebyteArrayintint()
114 assertTrue("different content", Arrays.equals(b, r)); in testUpdatebyteArrayintint()
116 r = c.update(b, 1, 3); in testUpdatebyteArrayintint()
117 assertEquals("different length", 3, r.length); in testUpdatebyteArrayintint()
119 assertEquals("different content", b[i + 1], r[i]); in testUpdatebyteArrayintint()
128 byte [] r = new byte[5]; in testUpdatebyteArrayintintbyteArray()
[all …]
/libcore/luni/src/test/java/libcore/java/io/
DOldAndroidStringReaderTest.java42 int r; in read() local
45 r = a.read(); in read()
46 if (r != -1) in read()
47 builder.append((char) r); in read()
48 } while (r != -1); in read()
62 int r; in skipRead() local
66 r = a.read(); in skipRead()
67 if (r != -1) in skipRead()
68 builder.append((char) r); in skipRead()
69 } while (r != -1); in skipRead()
[all …]
DOldAndroidByteArrayInputStreamTest.java45 int r; in read() local
48 r = a.read(); in read()
49 if (r != -1) in read()
50 builder.append((char) r); in read()
51 } while (r != -1); in read()
65 int r; in skipRead() local
69 r = a.read(); in skipRead()
70 if (r != -1) in skipRead()
71 builder.append((char) r); in skipRead()
72 } while (r != -1); in skipRead()
[all …]
DOldAndroidCharArrayReaderTest.java44 int r; in read() local
47 r = a.read(); in read()
48 if (r != -1) in read()
49 builder.append((char) r); in read()
50 } while (r != -1); in read()
64 int r; in skipRead() local
68 r = a.read(); in skipRead()
69 if (r != -1) in skipRead()
70 builder.append((char) r); in skipRead()
71 } while (r != -1); in skipRead()
[all …]
DOldAndroidPushbackInputStreamTest.java59 int r; in read() local
62 r = a.read(); in read()
63 if (r != -1) in read()
64 builder.append((char) r); in read()
65 } while (r != -1); in read()
79 int r; in skipRead() local
83 r = a.read(); in skipRead()
84 if (r != -1) in skipRead()
85 builder.append((char) r); in skipRead()
86 } while (r != -1); in skipRead()
[all …]
DOldAndroidBufferedReaderTest.java67 int r; in read() local
70 r = a.read(); in read()
71 if (r != -1) in read()
72 builder.append((char) r); in read()
73 } while (r != -1); in read()
87 int r; in skipRead() local
91 r = a.read(); in skipRead()
92 if (r != -1) in skipRead()
93 builder.append((char) r); in skipRead()
94 } while (r != -1); in skipRead()
[all …]
DOldAndroidLineNumberReaderTest.java81 int r; in read() local
84 r = a.read(); in read()
85 if (r != -1) in read()
86 builder.append((char) r); in read()
87 } while (r != -1); in read()
101 int r; in skipRead() local
105 r = a.read(); in skipRead()
106 if (r != -1) in skipRead()
107 builder.append((char) r); in skipRead()
108 } while (r != -1); in skipRead()
[all …]
DOldAndroidPushbackReaderTest.java59 int r; in read() local
62 r = a.read(); in read()
63 if (r != -1) in read()
64 builder.append((char) r); in read()
65 } while (r != -1); in read()
79 int r; in skipRead() local
83 r = a.read(); in skipRead()
84 if (r != -1) in skipRead()
85 builder.append((char) r); in skipRead()
86 } while (r != -1); in skipRead()
DOldAndroidDataInputStreamTest.java109 int r; in read() local
112 r = a.read(); in read()
113 if (r != -1) in read()
114 builder.append((char) r); in read()
115 } while (r != -1); in read()
129 int r; in skipRead() local
133 r = a.read(); in skipRead()
134 if (r != -1) in skipRead()
135 builder.append((char) r); in skipRead()
136 } while (r != -1); in skipRead()
[all …]
DOldAndroidBufferedInputStreamTest.java83 int r; in read() local
86 r = a.read(); in read()
87 if (r != -1) in read()
88 builder.append((char) r); in read()
89 } while (r != -1); in read()
94 int r; in skipRead() local
98 r = a.read(); in skipRead()
99 if (r != -1) in skipRead()
100 builder.append((char) r); in skipRead()
101 } while (r != -1); in skipRead()
/libcore/luni/src/main/java/java/util/logging/
DXMLFormatter.java49 public String format(LogRecord r) { in format() argument
51 long time = r.getMillis(); in format()
60 append(sb, 1, "sequence", r.getSequenceNumber()); in format()
61 if (r.getLoggerName() != null) { in format()
62 append(sb, 1, "logger", r.getLoggerName()); in format()
64 append(sb, 1, "level", r.getLevel().getName()); in format()
65 if (r.getSourceClassName() != null) { in format()
66 append(sb, 1, "class", r.getSourceClassName()); in format()
68 if (r.getSourceMethodName() != null) { in format()
69 append(sb, 1, "method", r.getSourceMethodName()); in format()
[all …]
DSimpleFormatter.java46 public String format(LogRecord r) { in format() argument
49 new Object[] { new Date(r.getMillis()) })); in format()
50 sb.append(r.getSourceClassName()).append(" "); in format()
51 sb.append(r.getSourceMethodName()).append(System.lineSeparator()); in format()
52 sb.append(r.getLevel().getName()).append(": "); in format()
53 sb.append(formatMessage(r)).append(System.lineSeparator()); in format()
54 if (r.getThrown() != null) { in format()
56 Throwable t = r.getThrown(); in format()
DFormatter.java46 public abstract String format(LogRecord r); in format() argument
63 public String formatMessage(LogRecord r) { in formatMessage() argument
64 String pattern = r.getMessage(); in formatMessage()
67 if ((rb = r.getResourceBundle()) != null) { in formatMessage()
71 pattern = r.getMessage(); in formatMessage()
75 Object[] params = r.getParameters(); in formatMessage()
84 pattern = r.getMessage(); in formatMessage()
/libcore/luni/src/test/java/libcore/java/util/logging/
DOldFileHandlerTest.java47 LogRecord r; field in OldFileHandlerTest
77 r = new LogRecord(Level.CONFIG, "msg"); in setUp()
102 handler.publish(r); in testFileHandler()
108 handler.publish(r); in testFileHandler()
112 new LogRecord[] { r, null, r, null, r, null, r }, in testFileHandler()
126 handler.publish(r); in testFileHandler_1params()
133 handler.publish(r); in testFileHandler_1params()
137 r, null, r, null, r, null, r }, new MockFormatter()); in testFileHandler_1params()
145 h.publish(r); in testFileHandler_1params()
146 h2.publish(r); in testFileHandler_1params()
[all …]
DOldFormatterTest.java31 LogRecord r = new LogRecord(Level.FINE, MSG); field in OldFormatterTest
48 h.publish(r); in testGetHead()
55 h.publish(r); in testGetTail()
65 r.setMessage(pattern); in testFormatMessage()
66 assertEquals(pattern, f.formatMessage(r)); in testFormatMessage()
/libcore/luni/src/test/java/tests/api/java/util/
DRandomTest.java24 Random r; field in RandomTest
38 Random r = new Random(8409238L); in test_ConstructorJ() local
41 assertTrue("Values from randoms with same seed don't match", r in test_ConstructorJ()
52 if (r.nextBoolean()) in test_nextBoolean()
69 r.nextBytes(randomBytes); in test_nextBytes$B()
84 double lastNum = r.nextDouble(); in test_nextDouble()
89 nextNum = r.nextDouble(); in test_nextDouble()
108 float lastNum = r.nextFloat(); in test_nextFloat()
113 nextNum = r.nextFloat(); in test_nextFloat()
131 double lastNum = r.nextGaussian(); in test_nextGaussian()
[all …]
/libcore/luni/src/main/java/java/math/
DBigInt.java269 BigInt r = newBigInt(); in shift() local
270 Check(NativeBN.BN_shift(r.bignum, a.bignum, n)); in shift()
271 return r; in shift()
293 BigInt r = newBigInt(); in addition() local
294 Check(NativeBN.BN_add(r.bignum, a.bignum, b.bignum)); in addition()
295 return r; in addition()
303 BigInt r = newBigInt(); in subtraction() local
304 Check(NativeBN.BN_sub(r.bignum, a.bignum, b.bignum)); in subtraction()
305 return r; in subtraction()
310 BigInt r = newBigInt(); in gcd() local
[all …]
DNativeBN.java96 public static native boolean BN_shift(int r, int a, int n); in BN_shift() argument
119 public static native boolean BN_add(int r, int a, int b); in BN_add() argument
122 public static native boolean BN_sub(int r, int a, int b); in BN_sub() argument
125 public static native boolean BN_gcd(int r, int a, int b); in BN_gcd() argument
128 public static native boolean BN_mul(int r, int a, int b); in BN_mul() argument
131 public static native boolean BN_exp(int r, int a, int p); in BN_exp() argument
141 public static native boolean BN_nnmod(int r, int a, int m); in BN_nnmod() argument
144 public static native boolean BN_mod_exp(int r, int a, int p, int m); in BN_mod_exp() argument
/libcore/luni/src/test/java/tests/java/sql/
DUpdateFunctionalityTest2.java189 ResultSet r = statement.executeQuery("SELECT COUNT(*) " + "FROM " in testUpdate5() local
191 r.next(); in testUpdate5()
192 assertEquals("Should be 2 rows", 2, r.getInt(1)); in testUpdate5()
193 r = statement.executeQuery("SELECT COUNT(*) " + "FROM " in testUpdate5()
195 r.next(); in testUpdate5()
196 assertEquals("Should be 0 rows", 0, r.getInt(1)); in testUpdate5()
197 r.close(); in testUpdate5()
232 ResultSet r = statement.executeQuery("SELECT COUNT(*) FROM " in testUpdate7() local
234 r.next(); in testUpdate7()
235 assertEquals("Should be 1 row", 1, r.getInt(1)); in testUpdate7()
[all …]
DInsertFunctionalityTest.java162 ResultSet r = statement.executeQuery("SELECT COUNT(*) FROM " in testInsert3() local
164 r.next(); in testInsert3()
165 assertEquals("Should be 2 rows", 2, r.getInt(1)); in testInsert3()
166 r.close(); in testInsert3()
178 ResultSet r = statement.executeQuery("SELECT COUNT(*) FROM " in testInsert4() local
182 r.next(); in testInsert4()
183 assertEquals("Should be 2 rows", 2, r.getInt(1)); in testInsert4()
184 r.close(); in testInsert4()
196 ResultSet r = statement.executeQuery("SELECT COUNT(*) FROM " in testInsert5() local
198 r.next(); in testInsert5()
[all …]
DDeleteFunctionalityTest.java158 ResultSet r = statement.executeQuery("SELECT COUNT(*) FROM " in testDelete5() local
160 r.next(); in testDelete5()
161 assertEquals("Should be no rows", 0, r.getInt(1)); in testDelete5()
162 r.close(); in testDelete5()
175 ResultSet r = statement.executeQuery("SELECT COUNT(*) FROM " in testDelete6() local
177 r.next(); in testDelete6()
178 assertEquals("Should be 2 rows", 2, r.getInt(1)); in testDelete6()
179 r.close(); in testDelete6()
194 ResultSet r = statement.executeQuery("SELECT COUNT(*) FROM " in testDelete7() local
196 r.next(); in testDelete7()
[all …]
/libcore/luni/src/main/java/java/lang/ref/
DWeakReference.java94 public WeakReference(T r) { in WeakReference() argument
95 super(r, null); in WeakReference()
107 public WeakReference(T r, ReferenceQueue<? super T> q) { in WeakReference() argument
108 super(r, q); in WeakReference()
DSoftReference.java86 public SoftReference(T r) { in SoftReference() argument
87 super(r, null); in SoftReference()
99 public SoftReference(T r, ReferenceQueue<? super T> q) { in SoftReference() argument
100 super(r, q); in SoftReference()
/libcore/luni/src/main/java/java/nio/charset/
DCoderResult.java116 CoderResult r = _malformedErrors.get(key); in malformedForLength() local
117 if (r == null) { in malformedForLength()
118 r = new CoderResult(TYPE_MALFORMED_INPUT, length); in malformedForLength()
119 _malformedErrors.put(key, r); in malformedForLength()
121 return r; in malformedForLength()
144 CoderResult r = _unmappableErrors.get(key); in unmappableForLength() local
145 if (r == null) { in unmappableForLength()
146 r = new CoderResult(TYPE_UNMAPPABLE_CHAR, length); in unmappableForLength()
147 _unmappableErrors.put(key, r); in unmappableForLength()
149 return r; in unmappableForLength()
/libcore/luni/src/test/java/tests/security/cert/
DPKIXCertPathBuilderResultTest.java86 CertPathBuilderResult r = in testPKIXCertPathBuilderResult01() local
92 assertTrue(r instanceof PKIXCertPathBuilderResult); in testPKIXCertPathBuilderResult01()
109 CertPathBuilderResult r = in testPKIXCertPathBuilderResult02() local
115 assertTrue(r instanceof PKIXCertPathBuilderResult); in testPKIXCertPathBuilderResult02()
217 CertPathBuilderResult r = in testGetCertPath() local
226 assertSame(cp, r.getCertPath()); in testGetCertPath()
242 CertPathBuilderResult r = in testToString() local
249 assertNotNull(r.toString()); in testToString()

1234