/frameworks/base/core/java/android/content/ |
H A D | IntentFilter.java | 282 int pos = findStringInSet(set, string, lengths, lenPos); 283 if (pos < 0) return set; 286 int copyLen = N-(pos+1); 288 System.arraycopy(set, pos+1, set, pos, copyLen); 296 if (pos > 0) System.arraycopy(set, 0, newSet, 0, pos); 297 if ((pos+1) < N) System.arraycopy(set, pos+1, newSet, pos, [all...] |
/frameworks/base/tools/orientationplot/ |
H A D | orientationplot.py | 44 self.pos = 0 48 index = self.buffer.find('\n', self.pos) 50 result = self.buffer[self.pos:index] 51 self.pos = index + 1 54 self.buffer = self.buffer[self.pos:] 55 self.pos = 0 68 self.pos = 0
|
/frameworks/av/services/audioflinger/ |
H A D | AudioPolicyService.cpp | 1080 size_t pos = ((*curSize - 1 ) / size + 1) * size; local 1082 if (pos + size > *totSize) { 1083 while (pos + size > *totSize) { 1088 *curSize = pos + size; 1089 return pos; 1098 size_t pos = growParamSize(param, sizeof(short), curSize, totSize); local 1099 *(short *)((char *)param + pos) = (short)atoi(node->value); 1100 ALOGV("readParamValue() reading short %d", *(short *)((char *)param + pos)); 1103 size_t pos = growParamSize(param, sizeof(int), curSize, totSize); local 1104 *(int *)((char *)param + pos) 1108 size_t pos = growParamSize(param, sizeof(float), curSize, totSize); local 1113 size_t pos = growParamSize(param, sizeof(bool), curSize, totSize); local [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | RemoteViews.java | 377 final int[] pos = new int[2]; 378 v.getLocationOnScreen(pos); 381 rect.left = (int) (pos[0] * appScale + 0.5f); 382 rect.top = (int) (pos[1] * appScale + 0.5f); 383 rect.right = (int) ((pos[0] + v.getWidth()) * appScale + 0.5f); 384 rect.bottom = (int) ((pos[1] + v.getHeight()) * appScale + 0.5f); 457 final int[] pos = new int[2]; 458 view.getLocationOnScreen(pos); 461 rect.left = (int) (pos[0] * appScale + 0.5f); 462 rect.top = (int) (pos[ [all...] |
H A D | RemoteViewsAdapter.java | 334 final Integer pos = position; 338 if (mReferences.containsKey(pos)) { 339 refs = mReferences.get(pos); 342 mReferences.put(pos, refs); 357 final Integer pos = position; 358 if (mReferences.containsKey(pos)) { 360 final LinkedList<RemoteViewsFrameLayout> refs = mReferences.get(pos); 369 mReferences.remove(pos); 678 private int getFarthestPositionFrom(int pos, ArrayList<Integer> visibleWindow) { argument 685 int dist = Math.abs(i-pos); [all...] |
H A D | GridView.java | 264 * Fills the list from pos down to the end of the list view. 266 * @param pos The first position to put in the list 268 * @param nextTop The location where the top of the item associated with pos 274 private View fillDown(int pos, int nextTop) { argument 282 while (nextTop < end && pos < mItemCount) { 283 View temp = makeRow(pos, nextTop, true); 292 pos += mNumColumns; 335 for (int pos = startPos; pos < last; pos 372 fillUp(int pos, int nextBottom) argument [all...] |
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/graphics/java/android/graphics/drawable/ |
H A D | DrawableContainer.java | 519 final int pos = mNumChildren; 521 if (pos >= mDrawables.length) { 522 growArray(pos, pos+10); 528 mDrawables[pos] = dr; 537 return pos;
|
H A D | AnimationDrawable.java | 343 int pos = super.addChild(dr); 344 mDurations[pos] = dur;
|
/frameworks/opt/vcard/java/com/android/vcard/ |
H A D | VCardParserImpl_V21.java | 768 int pos = firstString.length() - 1; 769 while (firstString.charAt(pos) != '=') { 772 builder.append(firstString.substring(0, pos + 1)); 782 pos = line.length() - 1; 783 while (line.charAt(pos) != '=') { 785 builder.append(line.substring(0, pos + 1));
|
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
H A D | c3_14pf.cpp | 389 Word16 pos; local 586 pos = ipos[2]; 589 ipos[0] = pos; 706 /* index = pos/5 */ 710 /* track = pos%5 */
|
H A D | c4_17pf.cpp | 403 Word16 pos; local 653 pos = ipos[3]; 657 ipos[0] = pos; 778 /* index = pos/5 */ 782 /* track = pos%5 */
|
/frameworks/base/core/java/android/net/ |
H A D | SSLCertificateSocketFactory.java | 288 int pos = 0; 290 result[pos++] = (byte) s.length; 292 result[pos++] = b;
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
H A D | MediaPlayerMetadataParserTest.java | 73 final int pos = mParcel.dataPosition(); 76 mParcel.writeInt(pos - offset); 77 mParcel.setDataPosition(pos);
|
/frameworks/base/tests/RenderScriptTests/LivePreview/src/com/android/rs/livepreview/ |
H A D | CameraPreviewActivity.java | 161 View view, int pos, long id) { 162 if (mCurrentCameraId != pos) { 163 setUpCamera(pos);
|
/frameworks/wilhelm/src/itf/ |
H A D | IPlay.c | 225 SLmillisecond pos = audioPlayer->mSeek.mPos; local 226 if (SL_TIME_UNKNOWN != pos) { 227 position = pos;
|
/frameworks/av/media/libstagefright/ |
H A D | WAVExtractor.cpp | 391 int64_t pos = (seekTimeUs * mSampleRate) / 1000000 * mNumChannels * (mBitsPerSample >> 3); local 392 if (pos > mSize) { 393 pos = mSize; 395 mCurrentPos = pos + mOffset;
|
/frameworks/base/cmds/installd/ |
H A D | utils.c | 673 char *pos = path; local 675 pos = create_dir_path(path, dir->parent); 680 strcpy(pos, dir->name); 681 pos += strlen(pos); 682 *pos = '/'; 683 pos++; 684 *pos = 0; 685 return pos;
|
/frameworks/base/core/java/android/view/ |
H A D | GLES20RecordingCanvas.java | 221 public void drawPosText(char[] text, int index, int count, float[] pos, Paint paint) { argument 222 super.drawPosText(text, index, count, pos, paint); 227 public void drawPosText(String text, float[] pos, Paint paint) { argument 228 super.drawPosText(text, pos, paint);
|
/frameworks/base/services/java/com/android/server/wm/ |
H A D | WindowManagerService.java | 874 private void placeWindowAfter(WindowState pos, WindowState window) { argument 875 final WindowList windows = pos.getWindowList(); 876 final int i = windows.indexOf(pos); 879 + (i+1) + " of " + windows.size() + " (after " + pos + ")"); 884 private void placeWindowBefore(WindowState pos, WindowState window) { argument 885 final WindowList windows = pos.getWindowList(); 886 final int i = windows.indexOf(pos); 889 + i + " of " + windows.size() + " (before " + pos + ")"); 1005 WindowState pos = null; 1018 pos 1422 moveInputMethodDialogsLocked(int pos) argument [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/core/java/android/text/ |
H A D | MeasuredText.java | 85 void setPos(int pos) { argument 86 mPos = pos - mTextStart;
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
H A D | TextViewWordLimitsTest.java | 70 * @param pos Position to expand word around 79 private void verifyWordLimits(String text, int pos, int correctStart, int correctEnd) argument 83 long limits = (Long)mGetWordLimits.invoke(mTv, new Object[] {new Integer(pos)});
|
/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/media/java/android/media/ |
H A D | Metadata.java | 536 final int pos = mKeyToPosMap.get(key); 538 mParcel.setDataPosition(pos);
|