/frameworks/base/core/java/com/android/internal/util/ |
H A D | FastPrintWriter.java | 32 public void write(char[] buf, int offset, int count) throws IOException { argument 545 * Writes {@code count} characters from {@code buffer} starting at {@code 555 * @param count 558 * if {@code offset < 0} or {@code count < 0}, or if {@code 559 * offset + count} is greater than the length of {@code buf}. 562 public void write(char[] buf, int offset, int count) { argument 565 appendLocked(buf, offset, count); 608 * Writes {@code count} characters from {@code str} starting at {@code 615 * @param count 618 * if {@code offset < 0} or {@code count < 622 write(String str, int offset, int count) argument [all...] |
H A D | IndentingPrintWriter.java | 76 public void write(char[] buf, int offset, int count) { argument 78 final int bufferEnd = offset + count;
|
H A D | ProcFileReader.java | 75 private void consumeBuf(int count) throws IOException { argument 78 System.arraycopy(mBuffer, count, mBuffer, 0, mTail - count); 79 mTail -= count;
|
H A D | StateMachine.java | 569 * count which is the number of records processed since the 618 synchronized int count() { method in class:StateMachine.LogRecords 1439 return smh.mLogRecords.count();
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | IconMenuView.java | 64 /** Actual number of items (the 'More' view does not count as an item) shown */ 501 void setNumActualItemsShown(int count) { argument 502 mNumActualItemsShown = count;
|
/frameworks/base/core/jni/ |
H A D | AndroidRuntime.cpp | 1227 static int register_jni_procs(const RegJNIRec array[], size_t count, JNIEnv* env) argument 1229 for (size_t i = 0; i < count; i++) { 1240 static void register_jam_procs(const RegJAMProc array[], size_t count) argument 1242 for (size_t i = 0; i < count; i++) {
|
H A D | android_graphics_Canvas.cpp | 205 jint offset, jint count, jlong paintHandle) { 211 if ((offset | count) < 0 || offset + count > length) { 217 get_canvas(canvasHandle)->drawPoints(floats + offset, count, *paint); 227 jint offset, jint count, jlong paintHandle) { 233 if ((offset | count) < 0 || offset + count > length) { 239 get_canvas(canvasHandle)->drawLines(floats + offset, count, *paint); 481 void drawText(Canvas* canvas, const uint16_t* text, int start, int count, int contextCount, argument 487 MinikinUtils::doLayout(&layout, &paint, bidiFlags, typeface, text, start, count, contextCoun 204 drawPoints(JNIEnv* env, jobject, jlong canvasHandle, jfloatArray jptsArray, jint offset, jint count, jlong paintHandle) argument 226 drawLines(JNIEnv* env, jobject, jlong canvasHandle, jfloatArray jptsArray, jint offset, jint count, jlong paintHandle) argument 507 drawTextChars(JNIEnv* env, jobject, jlong canvasHandle, jcharArray text, jint index, jint count, jfloat x, jfloat y, jint bidiFlags, jlong paintHandle, jlong typefaceHandle) argument 513 drawText(get_canvas(canvasHandle), jchars + index, 0, count, count, x, y, local 523 const int count = end - start; local 525 drawText(get_canvas(canvasHandle), jchars + start, 0, count, count, x, y, local 530 drawTextRunChars(JNIEnv* env, jobject, jlong canvasHandle, jcharArray text, jint index, jint count, jint contextIndex, jint contextCount, jfloat x, jfloat y, jboolean isRtl, jlong paintHandle, jlong typefaceHandle) argument 538 drawText(get_canvas(canvasHandle), jchars + contextIndex, index - contextIndex, count, local 551 jint count = end - start; local 554 drawText(get_canvas(canvasHandle), jchars + contextStart, start - contextStart, count, local 559 drawPosTextChars(JNIEnv* env, jobject, jlong canvasHandle, jcharArray text, jint index, jint count, jfloatArray pos, jlong paintHandle) argument 620 drawTextOnPath(Canvas* canvas, const uint16_t* text, int count, int bidiFlags, const SkPath& path, float hOffset, float vOffset, const Paint& paint, TypefaceImpl* typeface) argument 637 drawTextOnPathChars(JNIEnv* env, jobject, jlong canvasHandle, jcharArray text, jint index, jint count, jlong pathHandle, jfloat hOffset, jfloat vOffset, jint bidiFlags, jlong paintHandle, jlong typefaceHandle) argument 647 drawTextOnPath(get_canvas(canvasHandle), jchars + index, count, bidiFlags, *path, local 661 int count = env->GetStringLength(text); local 663 drawTextOnPath(get_canvas(canvasHandle), jchars, count, bidiFlags, *path, local [all...] |
H A D | android_hardware_Camera.cpp | 1034 static int find_fields(JNIEnv *env, field *fields, int count) argument 1036 for (int i = 0; i < count; i++) {
|
H A D | android_hardware_SensorManager.cpp | 93 size_t count = mgr.getSensorList(&sensorList); local 94 if (size_t(next) >= count) 122 return size_t(next) < count ? next : 0;
|
H A D | android_hardware_camera2_CameraMetadata.cpp | 222 ALOGV("%s: Empty returned %d, entry count was %d", 284 if (entry.count == 0) { 295 jsize byteCount = entry.count * tagSize; 442 while ((res = TEMP_FAILURE_RETRY(read(readFd, &out[0], /*count*/1))) > 0) { 574 static int find_fields(JNIEnv *env, field *fields, int count) argument 576 for (int i = 0; i < count; i++) {
|
H A D | android_hardware_camera2_DngCreator.cpp | 57 if (entry.count == 0) { \ 173 status_t write(const uint8_t* buf, size_t offset, size_t count); 202 status_t JniOutputStream::write(const uint8_t* buf, size_t offset, size_t count) { argument 203 while(count > 0) { 205 len = (count > len) ? len : count; 219 count -= len; 246 ssize_t read(uint8_t* buf, size_t offset, size_t count); 248 ssize_t skip(size_t count); 272 ssize_t JniInputStream::read(uint8_t* buf, size_t offset, size_t count) { argument 296 skip(size_t count) argument 358 read(uint8_t* buf, size_t offset, size_t count) argument 433 writeToStream(Output& stream, uint32_t count) argument 568 writeToStream(Output& stream, uint32_t count) argument 1006 uint32_t count = static_cast<uint32_t>(strlen(manufacturer)) + 1; local 1018 uint32_t count = static_cast<uint32_t>(strlen(model)) + 1; local 1044 uint32_t count = static_cast<uint32_t>(strlen(software)) + 1; local [all...] |
H A D | android_hardware_location_ActivityRecognitionHardware.cpp | 83 int count) { 89 if (events == NULL || count <= 0) { 90 ALOGE("Invalid activity_callback. Count: %d, Events: %p", count, events); 108 jobjectArray events_array = env->NewObjectArray(count, event_class, NULL); 109 for (int i = 0; i < count; ++i) { 80 activity_callback( const activity_recognition_callback_procs_t* procs, const activity_event_t* events, int count) argument
|
H A D | android_media_AudioTrack.cpp | 231 // compute the frame count 548 int count = sizeInBytes; local 551 memcpy_to_i16_from_u8(dst, src, count);
|
H A D | android_net_LocalSocketImpl.cpp | 443 int count local 446 if (count < 0) { 452 fdArray = env->NewObjectArray(count, class_FileDescriptor, NULL); 458 for (int i = 0; i < count; i++) {
|
H A D | android_opengl_GLES10.cpp | 46 const GLvoid *ptr, GLsizei count); 48 const GLvoid *pointer, GLsizei count); 50 GLsizei stride, const GLvoid *pointer, GLsizei count); 52 GLsizei stride, const GLvoid *pointer, GLsizei count); 54 GLsizei stride, const GLvoid *pointer, GLsizei count); 56 GLsizei stride, const GLvoid *pointer, GLsizei count); 58 GLsizei stride, const GLvoid *pointer, GLsizei count); 62 GLboolean normalized, GLsizei stride, const GLvoid *pointer, GLsizei count) { 68 GLsizei stride, const GLvoid *pointer, GLsizei count) { 297 _remaining /= sizeof(CTYPE); // convert from bytes to item count 61 glVertexAttribPointerBounds(GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer, GLsizei count) argument 67 glVertexAttribIPointerBounds(GLuint indx, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei count) argument 749 android_glDrawArrays__III(JNIEnv *_env, jobject _this, jint mode, jint first, jint count) argument 760 android_glDrawElements__IIILjava_nio_Buffer_2(JNIEnv *_env, jobject _this, jint mode, jint count, jint type, jobject indices_buf) argument [all...] |
H A D | android_opengl_GLES10Ext.cpp | 46 const GLvoid *ptr, GLsizei count); 48 const GLvoid *pointer, GLsizei count); 50 GLsizei stride, const GLvoid *pointer, GLsizei count); 52 GLsizei stride, const GLvoid *pointer, GLsizei count); 54 GLsizei stride, const GLvoid *pointer, GLsizei count); 56 GLsizei stride, const GLvoid *pointer, GLsizei count); 58 GLsizei stride, const GLvoid *pointer, GLsizei count); 62 GLboolean normalized, GLsizei stride, const GLvoid *pointer, GLsizei count) { 68 GLsizei stride, const GLvoid *pointer, GLsizei count) { 297 _remaining /= sizeof(CTYPE); // convert from bytes to item count 61 glVertexAttribPointerBounds(GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer, GLsizei count) argument 67 glVertexAttribIPointerBounds(GLuint indx, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei count) argument [all...] |
H A D | android_opengl_GLES11.cpp | 46 const GLvoid *ptr, GLsizei count); 48 const GLvoid *pointer, GLsizei count); 50 GLsizei stride, const GLvoid *pointer, GLsizei count); 52 GLsizei stride, const GLvoid *pointer, GLsizei count); 54 GLsizei stride, const GLvoid *pointer, GLsizei count); 56 GLsizei stride, const GLvoid *pointer, GLsizei count); 58 GLsizei stride, const GLvoid *pointer, GLsizei count); 62 GLboolean normalized, GLsizei stride, const GLvoid *pointer, GLsizei count) { 68 GLsizei stride, const GLvoid *pointer, GLsizei count) { 297 _remaining /= sizeof(CTYPE); // convert from bytes to item count 61 glVertexAttribPointerBounds(GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer, GLsizei count) argument 67 glVertexAttribIPointerBounds(GLuint indx, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei count) argument 673 android_glDrawElements__IIII(JNIEnv *_env, jobject _this, jint mode, jint count, jint type, jint offset) argument [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | AutoDecodeCancel.cpp | 85 int count = 0; local 87 count += 1; 88 SkASSERT(count <= gCount); 97 SkASSERT(count == gCount);
|
H A D | Bitmap.cpp | 584 int count = p->readInt32(); local 585 if (count > 0) { 586 size_t size = count * sizeof(SkPMColor); 588 ctable = new SkColorTable(src, count); 644 int count = ctable->count(); local 645 p->writeInt32(count); 646 memcpy(p->writeInplace(count * sizeof(SkPMColor)), 647 ctable->lockColors(), count * sizeof(SkPMColor)); 831 if (ct0->count() ! [all...] |
H A D | BitmapFactory.cpp | 93 static void scaleDivRange(int32_t* divs, int count, float scale, int maxValue) { argument 94 for (int i = 0; i < count; i++) { 101 if (CC_UNLIKELY(divs[count - 1] > maxValue)) { 105 for (int i = count - 1; i >= 0; i--) {
|
H A D | MinikinUtils.cpp | 42 const uint16_t* buf, size_t start, size_t count, size_t bufSize) { 63 layout->doLayout(buf, start, count, bufSize, bidiFlags, minikinStyle, minikinPaint); 41 doLayout(Layout* layout, const Paint* paint, int bidiFlags, TypefaceImpl* typeface, const uint16_t* buf, size_t start, size_t count, size_t bufSize) argument
|
H A D | Paint.cpp | 514 static jfloat measureText_CIII(JNIEnv* env, jobject jpaint, jcharArray text, jint index, jint count, argument 520 if ((index | count) < 0 || (size_t)(index + count) > textLength) { 524 if (count == 0) { 534 MinikinUtils::doLayout(&layout, paint, bidiFlags, typeface, textArray, index, count, textLength); 546 int count = end - start; local 547 if ((start | count) < 0 || (size_t)end > textLength) { 551 if (count == 0) { 561 MinikinUtils::doLayout(&layout, paint, bidiFlags, typeface, textArray, start, count, textLength); 590 static int dotextwidths(JNIEnv* env, Paint* paint, TypefaceImpl* typeface, const jchar text[], int count, argument 618 getTextWidths___CIII_F(JNIEnv* env, jobject clazz, jlong paintHandle, jlong typefaceHandle, jcharArray text, jint index, jint count, jint bidiFlags, jfloatArray widths) argument 634 int count = dotextwidths(env, paint, typeface, textArray + start, end - start, widths, bidiFlags); local 639 doTextRunAdvances(JNIEnv *env, Paint *paint, TypefaceImpl* typeface, const jchar *text, jint start, jint count, jint contextCount, jboolean isRtl, jfloatArray advances, jint advancesIndex) argument 676 getTextRunAdvances___CIIIIZ_FI(JNIEnv* env, jobject clazz, jlong paintHandle, jlong typefaceHandle, jcharArray text, jint index, jint count, jint contextIndex, jint contextCount, jboolean isRtl, jfloatArray advances, jint advancesIndex) argument 703 doTextRunCursor(JNIEnv *env, Paint* paint, const jchar *text, jint start, jint count, jint flags, jint offset, jint opt) argument 761 getTextPath(JNIEnv* env, Paint* paint, TypefaceImpl* typeface, const jchar* text, jint count, jint bidiFlags, jfloat x, jfloat y, SkPath* path) argument 780 getTextPath___C(JNIEnv* env, jobject clazz, jlong paintHandle, jlong typefaceHandle, jint bidiFlags, jcharArray text, jint index, jint count, jfloat x, jfloat y, jlong pathHandle) argument 819 breakText(JNIEnv* env, const Paint& paint, TypefaceImpl* typeface, const jchar text[], int count, float maxWidth, jint bidiFlags, jfloatArray jmeasured, Paint::TextBufferDirection textBufferDirection) argument 853 breakTextC(JNIEnv* env, jobject clazz, jlong paintHandle, jlong typefaceHandle, jcharArray jtext, jint index, jint count, jfloat maxWidth, jint bidiFlags, jfloatArray jmeasuredWidth) argument 893 int count = env->GetStringLength(jtext); local 900 doTextBounds(JNIEnv* env, const jchar* text, int count, jobject bounds, const Paint& paint, TypefaceImpl* typeface, jint bidiFlags) argument 926 getCharArrayBounds(JNIEnv* env, jobject, jlong paintHandle, jlong typefaceHandle, jcharArray text, jint index, jint count, jint bidiFlags, jobject bounds) argument [all...] |
H A D | PathEffect.cpp | 38 int count = autoInterval.length() & ~1; // even number local 44 SkPathEffect* effect = SkDashPathEffect::Create(intervals, count, phase);
|
H A D | Shader.cpp | 97 size_t count = env->GetArrayLength(colorArray); local 100 AutoJavaFloatArray autoPos(env, posArray, count); 108 reinterpret_cast<const SkColor*>(colorValues), pos, count, 141 size_t count = env->GetArrayLength(colorArray); local 144 AutoJavaFloatArray autoPos(env, posArray, count); 152 reinterpret_cast<const SkColor*>(colorValues), pos, count, 180 size_t count = env->GetArrayLength(jcolors); local 183 AutoJavaFloatArray autoPos(env, jpositions, count); 191 reinterpret_cast<const SkColor*>(colors), pos, count);
|
H A D | SkiaCanvas.cpp | 95 virtual void drawPoints(const float* points, int count, const SkPaint& paint); 98 virtual void drawLines(const float* points, int count, const SkPaint& paint); 119 virtual void drawText(const uint16_t* text, const float* positions, int count, 122 virtual void drawPosText(const uint16_t* text, const float* positions, int count, 124 virtual void drawTextOnPath(const uint16_t* glyphs, int count, const SkPath& path, 139 void drawPoints(const float* points, int count, const SkPaint& paint, 238 int count = mCanvas->save(); local 240 return count; 291 int count = mCanvas->saveLayer(&bounds, paint, flags | SkCanvas::kMatrixClip_SaveFlag); local 293 return count; 299 int count = mCanvas->saveLayerAlpha(&bounds, alpha, flags | SkCanvas::kMatrixClip_SaveFlag); local 483 drawPoints(const float* points, int count, const SkPaint& paint, SkCanvas::PointMode mode) argument 501 drawPoints(const float* points, int count, const SkPaint& paint) argument 510 drawLines(const float* points, int count, const SkPaint& paint) argument 677 drawText(const uint16_t* text, const float* positions, int count, const SkPaint& paint, float x, float y, float boundsLeft, float boundsTop, float boundsRight, float boundsBottom) argument 690 drawPosText(const uint16_t* text, const float* positions, int count, int posCount, const SkPaint& paint) argument 706 drawTextOnPath(const uint16_t* glyphs, int count, const SkPath& path, float hOffset, float vOffset, const SkPaint& paint) argument [all...] |