/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/ |
D | ConcurrentLinkedQueue.java | 244 final void updateHead(Node<E> h, Node<E> p) { in updateHead() argument 245 if (h != p && casHead(h, p)) in updateHead() 254 final Node<E> succ(Node<E> p) { in succ() argument 255 Node<E> next = p.getNext(); in succ() 256 return (p == next) ? head : next; in succ() 271 Node<E> p = t; in offer() local 273 Node<E> next = succ(p); in offer() 277 p = next; in offer() 278 } else if (p.casNext(null, n)) { in offer() 283 p = succ(p); in offer() [all …]
|
D | LinkedBlockingQueue.java | 467 Node<E> p = head.next; in remove() local 468 while (p != null) { in remove() 469 if (o.equals(p.item)) { in remove() 473 trail = p; in remove() 474 p = p.next; in remove() 477 p.item = null; in remove() 478 trail.next = p.next; in remove() 479 if (last == p) in remove() 509 for (Node<E> p = head.next; p != null; p = p.next) in toArray() 510 a[k++] = p.item; in toArray() [all …]
|
/dalvik/libcore/regex/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
D | Pattern2Test.java | 44 Pattern p = Pattern.compile("foo.*"); in testSimpleMatch() local 46 Matcher m1 = p.matcher("foo123"); in testSimpleMatch() 51 Matcher m2 = p.matcher("fox"); in testSimpleMatch() 78 Pattern p; in testCursors() local 82 p = Pattern.compile("foo"); in testCursors() 84 m = p.matcher("foobar"); in testCursors() 146 Pattern p; in testGroups() local 149 p = Pattern.compile("(p[0-9]*)#?(q[0-9]*)"); in testGroups() 151 m = p.matcher("p1#q3p2q42p5p71p63#q888"); in testGroups() 213 Pattern p; in testReplace() local [all …]
|
D | ModeTest.java | 51 Pattern p; in testCase() local 54 p = Pattern.compile("([a-z]+)[0-9]+"); in testCase() 55 m = p.matcher("cAT123#dog345"); in testCase() 61 p = Pattern.compile("([a-z]+)[0-9]+", Pattern.CASE_INSENSITIVE); in testCase() 62 m = p.matcher("cAt123#doG345"); in testCase() 70 p = Pattern.compile("(?i)([a-z]+)[0-9]+"); in testCase() 71 m = p.matcher("cAt123#doG345"); in testCase() 93 Pattern p; in testMultiline() local 96 p = Pattern.compile("^foo"); in testMultiline() 97 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() 98 Pattern p = Pattern.compile(" "); in testSplit1() local 103 tokens = p.split(input, 1); in testSplit1() 106 tokens = p.split(input, 2); in testSplit1() 110 tokens = p.split(input, 5); in testSplit1() 114 tokens = p.split(input, -2); in testSplit1() 118 tokens = p.split(input, 0); in testSplit1() 122 tokens = p.split(input); in testSplit1() 127 p = Pattern.compile("d"); in testSplit1() [all …]
|
/dalvik/libcore/crypto/src/main/java/javax/crypto/spec/ |
D | PSource.java | 63 private final byte[] p; field in PSource.PSpecified 73 p = new byte[0]; 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()
|
D | DHParameterSpec.java | 28 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()
|
D | DHPublicKeySpec.java | 29 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()
|
D | DHPrivateKeySpec.java | 29 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()
|
/dalvik/libcore/security/src/main/java/java/security/spec/ |
D | ECFieldFp.java | 32 private final BigInteger p; field in ECFieldFp 44 public ECFieldFp(BigInteger p) { in ECFieldFp() argument 45 this.p = p; in ECFieldFp() 47 if (this.p == null) { in ECFieldFp() 50 if (this.p.signum() != 1) { in ECFieldFp() 62 return p.bitLength(); in getFieldSize() 72 return p; in getP() 90 return (this.p.equals(((ECFieldFp)obj).p)); in equals() 102 return p.hashCode(); in hashCode()
|
D | DSAParameterSpec.java | 30 private final BigInteger p; field in DSAParameterSpec 48 public DSAParameterSpec(BigInteger p, BigInteger q, BigInteger g) { in DSAParameterSpec() argument 49 this.p = p; in DSAParameterSpec() 71 return p; in getP()
|
/dalvik/libcore/security/src/test/java/tests/security/cert/ |
D | PKIXParametersTest.java | 308 PKIXParameters p = new PKIXParameters(taSet); in testGetPolicyQualifiersRejected() local 309 assertTrue(p.getPolicyQualifiersRejected()); in testGetPolicyQualifiersRejected() 332 PKIXParameters p = new PKIXParameters(taSet); in testSetPolicyQualifiersRejected() local 333 p.setPolicyQualifiersRejected(false); in testSetPolicyQualifiersRejected() 334 assertFalse("setFalse", p.getPolicyQualifiersRejected()); in testSetPolicyQualifiersRejected() 335 p.setPolicyQualifiersRejected(true); in testSetPolicyQualifiersRejected() 336 assertTrue("setTrue", p.getPolicyQualifiersRejected()); in testSetPolicyQualifiersRejected() 361 PKIXParameters p = new PKIXParameters(taSet); in testIsAnyPolicyInhibited() local 362 assertFalse(p.isAnyPolicyInhibited()); in testIsAnyPolicyInhibited() 385 PKIXParameters p = new PKIXParameters(taSet); in testSetAnyPolicyInhibited() local [all …]
|
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/ |
D | PackageTest.java | 126 Package p = getTestPackage("hyts_all_attributes.jar", "p.C"); in test_helper_Attributes() local 129 "p Implementation-Title", p.getImplementationTitle()); in test_helper_Attributes() 132 "p Implementation-Vendor", p.getImplementationVendor()); in test_helper_Attributes() 135 "2.2.2", p.getImplementationVersion()); in test_helper_Attributes() 138 "p Specification-Title", p.getSpecificationTitle()); in test_helper_Attributes() 141 "p Specification-Vendor", p.getSpecificationVendor()); in test_helper_Attributes() 144 "2.2.2", p.getSpecificationVersion()); in test_helper_Attributes() 242 Package p = getTestPackage("hyts_pq.jar", "p.q.C"); in test_getName() local 243 assertEquals("Package getName returns a wrong string", "p.q", p in test_getName() 264 Package p = getTestPackage("hyts_package.jar", "C"); in test_getPackageLjava_lang_String() local [all …]
|
/dalvik/libcore/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/ |
D | SocketHandlerTest.java | 231 Properties p = new Properties(); in testConstructor_NoBasicProperties() local 232 p.put("java.util.logging.SocketHandler.host", "127.0.0.1"); in testConstructor_NoBasicProperties() 233 p.put("java.util.logging.SocketHandler.port", "6666"); in testConstructor_NoBasicProperties() 235 EnvironmentHelper.PropertiesToInputStream(p)); in testConstructor_NoBasicProperties() 277 Properties p = new Properties(); in testConstructor_InsufficientPrivilege() local 278 p.put("java.util.logging.SocketHandler.level", "FINE"); in testConstructor_InsufficientPrivilege() 279 p.put("java.util.logging.SocketHandler.filter", className in testConstructor_InsufficientPrivilege() 281 p.put("java.util.logging.SocketHandler.formatter", className in testConstructor_InsufficientPrivilege() 283 p.put("java.util.logging.SocketHandler.encoding", "utf-8"); in testConstructor_InsufficientPrivilege() 284 p.put("java.util.logging.SocketHandler.host", "127.0.0.1"); in testConstructor_InsufficientPrivilege() [all …]
|
D | ConsoleHandlerTest.java | 151 Properties p = new Properties(); in testConstructor_ValidProperties() local 152 p.put("java.util.logging.ConsoleHandler.level", "FINE"); in testConstructor_ValidProperties() 153 p.put("java.util.logging.ConsoleHandler.filter", className in testConstructor_ValidProperties() 155 p.put("java.util.logging.ConsoleHandler.formatter", className in testConstructor_ValidProperties() 157 p.put("java.util.logging.ConsoleHandler.encoding", "iso-8859-1"); in testConstructor_ValidProperties() 159 EnvironmentHelper.PropertiesToInputStream(p)); in testConstructor_ValidProperties() 183 Properties p = new Properties(); in testConstructor_InvalidProperties() local 184 p.put("java.util.logging.ConsoleHandler.level", INVALID_LEVEL); in testConstructor_InvalidProperties() 185 p.put("java.util.logging.ConsoleHandler.filter", className); in testConstructor_InvalidProperties() 186 p.put("java.util.logging.ConsoleHandler.formatter", className); in testConstructor_InvalidProperties() [all …]
|
/dalvik/libcore/luni/src/main/java/java/util/ |
D | IllegalFormatPrecisionException.java | 29 private int p; field in IllegalFormatPrecisionException 38 public IllegalFormatPrecisionException(int p) { in IllegalFormatPrecisionException() argument 39 this.p = p; in IllegalFormatPrecisionException() 48 return p; in getPrecision() 58 return String.valueOf(p); in getMessage()
|
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/generators/ |
D | RSAKeyPairGenerator.java | 30 BigInteger p, q, n, d, e, pSub1, qSub1, phi; in generateKeyPair() local 45 p = new BigInteger(pbitlength, 1, param.getRandom()); in generateKeyPair() 47 if (p.mod(e).equals(ONE)) in generateKeyPair() 52 if (!p.isProbablePrime(param.getCertainty())) in generateKeyPair() 57 if (e.gcd(p.subtract(ONE)).equals(ONE)) in generateKeyPair() 75 if (q.equals(p)) in generateKeyPair() 99 n = p.multiply(q); in generateKeyPair() 110 p = p.max(q); in generateKeyPair() 113 if (p.compareTo(q) < 0) in generateKeyPair() 115 phi = p; in generateKeyPair() [all …]
|
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/params/ |
D | DHParameters.java | 11 private BigInteger p; field in DHParameters 17 BigInteger p, in DHParameters() argument 21 this.p = p; in DHParameters() 25 BigInteger p, in DHParameters() argument 31 this.p = p; in DHParameters() 37 BigInteger p, in DHParameters() argument 44 this.p = p; in DHParameters() 51 return p; in getP() 119 return (j == pm.getJ()) && pm.getP().equals(p) && pm.getG().equals(g); in equals()
|
D | DSAParameters.java | 12 private BigInteger p; field in DSAParameters 16 BigInteger p, in DSAParameters() argument 21 this.p = p; in DSAParameters() 26 BigInteger p, in DSAParameters() argument 32 this.p = p; in DSAParameters() 39 return p; in getP() 67 return (pm.getP().equals(p) && pm.getQ().equals(q) && pm.getG().equals(g)); in equals()
|
/dalvik/libcore/security/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | ProviderServiceTest.java | 55 Provider p = new MyProvider(); in testService() local 63 new Provider.Service(p, null, "algorithm", "className", null, null); in testService() 68 new Provider.Service(p, "type", null, "className", null, null); in testService() 73 new Provider.Service(p, "type", "algorithm", null, null, null); in testService() 78 Provider.Service s = new Provider.Service(p, "type", "algorithm", in testService() 87 if (s.getProvider() != p) { in testService() 105 Provider p = new MyProvider(); in testGetAttribute() local 106 Provider.Service s = new Provider.Service(p, "type", "algorithm", in testGetAttribute() 123 s = new Provider.Service(p, "type", "algorithm", "className", null, hm); in testGetAttribute() 142 Provider p = new MyProvider(); in testNewInstance() local [all …]
|
D | ProviderTest.java | 64 Provider p; field in ProviderTest 74 p = new MyProvider(); in setUp() 81 p.remove("MessageDigest.ASH-1"); in tearDown() 82 p.remove("MessageDigest.abc"); in tearDown() 83 p.remove("Alg.Alias.MessageDigest.ASH1"); in tearDown() 85 for (Provider p: Security.getProviders()) { in tearDown() 86 Security.removeProvider(p.getName()); in tearDown() 89 for (Provider p: storedProviders) { in tearDown() 90 Security.addProvider(p); in tearDown() 106 if (!p.getProperty("Provider.id name").equals( in testProvider() [all …]
|
D | SecurityTest.java | 65 Provider p = new MyProvider(); in test_insertProviderAtLjava_security_ProviderLI() local 73 assertEquals(initNum + 1, Security.insertProviderAt(p, -1)); in test_insertProviderAtLjava_security_ProviderLI() 74 assertSame(p, Security.getProviders()[initNum]); in test_insertProviderAtLjava_security_ProviderLI() 77 assertEquals(-1, Security.insertProviderAt(p, 1)); in test_insertProviderAtLjava_security_ProviderLI() 79 Security.removeProvider(p.getName()); in test_insertProviderAtLjava_security_ProviderLI() 82 assertEquals(initNum + 1, Security.insertProviderAt(p, in test_insertProviderAtLjava_security_ProviderLI() 84 assertSame(p, Security.getProviders()[initNum]); in test_insertProviderAtLjava_security_ProviderLI() 86 Security.removeProvider(p.getName()); in test_insertProviderAtLjava_security_ProviderLI() 89 assertEquals(1, Security.insertProviderAt(p, 1)); in test_insertProviderAtLjava_security_ProviderLI() 90 assertSame(p, Security.getProviders()[0]); in test_insertProviderAtLjava_security_ProviderLI() [all …]
|
/dalvik/libcore/x-net/src/test/java/tests/api/javax/net/ssl/ |
D | SSLPermissionTest.java | 46 SSLPermission p = new SSLPermission("name"); in test_ConstructorLjava_lang_String() local 47 assertEquals("Incorrect permission name", "name", p.getName()); in test_ConstructorLjava_lang_String() 49 p = new SSLPermission(null); in test_ConstructorLjava_lang_String() 69 SSLPermission p = new SSLPermission("name", "value"); in test_ConstructorLjava_lang_StringLjava_lang_String() local 70 assertEquals("Incorrect permission name", "name", p.getName()); in test_ConstructorLjava_lang_StringLjava_lang_String() 72 "", p.getActions()); in test_ConstructorLjava_lang_StringLjava_lang_String() 74 p = new SSLPermission(null, "value"); in test_ConstructorLjava_lang_StringLjava_lang_String() 79 p = new SSLPermission("name", null); in test_ConstructorLjava_lang_StringLjava_lang_String() 84 p = new SSLPermission(null, null); in test_ConstructorLjava_lang_StringLjava_lang_String()
|
/dalvik/libcore/xml/src/main/java/org/kxml2/wap/syncml/ |
D | SyncML.java | 11 WbxmlParser p = new WbxmlParser(); in createParser() local 12 p.setTagTable(0, TAG_TABLE_0); in createParser() 13 p.setTagTable(1, TAG_TABLE_1); in createParser() 14 return p; in createParser() 28 WbxmlParser p = createParser(); in createDMParser() local 29 p.setTagTable(2, TAG_TABLE_2_DM); in createDMParser() 30 return p; in createDMParser()
|
/dalvik/libcore/security/src/main/java/org/bouncycastle/asn1/x509/ |
D | CertificatePolicies.java | 69 DERObjectIdentifier p) in CertificatePolicies() argument 71 policies.addElement(p); in CertificatePolicies() 80 String p) in CertificatePolicies() argument 82 this(new DERObjectIdentifier(p)); in CertificatePolicies() 86 String p) in addPolicy() argument 88 policies.addElement(new DERObjectIdentifier(p)); in addPolicy() 136 String p = null; in toString() local 139 if (p != null) in toString() 141 p += ", "; in toString() 143 p += ((DERObjectIdentifier)policies.elementAt(i)).getId(); in toString() [all …]
|