Searched refs:position (Results 26 - 50 of 580) sorted by relevance

1234567891011>>

/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
H A DSuggestionView.java34 * @param position The position of this view with the list.
36 void bindAdapter(SuggestionsAdapter<?> adapter, long position); argument
/packages/apps/Settings/src/com/android/settings/localepicker/
H A DLocaleLinearLayoutManager.java81 final int position = this.getPosition(host);
85 // any language can handle it. And we want the position to be part of it.
88 (position + 1) + ", " + dragCell.getCheckbox().getContentDescription();
98 if (position > 0) { // it is not the first one
102 if (position + 1 < itemCount) { // it is not the last one
116 final int position = this.getPosition(host);
121 if (position > 0) {
122 mAdapter.onItemMove(position, position - 1);
127 if (position
[all...]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
H A DByteArrayDictBuffer.java58 public int position() { method in class:ByteArrayDictBuffer
63 public void position(int position) { argument
64 mPosition = position;
/packages/apps/Contacts/src/com/android/contacts/list/
H A DContactsSectionIndexer.java56 int position = 0;
65 mPositions[i] = position;
66 position += counts[i];
68 mCount = position;
87 public int getSectionForPosition(int position) { argument
88 if (position < 0 || position >= mCount) {
92 int index = Arrays.binarySearch(mPositions, position);
96 * position is 4. The section corresponding to position
[all...]
H A DLegacyPhoneNumberPickerFragment.java35 protected Uri getPhoneUri(int position) { argument
37 return adapter.getPhoneUri(position);
41 protected String getLookupKey(int position) { argument
/packages/apps/Dialer/java/com/android/contacts/common/list/
H A DContactsSectionIndexer.java53 int position = 0;
61 mPositions[i] = position;
62 position += counts[i];
64 mCount = position;
79 public int getSectionForPosition(int position) { argument
80 if (position < 0 || position >= mCount) {
84 int index = Arrays.binarySearch(mPositions, position);
88 * position is 4. The section corresponding to position
[all...]
H A DViewPagerTabs.java124 public void setUnreadCount(int count, int position) { argument
125 if (mUnreadCounts == null || position >= mUnreadCounts.length) {
128 mUnreadCounts[position] = count;
140 private void addTab(CharSequence tabTitle, final int position) { argument
142 if (mTabIcons != null && position < mTabIcons.length) {
145 iconView.setBackgroundResource(mTabIcons[position]);
148 if (mUnreadCounts != null && mUnreadCounts[position] > 0) {
149 textView.setText(Integer.toString(mUnreadCounts[position]));
155 mUnreadCounts[position],
157 mUnreadCounts[position]));
234 onPageScrolled(int position, float positionOffset, int positionOffsetPixels) argument
245 onPageSelected(int position) argument
267 getRtlPosition(int position) argument
279 OnTabLongClickListener(int position) argument
[all...]
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
H A DSectionedAlbumDataAdapter.java113 public boolean isEnabled(int position) { argument
114 if (isHeader(position)) {
117 return mAlbumData.isEnabled(internalPosition(position));
129 public Object getItem(int position) { argument
130 if (isHeader(position)) {
131 return mAlbumData.getItem(internalPosition(position+1)).account;
133 return mAlbumData.getItem(internalPosition(position));
138 public long getItemId(int position) { argument
139 return position;
143 public int getItemViewType(int position) { argument
177 getView(int position, View convertView, ViewGroup parent) argument
200 isHeader(int position) argument
204 internalPosition(int position) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
H A DMtpDeviceIndex.java39 * - get/getAscending/getDescending: get an item at a specified list position
237 * @param position Index of item to fetch, where 0 is the first item in the
240 * @return the bucket label or IngestObjectInfo at the specified position and
243 public Object get(int position, SortOrder order) { argument
249 DateBucket bucket = results.buckets[results.unifiedLookupIndex[position]];
250 if (bucket.unifiedStartIndex == position) {
253 return results.mtpObjects[bucket.itemsStartIndex + position - 1
257 int zeroIndex = results.unifiedLookupIndex.length - 1 - position;
269 * @param position Index of item to fetch from a view of the data that does not
271 * @return position
273 getWithoutLabels(int position, SortOrder order) argument
292 getPositionFromPositionWithoutLabels(int position, SortOrder order) argument
334 getPositionWithoutLabelsFromPosition(int position, SortOrder order) argument
386 getBucketNumberForPosition(int position, SortOrder order) argument
403 isFirstInBucket(int position, SortOrder order) argument
[all...]
/packages/apps/Car/Radio/src/com/android/car/radio/
H A DPresetsAdapter.java91 public void onBindViewHolder(PresetsViewHolder holder, int position) { argument
92 RadioStation station = mPresets.get(position);
99 public void onPresetClicked(int position) { argument
101 Log.d(TAG, String.format("onPresetClicked(); item count: %d; position: %d",
102 getItemCount(), position));
105 if (mPresetClickListener != null && getItemCount() > position) {
106 mPresetClickListener.onPresetItemClicked(mPresets.get(position));
111 public int getItemViewType(int position) { argument
/packages/apps/Settings/src/com/android/settings/datausage/
H A DSpinnerPreference.java55 public void setSelection(int position) { argument
56 mPosition = position;
78 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
79 if (mPosition == position) return;
80 mPosition = position;
81 mCurrentObject = mAdapter.getItem(position);
82 mListener.onItemSelected(parent, view, position, id);
/packages/apps/TV/src/com/android/tv/menu/
H A DOptionsRowAdapter.java83 * Gets the action at the given position.
84 * Note that action at the position may differ from returned by {@link #createActions}.
87 protected MenuAction getAction(int position) { argument
88 return mActionList.get(position);
92 public void onBindViewHolder(MyViewHolder viewHolder, int position) { argument
93 super.onBindViewHolder(viewHolder, position);
95 viewHolder.itemView.setTag(getItemList().get(position));
100 public int getItemViewType(int position) { argument
104 return mActionList.get(position).getType();
/packages/apps/Messaging/src/com/android/messaging/ui/
H A DCompositeAdapter.java143 public int getPartitionAtPosition(final int position) { argument
148 if (position >= start && position < end) {
149 int offset = position - start;
194 public Object getItem(final int position) { argument
199 if (position >= start && position < end) {
200 final int offset = position - start;
216 public long getItemId(final int position) { argument
221 if (position >
238 isEnabled(int position) argument
259 getView(final int position, final View convertView, final ViewGroup parentView) argument
[all...]
H A DPagingAwareViewPager.java48 int position = super.getCurrentItem();
49 return getRtlPosition(position);
53 * Switches position in pager to be adjusted for if we are in RtL mode
55 * @param position
56 * @return position adjusted if in rtl mode
58 protected int getRtlPosition(final int position) { argument
61 return adapter.getCount() - 1 - position;
63 return position;
H A DViewPagerTabs.java157 private void addTab(CharSequence tabTitle, final int position) { argument
165 mPager.setCurrentItem(getRtlPosition(position));
184 if (position == 0) {
191 public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { argument
192 position = getRtlPosition(position);
194 if ((tabStripChildCount == 0) || (position < 0) || (position >= tabStripChildCount)) {
198 mTabStrip.onPageScrolled(position, positionOffset, positionOffsetPixels);
202 public void onPageSelected(int position) { argument
225 getRtlPosition(int position) argument
[all...]
/packages/apps/Calendar/src/com/android/calendar/agenda/
H A DAgendaByDayAdapter.java83 public long getInstanceId(int position) { argument
84 if (mRowInfo == null || position >= mRowInfo.size()) {
87 return mRowInfo.get(position).mInstanceId;
90 public long getStartTime(int position) { argument
91 if (mRowInfo == null || position >= mRowInfo.size()) {
94 return mRowInfo.get(position).mEventStartTimeMilli;
98 // Returns the position of a header of a specific item
99 public int getHeaderPosition(int position) { argument
100 if (mRowInfo == null || position >= mRowInfo.size()) {
104 for (int i = position;
113 getHeaderItemsCount(int position) argument
136 getItem(int position) argument
149 getItemId(int position) argument
167 getItemViewType(int position) argument
172 isDayHeaderView(int position) argument
177 getView(int position, View convertView, ViewGroup parent) argument
450 RowInfo(int type, int julianDay, int position, long id, long startTime, long endTime, long instanceId, boolean allDay) argument
485 MultipleDayInfo(int position, int endDay, long id, long startTime, long endTime, long instanceId, boolean allDay) argument
598 isFirstDayAfterYesterday(int position) argument
613 findJulianDayFromPosition(int position) argument
636 setAsFirstDayAfterYesterday(int position) argument
677 isEnabled(int position) argument
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/settings/
H A DSimpleMenuPreference.java69 private static void swapSelectedToFront(CharSequence[] array, int position) { argument
70 final CharSequence item = array[position];
71 System.arraycopy(array, 0, array, 1, position);
76 int position) {
77 final CharSequence item = array[position];
99 /** The original position of the last selected element */
112 private void swapSelectedToFront(int position) { argument
113 final CharSequence item = getItem(position);
116 mLastSelectedOriginalPosition = position;
123 void setSelectedPosition(int position) { argument
75 setSelectedPosition(CharSequence[] array, int lastSelectedOriginalPosition, int position) argument
133 getDropDownView(int position, View convertView, @NonNull ViewGroup parent) argument
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DMergedAdapter.java99 * For a given merged position, find the corresponding Adapter and local position within that
100 * Adapter by iterating through Adapters and summing their counts until the merged position is
103 * @param position a merged (global) position
104 * @return the matching Adapter and local position, or null if not found
106 public LocalAdapterPosition<T> getAdapterOffsetForItem(final int position) { argument
114 if (position < newCount) {
115 return new LocalAdapterPosition<T>(a, position - count);
124 public Object getItem(int position) { argument
133 getItemId(int position) argument
147 getItemViewType(int position) argument
166 getView(int position, View convertView, ViewGroup parent) argument
181 isEnabled(int position) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
H A DEmojiPalettesAdapter.java91 public void setPrimaryItem(final ViewGroup container, final int position, argument
93 if (mActivePosition == position) {
101 mActivePosition = position;
105 public Object instantiateItem(final ViewGroup container, final int position) { argument
107 Log.d(TAG, "instantiate item: " + position);
109 final EmojiPageKeyboardView oldKeyboardView = mActiveKeyboardViews.get(position);
113 mActiveKeyboardViews.remove(position);
116 mEmojiCategory.getKeyboardFromPagePosition(position);
123 mActiveKeyboardViews.put(position, keyboardView);
133 public void destroyItem(final ViewGroup container, final int position, argument
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/
H A DVerticalViewPager.java89 public void transformPage(View view, float position) { argument
92 if (position < -1) {
95 } else if (position <= 1) {
98 view.setTranslationX(pageWidth * -position);
99 // set Y position to swipe in from top
100 float yPosition = position * pageHeight;
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
H A DEnterprisePrivacySettingsTest.java132 int position = 0;
133 assertThat(controllers.get(position++)).isInstanceOf(NetworkLogsPreferenceController.class);
134 assertThat(controllers.get(position++)).isInstanceOf(BugReportsPreferenceController.class);
135 assertThat(controllers.get(position++)).isInstanceOf(
137 assertThat(controllers.get(position++)).isInstanceOf(
139 assertThat(controllers.get(position++)).isInstanceOf(
141 assertThat(controllers.get(position++)).isInstanceOf(
143 assertThat(controllers.get(position++)).isInstanceOf(
145 assertThat(controllers.get(position++)).isInstanceOf(
147 assertThat(controllers.get(position
[all...]
/packages/apps/Gallery2/src/com/android/photos/views/
H A DHeaderGridView.java307 public boolean isEnabled(int position) { argument
310 if (position < numHeadersAndPlaceholders) {
311 return (position % mNumColumns == 0)
312 && mHeaderViewInfos.get(position / mNumColumns).isSelectable;
316 final int adjPosition = position - numHeadersAndPlaceholders;
325 throw new ArrayIndexOutOfBoundsException(position);
329 public Object getItem(int position) { argument
332 if (position < numHeadersAndPlaceholders) {
333 if (position % mNumColumns == 0) {
334 return mHeaderViewInfos.get(position / mNumColumn
353 getItemId(int position) argument
374 getView(int position, View convertView, ViewGroup parent) argument
408 getItemViewType(int position) argument
[all...]
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/
H A DSelectCalendarsSimpleAdapter.java217 public View getView(final int position, View convertView, ViewGroup parent) { argument
218 if (position >= mRowCount) {
221 String name = mData[position].displayName;
222 boolean selected = mData[position].selected;
224 int color = Utils.getDisplayColorFromColor(mData[position].color);
256 if (!hasMoreColors(position)) {
261 mColorPickerDialog = CalendarColorPickerDialog.newInstance(mData[position].id,
264 mColorPickerDialog.setCalendarId(mData[position].id);
287 colorView.setEnabled(hasMoreColors(position));
290 if (!TextUtils.isEmpty(mData[position]
330 hasMoreColors(int position) argument
339 getBackground(int position, boolean selected) argument
354 getItem(int position) argument
363 getItemId(int position) argument
370 setVisible(int position, int visible) argument
375 getVisible(int position) argument
[all...]
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
H A DContactEntryAdapter.java97 * Resets the section data and returns the position of the given entry.
100 * @param entry the entry to return the position for
101 * @return the position of entry, or -1 if it isn't found
108 int position = 0;
115 position += j;
116 return position;
119 position += sectionSize;
143 public final boolean isEnabled(int position) { argument
156 if (position == 0) {
160 position
168 getItem(int position) argument
179 getEntry(ArrayList<ArrayList<T>> sections, int position, boolean separators) argument
222 getItemId(int position) argument
234 getView(int position, View convertView, ViewGroup parent) argument
251 newView(int position, ViewGroup parent) argument
[all...]
/packages/apps/DocumentsUI/src/com/android/documentsui/
H A DDropdownBreadcrumb.java69 AdapterView<?> parent, View view, int position, long id) {
70 listener.accept(position);
109 public DocumentInfo getItem(int position) { argument
110 return mState.stack.get(position);
114 public long getItemId(int position) { argument
115 return position;
119 public View getView(int position, View convertView, ViewGroup parent) { argument
126 final DocumentInfo doc = getItem(position);
128 if (position == 0) {
139 public View getDropDownView(int position, Vie argument
[all...]

Completed in 921 milliseconds

1234567891011>>