Home
last modified time | relevance | path

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

123

/libcore/luni/src/main/java/java/lang/
DLong.java429 public static String toBinaryString(long v) { in toBinaryString() argument
430 return IntegralToString.longToBinaryString(v); in toBinaryString()
442 public static String toHexString(long v) { in toHexString() argument
443 return IntegralToString.longToHexString(v); in toHexString()
454 public static String toOctalString(long v) { in toOctalString() argument
455 return IntegralToString.longToOctalString(v); in toOctalString()
495 public static String toString(long v, int radix) { in toString() argument
496 return IntegralToString.longToString(v, radix); in toString()
545 public static long highestOneBit(long v) { in highestOneBit() argument
547 v |= (v >> 1); in highestOneBit()
[all …]
DIntegralToString.java253 public static String longToString(long v, int radix) {
254 int i = (int) v;
255 if (i == v) {
263 return longToString(v);
273 if (v < 0) {
276 v = -v;
284 long q = v / radix;
285 buf[--cursor] = DIGITS[(int) (radix * q - v)];
286 v = q;
287 } while (v != 0);
[all …]
DDouble.java226 long v = doubleToLongBits(value); in hashCode() local
227 return (int) (v ^ (v >>> 32)); in hashCode()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DVectorTest.java54 Vector v = new Vector(); in test_Constructor() local
55 assertEquals("Vector creation failed", 0, v.size()); in test_Constructor()
56 assertEquals("Wrong capacity", 10, v.capacity()); in test_Constructor()
65 Vector v = new Vector(100); in test_ConstructorI() local
66 assertEquals("Vector creation failed", 0, v.size()); in test_ConstructorI()
67 assertEquals("Wrong capacity", 100, v.capacity()); in test_ConstructorI()
83 Vector v = new Vector(2, 10); in test_ConstructorII() local
84 v.addElement(new Object()); in test_ConstructorII()
85 v.addElement(new Object()); in test_ConstructorII()
86 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()
DLinkedHashSetTest.java232 Vector v = new Vector<Float>(); in test_retainAllLjava_util_Collection() local
233 v.add(new Float(3.14)); in test_retainAllLjava_util_Collection()
236 lhs.retainAll(v); in test_retainAllLjava_util_Collection()
238 v = new Vector<Integer>(); in test_retainAllLjava_util_Collection()
239 v.add(new Integer(1)); in test_retainAllLjava_util_Collection()
240 v.add(new Integer(2)); in test_retainAllLjava_util_Collection()
241 v.add(new Integer(3)); in test_retainAllLjava_util_Collection()
242 v.add(new Integer(4)); in test_retainAllLjava_util_Collection()
243 v.add(new Integer(5)); in test_retainAllLjava_util_Collection()
244 v.add(new Integer(6)); in test_retainAllLjava_util_Collection()
[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.java85 Vector<FieldContainer> v = new Vector<FieldContainer>(); in getMessageVector1() local
86 v.add(new FieldContainer(3, 6, DateFormat.Field.MONTH)); in getMessageVector1()
87 v.add(new FieldContainer(3, 6, Field.ARGUMENT, 4)); in getMessageVector1()
88 v.add(new FieldContainer(6, 7, Field.ARGUMENT, 4)); in getMessageVector1()
89 v.add(new FieldContainer(7, 9, DateFormat.Field.DAY_OF_MONTH)); in getMessageVector1()
90 v.add(new FieldContainer(7, 9, Field.ARGUMENT, 4)); in getMessageVector1()
91 v.add(new FieldContainer(9, 11, Field.ARGUMENT, 4)); in getMessageVector1()
92 v.add(new FieldContainer(11, 15, DateFormat.Field.YEAR)); in getMessageVector1()
93 v.add(new FieldContainer(11, 15, Field.ARGUMENT, 4)); in getMessageVector1()
94 v.add(new FieldContainer(19, 20, DateFormat.Field.HOUR1)); in getMessageVector1()
[all …]
/libcore/luni/src/main/java/java/util/concurrent/
DExchanger.java341 Object v = q.item; // release in arenaExchange() local
346 return v; in arenaExchange()
354 Object v = p.match; in arenaExchange() local
355 if (v != null) { in arenaExchange()
359 return v; in arenaExchange()
436 Object v = q.item; in slotExchange() local
441 return v; in slotExchange()
462 Object v; in slotExchange() local
463 while ((v = p.match) == null) { in slotExchange()
483 v = timed && ns <= 0L && !t.isInterrupted() ? TIMED_OUT : null; in slotExchange()
[all …]
DConcurrentSkipListMap.java464 Object v = value; in getValidValue() local
465 if (v == this || v == BASE_HEADER) in getValidValue()
467 return (V)v; in getValidValue()
476 V v = getValidValue(); in createSnapshot() local
477 if (v == null) in createSnapshot()
479 return new AbstractMap.SimpleImmutableEntry<K,V>(key, v); in createSnapshot()
768 Object v = n.value; in findNode() local
769 if (v == null) { // n is deleted in findNode()
773 if (v == n || b.value == null) // b is deleted in findNode()
802 Object v = n.value; in doGet()
[all …]
DConcurrentHashMap.java446 Object k, v, u; Map.Entry<?,?> e; in equals() local
449 (v = e.getValue()) != null && in equals()
451 (v == (u = val) || v.equals(u))); in equals()
564 Node<K,V> c, Node<K,V> v) { in casTabAt() argument
565 return U.compareAndSwapObject(tab, ((long)i << ASHIFT) + ABASE, c, v); in casTabAt()
568 static final <K,V> void setTabAt(Node<K,V>[] tab, int i, Node<K,V> v) { in setTabAt() argument
569 U.putOrderedObject(tab, ((long)i << ASHIFT) + ABASE, v); in setTabAt()
794 V v; in containsValue() local
795 if ((v = p.val) == value || (v != null && value.equals(v))) in containsValue()
1129 V v = p.val; in toString() local
[all …]
/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/main/java/javax/net/ssl/
DHttpsURLConnection.java126 public static void setDefaultHostnameVerifier(HostnameVerifier v) { in setDefaultHostnameVerifier() argument
127 if (v == null) { in setDefaultHostnameVerifier()
130 NoPreloadHolder.defaultHostnameVerifier = v; in setDefaultHostnameVerifier()
263 public void setHostnameVerifier(HostnameVerifier v) { in setHostnameVerifier() argument
264 if (v == null) { in setHostnameVerifier()
267 hostnameVerifier = v; in setHostnameVerifier()
/libcore/jsr166-tests/src/test/java/jsr166/
DCopyOnWriteArraySetTest.java69 Vector v = new Vector(); in testAddAll() local
70 v.add(three); in testAddAll()
71 v.add(four); in testAddAll()
72 v.add(five); in testAddAll()
73 full.addAll(v); in testAddAll()
83 Vector v = new Vector(); in testAddAll2() local
84 v.add(three); in testAddAll2()
85 v.add(four); in testAddAll2()
86 v.add(one); // will not add this element in testAddAll2()
87 full.addAll(v); in testAddAll2()
[all …]
DCopyOnWriteArrayListTest.java83 Vector v = new Vector(); in testAddAll() local
84 v.add(three); in testAddAll()
85 v.add(four); in testAddAll()
86 v.add(five); in testAddAll()
87 full.addAll(v); in testAddAll()
97 Vector v = new Vector(); in testAddAllAbsent() local
98 v.add(three); in testAddAllAbsent()
99 v.add(four); in testAddAllAbsent()
100 v.add(one); // will not add this element in testAddAllAbsent()
101 full.addAllAbsent(v); in testAddAllAbsent()
[all …]
/libcore/luni/src/main/native/
Dlibcore_io_Memory.cpp54 struct unaligned { T v; } __attribute__ ((packed)); in get_unaligned() member
56 return p->v; in get_unaligned()
59 template <typename T> static inline void put_unaligned(T* address, T v) { in put_unaligned() argument
60 struct unaligned { T v; } __attribute__ ((packed)); in put_unaligned() member
62 p->v = v; in put_unaligned()
70 static inline jint bswap_2x16(jint v) { in bswap_2x16() argument
73 __asm__ volatile ("wsbh %0, %0" : "+r" (v)); // v=BADC in bswap_2x16()
75 v = bswap_32(v); // v=DCBA in bswap_2x16()
76 v = (v << 16) | ((v >> 16) & 0xffff); // v=BADC in bswap_2x16()
78 return v; in bswap_2x16()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DIntegerBenchmark.java43 private static int signum1(long v) { in signum1() argument
44 return v < 0 ? -1 : (v == 0 ? 0 : 1); in signum1()
47 private static int signum2(long v) { in signum2() argument
48 return ((int)(v >> 63)) | (int) (-v >>> 63); // Hacker's delight 2-7 in signum2()
DPropertyAccessBenchmark.java102 void setFloat(View v, float f); in setFloat() argument
106 public void setFloat(View v, float f) { in setFloat() argument
107 v.setX(f); in setFloat()
112 public void setFloat(View v, float f) { in setFloat() argument
113 v.x = f; in setFloat()
/libcore/dalvik/src/main/java/dalvik/system/profiler/
DBinaryHprof.java108 for (Tag v : Tag.values()) {
109 BYTE_TO_TAG.put(v.tag, v); in BYTE_TO_TAG.put() argument
/libcore/luni/src/main/java/java/util/prefs/
DPreferenceChangeEvent.java61 public PreferenceChangeEvent(Preferences p, String k, String v) { in PreferenceChangeEvent() argument
65 value = v; in PreferenceChangeEvent()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/
DSoftReferenceTest.java107 Vector<StringBuffer> v = new Vector<StringBuffer>(); in test_get_SoftReference() local
110 v.add(new StringBuffer(10000)); in test_get_SoftReference()
113 v = null; in test_get_SoftReference()
/libcore/luni/src/main/java/java/util/concurrent/atomic/
DAtomicBoolean.java109 int v = newValue ? 1 : 0; in lazySet() local
110 unsafe.putOrderedInt(this, valueOffset, v); in lazySet()

123