Home
last modified time | relevance | path

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

123

/libcore/luni/src/test/java/libcore/java/text/
DOldAttributedCharacterIteratorTest.java33 AttributedString as = new AttributedString("test"); in test_getRunLimitLSet() local
34 as.addAttribute(AttributedCharacterIterator.Attribute.LANGUAGE, "a", 2, in test_getRunLimitLSet()
36 AttributedCharacterIterator it = as.getIterator(); in test_getRunLimitLSet()
43 as = new AttributedString("test"); in test_getRunLimitLSet()
44 as.addAttribute(AttributedCharacterIterator.Attribute.LANGUAGE, null, in test_getRunLimitLSet()
46 it = as.getIterator(); in test_getRunLimitLSet()
56 AttributedString as = new AttributedString("test"); in test_getAllAttributeKeys() local
57 AttributedCharacterIterator it = as.getIterator(); in test_getAllAttributeKeys()
64 as.addAttribute(AttributedCharacterIterator.Attribute.LANGUAGE, in test_getAllAttributeKeys()
67 it = as.getIterator(); in test_getAllAttributeKeys()
[all …]
DOldAttributedStringTest.java280 AttributedString as = new AttributedString("test"); in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII() local
281 as.addAttribute(AttributedCharacterIterator.Attribute.LANGUAGE, "a", 2, in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII()
283 AttributedCharacterIterator it = as.getIterator(); in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII()
287 as = new AttributedString("test"); in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII()
288 as.addAttribute(AttributedCharacterIterator.Attribute.LANGUAGE, null, in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII()
290 it = as.getIterator(); in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII()
295 as = new AttributedString("test"); in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII()
296 as.addAttribute(AttributedCharacterIterator.Attribute.LANGUAGE, in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII()
304 as = new AttributedString("123", Collections.emptyMap()); in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII()
306 as.addAttribute(null, new TreeSet(), 0, 1); in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DLongAdder.java86 Cell[] as; long b, v; int m; Cell a; in add() local
87 if ((as = cells) != null || !casBase(b = base, b + x)) { in add()
89 if (as == null || (m = as.length - 1) < 0 || in add()
90 (a = as[getProbe() & m]) == null || in add()
120 Cell[] as = cells; in sum() local
122 if (as != null) { in sum()
123 for (Cell a : as) in sum()
138 Cell[] as = cells; in reset() local
140 if (as != null) { in reset()
141 for (Cell a : as) in reset()
[all …]
DDoubleAdder.java90 Cell[] as; long b, v; int m; Cell a; in add() local
91 if ((as = cells) != null || in add()
96 if (as == null || (m = as.length - 1) < 0 || in add()
97 (a = as[getProbe() & m]) == null || in add()
118 Cell[] as = cells; in sum() local
120 if (as != null) { in sum()
121 for (Cell a : as) in sum()
136 Cell[] as = cells; in reset() local
138 if (as != null) { in reset()
139 for (Cell a : as) in reset()
[all …]
DDoubleAccumulator.java103 Cell[] as; long b, v, r; int m; Cell a; in accumulate() local
104 if ((as = cells) != null || in accumulate()
109 if (as == null || (m = as.length - 1) < 0 || in accumulate()
110 (a = as[getProbe() & m]) == null || in accumulate()
130 Cell[] as = cells; in get() local
132 if (as != null) { in get()
133 for (Cell a : as) in get()
150 Cell[] as = cells; in reset() local
152 if (as != null) { in reset()
153 for (Cell a : as) in reset()
[all …]
DStriped64.java232 Cell[] as; Cell a; int n; long v; in longAccumulate() local
233 if ((as = cells) != null && (n = as.length) > 0) { in longAccumulate()
234 if ((a = as[(n - 1) & h]) == null) { in longAccumulate()
259 else if (n >= NCPU || cells != as) in longAccumulate()
265 if (cells == as) // Expand table unless stale in longAccumulate()
266 cells = Arrays.copyOf(as, n << 1); in longAccumulate()
275 else if (cellsBusy == 0 && cells == as && casCellsBusy()) { in longAccumulate()
277 if (cells == as) { in longAccumulate()
316 Cell[] as; Cell a; int n; long v; in doubleAccumulate() local
317 if ((as = cells) != null && (n = as.length) > 0) { in doubleAccumulate()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DAttributedStringTest.java120 AttributedString as = new AttributedString("test"); in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII() local
121 as.addAttribute(AttributedCharacterIterator.Attribute.LANGUAGE, "a", 2, in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII()
123 AttributedCharacterIterator it = as.getIterator(); in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII()
127 as = new AttributedString("test"); in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII()
128 as.addAttribute(AttributedCharacterIterator.Attribute.LANGUAGE, null, in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII()
130 it = as.getIterator(); in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII()
135 as = new AttributedString("test"); in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII()
136 as.addAttribute(AttributedCharacterIterator.Attribute.LANGUAGE, in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII()
144 as = new AttributedString("123", new WeakHashMap()); in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII()
146 as.addAttribute(null, new TreeSet(), 0, 1); in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII()
[all …]
/libcore/ojluni/src/main/java/java/text/
DFormat.java278 AttributedString as = new AttributedString(s); in createAttributedCharacterIterator() local
280 return as.getIterator(); in createAttributedCharacterIterator()
295 AttributedString as = new AttributedString(iterators); in createAttributedCharacterIterator() local
297 return as.getIterator(); in createAttributedCharacterIterator()
313 AttributedString as = new AttributedString(string); in createAttributedCharacterIterator() local
315 as.addAttribute(key, value); in createAttributedCharacterIterator()
316 return as.getIterator(); in createAttributedCharacterIterator()
332 AttributedString as = new AttributedString(iterator); in createAttributedCharacterIterator() local
334 as.addAttribute(key, value); in createAttributedCharacterIterator()
335 return as.getIterator(); in createAttributedCharacterIterator()
DCharacterIteratorFieldDelegate.java65 AttributedString as = attributedStrings. in formatted() local
67 int newIndex = index - as.length(); in formatted()
70 as.addAttribute(attr, value, aStart, Math.min( in formatted()
71 end - start, as.length() - aStart) + in formatted()
/libcore/luni/src/test/java/libcore/java/util/
DOldAbstractSetTest.java54 AbstractSet as = new Mock_AbstractSet();
55 assertNotNull(as.hashCode());
66 AbstractSet as = new AbstractSet(){
92 as.removeAll(null);
100 as.removeAll(c);
106 as = new Mock_AbstractSet();
108 as.removeAll(c);
/libcore/luni/src/main/java/libcore/reflect/
DTypes.java137 String as[] = c.getName().split("\\["); in appendGenericType() local
138 int len = as.length-1; in appendGenericType()
139 if (as[len].length() > 1){ in appendGenericType()
140 out.append(as[len].substring(1, as[len].length() - 1)); in appendGenericType()
142 char ch = as[len].charAt(0); in appendGenericType()
/libcore/support/src/test/java/tests/resources/
Dhyts_PropertiesTest.properties8 ! dshfjklahfjkldashgjl;as
14 b bb as,dn
/libcore/luni/src/test/resources/META-INF/services/
Dlibcore.java.util.ServiceLoaderTestInterface6 libcore.java.util.ServiceLoaderTest$Impl2#as is this
8 libcore.java.util.ServiceLoaderTest$Impl2 # as is leading whitespace
/libcore/tools/testmapping/
DREADME2 tests to run on every change, chosen to run as many as possible in less than
5 The process is as follows.
6 1. Do `source build/envsetup.sh` and `lunch <whatever>` as normal.
8 This can be done with `atest CtsLibcoreTestCases` as normal. Make sure to use
/libcore/ojluni/src/main/resources/sun/util/logging/resources/
Dlogging_sv.properties6 # under the terms of the GNU General Public License version 2 only, as
8 # particular file as subject to the "Classpath" exception as provided
27 # these are the same as the non-localized level name.
Dlogging_fr.properties6 # under the terms of the GNU General Public License version 2 only, as
8 # particular file as subject to the "Classpath" exception as provided
27 # these are the same as the non-localized level name.
Dlogging_zh_CN.properties6 # under the terms of the GNU General Public License version 2 only, as
8 # particular file as subject to the "Classpath" exception as provided
27 # these are the same as the non-localized level name.
Dlogging_zh_TW.properties6 # under the terms of the GNU General Public License version 2 only, as
8 # particular file as subject to the "Classpath" exception as provided
27 # these are the same as the non-localized level name.
Dlogging.properties6 # under the terms of the GNU General Public License version 2 only, as
8 # particular file as subject to the "Classpath" exception as provided
27 # these are the same as the non-localized level name.
Dlogging_ja.properties6 # under the terms of the GNU General Public License version 2 only, as
8 # particular file as subject to the "Classpath" exception as provided
27 # these are the same as the non-localized level name.
Dlogging_ko.properties6 # under the terms of the GNU General Public License version 2 only, as
8 # particular file as subject to the "Classpath" exception as provided
27 # these are the same as the non-localized level name.
Dlogging_es.properties6 # under the terms of the GNU General Public License version 2 only, as
8 # particular file as subject to the "Classpath" exception as provided
27 # these are the same as the non-localized level name.
Dlogging_pt_BR.properties6 # under the terms of the GNU General Public License version 2 only, as
8 # particular file as subject to the "Classpath" exception as provided
27 # these are the same as the non-localized level name.
Dlogging_it.properties6 # under the terms of the GNU General Public License version 2 only, as
8 # particular file as subject to the "Classpath" exception as provided
27 # these are the same as the non-localized level name.
Dlogging_de.properties6 # under the terms of the GNU General Public License version 2 only, as
8 # particular file as subject to the "Classpath" exception as provided
27 # these are the same as the non-localized level name.

123