/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/ |
H A D | bloom_filter.h | 38 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/com/android/mail/ui/ |
H A D | SeparatedFolderListAdapter.java | 42 public Object getItem(int position) { argument 46 // check if position inside this section 47 if (position == 0 || 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 == 0 || position < siz 94 getView(int position, View convertView, ViewGroup parent) argument 107 getItemId(int position) argument [all...] |
H A D | BidiViewPagerHelper.java | 51 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;
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/ |
H A D | NullInputStream.java | 66 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 D | NullReader.java | 66 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/Contacts/src/com/android/contacts/list/ |
H A D | HeaderEntryContactListAdapter.java | 60 public View getView(int position, View convertView, ViewGroup parent) { argument 61 if (position == 0 && getHeaderEntryCount() > 0) { 75 return super.getView(position - getHeaderEntryCount(), convertView, parent); 79 public Object getItem(int position) { argument 80 return super.getItem(position - getHeaderEntryCount()); 84 public boolean isEnabled(int position) { argument 85 return position < getHeaderEntryCount() || super 86 .isEnabled(position - getHeaderEntryCount()); 90 public int getPartitionForPosition(int position) { argument 91 return super.getPartitionForPosition(position 95 bindView(View itemView, int partition, Cursor cursor, int position) argument 100 getItemViewType(int position) argument [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/ |
H A D | GridAdapter.java | 30 * Checks to see if the child at the specified position is draggable 31 * @param position The position of the child to check against 32 * @return boolean If true, the child at the specified position is draggable. 34 public boolean isDraggable(int position) { argument 39 * For a view at the specified position, return the region around the view that is a possible 41 * @param position The adapter position 42 * @param isLastColumnInGrid Flag to indicate whether the view at the specified position is 48 * @return int The re-ordering area for the view at this adapter position 52 getReorderingArea(int position, boolean isLastColumnInGrid) argument 102 getItemIdFromView(View view, int position) argument 118 getItemId(Object item, int position) argument 135 getItemViewType(Object item, int position) argument 155 getView(Object item, int position, View scrap, ViewGroup parent, int measuredWidth) argument 163 getItemColumnSpan(Object item, int position) argument [all...] |
H A D | ReorderHelper.java | 16 * Helper class for doing reorder animations. Works out the logical position of 24 * Constant to indicate an unsupported reordering position. 75 // Ensure that target position is not the same as the original, 77 if (lp.position != mCurrentDraggedOverChild.position) { 83 mDraggedChild.position != mCurrentDraggedOverChild.position) { 85 mDraggedChild.position, 86 mCurrentDraggedOverChild.position); 90 mReorderListener.onDrop(mDraggedChild.target, mDraggedChild.position, 270 final int position; field in class:ReorderHelper.ReorderView [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
H A D | AutoScrollListView.java | 25 * 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 D | IndexerListAdapter.java | 42 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...] |
/packages/apps/Contacts/src/com/android/contacts/widget/ |
H A D | CompositeListAdapter.java | 144 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 D | SingleItemAdapter.java | 31 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 D | NotifyingSpinner.java | 30 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 D | CheckBroker.java | 37 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 D | MtpAdapter.java | 93 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/Mms/src/com/android/mms/ui/ |
H A D | SlideshowEditor.java | 61 int position = mModel.size(); 62 return addNewSlide(position); 66 * Add a new slide at the specified position in the message. 69 * @throws IndexOutOfBoundsException - if position is out of range 70 * (position < 0 || position > size()). 72 public boolean addNewSlide(int position) { argument 82 mModel.add(position, slide); 94 * @param position The expected position fo 97 generateTextSrc(SlideshowModel slideshow, int position) argument 129 addSlide(int position, SlideModel slide) argument 145 removeSlide(int position) argument 164 removeText(int position) argument 168 removeImage(int position) argument 172 removeVideo(int position) argument 176 removeAudio(int position) argument 180 changeText(int position, String newText) argument 196 changeImage(int position, Uri newImage) argument 201 changeAudio(int position, Uri newAudio) argument 208 changeVideo(int position, Uri newVideo) argument 216 moveSlideUp(int position) argument 220 moveSlideDown(int position) argument 224 changeDuration(int position, int dur) argument [all...] |
H A D | SlideshowEditActivity.java | 145 protected void onListItemClick(ListView l, View v, int position, long id) { argument 146 if (position == (l.getCount() - 1)) { 149 openSlide(position); 230 int position = mList.getSelectedItemPosition(); 231 if ((position >= 0) && (position != (mList.getCount() - 1))) { 233 if (position > 0) { 237 if (position < (mSlideListAdapter.getCount() - 1)) { 258 int position = mList.getSelectedItemPosition(); 262 if ((position > 372 getView(int position, View convertView, ViewGroup parent) argument 376 createViewFromResource(int position, View convertView, int resource) argument [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
H A D | SuggestionsListAdapter.java | 74 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 D | SuggestionView.java | 34 * @param position The position of this view with the list. 36 void bindAdapter(SuggestionsAdapter<?> adapter, long position); argument
|
/packages/apps/Browser/src/com/android/browser/addbookmark/ |
H A D | FolderSpinner.java | 60 * @param position New position to select. 62 public void setSelectionIgnoringSelectionChange(int position) { argument 63 super.setSelection(position); 67 public void setSelection(int position) { argument 70 super.setSelection(position); 72 if (oldPosition == position) { 73 long id = getAdapter().getItemId(position); 76 onItemSelected(this, null, position, id); 82 public void onItemSelected(AdapterView<?> parent, View view, int position, lon argument [all...] |
H A D | FolderSpinnerAdapter.java | 63 private void bindView(int position, View view, boolean isDropDown) { argument 67 position++; 69 switch (position) { 91 if (position == RECENT_FOLDER) { 93 } else if (position == OTHER_FOLDER && !isDropDown 106 public View getDropDownView(int position, View convertView, ViewGroup parent) { argument 111 bindView(position, convertView, true); 116 public View getView(int position, View convertView, ViewGroup parent) { argument 121 bindView(position, convertView, false); 134 public Object getItem(int position) { argument 139 getItemId(int position) argument [all...] |
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/util/ |
H A D | PositionInputStream.java | 29 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/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
H A D | DragGestureDetector.java | 44 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 D | CalculatorPadViewPager.java | 35 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/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
H A D | ByteArrayDictBuffer.java | 58 public int position() { method in class:ByteArrayDictBuffer 63 public void position(int position) { argument 64 mPosition = position;
|