Searched defs:original (Results 1 - 11 of 11) sorted by relevance

/libcore/luni/src/test/java/libcore/java/lang/
H A DOldStackTraceElementTest.java32 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/ojluni/src/main/native/
H A Dcanonicalize_md.c190 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));
271 /* Nothing resolved, so just return the original path */
/libcore/json/src/test/java/libcore/org/json/
H A DJSONStringerTest.java225 private void assertEscapedAllWays(String escaped, String original) throws JSONException { argument
227 new JSONStringer().object().key(original).value(false).endObject().toString());
229 new JSONStringer().object().key("a").value(original).endObject().toString());
231 new JSONStringer().array().value(original).endArray().toString());
232 assertEquals("\"" + escaped + "\"", JSONObject.quote(original));
/libcore/luni/src/test/java/libcore/java/net/
H A DUrlEncodingTest.java245 * 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 DAbstractZipFileTest.java70 private static void replaceBytes(byte[] buffer, byte[] original, byte[] replacement) { argument
71 // Gotcha here: original and replacement must be the same length
72 assertEquals(original.length, replacement.length);
74 for(int i=0; i < buffer.length - original.length; i++) {
76 if (buffer[i] == original[0]) {
78 for (int j=0; j < original.length; j++) {
79 if (buffer[i+j] != original[j]) {
86 for (int j=0; j < original.length; j++) {
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
H A DCipherThread.java50 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 DURITest.java1392 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 DBigInt.java91 void putDecString(String original) { argument
92 String s = checkString(original, 10);
96 throw invalidBigInteger(original);
100 void putHexString(String original) { argument
101 String s = checkString(original, 16);
105 throw invalidBigInteger(original);
/libcore/ojluni/src/main/java/java/util/
H A DArrays.java471 * working space no greater than the size of the original array. The
504 * space no greater than the size of the specified range of the original
541 * working space no greater than the size of the original array. The
574 * space no greater than the size of the specified range of the original
611 * working space no greater than the size of the original array. The
644 * space no greater than the size of the specified range of the original
681 * working space no greater than the size of the original array. The
714 * space no greater than the size of the specified range of the original
751 * working space no greater than the size of the original array. The
784 * space no greater than the size of the specified range of the original
3108 copyOf(T[] original, int newLength) argument
3136 copyOf(U[] original, int newLength, Class<? extends T[]> newType) argument
3163 copyOf(byte[] original, int newLength) argument
3187 copyOf(short[] original, int newLength) argument
3211 copyOf(int[] original, int newLength) argument
3235 copyOf(long[] original, int newLength) argument
3259 copyOf(char[] original, int newLength) argument
3283 copyOf(float[] original, int newLength) argument
3307 copyOf(double[] original, int newLength) argument
3331 copyOf(boolean[] original, int newLength) argument
3368 copyOfRange(T[] original, int from, int to) argument
3405 copyOfRange(U[] original, int from, int to, Class<? extends T[]> newType) argument
3444 copyOfRange(byte[] original, int from, int to) argument
3480 copyOfRange(short[] original, int from, int to) argument
3516 copyOfRange(int[] original, int from, int to) argument
3552 copyOfRange(long[] original, int from, int to) argument
3588 copyOfRange(char[] original, int from, int to) argument
3624 copyOfRange(float[] original, int from, int to) argument
3660 copyOfRange(double[] original, int from, int to) argument
3696 copyOfRange(boolean[] original, int from, int to) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/
H A DSAXParserTestSupport.java138 * @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 DString.java167 * explicit copy of {@code original} is needed, use of this constructor is
170 * @param original
173 public String(String original) { argument
2589 * {@code String} may be a different length than the original {@code String}.
2669 * {@code String} may be a different length than the original {@code String}.

Completed in 3032 milliseconds