/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | OldStackTraceElementTest.java | 32 private Original original; field in class:OldStackTraceElementTest 36 original = new Original(); 48 original.pureJavaMethod(new Object()); 96 original.pureJavaMethod(new Object()); 111 original.pureJavaMethod(new Object()); 125 original.pureJavaMethod(new Object()); 139 original.pureJavaMethod(new Object()); 149 original.pureJavaMethod(new Object()); 163 original.pureJavaMethod(new Object()); 181 original [all...] |
/libcore/json/src/test/java/org/json/ |
H A D | JSONStringerTest.java | 220 private void assertEscapedAllWays(String escaped, String original) throws JSONException { argument 222 new JSONStringer().object().key(original).value(false).endObject().toString()); 224 new JSONStringer().object().key("a").value(original).endObject().toString()); 226 new JSONStringer().array().value(original).endArray().toString()); 227 assertEquals("\"" + escaped + "\"", JSONObject.quote(original));
|
/libcore/luni/src/test/java/libcore/dalvik/system/ |
H A D | SocketTaggingTest.java | 78 private SocketTagger original; field in class:SocketTaggingTest 88 original = SocketTagger.get(); 95 SocketTagger.set(original);
|
/libcore/ojluni/src/main/native/ |
H A D | canonicalize_md.c | 190 canonicalize(char *original, char *resolved, int len) argument 197 if (strlen(original) > PATH_MAX) { 203 if (realpath(original, resolved)) { 209 /* Something's bogus in the original path, so remove names from the end 214 strncpy(path, original, sizeof(path)); 270 /* Nothing resolved, so just return the original path */
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | UrlEncodingTest.java | 245 * Asserts that {@code original} decodes to {@code decoded} using both URI 248 private void assertDecoded(String decoded, String original) throws Exception { argument 249 assertEquals(decoded, new URI("http://foo#" + original).getFragment()); 250 assertEquals(decoded, URLDecoder.decode(original)); 251 assertEquals(decoded, URLDecoder.decode(original, "UTF-8")); 255 * Asserts that {@code original} encodes to {@code encoded} using both URI 258 private void assertEncoded(String encoded, String original) throws Exception { argument 259 assertEquals(encoded, URLEncoder.encode(original, "UTF-8")); 260 assertEquals(encoded, URLEncoder.encode(original)); 261 assertEquals(encoded, new URI("http", "foo", "/", original) 264 assertRoundTrip(String original, String encoded) argument [all...] |
/libcore/luni/src/test/java/libcore/java/util/zip/ |
H A D | AbstractZipFileTest.java | 65 private static void replaceBytes(byte[] buffer, byte[] original, byte[] replacement) { argument 66 // Gotcha here: original and replacement must be the same length 67 assertEquals(original.length, replacement.length); 69 for(int i=0; i < buffer.length - original.length; i++) { 71 if (buffer[i] == original[0]) { 73 for (int j=0; j < original.length; j++) { 74 if (buffer[i+j] != original[j]) { 81 for (int j=0; j < original.length; j++) {
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
H A D | CipherThread.java | 50 public void checkEncodedData(byte[] original, byte[] encoded) argument 52 for(int i = 0; i < original.length; i++) { 53 if (original[i] != encoded[i]) { 60 public void checkPaddedEncodedData(byte[] original, byte[] encoded, int offset) argument 67 for (int i = 0; i < original.length; i++) { 68 if (original[i] != encoded[i + offset]) {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
H A D | URITest.java | 1392 private void testNormalize(String original, String expected) throws URISyntaxException { argument 1393 assertEquals(expected, new URI(original).normalize().toString());
|
/libcore/luni/src/main/java/java/math/ |
H A D | BigInt.java | 89 void putDecString(String original) { argument 90 String s = checkString(original, 10); 94 throw invalidBigInteger(original); 98 void putHexString(String original) { argument 99 String s = checkString(original, 16); 103 throw invalidBigInteger(original);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/ |
H A D | SAXParserTestSupport.java | 138 * @param original the reference 142 public static boolean equalsMaps(HashMap<String, String> original, argument 145 if(original == null && result == null) { 148 if(original.size() != result.size()) return false; 151 if(!original.get(KEYS[i]).equals(result.get(KEYS[i]))) { 152 System.out.println("for "+KEYS[i]+": original:" + 153 original.get(KEYS[i]));
|
/libcore/ojluni/src/main/java/java/lang/ |
H A D | String.java | 156 * explicit copy of {@code original} is needed, use of this constructor is 159 * @param original 162 public String(String original) { argument 2375 * <code>String</code> may be a different length than the original <code>String</code>. 2454 * <code>String</code> may be a different length than the original <code>String</code>.
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | Arrays.java | 436 * working space no greater than the size of the original array. The 469 * space no greater than the size of the specified range of the original 506 * working space no greater than the size of the original array. The 539 * space no greater than the size of the specified range of the original 576 * working space no greater than the size of the original array. The 609 * space no greater than the size of the specified range of the original 646 * working space no greater than the size of the original array. The 679 * space no greater than the size of the specified range of the original 716 * working space no greater than the size of the original array. The 749 * space no greater than the size of the specified range of the original 3203 copyOf(T[] original, int newLength) argument 3229 copyOf(U[] original, int newLength, Class<? extends T[]> newType) argument 3255 copyOf(byte[] original, int newLength) argument 3279 copyOf(short[] original, int newLength) argument 3303 copyOf(int[] original, int newLength) argument 3327 copyOf(long[] original, int newLength) argument 3351 copyOf(char[] original, int newLength) argument 3375 copyOf(float[] original, int newLength) argument 3399 copyOf(double[] original, int newLength) argument 3423 copyOf(boolean[] original, int newLength) argument 3458 copyOfRange(T[] original, int from, int to) argument 3493 copyOfRange(U[] original, int from, int to, Class<? extends T[]> newType) argument 3531 copyOfRange(byte[] original, int from, int to) argument 3567 copyOfRange(short[] original, int from, int to) argument 3603 copyOfRange(int[] original, int from, int to) argument 3639 copyOfRange(long[] original, int from, int to) argument 3675 copyOfRange(char[] original, int from, int to) argument 3711 copyOfRange(float[] original, int from, int to) argument 3747 copyOfRange(double[] original, int from, int to) argument 3783 copyOfRange(boolean[] original, int from, int to) argument [all...] |