Home
last modified time | relevance | path

Searched refs:v (Results 1 – 25 of 160) sorted by relevance

1234567

/libcore/luni/src/test/java/libcore/java/lang/invoke/
DExplicitCastArgumentsTest.java79 private static boolean toBooleanValue(byte v) { return (v & 1) != 0; } in toBooleanValue() argument
80 private static boolean toBooleanValue(char v) { return toBooleanValue((byte) v); } in toBooleanValue() argument
81 private static boolean toBooleanValue(short v) { return toBooleanValue((byte) v); } in toBooleanValue() argument
82 private static boolean toBooleanValue(int v) { return toBooleanValue((byte) v); } in toBooleanValue() argument
83 private static boolean toBooleanValue(long v) { return toBooleanValue((byte) v); } in toBooleanValue() argument
84 private static boolean toBooleanValue(float v) { return toBooleanValue((long) v); } in toBooleanValue() argument
85 private static boolean toBooleanValue(double v) { return toBooleanValue((long) v); } in toBooleanValue() argument
88 private static byte byteFromBooleanValue(boolean v) { return v ? (byte) 1 : (byte) 0; } in byteFromBooleanValue() argument
89 private static char charFromBooleanValue(boolean v) { return v ? (char) 1 : (char) 0; } in charFromBooleanValue() argument
90 private static short shortFromBooleanValue(boolean v) { return v ? (short) 1 : (short) 0; } in shortFromBooleanValue() argument
[all …]
DMethodHandleAccessorsTest.java74 static void setByte(MethodHandle m, ValueHolder v, byte value, boolean expectFailure) in setByte() argument
78 if (v == null) { in setByte()
82 m.invokeExact(v, value); in setByte()
95 static void getByte(MethodHandle m, ValueHolder v, byte value, boolean expectFailure) in getByte() argument
100 if (v == null) { in getByte()
103 got = (byte)m.invokeExact(v); in getByte()
117 static void setChar(MethodHandle m, ValueHolder v, char value, boolean expectFailure) in setChar() argument
121 if (v == null) { in setChar()
125 m.invokeExact(v, value); in setChar()
138 static void getChar(MethodHandle m, ValueHolder v, char value, boolean expectFailure) in getChar() argument
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DVectorTest.java64 Vector v = new Vector(); in test_Constructor() local
65 assertEquals("Vector creation failed", 0, v.size()); in test_Constructor()
66 assertEquals("Wrong capacity", 10, v.capacity()); in test_Constructor()
75 Vector v = new Vector(100); in test_ConstructorI() local
76 assertEquals("Vector creation failed", 0, v.size()); in test_ConstructorI()
77 assertEquals("Wrong capacity", 100, v.capacity()); in test_ConstructorI()
93 Vector v = new Vector(2, 10); in test_ConstructorII() local
94 v.addElement(new Object()); in test_ConstructorII()
95 v.addElement(new Object()); in test_ConstructorII()
96 v.addElement(new Object()); in test_ConstructorII()
[all …]
DNoSuchElementExceptionTest.java34 Vector v = new Vector(); in test_Constructor() local
35 v.elements().nextElement(); in test_Constructor()
52 Vector v = new Vector(); in test_ConstructorLjava_lang_String() local
53 v.firstElement(); in test_ConstructorLjava_lang_String()
/libcore/support/src/test/java/tests/support/
DSupport_DecimalFormat.java183 Vector<FieldContainer> v = new Vector<FieldContainer>(); in getNumberVectorUS() local
184 v.add(new FieldContainer(0, 3, NumberFormat.Field.INTEGER)); in getNumberVectorUS()
185 v.add(new FieldContainer(3, 4, NumberFormat.Field.DECIMAL_SEPARATOR)); in getNumberVectorUS()
186 v.add(new FieldContainer(4, 6, NumberFormat.Field.FRACTION)); in getNumberVectorUS()
187 return v; in getNumberVectorUS()
191 Vector<FieldContainer> v = new Vector<FieldContainer>(); in getIntegerVectorUS() local
192 v.add(new FieldContainer(0, 3, NumberFormat.Field.INTEGER)); in getIntegerVectorUS()
193 return v; in getIntegerVectorUS()
197 Vector<FieldContainer> v = new Vector<FieldContainer>(); in getPositiveCurrencyVectorCH() local
198 v.add(new FieldContainer(0, 4, NumberFormat.Field.CURRENCY)); in getPositiveCurrencyVectorCH()
[all …]
DSupport_MessageFormat.java86 Vector<FieldContainer> v = new Vector<FieldContainer>(); in getMessageVector1() local
87 v.add(new FieldContainer(3, 6, Field.ARGUMENT, 4)); in getMessageVector1()
88 v.add(new FieldContainer(3, 6, DateFormat.Field.MONTH)); in getMessageVector1()
89 v.add(new FieldContainer(6, 7, Field.ARGUMENT, 4)); in getMessageVector1()
90 v.add(new FieldContainer(7, 9, Field.ARGUMENT, 4)); in getMessageVector1()
91 v.add(new FieldContainer(7, 9, DateFormat.Field.DAY_OF_MONTH)); in getMessageVector1()
92 v.add(new FieldContainer(9, 11, Field.ARGUMENT, 4)); in getMessageVector1()
93 v.add(new FieldContainer(11, 15, Field.ARGUMENT, 4)); in getMessageVector1()
94 v.add(new FieldContainer(11, 15, DateFormat.Field.YEAR)); in getMessageVector1()
95 v.add(new FieldContainer(19, 20, Field.ARGUMENT, 3)); in getMessageVector1()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DSupport_SimpleDateFormat.java160 Vector<FieldContainer> v = new Vector<FieldContainer>(); in getDateVector1() local
161 v.add(new FieldContainer(0, 4, Field.YEAR)); in getDateVector1()
162 v.add(new FieldContainer(4, 6, Field.MONTH)); in getDateVector1()
163 v.add(new FieldContainer(6, 8, Field.DAY_OF_MONTH)); in getDateVector1()
164 v.add(new FieldContainer(8, 10, Field.HOUR_OF_DAY0)); in getDateVector1()
165 v.add(new FieldContainer(10, 12, Field.MINUTE)); in getDateVector1()
166 v.add(new FieldContainer(12, 14, Field.SECOND)); in getDateVector1()
167 return v; in getDateVector1()
172 Vector<FieldContainer> v = new Vector<FieldContainer>(); in getDateVector2() local
173 v.add(new FieldContainer(0, 2, Field.WEEK_OF_YEAR)); in getDateVector2()
[all …]
DSupport_DecimalFormat.java148 Vector<FieldContainer> v = new Vector<FieldContainer>(); in getNumberVectorUS() local
149 v.add(new FieldContainer(0, 3, NumberFormat.Field.INTEGER)); in getNumberVectorUS()
150 v.add(new FieldContainer(3, 4, NumberFormat.Field.DECIMAL_SEPARATOR)); in getNumberVectorUS()
151 v.add(new FieldContainer(4, 6, NumberFormat.Field.FRACTION)); in getNumberVectorUS()
152 return v; in getNumberVectorUS()
156 Vector<FieldContainer> v = new Vector<FieldContainer>(); in getPositiveCurrencyVectorTR() local
157 v.add(new FieldContainer(0, 1, NumberFormat.Field.CURRENCY)); in getPositiveCurrencyVectorTR()
158 v.add(new FieldContainer(1, 4, NumberFormat.Field.INTEGER)); in getPositiveCurrencyVectorTR()
159 v.add(new FieldContainer(4, 5, NumberFormat.Field.DECIMAL_SEPARATOR)); in getPositiveCurrencyVectorTR()
160 v.add(new FieldContainer(5, 7, NumberFormat.Field.FRACTION)); in getPositiveCurrencyVectorTR()
[all …]
DSupport_MessageFormat.java90 Vector<FieldContainer> v = new Vector<FieldContainer>(); in getMessageVector1() local
91 v.add(new FieldContainer(3, 6, DateFormat.Field.MONTH)); in getMessageVector1()
92 v.add(new FieldContainer(3, 6, Field.ARGUMENT, 4)); in getMessageVector1()
93 v.add(new FieldContainer(6, 7, Field.ARGUMENT, 4)); in getMessageVector1()
94 v.add(new FieldContainer(7, 9, DateFormat.Field.DAY_OF_MONTH)); in getMessageVector1()
95 v.add(new FieldContainer(7, 9, Field.ARGUMENT, 4)); in getMessageVector1()
96 v.add(new FieldContainer(9, 11, Field.ARGUMENT, 4)); in getMessageVector1()
97 v.add(new FieldContainer(11, 15, DateFormat.Field.YEAR)); in getMessageVector1()
98 v.add(new FieldContainer(11, 15, Field.ARGUMENT, 4)); in getMessageVector1()
99 v.add(new FieldContainer(19, 20, DateFormat.Field.HOUR1)); in getMessageVector1()
[all …]
/libcore/ojluni/src/main/java/java/io/
DDataOutputStream.java138 public final void writeBoolean(boolean v) throws IOException { in writeBoolean() argument
139 out.write(v ? 1 : 0); in writeBoolean()
152 public final void writeByte(int v) throws IOException { in writeByte() argument
153 out.write(v); in writeByte()
166 public final void writeShort(int v) throws IOException { in writeShort() argument
167 out.write((v >>> 8) & 0xFF); in writeShort()
168 out.write((v >>> 0) & 0xFF); in writeShort()
181 public final void writeChar(int v) throws IOException { in writeChar() argument
182 out.write((v >>> 8) & 0xFF); in writeChar()
183 out.write((v >>> 0) & 0xFF); in writeChar()
[all …]
DDataOutput.java114 void writeBoolean(boolean v) throws IOException; in writeBoolean() argument
131 void writeByte(int v) throws IOException; in writeByte() argument
151 void writeShort(int v) throws IOException; in writeShort() argument
172 void writeChar(int v) throws IOException; in writeChar() argument
193 void writeInt(int v) throws IOException; in writeInt() argument
219 void writeLong(long v) throws IOException; in writeLong() argument
238 void writeFloat(float v) throws IOException; in writeFloat() argument
257 void writeDouble(double v) throws IOException; in writeDouble() argument
DRandomAccessFile.java1066 public final void writeBoolean(boolean v) throws IOException { in writeBoolean() argument
1067 write(v ? 1 : 0); in writeBoolean()
1078 public final void writeByte(int v) throws IOException { in writeByte() argument
1079 write(v); in writeByte()
1090 public final void writeShort(int v) throws IOException { in writeShort() argument
1091 write((v >>> 8) & 0xFF); in writeShort()
1092 write((v >>> 0) & 0xFF); in writeShort()
1104 public final void writeChar(int v) throws IOException { in writeChar() argument
1105 write((v >>> 8) & 0xFF); in writeChar()
1106 write((v >>> 0) & 0xFF); in writeChar()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DMapOfTest.java259 private<K,V> V v(int index, Map.Entry<K, V>... entries) { in v() method
267 case 1: return Map.of(k(0, e), v(0, e)); in create()
268 case 2: return Map.of(k(0, e), v(0, e), k(1, e), v(1, e)); in create()
269 case 3: return Map.of(k(0, e), v(0, e), k(1, e), v(1, e), k(2, e), v(2, e)); in create()
270 … case 4: return Map.of(k(0, e), v(0, e), k(1, e), v(1, e), k(2, e), v(2, e), k(3, e), v(3, e)); in create()
271 …case 5: return Map.of(k(0, e), v(0, e), k(1, e), v(1, e), k(2, e), v(2, e), k(3, e), v(3, e), k(4,… in create()
272 …case 6: return Map.of(k(0, e), v(0, e), k(1, e), v(1, e), k(2, e), v(2, e), k(3, e), v(3, e), k(4,… in create()
273 …eturn Map.of(k(0, e), v(0, e), k(1, e), v(1, e), k(2, e), v(2, e), k(3, e), v(3, e), k(4, e), v(4,… in create()
274 ….of(k(0, e), v(0, e), k(1, e), v(1, e), k(2, e), v(2, e), k(3, e), v(3, e), k(4, e), v(4, e), k(5,… in create()
275 …e), v(0, e), k(1, e), v(1, e), k(2, e), v(2, e), k(3, e), v(3, e), k(4, e), v(4, e), k(5, e), v(5,… in create()
[all …]
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DAdjacencyList.java136 for (Vertex v : l) { in buildList()
137 if (v.getIndex() != -1) { in buildList()
140 if (theList.get(v.getIndex()).size() != 0) in buildList()
143 if (v.getThrowable() == null) in buildList()
148 mStepList.add(new BuildStep(v, BuildStep.POSSIBLE)); in buildList()
171 for (Vertex v : l) { in buildList()
172 if (v.getThrowable() == null) in buildList()
173 possibles.add(v); in buildList()
202 for (Vertex v : l) { in buildList()
208 if (v.getIndex() != -1) { in buildList()
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DUnsafe.java458 int v; in getAndAddInt() local
460 v = getIntVolatile(o, offset); in getAndAddInt()
461 } while (!compareAndSwapInt(o, offset, v, v + delta)); in getAndAddInt()
462 return v; in getAndAddInt()
478 long v; in getAndAddLong() local
480 v = getLongVolatile(o, offset); in getAndAddLong()
481 } while (!compareAndSwapLong(o, offset, v, v + delta)); in getAndAddLong()
482 return v; in getAndAddLong()
498 int v; in getAndSetInt() local
500 v = getIntVolatile(o, offset); in getAndSetInt()
[all …]
DFDBigInteger.java216 int v; in FDBigInteger() local
219 v = (int) digits[i++] - (int) '0'; in FDBigInteger()
221 v = 10 * v + (int) digits[i++] - (int) '0'; in FDBigInteger()
223 multAddMe(100000, v); // ... where 100000 is 10^5. in FDBigInteger()
226 v = 0; in FDBigInteger()
228 v = 10 * v + (int) digits[i++] - (int) '0'; in FDBigInteger()
232 multAddMe(factor, v); in FDBigInteger()
422 int v = (prev << bitcount); in leftShift() local
424 v |= (prev >>> anticount); in leftShift()
425 result[idx] = v; in leftShift()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/
DExchanger.java366 Object v = q.item; // release in arenaExchange() local
371 return v; in arenaExchange()
379 Object v = p.match; in arenaExchange() local
380 if (v != null) { in arenaExchange()
384 return v; in arenaExchange()
461 Object v = q.item; in slotExchange() local
466 return v; in slotExchange()
487 Object v; in slotExchange() local
488 while ((v = p.match) == null) { in slotExchange()
508 v = timed && ns <= 0L && !t.isInterrupted() ? TIMED_OUT : null; in slotExchange()
[all …]
DConcurrentSkipListMap.java515 Object v = value; in getValidValue() local
516 if (v == this || v == BASE_HEADER) in getValidValue()
518 @SuppressWarnings("unchecked") V vv = (V)v; in getValidValue()
528 Object v = value; in createSnapshot() local
529 if (v == null || v == this || v == BASE_HEADER) in createSnapshot()
531 @SuppressWarnings("unchecked") V vv = (V)v; in createSnapshot()
741 Object v; int c; in findNode() local
747 if ((v = n.value) == null) { // n is deleted in findNode()
751 if (b.value == null || v == n) // b is deleted in findNode()
777 Object v; int c; in doGet() local
[all …]
DConcurrentMap.java89 V v; in getOrDefault() local
90 return ((v = get(key)) != null) ? v : defaultValue; in getOrDefault()
116 V v; in forEach() local
119 v = entry.getValue(); in forEach()
124 action.accept(k, v); in forEach()
289 forEach((k,v) -> { in replaceAll() argument
290 while (!replace(k, v, function.apply(k, v))) { in replaceAll()
292 if ( (v = get(k)) == null) { in replaceAll()
/libcore/ojluni/src/main/native/
DDouble.c41 Double_longBitsToDouble(JNIEnv *env, jclass unused, jlong v) in Double_longBitsToDouble() argument
47 jlong_to_jdouble_bits(&v); in Double_longBitsToDouble()
48 u.l = v; in Double_longBitsToDouble()
56 Double_doubleToRawLongBits(JNIEnv *env, jclass unused, jdouble v) in Double_doubleToRawLongBits() argument
62 jdouble_to_jlong_bits(&v); in Double_doubleToRawLongBits()
63 u.d = (double)v; in Double_doubleToRawLongBits()
DFloat.c39 Float_intBitsToFloat(JNIEnv *env, jclass unused, jint v) in Float_intBitsToFloat() argument
45 u.i = (long)v; in Float_intBitsToFloat()
53 Float_floatToRawIntBits(JNIEnv *env, jclass unused, jfloat v) in Float_floatToRawIntBits() argument
59 u.f = (float)v; in Float_floatToRawIntBits()
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DStriped64.java232 Cell[] as; Cell a; int n; long v; in longAccumulate() local
256 else if (a.cas(v = a.value, in longAccumulate()
257 (fn == null) ? v + x : fn.applyAsLong(v, x))) in longAccumulate()
288 else if (casBase(v = base, in longAccumulate()
289 (fn == null) ? v + x : fn.applyAsLong(v, x))) in longAccumulate()
294 private static long apply(DoubleBinaryOperator fn, long v, double x) { in apply() argument
295 double d = Double.longBitsToDouble(v); in apply()
316 Cell[] as; Cell a; int n; long v; in doubleAccumulate() local
340 else if (a.cas(v = a.value, apply(fn, v, x))) in doubleAccumulate()
371 else if (casBase(v = base, apply(fn, v, x))) in doubleAccumulate()
/libcore/luni/src/main/java/java/math/
DConversion.java64 long v = highDigit & 0xFFFFFFFFL; in bigInteger2String() local
66 v = -v; in bigInteger2String()
68 return Long.toString(v, radix); in bigInteger2String()
187 long v = highDigit & 0xFFFFFFFFL; in toDecimalScaledString() local
189 long prev = v; in toDecimalScaledString()
190 v /= 10; in toDecimalScaledString()
191 result[--currentChar] = (char) (0x0030 + ((int) (prev - v * 10))); in toDecimalScaledString()
192 } while (v != 0); in toDecimalScaledString()
194 int v = highDigit; in toDecimalScaledString() local
196 int prev = v; in toDecimalScaledString()
[all …]
/libcore/ojluni/src/main/java/sun/net/www/
DMessageHeader.java127 public synchronized String findNextValue(String k, String v) { in findNextValue() argument
134 else if (values[i] == v) in findNextValue()
141 else if (values[i] == v) in findNextValue()
306 public synchronized void add(String k, String v) { in add() argument
309 values[nkeys] = v; in add()
315 public synchronized void prepend(String k, String v) { in prepend() argument
322 values[0] = v; in prepend()
331 public synchronized void set(int i, String k, String v) { in set() argument
336 add(k, v); in set()
339 values[i] = v; in set()
[all …]
/libcore/libart/src/main/java/java/lang/
DStringFactory.java125 char[] v = new char[byteCount]; in newStringFromBytes() local
141 v[s++] = (char) b; in newStringFromBytes()
146 v[s++] = REPLACEMENT_CHAR; in newStringFromBytes()
154 v[s++] = REPLACEMENT_CHAR; in newStringFromBytes()
175 v[s++] = REPLACEMENT_CHAR; in newStringFromBytes()
202 v[s++] = (char) codePoint; in newStringFromBytes()
204 v[s++] = (char) ((codePoint >> 10) + 0xd7c0); in newStringFromBytes()
205 v[s++] = (char) ((codePoint & 0x3ff) + 0xdc00); in newStringFromBytes()
216 v[s++] = REPLACEMENT_CHAR; in newStringFromBytes()
221 value = v; in newStringFromBytes()
[all …]

1234567