Home
last modified time | relevance | path

Searched refs:ai (Results 1 – 14 of 14) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
DAtomicLongTest.java26 AtomicLong ai = new AtomicLong(1); in testConstructor() local
27 assertEquals(1, ai.get()); in testConstructor()
34 AtomicLong ai = new AtomicLong(); in testConstructor2() local
35 assertEquals(0, ai.get()); in testConstructor2()
42 AtomicLong ai = new AtomicLong(1); in testGetSet() local
43 assertEquals(1, ai.get()); in testGetSet()
44 ai.set(2); in testGetSet()
45 assertEquals(2, ai.get()); in testGetSet()
46 ai.set(-3); in testGetSet()
47 assertEquals(-3, ai.get()); in testGetSet()
[all …]
DAtomicIntegerTest.java24 AtomicInteger ai = new AtomicInteger(1); in testConstructor() local
25 assertEquals(1, ai.get()); in testConstructor()
32 AtomicInteger ai = new AtomicInteger(); in testConstructor2() local
33 assertEquals(0, ai.get()); in testConstructor2()
40 AtomicInteger ai = new AtomicInteger(1); in testGetSet() local
41 assertEquals(1, ai.get()); in testGetSet()
42 ai.set(2); in testGetSet()
43 assertEquals(2, ai.get()); in testGetSet()
44 ai.set(-3); in testGetSet()
45 assertEquals(-3, ai.get()); in testGetSet()
[all …]
DAtomicBooleanTest.java28 AtomicBoolean ai = new AtomicBoolean(); in testConstructor2() local
29 assertFalse(ai.get()); in testConstructor2()
36 AtomicBoolean ai = new AtomicBoolean(true); in testGetSet() local
37 assertTrue(ai.get()); in testGetSet()
38 ai.set(false); in testGetSet()
39 assertFalse(ai.get()); in testGetSet()
40 ai.set(true); in testGetSet()
41 assertTrue(ai.get()); in testGetSet()
48 AtomicBoolean ai = new AtomicBoolean(true); in testGetLazySet() local
49 assertTrue(ai.get()); in testGetLazySet()
[all …]
DAtomicReferenceTest.java20 AtomicReference ai = new AtomicReference(one); in testConstructor() local
21 assertSame(one, ai.get()); in testConstructor()
28 AtomicReference ai = new AtomicReference(); in testConstructor2() local
29 assertNull(ai.get()); in testConstructor2()
36 AtomicReference ai = new AtomicReference(one); in testGetSet() local
37 assertSame(one, ai.get()); in testGetSet()
38 ai.set(two); in testGetSet()
39 assertSame(two, ai.get()); in testGetSet()
40 ai.set(m3); in testGetSet()
41 assertSame(m3, ai.get()); in testGetSet()
[all …]
DAtomicMarkableReferenceTest.java20 AtomicMarkableReference ai = new AtomicMarkableReference(one, false); in testConstructor() local
21 assertSame(one, ai.getReference()); in testConstructor()
22 assertFalse(ai.isMarked()); in testConstructor()
33 AtomicMarkableReference ai = new AtomicMarkableReference(one, false); in testGetSet() local
34 assertSame(one, ai.getReference()); in testGetSet()
35 assertFalse(ai.isMarked()); in testGetSet()
36 assertSame(one, ai.get(mark)); in testGetSet()
38 ai.set(two, false); in testGetSet()
39 assertSame(two, ai.getReference()); in testGetSet()
40 assertFalse(ai.isMarked()); in testGetSet()
[all …]
DAtomicStampedReferenceTest.java20 AtomicStampedReference ai = new AtomicStampedReference(one, 0); in testConstructor() local
21 assertSame(one, ai.getReference()); in testConstructor()
22 assertEquals(0, ai.getStamp()); in testConstructor()
33 AtomicStampedReference ai = new AtomicStampedReference(one, 0); in testGetSet() local
34 assertSame(one, ai.getReference()); in testGetSet()
35 assertEquals(0, ai.getStamp()); in testGetSet()
36 assertSame(one, ai.get(mark)); in testGetSet()
38 ai.set(two, 0); in testGetSet()
39 assertSame(two, ai.getReference()); in testGetSet()
40 assertEquals(0, ai.getStamp()); in testGetSet()
[all …]
/libcore/luni/src/main/native/
Dlibcore_icu_AlphabeticIndex.cpp38 AlphabeticIndex* ai = new AlphabeticIndex(icuLocale.locale(), status); in AlphabeticIndex_create() local
42 return reinterpret_cast<uintptr_t>(ai); in AlphabeticIndex_create()
50 AlphabeticIndex* ai = fromPeer(peer); in AlphabeticIndex_getMaxLabelCount() local
51 return ai->getMaxLabelCount(); in AlphabeticIndex_getMaxLabelCount()
55 AlphabeticIndex* ai = fromPeer(peer); in AlphabeticIndex_setMaxLabelCount() local
57 ai->setMaxLabelCount(count, status); in AlphabeticIndex_setMaxLabelCount()
62 AlphabeticIndex* ai = fromPeer(peer); in AlphabeticIndex_addLabels() local
68 ai->addLabels(icuLocale.locale(), status); in AlphabeticIndex_addLabels()
74 AlphabeticIndex* ai = fromPeer(peer); in AlphabeticIndex_addLabelRange() local
76 ai->addLabels(UnicodeSet(codePointStart, codePointEnd), status); in AlphabeticIndex_addLabelRange()
[all …]
Dlibcore_io_Posix.cpp690 for (addrinfo* ai = addressList; ai != NULL; ai = ai->ai_next) { in Posix_android_getaddrinfo() local
691 if (ai->ai_family == AF_INET || ai->ai_family == AF_INET6) { in Posix_android_getaddrinfo()
694 ALOGE("android_getaddrinfo unexpected ai_family %i", ai->ai_family); in Posix_android_getaddrinfo()
709 for (addrinfo* ai = addressList; ai != NULL; ai = ai->ai_next) { in Posix_android_getaddrinfo() local
710 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) { in Posix_android_getaddrinfo()
712 ALOGE("android_getaddrinfo unexpected ai_family %i", ai->ai_family); in Posix_android_getaddrinfo()
717 sockaddr_storage& address = *reinterpret_cast<sockaddr_storage*>(ai->ai_addr); in Posix_android_getaddrinfo()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/
DAttributeListImplTest.java45 AttributeListImpl ai = new AttributeListImpl(empty); in testAttributeListImplAttributeList() local
46 assertEquals(0, ai.getLength()); in testAttributeListImplAttributeList()
49 ai = new AttributeListImpl(multi); in testAttributeListImplAttributeList()
50 assertEquals(3, ai.getLength()); in testAttributeListImplAttributeList()
54 ai = new AttributeListImpl(null); in testAttributeListImplAttributeList()
55 assertEquals(0, ai.getLength()); in testAttributeListImplAttributeList()
134 AttributeListImpl ai = new AttributeListImpl(empty); in testGetLength() local
135 assertEquals(0, ai.getLength()); in testGetLength()
137 ai = new AttributeListImpl(multi); in testGetLength()
138 assertEquals(3, ai.getLength()); in testGetLength()
[all …]
DAttributesImplTest.java50 AttributesImpl ai = new AttributesImpl(empty); in testAttributesImplAttributes() local
51 assertEquals(0, ai.getLength()); in testAttributesImplAttributes()
54 ai = new AttributesImpl(multi); in testAttributesImplAttributes()
55 assertEquals(5, ai.getLength()); in testAttributesImplAttributes()
59 ai = new AttributesImpl(null); in testAttributesImplAttributes()
60 assertEquals(0, ai.getLength()); in testAttributesImplAttributes()
68 AttributesImpl ai = new AttributesImpl(empty); in testGetLength() local
69 assertEquals(0, ai.getLength()); in testGetLength()
71 ai = new AttributesImpl(multi); in testGetLength()
72 assertEquals(5, ai.getLength()); in testGetLength()
[all …]
/libcore/luni/src/test/java/libcore/icu/
DAlphabeticIndexTest.java180 AlphabeticIndex ai = new AlphabeticIndex(Locale.US); in test_addLabels_NPE() local
182 ai.addLabels(null); in test_addLabels_NPE()
192 AlphabeticIndex ai = new AlphabeticIndex(Locale.US) in test_setMaxLabelCount() local
201 assertEquals(MAX_LABEL_COUNT, ai.getMaxLabelCount()); in test_setMaxLabelCount()
202 assertEquals(208, ai.getBucketCount()); in test_setMaxLabelCount()
203 AlphabeticIndex.ImmutableIndex ii = ai.getImmutableIndex(); in test_setMaxLabelCount()
204 assertEquals(ai.getBucketCount(), ii.getBucketCount()); in test_setMaxLabelCount()
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
DAlgorithmIdentifier.java121 @Override public boolean equals(Object ai) { in equals() argument
122 if (!(ai instanceof AlgorithmIdentifier)) { in equals()
125 AlgorithmIdentifier algid = (AlgorithmIdentifier) ai; in equals()
/libcore/luni/src/main/java/java/util/
DDualPivotQuicksort.java107 int ai = a[i]; in doSort() local
109 for (j = i - 1; j >= left && ai < a[j]; j--) { in doSort()
112 a[j + 1] = ai; in doSort()
385 long ai = a[i]; in doSort() local
387 for (j = i - 1; j >= left && ai < a[j]; j--) { in doSort()
390 a[j + 1] = ai; in doSort()
666 short ai = a[i]; in doSort() local
668 for (j = i - 1; j >= left && ai < a[j]; j--) { in doSort()
671 a[j + 1] = ai; in doSort()
961 char ai = a[i]; in doSort() local
[all …]
/libcore/luni/src/main/java/java/security/cert/
DX509CertSelector.java1173 AlgorithmIdentifier ai = ((SubjectPublicKeyInfo) in match() local
1176 if (!subjectPublicKeyAlgID.equals(ai.getAlgorithm())) { in match()