/libcore/luni/src/main/java/java/math/ |
H A D | Conversion.java | 53 static String bigInteger2String(BigInteger val, int radix) { argument 54 val.prepareJavaRepresentation(); 55 int sign = val.sign; 56 int numberLength = val.numberLength; 57 int[] digits = val.digits; 72 return val.toString(); 76 int resLengthInChars = (int) (val.abs().bitLength() / bitsForRadixDigit + ((sign < 0) ? 1 131 * Builds the correspondent {@code String} representation of {@code val} 137 static String toDecimalScaledString(BigInteger val, int scale) { argument 138 val 418 bigInteger2Double(BigInteger val) argument [all...] |
H A D | Multiplication.java | 87 * @param val an arbitrary {@code BigInteger} 89 * @return {@code val * factor} 91 static BigInteger multiplyByPositiveInt(BigInteger val, int factor) { argument 92 BigInt bi = val.getBigInt().copy(); 100 * @param val the number to be multiplied 102 * @return {@code val * 10<sup>exp</sup>} 104 static BigInteger multiplyByTenPow(BigInteger val, long exp) { argument 107 ? multiplyByPositiveInt(val, tenPows[(int)exp]) 108 : val.multiply(powerOf10(exp))); 173 * @param val th 177 multiplyByFivePow(BigInteger val, int exp) argument [all...] |
H A D | BitLevel.java | 41 static int bitLength(BigInteger val) { argument 42 val.prepareJavaRepresentation(); 43 if (val.sign == 0) { 46 int bLength = (val.numberLength << 5); 47 int highDigit = val.digits[val.numberLength - 1]; 49 if (val.sign < 0) { 50 int i = val.getFirstNonzeroDigit(); 52 if (i == val.numberLength - 1) { 62 static int bitCount(BigInteger val) { argument 91 testBit(BigInteger val, int n) argument 213 flipBit(BigInteger val, int n) argument [all...] |
H A D | Logical.java | 39 static BigInteger not(BigInteger val) { argument 40 if (val.sign == 0) { 43 if (val.equals(BigInteger.MINUS_ONE)) { 46 int[] resDigits = new int[val.numberLength + 1]; 49 if (val.sign > 0) { 50 // ~val = -val + 1 51 if (val.digits[val.numberLength - 1] != -1) { 52 for (i = 0; val 82 and(BigInteger val, BigInteger that) argument 111 andPositive(BigInteger val, BigInteger that) argument 218 andNot(BigInteger val, BigInteger that) argument 250 andNotPositive(BigInteger val, BigInteger that) argument 371 andNotNegative(BigInteger val, BigInteger that) argument 425 or(BigInteger val, BigInteger that) argument 476 orNegative(BigInteger val, BigInteger that) argument 569 xor(BigInteger val, BigInteger that) argument 622 xorNegative(BigInteger val, BigInteger that) argument [all...] |
/libcore/ojluni/src/main/java/java/util/concurrent/ |
H A D | Helpers.java | 100 /** Optimized form of: key + "=" + val */ 101 static String mapEntryToString(Object key, Object val) { argument 106 (vlen = (v = objectToString(val)).length()) + 1];
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
H A D | CertificatePolicyId.java | 53 * @param val the DER encoded value for the same. 55 public CertificatePolicyId(DerValue val) throws IOException { argument 56 this.id = val.getOID();
|
H A D | CertificatePolicyMap.java | 57 * @param val the DER encoded value of the same. 59 public CertificatePolicyMap(DerValue val) throws IOException { argument 60 if (val.tag != DerValue.tag_Sequence) { 63 issuerDomain = new CertificatePolicyId(val.data.getDerValue()); 64 subjectDomain = new CertificatePolicyId(val.data.getDerValue());
|
H A D | KeyIdentifier.java | 57 * @param val the DerValue 59 public KeyIdentifier(DerValue val) throws IOException { argument 60 octetString = val.getOctetString();
|
H A D | SerialNumber.java | 82 * @param val the DerValue to read the SerialNumber from. 85 public SerialNumber(DerValue val) throws IOException { argument 86 construct(val);
|
H A D | CertificateSerialNumber.java | 98 * @param val the DER encoded value. 101 public CertificateSerialNumber(DerValue val) throws IOException { argument 102 serial = new SerialNumber(val);
|
H A D | CertificateVersion.java | 139 * @param val the Der encoded value. 142 public CertificateVersion(DerValue val) throws IOException { argument 145 construct(val);
|
H A D | GeneralSubtree.java | 72 * @param val the DER encoded from of the same. 74 public GeneralSubtree(DerValue val) throws IOException { argument 75 if (val.tag != DerValue.tag_Sequence) { 78 name = new GeneralName(val.data.getDerValue(), true); 83 while (val.data.available() != 0) { 84 DerValue opt = val.data.getDerValue();
|
H A D | PolicyInformation.java | 99 * @param val the DerValue to construct the PolicyInformation from. 102 public PolicyInformation(DerValue val) throws IOException { argument 103 if (val.tag != DerValue.tag_Sequence) { 106 policyIdentifier = new CertificatePolicyId(val.data.getDerValue()); 107 if (val.data.available() != 0) { 109 DerValue opt = val.data.getDerValue();
|
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | EvilMapTest.java | 45 @Override public V put(K key, V val) { return val; } argument
|
H A D | OldMapEntryTest.java | 56 public Object put(Object key, Object val) { argument 57 if (val == null) throw new NullPointerException(); 58 if (val.getClass() == Double.class) throw new ClassCastException(); 59 if (((String)val).equals("Wrong element")) throw new IllegalArgumentException(); 63 public Object fakePut(Object key, Object val) { argument 64 return super.put(key, val);
|
/libcore/ojluni/src/main/java/java/io/ |
H A D | Bits.java | 84 static void putBoolean(byte[] b, int off, boolean val) { argument 85 b[off] = (byte) (val ? 1 : 0); 88 static void putChar(byte[] b, int off, char val) { argument 89 b[off + 1] = (byte) (val ); 90 b[off ] = (byte) (val >>> 8); 93 static void putShort(byte[] b, int off, short val) { argument 94 b[off + 1] = (byte) (val ); 95 b[off ] = (byte) (val >>> 8); 98 static void putInt(byte[] b, int off, int val) { argument 99 b[off + 3] = (byte) (val ); 105 putFloat(byte[] b, int off, float val) argument 109 putLong(byte[] b, int off, long val) argument 120 putDouble(byte[] b, int off, double val) argument [all...] |
H A D | ExpiringCache.java | 46 private String val; field in class:ExpiringCache.Entry 48 Entry(long timestamp, String val) { argument 50 this.val = val; 56 String val() { return val; } method in class:ExpiringCache.Entry 57 void setVal(String val) { this.val = val; } argument 85 return entry.val(); 90 put(String key, String val) argument [all...] |
/libcore/ojluni/src/main/native/ |
H A D | ProcessEnvironment_md.c | 71 jbyteArray var, val; local 77 val = (*env)->NewByteArray(env, valLength); 78 if (val == NULL) return NULL; 81 (*env)->SetByteArrayRegion(env, val, 0, valLength, 84 (*env)->SetObjectArrayElement(env, result, 2*j+1, val); 86 (*env)->DeleteLocalRef(env, val);
|
/libcore/luni/src/main/java/libcore/reflect/ |
H A D | AnnotationMember.java | 103 * @param val element value, should be of addmissible type, 108 public AnnotationMember(String name, Object val) { argument 110 value = val == null ? NO_VALUE : val; 129 public AnnotationMember(String name, Object val, Class type, Method m) { argument 130 this(name, val);
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | UUID.java | 383 /** Returns val represented by the specified number of hex digits. */ 384 private static String digits(long val, int digits) { argument 386 return Long.toHexString(hi | (val & (hi - 1))).substring(1); 428 * @param val 432 * greater than {@code val} 435 public int compareTo(UUID val) { argument 438 return (this.mostSigBits < val.mostSigBits ? -1 : 439 (this.mostSigBits > val.mostSigBits ? 1 : 440 (this.leastSigBits < val.leastSigBits ? -1 : 441 (this.leastSigBits > val [all...] |
/libcore/ojluni/src/main/java/javax/crypto/ |
H A D | EncryptedPrivateKeyInfo.java | 84 DerValue val = new DerValue(this.encoded); 88 seq[0] = val.data.getDerValue(); 89 seq[1] = val.data.getDerValue(); 91 if (val.data.available() != 0) { 92 throw new IOException("overrun, bytes = " + val.data.available()); 399 private static void checkTag(DerValue val, byte tag, String valName) argument 401 if (val.getTag() != tag) {
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
H A D | X509CertificatePair.java | 223 private void parse(DerValue val) argument 226 if (val.tag != DerValue.tag_Sequence) { 231 while (val.data != null && val.data.available() != 0) { 232 DerValue opt = val.data.getDerValue();
|
/libcore/support/src/test/java/tests/util/ |
H A D | CallVerificationStack.java | 127 * @param val 130 public void push(boolean val) { argument 131 this.push(new BaseTypeWrapper(val)); 137 * @param val 140 public void push(char val) { argument 141 this.push(new BaseTypeWrapper(val)); 147 * @param val 150 public void push(double val) { argument 151 this.push(new BaseTypeWrapper(val)); 157 * @param val 160 push(float val) argument 170 push(int val) argument 180 push(long val) argument 190 push(short val) argument 293 BaseTypeWrapper(boolean val) argument 300 BaseTypeWrapper(byte val) argument 307 BaseTypeWrapper(char val) argument 314 BaseTypeWrapper(double val) argument 321 BaseTypeWrapper(float val) argument 328 BaseTypeWrapper(int val) argument 335 BaseTypeWrapper(long val) argument 342 BaseTypeWrapper(short val) argument [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
H A D | OldBigIntegerTest.java | 338 public MyBigInteger(String val) { argument 339 super(val);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
H A D | DatagramSocketImplTest.java | 138 public void setOption(int optID, Object val) throws SocketException { argument
|