Searched refs:position (Results 51 - 75 of 729) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/preference/
H A DPreferenceGroupAdapter.java64 * Maps a position into this adapter -> {@link Preference}. These
211 public Preference getItem(int position) { argument
212 if (position < 0 || position >= getCount()) return null;
213 return mPreferenceList.get(position);
216 public long getItemId(int position) { argument
217 if (position < 0 || position >= getCount()) return ListView.INVALID_ROW_ID;
218 return this.getItem(position).getId();
224 public void setHighlighted(int position) { argument
235 getView(int position, View convertView, ViewGroup parent) argument
258 isEnabled(int position) argument
289 getItemViewType(int position) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DAbsSpinner.java97 * It also provides methods to transform spinner items based on their position
121 int position = mItemCount > 0 ? 0 : INVALID_POSITION;
123 setSelectedPositionInt(position);
124 setNextSelectedPositionInt(position);
256 final int position = mFirstPosition;
261 int index = position + i;
269 public void setSelection(int position, boolean animate) { argument
270 // Animate only if requested position is already on screen somewhere
271 boolean shouldAnimate = animate && mFirstPosition <= position &&
272 position <
277 setSelection(int position) argument
291 setSelectionInt(int position, boolean animate) argument
373 int position; field in class:AbsSpinner.SavedState
450 put(int position, View v) argument
454 get(int position) argument
[all...]
H A DDropDownListView.java134 final int position = pointToPosition((int) ev.getX(), (int) ev.getY());
135 if (position != INVALID_POSITION && position != mSelectedPosition) {
136 final View hoveredItem = getChildAt(position - getFirstVisiblePosition());
142 positionSelector(position, hoveredItem);
143 setSelectedPositionInt(position);
144 setNextSelectedPositionInt(position);
149 // Do not cancel the selected position if the selection is visible
194 final int position = pointToPosition(x, y);
195 if (position
252 setPressedItem(@onNull View child, int position, float x, float y) argument
304 obtainView(int position, boolean[] isScrap) argument
[all...]
/frameworks/support/v17/leanback/api21/android/support/v17/leanback/transition/
H A DFadeAndShortSlide.java60 float getGoneX(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) { argument
65 float getGoneY(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) { argument
80 public float getGoneX(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) {
94 public float getGoneX(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) {
108 public float getGoneX(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) {
109 final int viewCenter = position[0] + view.getWidth() / 2;
110 sceneRoot.getLocationOnScreen(position);
112 final int sceneRootCenter = center == null ? (position[0] + sceneRoot.getWidth() / 2)
124 public float getGoneY(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) {
131 public float getGoneY(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) {
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/tv/views/
H A DTaskStackHorizontalViewAdapter.java78 private Animator.AnimatorListener getRemoveAtListener(final int position, argument
121 public void onBindViewHolder(ViewHolder holder, int position) { argument
122 Task task = mTaskList.get(position);
134 int position = mTaskList.indexOf(task);
135 if (position >= 0) {
136 mTaskList.remove(position);
137 notifyItemRemoved(position);
146 int position = mTaskList.indexOf(task);
147 return (position >= 0) ? position
155 addTaskAt(Task task, int position) argument
[all...]
/frameworks/support/fragment/java/android/support/v4/app/
H A DFragmentPagerAdapter.java74 * Return the Fragment associated with a specified position.
76 public abstract Fragment getItem(int position); argument
87 public Object instantiateItem(ViewGroup container, int position) { argument
92 final long itemId = getItemId(position);
101 fragment = getItem(position);
115 public void destroyItem(ViewGroup container, int position, Object object) { argument
119 if (DEBUG) Log.v(TAG, "Detaching item #" + getItemId(position) + ": f=" + object
125 public void setPrimaryItem(ViewGroup container, int position, Object object) { argument
163 * Return a unique identifier for the item at the given position.
165 * <p>The default implementation returns the given position
171 getItemId(int position) argument
[all...]
/frameworks/support/v13/java/android/support/v13/app/
H A DFragmentPagerAdapter.java78 * Return the Fragment associated with a specified position.
80 public abstract Fragment getItem(int position); argument
91 public Object instantiateItem(ViewGroup container, int position) { argument
96 final long itemId = getItemId(position);
105 fragment = getItem(position);
119 public void destroyItem(ViewGroup container, int position, Object object) { argument
123 if (DEBUG) Log.v(TAG, "Detaching item #" + getItemId(position) + ": f=" + object
129 public void setPrimaryItem(ViewGroup container, int position, Object object) { argument
168 * Return a unique identifier for the item at the given position.
170 * <p>The default implementation returns the given position
176 getItemId(int position) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DPagedTileLayout.java44 public void onPageSelected(int position) {
47 mPageListener.onPageChanged(isLayoutRtl() ? position == mPages.size() - 1
48 : position == 0);
53 public void onPageScrolled(int position, float positionOffset,
56 setCurrentPage(position, positionOffset != 0);
57 mPageIndicator.setLocation(position + positionOffset);
60 (isLayoutRtl() ? position == mPages.size() - 1 : position == 0));
105 * the next page after position to listening as well since we are in between
108 private void setCurrentPage(int position, boolea argument
132 setPageListening(int position, boolean listening) argument
[all...]
/frameworks/ex/common/java/com/android/common/widget/
H A DGroupingListAdapter.java264 * Figures out whether the item at the specified position represents a
266 * corresponding cursor position.
268 public void obtainPositionMetadata(PositionMetadata metadata, int position) { argument
271 if (metadata.listPosition == position) {
279 // Check cache for the supplied position. What we are looking for is
280 // the group descriptor immediately preceding the supplied position.
281 // Once we have that, we will be able to tell whether the position
284 if (position <= mLastCachedListPosition) {
287 int index = mPositionCache.indexOfKey(position);
289 // If we get back a positive number, the position correspond
388 isGroupHeader(int position) argument
397 getGroupSize(int position) argument
405 toggleGroup(int position) argument
427 getItemViewType(int position) argument
432 getItem(int position) argument
445 getItemId(int position) argument
454 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DListViewCompat.java153 * Find a position that can be selected (i.e., is not a separator).
155 * @param position The starting position to look at.
157 * @return The next selectable position starting at position and then searching either up or
160 public int lookForSelectablePosition(int position, boolean lookDown) { argument
169 position = Math.max(0, position);
170 while (position < count && !adapter.isEnabled(position)) {
192 positionSelectorLikeTouchCompat(int position, View sel, float x, float y) argument
201 positionSelectorLikeFocusCompat(int position, View sel) argument
221 positionSelectorCompat(int position, View sel) argument
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
H A DFrameParser.java90 data.position(data.position() + ETHERNET_SRC_MAC_ADDR_LEN + ETHERNET_DST_MAC_ADDR_LEN);
136 data.position(data.position() + IP_V4_DSCP_AND_ECN_LEN + IP_V4_TOTAL_LEN_LEN
139 data.position(data.position() + IP_V4_HEADER_CHECKSUM_LEN + IP_V4_SRC_ADDR_LEN
144 data.position(data.position() + headerLen);
179 data.position(data.position()
[all...]
/frameworks/base/core/tests/coretests/src/android/util/
H A DGridScenario.java112 * Set the position that starts selected.
114 * @param startingSelectionPosition The selected position within the adapter's data set.
135 * @param position The position in the grid.
139 int position, double itemScreenSizeFactor) {
140 mOverrideItemScreenSizeFactors.put(position, itemScreenSizeFactor);
266 public void onItemSelected(AdapterView parent, View v, int position, long id) {
267 positionSelected(position);
315 public final String getValueAtPosition(int position) { argument
316 return "postion " + position;
138 setPositionScreenSizeFactorOverride( int position, double itemScreenSizeFactor) argument
328 createView(int position, ViewGroup parent, int desiredHeight) argument
348 getItem(int position) argument
352 getItemId(int position) argument
356 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/frameworks/base/core/java/android/database/
H A DCrossProcessCursorWrapper.java46 public void fillWindow(int position, CursorWindow window) { argument
49 crossProcessCursor.fillWindow(position, window);
53 DatabaseUtils.cursorFillWindow(mCursor, position, window);
/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListButtonsDiagonalAcrossItems.java50 protected View createView(int position, ViewGroup parent, argument
52 final Slot slot = position == 0 ? Slot.Left :
53 (position == 1 ? Slot.Middle : Slot.Right);
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/
H A DTestDocumentsAdapter.java54 String getModelId(int position) { argument
55 return mModelIds.get(position);
69 public void onBindViewHolder(DocumentHolder holder, int position) { argument
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/
H A DSettingsDrawerAdapter.java67 public Tile getTile(int position) { argument
68 return mItems.get(position) != null ? mItems.get(position).tile : null;
77 public Object getItem(int position) { argument
78 return mItems.get(position);
82 public long getItemId(int position) { argument
83 return position;
87 public boolean isEnabled(int position) { argument
88 return mItems.get(position) != null && mItems.get(position)
92 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
H A DSlowBindRecyclerViewActivity.java46 public void onBindViewHolder(ViewHolder holder, int position) {
47 Trace.beginSection("bind item " + position);
50 super.onBindViewHolder(holder, position);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/libcore/io/
H A DBridgeBufferIterator.java39 mByteBuffer.position(offset);
44 int newPosition = mByteBuffer.position() + byteCount;
46 mByteBuffer.position(newPosition);
/frameworks/av/include/media/
H A DAudioTimestamp.h33 uint32_t mPosition; // a frame position in AudioTrack::getPosition() units
71 // If this value is -1, then both time and position are invalid.
72 // If this value is 0, then the time is not valid but the position is valid.
85 // before sending to client, but differences in legacy position offset handling
103 int64_t *position, int64_t *time, int timebase, Location *location = nullptr) const {
104 if (position == nullptr || time == nullptr
113 *position = mPosition[i];
128 int64_t position, time; local
129 if (getBestTimestamp(&position, &time, TIMEBASE_MONOTONIC, location) == OK) {
130 timestamp->mPosition = position;
102 getBestTimestamp( int64_t *position, int64_t *time, int timebase, Location *location = nullptr) const argument
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DAccountViewAdapter.java50 public Object getItem(int position) { argument
51 return mData.get(position);
55 public long getItemId(int position) { argument
56 return position;
65 public View getView(int position, View convertView, ViewGroup parent) { argument
72 AccountElements elements = (AccountElements) getItem(position);
/frameworks/base/core/tests/coretests/src/android/widget/
H A DAutoCompleteTextViewSimple.java99 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
100 Log.d(LOG_TAG, "onItemClick() position " + position);
102 mItemClickPosition = position;
108 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { argument
109 Log.d(LOG_TAG, "onItemSelected() position " + position);
111 mItemSelectedPosition = position;
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
H A DAdapterViewBindingAdapter.java39 public static void setSelectedItemPosition(AdapterView view, int position) { argument
40 if (view.getSelectedItemPosition() != position) {
41 view.setSelection(position);
70 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { argument
72 mSelected.onItemSelected(parent, view, position, id);
91 void onItemSelected(AdapterView<?> parent, View view, int position, long id); argument
H A DSearchViewBindingAdapter.java75 public boolean onSuggestionSelect(int position) {
77 return submit.onSuggestionSelect(position);
84 public boolean onSuggestionClick(int position) {
86 return change.onSuggestionClick(position);
108 boolean onSuggestionSelect(int position); argument
113 boolean onSuggestionClick(int position); argument
/frameworks/support/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/
H A DSimpleStringRecyclerViewAdapter.java55 public String getValueAt(int position) { argument
56 return mValues.get(position);
78 public void onBindViewHolder(ViewHolder holder, int position) { argument
79 holder.mBoundString = mValues.get(position);
80 holder.mTextView.setText(position + ": " + mValues.get(position));
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/
H A DSimpleStringRecyclerViewAdapter.java55 public String getValueAt(int position) { argument
56 return mValues.get(position);
78 public void onBindViewHolder(ViewHolder holder, int position) { argument
79 holder.mBoundString = mValues.get(position);
80 holder.mTextView.setText(position + ": " + mValues.get(position));

Completed in 1311 milliseconds

1234567891011>>