Home
last modified time | relevance | path

Searched refs:get (Results 1 – 25 of 574) sorted by relevance

12345678910>>...23

/libcore/luni/src/test/java/libcore/java/nio/
DOldAndroidNIOTest.java138 assertEquals((byte) 0xA7, b.get(7)); in byteBufferTest()
140 b.get(12); in byteBufferTest()
146 b.get(-10); in byteBufferTest()
154 assertEquals((byte) 0xA0, b.get()); in byteBufferTest()
155 assertEquals((byte) 0xA1, b.get()); in byteBufferTest()
156 assertEquals((byte) 0xA2, b.get()); in byteBufferTest()
157 assertEquals((byte) 0xA3, b.get()); in byteBufferTest()
158 assertEquals((byte) 0xA4, b.get()); in byteBufferTest()
159 assertEquals((byte) 0xA5, b.get()); in byteBufferTest()
160 assertEquals((byte) 0xA6, b.get()); in byteBufferTest()
[all …]
/libcore/luni/src/main/java/java/io/
DEmulatedFieldsForLoading.java98 public byte get(String name, byte defaultValue) throws IOException, in get() method in EmulatedFieldsForLoading
100 return emulatedFields.get(name, defaultValue); in get()
121 public char get(String name, char defaultValue) throws IOException, in get() method in EmulatedFieldsForLoading
123 return emulatedFields.get(name, defaultValue); in get()
144 public double get(String name, double defaultValue) throws IOException, in get() method in EmulatedFieldsForLoading
146 return emulatedFields.get(name, defaultValue); in get()
167 public float get(String name, float defaultValue) throws IOException, in get() method in EmulatedFieldsForLoading
169 return emulatedFields.get(name, defaultValue); in get()
190 public int get(String name, int defaultValue) throws IOException, in get() method in EmulatedFieldsForLoading
192 return emulatedFields.get(name, defaultValue); in get()
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DAtomicBooleanTest.java20 assertTrue(new AtomicBoolean(true).get()); in testConstructor()
21 assertFalse(new AtomicBoolean(false).get()); in testConstructor()
29 assertFalse(ai.get()); in testConstructor2()
37 assertTrue(ai.get()); in testGetSet()
39 assertFalse(ai.get()); in testGetSet()
41 assertTrue(ai.get()); in testGetSet()
49 assertTrue(ai.get()); in testGetLazySet()
51 assertFalse(ai.get()); in testGetLazySet()
53 assertTrue(ai.get()); in testGetLazySet()
62 assertFalse(ai.get()); in testCompareAndSet()
[all …]
DAtomicLongTest.java27 assertEquals(1, ai.get()); in testConstructor()
35 assertEquals(0, ai.get()); in testConstructor2()
43 assertEquals(1, ai.get()); in testGetSet()
45 assertEquals(2, ai.get()); in testGetSet()
47 assertEquals(-3, ai.get()); in testGetSet()
55 assertEquals(1, ai.get()); in testGetLazySet()
57 assertEquals(2, ai.get()); in testGetLazySet()
59 assertEquals(-3, ai.get()); in testGetLazySet()
69 assertEquals(-4, ai.get()); in testCompareAndSet()
71 assertEquals(-4, ai.get()); in testCompareAndSet()
[all …]
DAtomicIntegerTest.java25 assertEquals(1, ai.get()); in testConstructor()
33 assertEquals(0, ai.get()); in testConstructor2()
41 assertEquals(1, ai.get()); in testGetSet()
43 assertEquals(2, ai.get()); in testGetSet()
45 assertEquals(-3, ai.get()); in testGetSet()
53 assertEquals(1, ai.get()); in testGetLazySet()
55 assertEquals(2, ai.get()); in testGetLazySet()
57 assertEquals(-3, ai.get()); in testGetLazySet()
67 assertEquals(-4, ai.get()); in testCompareAndSet()
69 assertEquals(-4, ai.get()); in testCompareAndSet()
[all …]
DAtomicLongFieldUpdaterTest.java63 assertEquals(1, a.get(this)); in testGetSet()
65 assertEquals(2, a.get(this)); in testGetSet()
67 assertEquals(-3, a.get(this)); in testGetSet()
77 assertEquals(1, a.get(this)); in testGetLazySet()
79 assertEquals(2, a.get(this)); in testGetLazySet()
81 assertEquals(-3, a.get(this)); in testGetLazySet()
93 assertEquals(-4, a.get(this)); in testCompareAndSet()
95 assertEquals(-4, a.get(this)); in testCompareAndSet()
97 assertEquals(7, a.get(this)); in testCompareAndSet()
119 assertEquals(3, a.get(this)); in testCompareAndSetInMultipleThreads()
[all …]
DAtomicIntegerFieldUpdaterTest.java63 assertEquals(1, a.get(this)); in testGetSet()
65 assertEquals(2, a.get(this)); in testGetSet()
67 assertEquals(-3, a.get(this)); in testGetSet()
77 assertEquals(1, a.get(this)); in testGetLazySet()
79 assertEquals(2, a.get(this)); in testGetLazySet()
81 assertEquals(-3, a.get(this)); in testGetLazySet()
93 assertEquals(-4, a.get(this)); in testCompareAndSet()
95 assertEquals(-4, a.get(this)); in testCompareAndSet()
97 assertEquals(7, a.get(this)); in testCompareAndSet()
119 assertEquals(3, a.get(this)); in testCompareAndSetInMultipleThreads()
[all …]
DAtomicReferenceTest.java21 assertSame(one, ai.get()); in testConstructor()
29 assertNull(ai.get()); in testConstructor2()
37 assertSame(one, ai.get()); in testGetSet()
39 assertSame(two, ai.get()); in testGetSet()
41 assertSame(m3, ai.get()); in testGetSet()
49 assertSame(one, ai.get()); in testGetLazySet()
51 assertSame(two, ai.get()); in testGetLazySet()
53 assertSame(m3, ai.get()); in testGetLazySet()
63 assertSame(m4, ai.get()); in testCompareAndSet()
65 assertSame(m4, ai.get()); in testCompareAndSet()
[all …]
DAtomicLongArrayTest.java23 assertEquals(0, aa.get(i)); in testConstructor()
45 assertEquals(a[i], aa.get(i)); in testConstructor2()
55 aa.get(index); in testIndexing()
92 assertEquals(1, aa.get(i)); in testGetSet()
94 assertEquals(2, aa.get(i)); in testGetSet()
96 assertEquals(-3, aa.get(i)); in testGetSet()
107 assertEquals(1, aa.get(i)); in testGetLazySet()
109 assertEquals(2, aa.get(i)); in testGetLazySet()
111 assertEquals(-3, aa.get(i)); in testGetLazySet()
124 assertEquals(-4, aa.get(i)); in testCompareAndSet()
[all …]
DAtomicIntegerArrayTest.java23 assertEquals(0, aa.get(i)); in testConstructor()
45 assertEquals(a[i], aa.get(i)); in testConstructor2()
55 aa.get(index); in testIndexing()
92 assertEquals(1, aa.get(i)); in testGetSet()
94 assertEquals(2, aa.get(i)); in testGetSet()
96 assertEquals(-3, aa.get(i)); in testGetSet()
107 assertEquals(1, aa.get(i)); in testGetLazySet()
109 assertEquals(2, aa.get(i)); in testGetLazySet()
111 assertEquals(-3, aa.get(i)); in testGetLazySet()
124 assertEquals(-4, aa.get(i)); in testCompareAndSet()
[all …]
DAtomicReferenceFieldUpdaterTest.java74 assertSame(one, a.get(this)); in testGetSet()
76 assertSame(two, a.get(this)); in testGetSet()
78 assertSame(m3, a.get(this)); in testGetSet()
88 assertSame(one, a.get(this)); in testGetLazySet()
90 assertSame(two, a.get(this)); in testGetLazySet()
92 assertSame(m3, a.get(this)); in testGetLazySet()
104 assertSame(m4, a.get(this)); in testCompareAndSet()
106 assertFalse(seven == a.get(this)); in testCompareAndSet()
108 assertSame(seven, a.get(this)); in testCompareAndSet()
130 assertSame(three, a.get(this)); in testCompareAndSetInMultipleThreads()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DBitSetTest.java93 assertTrue("Clear didn't clear bit " + i, !eightbs.get(i)); in test_clear()
109 assertFalse("Failed to clear bit", eightbs.get(7)); in test_clearI()
113 assertTrue("Clear cleared incorrect bits", eightbs.get(i)); in test_clearI()
117 assertFalse("Failed to clear bit", eightbs.get(165)); in test_clearI()
180 assertFalse("Shouldn't have flipped bit " + i, bs.get(i)); in test_clearII()
182 assertTrue("Shouldn't have cleared bit " + i, bs.get(i)); in test_clearII()
186 assertFalse("Failed to clear bit " + i, bs.get(i)); in test_clearII()
191 assertFalse("Shouldn't have flipped bit " + i, bs.get(i)); in test_clearII()
193 assertTrue("Shouldn't have cleared bit " + i, bs.get(i)); in test_clearII()
198 assertFalse("Shouldn't have flipped bit " + i, bs.get(i)); in test_clearII()
[all …]
DGregorianCalendarTest.java50 1972, gc.get(Calendar.YEAR)); in test_ConstructorIII()
52 gc.get(Calendar.MONTH) == Calendar.OCTOBER); in test_ConstructorIII()
54 .get(Calendar.DAY_OF_MONTH)); in test_ConstructorIII()
68 1972, gc.get(Calendar.YEAR)); in test_ConstructorIIIII()
70 gc.get(Calendar.MONTH) == Calendar.OCTOBER); in test_ConstructorIIIII()
72 .get(Calendar.DAY_OF_MONTH)); in test_ConstructorIIIII()
73 assertEquals("Incorrect calendar constructed", 7, gc.get(Calendar.HOUR)); in test_ConstructorIIIII()
75 1, gc.get(Calendar.AM_PM)); in test_ConstructorIIIII()
77 9, gc.get(Calendar.MINUTE)); in test_ConstructorIIIII()
84 5983, gc.get(Calendar.YEAR)); in test_ConstructorIIIII()
[all …]
/libcore/luni/src/main/java/java/util/concurrent/atomic/
DAtomicLong.java73 public final long get() { in get() method in AtomicLong
104 long current = get(); in getAndSet()
146 long current = get(); in getAndIncrement()
160 long current = get(); in getAndDecrement()
175 long current = get(); in getAndAdd()
189 long current = get(); in incrementAndGet()
203 long current = get(); in decrementAndGet()
218 long current = get(); in addAndGet()
230 return Long.toString(get()); in toString()
238 return (int)get(); in intValue()
[all …]
DAtomicInteger.java59 public final int get() { in get() method in AtomicInteger
90 int current = get(); in getAndSet()
132 int current = get(); in getAndIncrement()
146 int current = get(); in getAndDecrement()
161 int current = get(); in getAndAdd()
175 int current = get(); in incrementAndGet()
189 int current = get(); in decrementAndGet()
204 int current = get(); in addAndGet()
216 return Integer.toString(get()); in toString()
223 return get(); in intValue()
[all …]
/libcore/luni/src/test/java/libcore/java/io/
DOldObjectInputStreamGetFieldTest.java128 fields.get("noValue", false); in test_getException()
134 fields.get("noValue", (byte) 0); in test_getException()
140 fields.get("noValue", (char) 0); in test_getException()
146 fields.get("noValue", 0.0); in test_getException()
152 fields.get("noValue", 0.0f); in test_getException()
158 fields.get("noValue", (long) 0); in test_getException()
164 fields.get("noValue", 0); in test_getException()
170 fields.get("noValue", new Object()); in test_getException()
176 fields.get("noValue", (short) 0); in test_getException()
183 fields.get("byteValue", false); in test_getException()
[all …]
/libcore/support/src/test/java/tests/support/
DSupport_ListTest.java43 elem = list.get(counter); in runTest()
52 .get(50).equals(new Integer(1000))); in runTest()
55 list.get(51).equals(new Integer(50))); in runTest()
58 list.get(49).equals(new Integer(49))); in runTest()
61 assertTrue("ListTest - a) set failed--did not set", list.get(50) in runTest()
64 list.get(51).equals(new Integer(50))); in runTest()
66 .get(49).equals(new Integer(49))); in runTest()
70 list.get(50).equals(new Integer(50))); in runTest()
73 list.get(51).equals(new Integer(51))); in runTest()
76 list.get(49).equals(new Integer(49))); in runTest()
[all …]
DSupport_Configuration.java152 value = props.get("DomainAddress"); in loadProperties()
157 value = props.get("WebName"); in loadProperties()
162 value = props.get("TestResourcesDir"); in loadProperties()
166 value = props.get("HomeAddressResponse"); in loadProperties()
171 value = props.get("HomeAddressSoftware"); in loadProperties()
176 value = props.get("SocksServerTestHost"); in loadProperties()
181 value = props.get("SocksServerTestPort"); in loadProperties()
186 value = props.get("UnresolvedIP"); in loadProperties()
191 value = props.get("InetTestAddress"); in loadProperties()
196 value = props.get("InetTestIP"); in loadProperties()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DThreadLocalTest.java42 assertEquals("initial", tl.get()); in test_remove()
44 assertEquals("fixture", tl.get()); in test_remove()
46 assertEquals("initial", tl.get()); in test_remove()
55 assertNull("ThreadLocal's initial value is null", l.get()); in test_get()
68 + " but is " + l1.get(), l1.get() == INITIAL_VALUE); in test_get()
81 THREADVALUE.result = l1.get(); in test_get()
106 thrVar.get(); in test_get()
118 assertTrue("ThreadLocal's initial value is " + OBJ, l.get() == OBJ); in test_setLjava_lang_Object()
131 THREADVALUE.result = l.get(); in test_setLjava_lang_Object()
/libcore/luni/src/main/java/libcore/icu/
DDateIntervalFormat.java108 Long formatter = CACHED_FORMATTERS.get(key); in getFormatter()
198 return c.get(Calendar.HOUR_OF_DAY) == 0 && in isMidnight()
199 c.get(Calendar.MINUTE) == 0 && in isMidnight()
200 c.get(Calendar.SECOND) == 0 && in isMidnight()
201 c.get(Calendar.MILLISECOND) == 0; in isMidnight()
205 return c.get(Calendar.MINUTE) == 0 && c.get(Calendar.SECOND) == 0; in onTheHour()
209 return c1.get(Calendar.YEAR) != c2.get(Calendar.YEAR) || in fallOnDifferentDates()
210 c1.get(Calendar.MONTH) != c2.get(Calendar.MONTH) || in fallOnDifferentDates()
211 c1.get(Calendar.DAY_OF_MONTH) != c2.get(Calendar.DAY_OF_MONTH); in fallOnDifferentDates()
215 return c1.get(Calendar.MONTH) == c2.get(Calendar.MONTH); in fallInSameMonth()
[all …]
/libcore/luni/src/test/java/libcore/icu/
DLocaleDataTest.java25 LocaleData d = LocaleData.get(l); in testAll()
32 LocaleData l = LocaleData.get(Locale.US); in test_en_US()
60 LocaleData l = LocaleData.get(new Locale("de", "DE")); in test_de_DE()
68 LocaleData l = LocaleData.get(new Locale("cs", "CZ")); in test_cs_CZ()
80 LocaleData l = LocaleData.get(new Locale("ko", "KR")); in test_ko_KR()
89 LocaleData l = LocaleData.get(new Locale("ru", "RU")); in test_ru_RU()
103 LocaleData es = LocaleData.get(new Locale("es")); in testDecimalFormatSymbols_es()
107 LocaleData es_419 = LocaleData.get(new Locale("es", "419")); in testDecimalFormatSymbols_es()
111 LocaleData es_US = LocaleData.get(new Locale("es", "US")); in testDecimalFormatSymbols_es()
115 LocaleData es_MX = LocaleData.get(new Locale("es", "MX")); in testDecimalFormatSymbols_es()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DLocaleInternalsTest.java47 assertEquals("foo", extensions.get('x')); in test_parseSerializedExtensions()
51 assertEquals("foo", extensions.get('x')); in test_parseSerializedExtensions()
52 assertEquals("bar", extensions.get('y')); in test_parseSerializedExtensions()
53 assertEquals("baz", extensions.get('z')); in test_parseSerializedExtensions()
57 assertEquals("fooo-baar-baaz", extensions.get('x')); in test_parseSerializedExtensions()
61 assertEquals("fooo-baar-baaz", extensions.get('x')); in test_parseSerializedExtensions()
62 assertEquals("gaaa-caar-caaz", extensions.get('y')); in test_parseSerializedExtensions()
88 assertEquals("koko", keywords.get("ko")); in test_parseUnicodeExtension()
94 assertEquals("koko-kokoko", keywords.get("ko")); in test_parseUnicodeExtension()
101 assertEquals("koko-kokoko", keywords.get("ko")); in test_parseUnicodeExtension()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/
DPhantomReferenceTest.java42 assertNull("get() should return null.", pr.get()); in test_get()
44 assertNull("get() should return null.", pr.get()); in test_get()
46 assertNull("get() should return null.", pr.get()); in test_get()
88 assertNull("get() should return null.", tprs[0].get()); in test_gcInteraction()
89 assertNull("get() should return null.", tprs[1].get()); in test_gcInteraction()
90 assertNull("get() should return null.", tprs[2].get()); in test_gcInteraction()
91 assertNull("get() should return null.", tprs[3].get()); in test_gcInteraction()
100 assertNull("get() should return null.", tprs[0].get()); in test_gcInteraction()
101 assertNull("get() should return null.", tprs[1].get()); in test_gcInteraction()
102 assertNull("get() should return null.", tprs[2].get()); in test_gcInteraction()
[all …]
/libcore/luni/src/test/java/libcore/internal/
DStringPoolTest.java26 String bcd = stringPool.get(new char[] { 'a', 'b', 'c', 'd', 'e' }, 1, 3); in testStringPool()
28 assertSame(bcd, stringPool.get(new char[] { 'a', 'b', 'c', 'd', 'e' }, 1, 3)); in testStringPool()
37 String aString = stringPool.get(a, 0, 2); in testHashCollision()
39 String bString = stringPool.get(b, 0, 2); in testHashCollision()
41 assertSame(bString, stringPool.get(b, 0, 2)); in testHashCollision()
42 assertNotSame(aString, stringPool.get(a, 0, 2)); in testHashCollision()
/libcore/luni/src/main/java/java/nio/
DLongBuffer.java153 thisLong = get(thisPos); in compareTo()
154 otherLong = otherBuffer.get(otherPos); in compareTo()
205 equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++); in equals()
218 public abstract long get(); in get() method in LongBuffer
233 public LongBuffer get(long[] dst) { in get() method in LongBuffer
234 return get(dst, 0, dst.length); in get()
256 public LongBuffer get(long[] dst, int dstOffset, int longCount) { in get() method in LongBuffer
262 dst[i] = get(); in get()
276 public abstract long get(int index); in get() method in LongBuffer
294 l = get(myPosition++); in hashCode()
[all …]

12345678910>>...23