/libcore/json/src/main/java/org/json/ |
H A D | JSONObject.java | 61 * <li>Use <code>get<i>Type</i>()</code> to retrieve a mandatory value. This 92 * <li>do not throw on {@link #get(String)} 156 * Getting the parser to populate this could get tricky. Instead, just 303 Object current = nameValuePairs.get(checkName(name)); 332 Object current = nameValuePairs.get(checkName(name)); 372 Object value = nameValuePairs.get(name); 389 public Object get(String name) throws JSONException { method in class:JSONObject 390 Object result = nameValuePairs.get(name); 402 return nameValuePairs.get(name); 413 Object object = get(nam [all...] |
/libcore/ojluni/src/main/java/java/lang/ |
H A D | ThreadLocal.java | 35 * {@code get} or {@code set} method) has its own, independently initialized 42 * A thread's id is assigned the first time it invokes {@code ThreadId.get()} 60 * public static int get() { 61 * return threadId.get(); 111 * time a thread accesses the variable with the {@link #get} 116 * subsequent invocations of {@link #remove} followed by {@link #get}. 132 * determined by invoking the {@code get} method on the {@code Supplier}. 159 public T get() { method in class:ThreadLocal 211 * {@linkplain #get read} by the current thread, its value will be 284 return supplier.get(); [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | VectorTest.java | 137 .contains(((List) l).get(counter))); 153 Object prev = tVector.get(45); 155 assertTrue("Failed to add Object", tVector.get(45) == o); 156 assertTrue("Failed to fix-up existing indices", tVector.get(46) == prev); 159 prev = tVector.get(50); 161 assertNull("Failed to add null", tVector.get(50)); 163 tVector.get(51) == prev); 209 tVector.get(i) == ((List) l).get(i - 50)); 227 tVector.get(5 [all...] |
H A D | EnumMapTest.java | 107 enumColorMap.get(Color.Green)); 121 enumSizeMap.get(Size.Big)); 133 enumSizeMap.get(Size.Small)); 162 assertEquals("Constructor fails", 2, enumMap.get(Color.Green)); 163 assertSame("Constructor fails", double1, enumMap.get(Color.Blue)); 164 assertNull("Constructor fails", enumMap.get(Color.Red)); 166 assertEquals("Wrong value", 1, enumMap.get(Color.Red)); 212 assertEquals("Constructor fails", 2, enumMap.get(Color.Green)); 213 assertNull("Constructor fails", enumMap.get(Color.Red)); 215 assertEquals("Wrong value", 1, enumMap.get(Colo [all...] |
H A D | CollectionsTest.java | 178 Object firstNormalValue = normalCountingMap.get(new Integer(0)); 179 Object lastNormalValue = normalCountingMap.get(new Integer( 182 .get(new Integer(mapSize)); 183 Object lastOffsetValue = offsetCountingMap.get(new Integer( 273 .get(i), ll.get(Collections.binarySearch(ll, ll 274 .get(i)))); 296 myReversedLinkedList.get(i), myReversedLinkedList 297 .get(Collections.binarySearch(myReversedLinkedList, 298 myReversedLinkedList.get( [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/ |
H A D | AbstractPreferencesTest.java | 206 assertEquals("testClearValue", pref.get("testClearKey", null)); 207 assertEquals("testClearValue1", pref.get("testClearKey1", null)); 209 assertNull(pref.get("testClearKey", null)); 210 assertNull(pref.get("testClearKey1", null)); 214 assertNull(pref.get("", null)); 215 assertEquals("default", pref.get("key", "default")); 216 assertNull(pref.get("key", null)); 218 assertNull(pref.get("testGetKey", null)); 219 assertEquals("value", pref.get("testGetkey", null)); 222 pref.get(nul [all...] |
/libcore/ojluni/src/main/java/sun/security/x509/ |
H A D | X509CertImpl.java | 581 algId = AlgorithmId.get(sigEngine.getAlgorithm()); 640 interval = (CertificateValidity)info.get(CertificateValidity.NAME); 659 public Object get(String name) method in class:X509CertImpl 677 return info.get(attr.getSuffix()); 700 + "recognized or get() not allowed for the same: " + id); 843 PublicKey key = (PublicKey)info.get(CertificateX509Key.NAME 860 int vers = ((Integer)info.get(CertificateVersion.NAME 889 SerialNumber ser = (SerialNumber)info.get( 908 Principal subject = (Principal)info.get(X509CertInfo.SUBJECT + DOT + 926 X500Principal subject = (X500Principal)info.get( [all...] |
H A D | CertificateExtensions.java | 50 * get, set, delete methods of Certificate, x509 type. 215 public Extension get(String name) throws IOException { method in class:CertificateExtensions 216 Extension obj = map.get(name); 223 // Similar to get(String), but throw no exception, might return null. 226 return map.get(name); 235 Object obj = map.get(name); 244 if (map.get(name).getExtensionId().equals((Object)oid)) { 322 thisExt = map.get(key); 367 name = (String)(field.get(null)) + " ";
|
H A D | GeneralSubtrees.java | 86 public GeneralSubtree get(int index) { method in class:GeneralSubtrees 87 return trees.get(index); 141 get(i).encode(seq); 175 return getGeneralNameInterface(get(ndx)); 361 GeneralSubtree otherEntryGS = other.get(j); 440 GeneralSubtree otherEntryGS = other.get(i); 481 add(other.get(i));
|
H A D | NameConstraintsExtension.java | 67 * get, set, delete methods of Certificate, x509 type. 94 GeneralSubtree subtree = excluded.get(i); 104 GeneralSubtree subtree = permitted.get(i); 268 public GeneralSubtrees get(String name) throws IOException { method in class:NameConstraintsExtension 349 GeneralSubtrees newExcluded = newConstraints.get(EXCLUDED_SUBTREES); 366 GeneralSubtrees newPermitted = newConstraints.get(PERMITTED_SUBTREES); 453 altNames = altNameExt.get( 471 GeneralNameInterface altGNI = altNames.get(i).getName(); 499 GeneralSubtree gs = excluded.get(i); 529 GeneralSubtree gs = permitted.get( [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/ |
H A D | ReferenceQueueTest.java | 76 assertTrue("Remove failed.", ((Boolean) rq.poll().get()) 83 assertEquals("Remove failed.", obj, (rq.poll().get())); 89 assertNull("Remove failed.", rq.poll().get()); 115 assertTrue("Remove failed.", ((Boolean) rq.remove().get()) 183 assertNull(result.get()); 185 assertEquals(obj, result.get()); 187 assertTrue((Boolean)result.get());
|
/libcore/libart/src/main/java/java/lang/ |
H A D | Daemons.java | 217 int localProgressCounter = progressCounter.get(); 225 finalizingObject = finalizingReference.get(); 233 finalizingObject = finalizingReference.get(); 247 Object object = reference.get(); 362 long startCount = FinalizerDaemon.INSTANCE.progressCounter.get(); 368 if (getNeedToWork() && FinalizerDaemon.INSTANCE.progressCounter.get() == startCount) { 381 // are guaranteed to get the correct finalizing value below, unless doFinalize() 382 // just finished as we were timing out, in which case we may get null or a later 389 && FinalizerDaemon.INSTANCE.progressCounter.get() == startCount) { 404 // Send SIGQUIT to get nativ [all...] |
/libcore/luni/src/main/native/ |
H A D | java_util_regex_Matcher.cpp | 79 if (inputChars.get() == nullptr) { 80 // There will be an exception pending if we get here. 87 if (mUChars.get() == nullptr) { 93 memcpy(mUChars.get(), inputChars.get(), inputChars.size() * sizeof(jchar)); 97 mUText = utext_openUChars(nullptr, mUChars.get(), inputChars.size(), &mStatus); 118 return mMatcher.get(); 127 if (offsets.get() == NULL) {
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
H A D | AsynchronousSocketChannelTest.java | 67 connectFuture.get(1000, TimeUnit.MILLISECONDS); 195 readFuture.get(1000, TimeUnit.MILLISECONDS); 204 longCompletionHandler.get(1000); 212 intCompletionHandler.get(1000); 220 intCompletionHandler.get(100); 226 writeFuture.get(1000, TimeUnit.MILLISECONDS); 235 longCompletionHandler.get(1000); 242 intCompletionHandler.get(1000); 249 intCompletionHandler.get(1000); 276 connectFuture.get(100 [all...] |
/libcore/luni/src/test/java/libcore/xml/ |
H A D | SimpleParserTest.java | 165 assertEquals("eins", attributes1.get("one")); 166 assertEquals("zwei", attributes1.get("two")); 167 assertEquals("drei", attributes1.get("three")); 169 assertEquals("http://www.foobar.org", namespaces1.get("stuff")); 193 assertEquals("eins", attributes2.get("one")); 194 assertEquals("zwei", attributes2.get("two")); 195 assertEquals("drei", attributes2.get("three"));
|
/libcore/ojluni/src/main/java/java/text/ |
H A D | MergeCollation.java | 94 PatternEntry entry = patterns.get(i); 103 tmp = extList.get(j); 114 tmp = extList.get(j); 124 PatternEntry entry = patterns.get(i); 152 PatternEntry entry = patterns.get(i); 201 return patterns.get(index); 329 PatternEntry e = patterns.get(i);
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
H A D | AbstractExecutorService.java | 199 return f.get(); 245 Future<T> f = futures.get(i); 247 try { f.get(); } 279 execute((Runnable)futures.get(i)); 283 Future<T> f = futures.get(j); 285 try { f.get(deadline - System.nanoTime(), NANOSECONDS); } 310 futures.get(j).cancel(true);
|
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/ |
H A D | AtomicReferenceFieldUpdater.java | 175 * @param obj An object whose field to get 178 public abstract V get(T obj); method in class:AtomicReferenceFieldUpdater 184 * @param obj An object whose field to get and set 191 prev = get(obj); 202 * @param obj An object whose field to get and set 210 prev = get(obj); 222 * @param obj An object whose field to get and set 230 prev = get(obj); 245 * @param obj An object whose field to get and set 255 prev = get(ob 435 public final V get(T obj) { method in class:AtomicReferenceFieldUpdater.AtomicReferenceFieldUpdaterImpl [all...] |
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
H A D | SequentialOpTest.java | 75 Stream<Integer> stream = config.apply(supp.get()); 76 assertEquals(0, counter.get()); 79 assertEquals(0, counter.get()); 83 assertTrue(data.size() == 0 || counter.get() > 0); 86 stream = config.apply(supp.get()); 88 assertEquals(0, counter.get()); 92 assertTrue(data.size() == 0 || counter.get() > 0);
|
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | URLConnectionBenchmark.java | 64 get(); // ensure the server has started its threads, etc. 74 totalBytesRead += get(); 79 private int get() throws IOException { method in class:URLConnectionBenchmark
|
/libcore/luni/src/test/java/libcore/libcore/util/ |
H A D | CollectionUtilsTest.java | 43 refs.get(1).clear(); // b 64 refs.get(0).clear(); // c 65 refs.get(1).clear(); // d
|
/libcore/ojluni/src/main/java/java/lang/reflect/ |
H A D | Proxy.java | 400 * To get a constructor and new instance of a proxy class, it performs 438 return proxyClassCache.get(loader, interfaces); 473 (intf = get()) != null && 474 intf == ((Key1) obj).get(); 502 (intf1 = get()) != null && 503 intf1 == ((Key2) obj).get() && 504 (intf2 = ref2.get()) != null && 505 intf2 == ((Key2) obj).ref2.get(); 545 Class<?> intf = refs1[i].get(); 546 if (intf == null || intf != refs2[i].get()) { [all...] |
/libcore/ojluni/src/main/java/java/security/ |
H A D | UnresolvedPermissionCollection.java | 83 v = perms.get(up.getName()); 95 * get any unresolved permissions of the same type as p, 100 return perms.get(p.getClass().getName()); 205 gfields.get("permissions", null);
|
/libcore/ojluni/src/main/java/java/time/ |
H A D | DayOfWeek.java | 192 return of(temporal.get(DAY_OF_WEEK)); 236 * {@link #get(TemporalField) get} methods will throw an exception. 305 * @param field the field to get, not null 314 public int get(TemporalField field) { method in class:DayOfWeek 318 return TemporalAccessor.super.get(field); 337 * @param field the field to get, not null
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | Optional.java | 36 * {@code get()} will return the value. 129 public T get() { method in class:Optional 258 * @return the value if present otherwise the result of {@code other.get()} 263 return value != null ? value : other.get(); 286 throw exceptionSupplier.get();
|