/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 …]
|
/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/ojluni/src/main/java/java/util/concurrent/ |
D | ConcurrentLinkedDeque.java | 356 for (Node<E> h = head, p = h, q;;) { in linkFirst() 357 if ((q = p.prev) != null && in linkFirst() 358 (q = (p = q).prev) != null) in linkFirst() 361 p = (h != (h = head)) ? h : q; in linkFirst() 362 else if (p.next == p) // PREV_TERMINATOR in linkFirst() 366 newNode.lazySetNext(p); // CAS piggyback in linkFirst() 367 if (p.casPrev(null, newNode)) { in linkFirst() 371 if (p != h) // hop two nodes at a time in linkFirst() 388 for (Node<E> t = tail, p = t, q;;) { in linkLast() 389 if ((q = p.next) != null && in linkLast() [all …]
|
D | ConcurrentLinkedQueue.java | 287 final void updateHead(Node<E> h, Node<E> p) { in updateHead() argument 289 if (h != p && casHead(h, p)) in updateHead() 298 final Node<E> succ(Node<E> p) { in succ() argument 299 Node<E> next = p.next; in succ() 300 return (p == next) ? head : next; in succ() 313 for (Node<E> t = tail, p = t;;) { in offer() 314 Node<E> q = p.next; in offer() 317 if (casNext(p, null, newNode)) { in offer() 321 if (p != t) // hop two nodes at a time in offer() 327 else if (p == q) in offer() [all …]
|
D | LinkedTransferQueue.java | 607 for (Node h = head, p = h; p != null;) { // find & match first node in xfer() 608 boolean isData = p.isData; in xfer() 609 Object item = p.item; in xfer() 610 if (item != p && (item != null) == isData) { // unmatched in xfer() 613 if (p.casItem(item, e)) { // match in xfer() 614 for (Node q = p; q != h;) { in xfer() 624 LockSupport.unpark(p.waiter); in xfer() 629 Node n = p.next; in xfer() 630 p = (p != n) ? n : (h = head); // Use head if p offlist in xfer() 656 for (Node t = tail, p = t;;) { // move p to last node and append in tryAppend() [all …]
|
D | Exchanger.java | 361 Node p = participant.get(); in arenaExchange() local 362 for (int i = p.index;;) { // access slot at i in arenaExchange() 374 p.item = item; // offer in arenaExchange() 375 if (U.compareAndSwapObject(a, j, null, p)) { in arenaExchange() 378 for (int h = p.hash, spins = SPINS;;) { in arenaExchange() 379 Object v = p.match; in arenaExchange() 381 U.putOrderedObject(p, MATCH, null); in arenaExchange() 382 p.item = null; // clear for next use in arenaExchange() 383 p.hash = h; in arenaExchange() 394 else if (U.getObjectVolatile(a, j) != p) in arenaExchange() [all …]
|
D | LinkedBlockingQueue.java | 519 void unlink(Node<E> p, Node<E> trail) { in unlink() argument 523 p.item = null; in unlink() 524 trail.next = p.next; in unlink() 525 if (last == p) in unlink() 546 for (Node<E> trail = head, p = trail.next; in remove() 547 p != null; in remove() 548 trail = p, p = p.next) { in remove() 549 if (o.equals(p.item)) { in remove() 550 unlink(p, trail); in remove() 572 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 | 32 Pattern p; in testCase() local 35 p = Pattern.compile("([a-z]+)[0-9]+"); in testCase() 36 m = p.matcher("cAT123#dog345"); in testCase() 42 p = Pattern.compile("([a-z]+)[0-9]+", Pattern.CASE_INSENSITIVE); in testCase() 43 m = p.matcher("cAt123#doG345"); in testCase() 51 p = Pattern.compile("(?i)([a-z]+)[0-9]+"); in testCase() 52 m = p.matcher("cAt123#doG345"); in testCase() 61 Pattern p; in testMultiline() local 64 p = Pattern.compile("^foo"); in testMultiline() 65 m = p.matcher("foobar"); in testMultiline() [all …]
|
/libcore/ojluni/src/main/java/java/net/ |
D | URI.java | 2206 int p = 0; // Index of next char in path in needsNormalization() local 2209 while (p <= end) { in needsNormalization() 2210 if (path.charAt(p) != '/') break; in needsNormalization() 2211 p++; in needsNormalization() 2213 if (p > 1) normal = false; in needsNormalization() 2216 while (p <= end) { in needsNormalization() 2219 if ((path.charAt(p) == '.') in needsNormalization() 2220 && ((p == end) in needsNormalization() 2221 || ((path.charAt(p + 1) == '/') in needsNormalization() 2222 || ((path.charAt(p + 1) == '.') in needsNormalization() [all …]
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | ThreadPoolExecutorTest.java | 113 final ThreadPoolExecutor p = in testExecute() local 117 try (PoolCleaner cleaner = cleaner(p)) { in testExecute() 121 p.execute(task); in testExecute() 132 final ThreadPoolExecutor p = in testGetActiveCount() local 136 try (PoolCleaner cleaner = cleaner(p, done)) { in testGetActiveCount() 138 assertEquals(0, p.getActiveCount()); in testGetActiveCount() 139 p.execute(new CheckedRunnable() { in testGetActiveCount() 142 assertEquals(1, p.getActiveCount()); in testGetActiveCount() 146 assertEquals(1, p.getActiveCount()); in testGetActiveCount() 154 final ThreadPoolExecutor p = in testPrestartCoreThread() local [all …]
|
D | ScheduledExecutorTest.java | 75 final ScheduledThreadPoolExecutor p = new ScheduledThreadPoolExecutor(1); in testExecute() local 76 try (PoolCleaner cleaner = cleaner(p)) { in testExecute() 80 p.execute(task); in testExecute() 89 final ScheduledThreadPoolExecutor p = new ScheduledThreadPoolExecutor(1); in testSchedule1() local 90 try (PoolCleaner cleaner = cleaner(p)) { in testSchedule1() 99 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS); in testSchedule1() 110 final ScheduledThreadPoolExecutor p = new ScheduledThreadPoolExecutor(1); in testSchedule3() local 111 try (PoolCleaner cleaner = cleaner(p)) { in testSchedule3() 119 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS); in testSchedule3() 130 final ScheduledThreadPoolExecutor p = new ScheduledThreadPoolExecutor(1); in testSchedule4() local [all …]
|
D | ThreadPoolExecutorSubclassTest.java | 260 final ThreadPoolExecutor p = in testExecute() local 264 try (PoolCleaner cleaner = cleaner(p)) { in testExecute() 268 p.execute(task); in testExecute() 279 final ThreadPoolExecutor p = in testGetActiveCount() local 283 try (PoolCleaner cleaner = cleaner(p, done)) { in testGetActiveCount() 285 assertEquals(0, p.getActiveCount()); in testGetActiveCount() 286 p.execute(new CheckedRunnable() { in testGetActiveCount() 289 assertEquals(1, p.getActiveCount()); in testGetActiveCount() 293 assertEquals(1, p.getActiveCount()); in testGetActiveCount() 301 final ThreadPoolExecutor p = in testPrestartCoreThread() local [all …]
|
D | ScheduledExecutorSubclassTest.java | 132 final CustomExecutor p = new CustomExecutor(1); in testExecute() local 133 try (PoolCleaner cleaner = cleaner(p)) { in testExecute() 137 p.execute(task); in testExecute() 147 final CustomExecutor p = new CustomExecutor(1); in testSchedule1() local 148 try (PoolCleaner cleaner = cleaner(p, done)) { in testSchedule1() 156 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS); in testSchedule1() 166 final CustomExecutor p = new CustomExecutor(1); in testSchedule3() local 167 try (PoolCleaner cleaner = cleaner(p)) { in testSchedule3() 175 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS); in testSchedule3() 186 final CustomExecutor p = new CustomExecutor(1); in testSchedule4() local [all …]
|
D | ForkJoinPoolTest.java | 93 public FailingFJWSubclass(ForkJoinPool p) { super(p) ; } in FailingFJWSubclass() argument 100 public ForkJoinWorkerThread newThread(ForkJoinPool p) { in newThread() argument 102 return new FailingFJWSubclass(p); in newThread() 188 ForkJoinPool p = new ForkJoinPool(1); in testDefaultInitialState() local 189 try (PoolCleaner cleaner = cleaner(p)) { in testDefaultInitialState() 191 p.getFactory()); in testDefaultInitialState() 192 assertFalse(p.getAsyncMode()); in testDefaultInitialState() 193 assertEquals(0, p.getActiveThreadCount()); in testDefaultInitialState() 194 assertEquals(0, p.getStealCount()); in testDefaultInitialState() 195 assertEquals(0, p.getQueuedTaskCount()); in testDefaultInitialState() [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 …]
|
D | ForkJoinPoolTest.java | 75 public FailingFJWSubclass(ForkJoinPool p) { super(p) ; } in FailingFJWSubclass() argument 82 public ForkJoinWorkerThread newThread(ForkJoinPool p) { in newThread() argument 84 return new FailingFJWSubclass(p); in newThread() 170 ForkJoinPool p = new ForkJoinPool(1); in testDefaultInitialState() local 171 try (PoolCleaner cleaner = cleaner(p)) { in testDefaultInitialState() 173 p.getFactory()); in testDefaultInitialState() 174 assertFalse(p.getAsyncMode()); in testDefaultInitialState() 175 assertEquals(0, p.getActiveThreadCount()); in testDefaultInitialState() 176 assertEquals(0, p.getStealCount()); in testDefaultInitialState() 177 assertEquals(0, p.getQueuedTaskCount()); in testDefaultInitialState() [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 …]
|
/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 …]
|