Searched refs:position (Results 201 - 225 of 481) sorted by relevance

1234567891011>>

/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DGridLayoutManager.java237 // -2 is a target position that LinearSmoothScroller can never find until
411 * The focused position, it's not the currently visually aligned position
412 * but it is the final position that we intend to focus on. If there are
418 * A view can have mutliple alignment position, this is the index of which
508 * How to position child in secondary direction.
551 * Allow DPAD key to navigate out at the front of the View (where position = 0),
774 // when item is removed, the position value can be any value.
895 protected View getViewForPosition(int position) { argument
896 return mRecycler.getViewForPosition(position);
1059 measureScrapChild(int position, int widthSpec, int heightSpec, int[] measuredDimension) argument
2070 setSelection(RecyclerView parent, int position, int primaryScrollExtra) argument
2075 setSelectionSmooth(RecyclerView parent, int position) argument
2079 setSelectionWithSub(RecyclerView parent, int position, int subposition, int primaryScrollExtra) argument
2084 setSelectionSmoothWithSub(RecyclerView parent, int position, int subposition) argument
2096 setSelection(RecyclerView parent, int position, int subposition, boolean smooth, int primaryScrollExtra) argument
2104 scrollToSelection(RecyclerView parent, int position, int subposition, boolean smooth, int primaryScrollExtra) argument
2135 startPositionSmoothScroller(int position) argument
[all...]
H A DItemBridgeAdapter.java240 public int getItemViewType(int position) { argument
243 Object item = mAdapter.get(position);
337 public final void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { argument
338 if (DEBUG) Log.v(TAG, "onBindViewHolder position " + position);
340 viewHolder.mItem = mAdapter.get(position);
382 public long getItemId(int position) { argument
383 return mAdapter.getId(position);
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
H A DDayPickerView.java186 final int position = (day.year - mController.getMinYear())
204 // Compute the first and last position visible
217 Log.d(TAG, "GoTo position " + position);
221 if (position != selectedPosition || forceScroll) {
226 position, LIST_TOP_OFFSET, GOTO_SCROLL_DURATION);
229 postSetSelection(position);
237 public void postSetSelection(final int position) { argument
243 setSelection(position);
308 // Fix the position afte
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
H A DDetailsFragment.java103 int position = mRowsFragment.getVerticalGridView().getSelectedPosition();
105 if (DEBUG) Log.v(TAG, "row selected position " + position
107 onRowSelected(position, subposition);
224 // align the top edge of item to a fixed position
297 * Sets the selected row position with smooth animation.
299 public void setSelectedPosition(int position) { argument
300 setSelectedPosition(position, true);
304 * Sets the selected row position.
306 public void setSelectedPosition(int position, boolea argument
[all...]
H A DDetailsSupportFragment.java105 int position = mRowsSupportFragment.getVerticalGridView().getSelectedPosition();
107 if (DEBUG) Log.v(TAG, "row selected position " + position
109 onRowSelected(position, subposition);
226 // align the top edge of item to a fixed position
299 * Sets the selected row position with smooth animation.
301 public void setSelectedPosition(int position) { argument
302 setSelectedPosition(position, true);
306 * Sets the selected row position.
308 public void setSelectedPosition(int position, boolea argument
[all...]
/frameworks/support/v17/preference-leanback/api21/android/support/v17/preference/
H A DLeanbackPreferenceFragmentTransitionHelperApi21.java106 int[] position = new int[2];
107 view.getLocationOnScreen(position);
108 transitionValues.values.put(PROPNAME_SCREEN_POSITION, position[0]);
147 Integer position = (Integer) endValues.values.get(PROPNAME_SCREEN_POSITION);
151 .createAnimation(view, endValues, position,
166 Integer position = (Integer) startValues.values.get(PROPNAME_SCREEN_POSITION);
170 .createAnimation(view, startValues, position,
202 * position to the end position. It takes into account the canceled position s
[all...]
/frameworks/opt/photoviewer/src/com/android/ex/photo/
H A DPhotoViewController.java156 /** The listeners wanting full screen state for each screen position */
462 public void addScreenListener(int position, OnScreenListener listener) { argument
463 mScreenListeners.put(position, listener);
467 public void removeScreenListener(int position) { argument
468 mScreenListeners.remove(position);
623 public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { argument
625 OnScreenListener before = mScreenListeners.get(position - 1);
629 OnScreenListener after = mScreenListeners.get(position + 1);
637 public void onPageSelected(int position) { argument
638 mCurrentPhotoIndex = position;
741 setViewActivated(int position) argument
800 getPhotoAccessibilityAnnouncement(int position) argument
870 onNewPhotoLoaded(int position) argument
[all...]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DStaggeredGridLayoutManager.java130 * When LayoutManager needs to scroll to a position, it sets this variable and requests a
337 return child;//i should have a better position
345 return child;//i should have a better position
399 * scroll position if this method is called after views are laid out.
583 // Scroll to position is set, clear.
698 // last child as the anchor position.
709 // Validate scroll position if exists.
725 // Use regular anchor position, offset according to pending offset and target
772 final int position = calculateScrollDirectionForPosition(
774 anchorInfo.mLayoutFromEnd = position
1849 calculateScrollDirectionForPosition(int position) argument
1858 smoothScrollToPosition(RecyclerView recyclerView, RecyclerView.State state, int position) argument
1879 scrollToPosition(int position) argument
1901 scrollToPositionWithOffset(int position, int offset) argument
2380 forceInvalidateAfter(int position) argument
2395 invalidateAfter(int position) argument
2413 getSpan(int position) argument
2421 setSpan(int position, Span span) argument
2426 sizeForPosition(int position) argument
2434 ensureSize(int position) argument
2512 invalidateFullSpansAfter(int position) argument
2561 getFullSpanItem(int position) argument
[all...]
H A DGridLayoutManager.java331 final int position = getPosition(view);
332 if (position >= 0 && position < itemCount) {
333 final int span = getSpanIndex(recycler, state, position);
362 throw new RuntimeException("Cannot find span group index for position "
365 Log.w(TAG, "Cannot find span size for pre layout position. " + viewPosition);
382 throw new RuntimeException("Cannot find span index for pre layout position. It is"
385 Log.w(TAG, "Cannot find span size for pre layout position. It is"
403 throw new RuntimeException("Cannot find span size for pre layout position. It is"
406 Log.w(TAG, "Cannot find span size for pre layout position
674 getSpanSize(int position) argument
704 getCachedSpanIndex(int position, int spanCount) argument
740 getSpanIndex(int position, int spanCount) argument
771 findReferenceIndexFromCache(int position) argument
835 getSpanSize(int position) argument
840 getSpanIndex(int position, int spanCount) argument
[all...]
/frameworks/base/core/java/android/accounts/
H A DChooseAccountTypeActivity.java109 public void onItemClick(AdapterView<?> parent, View v, int position, long id) {
110 setResultAndFinish(mAuthenticatorInfosToDisplay.get(position).desc.type);
184 public View getView(int position, View convertView, ViewGroup parent) { argument
197 holder.text.setText(mInfos.get(position).name);
198 holder.icon.setImageDrawable(mInfos.get(position).drawable);
/frameworks/base/core/java/android/app/
H A DListFragment.java159 public void onItemClick(AdapterView<?> parent, View v, int position, long id) {
160 onListItemClick((ListView)parent, v, position, id);
222 * getListView().getItemAtPosition(position) if they need to access the
227 * @param position The position of the view in the list
230 public void onListItemClick(ListView l, View v, int position, long id) { argument
251 * position with the adapter's data
253 * @param position
255 public void setSelection(int position) { argument
257 mList.setSelection(position);
[all...]
/frameworks/base/core/java/com/android/internal/app/
H A DWindowDecorActionBar.java406 public void setSelectedNavigationItem(int position) { argument
409 selectTab(mTabs.get(position));
412 mDecorToolbar.setDropdownSelectedPosition(position);
525 private void configureTab(Tab tab, int position) { argument
533 tabi.setPosition(position);
534 mTabs.add(position, tabi);
537 for (int i = position + 1; i < count; i++) {
548 public void addTab(Tab tab, int position) { argument
549 addTab(tab, position, mTabs.isEmpty());
563 public void addTab(Tab tab, int position, boolea argument
583 removeTabAt(int position) argument
1190 setPosition(int position) argument
[all...]
/frameworks/base/keystore/java/android/security/keystore/
H A DAndroidKeyStoreProvider.java101 for (int position = 0; position < providers.length; position++) {
102 Provider provider = providers[position];
104 bcProviderPosition = position;
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/vo/
H A DListenerBindingObject.java70 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { } argument
72 public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) { argument
76 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { } argument
133 public boolean onSuggestionClick(int position) { argument
137 public boolean onSuggestionSelect(int position) { argument
/frameworks/support/v4/java/android/support/v4/app/
H A DListFragment.java57 public void onItemClick(AdapterView<?> parent, View v, int position, long id) {
58 onListItemClick((ListView)parent, v, position, id);
164 * getListView().getItemAtPosition(position) if they need to access the
169 * @param position The position of the view in the list
172 public void onListItemClick(ListView l, View v, int position, long id) { argument
193 * position with the adapter's data
195 * @param position
197 public void setSelection(int position) { argument
199 mList.setSelection(position);
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/internal/app/
H A DWindowDecorActionBar.java403 public void setSelectedNavigationItem(int position) { argument
406 selectTab(mTabs.get(position));
409 mDecorToolbar.setDropdownSelectedPosition(position);
511 private void configureTab(Tab tab, int position) { argument
519 tabi.setPosition(position);
520 mTabs.add(position, tabi);
523 for (int i = position + 1; i < count; i++) {
534 public void addTab(Tab tab, int position) { argument
535 addTab(tab, position, mTabs.isEmpty());
549 public void addTab(Tab tab, int position, boolea argument
569 removeTabAt(int position) argument
1163 setPosition(int position) argument
[all...]
/frameworks/wilhelm/src/itf/
H A DIRecord.c95 SLmillisecond position; local
100 android_audioRecorder_getPosition(InterfaceToCAudioRecorder(thiz), &position); local
102 position = thiz->mPosition;
105 position = thiz->mPosition;
108 *pMsec = position;
214 // clearing the marker position is equivalent to setting the marker to SL_TIME_UNKNOWN
H A DIPlay.c185 // otherwise the duration will be updated each time a new maximum position is detected
203 SLmillisecond position; local
207 // and doesn't cache the position
210 android_audioPlayer_getPosition(thiz, &position);
213 android_Player_getPosition(thiz, &position);
220 // on other platforms we depend on periodic updates to the current position
221 position = thiz->mPosition;
222 // if a seek is pending, then lie about current position so the seek appears synchronous
227 position = pos;
232 *pMsec = position;
[all...]
/frameworks/base/services/net/java/android/net/dhcp/
H A DDhcpPacket.java362 ipHeaderOffset = buf.position();
365 ipLengthOffset = buf.position();
371 ipChecksumOffset = buf.position();
376 endIpHeader = buf.position();
379 udpHeaderOffset = buf.position();
382 udpLengthOffset = buf.position();
384 udpChecksumOffset = buf.position();
407 buf.position(buf.position() +
415 if ((buf.position()
[all...]
/frameworks/base/core/java/android/preference/
H A DPreferenceScreen.java205 public void onItemClick(AdapterView parent, View view, int position, long id) { argument
208 position -= ((ListView) parent).getHeaderViewsCount();
210 Object item = getRootAdapter().getItem(position);
/frameworks/base/libs/hwui/font/
H A DFont.cpp243 SkPathMeasure& measure, SkPoint* position, SkVector* tangent) {
250 bool ok = measure.getPosTan(x + hOffset + glyph->mBitmapLeft + halfWidth, position, tangent);
271 position->x() + destination[0].x(),
272 position->y() + destination[0].y(), u1, v2,
273 position->x() + destination[1].x(),
274 position->y() + destination[1].y(), u2, v2,
275 position->x() + destination[2].x(),
276 position->y() + destination[2].y(), u2, v1,
277 position->x() + destination[3].x(),
278 position
242 drawCachedGlyph(CachedGlyphInfo* glyph, float x, float hOffset, float vOffset, SkPathMeasure& measure, SkPoint* position, SkVector* tangent) argument
318 SkPoint position; local
[all...]
/frameworks/base/services/net/java/android/net/util/
H A DIpUtils.java48 final int bufPosition = buf.position();
50 // set position of original ByteBuffer, so that the ShortBuffer
52 buf.position(start);
55 // re-set ByteBuffer position
56 buf.position(bufPosition);
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DLinearLayoutManagerTest.java167 int position) {
168 super.onBindViewHolder(holder, position);
185 if (position == removePos) {
261 // add a bunch of items right before that view, make sure it keeps its position
271 assertEquals("focused child's screen position should stay unchanged", top,
372 // add a bunch of items right before that view, make sure it keeps its position
439 final int position = mRecyclerView.getChildLayoutPosition(child);
448 scrollToPositionWithOffset(position, scrollOffset);
457 + "child " + position,
504 int position
1096 scrollToPositionWithOffset(final int position, final int offset) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DSearchView.java232 * @param position the absolute position in the list of suggestions.
237 boolean onSuggestionSelect(int position); argument
241 * @param position the absolute position of the clicked item in the list of suggestions.
247 boolean onSuggestionClick(int position); argument
1036 int position = mSearchSrcTextView.getListSelection();
1037 return onItemClicked(position, KeyEvent.KEYCODE_UNKNOWN, null);
1070 int position = mSearchSrcTextView.getListSelection();
1071 if (position !
1356 onItemClicked(int position, int actionKey, String actionMsg) argument
1367 onItemSelected(int position) argument
1409 rewriteQueryFromSuggestion(int position) argument
1442 launchSuggestion(int position, int actionKey, String actionMsg) argument
[all...]
H A DSpinner.java607 * @param delta Change in the selected position. +1 means selection is moving to the right,
634 // Make selected view and position it
672 * @param position Position in the spinner for the view to obtain
674 * @return A view for the given position
676 private View makeView(int position, boolean addChild) { argument
680 child = mRecycler.get(position);
690 child = mAdapter.getView(position, null, this);
699 * Helper for makeAndAddView to set the position of a view
702 * @param child The view to position
950 public Object getItem(int position) { argument
954 getItemId(int position) argument
958 getView(int position, View convertView, ViewGroup parent) argument
962 getDropDownView(int position, View convertView, ViewGroup parent) argument
999 isEnabled(int position) argument
1008 getItemViewType(int position) argument
[all...]

Completed in 861 milliseconds

1234567891011>>