/libcore/luni/src/main/native/ |
D | android_system_OsConstants.cpp | 61 static void initConstant(JNIEnv* env, jclass c, const char* fieldName, int value) { in initConstant() argument 62 jfieldID field = env->GetStaticFieldID(c, fieldName, "I"); in initConstant() 63 env->SetStaticIntField(c, field, value); in initConstant() 66 static void OsConstants_initConstants(JNIEnv* env, jclass c) { in OsConstants_initConstants() argument 67 initConstant(env, c, "AF_INET", AF_INET); in OsConstants_initConstants() 68 initConstant(env, c, "AF_INET6", AF_INET6); in OsConstants_initConstants() 69 initConstant(env, c, "AF_PACKET", AF_PACKET); in OsConstants_initConstants() 70 initConstant(env, c, "AF_NETLINK", AF_NETLINK); in OsConstants_initConstants() 71 initConstant(env, c, "AF_UNIX", AF_UNIX); in OsConstants_initConstants() 72 initConstant(env, c, "AF_VSOCK", AF_VSOCK); in OsConstants_initConstants() [all …]
|
/libcore/ojluni/src/main/native/ |
D | Android.bp | 29 "ZipFile.c", 30 "Inflater.c", 31 "Deflater.c", 32 "CRC32.c", 33 "Adler32.c", 34 "zip_util.c", 35 "jni_util.c", 36 "jni_util_md.c", 37 "io_util.c", 38 "canonicalize_md.c", [all …]
|
/libcore/ojluni/src/main/java/java/io/ |
D | StreamTokenizer.java | 533 int c = peekc; in nextToken() local 534 if (c < 0) in nextToken() 535 c = NEED_CHAR; in nextToken() 536 if (c == SKIP_LF) { in nextToken() 537 c = read(); in nextToken() 538 if (c < 0) in nextToken() 540 if (c == '\n') in nextToken() 541 c = NEED_CHAR; in nextToken() 543 if (c == NEED_CHAR) { in nextToken() 544 c = read(); in nextToken() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | CollatorTest.java | 27 Collator c = Collator.getInstance(Locale.GERMAN); in test_clone() local 28 Collator c2 = (Collator) c.clone(); in test_clone() 29 assertTrue("Clones answered false to equals", c.equals(c2)); in test_clone() 30 assertTrue("Clones were equivalent", c != c2); in test_clone() 34 Collator c = Collator.getInstance(Locale.FRENCH); in test_compareLjava_lang_ObjectLjava_lang_Object() local 37 c.setStrength(Collator.IDENTICAL); in test_compareLjava_lang_ObjectLjava_lang_Object() 40 assertTrue("a) Failed on primary difference", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object() 43 assertTrue("a) Failed on secondary difference", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object() 46 assertTrue("a) Failed on tertiary difference", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object() 49 assertTrue("a) Failed on identical", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/ |
D | ConstructorTest.java | 60 public AnnotatedClass(int a, int b, int c) {} in AnnotatedClass() argument 62 public AnnotatedClass(int a, int b, int c, int d) {} in AnnotatedClass() argument 67 Class<?> c = AnnotatedClass.class; in testDeclaredAnnotation() local 70 checkDeclaredAnnotation(c, 4, repeated, null); in testDeclaredAnnotation() 71 checkDeclaredAnnotation(c, 3, repeated, "@Repeated(1)"); in testDeclaredAnnotation() 72 checkDeclaredAnnotation(c, 2, repeated, null); in testDeclaredAnnotation() 73 checkDeclaredAnnotation(c, 1, repeated, null); in testDeclaredAnnotation() 74 checkDeclaredAnnotation(c, 0, repeated, "@Repeated(1)"); in testDeclaredAnnotation() 77 checkDeclaredAnnotation(c, 4, container, null); in testDeclaredAnnotation() 78 checkDeclaredAnnotation(c, 3, container, "@Container({@Repeated(2), @Repeated(3)})"); in testDeclaredAnnotation() [all …]
|
D | MethodTest.java | 66 Class<?> c = AnnotatedClass.class; in testDeclaredAnnotation() local 69 checkDeclaredAnnotation(c, "noAnnotation", repeated, null); in testDeclaredAnnotation() 70 checkDeclaredAnnotation(c, "multipleAnnotationOddity", repeated, "@Repeated(1)"); in testDeclaredAnnotation() 71 checkDeclaredAnnotation(c, "multipleAnnotationExplicitSingle", repeated, null); in testDeclaredAnnotation() 72 checkDeclaredAnnotation(c, "multipleAnnotation", repeated, null); in testDeclaredAnnotation() 73 checkDeclaredAnnotation(c, "singleAnnotation", repeated, "@Repeated(1)"); in testDeclaredAnnotation() 76 checkDeclaredAnnotation(c, "noAnnotation", container, null); in testDeclaredAnnotation() 77 checkDeclaredAnnotation(c, "multipleAnnotationOddity", container, in testDeclaredAnnotation() 79 checkDeclaredAnnotation(c, "multipleAnnotationExplicitSingle", container, in testDeclaredAnnotation() 81 checkDeclaredAnnotation(c, "multipleAnnotation", container, in testDeclaredAnnotation() [all …]
|
D | FieldTest.java | 66 Class<?> c = AnnotatedClass.class; in testDeclaredAnnotation() local 69 checkDeclaredAnnotation(c, "noAnnotation", repeated, null); in testDeclaredAnnotation() 70 checkDeclaredAnnotation(c, "multipleAnnotationOddity", repeated, "@Repeated(1)"); in testDeclaredAnnotation() 71 checkDeclaredAnnotation(c, "multipleAnnotationExplicitSingle", repeated, null); in testDeclaredAnnotation() 72 checkDeclaredAnnotation(c, "multipleAnnotation", repeated, null); in testDeclaredAnnotation() 73 checkDeclaredAnnotation(c, "singleAnnotation", repeated, "@Repeated(1)"); in testDeclaredAnnotation() 76 checkDeclaredAnnotation(c, "noAnnotation", container, null); in testDeclaredAnnotation() 77 checkDeclaredAnnotation(c, "multipleAnnotationOddity", container, in testDeclaredAnnotation() 79 checkDeclaredAnnotation(c, "multipleAnnotationExplicitSingle", container, in testDeclaredAnnotation() 81 checkDeclaredAnnotation(c, "multipleAnnotation", container, in testDeclaredAnnotation() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | CipherTest.java | 324 Cipher c = Cipher.getInstance("DESEDE/CBC/PKCS5Padding"); in test_update$BII() local 336 c.init(Cipher.DECRYPT_MODE, k, iv); in test_update$BII() 348 byte[] output = c.update(input, 0, bytesRead); in test_update$BII() 355 byte[] output = c.doFinal(); in test_update$BII() 382 Cipher c = Cipher.getInstance("DESEDE/CBC/PKCS5Padding"); in test_doFinal() local 394 c.init(Cipher.ENCRYPT_MODE, k, iv); in test_doFinal() 406 byte[] output = c.update(input, 0, bytesRead); in test_doFinal() 412 byte[] output = c.doFinal(); in test_doFinal() 429 Cipher c = Cipher.getInstance("DES/CBC/NoPadding"); in test_doFinal() local 430 c.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_DES, ap); in test_doFinal() [all …]
|
D | NullCipherTest.java | 41 private Cipher c; field in NullCipherTest 45 c = new NullCipher(); in setUp() 49 c.getAlgorithm(); in testGetAlgorithm() 53 assertEquals("Incorrect BlockSize", 1, c.getBlockSize()); in testGetBlockSize() 57 assertEquals("Incorrect OutputSize", 111, c.getOutputSize(111)); in testGetOutputSize() 61 assertTrue("Incorrect IV", Arrays.equals(c.getIV(), new byte[8])); in testGetIV() 65 assertNull("Incorrect Parameters", c.getParameters()); in testGetParameters() 69 assertNull("Incorrect ExemptionMechanism", c.getExemptionMechanism()); in testGetExemptionMechanism() 76 c.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(new byte[1], "algorithm")); in testInitintKey() 84 c.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(new byte[1], in testInitintKeySecureRandom() [all …]
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | Collection8Test.java | 110 Collection c = impl.emptyCollection(); 111 emptyMeansEmpty(c); 113 if (c instanceof java.io.Serializable) { 115 emptyMeansEmpty(serialClonePossiblyFailing(c)); 121 && (! c.getClass().getName().matches( 127 Collection clone = cloneableClone(c); 132 void emptyMeansEmpty(Collection c) throws InterruptedException { 133 assertTrue(c.isEmpty()); 134 assertEquals(0, c.size()); 135 assertEquals("[]", c.toString()); [all …]
|
D | AbstractQueuedLongSynchronizerTest.java | 218 void assertHasWaitersUnlocked(Mutex sync, ConditionObject c, in assertHasWaitersUnlocked() argument 221 assertHasWaitersLocked(sync, c, threads); in assertHasWaitersUnlocked() 228 void assertHasWaitersLocked(Mutex sync, ConditionObject c, in assertHasWaitersLocked() argument 230 assertEquals(threads.length > 0, sync.hasWaiters(c)); in assertHasWaitersLocked() 231 assertEquals(threads.length, sync.getWaitQueueLength(c)); in assertHasWaitersLocked() 232 assertEquals(threads.length == 0, sync.getWaitingThreads(c).isEmpty()); in assertHasWaitersLocked() 233 assertEquals(threads.length, sync.getWaitingThreads(c).size()); in assertHasWaitersLocked() 234 assertEquals(new HashSet<Thread>(sync.getWaitingThreads(c)), in assertHasWaitersLocked() 243 void await(ConditionObject c, AwaitMethod awaitMethod) in await() argument 248 c.await(); in await() [all …]
|
D | AbstractQueuedSynchronizerTest.java | 221 void assertHasWaitersUnlocked(Mutex sync, ConditionObject c, in assertHasWaitersUnlocked() argument 224 assertHasWaitersLocked(sync, c, threads); in assertHasWaitersUnlocked() 231 void assertHasWaitersLocked(Mutex sync, ConditionObject c, in assertHasWaitersLocked() argument 233 assertEquals(threads.length > 0, sync.hasWaiters(c)); in assertHasWaitersLocked() 234 assertEquals(threads.length, sync.getWaitQueueLength(c)); in assertHasWaitersLocked() 235 assertEquals(threads.length == 0, sync.getWaitingThreads(c).isEmpty()); in assertHasWaitersLocked() 236 assertEquals(threads.length, sync.getWaitingThreads(c).size()); in assertHasWaitersLocked() 237 assertEquals(new HashSet<Thread>(sync.getWaitingThreads(c)), in assertHasWaitersLocked() 246 void await(ConditionObject c, AwaitMethod awaitMethod) in await() argument 251 c.await(); in await() [all …]
|
D | ReentrantLockTest.java | 94 public Collection<Thread> getWaitingThreads(Condition c) { in getWaitingThreads() argument 95 return super.getWaitingThreads(c); in getWaitingThreads() 155 void assertHasNoWaiters(PublicReentrantLock lock, Condition c) { in assertHasNoWaiters() argument 156 assertHasWaiters(lock, c, new Thread[] {}); in assertHasNoWaiters() 162 void assertHasWaiters(PublicReentrantLock lock, Condition c, in assertHasWaiters() argument 165 assertEquals(threads.length > 0, lock.hasWaiters(c)); in assertHasWaiters() 166 assertEquals(threads.length, lock.getWaitQueueLength(c)); in assertHasWaiters() 167 assertEquals(threads.length == 0, lock.getWaitingThreads(c).isEmpty()); in assertHasWaiters() 168 assertEquals(threads.length, lock.getWaitingThreads(c).size()); in assertHasWaiters() 169 assertEquals(new HashSet<Thread>(lock.getWaitingThreads(c)), in assertHasWaiters() [all …]
|
/libcore/ojluni/src/main/java/sun/util/locale/ |
D | LocaleUtils.java | 77 static char toUpper(char c) { in toUpper() argument 78 return isLower(c) ? (char)(c - 0x20) : c; in toUpper() 81 static char toLower(char c) { in toLower() argument 82 return isUpper(c) ? (char)(c + 0x20) : c; in toLower() 102 char c = s.charAt(i); in toLowerString() local 103 buf[i] = (i < idx) ? c : toLower(c); in toLowerString() 122 char c = s.charAt(i); in toUpperString() local 123 buf[i] = (i < idx) ? c : toUpper(c); in toUpperString() 147 char c = s.charAt(i); in toTitleString() local 149 buf[i] = toUpper(c); in toTitleString() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | StringTokenizer.java | 149 int c; in setMaxDelimCodePoint() local 151 for (int i = 0; i < delimiters.length(); i += Character.charCount(c)) { in setMaxDelimCodePoint() 152 c = delimiters.charAt(i); in setMaxDelimCodePoint() 153 if (c >= Character.MIN_HIGH_SURROGATE && c <= Character.MAX_LOW_SURROGATE) { in setMaxDelimCodePoint() 154 c = delimiters.codePointAt(i); in setMaxDelimCodePoint() 157 if (m < c) in setMaxDelimCodePoint() 158 m = c; in setMaxDelimCodePoint() 165 for (int i = 0, j = 0; i < count; i++, j += Character.charCount(c)) { in setMaxDelimCodePoint() 166 c = delimiters.codePointAt(j); in setMaxDelimCodePoint() 167 delimiterCodePoints[i] = c; in setMaxDelimCodePoint() [all …]
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | AVA.java | 175 int c; in AVA() local 182 c = readChar(in, "Incorrect AVA format"); in AVA() 183 if (c == '=') { in AVA() 186 temp.append((char)c); in AVA() 199 c = in.read(); in AVA() 200 if (c == ' ') { in AVA() 207 c = in.read(); in AVA() 208 } while ((c == ' ') || (c == '\n')); in AVA() 210 if (c == -1) { in AVA() 216 if (c == '#') { in AVA() [all …]
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixUriUtils.java | 76 char c = p.charAt(pos++); in fromUri() local 78 if (c == '%') { in fromUri() 86 assert c < 0x80; in fromUri() 87 b = (byte)c; in fromUri() 105 char c = (char)(path[i] & 0xff); 106 if (match(c, L_PATH, H_PATH)) { 107 sb.append(c); 110 sb.append(hexDigits[(c >> 4) & 0x0f]); 111 sb.append(hexDigits[(c) & 0x0f]); 139 char c = chars.charAt(i); in lowMask() local [all …]
|
D | Globs.java | 36 private static boolean isRegexMeta(char c) { in isRegexMeta() argument 37 return regexMetaChars.indexOf(c) != -1; in isRegexMeta() 40 private static boolean isGlobMeta(char c) { in isGlobMeta() argument 41 return globMetaChars.indexOf(c) != -1; in isGlobMeta() 63 char c = globPattern.charAt(i++); in toRegexPattern() local 64 switch (c) { in toRegexPattern() 81 regex.append(c); in toRegexPattern() 110 c = globPattern.charAt(i++); in toRegexPattern() 111 if (c == ']') { in toRegexPattern() 114 if (c == '/' || (isDos && c == '\\')) { in toRegexPattern() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | CharacterImplTest.java | 25 for (char c = '\u0000'; c < 128; c++) { in test_valueOfC() 26 Character e = new Character(c); in test_valueOfC() 27 Character a = Character.valueOf(c); in test_valueOfC() 31 assertSame(Character.valueOf(c), Character.valueOf(c)); in test_valueOfC() 34 for (int c = 128; c <= Character.MAX_VALUE; c++) { in test_valueOfC() 35 assertEquals(new Character((char) c), Character.valueOf((char) c)); in test_valueOfC()
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | InternalNames.java | 62 public static String getInternalName(Class<?> c) { in getInternalName() argument 63 if (c.isArray()) { in getInternalName() 64 return '[' + getInternalName(c.getComponentType()); in getInternalName() 65 } else if (c == boolean.class) { in getInternalName() 67 } else if (c == byte.class) { in getInternalName() 69 } else if (c == short.class) { in getInternalName() 71 } else if (c == int.class) { in getInternalName() 73 } else if (c == long.class) { in getInternalName() 75 } else if (c == float.class) { in getInternalName() 77 } else if (c == double.class) { in getInternalName() [all …]
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | HexDumpEncoder.java | 54 char c; in hexDigit() local 56 c = (char) ((x >> 4) & 0xf); in hexDigit() 57 if (c > 9) in hexDigit() 58 c = (char) ((c-10) + 'A'); in hexDigit() 60 c = (char)(c + '0'); in hexDigit() 61 p.write(c); in hexDigit() 62 c = (char) (x & 0xf); in hexDigit() 63 if (c > 9) in hexDigit() 64 c = (char)((c-10) + 'A'); in hexDigit() 66 c = (char)(c + '0'); in hexDigit() [all …]
|
/libcore/ojluni/src/main/java/java/net/ |
D | URLConnection.java | 1379 char c = nm[i]; in typeToPackageName() local 1380 if (c == '/') { in typeToPackageName() 1382 } else if (!('A' <= c && c <= 'Z' || in typeToPackageName() 1383 'a' <= c && c <= 'z' || in typeToPackageName() 1384 '0' <= c && c <= '9')) { in typeToPackageName() 1649 int c[] = new int[16]; in checkfpx() local 1650 if (readBytes(c, 2, is) < 0) { in checkfpx() 1655 int byteOrder = c[0]; in checkfpx() 1659 if (readBytes(c, 2, is) < 0) { in checkfpx() 1665 uSectorShift = c[0]; in checkfpx() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | AbstractQueuedLongSynchronizerTest.java | 190 void assertHasWaitersUnlocked(Mutex sync, ConditionObject c, in assertHasWaitersUnlocked() argument 193 assertHasWaitersLocked(sync, c, threads); in assertHasWaitersUnlocked() 200 void assertHasWaitersLocked(Mutex sync, ConditionObject c, in assertHasWaitersLocked() argument 202 assertEquals(threads.length > 0, sync.hasWaiters(c)); in assertHasWaitersLocked() 203 assertEquals(threads.length, sync.getWaitQueueLength(c)); in assertHasWaitersLocked() 204 assertEquals(threads.length == 0, sync.getWaitingThreads(c).isEmpty()); in assertHasWaitersLocked() 205 assertEquals(threads.length, sync.getWaitingThreads(c).size()); in assertHasWaitersLocked() 206 assertEquals(new HashSet<Thread>(sync.getWaitingThreads(c)), in assertHasWaitersLocked() 215 void await(ConditionObject c, AwaitMethod awaitMethod) in await() argument 220 c.await(); in await() [all …]
|
D | AbstractQueuedSynchronizerTest.java | 193 void assertHasWaitersUnlocked(Mutex sync, ConditionObject c, in assertHasWaitersUnlocked() argument 196 assertHasWaitersLocked(sync, c, threads); in assertHasWaitersUnlocked() 203 void assertHasWaitersLocked(Mutex sync, ConditionObject c, in assertHasWaitersLocked() argument 205 assertEquals(threads.length > 0, sync.hasWaiters(c)); in assertHasWaitersLocked() 206 assertEquals(threads.length, sync.getWaitQueueLength(c)); in assertHasWaitersLocked() 207 assertEquals(threads.length == 0, sync.getWaitingThreads(c).isEmpty()); in assertHasWaitersLocked() 208 assertEquals(threads.length, sync.getWaitingThreads(c).size()); in assertHasWaitersLocked() 209 assertEquals(new HashSet<Thread>(sync.getWaitingThreads(c)), in assertHasWaitersLocked() 218 void await(ConditionObject c, AwaitMethod awaitMethod) in await() argument 223 c.await(); in await() [all …]
|
D | ReentrantLockTest.java | 71 public Collection<Thread> getWaitingThreads(Condition c) { in getWaitingThreads() argument 72 return super.getWaitingThreads(c); in getWaitingThreads() 132 void assertHasNoWaiters(PublicReentrantLock lock, Condition c) { in assertHasNoWaiters() argument 133 assertHasWaiters(lock, c, new Thread[] {}); in assertHasNoWaiters() 139 void assertHasWaiters(PublicReentrantLock lock, Condition c, in assertHasWaiters() argument 142 assertEquals(threads.length > 0, lock.hasWaiters(c)); in assertHasWaiters() 143 assertEquals(threads.length, lock.getWaitQueueLength(c)); in assertHasWaiters() 144 assertEquals(threads.length == 0, lock.getWaitingThreads(c).isEmpty()); in assertHasWaiters() 145 assertEquals(threads.length, lock.getWaitingThreads(c).size()); in assertHasWaiters() 146 assertEquals(new HashSet<Thread>(lock.getWaitingThreads(c)), in assertHasWaiters() [all …]
|