Searched refs:count (Results 51 - 75 of 747) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/text/
H A DTextDirectionHeuristics.java90 public boolean isRtl(char[] chars, int start, int count) { argument
91 if (chars == null || start < 0 || count < 0 || chars.length - count < start) {
97 return doCheck(chars, start, count);
100 private boolean doCheck(char[] chars, int start, int count) { argument
101 switch(mAlgorithm.checkRtl(chars, start, count)) {
164 TriState checkRtl(char[] text, int start, int count); argument
175 public TriState checkRtl(char[] text, int start, int count) { argument
177 for (int i = start, e = start + count; i < e && result == TriState.UNKNOWN; ++i) {
199 public TriState checkRtl(char[] text, int start, int count) { argument
[all...]
/frameworks/base/services/java/com/android/server/location/
H A DGpsXtraDownloader.java57 int count = 0;
61 if (server1 != null) count++;
62 if (server2 != null) count++;
63 if (server3 != null) count++;
65 if (count == 0) {
69 mXtraServers = new String[count];
70 count = 0;
71 if (server1 != null) mXtraServers[count++] = server1;
72 if (server2 != null) mXtraServers[count++] = server2;
73 if (server3 != null) mXtraServers[count
[all...]
/frameworks/native/include/private/ui/
H A DRegionHelper.h51 size_t count; member in struct:android::region_operator::region
55 : rects(rhs.rects), count(rhs.count), dx(rhs.dx), dy(rhs.dy) { }
57 : rects(r), count(c), dx(), dy() { }
59 : rects(r), count(c), dx(dx), dy(dy) { }
168 if (lhs.count) {
172 if (rhs.count) {
179 return !rhs.count && !lhs.count;
200 size_t count local
[all...]
/frameworks/av/include/media/nbaio/
H A DLibsndfileSink.h45 virtual ssize_t write(const void *buffer, size_t count);
H A DMonoPipeReader.h50 virtual ssize_t read(void *buffer, size_t count, int64_t readPTS);
/frameworks/av/media/libnbaio/
H A DMonoPipeReader.cpp46 ssize_t MonoPipeReader::read(void *buffer, size_t count, int64_t readPTS) argument
50 // with a count (which is the number of audio frames they are going to
52 // by the duration of count will give us the readPTS which will be passed to
57 nextReadPTS = mPipe->offsetTimestampByAudioFrames(readPTS, count);
59 // count == 0 is unlikely and not worth checking for explicitly; will be handled automatically
67 if (CC_LIKELY((size_t) red > count)) {
68 red = count;
H A DNBAIO.cpp110 size_t count = total - accumulator; local
111 if (count > block) {
112 count = block;
114 ssize_t ret = via(user, buffer, count);
116 ALOG_ASSERT((size_t) ret <= count);
147 size_t count = total - accumulator; local
148 if (count > block) {
149 count = block;
151 ssize_t ret = read(buffer, count, readPTS);
153 ALOG_ASSERT((size_t) ret <= count);
[all...]
/frameworks/base/core/java/android/gesture/
H A DLearner.java52 int count = instances.size();
53 for (int i = 0; i < count; i++) {
70 final int count = instances.size();
72 for (int i = 0; i < count; i++) {
/frameworks/base/core/java/android/test/
H A DPerformanceTestCase.java32 void setInternalIterations(int count); argument
46 * <p>If you return a non-zero iteration count, you should call
/frameworks/base/libs/hwui/
H A DDisplayListLogBuffer.cpp89 uint32_t count = (level + 1) * 2; local
90 char indent[count + 1];
91 for (uint32_t i = 0; i < count; i++) {
94 indent[count] = '\0';
/frameworks/base/voip/jni/rtp/
H A DAudioCodec.h33 virtual int decode(int16_t *samples, int count, void *payload, int length) = 0;
/frameworks/compile/libbcc/include/bcc/Support/
H A DInputFile.h30 ssize_t read(void *pBuf, size_t count);
/frameworks/compile/libbcc/lib/Support/
H A Dsha1.h9 unsigned long count[2]; member in struct:__anon1222
H A DOutputFile.cpp83 ssize_t OutputFile::write(const void *pBuf, size_t count) { argument
88 if ((count <= 0) || (pBuf == NULL)) {
90 ALOGW("OutputFile::write: count = %zu, buffer = %p", count, pBuf);
94 while (count > 0) {
95 ssize_t write_size = ::write(mFD, pBuf, count);
/frameworks/testing/uiautomator/library/src/com/android/uiautomator/core/
H A DUiCollection.java45 int count = getChildCount(childPattern);
46 for (int x = 0; x < count; x++) {
100 int count = getChildCount(childPattern);
101 for (int x = 0; x < count; x++) {
119 * currently visible. The count does not include items of a scrollable list
123 * elements to count
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
H A DEnergyProbe.java58 int count = 0;
85 count++;
94 if (count == 0) {
97 return energy/count;
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/
H A DarmVCM4P2_BlockMatch_Half.c75 OMX_INT outer, inner, count, index; local
95 for (outer = 0, count = 0,index = 0;
99 for (inner = 0; inner < BlockSize; inner++, count++, index++)
101 refSAD += armAbs (pTempSrcRefBuf[index] - pSrcCurrBuf[count]);
150 for (outer = 0, count = 0, candSAD = 0,index = 0;
154 for (inner = 0; inner < BlockSize; inner++, count++,index++)
164 candSAD += armAbs (tempPel - pSrcCurrBuf[count]);
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm11_asm/
H A Dh264bsd_interpolate_chroma_hor.s41 count RN 2 label
149 ;// pack values to count register
158 ADD count, count, tmp2, LSL #16 ;// chromaPartHeight-1
159 ADD count, count, tmp2, LSL #24 ;// loop_y
160 ADD count, count, tmp1, LSL #20 ;// chromaPartWidth-1
161 AND tmp2, count, #0x00F00000 ;// loop_x
175 ADD count, coun
[all...]
H A Dh264bsd_interpolate_chroma_hor_ver.s42 count RN 2 label
155 ;// pack values to count register
164 ADD count, count, tmp2, LSL #16 ;// chromaPartHeight-1
165 ADD count, count, tmp2, LSL #24 ;// loop_y
166 ADD count, count, tmp1, LSL #20 ;// chromaPartWidth-1
167 AND tmp2, count, #0x00F00000 ;// loop_x
190 ADD count, coun
[all...]
H A Dh264bsd_interpolate_chroma_ver.s40 count RN 2 label
147 ;// pack values to count register
156 ADD count, count, tmp2, LSL #16 ;// chromaPartHeight-1
157 ADD count, count, tmp2, LSL #24 ;// loop_y
158 ADD count, count, tmp1, LSL #20 ;// chromaPartWidth-1
159 AND tmp2, count, #0x00F00000 ;// loop_x
173 ADD count, coun
[all...]
/frameworks/opt/mailcommon/java/com/android/mailcommon/
H A DMergedAdapter.java91 int count = 0;
93 count += adapter.getCount();
95 return count;
110 int count = 0;
114 int newCount = count + a.getCount();
116 return new LocalAdapterPosition<T>(a, position - count);
118 count = newCount;
140 int count = 0;
142 count += adapter.getViewTypeCount();
144 return count;
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DMemInfoReader.java73 int count = 0;
74 for (int i=0; i<len && count < 3; i++) {
78 count++;
82 count++;
86 count++;
/frameworks/base/core/jni/android/graphics/
H A DPaint.cpp386 static jfloat measureText_CII(JNIEnv* env, jobject jpaint, jcharArray text, int index, int count) { argument
391 if ((index | count) < 0 || (size_t)(index + count) > textLength) {
395 if (count == 0) {
403 TextLayout::getTextRunAdvances(paint, textArray, index, count, textLength,
415 int count = end - start; local
416 if ((start | count) < 0 || (size_t)end > textLength) {
420 if (count == 0) {
428 TextLayout::getTextRunAdvances(paint, textArray, start, count, textLength,
455 static int dotextwidths(JNIEnv* env, SkPaint* paint, const jchar text[], int count, jfloatArra argument
481 getTextWidths___CII_F(JNIEnv* env, jobject clazz, SkPaint* paint, jcharArray text, int index, int count, jfloatArray widths) argument
492 int count = dotextwidths(env, paint, textArray + start, end - start, widths); local
497 doTextGlyphs(JNIEnv* env, SkPaint* paint, const jchar* text, jint start, jint count, jint contextCount, jint flags, jcharArray glyphs) argument
531 int count = doTextGlyphs(env, paint, textArray + contextStart, start - contextStart, local
537 doTextRunAdvances(JNIEnv *env, SkPaint *paint, const jchar *text, jint start, jint count, jint contextCount, jint flags, jfloatArray advances, jint advancesIndex) argument
569 doTextRunAdvancesICU(JNIEnv *env, SkPaint *paint, const jchar *text, jint start, jint count, jint contextCount, jint flags, jfloatArray advances, jint advancesIndex) argument
602 getTextRunAdvances___CIIIII_FII(JNIEnv* env, jobject clazz, SkPaint* paint, jcharArray text, jint index, jint count, jint contextIndex, jint contextCount, jint flags, jfloatArray advances, jint advancesIndex, jint reserved) argument
628 doTextRunCursor(JNIEnv *env, SkPaint* paint, const jchar *text, jint start, jint count, jint flags, jint offset, jint opt) argument
690 getTextPath(JNIEnv* env, SkPaint* paint, const jchar* text, jint count, jint bidiFlags, jfloat x, jfloat y, SkPath *path) argument
695 getTextPath___C(JNIEnv* env, jobject clazz, SkPaint* paint, jint bidiFlags, jcharArray text, int index, int count, jfloat x, jfloat y, SkPath* path) argument
725 breakText(JNIEnv* env, SkPaint& paint, const jchar text[], int count, float maxWidth, jfloatArray jmeasured, SkPaint::TextBufferDirection tbd) argument
746 breakTextC(JNIEnv* env, jobject jpaint, jcharArray jtext, int index, int count, float maxWidth, jfloatArray jmeasuredWidth) argument
784 int count = env->GetStringLength(jtext); local
792 doTextBounds(JNIEnv* env, const jchar* text, int count, jobject bounds, const SkPaint& paint) argument
816 getCharArrayBounds(JNIEnv* env, jobject, const SkPaint* paint, jcharArray text, int index, int count, jobject bounds) argument
[all...]
H A DTextLayout.cpp68 jint count, jint contextCount, jint dirFlags,
71 chars, start, count, contextCount, dirFlags);
84 jint count, jint contextCount, jint dirFlags,
87 computeAdvancesWithICU(paint, chars, start, count, contextCount, dirFlags,
97 void TextLayout::drawTextOnPath(SkPaint* paint, const jchar* text, int count, argument
105 text, 0, count, count, bidiFlags);
115 size_t start, size_t count, size_t contextCount, int dirFlags,
127 // Use fixed length since we need to keep start and count valid
134 for (int i = start, e = i + count;
67 getTextRunAdvances(SkPaint* paint, const jchar* chars, jint start, jint count, jint contextCount, jint dirFlags, jfloat* resultAdvances, jfloat* resultTotalAdvance) argument
83 getTextRunAdvancesICU(SkPaint* paint, const jchar* chars, jint start, jint count, jint contextCount, jint dirFlags, jfloat* resultAdvances, jfloat& resultTotalAdvance) argument
114 computeAdvancesWithICU(SkPaint* paint, const UChar* chars, size_t start, size_t count, size_t contextCount, int dirFlags, jfloat* outAdvances, jfloat* outTotalAdvance) argument
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/format/
H A DObjectFormat.java29 public static MutableFrameFormat fromClass(Class clazz, int count, int target) { argument
33 if (count != FrameFormat.SIZE_UNSPECIFIED) {
34 result.setDimensions(count);
50 public static MutableFrameFormat fromObject(Object object, int count, int target) { argument
53 : fromClass(object.getClass(), count, target);

Completed in 1596 milliseconds

1234567891011>>