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

1234567891011>>

/frameworks/support/v7/appcompat/src/android/support/v7/internal/app/
H A DNavItemSelectedListener.java38 public void onItemSelected(AdapterViewCompat<?> parent, View view, int position, long id) { argument
40 mListener.onNavigationItemSelected(position, id);
/frameworks/base/core/java/android/widget/
H A DYearPickerView.java121 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
123 if (position != mSelectedPosition) {
124 mSelectedPosition = position;
127 mController.onYearSelected(mAdapter.getItem(position));
142 public View getView(int position, View convertView, ViewGroup parent) { argument
144 super.getView(position, convertView, parent);
147 int year = getItem(position);
161 public void postSetSelectionCentered(final int position) { argument
162 postSetSelectionFromTop(position, mViewSize / 2 - mChildSize / 2);
165 public void postSetSelectionFromTop(final int position, fina argument
[all...]
H A DRemoteViewsAdapter.java330 public void add(int position, RemoteViewsFrameLayout layout) { argument
331 final Integer pos = position;
348 * Notifies each of the RemoteViewsFrameLayouts associated with a particular position that
351 public void notifyOnRemoteViewsLoaded(int position, RemoteViews view) { argument
354 final Integer pos = position;
356 // Notify all the references for that position of the newly loaded RemoteViews
462 private RemoteViewsFrameLayout createLoadingView(int position, View convertView, argument
465 // Create and return a new FrameLayout, and setup the references for this position
556 // The cache/mapping of position to RemoteViewsMetaData. This set is guaranteed to be
559 // we still need to be able to access the mapping of position t
608 insert(int position, RemoteViews v, long itemId, ArrayList<Integer> visibleWindow) argument
642 getRemoteViewsAt(int position) argument
648 getMetaDataAt(int position) argument
702 queueRequestedPositionToLoad(int position) argument
709 queuePositionsToBePreloadedFromRequestedPosition(int position) argument
767 containsRemoteViewAt(int position) argument
770 containsMetaDataAt(int position) argument
1006 updateRemoteViews(final int position, boolean notifyWhenLoaded) argument
1083 getItem(int position) argument
1088 getItemId(int position) argument
1097 getItemViewType(int position) argument
1138 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/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.java43 public void onChildSelected(ViewGroup parent, View view, int position, long id) {
44 onRowSelected(parent, view, position, id);
48 void onRowSelected(ViewGroup parent, View view, int position, long id) { argument
118 * Sets the selected row position with smooth animation.
120 public void setSelectedPosition(int position) { argument
121 setSelectedPosition(position, true);
125 * Sets the selected row position.
127 public void setSelectedPosition(int position, boolean smooth) { argument
128 mSelectedPosition = position;
131 mVerticalGridView.setSelectedPositionSmooth(position);
157 getItem(Row row, int position) argument
[all...]
H A DBaseRowSupportFragment.java45 public void onChildSelected(ViewGroup parent, View view, int position, long id) {
46 onRowSelected(parent, view, position, id);
50 void onRowSelected(ViewGroup parent, View view, int position, long id) { argument
120 * Sets the selected row position with smooth animation.
122 public void setSelectedPosition(int position) { argument
123 setSelectedPosition(position, true);
127 * Sets the selected row position.
129 public void setSelectedPosition(int position, boolean smooth) { argument
130 mSelectedPosition = position;
133 mVerticalGridView.setSelectedPositionSmooth(position);
159 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
403 canFindInPreLayout(int position) argument
456 findPositionOffset(int position) argument
460 findPositionOffset(int position, int firstPostponedItem) argument
562 applyPendingUpdatesToPosition(int position) argument
717 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/base/core/tests/coretests/src/android/widget/listview/
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/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
H A DPhotoViewPager.java81 public void transformPage(View page, float position) {
91 if (position < 0 || position >= 1.f) {
97 page.setTranslationX(-position * page.getWidth());
98 page.setAlpha(Math.max(0,1.f - position));
99 final float scale = Math.max(0, 1.f - position * 0.3f);
/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/support/v4/jellybean-mr2/android/support/v4/media/session/
H A DMediaSessionCompatApi18.java41 public static void setState(Object rccObj, int state, long position, float speed, argument
44 if (state == MediaSessionCompatApi14.STATE_PLAYING && position > 0) {
52 position += diff;
55 ((RemoteControlClient) rccObj).setPlaybackState(state, position, speed);
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
H A DAdapterViewCompat.java67 * The position of the first child displayed
99 * Indicates whether to sync based on the selection or position. Possible
151 * The position within the adapter's data set of the item to select
163 * The position within the adapter's data set of the currently selected item.
190 * Represents an invalid position. All valid positions are in the range 0 to 1 less than the
201 * The last selected position we used when notifying
206 * The id of the last selected position we used when notifying
251 * Implementers can call getItemAtPosition(position) if they need
257 * @param position The position o
260 onItemClick(AdapterViewCompat<?> parent, View view, int position, long id) argument
272 onItemClick(AdapterView<?> parent, View view, int position, long id) argument
304 performItemClick(View view, int position, long id) argument
336 onItemLongClick(AdapterViewCompat<?> parent, View view, int position, long id) argument
380 onItemSelected(AdapterViewCompat<?> parent, View view, int position, long id) argument
415 AdapterContextMenuInfo(View targetView, int position, long id) argument
431 public int position; field in class:AdapterViewCompat.AdapterContextMenuInfo
655 setSelection(int position) argument
766 getItemAtPosition(int position) argument
771 getItemIdAtPosition(int position) argument
1087 lookForSelectablePosition(int position, boolean lookDown) argument
1095 setSelectedPositionInt(int position) argument
1105 setNextSelectedPositionInt(int position) argument
[all...]
/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...]
/frameworks/support/v4/java/android/support/v4/widget/
H A DBakedBezierInterpolator.java73 int position = Math.min(
77 float quantized = position * STEP_SIZE;
81 return VALUES[position] + weight * (VALUES[position + 1] - VALUES[position]);
/frameworks/base/core/tests/coretests/src/android/util/
H A DListItemFactory.java37 * @param position The position within the list.
42 public static View twoButtonsSeparatedByFiller(int position, Context context, int desiredHeight) { argument
59 topButton.setText("top (position " + position + ")");
71 bottomButton.setText("bottom (position " + position + ")");
149 * @param position The position within the list.
155 public static View button(int position, Contex argument
176 convertButton(View convertView, String text, int position) argument
195 text(int position, Context context, String text, int desiredHeight) argument
216 convertText(View convertView, String text, int position) argument
236 doubleText(int position, Context context, String text, int desiredHeight) argument
279 convertDoubleText(View convertView, String text, int position) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/focus/
H A DListWithFooterViewAndNewLabels.java85 public Object getItem(int position) { argument
86 return mLabels.get(position);
89 public long getItemId(int position) { argument
90 return position;
93 public View getView(int position, View convertView, ViewGroup parent) { argument
94 String label = mLabels.get(position);
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/
H A DMainActivity.java96 public Object getItem(int position) { argument
97 return mItems[position];
101 public long getItemId(int position) { argument
102 return position;
106 public View getView(int position, View convertView, ViewGroup parent) { argument
124 v.getTypedDrawable().bind(new BitmapRequestKeyImpl(mItems[position]));
/frameworks/base/core/java/android/database/
H A DIBulkCursor.java33 * Gets a cursor window that contains the specified position.
34 * The window will contain a range of rows around the specified position.
36 public CursorWindow getWindow(int position) throws RemoteException; argument
39 * Notifies the cursor that the position has changed.
42 * @param position The new position
44 public void onMove(int position) throws RemoteException; argument
/frameworks/base/core/java/android/text/method/
H A DCharacterPickerDialog.java88 public void onItemClick(AdapterView parent, View view, int position, long id) { argument
89 String result = String.valueOf(mOptions.charAt(position));
122 public View getView(int position, View convertView, ViewGroup parent) { argument
125 b.setText(String.valueOf(mOptions.charAt(position)));
134 public final Object getItem(int position) { argument
135 return String.valueOf(mOptions.charAt(position));
138 public final long getItemId(int position) { argument
139 return position;
/frameworks/base/core/java/android/webkit/
H A DPluginList.java109 public synchronized void pluginClicked(Context context, int position) { argument
111 Plugin plugin = mPlugins.get(position);

Completed in 1212 milliseconds

1234567891011>>