Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 392) sorted by relevance

12345678910>>...16

/libcore/ojluni/src/test/java/lang/StrictMath/
DLog10Tests.java56 {0x1.4p-297, -0x1.653c6a27ae2f7p6}, in testLog10()
58 {0x1.4p-296, -0x1.640828f2a437dp6}, in testLog10()
59 {0x1.3fffffffffd52p-295, -0x1.62d3e7bd9a406p6}, in testLog10()
60 {0x1.4p-295, -0x1.62d3e7bd9a403p6}, in testLog10()
62 {0x1.4p-294, -0x1.619fa68890489p6}, in testLog10()
64 {0x1.4p-293, -0x1.606b65538650fp6}, in testLog10()
66 {0x1.4p-292, -0x1.5f37241e7c595p6}, in testLog10()
68 {0x1.4p-291, -0x1.5e02e2e97261bp6}, in testLog10()
70 {0x1.4p-290, -0x1.5ccea1b4686a1p6}, in testLog10()
72 {0x1.4p-289, -0x1.5b9a607f5e727p6}, in testLog10()
[all …]
DHyperbolicTests.java65 {0x1.ffffffffffffep-26, 0x1.0p-25}, in testSinh()
67 {0x1.ffffffffffffap-25, 0x1.0p-24}, in testSinh()
70 {0x1.fffffffffffeap-24, 0x1.0p-23}, in testSinh()
71 {0x1.ffffffffffff8p-24, 0x1.0000000000007p-23}, in testSinh()
72 {0x1.fffffffffffaap-23, 0x1.0p-22}, in testSinh()
73 {0x1.ffffffffffff8p-23, 0x1.0000000000027p-22}, in testSinh()
74 {0x1.ffffffffffeaap-22, 0x1.0p-21}, in testSinh()
76 {0x1.ffffffffffaaap-21, 0x1.0p-20}, in testSinh()
80 {0x1.fffffffffeaaap-20, 0x1.0p-19}, in testSinh()
86 {0x1.0p-16, 0x1.000000002aaaap-16}, in testSinh()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentLinkedDeque.java319 for (Node<E> h = head, p = h, q;;) { in linkFirst()
320 if ((q = p.prev) != null && in linkFirst()
321 (q = (p = q).prev) != null) in linkFirst()
324 p = (h != (h = head)) ? h : q; in linkFirst()
325 else if (p.next == p) // PREV_TERMINATOR in linkFirst()
329 NEXT.set(newNode, p); // CAS piggyback in linkFirst()
330 if (PREV.compareAndSet(p, null, newNode)) { in linkFirst()
334 if (p != h) // hop two nodes at a time; failure is OK in linkFirst()
351 for (Node<E> t = tail, p = t, q;;) { in linkLast()
352 if ((q = p.next) != null && in linkLast()
[all …]
DConcurrentLinkedQueue.java290 final void updateHead(Node<E> h, Node<E> p) { in updateHead() argument
292 if (h != p && HEAD.compareAndSet(this, h, p)) in updateHead()
301 final Node<E> succ(Node<E> p) { in succ() argument
302 if (p == (p = p.next)) in succ()
303 p = head; in succ()
304 return p; in succ()
311 private boolean tryCasSuccessor(Node<E> pred, Node<E> c, Node<E> p) { in tryCasSuccessor() argument
316 return NEXT.compareAndSet(pred, c, p); in tryCasSuccessor()
317 if (HEAD.compareAndSet(this, c, p)) { in tryCasSuccessor()
332 private Node<E> skipDeadNodes(Node<E> pred, Node<E> c, Node<E> p, Node<E> q) { in skipDeadNodes() argument
[all …]
DLinkedTransferQueue.java522 private boolean tryCasSuccessor(Node pred, Node c, Node p) { in tryCasSuccessor() argument
527 return pred.casNext(c, p); in tryCasSuccessor()
528 if (casHead(c, p)) { in tryCasSuccessor()
543 private Node skipDeadNodes(Node pred, Node c, Node p, Node q) { in skipDeadNodes() argument
550 if (c == p) return pred; in skipDeadNodes()
551 q = p; in skipDeadNodes()
555 ? pred : p; in skipDeadNodes()
562 private void skipDeadNodesNearHead(Node h, Node p) { in skipDeadNodesNearHead() argument
568 if ((q = p.next) == null) break; in skipDeadNodesNearHead()
569 else if (!q.isMatched()) { p = q; break; } in skipDeadNodesNearHead()
[all …]
DLinkedBlockingQueue.java513 void unlink(Node<E> p, Node<E> pred) { in unlink() argument
518 p.item = null; in unlink()
519 pred.next = p.next; in unlink()
520 if (last == p) in unlink()
541 for (Node<E> pred = head, p = pred.next; in remove()
542 p != null; in remove()
543 pred = p, p = p.next) { in remove()
544 if (o.equals(p.item)) { in remove()
545 unlink(p, pred); in remove()
567 for (Node<E> p = head.next; p != null; p = p.next) in contains()
[all …]
DLinkedBlockingDeque.java274 Node<E> p = l.prev; in unlinkLast()
278 last = p; in unlinkLast()
279 if (p == null) in unlinkLast()
282 p.next = null; in unlinkLast()
294 Node<E> p = x.prev; in unlink() local
296 if (p == null) { in unlink()
301 p.next = n; in unlink()
302 n.prev = p; in unlink()
584 for (Node<E> p = first; p != null; p = p.next) { in removeFirstOccurrence()
585 if (o.equals(p.item)) { in removeFirstOccurrence()
[all …]
DExchanger.java357 Node p = participant.get(); in arenaExchange() local
358 for (int i = p.index;;) { // access slot at i in arenaExchange()
373 p.item = item; // offer in arenaExchange()
374 if (AA.compareAndSet(a, j, null, p)) { in arenaExchange()
377 for (int h = p.hash, spins = SPINS;;) { in arenaExchange()
378 Object v = p.match; in arenaExchange()
380 MATCH.setRelease(p, null); in arenaExchange()
381 p.item = null; // clear for next use in arenaExchange()
382 p.hash = h; in arenaExchange()
393 else if (AA.getAcquire(a, j) != p) in arenaExchange()
[all …]
/libcore/ojluni/src/test/java/util/concurrent/tck/
DSubmissionPublisherTest.java159 void checkInitialState(SubmissionPublisher<?> p) { in checkInitialState() argument
160 assertFalse(p.hasSubscribers()); in checkInitialState()
161 assertEquals(0, p.getNumberOfSubscribers()); in checkInitialState()
162 assertTrue(p.getSubscribers().isEmpty()); in checkInitialState()
163 assertFalse(p.isClosed()); in checkInitialState()
164 assertNull(p.getClosedException()); in checkInitialState()
165 int n = p.getMaxBufferCapacity(); in checkInitialState()
167 assertNotNull(p.getExecutor()); in checkInitialState()
168 assertEquals(0, p.estimateMinimumDemand()); in checkInitialState()
169 assertEquals(0, p.estimateMaximumLag()); in checkInitialState()
[all …]
DThreadPoolExecutorTest.java113 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 …]
DScheduledExecutorTest.java77 final ScheduledThreadPoolExecutor p = new ScheduledThreadPoolExecutor(1); in testExecute() local
78 try (PoolCleaner cleaner = cleaner(p)) { in testExecute()
82 p.execute(task); in testExecute()
91 final ScheduledThreadPoolExecutor p = new ScheduledThreadPoolExecutor(1); in testSchedule1() local
92 try (PoolCleaner cleaner = cleaner(p)) { in testSchedule1()
101 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS); in testSchedule1()
112 final ScheduledThreadPoolExecutor p = new ScheduledThreadPoolExecutor(1); in testSchedule3() local
113 try (PoolCleaner cleaner = cleaner(p)) { in testSchedule3()
121 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS); in testSchedule3()
132 final ScheduledThreadPoolExecutor p = new ScheduledThreadPoolExecutor(1); in testSchedule4() local
[all …]
DThreadPoolExecutorSubclassTest.java260 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 …]
DScheduledExecutorSubclassTest.java134 final CustomExecutor p = new CustomExecutor(1); in testExecute() local
135 try (PoolCleaner cleaner = cleaner(p)) { in testExecute()
139 p.execute(task); in testExecute()
149 final CustomExecutor p = new CustomExecutor(1); in testSchedule1() local
150 try (PoolCleaner cleaner = cleaner(p, done)) { in testSchedule1()
158 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS); in testSchedule1()
168 final CustomExecutor p = new CustomExecutor(1); in testSchedule3() local
169 try (PoolCleaner cleaner = cleaner(p)) { in testSchedule3()
177 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS); in testSchedule3()
188 final CustomExecutor p = new CustomExecutor(1); in testSchedule4() local
[all …]
/libcore/ojluni/src/main/native/
Dcanonicalize_md.c84 char *p = names; in collapsible() local
87 while (*p) { in collapsible()
88 if ((p[0] == '.') && ((p[1] == '\0') in collapsible()
89 || (p[1] == '/') in collapsible()
90 || ((p[1] == '.') && ((p[2] == '\0') in collapsible()
91 || (p[2] == '/'))))) { in collapsible()
95 while (*p) { in collapsible()
96 if (*p == '/') { in collapsible()
99 while (*p == '/') { in collapsible()
100 p++; in collapsible()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
DPattern2Test.java31 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 …]
DModeTest.java32 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/
DURI.java2206 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/jsr166-tests/src/test/java/jsr166/
DThreadPoolExecutorTest.java91 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 …]
DScheduledExecutorTest.java53 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 …]
DThreadPoolExecutorSubclassTest.java238 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 …]
DScheduledExecutorSubclassTest.java110 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/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
DPattern2Test.java110 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/
DAbstractPreferencesTest.java152 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/
DOldAndroidRegexTest.java27 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/
DProviderServiceTest.java45 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 …]

12345678910>>...16