Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/lang/String/
DIndent.java84 int left = 0; in indexOfNonWhitespace() local
85 while (left < s.length()) { in indexOfNonWhitespace()
86 char ch = s.charAt(left); in indexOfNonWhitespace()
90 left++; in indexOfNonWhitespace()
92 return left; in indexOfNonWhitespace()
/libcore/ojluni/src/main/java/sun/nio/ch/
DIOUtil.java151 long left = bytesWritten; in write() local
153 if (left > 0) { in write()
157 int n = (left > rem) ? rem : (int)left; in write()
159 left -= n; in write()
281 long left = bytesRead; in read() local
284 if (left > 0) { in read()
287 int n = (left > rem) ? rem : (int)left; in read()
295 left -= n; in read()
/libcore/ojluni/src/main/java/java/lang/
DStringLatin1.java566 int left = 0; in indexOfNonWhitespace() local
567 while (left < length) { in indexOfNonWhitespace()
568 char ch = (char)(value[left] & 0xff); in indexOfNonWhitespace()
572 left++; in indexOfNonWhitespace()
574 return left; in indexOfNonWhitespace()
591 int left = indexOfNonWhitespace(value); in strip() local
592 if (left == value.length) { in strip()
596 return ((left > 0) || (right < value.length)) ? newString(value, left, right - left) : null; in strip()
600 int left = indexOfNonWhitespace(value); in stripLeading() local
601 if (left == value.length) { in stripLeading()
[all …]
DStringUTF16.java925 int left = 0;
926 while (left < length) {
930 int codepoint = value.codePointAt(left);
935 left += Character.charCount(codepoint);
937 return left;
970 int left = indexOfNonWhitespace(value);
971 if (left == length) {
975 return ((left > 0) || (right < length)) ? newString(value, left, right - left) : null;
986 int left = indexOfNonWhitespace(value);
987 if (left == length) {
[all …]
/libcore/ojluni/src/main/java/sun/security/util/
DDebug.java287 StringBuffer left = new StringBuffer(); in marshal() local
294 matcher.appendReplacement(left, ""); in marshal()
296 matcher.appendTail(left); in marshal()
297 source = left; in marshal()
311 left = new StringBuffer(); in marshal()
318 matcher.appendReplacement(left, ""); in marshal()
320 matcher.appendTail(left); in marshal()
321 source = left; in marshal()
/libcore/ojluni/src/main/java/java/util/
DComparableTimSort.java252 int left = lo; in binarySort() local
254 assert left <= right; in binarySort() local
260 while (left < right) { in binarySort()
261 int mid = (left + right) >>> 1; in binarySort()
265 left = mid + 1; in binarySort()
267 assert left == right; in binarySort()
276 int n = start - left; // The number of elements to move in binarySort()
279 case 2: a[left + 2] = a[left + 1]; in binarySort()
280 case 1: a[left + 1] = a[left]; in binarySort()
282 default: System.arraycopy(a, left, a, left + 1, n); in binarySort()
[all …]
DTreeMap.java353 p = p.left; in getEntry()
377 p = p.left; in getEntryUsingComparator()
398 if (p.left != null) in getCeilingEntry()
399 p = p.left; in getCeilingEntry()
435 if (p.left != null) { in getFloorEntry()
436 p = p.left; in getFloorEntry()
440 while (parent != null && ch == parent.left) { in getFloorEntry()
464 if (p.left != null) in getHigherEntry()
465 p = p.left; in getHigherEntry()
500 if (p.left != null) { in getLowerEntry()
[all …]
DTimSort.java286 int left = lo; in binarySort() local
288 assert left <= right; in binarySort() local
294 while (left < right) { in binarySort()
295 int mid = (left + right) >>> 1; in binarySort()
299 left = mid + 1; in binarySort()
301 assert left == right; in binarySort()
310 int n = start - left; // The number of elements to move in binarySort()
313 case 2: a[left + 2] = a[left + 1]; in binarySort()
314 case 1: a[left + 1] = a[left]; in binarySort()
316 default: System.arraycopy(a, left, a, left + 1, n); in binarySort()
[all …]
DArrayPrefixHelpers.java110 CumulateTask<T> left, right; field in ArrayPrefixHelpers.CumulateTask
150 CumulateTask<T> lt = t.left, rt = t.right, f; in compute()
155 t = lt = t.left = in compute()
237 if ((lt = par.left) != null && in compute()
267 LongCumulateTask left, right; field in ArrayPrefixHelpers.LongCumulateTask
304 LongCumulateTask lt = t.left, rt = t.right, f; in compute()
309 t = lt = t.left = in compute()
389 if ((lt = par.left) != null && in compute()
419 DoubleCumulateTask left, right; field in ArrayPrefixHelpers.DoubleCumulateTask
456 DoubleCumulateTask lt = t.left, rt = t.right, f; in compute()
[all …]
DHashMap.java1937 TreeNode<K,V> left; field in HashMap.TreeNode
1990 TreeNode<K,V> pl = p.left, pr = p.right, q; in find()
2044 x.left = x.right = null; in treeify()
2067 if ((p = (dir <= 0) ? p.left : p.right) == null) { in treeify()
2070 xp.left = x; in treeify()
2121 if (((ch = p.left) != null && in putTreeVal()
2131 if ((p = (dir <= 0) ? p.left : p.right) == null) { in putTreeVal()
2135 xp.left = x; in putTreeVal()
2179 || (rl = root.left) == null in removeTreeNode()
2180 || rl.left == null))) { in removeTreeNode()
[all …]
/libcore/ojluni/src/main/java/java/util/stream/
DNodes.java121 static <T> Node<T> conc(StreamShape shape, Node<T> left, Node<T> right) { in conc() argument
124 return new ConcNode<>(left, right); in conc()
126 return (Node<T>) new ConcNode.OfInt((Node.OfInt) left, (Node.OfInt) right); in conc()
128 return (Node<T>) new ConcNode.OfLong((Node.OfLong) left, (Node.OfLong) right); in conc()
130 return (Node<T>) new ConcNode.OfDouble((Node.OfDouble) left, (Node.OfDouble) right); in conc()
754 protected final T_NODE left; field in Nodes.AbstractConcNode
758 AbstractConcNode(T_NODE left, T_NODE right) { in AbstractConcNode() argument
759 this.left = left; in AbstractConcNode()
765 this.size = left.count() + right.count(); in AbstractConcNode()
775 if (i == 0) return left; in getChild()
[all …]
DCollectors.java279 (left, right) -> { left.addAll(right); return left; },
298 (left, right) -> { left.addAll(right); return left; },
320 (left, right) -> {
321 if (left.size() < right.size()) {
322 right.addAll(left); return right;
324 left.addAll(right); return left;
349 (left, right) -> {
350 if (left.size() < right.size()) {
351 right.addAll(left); return right;
353 left.addAll(right); return left;
[all …]
DSliceOps.java689 SliceTask<P_IN, P_OUT> left = parent.leftChild;
690 if (left != null) {
691 size += left.completedSize(target);
714 SliceTask<P_IN, P_OUT> left = leftChild;
716 if (left == null || right == null) {
721 long leftSize = left.completedSize(target);
DDoublePipeline.java490 BinaryOperator<R> operator = (left, right) -> {
491 combiner.accept(left, right);
492 return left;
DLongPipeline.java469 BinaryOperator<R> operator = (left, right) -> {
470 combiner.accept(left, right);
471 return left;
DIntPipeline.java487 BinaryOperator<R> operator = (left, right) -> {
488 combiner.accept(left, right);
489 return left;
/libcore/ojluni/src/main/java/java/util/function/
DIntBinaryOperator.java49 int applyAsInt(int left, int right); in applyAsInt() argument
DDoubleBinaryOperator.java48 double applyAsDouble(double left, double right); in applyAsDouble() argument
DLongBinaryOperator.java49 long applyAsLong(long left, long right); in applyAsLong() argument
/libcore/ojluni/src/test/java/math/BigInteger/
DPrimeTest.java129 BigInteger left = p.multiply(fourToTheC); in checkPrime() local
132 Assert.assertFalse(left.compareTo(right) < 0, in checkPrime()
/libcore/ojluni/src/test/java/security/KeyAgreement/
DKeySizeTest.java166 BigInteger left = BigInteger.ONE; in testKeyAttributes() local
169 if ((x.compareTo(left) <= 0) || (x.compareTo(right) >= 0)) { in testKeyAttributes()
174 if ((y.compareTo(left) <= 0) || (y.compareTo(right) >= 0)) { in testKeyAttributes()
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentHashMap.java2720 TreeNode<K,V> left; field in ConcurrentHashMap.TreeNode
2744 TreeNode<K,V> pl = p.left, pr = p.right; in findTreeNode()
2814 x.left = x.right = null; in TreeBin()
2836 if ((p = (dir <= 0) ? p.left : p.right) == null) { in TreeBin()
2839 xp.left = x; in TreeBin()
2950 if (((ch = p.left) != null && in putTreeVal()
2960 if ((p = (dir <= 0) ? p.left : p.right) == null) { in putTreeVal()
2966 xp.left = x; in putTreeVal()
3011 (rl = r.left) == null || rl.left == null) in removeTreeNode()
3016 TreeNode<K,V> pl = p.left; in removeTreeNode()
[all …]
/libcore/ojluni/annotations/hiddenapi/java/util/
DHashMap.java627 java.util.HashMap.TreeNode<K, V> left; field in HashMap.TreeNode
/libcore/ojluni/src/test/java/util/regex/
DTestCases.txt537 // Guillemet left is initial quote punctuation
/libcore/benchmarks/src/benchmarks/regression/
DR.java1848 public static final int left = 0; field in R