Searched refs:position (Results 1 - 25 of 580) sorted by relevance

1234567891011>>

/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
H A Dbloom_filter.h38 AK_FORCE_INLINE void setInFilter(const int position) { argument
39 mFilter.set(getIndex(position));
42 AK_FORCE_INLINE bool isInFilter(const int position) const {
43 return mFilter.test(getIndex(position));
49 AK_FORCE_INLINE size_t getIndex(const int position) const {
50 return static_cast<size_t>(position) % BIGRAM_FILTER_MODULO;
/packages/apps/DocumentsUI/src/com/android/documentsui/selection/
H A DRange.java42 void snapSelection(int position, @RangeType int type) { argument
43 assert(position != RecyclerView.NO_POSITION);
48 establishRange(position, type);
50 reviseRange(position, type);
54 private void establishRange(int position, @RangeType int type) { argument
57 if (position == mBegin) {
58 mEnd = position;
61 if (position > mBegin) {
62 updateRange(mBegin + 1, position, true, type);
63 } else if (position < mBegi
70 reviseRange(int position, @RangeType int type) argument
92 reviseAscendingRange(int position, @RangeType int type) argument
109 reviseDescendingRange(int position, @RangeType int type) argument
[all...]
/packages/apps/Car/libs/car-stream-ui-lib/src/com/android/car/app/
H A DDrawerItemClickListener.java26 * @param position Adapter position of the clicked item.
28 void onItemClick(int position); argument
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/
H A DNullInputStream.java66 private long position; field in class:NullInputStream
101 * Return the current position.
103 * @return the current position.
106 return position;
124 long avail = size - position;
142 position = 0;
147 * Mark the current position.
149 * @param readlimit The number of bytes before this marked position
157 mark = position;
184 if (position
[all...]
H A DNullReader.java66 private long position; field in class:NullReader
101 * Return the current position.
103 * @return the current position.
106 return position;
126 position = 0;
131 * Mark the current position.
133 * @param readlimit The number of characters before this marked position
141 mark = position;
168 if (position == size) {
171 position
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DSeparatedFolderListAdapter.java42 public Object getItem(int position) { argument
46 // check if position inside this section
47 if (position < size)
48 return adapter.getItem(position);
51 position -= size;
76 public int getItemViewType(int position) { argument
80 // check if position inside this section
81 if (position < size) {
82 return type + adapter.getItemViewType(position);
86 position
94 getView(int position, View convertView, ViewGroup parent) argument
107 getItemId(int position) argument
[all...]
H A DBidiViewPagerHelper.java51 private int clampToBounds(int position) { argument
52 return Math.max(0, Math.min(mViewPager.getAdapter().getCount() - 1, position));
55 private int getBidiIndex(int position) { argument
57 return mViewPager.getAdapter().getCount() - 1 - position;
59 return position;
64 private int getIndexFromBidiIndex(int position) { argument
66 return getBidiIndex(position);
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
H A DScrollHandler.java30 * Perform smooth scroll to position.
32 void smoothScrollTo(int position); argument
/packages/apps/Contacts/src/com/android/contacts/list/
H A DHeaderEntryContactListAdapter.java58 public View getView(int position, View convertView, ViewGroup parent) { argument
59 if (position == 0 && getHeaderEntryCount() > 0) {
72 return super.getView(position - getHeaderEntryCount(), convertView, parent);
76 public Object getItem(int position) { argument
77 return super.getItem(position - getHeaderEntryCount());
81 public boolean isEnabled(int position) { argument
82 return position < getHeaderEntryCount() || super
83 .isEnabled(position - getHeaderEntryCount());
87 public int getPartitionForPosition(int position) { argument
88 return super.getPartitionForPosition(position
92 bindView(View itemView, int partition, Cursor cursor, int position) argument
97 getItemViewType(int position) argument
[all...]
H A DAutoScrollListView.java26 * position. This class takes advantage of similar functionality that exists
52 * Brings the specified position to view by optionally performing a jump-scroll maneuver:
53 * first it jumps to some position near the one requested and then does a smooth
54 * scroll to the requested position. This creates an impression of full smooth
58 public void requestPositionToScreen(int position, boolean smoothScroll) { argument
59 mRequestedScrollPosition = position;
71 final int position = mRequestedScrollPosition;
76 if (position >= firstPosition && position <= lastPosition) {
82 setSelectionFromTop(position, offse
[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);
205 getViewAtVisiblePosition(ListView list, int position) argument
222 getItemPlacementInSection(int position) argument
[all...]
H A DOnContactBrowserActionListener.java34 * @param position The index of the contact that should be opened
37 void onViewContactAction(int position, Uri contactLookupUri, boolean isEnterpriseContact); argument
/packages/apps/Dialer/java/com/android/dialer/searchfragment/list/
H A DSearchCursorManager.java153 int getRowType(int position) { argument
155 position -= contactsCursor.getCount();
157 if (position < 0) {
163 if (position == 0) {
166 position--; // header
169 position -= nearbyPlacesCursor.getCount();
171 if (position < 0) {
177 if (position == 0) {
180 position--; // header
183 position
201 getCursor(int position) argument
240 getHeaderText(int position) argument
[all...]
/packages/apps/Contacts/src/com/android/contacts/widget/
H A DCompositeListAdapter.java139 public Object getItem(int position) { argument
144 if (position >= start && position < end) {
145 return mAdapters[i].getItem(position - start);
150 throw new ArrayIndexOutOfBoundsException(position);
153 public long getItemId(int position) { argument
158 if (position >= start && position < end) {
159 return mAdapters[i].getItemId(position - start);
164 throw new ArrayIndexOutOfBoundsException(position);
174 getItemViewType(int position) argument
190 getView(int position, View convertView, ViewGroup parent) argument
211 isEnabled(int position) argument
[all...]
H A DSingleItemAdapter.java31 public Object getItem(int position) { argument
35 public long getItemId(int position) { argument
39 public View getView(int position, View convertView, ViewGroup parent) { argument
H A DNotifyingSpinner.java30 void onSetSelection(NotifyingSpinner view, int position); argument
48 public void setSelection(int position) { argument
49 super.setSelection(position);
52 mListener.onSetSelection(this, position);
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/adapter/
H A DCheckBroker.java37 public void onCheckedChanged(int position, boolean isChecked); argument
42 public abstract void setItemChecked(int position, boolean checked); argument
44 public void onCheckedChange(int position, boolean checked) { argument
45 if (isItemChecked(position) != checked) {
47 l.onCheckedChanged(position, checked);
58 public abstract boolean isItemChecked(int position); argument
H A DMtpAdapter.java93 public Object getItem(int position) { argument
94 return mModel.get(position, mSortOrder);
103 public boolean isEnabled(int position) { argument
108 public long getItemId(int position) { argument
109 return position;
118 public int getItemViewType(int position) { argument
119 // If the position is the first in its section, then it corresponds to
121 if (position == getPositionForSection(getSectionForPosition(position))) {
128 public boolean itemAtPositionIsBucket(int position) { argument
132 itemAtPositionIsMedia(int position) argument
137 getView(int position, View convertView, ViewGroup parent) argument
176 getSectionForPosition(int position) argument
196 translatePositionWithoutLabels(int position) argument
[all...]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
H A DSuggestionsListAdapter.java74 public Object getItem(int position) { argument
75 return getSuggestion(position);
79 public long getItemId(int position) { argument
80 return position;
84 public View getView(int position, View convertView, ViewGroup parent) { argument
86 getCurrentSuggestions(), position, position, convertView, parent);
90 public int getItemViewType(int position) { argument
91 return getSuggestionViewType(getCurrentSuggestions(), position);
/packages/apps/Messaging/src/com/android/messaging/ui/
H A DCustomHeaderViewPagerAdapter.java28 public CharSequence getPageTitle(int position) { argument
29 // The tab strip will handle RTL internally so we should use raw position.
30 return getViewHolder(position, false /* rtlAware */)
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/util/
H A DPositionInputStream.java29 protected long position = 0; field in class:PositionInputStream
37 return position;
47 position++;
57 position = markedPosition;
66 markedPosition = position;
71 position += c;
77 position += c;
83 position += c;
/packages/apps/Dialer/java/com/android/contacts/common/list/
H A DAutoScrollListView.java25 * A ListView that can be asked to scroll (smoothly or otherwise) to a specific position. This class
49 * Brings the specified position to view by optionally performing a jump-scroll maneuver: first it
50 * jumps to some position near the one requested and then does a smooth scroll to the requested
51 * position. This creates an impression of full smooth scrolling without actually traversing the
55 public void requestPositionToScreen(int position, boolean smoothScroll) { argument
56 mRequestedScrollPosition = position;
68 final int position = mRequestedScrollPosition;
73 if (position >= firstPosition && position <= lastPosition) {
79 setSelectionFromTop(position, offse
[all...]
H A DIndexerListAdapter.java81 /** @return relative position of the section in the indexed partition */
90 /** @param position relative position in the indexed partition */
91 public int getSectionForPosition(int position) { argument
96 return mIndexer.getSectionForPosition(position);
133 int position = listPosition - listView.getHeaderViewsCount();
136 int partition = getPartitionForPosition(position);
138 int offset = getOffsetInPartition(position);
154 // Compute the item position where the current partition begins
160 // Compute the item position wher
173 getItemPlacementInSection(int position) argument
208 private int position = ListView.INVALID_POSITION; field in class:IndexerListAdapter.Placement
[all...]
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/
H A DRootsAdapter.java58 public long getItemId(int position) { argument
63 String stringId = getItem(position).stringId;
77 public View getView(int position, View convertView, ViewGroup parent) { argument
78 final Item item = getItem(position);
82 view.setTag(R.id.item_position_tag, position);
97 public boolean isEnabled(int position) { argument
98 return getItemViewType(position) != 1;
102 public int getItemViewType(int position) { argument
103 final Item item = getItem(position);
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
H A DDragGestureDetector.java44 private void computeAveragePosition(MotionEvent event, float[] position) { argument
45 computeAveragePosition(event, position, -1);
48 private void computeAveragePosition(MotionEvent event, float[] position, int ignore) { argument
50 position[0] = 0f;
51 position[1] = 0f;
55 position[0] += event.getX(p);
56 position[1] += event.getY(p);
60 position[0] /= count;
61 position[1] /= count;

Completed in 609 milliseconds

1234567891011>>