Searched refs:position (Results 76 - 100 of 729) sorted by relevance

1234567891011>>

/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.java61 public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
62 final int year = mAdapter.getYearForPosition(position);
90 final int position = mAdapter.getPositionForYear(year);
91 if (position >= 0 && position < getCount()) {
92 setSelectionCentered(position);
98 public void setSelectionCentered(int position) { argument
100 setSelectionFromTop(position, offset);
150 public Integer getItem(int position) { argument
151 return getYearForPosition(position);
155 getItemId(int position) argument
163 getYearForPosition(int position) argument
173 getView(int position, View convertView, ViewGroup parent) argument
201 getItemViewType(int position) argument
221 isEnabled(int position) 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/base/tests/UiBench/src/com/android/test/uibench/
H A DInflatingListActivity.java31 public View getView(int position, View convertView, ViewGroup parent) {
33 return super.getView(position, null, parent);
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
H A DItemGroup.java62 * A mapping from the index of an item hierarchy in mChildren, to the first position in which
85 * ItemGroup uses this map to look for which ItemHierarchy an item at a given position belongs
149 public IItem getItemAt(int position) { argument
150 int itemIndex = getItemIndex(position);
152 int subpos = position - mHierarchyStart.get(itemIndex);
200 * Use binary search to locate the item hierarchy a position is contained in.
202 * @return Index of the item hierarchy which is responsible for the item at {@code position}.
204 private int getItemIndex(int position) { argument
206 if (position < 0 || position >
[all...]
H A DItemHierarchy.java57 * Get the item at position.
59 * @param position An integer from 0 to {@link #getCount()}}, which indicates the position in
61 * @return A representation of the item at {@code position}. Must not be {@code null}.
63 IItem getItemAt(int position); argument
/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/view/menu/
H A DMenuAdapter.java74 public MenuItemImpl getItem(int position) { argument
77 if (mExpandedIndex >= 0 && position >= mExpandedIndex) {
78 position++;
80 return items.get(position);
84 public long getItemId(int position) { argument
85 // Since a menu item's ID is optional, we'll use the position as an
87 return position;
91 public View getView(int position, View convertView, ViewGroup parent) { argument
100 itemView.initialize(getItem(position), 0);
/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/v7/appcompat/src/android/support/v7/widget/
H A DDropDownListView.java118 final int position = pointToPosition(x, y);
119 if (position == INVALID_POSITION) {
124 final View child = getChildAt(position - getFirstVisiblePosition());
125 setPressedItem(child, position, x, y);
129 clickPressedItem(child, position);
157 private void clickPressedItem(final View child, final int position) { argument
158 final long id = getItemIdAtPosition(position);
159 performItemClick(child, position, id);
190 private void setPressedItem(View child, int position, float x, float y) { argument
204 // Manage the pressed view based on motion position
[all...]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DAdapterHelper.java139 for (int position = op.positionStart; position < tmpEnd; position++) {
141 ViewHolder vh = mCallback.findViewHolder(position);
142 if (vh != null || canFindInPreLayout(position)) {
159 // this position. Instead, post it to LayoutManager immediately
170 position -= tmpCount; // also equal to tmpStart
193 for (int position = op.positionStart; position < tmpEnd; position
411 canFindInPreLayout(int position) argument
468 findPositionOffset(int position) argument
472 findPositionOffset(int position, int firstPostponedItem) argument
588 applyPendingUpdatesToPosition(int position) argument
761 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/fragment/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
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
148 setPrimaryItem(ViewGroup container, int position, Object object) argument
[all...]
/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
97 public Object instantiateItem(ViewGroup container, int position) { argument
102 if (mFragments.size() > position) {
103 Fragment f = mFragments.get(position);
113 Fragment fragment = getItem(position);
114 if (DEBUG) Log.v(TAG, "Adding item #" + position + ": f=" + fragment);
115 if (mSavedState.size() > position) {
116 Fragment.SavedState fss = mSavedState.get(position);
121 while (mFragments.size() <= position) {
133 destroyItem(ViewGroup container, int position, Object object) argument
152 setPrimaryItem(ViewGroup container, int position, Object object) argument
[all...]
/frameworks/base/services/net/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/UiBench/src/com/android/test/uibench/recyclerview/
H A DRvBoxAdapter.java79 public void onBindViewHolder(ViewHolder holder, int position) { argument
80 holder.mTextView.setText(position + ":" + mValues.get(position));
81 holder.mTextView.setMinHeight((200 + mValues.get(position).length() * 10));
82 holder.mTextView.setBackgroundColor(getBackgroundColor(position));
85 private int getBackgroundColor(int position) { argument
86 switch (position % 4) {
/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...]

Completed in 737 milliseconds

1234567891011>>