Searched defs:pos (Results 126 - 150 of 185) sorted by relevance

12345678

/frameworks/base/core/java/android/widget/
H A DAdapterViewAnimator.java349 int modulo(int pos, int size) { argument
351 return (size + (pos % size)) % size;
H A DExpandableListView.java375 PositionMetadata pos;
408 pos = mConnector.getUnflattenedPos(childFlPos);
415 if (pos.position.type != lastItemType) {
416 if (pos.position.type == ExpandableListPosition.CHILD) {
438 lastItemType = pos.position.type;
453 indicator = getIndicator(pos);
460 pos.recycle();
472 * @param pos The flat list position of the item whose indicator
476 private Drawable getIndicator(PositionMetadata pos) { argument
479 if (pos
[all...]
H A DGridView.java288 * Fills the list from pos down to the end of the list view.
290 * @param pos The first position to put in the list
292 * @param nextTop The location where the top of the item associated with pos
298 private View fillDown(int pos, int nextTop) { argument
306 while (nextTop < end && pos < mItemCount) {
307 View temp = makeRow(pos, nextTop, true);
316 pos += mNumColumns;
360 for (int pos = startPos; pos < last; pos
397 fillUp(int pos, int nextBottom) argument
[all...]
H A DRemoteViewsAdapter.java638 private int getFarthestPositionFrom(int pos, int[] visibleWindow) { argument
646 int dist = Math.abs(index-pos);
H A DListView.java683 * Fills the list from pos down to the end of the list view.
685 * @param pos The first position to put in the list
687 * @param nextTop The location where the top of the item associated with pos
693 private View fillDown(int pos, int nextTop) { argument
701 while (nextTop < end && pos < mItemCount) {
703 boolean selected = pos == mSelectedPosition;
704 View child = makeAndAddView(pos, nextTop, true, mListPadding.left, selected);
710 pos++;
718 * Fills the list from pos up to the top of the list view.
720 * @param pos Th
727 fillUp(int pos, int nextBottom) argument
[all...]
/frameworks/base/media/java/android/media/session/
H A DMediaController.java793 * @param pos Position to move to, in milliseconds.
795 public void seekTo(long pos) { argument
797 mSessionBinder.seekTo(pos);
H A DMediaSession.java591 private void dispatchSeekTo(long pos) { argument
592 postToCallback(CallbackMessageHandler.MSG_SEEK_TO, pos);
951 * @param pos New position to move to, in milliseconds.
953 public void onSeekTo(long pos) { argument
1130 public void onSeekTo(long pos) { argument
1133 session.dispatchSeekTo(pos);
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsBackupAgent.java953 int pos = 0;
966 while (pos < bytes) {
967 int length = readInt(settings, pos);
968 pos += INTEGER_BYTE_COUNT;
969 String dataKey = length > 0 ? new String(settings, pos, length) : null;
970 pos += length;
971 length = readInt(settings, pos);
972 pos += INTEGER_BYTE_COUNT;
973 String dataValue = length > 0 ? new String(settings, pos, length) : null;
974 pos
1341 writeInt(byte[] out, int pos, int value) argument
1349 writeBytes(byte[] out, int pos, byte[] value) argument
1354 readInt(byte[] in, int pos) argument
[all...]
/frameworks/base/services/net/java/android/net/apf/
H A DApfFilter.java277 // position pos in the packet.
278 private String IPv6AddresstoString(int pos) { argument
283 if (pos < 0 || pos + 16 > array.length || pos + 16 < pos) {
286 byte[] addressBytes = Arrays.copyOfRange(array, pos, pos + 16);
/frameworks/base/tools/aapt/
H A DResourceTable.h135 status_t addPublic(const SourcePos& pos,
141 status_t addEntry(const SourcePos& pos,
152 status_t startBag(const SourcePos& pos,
162 status_t addBag(const SourcePos& pos,
199 void canAddEntry(const SourcePos& pos,
291 void setCurrentXmlPos(const SourcePos& pos) { mCurrentXmlPos = pos; } argument
297 Item(const SourcePos& pos,
332 Entry(const String16& name, const SourcePos& pos) argument
334 mItemFormat(ResTable_map::TYPE_ANY), mNameIndex(-1), mPos(pos)
408 ConfigList(const String16& name, const SourcePos& pos) argument
427 setPublicSourcePos(const SourcePos& pos) argument
449 Public(const SourcePos& pos, const String16& _comment, uint32_t _ident) argument
472 Type(const String16& name, const SourcePos& pos) argument
[all...]
H A DAaptAssets.cpp848 ssize_t pos = mSymbols.indexOfKey(name); local
849 if (pos < 0) {
856 mSymbols.editValueAt(pos).isJavaSymbol = entry.isJavaSymbol;
863 ssize_t pos = mNestedSymbols.indexOfKey(name); local
864 if (pos < 0) {
865 SourcePos pos; local
866 pos.error("Java symbol dir %s not defined\n", name.string());
871 status_t myerr = mNestedSymbols.valueAt(pos)->applyJavaSymbols(symbols);
1496 ssize_t pos = mSymbols.indexOfKey(name); local
1497 if (pos <
1498 SourcePos pos; local
[all...]
/frameworks/base/tools/aapt2/
H A DResourceParser.cpp1007 size_t pos = styleName.find_last_of(u'.'); local
1008 if (pos != std::string::npos) {
1011 styleName.substr(0, pos)));
/frameworks/native/libs/binder/tests/
H A DbinderLibTest.cpp205 size_t pos; local
213 pos = source->dataPosition();
214 if (Parcel::appendFrom(source, pos, bundleLen))
216 source->setDataPosition(pos + bundleLen);
/frameworks/rs/cpu_ref/
H A DrsCpuCore.cpp496 int pos = 2; local
500 sprintf(*outBuf + pos, (i % 4 ? "." : "|"));
501 ++pos;
503 sprintf(*outBuf + pos, "%02x", inBuf[i]);
504 pos += 2;
507 strcpy(*outBuf + pos, "...");
/frameworks/support/v4/java/android/support/v4/media/session/
H A DMediaControllerCompat.java690 * @param pos Position to move to, in milliseconds.
692 public abstract void seekTo(long pos); argument
1169 public void seekTo(long pos) { argument
1171 mBinder.seekTo(pos);
1413 public void seekTo(long pos) { argument
1414 MediaControllerCompatApi21.TransportControls.seekTo(mControlsObj, pos);
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/widget/
H A DAdapterHelperTest.java1005 boolean isItemLaidOut(int pos) { argument
1007 if (viewHolder.mOldPosition == pos) {
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DGridLayoutManager.java389 int pos = anchorInfo.mPosition;
391 while (pos < indexLimit) {
392 int next = getSpanIndex(recycler, state, pos + 1);
394 pos += 1;
400 anchorInfo.mPosition = pos;
455 private int getSpanIndex(RecyclerView.Recycler recycler, RecyclerView.State state, int pos) { argument
457 return mSpanSizeLookup.getCachedSpanIndex(pos, mSpanCount);
459 final int cached = mPreLayoutSpanIndexCache.get(pos, -1);
463 final int adapterPosition = recycler.convertPreLayoutPositionToPostLayout(pos);
467 + " not cached, not in the adapter. Pos:" + pos);
476 getSpanSize(RecyclerView.Recycler recycler, RecyclerView.State state, int pos) argument
[all...]
/frameworks/av/media/libstagefright/
H A DOggExtractor.cpp426 off64_t pos = timeUs * bps / 8000000ll; local
428 ALOGV("seeking to offset %lld", (long long)pos);
429 return seekToOffset(pos);
/frameworks/av/media/libstagefright/httplive/
H A DPlaylistFetcher.cpp1846 size_t pos = 0; local
1849 if (buffer->size() >= pos + 3 &&
1850 !memcmp("\xef\xbb\xbf", buffer->data() + pos, 3)) {
1851 pos += 3;
1855 if (buffer->size() < pos + 6 ||
1856 memcmp("WEBVTT", buffer->data() + pos, 6)) {
1859 pos += 6;
1861 if (buffer->size() == pos) {
1865 uint8_t sep = buffer->data()[pos];
/frameworks/av/media/libstagefright/matroska/
H A DMatroskaExtractor.cpp302 long long pos; local
309 res = mCluster->Parse(pos, len);
327 mCluster, nextCluster, pos, len);
343 res = mCluster->Parse(pos, len);
410 long len; long long pos; local
411 pSegment->ParseCues(pEntry->pos, pos, len);
806 long long pos; local
807 if (ebmlHeader.Parse(mReader, pos) < 0) {
816 mkvparser::Segment::CreateInstance(mReader, pos, mSegmen
1376 long long pos; local
[all...]
/frameworks/base/core/jni/android/graphics/
H A DPaint.cpp565 uint16_t* glyphs, SkPoint* pos)
566 : layout(layout), path(path), x(x), y(y), paint(paint), glyphs(glyphs), pos(pos) {
572 pos[i].fX = x + layout.getX(i);
573 pos[i].fY = y + layout.getY(i);
576 paint->getPosTextPath(glyphs + start, (end - start) << 1, pos + start, path);
578 paint->getPosTextPath(glyphs + start, (end - start) << 1, pos + start, &tmpPath);
589 SkPoint* pos; member in class:android::PaintGlue::GetTextFunctor
599 SkPoint* pos = new SkPoint[nGlyphs]; local
605 GetTextFunctor f(layout, path, x, y, paint, glyphs, pos);
564 GetTextFunctor(const Layout& layout, SkPath* path, jfloat x, jfloat y, Paint* paint, uint16_t* glyphs, SkPoint* pos) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_util_Binder.cpp1015 static bool push_eventlog_string(char** pos, const char* end, const char* str) { argument
1018 if (end - *pos < space_needed) {
1020 end - *pos, space_needed);
1023 **pos = EVENT_TYPE_STRING;
1024 (*pos)++;
1025 memcpy(*pos, &len, sizeof(len));
1026 *pos += sizeof(len);
1027 memcpy(*pos, str, len);
1028 *pos += len;
1032 static bool push_eventlog_int(char** pos, cons argument
1076 char* pos = &buf[2]; local
[all...]
/frameworks/base/media/java/android/media/
H A DWebVttRenderer.java192 private boolean replaceEscape(String escape, String replacement, int pos) { argument
193 if (mLine.startsWith(escape, pos)) {
194 mData.append(mLine.substring(mHandledLen, pos));
196 mHandledLen = pos + escape.length();
197 pos = mHandledLen - 1;
206 for (int pos = mHandledLen; pos < mLine.length(); pos++) {
207 if (mLine.charAt(pos) == '&') {
208 if (replaceEscape("&amp;", "&", pos) ||
[all...]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
H A DMultiSelectManager.java382 * @param pos The anchor position for the selection range.
384 void startRangeSelection(int pos) { argument
385 attemptSelect(mAdapter.getModelId(pos));
386 setSelectionRangeBegin(pos);
395 * @param pos The new end position for the selection range.
397 void snapRangeSelection(int pos) { argument
400 mRanger.snapSelection(pos);
1060 public boolean isLayoutItem(int pos) { argument
1063 RecyclerView.ViewHolder vh = mView.findViewHolderForAdapterPosition(pos);
1074 public boolean hasView(int pos) { argument
[all...]
/frameworks/base/services/core/java/com/android/server/media/
H A DMediaSessionRecord.java1030 public void seekTo(long pos) { argument
1032 mCb.onSeekTo(pos);
1269 public void seekTo(long pos) throws RemoteException { argument
1271 mSessionCb.seekTo(pos);

Completed in 6040 milliseconds

12345678