Home
last modified time | relevance | path

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

12

/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/test/java/awt/font/NumericShaper/
DShapingTest.java100 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 …]
DMTTest.java112 NumericShaper ns; field in MTTest.Work
115 Work(NumericShaper ns, char[] expectedText) { in Work() argument
116 this.ns = ns; in Work()
127 ns.shape(t, 0, t.length); in run()
/libcore/ojluni/src/main/java/java/util/
DUUID.java190 byte[] ns = new byte[256];
191 Arrays.fill(ns, (byte) -1); in Arrays.fill() argument
192 ns['0'] = 0;
193 ns['1'] = 1;
194 ns['2'] = 2;
195 ns['3'] = 3;
196 ns['4'] = 4;
197 ns['5'] = 5;
198 ns['6'] = 6;
199 ns['7'] = 7;
[all …]
DCollections.java1469 private final NavigableSet<E> ns; field in UnmodifiableNavigableSet
1471 UnmodifiableNavigableSet(NavigableSet<E> s) {super(s); ns = s;} in UnmodifiableNavigableSet()
1473 public E lower(E e) { return ns.lower(e); } in lower()
1474 public E floor(E e) { return ns.floor(e); } in floor()
1475 public E ceiling(E e) { return ns.ceiling(e); } in ceiling()
1476 public E higher(E e) { return ns.higher(e); } in higher()
1480 { return new UnmodifiableNavigableSet<>(ns.descendingSet()); } in descendingSet()
1486 ns.subSet(fromElement, fromInclusive, toElement, toInclusive)); in subSet()
1491 ns.headSet(toElement, inclusive)); in headSet()
1496 ns.tailSet(fromElement, inclusive)); in tailSet()
[all …]
/libcore/luni/src/test/java/libcore/java/awt/font/
DNumericShaperTest.java34 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/
DExchanger.java354 private final Object arenaExchange(Object item, boolean timed, long ns) { in arenaExchange() argument
375 long end = (timed && m == 0) ? System.nanoTime() + ns : 0L; in arenaExchange()
397 (ns = end - System.nanoTime()) > 0L)) { in arenaExchange()
400 if (ns == 0L) in arenaExchange()
403 LockSupport.parkNanos(this, ns); in arenaExchange()
416 if (timed && m == 0 && ns <= 0L) in arenaExchange()
453 private final Object slotExchange(Object item, boolean timed, long ns) { in slotExchange() argument
486 long end = timed ? System.nanoTime() + ns : 0L; in slotExchange()
500 (!timed || (ns = end - System.nanoTime()) > 0L)) { in slotExchange()
503 if (ns == 0L) in slotExchange()
[all …]
DTimeUnit.java407 int ns = excessNanos(timeout, ms); in timedWait() local
408 obj.wait(ms, ns); in timedWait()
427 int ns = excessNanos(timeout, ms); in timedJoin() local
428 thread.join(ms, ns); in timedJoin()
445 int ns = excessNanos(timeout, ms); in sleep() local
446 Thread.sleep(ms, ns); in sleep()
DForkJoinTask.java455 Aux a; long ns; in awaitDone() local
467 if ((ns = deadline - System.nanoTime()) <= 0L) in awaitDone()
469 LockSupport.parkNanos(ns); in awaitDone()
DForkJoinPool.java1554 long ns = w.nsteals & 0xffffffffL;
1559 stealCount += ns; // accumulate steals
2756 long startTime = System.nanoTime(), ns = nanos;
2757 boolean timedOut = (ns < 0L);
2764 ((ForkJoinTask<T>)f).awaitPoolInvoke(this, ns);
2765 if ((ns = nanos - (System.nanoTime() - startTime)) < 0L)
/libcore/luni/src/main/java/libcore/icu/
DDecimalFormatData.java189 NumberingSystem ns = NumberingSystem.getInstance(uLocale); in loadPatternSeparator() local
195 if (ns == null || ns.getRadix() != 10 || ns.isAlgorithmic()) { in loadPatternSeparator()
196 ns = NumberingSystem.LATIN; in loadPatternSeparator()
198 String patternSeparator = ExtendedDecimalFormatSymbols.getInstance(uLocale, ns) in loadPatternSeparator()
/libcore/ojluni/src/test/java/math/BigInteger/
DModInvTime.java46 BigInteger ns = s.negate(); in main() local
47 BigInteger nmi = ns.modInverse(prime); in main()
49 check(ns, prime, nmi); in main()
/libcore/ojluni/src/test/java/util/Collections/
DEmptyNavigableSet.java194 () -> { NavigableSet ns = navigableSet.headSet(null, false); }, in testHeadSet() local
198 () -> { NavigableSet ns = navigableSet.headSet(new Object(), true); }, in testHeadSet() local
201 NavigableSet ns = navigableSet.headSet("1", false); in testHeadSet() local
203 assertEmptyNavigableSet(ns, description + ": Returned value is not empty navigable set."); in testHeadSet()
294 NavigableSet ns = subSet.subSet(first, false, last, false); in testSubSetRanges() local
297 () -> ns.subSet(first, true, last, true), in testSubSetRanges()
312 NavigableSet ns = subSet.headSet(BigInteger.ONE, false); in testheadSetRanges() local
316 () -> ns.headSet(BigInteger.ONE, true), in testheadSetRanges()
331 NavigableSet ns = subSet.tailSet(BigInteger.ONE, false); in testTailSetRanges() local
335 () -> ns.tailSet(BigInteger.ONE, true), in testTailSetRanges()
DEmptyNavigableMap.java274 NavigableMap ns = subMap.subMap(first, false, last, false); in testSubMapRanges() local
277 () -> ns.subMap(first, true, last, true), in testSubMapRanges()
292 NavigableMap ns = subMap.headMap(BigInteger.ONE, false); in testheadMapRanges() local
296 () -> ns.headMap(BigInteger.ONE, true), in testheadMapRanges()
311 NavigableMap ns = subMap.tailMap(BigInteger.ONE, false); in testTailMapRanges() local
315 () -> ns.tailMap(BigInteger.ONE, true), in testTailMapRanges()
/libcore/ojluni/src/main/java/java/io/
DInputStream.java602 long ns = skip(n); in skipNBytes() local
603 if (ns > 0 && ns <= n) { in skipNBytes()
605 n -= ns; in skipNBytes()
606 } else if (ns == 0) { // no bytes skipped in skipNBytes()
DStringReader.java123 public long skip(long ns) throws IOException { in skip() argument
129 long n = Math.min(length - next, ns); in skip()
/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()
410 ns.put(qName, uri); in startElement()
/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/test/java/util/concurrent/tck/
DBlockingQueueTest.java219 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/
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.java130 Number[] ns = exerciseTerminalOps(data, f, s -> s.toArray(Number[]::new)); in testDistinctAndSortedPermutations() local
131 assertEquals(ns.getClass(), Number[].class); in testDistinctAndSortedPermutations()
196 Number[] ns = withData(data).terminal(f, s -> s.toArray(Number[]::new))
199 assertEquals(ns.getClass(), Number[].class);
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DStampedLock.java1329 long ns = tryAcquireRead(); in acquireRead() local
1333 if (ns != 0L) in acquireRead()
1334 return ns; in acquireRead()
/libcore/ojluni/src/test/java/util/Collection/
DMOAT.java1137 NavigableSet<Integer> ns = (NavigableSet<Integer>)c; in testCollection1() local
1138 testNavigableSet(ns); in testCollection1()
1139 testNavigableSet(ns.headSet(6, false)); in testCollection1()
1140 testNavigableSet(ns.headSet(5, true)); in testCollection1()
1141 testNavigableSet(ns.tailSet(0, false)); in testCollection1()
1142 testNavigableSet(ns.tailSet(1, true)); in testCollection1()
1143 testNavigableSet(ns.subSet(0, false, 5, true)); in testCollection1()
1144 testNavigableSet(ns.subSet(1, true, 6, false)); in testCollection1()
/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()

12