Searched defs:val (Results 1 - 25 of 72) sorted by relevance

123

/libcore/luni/src/main/java/java/math/
H A DConversion.java53 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 DMultiplication.java87 * @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 DBitLevel.java41 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 DLogical.java39 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 DHelpers.java100 /** 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 DCertificatePolicyId.java53 * @param val the DER encoded value for the same.
55 public CertificatePolicyId(DerValue val) throws IOException { argument
56 this.id = val.getOID();
H A DCertificatePolicyMap.java57 * @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 DKeyIdentifier.java57 * @param val the DerValue
59 public KeyIdentifier(DerValue val) throws IOException { argument
60 octetString = val.getOctetString();
H A DSerialNumber.java82 * @param val the DerValue to read the SerialNumber from.
85 public SerialNumber(DerValue val) throws IOException { argument
86 construct(val);
H A DCertificateSerialNumber.java98 * @param val the DER encoded value.
101 public CertificateSerialNumber(DerValue val) throws IOException { argument
102 serial = new SerialNumber(val);
H A DCertificateVersion.java139 * @param val the Der encoded value.
142 public CertificateVersion(DerValue val) throws IOException { argument
145 construct(val);
H A DGeneralSubtree.java72 * @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 DPolicyInformation.java99 * @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 DEvilMapTest.java45 @Override public V put(K key, V val) { return val; } argument
H A DOldMapEntryTest.java56 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 DBits.java84 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 DExpiringCache.java46 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 DProcessEnvironment_md.c71 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 DAnnotationMember.java103 * @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 DUUID.java383 /** 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 DEncryptedPrivateKeyInfo.java84 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 DX509CertificatePair.java223 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 DCallVerificationStack.java127 * @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 DOldBigIntegerTest.java338 public MyBigInteger(String val) { argument
339 super(val);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DDatagramSocketImplTest.java138 public void setOption(int optID, Object val) throws SocketException { argument

Completed in 1792 milliseconds

123