Searched refs:val (Results 1 - 25 of 76) sorted by relevance

1234

/libcore/luni/src/main/java/java/io/
H A DDataOutput.java72 * @param val
78 public abstract void writeBoolean(boolean val) throws IOException; argument
83 * @param val
90 public abstract void writeByte(int val) throws IOException; argument
106 * @param val
112 public abstract void writeChar(int val) throws IOException; argument
129 * @param val
135 public abstract void writeDouble(double val) throws IOException; argument
141 * @param val
147 public abstract void writeFloat(float val) throw argument
158 writeInt(int val) argument
169 writeLong(long val) argument
182 writeShort(int val) argument
[all...]
H A DDataOutputStream.java121 * @param val
127 public final void writeBoolean(boolean val) throws IOException { argument
128 out.write(val ? 1 : 0);
134 * byte of the integer {@code val} is written.
136 * @param val
143 public final void writeByte(int val) throws IOException { argument
144 out.write(val);
160 public final void writeChar(int val) throws IOException { argument
161 writeShort(val);
170 public final void writeDouble(double val) throw argument
174 writeFloat(float val) argument
178 writeInt(int val) argument
184 writeLong(long val) argument
190 writeShort(int val) argument
[all...]
H A DRandomAccessFile.java715 * @param val
721 public final void writeBoolean(boolean val) throws IOException { argument
722 write(val ? 1 : 0);
727 * Only the least significant byte of the integer {@code val} is written.
729 * @param val
736 public final void writeByte(int val) throws IOException { argument
737 write(val & 0xFF);
759 * pointer. Only the two least significant bytes of the integer {@code val}
762 * @param val
768 public final void writeChar(int val) throw argument
797 writeDouble(double val) argument
812 writeFloat(float val) argument
826 writeInt(int val) argument
841 writeLong(long val) argument
858 writeShort(int val) argument
[all...]
/libcore/luni/src/test/java/libcore/java/util/
H A DOldAndroidTreeMapTest.java49 int val = mRandom.nextInt(1000);
50 if (SPEW) System.out.println("Adding val = " + val);
51 if (val < minVal) {
52 minVal = val;
54 if (val > maxVal) {
55 maxVal = val;
57 tm.put(new Integer(val), "V:" + val);
58 hm.put(new Integer(val), "
[all...]
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);
H A DOldFormatterTest.java55 Double val = new Double(3.14);
63 fLoc.format(Locale.US, "%f", val);
64 fNoL.format("%f", val);
69 fLoc.format(Locale.US, "%f", val);
70 fNoL.format("%f", val);
75 fLoc.format(Locale.US, "%f", val);
76 fNoL.format("%f", val);
117 fLoc.format(Locale.GERMAN, "%f", val);
/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/luni/src/main/native/
H A Djava_lang_Double.cpp34 static jlong Double_doubleToLongBits(JNIEnv*, jclass, jdouble val) { argument
36 d.d = val;
41 static jlong Double_doubleToRawLongBits(JNIEnv*, jclass, jdouble val) { argument
43 d.d = val;
47 static jdouble Double_longBitsToDouble(JNIEnv*, jclass, jlong val) { argument
49 d.bits = val;
H A Djava_lang_Float.cpp33 static jint Float_floatToIntBits(JNIEnv*, jclass, jfloat val) { argument
35 f.f = val;
40 jint Float_floatToRawIntBits(JNIEnv*, jclass, jfloat val) { argument
42 f.f = val;
46 jfloat Float_intBitsToFloat(JNIEnv*, jclass, jint val) { argument
48 f.bits = val;
H A Djava_util_zip_Adler32.cpp34 static jlong Adler32_updateByteImpl(JNIEnv*, jobject, jint val, jlong crc) { argument
35 Bytef bytefVal = val;
H A Djava_util_zip_CRC32.cpp35 static jlong CRC32_updateByteImpl(JNIEnv*, jobject, jbyte val, jlong crc) { argument
36 return crc32(crc, reinterpret_cast<const Bytef*>(&val), 1);
/libcore/luni/src/main/java/java/math/
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...]
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)));
177 * @param val th
181 multiplyByFivePow(BigInteger val, int exp) argument
[all...]
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...]
/libcore/luni/src/main/java/java/util/zip/
H A DChecksum.java53 * @param val
56 public void update(int val); argument
H A DCRC32.java52 * @param val
55 public void update(int val) { argument
56 crc = updateByteImpl((byte) val, crc);
81 private native long updateByteImpl(byte val, long crc1); argument
H A DCheckedOutputStream.java59 * updated with {@code val}.
61 * @param val
67 public void write(int val) throws IOException { argument
68 out.write(val);
69 check.update(val);
/libcore/luni/src/main/java/java/net/
H A DSocketOptions.java157 * @param val
162 public void setOption(int optID, Object val) throws SocketException; argument
/libcore/luni/src/main/java/java/util/
H A DRandom.java180 int bits, val;
183 val = bits % n;
184 } while (bits - val + (n - 1) < 0);
185 return val;
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DOldAndroidGZIPStreamTest.java65 byte val, step;
68 val = 0;
73 sample[offset++] = val;
74 val += step;
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/
H A DDerOutputStream.java37 private Object[][] val = new Object[initSize][]; field in class:DerOutputStream
49 ASN1Type type = (ASN1Type) val[index][0];
50 content = val[index][1];
56 content = val[index][0];
65 Object[] values = val[index];
90 Object[] values = val[index];
103 if (index == val.length) {
105 int[][] newLen = new int[val.length * 2][];
106 System.arraycopy(len, 0, newLen, 0, val.length);
109 Object[][] newVal = new Object[val
[all...]
/libcore/luni/src/main/java/javax/xml/datatype/
H A DDatatypeFactory.java403 long val = _durationInMilliseconds;
404 int milliseconds = (int) (val % 60000L); // 60000 milliseconds per minute
410 val = val / 60000L;
411 int minutes = (int) (val % 60L); // 60 minutes per hour
412 val = val / 60L;
413 int hours = (int) (val % 24L); // 24 hours per day
414 long days = val / 24L;
427 val
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/
H A DChannelsTest.java97 for (int val = 0; val < this.writebufSize / 2; val++) {
98 writebuf = writebuf + ((char) (val + 64));
186 for (int val = 0; val < this.writebufSize / 2; val++) {
187 writebuf.putChar((char) (val + 64));
228 for (int val = 0; val < thi
[all...]
/libcore/luni/src/test/java/tests/api/java/lang/reflect/
H A DFieldTest.java188 Double val = (Double) f.get(x);
191 val.doubleValue() == Double.MAX_VALUE);
195 val = (Double) f.get(x);
196 assertEquals("Returned incorrect double field value", 1.0, val
577 boolean val = false;
580 val = f.getBoolean(x);
584 assertTrue("Returned incorrect boolean field value", val);
644 byte val = 0;
647 val = f.getByte(x);
651 assertTrue("Returned incorrect byte field value", val
[all...]

Completed in 785 milliseconds

1234