Home
last modified time | relevance | path

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

123456

/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLParametersTest.java26 SSLParameters p = new SSLParameters(); in test_SSLParameters_emptyConstructor() local
27 assertNull(p.getCipherSuites()); in test_SSLParameters_emptyConstructor()
28 assertNull(p.getProtocols()); in test_SSLParameters_emptyConstructor()
29 assertFalse(p.getWantClientAuth()); in test_SSLParameters_emptyConstructor()
30 assertFalse(p.getNeedClientAuth()); in test_SSLParameters_emptyConstructor()
35 SSLParameters p = new SSLParameters(cipherSuites); in test_SSLParameters_cipherSuitesConstructor() local
36 assertNotNull(p.getCipherSuites()); in test_SSLParameters_cipherSuitesConstructor()
37 assertNotSame(cipherSuites, p.getCipherSuites()); in test_SSLParameters_cipherSuitesConstructor()
38 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(p.getCipherSuites())); in test_SSLParameters_cipherSuitesConstructor()
39 assertNull(p.getProtocols()); in test_SSLParameters_cipherSuitesConstructor()
[all …]
/libcore/luni/src/main/java/java/util/concurrent/
DConcurrentLinkedDeque.java333 for (Node<E> h = head, p = h, q;;) { in linkFirst()
334 if ((q = p.prev) != null && in linkFirst()
335 (q = (p = q).prev) != null) in linkFirst()
338 p = (h != (h = head)) ? h : q; in linkFirst()
339 else if (p.next == p) // PREV_TERMINATOR in linkFirst()
343 newNode.lazySetNext(p); // CAS piggyback in linkFirst()
344 if (p.casPrev(null, newNode)) { in linkFirst()
348 if (p != h) // hop two nodes at a time in linkFirst()
366 for (Node<E> t = tail, p = t, q;;) { in linkLast()
367 if ((q = p.next) != null && in linkLast()
[all …]
DConcurrentLinkedQueue.java274 final void updateHead(Node<E> h, Node<E> p) { in updateHead() argument
275 if (h != p && casHead(h, p)) in updateHead()
284 final Node<E> succ(Node<E> p) { in succ() argument
285 Node<E> next = p.next; in succ()
286 return (p == next) ? head : next; in succ()
300 for (Node<E> t = tail, p = t;;) { in offer()
301 Node<E> q = p.next; in offer()
304 if (p.casNext(null, newNode)) { in offer()
308 if (p != t) // hop two nodes at a time in offer()
314 else if (p == q) in offer()
[all …]
DLinkedTransferQueue.java584 for (Node h = head, p = h; p != null;) { // find & match first node in xfer()
585 boolean isData = p.isData; in xfer()
586 Object item = p.item; in xfer()
587 if (item != p && (item != null) == isData) { // unmatched in xfer()
590 if (p.casItem(item, e)) { // match in xfer()
591 for (Node q = p; q != h;) { in xfer()
601 LockSupport.unpark(p.waiter); in xfer()
605 Node n = p.next; in xfer()
606 p = (p != n) ? n : (h = head); // Use head if p offlist in xfer()
632 for (Node t = tail, p = t;;) { // move p to last node and append in tryAppend()
[all …]
DLinkedBlockingQueue.java494 void unlink(Node<E> p, Node<E> trail) { in unlink() argument
498 p.item = null; in unlink()
499 trail.next = p.next; in unlink()
500 if (last == p) in unlink()
521 for (Node<E> trail = head, p = trail.next; in remove()
522 p != null; in remove()
523 trail = p, p = p.next) { in remove()
524 if (o.equals(p.item)) { in remove()
525 unlink(p, trail); in remove()
547 for (Node<E> p = head.next; p != null; p = p.next) in contains()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
DPattern2Test.java32 Pattern p = Pattern.compile("foo.*"); in testSimpleMatch() local
34 Matcher m1 = p.matcher("foo123"); in testSimpleMatch()
39 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()
106 Pattern p; in testGroups() local
109 p = Pattern.compile("(p[0-9]*)#?(q[0-9]*)"); in testGroups()
111 m = p.matcher("p1#q3p2q42p5p71p63#q888"); in testGroups()
159 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()
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/luni/src/main/java/java/security/spec/
DECFieldFp.java28 private final BigInteger p; field in ECFieldFp
39 public ECFieldFp(BigInteger p) { in ECFieldFp() argument
40 this.p = p; in ECFieldFp()
42 if (this.p == null) { in ECFieldFp()
45 if (this.p.signum() != 1) { in ECFieldFp()
56 return p.bitLength(); in getFieldSize()
65 return p; in getP()
82 return (this.p.equals(((ECFieldFp)obj).p)); in equals()
93 return p.hashCode(); in hashCode()
DDSAParameterSpec.java28 private final BigInteger p; field in DSAParameterSpec
45 public DSAParameterSpec(BigInteger p, BigInteger q, BigInteger g) { in DSAParameterSpec() argument
46 this.p = p; in DSAParameterSpec()
66 return p; in getP()
/libcore/luni/src/main/java/javax/crypto/spec/
DPSource.java63 private final byte[] p; field in PSource.PSpecified
73 p = EmptyArray.BYTE; in PSpecified()
85 public PSpecified(byte[] p) { in PSpecified() argument
87 if (p == null) { in PSpecified()
92 this.p = new byte[p.length]; in PSpecified()
93 System.arraycopy(p, 0, this.p, 0, p.length); in PSpecified()
102 byte[] result = new byte[p.length]; in getValue()
103 System.arraycopy(p, 0, result, 0, p.length); in getValue()
DDHParameterSpec.java28 private final BigInteger p; field in DHParameterSpec
41 public DHParameterSpec(BigInteger p, BigInteger g) { in DHParameterSpec() argument
42 this.p = p; in DHParameterSpec()
59 public DHParameterSpec(BigInteger p, BigInteger g, int l) { in DHParameterSpec() argument
60 this.p = p; in DHParameterSpec()
71 return p; in getP()
DDHPrivateKeySpec.java29 private final BigInteger p; field in DHPrivateKeySpec
44 public DHPrivateKeySpec(BigInteger x, BigInteger p, BigInteger g) { in DHPrivateKeySpec() argument
46 this.p = p; in DHPrivateKeySpec()
65 return p; in getP()
DDHPublicKeySpec.java29 private final BigInteger p; field in DHPublicKeySpec
44 public DHPublicKeySpec(BigInteger y, BigInteger p, BigInteger g) { in DHPublicKeySpec() argument
46 this.p = p; in DHPublicKeySpec()
65 return p; in getP()
/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/main/java/java/lang/
DSystem.java267 Properties p = new Properties(); in initSystemProperties() local
272 p.put("java.boot.class.path", runtime.bootClassPath()); in initSystemProperties()
273 p.put("java.class.path", runtime.classPath()); in initSystemProperties()
278 p.put("java.class.version", "50.0"); in initSystemProperties()
279 p.put("java.compiler", ""); in initSystemProperties()
280 p.put("java.ext.dirs", ""); in initSystemProperties()
281 p.put("java.version", "0"); in initSystemProperties()
283 p.put("java.home", getenv("JAVA_HOME", "/system")); in initSystemProperties()
285 p.put("java.io.tmpdir", "/tmp"); in initSystemProperties()
286 p.put("java.library.path", getenv("LD_LIBRARY_PATH")); in initSystemProperties()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DProviderServiceTest.java44 Provider p = new MyProvider(); in testService() local
52 new Provider.Service(p, null, "algorithm", "className", null, null); in testService()
57 new Provider.Service(p, "type", null, "className", null, null); in testService()
62 new Provider.Service(p, "type", "algorithm", null, null, null); in testService()
67 Provider.Service s = new Provider.Service(p, "type", "algorithm", in testService()
76 if (s.getProvider() != p) { in testService()
88 Provider p = new MyProvider(); in testGetAttribute() local
89 Provider.Service s = new Provider.Service(p, "type", "algorithm", in testGetAttribute()
106 s = new Provider.Service(p, "type", "algorithm", "className", null, hm); in testGetAttribute()
119 Provider p = new MyProvider(); in testNewInstance() local
[all …]
DProviderTest.java59 Provider p; field in ProviderTest
69 p = new MyProvider(); in setUp()
74 p.remove("MessageDigest.ASH-1"); in tearDown()
75 p.remove("MessageDigest.abc"); in tearDown()
76 p.remove("Alg.Alias.MessageDigest.ASH1"); in tearDown()
78 for (Provider p: Security.getProviders()) { in tearDown()
79 Security.removeProvider(p.getName()); in tearDown()
82 for (Provider p: storedProviders) { in tearDown()
83 Security.addProvider(p); in tearDown()
93 if (!p.getProperty("Provider.id name").equals( in testProvider()
[all …]
DSecurityTest.java49 Provider p = new MyProvider(); in test_insertProviderAtLjava_security_ProviderLI() local
57 assertEquals(initNum + 1, Security.insertProviderAt(p, -1)); in test_insertProviderAtLjava_security_ProviderLI()
58 assertSame(p, Security.getProviders()[initNum]); in test_insertProviderAtLjava_security_ProviderLI()
61 assertEquals(-1, Security.insertProviderAt(p, 1)); in test_insertProviderAtLjava_security_ProviderLI()
63 Security.removeProvider(p.getName()); in test_insertProviderAtLjava_security_ProviderLI()
66 assertEquals(initNum + 1, Security.insertProviderAt(p, in test_insertProviderAtLjava_security_ProviderLI()
68 assertSame(p, Security.getProviders()[initNum]); in test_insertProviderAtLjava_security_ProviderLI()
70 Security.removeProvider(p.getName()); in test_insertProviderAtLjava_security_ProviderLI()
73 assertEquals(1, Security.insertProviderAt(p, 1)); in test_insertProviderAtLjava_security_ProviderLI()
74 assertSame(p, Security.getProviders()[0]); in test_insertProviderAtLjava_security_ProviderLI()
[all …]
/libcore/luni/src/main/java/java/util/
DIllegalFormatPrecisionException.java29 private final int p; field in IllegalFormatPrecisionException
38 public IllegalFormatPrecisionException(int p) { in IllegalFormatPrecisionException() argument
39 this.p = p; in IllegalFormatPrecisionException()
48 return p; in getPrecision()
53 return Integer.toString(p); in getMessage()
/libcore/luni/src/main/java/java/beans/
DPropertyChangeSupport.java120 for (PropertyChangeListener p : listeners) { in removePropertyChangeListener()
121 if (equals(propertyName, listener, p)) { in removePropertyChangeListener()
122 listeners.remove(p); in removePropertyChangeListener()
179 for (PropertyChangeListener p : listeners) { in getPropertyChangeListeners()
180 if (p instanceof PropertyChangeListenerProxy && Objects.equal( in getPropertyChangeListeners()
181 propertyName, ((PropertyChangeListenerProxy) p).getPropertyName())) { in getPropertyChangeListeners()
182 result.add(p); in getPropertyChangeListeners()
274 for (PropertyChangeListener p : listeners) { in hasListeners()
275 if (!(p instanceof PropertyChangeListenerProxy) || Objects.equal( in hasListeners()
276 propertyName, ((PropertyChangeListenerProxy) p).getPropertyName())) { in hasListeners()
[all …]
/libcore/luni/src/main/java/javax/net/ssl/
DSSLSocket.java298 SSLParameters p = new SSLParameters(); in getSSLParameters() local
299 p.setCipherSuites(getEnabledCipherSuites()); in getSSLParameters()
300 p.setProtocols(getEnabledProtocols()); in getSSLParameters()
301 p.setNeedClientAuth(getNeedClientAuth()); in getSSLParameters()
302 p.setWantClientAuth(getWantClientAuth()); in getSSLParameters()
303 return p; in getSSLParameters()
315 public void setSSLParameters(SSLParameters p) { in setSSLParameters() argument
316 String[] cipherSuites = p.getCipherSuites(); in setSSLParameters()
320 String[] protocols = p.getProtocols(); in setSSLParameters()
324 if (p.getNeedClientAuth()) { in setSSLParameters()
[all …]
DSSLEngine.java472 SSLParameters p = new SSLParameters(); in getSSLParameters() local
473 p.setCipherSuites(getEnabledCipherSuites()); in getSSLParameters()
474 p.setProtocols(getEnabledProtocols()); in getSSLParameters()
475 p.setNeedClientAuth(getNeedClientAuth()); in getSSLParameters()
476 p.setWantClientAuth(getWantClientAuth()); in getSSLParameters()
477 return p; in getSSLParameters()
489 public void setSSLParameters(SSLParameters p) { in setSSLParameters() argument
490 String[] cipherSuites = p.getCipherSuites(); in setSSLParameters()
494 String[] protocols = p.getProtocols(); in setSSLParameters()
498 if (p.getNeedClientAuth()) { in setSSLParameters()
[all …]
/libcore/luni/src/test/java/tests/security/cert/
DPKIXBuilderParametersTest.java93 PKIXParameters p = in testPKIXBuilderParametersSetCertSelector01() local
95 assertTrue("instanceOf", p instanceof PKIXBuilderParameters); in testPKIXBuilderParametersSetCertSelector01()
96 assertNotNull("certSelector", p.getTargetCertConstraints()); in testPKIXBuilderParametersSetCertSelector01()
112 PKIXParameters p = new PKIXBuilderParameters(taSet, null); in testPKIXBuilderParametersSetCertSelector02() local
113 assertTrue("instanceOf", p instanceof PKIXBuilderParameters); in testPKIXBuilderParametersSetCertSelector02()
114 assertNull("certSelector", p.getTargetCertConstraints()); in testPKIXBuilderParametersSetCertSelector02()
254 PKIXBuilderParameters p = new PKIXBuilderParameters(keyTest, in testPKIXBuilderParametersKeyStoreCertSelector04() local
256 assertEquals(3, p.getTrustAnchors().size()); in testPKIXBuilderParametersKeyStoreCertSelector04()
257 assertEquals(5, p.getMaxPathLength()); in testPKIXBuilderParametersKeyStoreCertSelector04()
284 PKIXBuilderParameters p = new PKIXBuilderParameters(keyTest, in testGetMaxPathLength() local
[all …]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
DPSourceTest.java53 byte[] p = new byte[] {1, 2, 3, 4, 5}; in testPSpecified()
54 PSource.PSpecified ps = new PSource.PSpecified(p); in testPSpecified()
55 p[0]++; in testPSpecified()
57 + "should not cause the change of internal array.", p[0] == ps in testPSpecified()
67 byte[] p = new byte[] {1, 2, 3, 4, 5}; in testGetValue()
69 PSource.PSpecified ps = new PSource.PSpecified(p); in testGetValue()
71 if (!Arrays.equals(p, result)) { in testGetValue()

123456