Home | History | Annotate | Download | only in native

Lines Matching refs:AlphabeticIndex

17 #define LOG_TAG "AlphabeticIndex"
28 static icu::AlphabeticIndex* fromPeer(jlong peer) {
29 return reinterpret_cast<icu::AlphabeticIndex*>(static_cast<uintptr_t>(peer));
38 icu::AlphabeticIndex* ai = new icu::AlphabeticIndex(icuLocale.locale(), status);
39 if (maybeThrowIcuException(env, "AlphabeticIndex", status)) {
50 icu::AlphabeticIndex* ai = fromPeer(peer);
55 icu::AlphabeticIndex* ai = fromPeer(peer);
58 maybeThrowIcuException(env, "AlphabeticIndex::setMaxLabelCount", status);
62 icu::AlphabeticIndex* ai = fromPeer(peer);
69 maybeThrowIcuException(env, "AlphabeticIndex::addLabels", status);
74 icu::AlphabeticIndex* ai = fromPeer(peer);
77 maybeThrowIcuException(env, "AlphabeticIndex::addLabels", status);
81 icu::AlphabeticIndex* ai = fromPeer(peer);
84 if (maybeThrowIcuException(env, "AlphabeticIndex::getBucketCount", status)) {
91 icu::AlphabeticIndex* ai = fromPeer(peer);
98 if (maybeThrowIcuException(env, "AlphabeticIndex::getBucketIndex", status)) {
111 icu::AlphabeticIndex* ai = fromPeer(peer);
114 if (maybeThrowIcuException(env, "AlphabeticIndex::resetBucketIterator", status)) {
122 if (maybeThrowIcuException(env, "AlphabeticIndex::nextBucket", status)) {
137 icu::AlphabeticIndex* ai = fromPeer(peer);
139 icu::AlphabeticIndex::ImmutableIndex* ii = ai->buildImmutableIndex(status);
140 if (maybeThrowIcuException(env, "AlphabeticIndex::buildImmutableIndex", status)) {
146 static icu::AlphabeticIndex::ImmutableIndex* immutableIndexFromPeer(jlong peer) {
147 return reinterpret_cast<icu::AlphabeticIndex::ImmutableIndex*>(static_cast<uintptr_t>(peer));
151 icu::AlphabeticIndex::ImmutableIndex* ii = immutableIndexFromPeer(peer);
156 icu::AlphabeticIndex::ImmutableIndex* ii = immutableIndexFromPeer(peer);
163 if (maybeThrowIcuException(env, "AlphabeticIndex::ImmutableIndex::getBucketIndex", status)) {
170 icu::AlphabeticIndex::ImmutableIndex* ii = immutableIndexFromPeer(peer);
171 const icu::AlphabeticIndex::Bucket* bucket = ii->getBucket(index);
187 NATIVE_METHOD(AlphabeticIndex, create, "(Ljava/lang/String;)J"),
188 NATIVE_METHOD(AlphabeticIndex, destroy, "(J)V"),
189 NATIVE_METHOD(AlphabeticIndex, getMaxLabelCount, "(J)I"),
190 NATIVE_METHOD(AlphabeticIndex, setMaxLabelCount, "(JI)V"),
191 NATIVE_METHOD(AlphabeticIndex, addLabels, "(JLjava/lang/String;)V"),
192 NATIVE_METHOD(AlphabeticIndex, addLabelRange, "(JII)V"),
193 NATIVE_METHOD(AlphabeticIndex, getBucketCount, "(J)I"),
194 NATIVE_METHOD(AlphabeticIndex, getBucketIndex, "(JLjava/lang/String;)I"),
195 NATIVE_METHOD(AlphabeticIndex, getBucketLabel, "(JI)Ljava/lang/String;"),
196 NATIVE_METHOD(AlphabeticIndex, buildImmutableIndex, "(J)J"),
204 jniRegisterNativeMethods(env, "libcore/icu/AlphabeticIndex", gMethods, NELEM(gMethods));
205 jniRegisterNativeMethods(env, "libcore/icu/AlphabeticIndex$ImmutableIndex", gImmutableIndexMethods, NELEM(gImmutableIndexMethods));