/frameworks/base/core/java/android/os/ |
H A D | Parcel.java | 237 private static native void nativeSetDataPosition(int nativePtr, int pos); argument 377 * @param pos New offset in the parcel; must be between 0 and 380 public final void setDataPosition(int pos) { argument 381 nativeSetDataPosition(mNativePtr, pos);
|
/frameworks/base/core/java/android/widget/ |
H A D | ListView.java | 653 * Fills the list from pos down to the end of the list view. 655 * @param pos The first position to put in the list 657 * @param nextTop The location where the top of the item associated with pos 663 private View fillDown(int pos, int nextTop) { argument 671 while (nextTop < end && pos < mItemCount) { 673 boolean selected = pos == mSelectedPosition; 674 View child = makeAndAddView(pos, nextTop, true, mListPadding.left, selected); 680 pos++; 688 * Fills the list from pos up to the top of the list view. 690 * @param pos Th 697 fillUp(int pos, int nextBottom) argument [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | Canvas.cpp | 862 jfloatArray pos, SkPaint* paint) { 865 float* posArray = pos ? env->GetFloatArrayElements(pos, NULL) : NULL; 866 int posCount = pos ? env->GetArrayLength(pos) >> 1: 0; 882 if (pos) { 883 env->ReleaseFloatArrayElements(pos, posArray, 0); 890 jfloatArray pos, 894 float* posArray = pos ? env->GetFloatArrayElements(pos, NUL 860 drawPosText___CII_FPaint(JNIEnv* env, jobject, SkCanvas* canvas, jcharArray text, int index, int count, jfloatArray pos, SkPaint* paint) argument 888 drawPosText__String_FPaint(JNIEnv* env, jobject, SkCanvas* canvas, jstring text, jfloatArray pos, SkPaint* paint) argument [all...] |
H A D | Paint.cpp | 635 jint pos = offset - start; local 638 if (pos < count) { 639 pos += 1; 643 while (pos < count && scalarArray[pos] == 0) { 644 ++pos; 648 if (pos > 0) { 649 --pos; 653 while (pos > 0 && scalarArray[pos] [all...] |
/frameworks/base/core/jni/ |
H A D | android_util_Binder.cpp | 965 static bool push_eventlog_string(char** pos, const char* end, const char* str) { argument 968 if (end - *pos < space_needed) { 970 (end - *pos), space_needed); 973 **pos = EVENT_TYPE_STRING; 974 (*pos)++; 975 memcpy(*pos, &len, sizeof(len)); 976 *pos += sizeof(len); 977 memcpy(*pos, str, len); 978 *pos += len; 982 static bool push_eventlog_int(char** pos, cons argument 1023 char* pos = &buf[2]; local [all...] |
H A D | android_view_GLES20Canvas.cpp | 645 jfloatArray pos, SkPaint* paint) { 647 jfloat* positions = env->GetFloatArrayElements(pos, NULL); 651 env->ReleaseFloatArrayElements(pos, positions, JNI_ABORT); 657 jfloatArray pos, SkPaint* paint) { 659 jfloat* positions = env->GetFloatArrayElements(pos, NULL); 663 env->ReleaseFloatArrayElements(pos, positions, JNI_ABORT); 643 android_view_GLES20Canvas_drawPosTextArray(JNIEnv* env, jobject clazz, OpenGLRenderer* renderer, jcharArray text, jint index, jint count, jfloatArray pos, SkPaint* paint) argument 655 android_view_GLES20Canvas_drawPosText(JNIEnv* env, jobject clazz, OpenGLRenderer* renderer, jstring text, jint start, jint end, jfloatArray pos, SkPaint* paint) argument
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Canvas.java | 1491 * the pos array. 1499 * @param pos Array of [x,y] positions, used to position each 1504 public void drawPosText(char[] text, int index, int count, float[] pos, Paint paint) { argument 1505 if (index < 0 || index + count > text.length || count*2 > pos.length) { 1508 native_drawPosText(mNativeCanvas, text, index, count, pos, 1514 * the pos array. 1520 * @param pos Array of [x,y] positions, used to position each character 1524 public void drawPosText(String text, float[] pos, Paint paint) { argument 1525 if (text.length()*2 > pos.length) { 1528 native_drawPosText(mNativeCanvas, text, pos, pain 1744 native_drawPosText(int nativeCanvas, char[] text, int index, int count, float[] pos, int paint) argument 1748 native_drawPosText(int nativeCanvas, String text, float[] pos, int paint) argument [all...] |
/frameworks/base/tools/aapt/ |
H A D | AaptAssets.cpp | 1939 ssize_t pos = mSymbols.indexOfKey(name); local 1940 if (pos < 0) { 1947 mSymbols.editValueAt(pos).isJavaSymbol = entry.isJavaSymbol; 1954 ssize_t pos = mNestedSymbols.indexOfKey(name); local 1955 if (pos < 0) { 1956 SourcePos pos; local 1957 pos.error("Java symbol dir %s not defined\n", name.string()); 1962 status_t myerr = mNestedSymbols.valueAt(pos)->applyJavaSymbols(symbols); 2558 ssize_t pos = mSymbols.indexOfKey(name); local 2559 if (pos < 2560 SourcePos pos; local [all...] |
H A D | AaptAssets.h | 383 status_t addSymbol(const String8& name, int32_t value, const SourcePos& pos) { argument 384 if (!check_valid_symbol_name(name, pos, "symbol")) { 387 AaptSymbolEntry& sym = edit_symbol(name, &pos); 394 const SourcePos& pos) { 395 if (!check_valid_symbol_name(name, pos, "symbol")) { 398 AaptSymbolEntry& sym = edit_symbol(name, &pos); 404 status_t makeSymbolPublic(const String8& name, const SourcePos& pos) { argument 405 if (!check_valid_symbol_name(name, pos, "symbol")) { 408 AaptSymbolEntry& sym = edit_symbol(name, &pos); 413 status_t makeSymbolJavaSymbol(const String8& name, const SourcePos& pos) { argument 393 addStringSymbol(const String8& name, const String8& value, const SourcePos& pos) argument 422 appendComment(const String8& name, const String16& comment, const SourcePos& pos) argument 448 addNestedSymbol(const String8& name, const SourcePos& pos) argument 475 check_valid_symbol_name(const String8& symbol, const SourcePos& pos, const char* label) argument 482 edit_symbol(const String8& symbol, const SourcePos* pos) argument [all...] |
H A D | Resource.cpp | 1673 ssize_t pos = idents.indexOf(origOrder.itemAt(a)); local 1674 if (pos >= 0) { 1728 ssize_t pos = idents.indexOf(origOrder.itemAt(a)); local 1729 if (pos >= 0) { 1767 ssize_t pos = idents.indexOf(origOrder.itemAt(a)); local 1768 if (pos >= 0) { 1845 String8(name).string(), (int)pos); 1919 ssize_t pos = idents.indexOf(origOrder.itemAt(a)); local 1920 if (pos >= 0) { 1951 String8(name).string(), (int)pos); [all...] |
H A D | ResourceTable.cpp | 1961 void ResourceTable::canAddEntry(const SourcePos& pos, argument 1964 sp<Type> t = getType(package, type, pos); 2306 const char16_t* pos = name; local 2307 while (pos < end) { 2308 const char16_t* start = pos; 2309 while (pos < end && *pos != '|') { 2310 pos++; 2313 String16 nameStr(start, pos-start); 2334 pos 3041 const SourcePos& pos = c->getEntries().valueAt(k)->getPos(); local 3468 int pos = -1; local [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Canvas_Delegate.java | 1114 int count, float[] pos, 1123 String text, float[] pos, 1112 native_drawPosText(int nativeCanvas, char[] text, int index, int count, float[] pos, int paint) argument 1122 native_drawPosText(int nativeCanvas, String text, float[] pos, int paint) argument
|
/frameworks/base/core/java/android/view/ |
H A D | GLES20Canvas.java | 1083 public void drawPosText(char[] text, int index, int count, float[] pos, Paint paint) { argument 1084 if (index < 0 || index + count > text.length || count * 2 > pos.length) { 1090 nDrawPosText(mRenderer, text, index, count, pos, paint.mNativePaint); 1097 float[] pos, int paint); 1101 public void drawPosText(String text, float[] pos, Paint paint) { argument 1102 if (text.length() * 2 > pos.length) { 1108 nDrawPosText(mRenderer, text, 0, text.length(), pos, paint.mNativePaint); 1115 float[] pos, int paint); 1096 nDrawPosText(int renderer, char[] text, int index, int count, float[] pos, int paint) argument 1114 nDrawPosText(int renderer, String text, int start, int end, float[] pos, int paint) argument
|
H A D | MotionEvent.java | 1285 // Private value for history pos that obtains the current sample. 2256 * @param pos Which historical value to return; must be less than 2265 public final long getHistoricalEventTime(int pos) { argument 2266 return nativeGetEventTimeNanos(mNativePtr, pos) / NS_PER_MS; 2279 * @param pos Which historical value to return; must be less than 2291 public final long getHistoricalEventTimeNano(int pos) { argument 2292 return nativeGetEventTimeNanos(mNativePtr, pos); 2299 * @param pos Which historical value to return; must be less than 2306 public final float getHistoricalX(int pos) { argument 2307 return nativeGetAxisValue(mNativePtr, AXIS_X, 0, pos); 2321 getHistoricalY(int pos) argument 2336 getHistoricalPressure(int pos) argument 2351 getHistoricalSize(int pos) argument 2366 getHistoricalTouchMajor(int pos) argument 2381 getHistoricalTouchMinor(int pos) argument 2396 getHistoricalToolMajor(int pos) argument 2411 getHistoricalToolMinor(int pos) argument 2426 getHistoricalOrientation(int pos) argument 2443 getHistoricalAxisValue(int axis, int pos) argument 2461 getHistoricalX(int pointerIndex, int pos) argument 2479 getHistoricalY(int pointerIndex, int pos) argument 2497 getHistoricalPressure(int pointerIndex, int pos) argument 2515 getHistoricalSize(int pointerIndex, int pos) argument 2533 getHistoricalTouchMajor(int pointerIndex, int pos) argument 2551 getHistoricalTouchMinor(int pointerIndex, int pos) argument 2569 getHistoricalToolMajor(int pointerIndex, int pos) argument 2587 getHistoricalToolMinor(int pointerIndex, int pos) argument 2605 getHistoricalOrientation(int pointerIndex, int pos) argument 2624 getHistoricalAxisValue(int axis, int pointerIndex, int pos) argument 2644 getHistoricalPointerCoords(int pointerIndex, int pos, PointerCoords outPointerCoords) argument [all...] |
/frameworks/av/media/libstagefright/ |
H A D | MPEG4Writer.cpp | 104 // @arg pos location the value must be in. 105 void set(const TYPE& value, uint32_t pos) { argument 106 CHECK_LT(pos, mTotalNumTableEntries * mEntryCapacity); 109 uint32_t iterations = (pos / (mElementCapacity * mEntryCapacity)); 117 (*it)[(pos % (mElementCapacity * mEntryCapacity))] = value; 122 // @arg pos location the value must be in. 124 bool get(TYPE& value, uint32_t pos) const { 125 if (pos >= mTotalNumTableEntries * mEntryCapacity) { 130 uint32_t iterations = (pos / (mElementCapacity * mEntryCapacity)); 138 value = (*it)[(pos 154 uint32_t pos = nEntries * mEntryCapacity + nValues; local [all...] |
/frameworks/av/services/audioflinger/ |
H A D | AudioFlinger.h | 919 void setPosition(uint32_t pos) { mPosition = pos; } argument
|
/frameworks/base/libs/androidfw/ |
H A D | ResourceTypes.cpp | 1166 void ResXMLParser::getPosition(ResXMLParser::ResXMLPosition* pos) const 1168 pos->eventCode = mEventCode; 1169 pos->curNode = mCurNode; 1170 pos->curExt = mCurExt; 1173 void ResXMLParser::setPosition(const ResXMLParser::ResXMLPosition& pos) argument 1175 mEventCode = pos.eventCode; 1176 mCurNode = pos.curNode; 1177 mCurExt = pos.curExt; 2853 TABLE_NOISY(ALOGV("Chunk: type=0x%x, headerSize=0x%x, size=0x%x, pos=%p\n", 3436 uint32_t pos local 4524 const char16_t* pos = s; local [all...] |
/frameworks/ex/common/java/com/android/ex/editstyledtext/ |
H A D | EditStyledText.java | 874 public int getForegroundColor(int pos) { argument 875 if (pos < 0 || pos > getText().length()) { 879 getText().getSpans(pos, pos, ForegroundColorSpan.class); 1619 public void setEndPos(int pos) { argument 1621 Log.d(LOG_TAG, "--- setSelectedEndPos:" + pos); 1623 mCurEnd = pos; 1744 int pos = current; 1745 for (; pos > [all...] |
/frameworks/base/services/java/com/android/server/wm/ |
H A D | WindowManagerService.java | 871 private void placeWindowAfter(WindowState pos, WindowState window) { argument 872 final WindowList windows = pos.getWindowList(); 873 final int i = windows.indexOf(pos); 876 + (i+1) + " of " + windows.size() + " (after " + pos + ")"); 881 private void placeWindowBefore(WindowState pos, WindowState window) { argument 882 final WindowList windows = pos.getWindowList(); 883 final int i = windows.indexOf(pos); 886 + i + " of " + windows.size() + " (before " + pos + ")"); 980 WindowState pos = null; 993 pos 1397 moveInputMethodDialogsLocked(int pos) argument [all...] |