/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/ |
D | NamespaceSupportTest.java | 33 NamespaceSupport ns; field in NamespaceSupportTest 42 ns = new NamespaceSupport(); in setUp() 43 ns.pushContext(); in setUp() 45 ns.declarePrefix("ak", marketUri); in setUp() 46 ns.declarePrefix("bk", marketUri); in setUp() 47 ns.declarePrefix("", defaultUri); in setUp() 55 ns = new NamespaceSupport(); in testConstructor() 56 Enumeration<String> prefixes = ns.getDeclaredPrefixes(); in testConstructor() 67 ns.popContext(); in testConstructor() 77 ns = new NamespaceSupport(); in testPush_PopContext() [all …]
|
/libcore/ojluni/src/test/java/awt/font/NumericShaper/ |
D | ShapingTest.java | 100 NumericShaper ns = getContextualShaper(ARABIC); in test6943963() local 101 checkResult("ARABIC", ns, given, expected_ARABIC); in test6943963() 103 ns = getContextualShaper(EnumSet.of(Range.ARABIC)); in test6943963() 104 checkResult("Range.ARABIC", ns, given, expected_ARABIC); in test6943963() 106 ns = getContextualShaper(EASTERN_ARABIC); in test6943963() 107 checkResult("EASTERN_ARABIC", ns, given, expected_EASTERN_ARABIC); in test6943963() 109 ns = getContextualShaper(EnumSet.of(Range.EASTERN_ARABIC)); in test6943963() 110 checkResult("Range.EASTERN_ARABIC", ns, given, expected_EASTERN_ARABIC); in test6943963() 112 ns = getContextualShaper(ARABIC | EASTERN_ARABIC); in test6943963() 113 checkResult("ARABIC | EASTERN_ARABIC", ns, given, expected_EASTERN_ARABIC); in test6943963() [all …]
|
D | MTTest.java | 109 NumericShaper ns; field in MTTest.Work 112 Work(NumericShaper ns, char[] expectedText) { in Work() argument 113 this.ns = ns; in Work() 124 ns.shape(t, 0, t.length); in run()
|
/libcore/luni/src/test/java/libcore/java/awt/font/ |
D | NumericShaperTest.java | 34 NumericShaper ns = NumericShaper.getShaper(Range.ARABIC); in testShape() local 39 ns.shape(chars, 0, chars.length); in testShape() 43 ns.shape(chars, 0, chars.length, NumericShaper.EUROPEAN); in testShape() 47 ns.shape(chars, 0, chars.length, Range.EUROPEAN); in testShape() 53 NumericShaper ns = NumericShaper.getContextualShaper(NumericShaper.ARABIC); in testGetRanges() local 54 assertEquals(NumericShaper.ARABIC, ns.getRanges()); in testGetRanges() 59 NumericShaper ns = NumericShaper.getContextualShaper( in testGetRangeSet() local 61 assertEquals(EnumSet.of(Range.ARABIC, Range.DEVANAGARI), ns.getRangeSet()); in testGetRangeSet()
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | Exchanger.java | 359 private final Object arenaExchange(Object item, boolean timed, long ns) { in arenaExchange() argument 376 long end = (timed && m == 0) ? System.nanoTime() + ns : 0L; in arenaExchange() 398 (ns = end - System.nanoTime()) > 0L)) { in arenaExchange() 402 U.park(false, ns); in arenaExchange() 415 if (timed && m == 0 && ns <= 0L) in arenaExchange() 452 private final Object slotExchange(Object item, boolean timed, long ns) { in slotExchange() argument 485 long end = timed ? System.nanoTime() + ns : 0L; in slotExchange() 499 (!timed || (ns = end - System.nanoTime()) > 0L)) { in slotExchange() 503 U.park(false, ns); in slotExchange() 508 v = timed && ns <= 0L && !t.isInterrupted() ? TIMED_OUT : null; in slotExchange() [all …]
|
D | TimeUnit.java | 352 int ns = excessNanos(timeout, ms); in timedWait() local 353 obj.wait(ms, ns); in timedWait() 372 int ns = excessNanos(timeout, ms); in timedJoin() local 373 thread.join(ms, ns); in timedJoin() 390 int ns = excessNanos(timeout, ms); in sleep() local 391 Thread.sleep(ms, ns); in sleep()
|
D | ForkJoinPool.java | 1160 int ns = ++nsteals; in runTask() local 1163 if (ns < 0) // collect on overflow in runTask() 1642 int ns = w.nsteals; in deregisterWorker() local 1649 aux.stealCount += ns; in deregisterWorker() 1711 int ns = sp & ~UNSIGNALLED; in signalWork() local 1715 v.scanState = ns; in signalWork() 1734 int sp = (int)c, ns = sp & ~UNSIGNALLED; in tryRelease() local 1739 v.scanState = ns; in tryRelease() 1763 int ns = sp & ~UNSIGNALLED; in tryReactivate() local 1767 v.scanState = ns; in tryReactivate() [all …]
|
D | ForkJoinTask.java | 1034 long ns, ms; // measure in nanosecs, but wait in millisecs in get() local 1036 (ns = deadline - System.nanoTime()) > 0L) { in get() 1037 if ((ms = TimeUnit.NANOSECONDS.toMillis(ns)) > 0L && in get()
|
/libcore/ojluni/src/main/java/java/util/concurrent/locks/ |
D | StampedLock.java | 1036 long m, s, ns; in acquireWrite() local 1038 if (U.compareAndSwapLong(this, STATE, s, ns = s + WBIT)) in acquireWrite() 1039 return ns; in acquireWrite() 1071 long s, ns; in acquireWrite() local 1074 ns = s + WBIT)) { in acquireWrite() 1079 return ns; in acquireWrite() 1147 for (long m, s, ns;;) { in acquireRead() 1149 U.compareAndSwapLong(this, STATE, s, ns = s + RUNIT) : in acquireRead() 1150 (m < WBIT && (ns = tryIncReaderOverflow(s)) != 0L)) { in acquireRead() 1153 return ns; in acquireRead() [all …]
|
/libcore/ojluni/src/main/java/java/io/ |
D | StringReader.java | 122 public long skip(long ns) throws IOException { in skip() argument 128 long n = Math.min(length - next, ns); in skip()
|
/libcore/luni/src/main/java/libcore/icu/ |
D | LocaleData.java | 329 NumberingSystem ns = NumberingSystem.getInstance(uLocale); in initializePatternSeparator() local 335 if (ns == null || ns.getRadix() != 10 || ns.isAlgorithmic()) { in initializePatternSeparator() 336 ns = NumberingSystem.LATIN; in initializePatternSeparator() 338 String patternSeparator = ExtendedDecimalFormatSymbols.getInstance(uLocale, ns) in initializePatternSeparator()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/ |
D | SAXParserFactoryTest.java | 46 static HashMap<String, String> ns; field in SAXParserFactoryTest 57 ns = new HashMap<String, String>(); in setUp() 382 ns.put(qName, uri); in startElement()
|
D | SAXParserTest.java | 123 static HashMap<String, String> ns; field in SAXParserTest 193 ns = new HashMap<String, String>(); in setUp()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Collections.java | 1286 private final NavigableSet<E> ns; field in UnmodifiableNavigableSet 1288 UnmodifiableNavigableSet(NavigableSet<E> s) {super(s); ns = s;} in UnmodifiableNavigableSet() 1290 public E lower(E e) { return ns.lower(e); } in lower() 1291 public E floor(E e) { return ns.floor(e); } in floor() 1292 public E ceiling(E e) { return ns.ceiling(e); } in ceiling() 1293 public E higher(E e) { return ns.higher(e); } in higher() 1297 { return new UnmodifiableNavigableSet<>(ns.descendingSet()); } in descendingSet() 1303 ns.subSet(fromElement, fromInclusive, toElement, toInclusive)); in subSet() 1308 ns.headSet(toElement, inclusive)); in headSet() 1313 ns.tailSet(fromElement, inclusive)); in tailSet() [all …]
|
/libcore/ojluni/src/main/java/java/net/ |
D | URI.java | 2204 int ns = 0; // Number of segments in needsNormalization() local 2227 ns++; in needsNormalization() 2245 return normal ? -1 : ns; in needsNormalization() 2309 int ns = segs.length; // Number of segments in join() local 2318 for (int i = 0; i < ns; i++) { in join() 2354 int ns = segs.length; in removeDots() local 2357 for (int i = 0; i < ns; i++) { in removeDots() 2378 } while (i < ns); in removeDots() 2379 if ((i > ns) || (dots == 0)) in removeDots() 2421 int ns = segs.length; in maybeAddLeadingDot() local [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | BlockingQueueTest.java | 195 final int[] ns = { 0, -1, -42, Integer.MIN_VALUE }; 196 for (int n : ns) 203 for (int n : ns)
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | BlockingQueueTest.java | 219 final int[] ns = { 0, -1, -42, Integer.MIN_VALUE }; 220 for (int n : ns) 227 for (int n : ns)
|
/libcore/ojluni/src/main/java/sun/net/www/ |
D | MessageHeader.java | 485 char ns[] = new char[s.length * 2]; in mergeHeader() local 486 System.arraycopy(s, 0, ns, 0, len); in mergeHeader() 487 s = ns; in mergeHeader()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | ToArrayOpTest.java | 127 Number[] ns = exerciseTerminalOps(data, f, s -> s.toArray(Number[]::new)); in testDistinctAndSortedPermutations() local 128 assertEquals(ns.getClass(), Number[].class); in testDistinctAndSortedPermutations() 193 Number[] ns = withData(data).terminal(f, s -> s.toArray(Number[]::new)) 196 assertEquals(ns.getClass(), Number[].class);
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestLocalDateTime.java | 502 public void test_getTime(int h, int m, int s, int ns) { in test_getTime() argument 503 LocalTime t = LocalTime.of(h, m, s, ns); in test_getTime()
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Collections.java | 1218 private final java.util.NavigableSet<E> ns; field in Collections.CheckedNavigableSet 1221 ns = null; 2711 private final java.util.NavigableSet<E> ns; field in Collections.SynchronizedNavigableSet 2714 ns = null; 3501 private final java.util.NavigableSet<E> ns; field in Collections.UnmodifiableNavigableSet 3504 ns = null;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | SerializationStressTest1.java | 662 } catch (NotSerializableException ns) { in test_18_11_writeObject() 664 t = ns; in test_18_11_writeObject()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKLocalTime.java | 747 public void test_get(int h, int m, int s, int ns) { in test_get() argument 748 LocalTime a = LocalTime.of(h, m, s, ns); in test_get() 752 assertEquals(a.getNano(), ns); in test_get() local
|
D | TCKLocalDateTime.java | 1104 public void test_get_times(int h, int m, int s, int ns) { 1105 … a = LocalDateTime.of(TEST_2007_07_15_12_30_40_987654321.toLocalDate(), LocalTime.of(h, m, s, ns)); 1109 assertEquals(a.getNano(), ns);
|
/libcore/api/ |
D | current.txt | 18552 field public static final String RELAXNG_NS_URI = "http://relaxng.org/ns/structure/1.0";
|