Searched refs:position (Results 1 - 25 of 465) 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/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.java60 public View getView(int position, View convertView, ViewGroup parent) { argument
61 if (position == 0 && getHeaderEntryCount() > 0) {
74 return super.getView(position - getHeaderEntryCount(), convertView, parent);
78 public Object getItem(int position) { argument
79 return super.getItem(position - getHeaderEntryCount());
83 public boolean isEnabled(int position) { argument
84 return position < getHeaderEntryCount() || super
85 .isEnabled(position - getHeaderEntryCount());
89 public int getPartitionForPosition(int position) { argument
90 return super.getPartitionForPosition(position
94 bindView(View itemView, int partition, Cursor cursor, int position) argument
99 getItemViewType(int position) argument
[all...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
H A DAutoScrollListView.java25 * position. This class takes advantage of similar functionality that exists
51 * Brings the specified position to view by optionally performing a jump-scroll maneuver:
52 * first it jumps to some position near the one requested and then does a smooth
53 * scroll to the requested position. This creates an impression of full smooth
57 public void requestPositionToScreen(int position, boolean smoothScroll) { argument
58 mRequestedScrollPosition = position;
70 final int position = mRequestedScrollPosition;
75 if (position >= firstPosition && position <= lastPosition) {
81 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);
202 getItemPlacementInSection(int position) argument
[all...]
H A DContactsSectionIndexer.java55 int position = 0;
63 mPositions[i] = position;
64 position += counts[i];
66 mCount = position;
81 public int getSectionForPosition(int position) { argument
82 if (position < 0 || position >= mCount) {
86 int index = Arrays.binarySearch(mPositions, position);
90 * position is 4. The section corresponding to position
[all...]
/packages/apps/Contacts/src/com/android/contacts/widget/
H A DCompositeListAdapter.java144 public Object getItem(int position) { argument
149 if (position >= start && position < end) {
150 return mAdapters[i].getItem(position - start);
155 throw new ArrayIndexOutOfBoundsException(position);
158 public long getItemId(int position) { argument
163 if (position >= start && position < end) {
164 return mAdapters[i].getItemId(position - start);
169 throw new ArrayIndexOutOfBoundsException(position);
179 getItemViewType(int position) argument
195 getView(int position, View convertView, ViewGroup parent) argument
216 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);
H A DSuggestionView.java34 * @param position The position of this view with the list.
36 void bindAdapter(SuggestionsAdapter<?> adapter, long position); argument
/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/ExactCalculator/src/com/android/calculator2/
H A DCalculatorPadViewPager.java37 public View instantiateItem(ViewGroup container, int position) {
38 return getChildAt(position);
42 public void destroyItem(ViewGroup container, int position, Object object) {
43 removeViewAt(position);
52 public float getPageWidth(int position) {
53 return position == 1 ? 7.0f / 9.0f : 1.0f;
59 public void onPageSelected(int position) {
64 child.setClickable(i == position);
65 child.setImportantForAccessibility(i == position
74 public void transformPage(View view, float position) {
[all...]
/packages/apps/TV/src/com/android/tv/menu/
H A DOptionsRowAdapter.java88 * Gets the action at the given position.
89 * Note that action at the position may differ from returned by {@link #createActions}.
92 protected MenuAction getAction(int position) { argument
93 return mActionList.get(position);
97 * Sets the action at the given position.
98 * Note that action at the position may differ from returned by {@link #createActions}.
101 protected void setAction(int position, MenuAction action) { argument
102 mActionList.set(position, action);
106 * Adds an action to the given position.
107 * Note that action at the position ma
110 addAction(int position, MenuAction action) argument
119 removeAction(int position) argument
128 onBindViewHolder(MyViewHolder viewHolder, int position) argument
136 getItemViewType(int position) argument
[all...]
/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;
/packages/apps/Calculator/src/com/android/calculator2/
H A DCalculatorPadViewPager.java35 public Object instantiateItem(ViewGroup container, int position) {
36 return getChildAt(position);
40 public void destroyItem(ViewGroup container, int position, Object object) {
41 removeViewAt(position);
50 public float getPageWidth(int position) {
51 return position == 1 ? 7.0f / 9.0f : 1.0f;
68 public void onPageSelected(int position) {
72 recursivelySetEnabled(getChildAt(childIndex), childIndex == position);
80 public void transformPage(View view, float position) {
81 if (position < 0.
[all...]
/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;

Completed in 1032 milliseconds

1234567891011>>