Home
last modified time | relevance | path

Searched refs:ns (Results 1 – 20 of 20) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/
DNamespaceSupportTest.java33 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/main/java/java/util/concurrent/
DExchanger.java359 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 …]
DTimeUnit.java352 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()
DForkJoinPool.java1160 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 …]
DForkJoinTask.java1034 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/
DStampedLock.java1036 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/
DStringReader.java122 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/
DLocaleData.java328 NumberingSystem ns = NumberingSystem.getInstance(uLocale); in initializePatternSeparator() local
334 if (ns == null || ns.getRadix() != 10 || ns.isAlgorithmic()) { in initializePatternSeparator()
335 ns = NumberingSystem.LATIN; in initializePatternSeparator()
338 DecimalFormatSymbolsBridge.getLocalizedPatternSeparator(uLocale, ns); in initializePatternSeparator()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/
DSAXParserFactoryTest.java46 static HashMap<String, String> ns; field in SAXParserFactoryTest
57 ns = new HashMap<String, String>(); in setUp()
382 ns.put(qName, uri); in startElement()
DSAXParserTest.java123 static HashMap<String, String> ns; field in SAXParserTest
193 ns = new HashMap<String, String>(); in setUp()
/libcore/ojluni/src/main/java/java/util/
DCollections.java1286 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/
DURI.java2204 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/
DBlockingQueueTest.java195 final int[] ns = { 0, -1, -42, Integer.MIN_VALUE };
196 for (int n : ns)
203 for (int n : ns)
/libcore/ojluni/src/main/java/sun/net/www/
DMessageHeader.java485 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/
DToArrayOpTest.java127 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/
DTestLocalDateTime.java502 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/
DCollections.java1218 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/
DSerializationStressTest1.java662 } 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/
DTCKLocalTime.java713 public void test_get(int h, int m, int s, int ns) { in test_get() argument
714 LocalTime a = LocalTime.of(h, m, s, ns); in test_get()
718 assertEquals(a.getNano(), ns); in test_get() local
DTCKLocalDateTime.java1104 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);