/libcore/ojluni/src/main/native/ |
D | canonicalize_md.c | 51 char *p = names; in collapsible() local 54 while (*p) { in collapsible() 55 if ((p[0] == '.') && ((p[1] == '\0') in collapsible() 56 || (p[1] == '/') in collapsible() 57 || ((p[1] == '.') && ((p[2] == '\0') in collapsible() 58 || (p[2] == '/'))))) { in collapsible() 62 while (*p) { in collapsible() 63 if (*p == '/') { in collapsible() 64 p++; in collapsible() 67 p++; in collapsible() [all …]
|
D | java_props_md.c | 141 char *p, encoding_variant[64]; in ParseLocale() local 169 p = strstr(temp, "@euro"); in ParseLocale() 170 if (p != NULL) { in ParseLocale() 171 *p = '\0'; in ParseLocale() 204 if ((p = strchr(temp, '.')) != NULL) { in ParseLocale() 205 strcpy(encoding_variant, p); /* Copy the leading '.' */ in ParseLocale() 206 *p = '\0'; in ParseLocale() 207 } else if ((p = strchr(temp, '@')) != NULL) { in ParseLocale() 208 strcpy(encoding_variant, p); /* Copy the leading '@' */ in ParseLocale() 209 *p = '\0'; in ParseLocale() [all …]
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | SSLParametersTest.java | 32 SSLParameters p = new SSLParameters(); in test_SSLParameters_emptyConstructor() local 33 assertNull(p.getCipherSuites()); in test_SSLParameters_emptyConstructor() 34 assertNull(p.getProtocols()); in test_SSLParameters_emptyConstructor() 35 assertFalse(p.getWantClientAuth()); in test_SSLParameters_emptyConstructor() 36 assertFalse(p.getNeedClientAuth()); in test_SSLParameters_emptyConstructor() 41 SSLParameters p = new SSLParameters(cipherSuites); in test_SSLParameters_cipherSuitesConstructor() local 42 assertNotNull(p.getCipherSuites()); in test_SSLParameters_cipherSuitesConstructor() 43 assertNotSame(cipherSuites, p.getCipherSuites()); in test_SSLParameters_cipherSuitesConstructor() 44 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(p.getCipherSuites())); in test_SSLParameters_cipherSuitesConstructor() 45 assertNull(p.getProtocols()); in test_SSLParameters_cipherSuitesConstructor() [all …]
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | RegexpPool.java | 90 RegexpNode p = prefixMachine; in delete() local 91 RegexpNode best = p; in delete() 104 for (i = 0; p != null; i++) { in delete() 105 if (p.result != null && p.depth < BIG in delete() 106 && (!p.exact || i == len)) { in delete() 107 best = p; in delete() 111 p = p.find(re.charAt(i)); in delete() 115 p = suffixMachine; in delete() 116 for (i = len; --i >= 0 && p != null;) { in delete() 117 if (p.result != null && p.depth < BIG) { in delete() [all …]
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | ConcurrentLinkedDeque.java | 327 for (Node<E> h = head, p = h, q;;) { in linkFirst() 328 if ((q = p.prev) != null && in linkFirst() 329 (q = (p = q).prev) != null) in linkFirst() 332 p = (h != (h = head)) ? h : q; in linkFirst() 333 else if (p.next == p) // PREV_TERMINATOR in linkFirst() 337 newNode.lazySetNext(p); // CAS piggyback in linkFirst() 338 if (p.casPrev(null, newNode)) { in linkFirst() 342 if (p != h) // hop two nodes at a time in linkFirst() 359 for (Node<E> t = tail, p = t, q;;) { in linkLast() 360 if ((q = p.next) != null && in linkLast() [all …]
|
D | ConcurrentLinkedQueue.java | 258 final void updateHead(Node<E> h, Node<E> p) { in updateHead() argument 260 if (h != p && casHead(h, p)) in updateHead() 269 final Node<E> succ(Node<E> p) { in succ() argument 270 Node<E> next = p.next; in succ() 271 return (p == next) ? head : next; in succ() 284 for (Node<E> t = tail, p = t;;) { in offer() 285 Node<E> q = p.next; in offer() 288 if (casNext(p, null, newNode)) { in offer() 292 if (p != t) // hop two nodes at a time in offer() 298 else if (p == q) in offer() [all …]
|
D | LinkedTransferQueue.java | 578 for (Node h = head, p = h; p != null;) { // find & match first node in xfer() 579 boolean isData = p.isData; in xfer() 580 Object item = p.item; in xfer() 581 if (item != p && (item != null) == isData) { // unmatched in xfer() 584 if (p.casItem(item, e)) { // match in xfer() 585 for (Node q = p; q != h;) { in xfer() 595 LockSupport.unpark(p.waiter); in xfer() 600 Node n = p.next; in xfer() 601 p = (p != n) ? n : (h = head); // Use head if p offlist in xfer() 627 for (Node t = tail, p = t;;) { // move p to last node and append in tryAppend() [all …]
|
D | Exchanger.java | 331 Node p = participant.get(); in arenaExchange() local 332 for (int i = p.index;;) { // access slot at i in arenaExchange() 344 p.item = item; // offer in arenaExchange() 345 if (U.compareAndSwapObject(a, j, null, p)) { in arenaExchange() 348 for (int h = p.hash, spins = SPINS;;) { in arenaExchange() 349 Object v = p.match; in arenaExchange() 351 U.putOrderedObject(p, MATCH, null); in arenaExchange() 352 p.item = null; // clear for next use in arenaExchange() 353 p.hash = h; in arenaExchange() 364 else if (U.getObjectVolatile(a, j) != p) in arenaExchange() [all …]
|
D | LinkedBlockingQueue.java | 490 void unlink(Node<E> p, Node<E> trail) { in unlink() argument 494 p.item = null; in unlink() 495 trail.next = p.next; in unlink() 496 if (last == p) in unlink() 517 for (Node<E> trail = head, p = trail.next; in remove() 518 p != null; in remove() 519 trail = p, p = p.next) { in remove() 520 if (o.equals(p.item)) { in remove() 521 unlink(p, trail); in remove() 543 for (Node<E> p = head.next; p != null; p = p.next) in contains() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
D | Pattern2Test.java | 31 Pattern p = Pattern.compile("foo.*"); in testSimpleMatch() local 33 Matcher m1 = p.matcher("foo123"); in testSimpleMatch() 38 Matcher m2 = p.matcher("fox"); in testSimpleMatch() 52 Pattern p; in testCursors() local 56 p = Pattern.compile("foo"); in testCursors() 58 m = p.matcher("foobar"); in testCursors() 107 Pattern p; in testGroups() local 110 p = Pattern.compile("(p[0-9]*)#?(q[0-9]*)"); in testGroups() 112 m = p.matcher("p1#q3p2q42p5p71p63#q888"); in testGroups() 160 Pattern p; in testReplace() local [all …]
|
D | ModeTest.java | 31 Pattern p; in testCase() local 34 p = Pattern.compile("([a-z]+)[0-9]+"); in testCase() 35 m = p.matcher("cAT123#dog345"); in testCase() 40 p = Pattern.compile("([a-z]+)[0-9]+", Pattern.CASE_INSENSITIVE); in testCase() 41 m = p.matcher("cAt123#doG345"); in testCase() 48 p = Pattern.compile("(?i)([a-z]+)[0-9]+"); in testCase() 49 m = p.matcher("cAt123#doG345"); in testCase() 58 Pattern p; in testMultiline() local 61 p = Pattern.compile("^foo"); in testMultiline() 62 m = p.matcher("foobar"); in testMultiline() [all …]
|
D | SplitTest.java | 32 Pattern p = Pattern.compile("/"); in testSimple() local 33 String[] results = p.split("have/you/done/it/right"); in testSimple() 42 Pattern p = Pattern.compile(" "); in testSplit1() local 47 tokens = p.split(input, 1); in testSplit1() 50 tokens = p.split(input, 2); in testSplit1() 54 tokens = p.split(input, 5); in testSplit1() 58 tokens = p.split(input, -2); in testSplit1() 62 tokens = p.split(input, 0); in testSplit1() 66 tokens = p.split(input); in testSplit1() 71 p = Pattern.compile("d"); in testSplit1() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
D | Pattern2Test.java | 110 Pattern p = Pattern.compile(pat); in testCategory() local 119 "by pattern '"+pat, p.matcher(t).matches()); in testCategory() 124 "by pattern '"+pat, p.matcher(t).matches()); in testCategory() 132 Pattern p; in testCapturingGroups() local 136 p = Pattern.compile("(a+)b"); in testCapturingGroups() 137 m = p.matcher("aaaaaaaab"); in testCapturingGroups() 142 p = Pattern.compile("((an)+)((as)+)"); in testCapturingGroups() 143 m = p.matcher("ananas"); in testCapturingGroups() 153 p = Pattern.compile("(?:(?:an)+)(as)"); in testCapturingGroups() 154 m = p.matcher("ananas"); in testCapturingGroups() [all …]
|
D | ModeTest.java | 31 Pattern p; in testCase() local 34 p = Pattern.compile("([a-z]+)[0-9]+"); in testCase() 35 m = p.matcher("cAT123#dog345"); in testCase() 41 p = Pattern.compile("([a-z]+)[0-9]+", Pattern.CASE_INSENSITIVE); in testCase() 42 m = p.matcher("cAt123#doG345"); in testCase() 50 p = Pattern.compile("(?i)([a-z]+)[0-9]+"); in testCase() 51 m = p.matcher("cAt123#doG345"); in testCase() 59 Pattern p; in testMultiline() local 62 p = Pattern.compile("^foo"); in testMultiline() 63 m = p.matcher("foobar"); in testMultiline() [all …]
|
/libcore/ojluni/src/main/java/java/net/ |
D | URI.java | 2177 int p = 0; // Index of next char in path in needsNormalization() local 2180 while (p <= end) { in needsNormalization() 2181 if (path.charAt(p) != '/') break; in needsNormalization() 2182 p++; in needsNormalization() 2184 if (p > 1) normal = false; in needsNormalization() 2187 while (p <= end) { in needsNormalization() 2190 if ((path.charAt(p) == '.') in needsNormalization() 2191 && ((p == end) in needsNormalization() 2192 || ((path.charAt(p + 1) == '/') in needsNormalization() 2193 || ((path.charAt(p + 1) == '.') in needsNormalization() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ThreadPoolExecutorTest.java | 91 final ThreadPoolExecutor p = in testExecute() local 95 try (PoolCleaner cleaner = cleaner(p)) { in testExecute() 99 p.execute(task); in testExecute() 110 final ThreadPoolExecutor p = in testGetActiveCount() local 114 try (PoolCleaner cleaner = cleaner(p, done)) { in testGetActiveCount() 116 assertEquals(0, p.getActiveCount()); in testGetActiveCount() 117 p.execute(new CheckedRunnable() { in testGetActiveCount() 120 assertEquals(1, p.getActiveCount()); in testGetActiveCount() 124 assertEquals(1, p.getActiveCount()); in testGetActiveCount() 132 final ThreadPoolExecutor p = in testPrestartCoreThread() local [all …]
|
D | ScheduledExecutorTest.java | 53 final ScheduledThreadPoolExecutor p = new ScheduledThreadPoolExecutor(1); in testExecute() local 54 try (PoolCleaner cleaner = cleaner(p)) { in testExecute() 58 p.execute(task); in testExecute() 67 final ScheduledThreadPoolExecutor p = new ScheduledThreadPoolExecutor(1); in testSchedule1() local 68 try (PoolCleaner cleaner = cleaner(p)) { in testSchedule1() 77 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS); in testSchedule1() 88 final ScheduledThreadPoolExecutor p = new ScheduledThreadPoolExecutor(1); in testSchedule3() local 89 try (PoolCleaner cleaner = cleaner(p)) { in testSchedule3() 97 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS); in testSchedule3() 108 final ScheduledThreadPoolExecutor p = new ScheduledThreadPoolExecutor(1); in testSchedule4() local [all …]
|
D | ThreadPoolExecutorSubclassTest.java | 238 final ThreadPoolExecutor p = in testExecute() local 242 try (PoolCleaner cleaner = cleaner(p)) { in testExecute() 246 p.execute(task); in testExecute() 257 final ThreadPoolExecutor p = in testGetActiveCount() local 261 try (PoolCleaner cleaner = cleaner(p, done)) { in testGetActiveCount() 263 assertEquals(0, p.getActiveCount()); in testGetActiveCount() 264 p.execute(new CheckedRunnable() { in testGetActiveCount() 267 assertEquals(1, p.getActiveCount()); in testGetActiveCount() 271 assertEquals(1, p.getActiveCount()); in testGetActiveCount() 279 final ThreadPoolExecutor p = in testPrestartCoreThread() local [all …]
|
D | ScheduledExecutorSubclassTest.java | 110 final CustomExecutor p = new CustomExecutor(1); in testExecute() local 111 try (PoolCleaner cleaner = cleaner(p)) { in testExecute() 115 p.execute(task); in testExecute() 125 final CustomExecutor p = new CustomExecutor(1); in testSchedule1() local 126 try (PoolCleaner cleaner = cleaner(p, done)) { in testSchedule1() 134 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS); in testSchedule1() 144 final CustomExecutor p = new CustomExecutor(1); in testSchedule3() local 145 try (PoolCleaner cleaner = cleaner(p)) { in testSchedule3() 153 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS); in testSchedule3() 164 final CustomExecutor p = new CustomExecutor(1); in testSchedule4() local [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/ |
D | AbstractPreferencesTest.java | 152 MockAbstractPreferences p = new MockAbstractPreferences(pref, "newNode"); in testProtectedFields() local 153 assertFalse(p.getNewNode()); in testProtectedFields() 154 assertSame(p.getLock().getClass(), Object.class); in testProtectedFields() 156 p = (MockAbstractPreferences) pref.node("child"); in testProtectedFields() 157 assertTrue(p.getNewNode()); in testProtectedFields() 159 p = (MockAbstractPreferences) ((MockAbstractPreferences) pref) in testProtectedFields() 161 assertTrue(p.getNewNode()); in testProtectedFields() 810 MockAbstractPreferences p = (MockAbstractPreferences) pref; in testSync() local 811 p.resetSyncTimes(); in testSync() 812 p.sync(); in testSync() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/regex/ |
D | OldAndroidRegexTest.java | 27 Pattern p = Pattern.compile("bcd"); in testMatches() local 28 Matcher m = p.matcher("bcd"); in testMatches() 32 p = Pattern.compile("bcd"); in testMatches() 33 m = p.matcher("abcdefg"); in testMatches() 37 m = p.matcher("bcdefg"); in testMatches() 41 m = p.matcher("abcd"); in testMatches() 45 p = Pattern.compile(".*"); in testMatches() 46 m = p.matcher("abc"); in testMatches() 51 p = Pattern.compile("."); in testMatches() 52 m = p.matcher("abc"); in testMatches() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | ProviderServiceTest.java | 45 Provider p = new MyProvider(); in testService() local 53 new Provider.Service(p, null, "algorithm", "className", null, null); in testService() 58 new Provider.Service(p, "type", null, "className", null, null); in testService() 63 new Provider.Service(p, "type", "algorithm", null, null, null); in testService() 68 Provider.Service s = new Provider.Service(p, "type", "algorithm", in testService() 77 if (s.getProvider() != p) { in testService() 89 Provider p = new MyProvider(); in testGetAttribute() local 90 Provider.Service s = new Provider.Service(p, "type", "algorithm", in testGetAttribute() 107 s = new Provider.Service(p, "type", "algorithm", "className", null, hm); in testGetAttribute() 122 MyProvider p = new MyProvider(); in testNewInstance() local [all …]
|
D | ProviderTest.java | 60 Provider p; field in ProviderTest 70 p = new MyProvider(); in setUp() 75 p.remove("MessageDigest.ASH-1"); in tearDown() 76 p.remove("MessageDigest.abc"); in tearDown() 77 p.remove("Alg.Alias.MessageDigest.ASH1"); in tearDown() 79 for (Provider p: Security.getProviders()) { in tearDown() 80 Security.removeProvider(p.getName()); in tearDown() 83 for (Provider p: storedProviders) { in tearDown() 84 Security.addProvider(p); in tearDown() 94 if (!p.getProperty("Provider.id name").equals( in testProvider() [all …]
|
/libcore/ojluni/src/main/java/java/security/spec/ |
D | ECFieldFp.java | 42 private BigInteger p; field in ECFieldFp 52 public ECFieldFp(BigInteger p) { in ECFieldFp() argument 53 if (p.signum() != 1) { in ECFieldFp() 56 this.p = p; in ECFieldFp() 65 return p.bitLength(); in getFieldSize() 73 return p; in getP() 86 return (p.equals(((ECFieldFp)obj).p)); in equals() 96 return p.hashCode(); in hashCode()
|
/libcore/ojluni/src/main/java/sun/security/ssl/ |
D | CipherSuite.java | 897 int p = DEFAULT_SUITES_PRIORITY * 2; 907 0xc024, --p, K_ECDHE_ECDSA, B_AES_256, T, max, tls12, P_SHA384); 909 0xc028, --p, K_ECDHE_RSA, B_AES_256, T, max, tls12, P_SHA384); 911 0x003d, --p, K_RSA, B_AES_256, T, max, tls12, P_SHA256); 913 0xc026, --p, K_ECDH_ECDSA, B_AES_256, T, max, tls12, P_SHA384); 915 0xc02a, --p, K_ECDH_RSA, B_AES_256, T, max, tls12, P_SHA384); 917 0x006b, --p, K_DHE_RSA, B_AES_256, T, max, tls12, P_SHA256); 919 0x006a, --p, K_DHE_DSS, B_AES_256, T, max, tls12, P_SHA256); 922 0xC00A, --p, K_ECDHE_ECDSA, B_AES_256, T); 924 0xC014, --p, K_ECDHE_RSA, B_AES_256, T); [all …]
|