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

1234567891011>>

/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/base/core/java/android/widget/
H A DHeaderViewListAdapter.java146 public boolean isEnabled(int position) { argument
149 if (position < numHeaders) {
150 return mHeaderViewInfos.get(position).isSelectable;
154 final int adjPosition = position - numHeaders;
167 public Object getItem(int position) { argument
170 if (position < numHeaders) {
171 return mHeaderViewInfos.get(position).data;
175 final int adjPosition = position - numHeaders;
188 public long getItemId(int position) { argument
190 if (mAdapter != null && position >
207 getView(int position, View convertView, ViewGroup parent) argument
228 getItemViewType(int position) argument
[all...]
H A DYearPickerView.java64 public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
65 final int year = mAdapter.getYearForPosition(position);
97 final int position = mAdapter.getPositionForYear(year);
98 if (position >= 0 && position < getCount()) {
99 setSelectionCentered(position);
105 public void setSelectionCentered(int position) { argument
107 setSelectionFromTop(position, offset);
157 public Integer getItem(int position) { argument
158 return getYearForPosition(position);
162 getItemId(int position) argument
170 getYearForPosition(int position) argument
180 getView(int position, View convertView, ViewGroup parent) argument
208 getItemViewType(int position) argument
228 isEnabled(int position) argument
[all...]
H A DDayPickerPagerAdapter.java120 // Clear the old position if necessary.
128 // Set the new position.
188 private int getMonthForPosition(int position) { argument
189 return (position + mMinDate.get(Calendar.MONTH)) % MONTHS_IN_YEAR;
192 private int getYearForPosition(int position) { argument
193 final int yearOffset = (position + mMinDate.get(Calendar.MONTH)) / MONTHS_IN_YEAR;
204 final int position = yearOffset * MONTHS_IN_YEAR + monthOffset;
205 return position;
209 public Object instantiateItem(ViewGroup container, int position) { argument
232 final int month = getMonthForPosition(position);
268 destroyItem(ViewGroup container, int position, Object object) argument
282 getPageTitle(int position) argument
304 public final int position; field in class:DayPickerPagerAdapter.ViewHolder
308 ViewHolder(int position, View container, SimpleMonthView calendar) argument
[all...]
/frameworks/base/core/java/com/android/internal/app/
H A DNavItemSelectedListener.java36 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { argument
38 mListener.onNavigationItemSelected(position, id);
/frameworks/base/core/tests/coretests/src/android/widget/focus/
H A DListOfInternalSelectionViews.java74 * @param position The position
75 * @return The label (closest thing to a value) for the item at position
77 public String getLabelForPosition(int position) { argument
78 return "position " + position;
156 public Object getItem(int position) { argument
157 return getLabelForPosition(position);
160 public long getItemId(int position) { argument
161 return position;
164 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListItemFocusablesClose.java50 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument
52 position, parent.getContext(), desiredHeight);
H A DListItemsExpandOnSelection.java41 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument
45 result.setText(getValueAtPosition(position));
55 public View convertView(int position, View convertView, ViewGroup parent) { argument
56 ((ExpandWhenSelectedView)convertView).setText(getValueAtPosition(position));
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
H A DStorageBrowser.java64 public Object getItem(int position) { argument
65 return mStorageList.get(position);
68 public long getItemId(int position) { argument
69 return position;
72 public View getView(int position, View convertView, ViewGroup parent) { argument
81 MtpStorageInfo info = mStorageList.get(position);
114 protected void onListItemClick(ListView l, View v, int position, long id) { argument
117 intent.putExtra("storage", mStorageList.get(position).getStorageId());
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DControlBarPresenter.java92 for (int position = 0; position < mViewHolders.size(); position++) {
93 if (mViewHolders.get(position).view == child) {
95 mViewHolders.get(position),
96 getDisplayedAdapter().get(position), mData);
137 for (int position = 0; position < adapterSize && position < MAX_CONTROLS;
138 position
145 bindControlToAction(int position, Presenter presenter) argument
149 bindControlToAction(final int position, ObjectAdapter adapter, Presenter presenter) argument
[all...]
H A DOnChildViewHolderSelectedListener.java33 * @param position The position of the view in the adapter, or NO_POSITION
39 int position, int subposition) {
38 onChildViewHolderSelected(RecyclerView parent, RecyclerView.ViewHolder child, int position, int subposition) argument
/frameworks/support/v7/appcompat/src/android/support/v7/internal/app/
H A DNavItemSelectedListener.java38 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { argument
40 mListener.onNavigationItemSelected(position, id);
/frameworks/support/v7/recyclerview/src/android/support/v7/util/
H A DThreadUtil.java27 void removeTile(int generation, int position); argument
37 void loadTile(int position, int scrollHint); argument
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/
H A DBaseFragmentPagerAdapter.java62 * Return the Fragment associated with a specified position.
64 public abstract Fragment getItem(int position); argument
71 public Object instantiateItem(View container, int position) { argument
77 String name = makeFragmentName(container.getId(), position);
84 if (DEBUG) Log.v(TAG, "Attaching item #" + position + ": f=" + fragment);
87 fragment = getItem(position);
92 if (DEBUG) Log.v(TAG, "Adding item #" + position + ": f=" + fragment);
94 makeFragmentName(container.getId(), position));
104 public void destroyItem(View container, int position, Object object) { argument
108 if (DEBUG) Log.v(TAG, "Detaching item #" + position
125 setPrimaryItem(View container, int position, Object object) argument
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
H A DBaseRowFragment.java47 RecyclerView.ViewHolder view, int position, int subposition) {
48 onRowSelected(parent, view, position, subposition);
53 int position, int subposition) {
127 * Sets the selected row position with smooth animation.
129 public void setSelectedPosition(int position) { argument
130 setSelectedPosition(position, true);
134 * Sets the selected row position.
136 public void setSelectedPosition(int position, boolean smooth) { argument
137 mSelectedPosition = position;
140 mVerticalGridView.setSelectedPositionSmooth(position);
52 onRowSelected(RecyclerView parent, RecyclerView.ViewHolder view, int position, int subposition) argument
170 getItem(Row row, int position) argument
[all...]
H A DBaseRowSupportFragment.java49 RecyclerView.ViewHolder view, int position, int subposition) {
50 onRowSelected(parent, view, position, subposition);
55 int position, int subposition) {
129 * Sets the selected row position with smooth animation.
131 public void setSelectedPosition(int position) { argument
132 setSelectedPosition(position, true);
136 * Sets the selected row position.
138 public void setSelectedPosition(int position, boolean smooth) { argument
139 mSelectedPosition = position;
142 mVerticalGridView.setSelectedPositionSmooth(position);
54 onRowSelected(RecyclerView parent, RecyclerView.ViewHolder view, int position, int subposition) argument
172 getItem(Row row, int position) argument
[all...]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DAdapterHelper.java135 for (int position = op.positionStart; position < tmpEnd; position++) {
137 ViewHolder vh = mCallback.findViewHolder(position);
138 if (vh != null || canFindInPreLayout(position)) {
155 // this position. Instead, post it to LayoutManager immediately
166 position -= tmpCount; // also equal to tmpStart
189 for (int position = op.positionStart; position < tmpEnd; position
407 canFindInPreLayout(int position) argument
460 findPositionOffset(int position) argument
464 findPositionOffset(int position, int firstPostponedItem) argument
566 applyPendingUpdatesToPosition(int position) argument
735 findViewHolder(int position) argument
[all...]
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
H A DEffectsTest.java121 public Object getItem(int position) { argument
122 Log.d(TAG, "EffectListAdapter getItem() at: "+position+" name: "
123 +mDescriptors[position].name);
124 return mDescriptors[position];
127 public long getItemId(int position) { argument
128 return position;
131 public View getView(int position, View convertView, ViewGroup parent) { argument
134 Log.d(TAG, "getView() new EffectView position: " + position);
137 Log.d(TAG, "getView() convertView position
180 set(int position) argument
[all...]
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
H A DTransport.java128 int contentPosition = content.position();
136 final int outputAvailable = capacity - mOutputBuffer.position();
150 ioWrite(outputArray, 0, mOutputBuffer.position());
256 while (buffer.position() < limit) {
263 final int end = buffer.position() + contentSize;
267 buffer.position(end);
303 int position = buffer.position();
306 count = ioRead(buffer.array(), position, buffer.capacity() - position);
[all...]
/frameworks/opt/photoviewer/src/com/android/ex/photo/
H A DPhotoViewCallbacks.java64 * will be at the proper position.
70 public void addScreenListener(int position, OnScreenListener listener); argument
72 public void removeScreenListener(int position); argument
78 public void setViewActivated(int position); argument
80 public void onNewPhotoLoaded(int position); argument
/frameworks/support/v13/java/android/support/v13/app/
H A DFragmentStatePagerAdapter.java84 * Return the Fragment associated with a specified position.
86 public abstract Fragment getItem(int position); argument
93 public Object instantiateItem(ViewGroup container, int position) { argument
98 if (mFragments.size() > position) {
99 Fragment f = mFragments.get(position);
109 Fragment fragment = getItem(position);
110 if (DEBUG) Log.v(TAG, "Adding item #" + position + ": f=" + fragment);
111 if (mSavedState.size() > position) {
112 Fragment.SavedState fss = mSavedState.get(position);
117 while (mFragments.size() <= position) {
129 destroyItem(ViewGroup container, int position, Object object) argument
147 setPrimaryItem(ViewGroup container, int position, Object object) argument
[all...]
/frameworks/support/v4/java/android/support/v4/app/
H A DFragmentStatePagerAdapter.java80 * Return the Fragment associated with a specified position.
82 public abstract Fragment getItem(int position); argument
89 public Object instantiateItem(ViewGroup container, int position) { argument
94 if (mFragments.size() > position) {
95 Fragment f = mFragments.get(position);
105 Fragment fragment = getItem(position);
106 if (DEBUG) Log.v(TAG, "Adding item #" + position + ": f=" + fragment);
107 if (mSavedState.size() > position) {
108 Fragment.SavedState fss = mSavedState.get(position);
113 while (mFragments.size() <= position) {
125 destroyItem(ViewGroup container, int position, Object object) argument
143 setPrimaryItem(ViewGroup container, int position, Object object) argument
[all...]
/frameworks/base/core/java/android/net/netlink/
H A DStructNlAttr.java47 final int baseOffset = byteBuffer.position();
54 byteBuffer.position(baseOffset);
68 final int baseOffset = byteBuffer.position();
69 byteBuffer.position(baseOffset + NLA_HEADERLEN);
76 byteBuffer.position(baseOffset + struct.getAlignedLength());
120 final int originalPosition = byteBuffer.position();
124 byteBuffer.position(originalPosition + getAlignedLength());
/frameworks/base/tests/MusicBrowserDemo/src/com/example/android/musicbrowserdemo/
H A DAppListFragment.java58 public void onListItemClick(ListView l, View v, int position, long id) { argument
59 final Item item = mItems.get(position);
61 Log.i("AppListFragment", "Item clicked: " + position + " -- " + item.component);
115 public Item getItem(int position) { argument
116 return mItems.get(position);
120 public long getItemId(int position) { argument
121 return position;
125 public int getItemViewType(int position) { argument
130 public View getView(int position, View convertView, ViewGroup parent) { argument
136 final Item item = mItems.get(position);
[all...]
/frameworks/base/core/java/android/app/
H A DListActivity.java199 * getListView().getItemAtPosition(position) if they need to access the
204 * @param position The position of the view in the list
207 protected void onListItemClick(ListView l, View v, int position, long id) { argument
271 * position with the adapter's data
273 * @param position
275 public void setSelection(int position) { argument
276 mList.setSelection(position);
280 * Get the position of the currently selected list item.
317 public void onItemClick(AdapterView<?> parent, View v, int position, lon
[all...]

Completed in 3718 milliseconds

1234567891011>>