Home
last modified time | relevance | path

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

12345678910>>...12

/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 …]
/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.java94 Vector<FieldContainer> v = new Vector<FieldContainer>(); in getMessageVector1() local
95 v.add(new FieldContainer(3, 6, DateFormat.Field.MONTH)); in getMessageVector1()
96 v.add(new FieldContainer(3, 6, Field.ARGUMENT, 4)); in getMessageVector1()
97 v.add(new FieldContainer(6, 7, Field.ARGUMENT, 4)); in getMessageVector1()
98 v.add(new FieldContainer(7, 9, DateFormat.Field.DAY_OF_MONTH)); in getMessageVector1()
99 v.add(new FieldContainer(7, 9, Field.ARGUMENT, 4)); in getMessageVector1()
100 v.add(new FieldContainer(9, 11, Field.ARGUMENT, 4)); in getMessageVector1()
101 v.add(new FieldContainer(11, 15, DateFormat.Field.YEAR)); in getMessageVector1()
102 v.add(new FieldContainer(11, 15, Field.ARGUMENT, 4)); in getMessageVector1()
103 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.java1084 public final void writeBoolean(boolean v) throws IOException { in writeBoolean() argument
1085 write(v ? 1 : 0); in writeBoolean()
1096 public final void writeByte(int v) throws IOException { in writeByte() argument
1097 write(v); in writeByte()
1108 public final void writeShort(int v) throws IOException { in writeShort() argument
1109 write((v >>> 8) & 0xFF); in writeShort()
1110 write((v >>> 0) & 0xFF); in writeShort()
1122 public final void writeChar(int v) throws IOException { in writeChar() argument
1123 write((v >>> 8) & 0xFF); in writeChar()
1124 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/test/java/util/concurrent/tck/
DVectorTest.java71 final Vector v = new Vector(); in testSetSize() local
73 v.setSize(n); in testSetSize()
74 assertEquals(n, v.size()); in testSetSize()
75 assertNull(v.get(0)); in testSetSize()
76 assertNull(v.get(n - 1)); in testSetSize()
79 new Runnable() { public void run() { v.setSize(-1); }}); in testSetSize()
80 assertEquals(n, v.size()); in testSetSize()
81 assertNull(v.get(0)); in testSetSize()
82 assertNull(v.get(n - 1)); in testSetSize()
/libcore/ojluni/src/main/java/sun/misc/
DUnsafe.java704 int v; in getAndAddInt() local
706 v = getIntVolatile(o, offset); in getAndAddInt()
707 } while (!compareAndSwapInt(o, offset, v, v + delta)); in getAndAddInt()
708 return v; in getAndAddInt()
724 long v; in getAndAddLong() local
726 v = getLongVolatile(o, offset); in getAndAddLong()
727 } while (!compareAndSwapLong(o, offset, v, v + delta)); in getAndAddLong()
728 return v; in getAndAddLong()
744 int v; in getAndSetInt() local
746 v = getIntVolatile(o, offset); in getAndSetInt()
[all …]
/libcore/ojluni/src/test/java/text/Format/NumberFormat/
DDFSExponential.java79 for (int v=0; v<val.length; ++v) { in DFSExponenTest()
80 String s = fmt.format(val[v]); in DFSExponenTest()
81 logln(" " + val[v]+" --> "+s); in DFSExponenTest()
82 if(valFormat[p][v].equals(s)){ in DFSExponenTest()
85 errln(" Failed: Should be formatted as "+valFormat[p][v]+ "but got "+s); in DFSExponenTest()
86 … throw new RuntimeException(" Failed: Should be formatted as "+valFormat[p][v]+ "but got "+s); in DFSExponenTest()
/libcore/ojluni/src/main/java/java/util/concurrent/
DExchanger.java365 Object v = q.item; // release in arenaExchange() local
370 return v; in arenaExchange()
378 Object v = p.match; in arenaExchange() local
379 if (v != null) { in arenaExchange()
383 return v; in arenaExchange()
462 Object v = q.item; in slotExchange() local
467 return v; in slotExchange()
488 Object v; in slotExchange() local
489 while ((v = p.match) == null) { in slotExchange()
511 v = timed && ns <= 0L && !t.isInterrupted() ? TIMED_OUT : null; in slotExchange()
[all …]
DConcurrentSkipListMap.java511 Node<K,V> n; K k; V v; int c; in findNode() local
516 else if ((v = n.val) == null) in findNode()
547 Node<K,V> p; K k; V v; int c; in doGet() local
549 (v = p.val) == null) in doGet()
554 result = v; in doGet()
566 V v; int c; in doGet() local
568 if ((v = n.val) == null || k == null || in doGet()
573 result = v; in doGet()
634 Node<K,V> n, p; K k; V v; int c; in doPut() local
642 else if ((v = n.val) == null) { in doPut()
[all …]
DConcurrentMap.java87 V v; in getOrDefault() local
88 return ((v = get(key)) != null) ? v : defaultValue; in getOrDefault()
114 V v; in forEach() local
117 v = entry.getValue(); in forEach()
122 action.accept(k, v); in forEach()
287 forEach((k,v) -> { in replaceAll() argument
288 while (!replace(k, v, function.apply(k, v))) { in replaceAll()
290 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()
/libcore/ojluni/src/test/java/lang/invoke/VarHandles/
DVarHandleTestReflection.java59 VarHandle v = handle(); in methodInvocation() local
64 vhm.invoke(v, new Object[]{}); in methodInvocation()
69 VarHandle v = handle(); in methodHandleInvoke() local
77 Object o = (Object) mh.invoke(v, new Object[]{}); in methodHandleInvoke()
82 VarHandle v = handle(); in methodInvocationFromMethodInfo() local
91 im.invoke(v, new Object[]{}); in methodInvocationFromMethodInfo()
96 VarHandle v = handle(); in reflectAsFromVarHandleInvoker() local
99 accessMode, v.accessModeType(accessMode)); in reflectAsFromVarHandleInvoker()
108 VarHandle v = handle(); in reflectAsFromFindVirtual() local
111 VarHandle.class, accessMode.methodName(), v.accessModeType(accessMode)); in reflectAsFromFindVirtual()
/libcore/ojluni/src/test/java/util/Vector/
DSyncLastIndexOf.java37 static Vector v = new Vector(); field in SyncLastIndexOf
42 synchronized (v) { in run()
47 v.removeElementAt(0); in run()
54 v.addElement(x); in main()
57 v.lastIndexOf(x); in main()
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DStriped64.java238 Cell[] cs; Cell c; int n; long v; in longAccumulate() local
262 else if (c.cas(v = c.value, in longAccumulate()
263 (fn == null) ? v + x : fn.applyAsLong(v, x))) in longAccumulate()
294 else if (casBase(v = base, in longAccumulate()
295 (fn == null) ? v + x : fn.applyAsLong(v, x))) in longAccumulate()
300 private static long apply(DoubleBinaryOperator fn, long v, double x) { in apply() argument
301 double d = Double.longBitsToDouble(v); in apply()
320 Cell[] cs; Cell c; int n; long v; in doubleAccumulate() local
344 else if (c.cas(v = c.value, apply(fn, v, x))) in doubleAccumulate()
375 else if (casBase(v = base, apply(fn, v, x))) in doubleAccumulate()
/libcore/ojluni/src/main/java/jdk/internal/util/
DStaticProperty.java73 String v = props.getProperty(key); in getProperty() local
74 if (v == null) { in getProperty()
77 return v; in getProperty()
82 String v = props.getProperty(key); in getProperty() local
83 return (v == null) ? defaultVal : v; in getProperty()
/libcore/luni/src/main/native/
Dlibcore_io_Memory.cpp37 struct unaligned { T v; } __attribute__ ((packed)); in get_unaligned() member
39 return p->v; in get_unaligned()
42 template <typename T> static inline void put_unaligned(T* address, T v) { in put_unaligned() argument
43 struct unaligned { T v; } __attribute__ ((packed)); in put_unaligned() member
45 p->v = v; in put_unaligned()
53 static inline jint bswap_2x16(jint v) { in bswap_2x16() argument
55 v = bswap_32(v); // v=DCBA in bswap_2x16()
56 v = (v << 16) | ((v >> 16) & 0xffff); // v=BADC in bswap_2x16()
57 return v; in bswap_2x16()
65 jint v = get_unaligned<jint>(src++); in swapShorts() local
[all …]

12345678910>>...12