Searched refs:position (Results 101 - 125 of 420) sorted by relevance

1234567891011>>

/packages/apps/Email/src/com/beetstra/jutf7/
H A DUTF7StyleCharsetDecoder.java104 in.position(in.position() - 1);
165 * Resets the input buffer position to just before the last byte read, and
173 in.position(in.position() - 1);
/packages/experimental/PrintService/src/foo/bar/printservice/
H A DMyDialogActivity.java45 public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
46 switch (position) {
98 public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
99 switch (position) {
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
H A DDictEncoder.java33 public void setPosition(final int position); argument
/packages/apps/Gallery2/src/com/android/photos/
H A DMultiSelectGridFragment.java113 * getGridView().getItemAtPosition(position) if they need to access the data
118 * @param position The position of the view in the grid
121 public void onGridItemClick(GridView g, View v, int position, long id) { argument
141 * Set the currently selected grid item to the specified position with the
144 * @param position
146 public void setSelection(int position) { argument
148 mGrid.setSelection(position);
152 * Get the position of the currently selected grid item.
323 public Object getItemAtPosition(int position) { argument
328 getPathForItemAtPosition(int position) argument
345 onItemClick(AdapterView<?> parent, View v, int position, long id) argument
[all...]
/packages/apps/Settings/src/com/android/settings/
H A DUsageStatsActivity.java157 public Object getItem(int position) { argument
158 return mPackageStats.get(position);
162 public long getItemId(int position) { argument
163 return position;
167 public View getView(int position, View convertView, ViewGroup parent) { argument
192 UsageStats pkgStats = mPackageStats.get(position);
201 Log.w(TAG, "No usage stats info for package:" + position);
248 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { argument
249 mAdapter.sortList(position);
/packages/apps/Settings/src/com/android/settings/dashboard/
H A DSearchResultsSummary.java168 public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
169 // We have a header, so we need to decrement the position by one
170 position--;
173 // List Header and thus the position passed was "0" and then by decrement was "-1"
174 if (position < 0) {
179 cursor.moveToPosition(position);
223 public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
224 // We have a header, so we need to decrement the position by one
225 position--;
227 // List Header and thus the position passe
439 getItem(int position) argument
449 getItemId(int position) argument
454 getView(int position, View convertView, ViewGroup parent) argument
541 getItem(int position) argument
581 getItemId(int position) argument
586 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/packages/apps/Stk/src/com/android/stk/
H A DStkMenuActivity.java108 protected void onListItemClick(ListView l, View v, int position, long id) { argument
109 super.onListItemClick(l, v, position, id);
115 Item item = getSelectedItem(position);
231 int position = getSelectedItemPosition();
232 Item stkItem = getSelectedItem(position);
269 int position = info.position;
270 CatLog.d(this, "Position:" + position);
271 Item stkItem = getSelectedItem(position);
346 private Item getSelectedItem(int position) { argument
[all...]
H A DStkMenuAdapter.java46 public View getView(int position, View convertView, ViewGroup parent) { argument
47 final Item item = 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) {
/packages/apps/Contacts/tests/src/com/android/contacts/tests/widget/
H A DPinnedHeaderUseCaseActivity.java47 protected void onListItemClick(ListView l, View v, int position, long id) { argument
48 switch (position) {
/packages/apps/Dialer/src/com/android/dialer/list/
H A DRegularSearchFragment.java56 protected void cacheContactInfo(int position) { argument
61 adapter.getContactInfo(mCachedNumberLookupService, position));
H A DSmartDialSearchFragment.java67 * @param position Location of the data of interest.
71 protected Uri getPhoneUri(int position) { argument
73 return adapter.getDataUri(position);
H A DShortcutCardsAdapter.java158 public Object getItem(int position) { argument
159 return mCallLogAdapter.getItem(position);
163 public long getItemId(int position) { argument
164 return position;
181 public int getItemViewType(int position) { argument
182 return mCallLogAdapter.getItemViewType(position);
186 public View getView(int position, View convertView, ViewGroup parent) { argument
199 final View view = mCallLogAdapter.getView(position, convertView == null ?
214 public boolean isEnabled(int position) { argument
215 return mCallLogAdapter.isEnabled(position);
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DScrollerHelper.java41 * Call this when you want to know the new location. The position will be
65 public void setPosition(int position) { argument
67 position, 0, // startX, startY
70 // This forces the scroller to reach the final position.
/packages/apps/Mms/src/com/android/mms/ui/
H A DDeliveryReportAdapter.java41 public View getView(int position, View view, ViewGroup viewGroup) { argument
43 DeliveryReportItem item = this.getItem(position);
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/utils/
H A Dbuffer_with_extendable_buffer.h31 // To optimize performance, raw pointer is directly used for reading buffer. The position has to be
59 AK_FORCE_INLINE bool isInAdditionalBuffer(const int position) const {
60 return position >= static_cast<int>(mOriginalBuffer.size());
120 // Returns if it is possible to write size-bytes from pos. When pos is at the tail position of
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DGalleryActionBar.java118 public Object getItem(int position) { argument
119 return sClusterItems[position];
123 public long getItemId(int position) { argument
124 return sClusterItems[position].action;
128 public View getView(int position, View convertView, ViewGroup parent) { argument
134 view.setText(sClusterItems[position].spinnerTitle);
146 public Object getItem(int position) { argument
147 return mAlbumModes[position];
151 public long getItemId(int position) { argument
152 return position;
156 getView(int position, View convertView, ViewGroup parent) argument
168 getDropDownView(int position, View convertView, ViewGroup parent) argument
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/
H A DStaggeredGridView.java91 * - mFirstPosition is the adapter position of the View returned by getChildAt(0).
92 * - Any child index can be translated to an adapter position by adding mFirstPosition.
93 * - Any adapter position can be translated to a child index by subtracting mFirstPosition.
117 * The window size to search for a specific item when restoring scroll position.
205 // Value used to estimate the range of scroll and scroll position
274 * Indicates whether to use pixels-based or position-based scrollbar
454 // When switching column count, for now, don't restore scroll position, and just
473 * all views starting at the 0th position of the adapter to figure out the proper offset of the
512 * When smooth scrollbar is enabled, the position and size of the scrollbar thumb
519 * When smooth scrollbar is disabled, the position an
1341 recreateLayoutRecord(int position, View child, LayoutParams lp) argument
2455 invalidateLayoutRecordsBeforePosition(int position) argument
2463 invalidateLayoutRecordsAfterPosition(int position) argument
2833 getNextRecordUp(int position, int span) argument
2915 getNextRecordDown(int position, int span) argument
3001 obtainView(int position) argument
3078 obtainView(int position, View optScrap) argument
3247 setFirstPositionAndOffsets(int position, int offset) argument
3686 public int position = -1; field in class:StaggeredGridView.LayoutParams
3832 getTransientStateView(int position) argument
3925 int position; field in class:StaggeredGridView.SavedState
4146 onEnterReorderArea(View view, int position) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
H A DWidgetService.java94 public long getItemId(int position) { argument
95 return position;
118 public RemoteViews getViewAt(int position) { argument
119 Bitmap bitmap = mSource.getImage(position);
127 .setData(mSource.getContentUri(position)));
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
H A DBaseScrollAdapterFragment.java89 public void setSelection(int position) { argument
90 mScrollAdapterView.setSelection(position);
93 public void setSelectionSmooth(int position) { argument
94 mScrollAdapterView.setSelectionSmooth(position);
176 public synchronized void onScrolled(View view, int position, float mainPosition, argument
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
H A DContactsListFragment.java131 * {@link ListView} position.
133 public Uri getContactUri(int position) { argument
134 if (position == ListView.INVALID_POSITION) {
138 final Cursor cursor = (Cursor) mAdapter.getItem(position);
149 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
152 mController.onContactSelected(getContactUri(position));
/packages/apps/Calendar/src/com/android/calendar/agenda/
H A DAgendaWindowAdapter.java60 - At rotation and launch time, the initial position is not set properly. This code is calling
132 // Listview may have a bug where the index/position is not consistent when there's a header.
133 // position == positionInListView - OFF_BY_ONE_BUG
219 // Used to stop a fling motion if the ListView is set to a specific position
314 int offset; // offset in position in the list view
386 public int getItemViewType(int position) { argument
387 DayAdapterInfo info = getAdapterInfoByPosition(position);
389 return info.dayAdapter.getItemViewType(position - info.offset);
397 public boolean isEnabled(int position) { argument
398 DayAdapterInfo info = getAdapterInfoByPosition(position);
412 getItem(int position) argument
429 getItemId(int position) argument
451 getView(int position, View convertView, ViewGroup parent) argument
544 getAdapterInfoByPosition(int position) argument
1334 findInstanceIdFromPosition(int position) argument
1342 findStartTimeFromPosition(int position) argument
1351 getCursorByPosition(int position) argument
1359 getCursorPositionByPosition(int position) argument
1372 getHeaderPositionFromItemPosition(int position) argument
[all...]
/packages/apps/Mms/src/com/android/mms/
H A DSuggestionsProvider.java159 public void fillWindow(int position, CursorWindow window) { argument
161 if (position < 0 || position > count + 1) {
167 int pos = position;
169 window.setStartPosition(position);
256 public boolean moveToPosition(int position) { argument
257 if (position >= 0 && position < mRows.size()) {
258 mCurrentRow = position;
259 mDatabaseCursor.moveToPosition(mRows.get(position)
[all...]
/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DMiscFilesHandler.java164 public void onItemCheckedStateChanged(ActionMode mode, int position, long id, argument
213 public StorageMeasurement.FileInfo getItem(int position) { argument
214 if (mData == null || mData.size() <= position) {
217 return mData.get(position);
221 public long getItemId(int position) { argument
222 if (mData == null || mData.size() <= position) {
225 return mData.get(position).mId;
248 public View getView(int position, View convertView, ViewGroup parent) { argument
252 FileInfo item = getItem(position);
256 final int listPosition = position;
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/
H A DDeskClock.java443 TabInfo(Class<?> _class, int position) { argument
446 args.putInt(KEY_TAB_POSITION, position);
471 public Fragment getItem(int position) { argument
474 final String name = makeFragmentName(R.id.desk_clock_pager, position);
477 TabInfo info = mTabs.get(getRtlPosition(position));
501 public void addTab(ActionBar.Tab tab, Class<?> clss, int position) { argument
502 TabInfo info = new TabInfo(clss, position);
511 public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { argument
516 public void onPageSelected(int position) { argument
518 mMainActionBar.setSelectedNavigationItem(getRtlPosition(position));
704 getRtlPosition(int position) argument
[all...]

Completed in 2945 milliseconds

1234567891011>>