Searched refs:position (Results 376 - 400 of 821) sorted by relevance

<<11121314151617181920>>

/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DGridLayoutManager.java209 // to the target position.
266 // -2 is a target position that LinearSmoothScroller can never find until
463 * The focused position, it's not the currently visually aligned position
464 * but it is the final position that we intend to focus on. If there are
470 * A view can have multiple alignment position, this is the index of which
563 * How to position child in secondary direction.
606 * Allow DPAD key to navigate out at the front of the View (where position = 0),
872 int position, int subposition) {
878 position, subpositio
871 fireOnChildViewHolderSelected(RecyclerView parent, RecyclerView.ViewHolder child, int position, int subposition) argument
882 fireOnChildViewHolderSelectedAndPositioned(RecyclerView parent, RecyclerView.ViewHolder child, int position, int subposition) argument
1039 getViewForPosition(int position) argument
1241 measureScrapChild(int position, int widthSpec, int heightSpec, int[] measuredDimension) argument
2578 scrollToPosition(int position) argument
2583 smoothScrollToPosition(RecyclerView recyclerView, State state, int position) argument
2588 setSelection(int position, int primaryScrollExtra) argument
2593 setSelectionSmooth(int position) argument
2597 setSelectionWithSub(int position, int subposition, int primaryScrollExtra) argument
2602 setSelectionSmoothWithSub(int position, int subposition) argument
2614 setSelection(int position, int subposition, boolean smooth, int primaryScrollExtra) argument
2622 scrollToSelection(int position, int subposition, boolean smooth, int primaryScrollExtra) argument
2658 startPositionSmoothScroller(int position) argument
[all...]
H A DObjectAdapter.java45 * @param positionStart The position of the first item that changed.
55 * @param positionStart The position of the first inserted item.
65 * @param positionStart The position of the first removed item.
185 * @param positionStart Starting position of the changed items.
205 * @param positionStart Starting position of the removed items.
264 * Returns the item for the given position.
266 public abstract Object get(int position); argument
269 * Returns the id for the given position.
271 public long getId(int position) { argument
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/picker/
H A DPicker.java253 int position = value - mColumns.get(columnIndex).getMinValue();
255 columnView.setSelectedPositionSmooth(position);
257 columnView.setSelectedPosition(position);
405 public void onBindViewHolder(ViewHolder holder, int position) { argument
407 holder.textView.setText(mData.getLabelFor(mData.getMinValue() + position));
410 (mColumnViews.get(mColIndex).getSelectedPosition() == position),
430 int position, int subposition) {
437 int newValue = mColumns.get(colIndex).getMinValue() + position;
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DLinearLayoutManagerTest.java93 int position) {
94 super.onBindViewHolder(holder, position);
95 if (position < consecutiveFocusablesCount) {
112 // adapter position of the currently focused item.
118 assertThat("Child at position " + focusIndex + " should be focused",
121 // adapter position of the item (whether focusable or not) that just becomes fully
124 // The VH of the above adapter position
133 // adapter position of the currently focused item.
140 assertThat("Child at position " + focusIndex + " should be focused",
179 int position) {
[all...]
H A DStaggeredGridLayoutManagerBaseConfigSetTest.java99 int position) {
100 super.onBindViewHolder(holder, position);
127 assertNotNull(logPrefix + " child position 0 should be laid out", child0);
128 assertNotNull(logPrefix + " child position 0 should be laid out", child1);
159 public void onBoundItem(TestViewHolder vh, int position) {
163 lp.setFullSpan((position * 7) % (mConfig.mSpanCount + 1) == 0);
216 + " global pos must match when scrolling in reverse for position ";
357 int position) {
358 super.onBindViewHolder(holder, position);
405 void onBoundItem(TestViewHolder vh, int position) {
[all...]
H A DRecyclerViewAnimationsTest.java67 int position) {
68 super.onBindViewHolder(holder, position);
188 public long getItemId(int position) {
189 if (useBadIds.get() && position == 5) {
190 return super.getItemId(position) - 1;
192 return super.getItemId(position);
603 public void onBindViewHolder(TestViewHolder holder, int position) {
604 super.onBindViewHolder(holder, position);
857 public int getItemViewType(int position) {
858 return position
1555 findByPos(RecyclerView recyclerView, RecyclerView.Recycler recycler, RecyclerView.State state, int position) argument
[all...]
/frameworks/wilhelm/tests/sandbox/
H A Dxaplay.c52 XAmillisecond seekPos = XA_TIME_UNKNOWN; // seek to this position initially
136 XAmillisecond position; local
137 result = (*caller)->GetPosition(caller, &position);
141 printf("XA_PLAYEVENT_HEADATEND current position=%u ms\n", position);
145 printf("XA_PLAYEVENT_HEADATNEWPOS current position=%u ms\n", position);
149 printf("XA_PLAYEVENT_HEADATMARKER current position=%u ms\n", position);
211 // display position periodicall
213 XAmillisecond position; local
560 XAmillisecond position; local
[all...]
/frameworks/opt/photoviewer/src/com/android/ex/photo/
H A DPhotoViewController.java160 /** The listeners wanting full screen state for each screen position */
520 public void addScreenListener(int position, OnScreenListener listener) { argument
521 mScreenListeners.put(position, listener);
525 public void removeScreenListener(int position) { argument
526 mScreenListeners.remove(position);
681 public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { argument
683 OnScreenListener before = mScreenListeners.get(position - 1);
687 OnScreenListener after = mScreenListeners.get(position + 1);
695 public void onPageSelected(int position) { argument
696 mCurrentPhotoIndex = position;
799 setViewActivated(int position) argument
858 getPhotoAccessibilityAnnouncement(int position) argument
928 onNewPhotoLoaded(int position) argument
[all...]
/frameworks/support/core-ui/tests/java/android/support/v4/view/
H A DBaseViewPagerTest.java114 protected void configureInstantiatedItem(View view, int position) { argument
115 switch (position) {
150 public void destroyItem(ViewGroup container, int position, Object object) { argument
157 return ((ViewHolder) object).position;
166 public CharSequence getPageTitle(int position) { argument
167 return mEntries.get(position).first;
172 final int position; field in class:BaseViewPagerTest.BasePagerAdapter.ViewHolder
174 public ViewHolder(View view, int position) { argument
176 this.position = position;
183 instantiateItem(ViewGroup container, int position) argument
198 instantiateItem(ViewGroup container, int position) argument
221 instantiateItem(ViewGroup container, int position) argument
[all...]
/frameworks/base/core/java/android/util/apk/
H A DApkSignatureSchemeV2Verifier.java770 int originalPosition = source.position();
772 source.position(0);
774 source.position(start);
779 source.position(0);
781 source.position(originalPosition);
787 * position of this buffer.
789 * <p>This method reads the next {@code size} bytes at this buffer's current position,
791 * {@code size}, byte order set to this buffer's byte order; and then increments the position by
800 int position = source.position();
1010 MemoryMappedFileDataSource(FileDescriptor fd, long position, long size) argument
[all...]
/frameworks/wilhelm/tests/examples/
H A DslesTestDecodeAac.cpp208 SLmillisecond position; local
209 SLresult res = (*caller)->GetPosition(caller, &position);
212 printf("SL_PLAYEVENT_HEADATMARKER position=%u ms\n", position);
215 printf("SL_PLAYEVENT_HEADATNEWPOS position=%u ms\n", position);
218 printf("SL_PLAYEVENT_HEADATEND position=%u ms, all decoded data has been received\n",
219 position);
384 /* Periodically ask for position and duration */
386 SLmillisecond position; local
568 SLmillisecond position; local
[all...]
/frameworks/av/include/media/
H A DMmapStreamInterface.h93 * Read current read/write position in the mmap buffer with associated time stamp.
95 * \param[out] position address at which the mmap read/write position should be returned.
97 * \return OK if the position is successfully returned.
99 * NOT_ENOUGH_DATA if the position cannot be retrieved
102 virtual status_t getMmapPosition(struct audio_mmap_position *position) = 0;
/frameworks/av/services/oboeservice/
H A DAAudioServiceStreamMMAP.cpp245 struct audio_mmap_position position; local
250 status_t status = mMmapStream->getMmapPosition(&position);
256 mFramesRead.update32(position.position_frames);
258 *timeNanos = position.time_nanoseconds;
/frameworks/base/core/java/android/database/
H A DCursor.java63 * Returns the current position of the cursor in the row set.
67 * the last entry, at a position of count().
69 * @return the current cursor position.
75 * current position. Positive offsets move forwards, negative offsets move
76 * backwards. If the final position is outside of the bounds of the result
77 * set then the resultant position will be pinned to -1 or count() depending
83 * the position will be pinned at -1, and false will be returned.
85 * @param offset the offset to be applied from the current position.
91 * Move the cursor to an absolute position. The valid
92 * range of values is -1 &lt;= position
100 moveToPosition(int position) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DCursorTreeAdapter.java48 * The map of a group position to the group's children cursor helper (the
216 * already moved to the correct position.
230 * already moved to the correct position.
260 * already moved to the correct position.
274 * already moved to the correct position.
433 long getId(int position) { argument
435 if (mCursor.moveToPosition(position)) {
445 Cursor moveTo(int position) { argument
446 if (mDataValid && (mCursor != null) && mCursor.moveToPosition(position)) {
/frameworks/base/core/java/org/apache/http/conn/ssl/
H A DAndroidDistinguishedNameParser.java149 beg = pos; // store '#' position
313 // specified 'position' and the next char
317 private int getByte(int position) { argument
318 if (position + 1 >= length) {
324 b1 = chars[position];
335 b2 = chars[position + 1];
/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListManagedCursor.java55 public void onItemClick(AdapterView parent, View view, int position, long id) { argument
/frameworks/base/libs/common_time/
H A Dclock_recovery.cpp108 void ClockRecoveryLoop::reset(bool position, bool frequency) { argument
110 reset_l(position, frequency);
307 void ClockRecoveryLoop::reset_l(bool position, bool frequency) {
310 if (position) {
/frameworks/base/libs/hwui/
H A DGlop.h106 const void* position; member in struct:android::uirenderer::Glop::Mesh::Vertices
/frameworks/base/media/java/android/media/
H A DImageUtils.java82 * starting from position zero, and the destination image will be rewound to
137 int srcPos = srcBuffer.position();
146 int srcOffset = srcBuffer.position();
147 int dstOffset = dstBuffer.position();
166 srcBuffer.position(srcPos);
/frameworks/base/opengl/java/android/opengl/
H A DETC1Util.java162 headerBuffer.put(ioBuffer, 0, ETC1.ETC_PKM_HEADER_SIZE).position(0);
179 dataBuffer.position(0);
208 int originalPosition = dataBuffer.position();
225 dataBuffer.position(originalPosition);
/frameworks/base/packages/Osu/src/com/android/hotspot2/asn1/
H A DAsn1Integer.java17 long value = (data.get(data.position()) & SignBit) != 0 ? -1 : 0;
/frameworks/base/packages/Osu/src/com/android/hotspot2/utils/
H A DHTTPResponse.java128 return new ByteArrayInputStream(mBody.array(), mBody.position(),
129 mBody.limit() - mBody.position());
159 sb.append(new String(mBody.array(), mBody.position(),
160 mBody.limit() - mBody.position(), charset));
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DForegroundServicesDialog.java154 public void onItemSelected(AdapterView parent, View view, int position, long id) { argument
189 View getView(int position, @Nullable View convertView, argument
199 icon.setImageDrawable(mIconDrawableFactory.getBadgedIcon(getItem(position)));
202 label.setText(getItem(position).loadLabel(mPm));
/frameworks/base/services/net/java/android/net/netlink/
H A DNetlinkConstants.java65 buffer.array(), buffer.position(), buffer.remaining());

Completed in 467 milliseconds

<<11121314151617181920>>