Home
last modified time | relevance | path

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

12345678910>>...12

/libcore/ojluni/src/main/native/
Dcanonicalize_md.c51 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 …]
Djava_props_md.c141 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/
DSSLParametersTest.java32 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/
DRegexpPool.java90 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/
DConcurrentLinkedDeque.java356 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 …]
DConcurrentLinkedQueue.java287 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 …]
DLinkedTransferQueue.java607 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 …]
DExchanger.java360 Node p = participant.get(); in arenaExchange() local
361 for (int i = p.index;;) { // access slot at i in arenaExchange()
373 p.item = item; // offer in arenaExchange()
374 if (U.compareAndSwapObject(a, j, null, p)) { in arenaExchange()
377 for (int h = p.hash, spins = SPINS;;) { in arenaExchange()
378 Object v = p.match; in arenaExchange()
380 U.putOrderedObject(p, MATCH, null); in arenaExchange()
381 p.item = null; // clear for next use in arenaExchange()
382 p.hash = h; in arenaExchange()
393 else if (U.getObjectVolatile(a, j) != p) in arenaExchange()
[all …]
DLinkedBlockingQueue.java519 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/
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.java31 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 …]
DSplitTest.java32 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/
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 …]
DModeTest.java31 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 …]
DSplitTest.java12 Pattern p = Pattern.compile("/"); in testSimple() local
13 String[] results = p.split("have/you/done/it/right"); in testSimple()
64 Pattern p = Pattern.compile(" "); in testSplit1() local
69 tokens = p.split(input, 1); in testSplit1()
72 tokens = p.split(input, 2); in testSplit1()
76 tokens = p.split(input, 5); in testSplit1()
80 tokens = p.split(input, -2); in testSplit1()
84 tokens = p.split(input, 0); in testSplit1()
88 tokens = p.split(input); in testSplit1()
93 p = Pattern.compile("d"); in testSplit1()
[all …]
/libcore/ojluni/src/main/java/java/net/
DURI.java2197 int p = 0; // Index of next char in path in needsNormalization() local
2200 while (p <= end) { in needsNormalization()
2201 if (path.charAt(p) != '/') break; in needsNormalization()
2202 p++; in needsNormalization()
2204 if (p > 1) normal = false; in needsNormalization()
2207 while (p <= end) { in needsNormalization()
2210 if ((path.charAt(p) == '.') in needsNormalization()
2211 && ((p == end) in needsNormalization()
2212 || ((path.charAt(p + 1) == '/') in needsNormalization()
2213 || ((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/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 …]
DProviderTest.java60 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/
DECFieldFp.java42 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()

12345678910>>...12