Searched defs:position (Results 151 - 175 of 357) sorted by relevance

1234567891011>>

/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/
H A DLiveWallpaperListAdapter.java90 public Object getItem(int position) { argument
91 return mWallpapers.get(position);
94 public long getItemId(int position) { argument
95 return position;
98 public View getView(int position, View convertView, ViewGroup parent) { argument
111 LiveWallpaperInfo wallpaperInfo = mWallpapers.get(position);
/packages/apps/Calendar/src/com/android/calendar/
H A DCalendarViewAdapter.java145 public Object getItem(int position) { argument
146 if (position < mButtonNames.length) {
147 return mButtonNames[position];
153 public long getItemId(int position) { argument
155 return position;
164 public View getView(int position, View convertView, ViewGroup parent) { argument
244 public int getItemViewType(int position) { argument
260 public View getDropDownView(int position, View convertView, ViewGroup parent) { argument
264 switch (position) {
H A DStickyHeaderListView.java85 * Calculates the position of the header of a specific item in the adapter's data set.
88 * this method with the position of song 5 in Album B, should return the position
90 * @param position - Position of the item in the ListView dataset
94 int getHeaderPositionFromItemPosition(int position); argument
264 // Get the section header position
272 // No header for current position , use the dummy invisible one, hide the separator
298 // If position of bottom of last item in a section is smaller than the height of the
/packages/apps/Calendar/src/com/android/calendar/agenda/
H A DAgendaListView.java172 public void onItemClick(AdapterView<?> a, View v, int position, long id) { argument
175 AgendaItem item = mWindowAdapter.getAgendaItemByPosition(position);
232 int position = getSelectedItemPosition();
233 AgendaItem agendaItem = mWindowAdapter.getAgendaItemByPosition(position);
253 int position = getSelectedItemPosition();
254 if (position >= 0) {
255 AgendaItem item = mWindowAdapter.getAgendaItemByPosition(position);
285 Log.d(TAG, "first position had time " + t.toString());
293 int position = getFirstVisiblePosition();
295 Log.v(TAG, "getFirstVisiblePosition = " + position);
317 getJulianDayFromPosition(int position) argument
[all...]
/packages/apps/Calendar/src/com/android/calendar/event/
H A DEventLocationAdapter.java171 public View getView(final int position, final View convertView, final ViewGroup parent) { argument
176 final Result result = getItem(position);
/packages/apps/Calendar/src/com/android/calendar/month/
H A DMonthByWeekAdapter.java188 public View getView(int position, View convertView, ViewGroup parent) { argument
190 return super.getView(position, convertView, parent);
231 if (mSelectedWeek == position) {
241 drawingParams.put(SimpleWeekView.VIEW_PARAMS_WEEK, position);
H A DSimpleWeeksAdapter.java195 public Object getItem(int position) { argument
200 public long getItemId(int position) { argument
201 return position;
206 public View getView(int position, View convertView, ViewGroup parent) { argument
228 if (mSelectedWeek == position) {
239 drawingParams.put(SimpleWeekView.VIEW_PARAMS_WEEK, position);
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/
H A DSelectCalendarsSyncAdapter.java147 public View getView(final int position, View convertView, ViewGroup parent) { argument
148 if (position >= mRowCount) {
151 String name = mData[position].displayName;
152 boolean selected = mData[position].synced;
153 int color = Utils.getDisplayColorFromColor(mData[position].color);
176 view.setTag(mData[position]);
188 colorView.setEnabled(hasMoreColors(position));
195 if (!hasMoreColors(position)) {
200 mColorPickerDialog = CalendarColorPickerDialog.newInstance(mData[position].id,
203 mColorPickerDialog.setCalendarId(mData[position]
216 hasMoreColors(int position) argument
234 getItem(int position) argument
243 getItemId(int position) argument
255 getSynced(int position) argument
260 onItemClick(AdapterView<?> parent, View view, int position, long id) argument
[all...]
H A DSelectVisibleCalendarsFragment.java140 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
141 if (mAdapter == null || mAdapter.getCount() <= position) {
144 toggleVisibility(position);
158 public void toggleVisibility(int position) { argument
160 Uri uri = ContentUris.withAppendedId(Calendars.CONTENT_URI, mAdapter.getItemId(position));
163 int visibility = mAdapter.getVisible(position)^1;
166 mAdapter.setVisible(position, visibility);
/packages/apps/Camera2/src/com/android/camera/filmstrip/
H A DFilmstripController.java105 * Scrolls the filmstrip horizontally to a specific position.
107 * @param position The final position.
111 public void scrollToPosition(int position, int duration, boolean interruptible); argument
280 * @param firstVisiblePosition The position of the first rendered item
/packages/apps/Camera2/src/com/android/camera/ui/
H A DDetailsDialog.java214 public boolean isEnabled(int position) { argument
224 public Object getItem(int position) { argument
225 return mMediaDetails.getDetail(position);
229 public long getItemId(int position) { argument
230 return position;
234 public View getView(int position, View convertView, ViewGroup parent) { argument
242 tv.setText(mItems.get(position));
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
H A DCellBroadcastListActivity.java138 public void onListItemClick(ListView l, View v, int position, long id) { argument
/packages/apps/Contacts/src/com/android/contacts/
H A DSplitAggregateView.java99 public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
100 mListener.onContactSelected(list.get(position).rawContactId);
235 public View getView(int position, View convertView, ViewGroup parent) { argument
249 final RawContactInfo info = getItem(position);
/packages/apps/Contacts/src/com/android/contacts/group/
H A DGroupBrowseListAdapter.java110 public long getItemId(int position) { argument
111 return position;
115 public GroupListItem getItem(int position) { argument
116 if (mCursor == null || mCursor.isClosed() || !mCursor.moveToPosition(position)) {
129 int previousIndex = position - 1;
148 public View getView(int position, View convertView, ViewGroup parent) { argument
149 GroupListItem entry = getItem(position);
166 if (position == 0) {
H A DGroupBrowseListFragment.java125 public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
153 public void setVerticalScrollbarPosition(int position) { argument
154 mVerticalScrollbarPosition = position;
/packages/apps/Contacts/src/com/android/contacts/list/
H A DContactPickerFragment.java115 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
116 if (position == 0 && mCreateContactEnabled && mListener != null) {
119 super.onItemClick(parent, view, position, id);
124 protected void onItemClick(int position, long id) { argument
127 uri = ((LegacyContactListAdapter)getAdapter()).getPersonUri(position);
129 uri = ((ContactListAdapter)getAdapter()).getContactUri(position);
H A DDefaultContactBrowseListFragment.java90 protected void onItemClick(int position, long id) { argument
91 final Uri uri = getAdapter().getContactUri(position);
95 viewContact(uri, getAdapter().isEnterpriseContact(position));
/packages/apps/Contacts/tests/src/com/android/contacts/widget/
H A DCompositeListAdapterTest.java51 public View getView(int position, View convertView, ViewGroup parent) { argument
52 return new MockView(getContext(), position);
61 public boolean isEnabled(int position) { argument
62 return enabledItems.contains(position);
71 public int getItemViewType(int position) { argument
72 return viewTypes.get(position);
77 public MockView(Context context, int position) { argument
79 setTag(position);
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
H A DAccountFilterActivity.java171 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
242 public long getItemId(int position) { argument
243 return position;
247 public ContactListFilter getItem(int position) { argument
248 return mFilters.get(position);
251 public View getView(int position, View convertView, ViewGroup parent) { argument
260 final ContactListFilter filter = mFilters.get(position);
H A DContactListAdapter.java159 public String getContactDisplayName(int position) { argument
160 return ((Cursor) getItem(position)).getString(ContactQuery.CONTACT_DISPLAY_NAME);
165 * {@link ListView} position.
167 public Uri getContactUri(int position) { argument
168 int partitionIndex = getPartitionForPosition(position);
169 Cursor item = (Cursor)getItem(position);
185 public boolean isEnterpriseContact(int position) { argument
186 final Cursor cursor = (Cursor) getItem(position);
217 Context context, int partition, Cursor cursor, int position, ViewGroup parent) {
218 ContactListItemView view = super.newView(context, partition, cursor, position, paren
216 newView( Context context, int partition, Cursor cursor, int position, ViewGroup parent) argument
229 bindSectionHeaderAndDivider(ContactListItemView view, int position, Cursor cursor) argument
[all...]
H A DIndexerListAdapter.java42 private int position = ListView.INVALID_POSITION; field in class:IndexerListAdapter.Placement
48 position = ListView.INVALID_POSITION;
107 * @return relative position of the section in the indexed partition
118 * @param position relative position in the indexed partition
120 public int getSectionForPosition(int position) { argument
125 return mIndexer.getSectionForPosition(position);
162 int position = listPosition - listView.getHeaderViewsCount();
165 int partition = getPartitionForPosition(position);
167 int offset = getOffsetInPartition(position);
202 getItemPlacementInSection(int position) argument
[all...]
H A DViewPagerTabs.java95 public OnTabLongClickListener(int position) { argument
96 mPosition = position;
168 public void setUnreadCount(int count, int position) { argument
169 if (mUnreadCounts == null || position >= mUnreadCounts.length) {
172 mUnreadCounts[position] = count;
184 private void addTab(CharSequence tabTitle, final int position) { argument
186 if (mTabIcons != null && position < mTabIcons.length) {
190 iconView.setBackgroundResource(mTabIcons[position]);
193 if (mUnreadCounts != null && mUnreadCounts[position] > 0) {
194 textView.setText(Integer.toString(mUnreadCounts[position]));
274 onPageScrolled(int position, float positionOffset, int positionOffsetPixels) argument
285 onPageSelected(int position) argument
308 getRtlPosition(int position) argument
[all...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/widget/
H A DSelectPhoneAccountDialogFragment.java226 public View getView(int position, View convertView, ViewGroup parent) { argument
247 PhoneAccountHandle accountHandle = getItem(position);
/packages/apps/DeskClock/src/com/android/deskclock/
H A DAlarmClockFragment.java144 public void smoothScrollTo(int position) { argument
145 mLayoutManager.scrollToPositionWithOffset(position, 20);
H A DClockFragment.java349 public Object getItem(int position) { argument
351 return position == 0 ? getHomeCity() : getCities().get(position - 1);
354 return getCities().get(position);
358 public long getItemId(int position) { argument
359 return position;
363 public View getView(int position, View view, ViewGroup parent) { argument
365 final City city = (City) getItem(position);
414 public boolean isEnabled(int position) { argument

Completed in 554 milliseconds

1234567891011>>