Home
last modified time | relevance | path

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

123456

/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/util/
DVectorTest.java63 Vector v = new Vector(); in test_Constructor() local
64 assertEquals("Vector creation failed", 0, v.size()); in test_Constructor()
65 assertEquals("Wrong capacity", 10, v.capacity()); in test_Constructor()
74 Vector v = new Vector(100); in test_ConstructorI() local
75 assertEquals("Vector creation failed", 0, v.size()); in test_ConstructorI()
76 assertEquals("Wrong capacity", 100, v.capacity()); in test_ConstructorI()
92 Vector v = new Vector(2, 10); in test_ConstructorII() local
93 v.addElement(new Object()); in test_ConstructorII()
94 v.addElement(new Object()); in test_ConstructorII()
95 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/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.java988 public final void writeBoolean(boolean v) throws IOException { in writeBoolean() argument
989 write(v ? 1 : 0); in writeBoolean()
1000 public final void writeByte(int v) throws IOException { in writeByte() argument
1001 write(v); in writeByte()
1012 public final void writeShort(int v) throws IOException { in writeShort() argument
1013 write((v >>> 8) & 0xFF); in writeShort()
1014 write((v >>> 0) & 0xFF); in writeShort()
1026 public final void writeChar(int v) throws IOException { in writeChar() argument
1027 write((v >>> 8) & 0xFF); in writeChar()
1028 write((v >>> 0) & 0xFF); in writeChar()
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DUnsafe.java414 int v; in getAndAddInt() local
416 v = getIntVolatile(o, offset); in getAndAddInt()
417 } while (!compareAndSwapInt(o, offset, v, v + delta)); in getAndAddInt()
418 return v; in getAndAddInt()
434 long v; in getAndAddLong() local
436 v = getLongVolatile(o, offset); in getAndAddLong()
437 } while (!compareAndSwapLong(o, offset, v, v + delta)); in getAndAddLong()
438 return v; in getAndAddLong()
454 int v; in getAndSetInt() local
456 v = getIntVolatile(o, offset); in getAndSetInt()
[all …]
DFDBigInt.java37 public FDBigInt( int v ){ in FDBigInt() argument
40 data[0] = v; in FDBigInt()
43 public FDBigInt( long v ){ in FDBigInt() argument
45 data[0] = (int)v; in FDBigInt()
46 data[1] = (int)(v>>>32); in FDBigInt()
69 int v; in FDBigInt() local
72 v = (int)digit[i++]-(int)'0'; in FDBigInt()
74 v = 10*v + (int)digit[i++]-(int)'0'; in FDBigInt()
76 multaddMe( 100000, v); // ... where 100000 is 10^5. in FDBigInt()
79 v = 0; in FDBigInt()
[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/net/www/http/
DKeepAliveCache.java119 ClientVector v = super.get(key); in put() local
121 if (v == null) { in put()
123 v = new ClientVector(keepAliveTimeout > 0? in put()
125 v.put(http); in put()
126 super.put(key, v); in put()
128 v.put(http); in put()
135 ClientVector v = super.get(key); in remove() local
136 if (v != null) { in remove()
137 v.remove(h); in remove()
138 if (v.empty()) { in remove()
[all …]
/libcore/ojluni/src/main/java/sun/net/www/protocol/http/
DAuthenticationHeader.java174 SchemeMapValue v = null; in parse() local
175 if (authPref == null || (v=(SchemeMapValue)schemes.get (authPref)) == null) { in parse()
177 if(v == null && !dontUseNegotiate) { in parse()
183 v = tmp; in parse()
187 if(v == null && !dontUseNegotiate) { in parse()
203 v = tmp; in parse()
207 if(v == null) { in parse()
208 if ((v=(SchemeMapValue)schemes.get ("digest")) == null) { in parse()
209 if (((v=(SchemeMapValue)schemes.get("ntlm"))==null)) { in parse()
210 v = (SchemeMapValue)schemes.get ("basic"); in parse()
[all …]
/libcore/luni/src/main/java/java/util/concurrent/
DExchanger.java336 Object v = q.item; // release in arenaExchange() local
341 return v; in arenaExchange()
349 Object v = p.match; in arenaExchange() local
350 if (v != null) { in arenaExchange()
354 return v; in arenaExchange()
431 Object v = q.item; in slotExchange() local
436 return v; in slotExchange()
457 Object v; in slotExchange() local
458 while ((v = p.match) == null) { in slotExchange()
478 v = timed && ns <= 0L && !t.isInterrupted() ? TIMED_OUT : null; in slotExchange()
[all …]
DConcurrentMap.java60 V v; in getOrDefault() local
61 return ((v = get(key)) != null) ? v : defaultValue; in getOrDefault()
87 V v; in forEach() local
90 v = entry.getValue(); in forEach()
95 action.accept(k, v); in forEach()
260 forEach((k,v) -> { in replaceAll() argument
261 while (!replace(k, v, function.apply(k, v))) { in replaceAll()
263 if ( (v = get(k)) == null) { in replaceAll()
DConcurrentSkipListMap.java486 Object v = value; in getValidValue() local
487 if (v == this || v == BASE_HEADER) in getValidValue()
489 @SuppressWarnings("unchecked") V vv = (V)v; in getValidValue()
499 Object v = value; in createSnapshot() local
500 if (v == null || v == this || v == BASE_HEADER) in createSnapshot()
502 @SuppressWarnings("unchecked") V vv = (V)v; in createSnapshot()
712 Object v; int c; in findNode() local
718 if ((v = n.value) == null) { // n is deleted in findNode()
722 if (b.value == null || v == n) // b is deleted in findNode()
748 Object v; int c; in doGet() local
[all …]
/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/
DMap.java589 V v; in getOrDefault() local
590 return (((v = get(key)) != null) || containsKey(key)) in getOrDefault()
591 ? v in getOrDefault()
624 V v; in forEach() local
627 v = entry.getValue(); in forEach()
632 action.accept(k, v); in forEach()
679 V v; in replaceAll() local
682 v = entry.getValue(); in replaceAll()
689 v = function.apply(k, v); in replaceAll()
692 entry.setValue(v); in replaceAll()
[all …]
/libcore/luni/src/main/java/java/util/concurrent/atomic/
DStriped64.java202 Cell[] as; Cell a; int n; long v; in longAccumulate() local
226 else if (a.cas(v = a.value, in longAccumulate()
227 (fn == null) ? v + x : fn.applyAsLong(v, x))) in longAccumulate()
258 else if (casBase(v = base, in longAccumulate()
259 (fn == null) ? v + x : fn.applyAsLong(v, x))) in longAccumulate()
264 private static long apply(DoubleBinaryOperator fn, long v, double x) { in apply() argument
265 double d = Double.longBitsToDouble(v); in apply()
286 Cell[] as; Cell a; int n; long v; in doubleAccumulate() local
310 else if (a.cas(v = a.value, apply(fn, v, x))) in doubleAccumulate()
341 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/luni/src/test/java/libcore/java/util/
DHashtableTest.java79 ht.replaceAll((k, v) -> k + v); in test_replaceAll()
88 public String apply(String k, String v) { in test_replaceAll()
89 ht.put("foo", v); in test_replaceAll()
90 return v; in test_replaceAll()
102 ht.replaceAll((k, v) -> null); in test_replaceAll()
/libcore/libart/src/main/java/java/lang/
DStringFactory.java79 char[] v = new char[byteCount]; in newStringFromBytes() local
91 v[s++] = (char) val; in newStringFromBytes()
108 v[s++] = REPLACEMENT_CHAR; in newStringFromBytes()
117 v[s++] = REPLACEMENT_CHAR; in newStringFromBytes()
142 v[s++] = REPLACEMENT_CHAR; in newStringFromBytes()
148 v[s++] = REPLACEMENT_CHAR; in newStringFromBytes()
154 v[s++] = (char) val; in newStringFromBytes()
161 v[s++] = (char) hi; in newStringFromBytes()
162 v[s++] = (char) lo; in newStringFromBytes()
166 v[s++] = REPLACEMENT_CHAR; in newStringFromBytes()
[all …]

123456