Searched refs:position (Results 276 - 300 of 821) sorted by relevance

<<11121314151617181920>>

/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DListActivity.java112 public View getView(int position, View convertView, ViewGroup parent) { argument
113 TextView v = (TextView) super.getView(position, convertView, parent);
H A DTransparentListActivity.java110 public View getView(int position, View convertView, ViewGroup parent) { argument
111 TextView v = (TextView) super.getView(position, convertView, parent);
H A DViewLayersActivity2.java57 public View getView(int position, View convertView, ViewGroup parent) { argument
58 TextView v = (TextView) super.getView(position, convertView, parent);
H A DViewLayersActivity4.java61 public View getView(int position, View convertView, ViewGroup parent) { argument
62 TextView v = (TextView) super.getView(position, convertView, parent);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/
H A DCellularNetwork.java86 // Advance the buffer position to the next IEI.
87 payload.position(payload.position() + ieiSize);
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
H A DTimeZoneFilterTypeAdapter.java101 public FilterTypeResult getItem(int position) { argument
102 return mLiveResults.get(position);
106 public long getItemId(int position) { argument
107 return position;
111 public View getView(int position, View convertView, ViewGroup parent) { argument
123 if (position >= mLiveResults.size()) {
124 Log.e(TAG, "getView: " + position + " of " + mLiveResults.size());
127 FilterTypeResult filter = mLiveResults.get(position);
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
H A DPlaybackSeekDataProviderSample.java43 protected Bitmap doInBackground(Object task, int index, long position) { argument
55 canvas.drawText(formatTime(position), 10, 80, mPaint);
H A DPlaybackControlGlue.java205 long position = mStartPosition + (System.currentTimeMillis() - mStartTime) * speed;
206 if (position > getMediaDuration()) {
207 position = getMediaDuration();
209 } else if (position < 0) {
210 position = 0;
213 return (int) position;
H A DPlaybackControlHelper.java221 long position = mStartPosition +
223 if (position > getMediaDuration()) {
224 position = getMediaDuration();
226 } else if (position < 0) {
227 position = 0;
230 return (int) position;
H A DPlaybackControlSupportHelper.java224 long position = mStartPosition +
226 if (position > getMediaDuration()) {
227 position = getMediaDuration();
229 } else if (position < 0) {
230 position = 0;
233 return (int) position;
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
H A DPlaybackSeekDataProviderSample.java43 protected Bitmap doInBackground(Object task, int index, long position) { argument
55 canvas.drawText(formatTime(position), 10, 80, mPaint);
H A DPlaybackControlGlue.java205 long position = mStartPosition + (System.currentTimeMillis() - mStartTime) * speed;
206 if (position > getMediaDuration()) {
207 position = getMediaDuration();
209 } else if (position < 0) {
210 position = 0;
213 return (int) position;
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
H A DExpandedMenuView.java90 public void onItemClick(AdapterView parent, View v, int position, long id) { argument
91 invokeItem((MenuItemImpl) getAdapter().getItem(position));
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DDividerItemDecorationTest.java75 public void onBindViewHolder(ViewHolder holder, int position) { argument
76 holder.mTextView.setText(mDataset[position]);
/frameworks/base/core/java/android/database/
H A DBulkCursorNative.java102 int position = data.readInt();
103 onMove(position);
155 public CursorWindow getWindow(int position) throws RemoteException argument
161 data.writeInt(position);
177 public void onMove(int position) throws RemoteException { argument
182 data.writeInt(position);
/frameworks/base/core/java/com/android/internal/app/
H A DMediaRouteChooserDialog.java207 public boolean isEnabled(int position) { argument
208 return getItem(position).isEnabled();
212 public View getView(int position, View convertView, ViewGroup parent) { argument
217 MediaRouter.RouteInfo route = getItem(position);
234 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
235 MediaRouter.RouteInfo route = getItem(position);
/frameworks/base/core/tests/coretests/src/android/view/
H A DListContextMenu.java65 public Object getItem(int position) { argument
66 return position;
69 public long getItemId(int position) { argument
70 return position;
73 public View getView(int position, View convertView, ViewGroup parent) { argument
81 view.setText("List item " + mTitles[position]);
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
H A DSlowNestedRecyclerViewActivity.java108 public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { argument
163 public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { argument
164 if (getItemViewType(position) == TYPE_RECYCLER) {
166 ((RecyclerView)holder.itemView).setAdapter(mAdapters.get(position));
172 public int getItemViewType(int position) { argument
173 return position == 0 ? TYPE_HEADER : TYPE_RECYCLER;
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
H A DMonthAdapter.java153 public Object getItem(int position) { argument
158 public long getItemId(int position) { argument
159 return position;
170 public View getView(int position, View convertView, ViewGroup parent) { argument
191 final int month = position % MONTHS_IN_YEAR;
192 final int year = position / MONTHS_IN_YEAR + mController.getMinYear();
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/graphics/
H A DPaletteDetailActivity.java150 public Palette.Swatch getItem(int position) { argument
151 return mSwatches.get(position);
155 public long getItemId(int position) { argument
156 return position;
165 public View getView(int position, View view, ViewGroup parent) { argument
169 setBackgroundColor(view, getItem(position));
/frameworks/support/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/
H A DTabLayoutPreselectedUsage.java147 public Object instantiateItem(ViewGroup container, int position) { argument
149 tv.setText(getPageTitle(position));
156 item.cheese = mCheeses.get(position);
168 public CharSequence getPageTitle(int position) { argument
169 return mCheeses.get(position);
173 public void destroyItem(ViewGroup container, int position, Object object) { argument
H A DTabLayoutUsage.java166 public Object instantiateItem(ViewGroup container, int position) { argument
168 tv.setText(getPageTitle(position));
175 item.cheese = mCheeses.get(position);
187 public CharSequence getPageTitle(int position) { argument
188 return mCheeses.get(position);
192 public void destroyItem(ViewGroup container, int position, Object object) { argument
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/graphics/
H A DPaletteDetailActivity.java150 public Palette.Swatch getItem(int position) { argument
151 return mSwatches.get(position);
155 public long getItemId(int position) { argument
156 return position;
165 public View getView(int position, View view, ViewGroup parent) { argument
169 setBackgroundColor(view, getItem(position));
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/
H A DTabLayoutPreselectedUsage.java147 public Object instantiateItem(ViewGroup container, int position) { argument
149 tv.setText(getPageTitle(position));
156 item.cheese = mCheeses.get(position);
168 public CharSequence getPageTitle(int position) { argument
169 return mCheeses.get(position);
173 public void destroyItem(ViewGroup container, int position, Object object) { argument
H A DTabLayoutUsage.java166 public Object instantiateItem(ViewGroup container, int position) { argument
168 tv.setText(getPageTitle(position));
175 item.cheese = mCheeses.get(position);
187 public CharSequence getPageTitle(int position) { argument
188 return mCheeses.get(position);
192 public void destroyItem(ViewGroup container, int position, Object object) { argument

Completed in 481 milliseconds

<<11121314151617181920>>