/libcore/luni/src/main/java/java/io/ |
H A D | EmulatedFieldsForLoading.java | 33 // The actual representation, with a more powerful API (set&get) 98 public byte get(String name, byte defaultValue) throws IOException, method in class:EmulatedFieldsForLoading 100 return emulatedFields.get(name, defaultValue); 121 public char get(String name, char defaultValue) throws IOException, method in class:EmulatedFieldsForLoading 123 return emulatedFields.get(name, defaultValue); 144 public double get(String name, double defaultValue) throws IOException, method in class:EmulatedFieldsForLoading 146 return emulatedFields.get(name, defaultValue); 167 public float get(String name, float defaultValue) throws IOException, method in class:EmulatedFieldsForLoading 169 return emulatedFields.get(name, defaultValue); 190 public int get(Strin method in class:EmulatedFieldsForLoading 213 public long get(String name, long defaultValue) throws IOException, method in class:EmulatedFieldsForLoading 236 public Object get(String name, Object defaultValue) throws IOException, method in class:EmulatedFieldsForLoading 259 public short get(String name, short defaultValue) throws IOException, method in class:EmulatedFieldsForLoading 283 public boolean get(String name, boolean defaultValue) throws IOException, method in class:EmulatedFieldsForLoading [all...] |
/libcore/luni/src/test/java/libcore/java/nio/ |
H A D | OldAndroidNIOTest.java | 138 assertEquals((byte) 0xA7, b.get(7)); 140 b.get(12); 146 b.get(-10); 154 assertEquals((byte) 0xA0, b.get()); 155 assertEquals((byte) 0xA1, b.get()); 156 assertEquals((byte) 0xA2, b.get()); 157 assertEquals((byte) 0xA3, b.get()); 158 assertEquals((byte) 0xA4, b.get()); 159 assertEquals((byte) 0xA5, b.get()); 160 assertEquals((byte) 0xA6, b.get()); [all...] |
H A D | OldDirectIntBufferTest.java | 37 assertEquals(4, intBuffer.get(0)); 38 assertEquals(5, intBuffer.get(1)); 39 assertEquals(6, intBuffer.get(2)); 40 assertEquals(7, intBuffer.get(3));
|
H A D | OldDirectShortBufferTest.java | 37 assertEquals(4, shortBuffer.get(0)); 38 assertEquals(5, shortBuffer.get(1)); 39 assertEquals(6, shortBuffer.get(2)); 40 assertEquals(7, shortBuffer.get(3));
|
/libcore/luni/src/main/java/java/util/concurrent/atomic/ |
H A D | AtomicInteger.java | 59 public final int get() { method in class:AtomicInteger 90 int current = get(); 132 int current = get(); 146 int current = get(); 161 int current = get(); 175 int current = get(); 189 int current = get(); 204 int current = get(); 216 return Integer.toString(get()); 221 return get(); [all...] |
H A D | AtomicLong.java | 73 public final long get() { method in class:AtomicLong 104 long current = get(); 146 long current = get(); 160 long current = get(); 175 long current = get(); 189 long current = get(); 203 long current = get(); 218 long current = get(); 230 return Long.toString(get()); 235 return (int)get(); [all...] |
/libcore/luni/src/test/java/libcore/internal/ |
H A D | StringPoolTest.java | 26 String bcd = stringPool.get(new char[] { 'a', 'b', 'c', 'd', 'e' }, 1, 3); 28 assertSame(bcd, stringPool.get(new char[] { 'a', 'b', 'c', 'd', 'e' }, 1, 3)); 37 String aString = stringPool.get(a, 0, 2); 39 String bString = stringPool.get(b, 0, 2); 41 assertSame(bString, stringPool.get(b, 0, 2)); 42 assertNotSame(aString, stringPool.get(a, 0, 2));
|
/libcore/luni/src/test/java/libcore/net/http/ |
H A D | RawHeadersTest.java | 28 assertEquals("text/plain", h.get("Content-Type")); 29 assertEquals("text/plain", h.get("Content-type")); 30 assertEquals("text/plain", h.get("content-type")); 31 assertEquals("text/plain", h.get("CONTENT-TYPE")); 37 assertEquals(Arrays.asList("text/plain"), h.toMultimap().get("Content-Type")); 38 assertEquals(Arrays.asList("text/plain"), h.toMultimap().get("Content-type")); // RI fails this.
|
/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | Future.java | 14 * <tt>get</tt> when the computation has completed, blocking if 41 * displayText(future.get()); // use future 59 * actions following the corresponding {@code Future.get()} in another thread. 65 * @param <V> The result type returned by this Future's <tt>get</tt> method 122 V get() throws InterruptedException, ExecutionException; method in interface:Future 138 V get(long timeout, TimeUnit unit) method in interface:Future
|
/libcore/luni/src/test/java/tests/api/java/util/ |
H A D | BitSetTest.java | 88 assertTrue("Clear didn't clear bit " + i, !eightbs.get(i)); 103 assertFalse("Failed to clear bit", eightbs.get(7)); 107 assertTrue("Clear cleared incorrect bits", eightbs.get(i)); 110 assertFalse("Failed to clear bit", eightbs.get(165)); 167 assertFalse("Shouldn't have flipped bit " + i, bs.get(i)); 177 assertTrue("Shouldn't have cleared bit " + i, bs.get(i)); 180 assertFalse("Failed to clear bit " + i, bs.get(i)); 183 assertTrue("Shouldn't have flipped bit " + i, !bs.get(i)); 191 assertFalse("Failed to clear bit " + i, bs.get(i)); 194 assertFalse("Shouldn't have flipped bit " + i, bs.get( [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldObjectInputStreamGetFieldTest.java | 32 * {@code ObjectInputStream.GetField}. The only way to get an implementation is 128 fields.get("noValue", false); 130 "argument in get(String, boolean)."); 134 fields.get("noValue", (byte) 0); 136 "argument in get(String, byte)."); 140 fields.get("noValue", (char) 0); 142 "argument in get(String, char)."); 146 fields.get("noValue", 0.0); 148 "argument in get(String, double)."); 152 fields.get("noValu [all...] |
/libcore/luni/src/main/java/java/lang/ref/ |
H A D | PhantomReference.java | 54 * the {@link #get()} method always returns {@code null}. 70 public T get() { method in class:PhantomReference
|
/libcore/support/src/test/java/tests/support/ |
H A D | Support_ListTest.java | 43 elem = list.get(counter); 45 assertTrue("ListTest - get failed", elem 52 .get(50).equals(new Integer(1000))); 55 list.get(51).equals(new Integer(50))); 58 list.get(49).equals(new Integer(49))); 61 assertTrue("ListTest - a) set failed--did not set", list.get(50) 64 list.get(51).equals(new Integer(50))); 66 .get(49).equals(new Integer(49))); 70 list.get(50).equals(new Integer(50))); 73 list.get(5 [all...] |
H A D | Support_GetPutFields.java | 108 booleanValue = getField.get("booleanValue", false); 109 byteValue = getField.get("byteValue", (byte) 0); 110 charValue = getField.get("charValue", (char) 0); 111 doubleValue = getField.get("doubleValue", 0.0); 112 floatValue = getField.get("floatValue", 0.0f); 113 longValue = getField.get("longValue", (long) 0); 114 intValue = getField.get("intValue", 0); 116 getField.get("objectValue", (Object) null); 117 shortValue = getField.get("shortValue", (short) 0);
|
H A D | Support_GetPutFieldsDefaulted.java | 119 booleanValue = getField.get("booleanValue", true); 120 byteValue = getField.get("byteValue", (byte) 0x0b); 121 charValue = getField.get("charValue", (char) 'D'); 122 doubleValue = getField.get("doubleValue", 523452.4532); 123 floatValue = getField.get("floatValue", 298.54f); 124 longValue = getField.get("longValue", (long) 1234567890l); 125 intValue = getField.get("intValue", 999999); 127 getField.get("objectValue", 129 shortValue = getField.get("shortValue", (short) 4321); 134 // Do not put anything into putField so that the get method [all...] |
H A D | Support_GetPutFieldsDeprecated.java | 109 booleanValue = getField.get("booleanValue", false); 110 byteValue = getField.get("byteValue", (byte) 0); 111 charValue = getField.get("charValue", (char) 0); 112 doubleValue = getField.get("doubleValue", 0.0); 113 floatValue = getField.get("floatValue", 0.0f); 114 longValue = getField.get("longValue", (long) 0); 115 intValue = getField.get("intValue", 0); 117 getField.get("objectValue", (Object) null); 118 shortValue = getField.get("shortValue", (short) 0);
|
/libcore/luni/src/test/java/tests/api/java/lang/ref/ |
H A D | PhantomReferenceTest.java | 35 * java.lang.ref.PhantomReference#get() 41 assertNull("get() should return null.", pr.get()); 43 assertNull("get() should return null.", pr.get()); 45 assertNull("get() should return null.", pr.get()); 87 assertNull("get() should return null.", tprs[0].get()); 88 assertNull("get() shoul [all...] |
H A D | ReferenceTest.java | 94 assertTrue("Start: Object not cleared.", (sr.get() != null) 95 && (wr.get() != null)); 96 assertNull("Referent is not null.", pr.get()); 100 assertTrue("End: Object cleared.", (sr.get() == null) 101 && (wr.get() == null)); 102 assertNull("Referent is not null.", pr.get()); 104 assertTrue("should always pass", tmpA != sr.get() && tmpB != wr.get()); 116 assertTrue("Not properly enqueued.", rq.poll().get() == obj); 128 assertTrue("Not properly enqueued2.", rq.poll().get() [all...] |
/libcore/luni/src/main/java/java/nio/ |
H A D | DoubleArrayBuffer.java | 53 public final double get() { method in class:DoubleArrayBuffer 61 public final double get(int index) { method in class:DoubleArrayBuffer 67 public final DoubleBuffer get(double[] dst, int dstOffset, int doubleCount) { method in class:DoubleArrayBuffer
|
H A D | DoubleBuffer.java | 154 thisDouble = get(thisPos); 155 otherDouble = otherBuffer.get(otherPos); 215 double a = get(myPosition++); 216 double b = otherBuffer.get(otherPosition++); 231 public abstract double get(); method in class:DoubleBuffer 238 * {@code get(dst, 0, dst.length)}. 246 public DoubleBuffer get(double[] dst) { method in class:DoubleBuffer 247 return get(dst, 0, dst.length); 269 public DoubleBuffer get(double[] dst, int dstOffset, int doubleCount) { method in class:DoubleBuffer 275 dst[i] = get(); 289 public abstract double get(int index); method in class:DoubleBuffer [all...] |
H A D | FloatArrayBuffer.java | 53 public final float get() { method in class:FloatArrayBuffer 61 public final float get(int index) { method in class:FloatArrayBuffer 67 public final FloatBuffer get(float[] dst, int dstOffset, int floatCount) { method in class:FloatArrayBuffer
|
H A D | FloatBuffer.java | 155 thisFloat = get(thisPos); 156 otherFloat = otherBuffer.get(otherPos); 216 float a = get(myPosition++); 217 float b = otherBuffer.get(otherPosition++); 232 public abstract float get(); method in class:FloatBuffer 239 * {@code get(dst, 0, dst.length)}. 247 public FloatBuffer get(float[] dst) { method in class:FloatBuffer 248 return get(dst, 0, dst.length); 270 public FloatBuffer get(float[] dst, int dstOffset, int floatCount) { method in class:FloatBuffer 276 dst[i] = get(); 290 public abstract float get(int index); method in class:FloatBuffer [all...] |
H A D | IntArrayBuffer.java | 53 public final int get() { method in class:IntArrayBuffer 61 public final int get(int index) { method in class:IntArrayBuffer 67 public final IntBuffer get(int[] dst, int dstOffset, int intCount) { method in class:IntArrayBuffer
|
H A D | IntBuffer.java | 151 thisInt = get(thisPos); 152 otherInt = otherBuffer.get(otherPos); 205 equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++); 218 public abstract int get(); method in class:IntBuffer 225 * {@code get(dst, 0, dst.length)}. 233 public IntBuffer get(int[] dst) { method in class:IntBuffer 234 return get(dst, 0, dst.length); 256 public IntBuffer get(int[] dst, int dstOffset, int intCount) { method in class:IntBuffer 262 dst[i] = get(); 276 public abstract int get(int index); method in class:IntBuffer [all...] |
H A D | LongArrayBuffer.java | 53 public final long get() { method in class:LongArrayBuffer 61 public final long get(int index) { method in class:LongArrayBuffer 67 public final LongBuffer get(long[] dst, int dstOffset, int longCount) { method in class:LongArrayBuffer
|