/frameworks/base/core/tests/coretests/src/android/database/ |
H A D | DatabaseCursorTest.java | 273 int count = c.getCount(); 274 if (total == count) { 280 assertEquals(count, i); 295 final int count = 36799; 297 for (int i = 0; i < count; i++) { 310 assertEquals(count, i); 311 assertEquals(count, c.getCount()); 313 Log.d("testManyRows", "count " + Integer.toString(i)); 331 final int count = 600; // more than two fillWindow needed 333 for (int i = 0; i < count; [all...] |
/frameworks/base/services/java/com/android/server/display/ |
H A D | DisplayManagerService.java | 311 final int count = mDisplayDevices.size(); 312 for (int i = 0; i < count; i++) { 330 final int count = mDisplayDevices.size(); 331 for (int i = 0; i < count; i++) { 365 final int count = mLogicalDisplays.size(); 366 int[] displayIds = new int[count]; 367 for (int i = 0; i < count; i++) { 717 final int count = mDisplayDevices.size(); 718 for (int i = 0; i < count; i++) { 801 final int count [all...] |
/frameworks/base/libs/hwui/ |
H A D | DisplayListRenderer.h | 471 int32_t* getInts(uint32_t& count) { argument 472 count = getInt(); 473 return (int32_t*) mReader.skip(count * sizeof(int32_t)); 476 uint32_t* getUInts(int8_t& count) { argument 477 count = getInt(); 478 return (uint32_t*) mReader.skip(count * sizeof(uint32_t)); 481 float* getFloats(int32_t& count) { argument 482 count = getInt(); 483 return (float*) mReader.skip(count * sizeof(float)); 603 virtual status_t drawLines(float* points, int count, SkPain 726 addInts(const int32_t* values, uint32_t count) argument 731 addUInts(const uint32_t* values, int8_t count) argument 740 addFloats(const float* values, int32_t count) argument [all...] |
H A D | DisplayListRenderer.cpp | 320 uint32_t count = (level + 1) * 2; local 321 char indent[count + 1]; 322 for (uint32_t i = 0; i < count; i++) { 325 indent[count] = '\0'; 589 int count = 0; local 590 float* points = getFloats(count); 596 int count = 0; local 597 float* points = getFloats(count); 604 int32_t count = getInt(); local 610 text.text(), text.length(), count, pain 615 int count = getInt(); local 625 int32_t count = getInt(); local 786 uint32_t count = (level + 1) * 2; local 873 uint32_t count = (level + 1) * 2; local 1225 int32_t count = 0; local 1233 int32_t count = 0; local 1242 int32_t count = getInt(); local 1255 int32_t count = getInt(); local 1267 int32_t count = getInt(); local 1736 drawLines(float* points, int count, SkPaint* paint) argument 1743 drawPoints(float* points, int count, SkPaint* paint) argument 1750 drawTextOnPath(const char* text, int bytesCount, int count, SkPath* path, float hOffset, float vOffset, SkPaint* paint) argument 1766 drawPosText(const char* text, int bytesCount, int count, const float* positions, SkPaint* paint) argument 1780 drawText(const char* text, int bytesCount, int count, float x, float y, const float* positions, SkPaint* paint, float length) argument [all...] |
/frameworks/base/media/java/android/mtp/ |
H A D | MtpPropertyGroup.java | 75 int count = properties.length; 76 ArrayList<String> columns = new ArrayList<String>(count); 79 mProperties = new Property[count]; 80 for (int i = 0; i < count; i++) { 83 count = columns.size(); 84 mColumns = new String[count]; 85 for (int i = 0; i < count; i++) { 332 int count = (c == null ? 1 : c.getCount()); 333 MtpPropertyList result = new MtpPropertyList(count * mProperties.length, 337 for (int objectIndex = 0; objectIndex < count; objectInde [all...] |
/frameworks/base/core/java/android/view/ |
H A D | FocusFinder.java | 180 final int count = focusables.size(); 183 return getForwardFocusable(root, focused, focusables, count); 185 return getBackwardFocusable(root, focused, focusables, count); 187 return focusables.get(count - 1); 243 ArrayList<View> focusables, int count) { 245 getPreviousFocusable(focused, focusables, count) : 246 getNextFocusable(focused, focusables, count); 249 private static View getNextFocusable(View focused, ArrayList<View> focusables, int count) { argument 252 if (position >= 0 && position + 1 < count) { 263 ArrayList<View> focusables, int count) { 242 getForwardFocusable(ViewGroup root, View focused, ArrayList<View> focusables, int count) argument 262 getBackwardFocusable(ViewGroup root, View focused, ArrayList<View> focusables, int count) argument 269 getPreviousFocusable(View focused, ArrayList<View> focusables, int count) argument [all...] |
H A D | ViewDebug.java | 511 final int count = group.getChildCount(); 512 for (int i = 0; i < count; i++) { 579 final int count = group.getChildCount(); 580 for (int i = 0; i < count; i++) { 685 int count = group.getChildCount(); 687 for (int i = 0; i < count; i++) { 780 final int count = group.getChildCount(); 781 for (int i = 0; i < count; i++) { 813 final int count = group.getChildCount(); 814 for (int i = 0; i < count; [all...] |
H A D | GLES20Canvas.java | 612 int count; 616 count = nSaveLayer(mRenderer, nativePaint, saveFlags); 620 return count; 629 int count; 633 count = nSaveLayer(mRenderer, left, top, right, bottom, nativePaint, saveFlags); 637 return count; 901 final int count = (meshWidth + 1) * (meshHeight + 1); 902 checkRange(verts.length, vertOffset, count * 2); 957 public void drawLines(float[] pts, int offset, int count, Paint paint) { argument 958 if ((offset | count) < 969 nDrawLines(int renderer, float[] points, int offset, int count, int paint) argument 1069 drawPoints(float[] pts, int offset, int count, Paint paint) argument 1078 nDrawPoints(int renderer, float[] points, int offset, int count, int paint) argument 1083 drawPosText(char[] text, int index, int count, float[] pos, Paint paint) argument 1096 nDrawPosText(int renderer, char[] text, int index, int count, float[] pos, int paint) argument 1161 drawText(char[] text, int index, int count, float x, float y, Paint paint) argument 1174 nDrawText(int renderer, char[] text, int index, int count, float x, float y, int bidiFlags, int paint) argument 1229 drawTextOnPath(char[] text, int index, int count, Path path, float hOffset, float vOffset, Paint paint) argument 1244 nDrawTextOnPath(int renderer, char[] text, int index, int count, int path, float hOffset, float vOffset, int bidiFlags, int nativePaint) argument 1264 drawTextRun(char[] text, int index, int count, int contextIndex, int contextCount, float x, float y, int dir, Paint paint) argument 1282 nDrawTextRun(int renderer, char[] text, int index, int count, int contextIndex, int contextCount, float x, float y, int dir, int nativePaint) argument [all...] |
/frameworks/base/core/java/android/text/ |
H A D | SpannableStringBuilder.java | 420 int count = mSpanCount - (i + 1); 421 System.arraycopy(mSpans, i + 1, mSpans, i, count); 422 System.arraycopy(mSpanStarts, i + 1, mSpanStarts, i, count); 423 System.arraycopy(mSpanEnds, i + 1, mSpanEnds, i, count); 424 System.arraycopy(mSpanFlags, i + 1, mSpanFlags, i, count); 641 int count = mSpanCount; 644 for (int i = 0; i < count; i++) { 708 int count = mSpanCount; 711 for (int i = count - 1; i >= 0; i--) { 730 int count [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | TabWidget.java | 180 final int count = getChildCount(); 183 for (int i = 0; i < count; i++) { 190 if (mImposedTabWidths == null || mImposedTabWidths.length != count) { 191 mImposedTabWidths = new int[count]; 193 for (int i = 0; i < count; i++) { 469 final int count = getTabCount(); 470 for (int i = 0; i < count; i++) {
|
H A D | ArrayAdapter.java | 466 results.count = list.size(); 475 final int count = values.size(); 478 for (int i = 0; i < count; i++) { 500 results.count = newValues.size(); 510 if (results.count > 0) {
|
H A D | GridView.java | 230 final int count = getChildCount(); 237 final int startOffset = count > 0 ? 238 getChildAt(count - 1).getBottom() + verticalSpacing : paddingTop; 239 int position = mFirstPosition + count; 250 final int startOffset = count > 0 ? 485 final int count = getChildCount(); 486 if (mFirstPosition + count == mItemCount) { 487 final int bottom = getChildAt(count - 1).getBottom(); 1038 final int count = mItemCount; 1039 if (count > 1100 attachLayoutAnimationParameters(View child, ViewGroup.LayoutParams params, int index, int count) argument 1531 commonKey(int keyCode, int count, KeyEvent event) argument [all...] |
H A D | RemoteViewsAdapter.java | 358 int count; field in class:RemoteViewsAdapter.RemoteViewsMetaData 378 count = d.count; 386 count = 0; 512 // The meta data related to all the RemoteViews, ie. count, is stable, etc. 573 // Trim the cache if we go beyond the count 681 int count = 0; 683 count = mMetaData.count; 696 int effectiveUpperBound = Math.min(mPreloadUpperBound, count 1240 getVisibleWindow(int lower, int upper, int count) argument [all...] |
/frameworks/native/opengl/tools/glgen/stubs/jsr239/ |
H A D | GLCHeader.cpp | 49 const GLvoid *ptr, GLsizei count); 51 const GLvoid *pointer, GLsizei count); 53 GLsizei stride, const GLvoid *pointer, GLsizei count); 55 GLsizei stride, const GLvoid *pointer, GLsizei count); 57 GLsizei stride, const GLvoid *pointer, GLsizei count); 59 GLsizei stride, const GLvoid *pointer, GLsizei count); 61 GLsizei stride, const GLvoid *pointer, GLsizei count);
|
/frameworks/wilhelm/tools/permute/ |
H A D | permute.c | 243 sf_count_t count; local 244 count = sf_readf_short(sf_in, ptr, sfinfo_in.frames); 245 if (count != sfinfo_in.frames) { 247 (int) sfinfo_in.frames, (int) count); 270 count = sf_writef_short(sf_out, &((short *) ptr)[sfinfo_in.channels * s.mSegmentArray[i] 272 if (count != s.mSegmentArray[i].mFrameLength) { 274 path_out, (int) s.mSegmentArray[i].mFrameLength, (int) count);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Canvas.cpp | 328 jint offset, jint count, jobject jpaint, 340 if ((offset | count) < 0 || offset + count > length) { 346 count >>= 1; // now it is the number of points 347 SkAutoSTMalloc<32, SkPoint> storage(count); 350 for (int i = 0; i < count; i++) { 354 canvas->drawPoints(mode, count, pts, paint); 358 jint offset, jint count, jobject jpaint) { 359 doPoints(env, jcanvas, jptsArray, offset, count, jpaint, 364 jint offset, jint count, jobjec 327 doPoints(JNIEnv* env, jobject jcanvas, jfloatArray jptsArray, jint offset, jint count, jobject jpaint, SkCanvas::PointMode mode) argument 357 drawPoints(JNIEnv* env, jobject jcanvas, jfloatArray jptsArray, jint offset, jint count, jobject jpaint) argument 363 drawLines(JNIEnv* env, jobject jcanvas, jfloatArray jptsArray, jint offset, jint count, jobject jpaint) argument 701 int count = ptCount; // for verts local 736 drawText___CIIFFIPaint(JNIEnv* env, jobject, SkCanvas* canvas, jcharArray text, int index, int count, jfloat x, jfloat y, int flags, SkPaint* paint) argument 757 jint count = end - start; local 761 drawTextWithGlyphs(SkCanvas* canvas, const jchar* textArray, int start, int count, int contextCount, jfloat x, jfloat y, int flags, SkPaint* paint) argument 819 doDrawGlyphs(SkCanvas* canvas, const jchar* glyphArray, int index, int count, jfloat x, jfloat y, int flags, SkPaint* paint) argument 825 doDrawGlyphsPos(SkCanvas* canvas, const jchar* glyphArray, const jfloat* posArray, int index, int count, jfloat x, jfloat y, int flags, SkPaint* paint) argument 836 drawTextRun___CIIIIFFIPaint( JNIEnv* env, jobject, SkCanvas* canvas, jcharArray text, int index, int count, int contextIndex, int contextCount, jfloat x, jfloat y, int dirFlags, SkPaint* paint) argument 852 jint count = end - start; local 860 drawPosText___CII_FPaint(JNIEnv* env, jobject, SkCanvas* canvas, jcharArray text, int index, int count, jfloatArray pos, SkPaint* paint) argument 917 drawTextOnPath___CIIPathFFPaint(JNIEnv* env, jobject, SkCanvas* canvas, jcharArray text, int index, int count, SkPath* path, jfloat hOffset, jfloat vOffset, jint bidiFlags, SkPaint* paint) argument 931 int count = env->GetStringLength(text); local [all...] |
/frameworks/base/core/jni/ |
H A D | android_view_GLES20Canvas.cpp | 463 OpenGLRenderer* renderer, jfloatArray points, jint offset, jint count, SkPaint* paint) { 465 renderer->drawPoints(storage + offset, count, paint); 475 OpenGLRenderer* renderer, jfloatArray points, jint offset, jint count, SkPaint* paint) { 477 renderer->drawLines(storage + offset, count, paint); 525 static void renderText(OpenGLRenderer* renderer, const jchar* text, int count, argument 528 text, 0, count, count, flags); 541 static void renderTextOnPath(OpenGLRenderer* renderer, const jchar* text, int count, argument 544 text, 0, count, count, flag 462 android_view_GLES20Canvas_drawPoints(JNIEnv* env, jobject clazz, OpenGLRenderer* renderer, jfloatArray points, jint offset, jint count, SkPaint* paint) argument 474 android_view_GLES20Canvas_drawLines(JNIEnv* env, jobject clazz, OpenGLRenderer* renderer, jfloatArray points, jint offset, jint count, SkPaint* paint) argument 555 renderTextRun(OpenGLRenderer* renderer, const jchar* text, jint start, jint count, jint contextCount, jfloat x, jfloat y, int flags, SkPaint* paint) argument 572 android_view_GLES20Canvas_drawTextArray(JNIEnv* env, jobject clazz, OpenGLRenderer* renderer, jcharArray text, jint index, jint count, jfloat x, jfloat y, jint flags, SkPaint* paint) argument 588 android_view_GLES20Canvas_drawTextArrayOnPath(JNIEnv* env, jobject clazz, OpenGLRenderer* renderer, jcharArray text, jint index, jint count, SkPath* path, jfloat hOffset, jfloat vOffset, jint flags, SkPaint* paint) argument 606 android_view_GLES20Canvas_drawTextRunArray(JNIEnv* env, jobject clazz, OpenGLRenderer* renderer, jcharArray text, jint index, jint count, jint contextIndex, jint contextCount, jfloat x, jfloat y, jint dirFlags, SkPaint* paint) argument 621 jint count = end - start; local 628 renderPosText(OpenGLRenderer* renderer, const jchar* text, int count, const jfloat* positions, jint dirFlags, SkPaint* paint) argument 643 android_view_GLES20Canvas_drawPosTextArray(JNIEnv* env, jobject clazz, OpenGLRenderer* renderer, jcharArray text, jint index, jint count, jfloatArray pos, SkPaint* paint) argument [all...] |
/frameworks/wilhelm/tests/sandbox/ |
H A D | playbq.c | 81 sf_count_t count; local 82 count = sf_readf_short(sndfile, buffer, (sf_count_t) framesPerBuffer); 83 if (0 >= count) { 86 SLuint32 nbytes = count * sfinfo.channels * sizeof(short); 197 fprintf(stderr, "unsupported channel count %d\n", sfinfo.channels); 379 sf_count_t count; local 380 count = sf_readf_short(sndfile, buffer, frames); 381 if (0 >= count) { 387 SLuint32 nbytes = count * sfinfo.channels * sizeof(short); 421 if (0 >= bufqstate.count) { [all...] |
/frameworks/base/core/java/android/speech/tts/ |
H A D | BlockingAudioTrack.java | 198 int count = 0; 199 while (count < bytes.length) { 202 int written = audioTrack.write(bytes, count, bytes.length); 206 count += written; 208 return count;
|
/frameworks/base/core/java/android/text/method/ |
H A D | PasswordTransformationMethod.java | 72 int count, int after) { 77 int before, int count) { 104 if (count > 0) { 107 if (count == 1) { 108 sp.setSpan(new Visible(sp, this), start, start + count, 71 beforeTextChanged(CharSequence s, int start, int count, int after) argument 76 onTextChanged(CharSequence s, int start, int before, int count) argument
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | ListMenuPresenter.java | 231 int count = items.size() - mItemIndexOffset; 233 return count; 235 return count - 1; 267 final int count = items.size(); 268 for (int i = 0; i < count; i++) {
|
/frameworks/base/services/java/com/android/server/pm/ |
H A D | PackageSignatures.java | 53 serializer.attribute(null, "count", 80 String countStr = parser.getAttributeValue(null, "count"); 84 + " no count at " + parser.getPositionDescription()); 87 final int count = Integer.parseInt(countStr); 88 mSignatures = new Signature[count]; 103 if (pos < count) { 156 + "many <cert> tags, expected " + count 167 if (pos < count) {
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
H A D | RecurrenceProcessor.java | 91 if (rrule.count != 0) { 110 // If there were only "until"s and no "count"s, then return the 398 int generateByList(int count, int freq, int byFreq) argument 403 if (count == 0) { 411 private static boolean useBYX(int freq, int freqConstant, int count) argument 413 return freq > freqConstant && count > 0; 498 int i, count, v; 507 count = r.bydayCount; 508 if (count > 0) { 527 for (i=0; i<count; [all...] |
/frameworks/wilhelm/src/desktop/ |
H A D | SndFile.c | 46 sf_count_t count; local 47 count = sf_read_short(thiz->mSNDFILE, pBuffer, (sf_count_t) SndFile_BUFSIZE); 75 if (0 < count) { 77 SLuint32 size = (SLuint32) (count * sizeof(short)); 194 SLboolean empty = 0 == audioPlayer->mBufferQueue.mState.count;
|
/frameworks/base/core/java/android/content/ |
H A D | ContentProviderNative.java | 160 int count = bulkInsert(url, values); 162 reply.writeInt(count); 188 int count = delete(url, selection, selectionArgs); 191 reply.writeInt(count); 203 int count = update(url, values, selection, selectionArgs); 206 reply.writeInt(count); 441 int count = reply.readInt(); 442 return count; 485 int count = reply.readInt(); 486 return count; [all...] |