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

1234567891011>>

/frameworks/base/core/java/android/widget/
H A DActivityChooserView.java563 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
565 final int itemViewType = adapter.getItemViewType(position);
573 // The item at position zero is the default already.
574 if (position > 0) {
575 mAdapter.getDataModel().setDefaultActivity(position);
580 position = mAdapter.getShowDefaultActivity() ? position : position + 1;
581 Intent launchIntent = mAdapter.getDataModel().chooseActivity(position);
584 ResolveInfo resolveInfo = mAdapter.getDataModel().getActivity(position);
692 getItemViewType(int position) argument
718 getItem(int position) argument
733 getItemId(int position) argument
737 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/frameworks/support/v4/java/android/support/v4/view/
H A DViewPager.java110 int position; field in class:ViewPager.ItemInfo
119 return lhs.position - rhs.position;
196 // If the pager is at least this close to its final position, complete the scroll
237 * Indicates that the pager is in the process of settling to a final position.
259 * @param position Position index of the first page currently being displayed.
260 * Page position+1 will be visible if positionOffset is nonzero.
261 * @param positionOffset Value from [0, 1) indicating the offset from the page at position.
262 * @param positionOffsetPixels Value in pixels indicating the offset from position.
264 public void onPageScrolled(int position, floa argument
272 onPageSelected(int position) argument
294 onPageScrolled(int position, float positionOffset, int positionOffsetPixels) argument
299 onPageSelected(int position) argument
327 transformPage(View page, float position) argument
829 addNewItem(int position, int index) argument
1214 int position; field in class:ViewPager.SavedState
1346 infoForPosition(int position) argument
1670 onPageScrolled(int position, float offset, int offsetPixels) argument
2859 int position; field in class:ViewPager.LayoutParams
[all...]
/frameworks/base/core/java/android/database/
H A DAbstractCursor.java153 * to a new position, giving the subclass a chance to update any state it
155 * cursor will scroll to the beforeFirst position.
157 * @param oldPosition the position that we're moving from
158 * @param newPosition the position that we're moving to
195 public final boolean moveToPosition(int position) { argument
196 // Make sure position isn't past the end of the cursor
198 if (position >= count) {
203 // Make sure position isn't before the beginning of the cursor
204 if (position < 0) {
210 if (position
228 fillWindow(int position, CursorWindow window) argument
[all...]
/frameworks/base/core/java/com/android/internal/view/menu/
H A DExpandedMenuView.java70 public void onItemClick(AdapterView parent, View v, int position, long id) { argument
71 invokeItem((MenuItemImpl) getAdapter().getItem(position));
H A DMenuPopupHelper.java175 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
177 adapter.mAdapterMenu.performItemAction(adapter.getItem(position), 0);
230 // Recompute window size and position
356 public MenuItemImpl getItem(int position) { argument
359 if (mExpandedIndex >= 0 && position >= mExpandedIndex) {
360 position++;
362 return items.get(position);
365 public long getItemId(int position) { argument
366 // Since a menu item's ID is optional, we'll use the position as an
368 return position;
371 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/focus/
H A DListOfButtons.java63 public View getView(int position, View convertView, ViewGroup parent) { argument
64 String label = getItem(position);
/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListScrollListener.java57 public void onItemSelected(AdapterView parent, View v, int position, long id) { argument
58 mText.setText("Position " + position);
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DDirectoryView.java58 public void setPosition(float position) { argument
59 mPosition = position;
/frameworks/base/services/common_time/
H A Dclock_recovery.h41 void reset(bool position, bool frequency);
96 void reset_l(bool position, bool frequency);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DViewLayersActivity3.java54 public View getView(int position, View convertView, ViewGroup parent) { argument
55 TextView v = (TextView) super.getView(position, convertView, parent);
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
H A DTestActivity.java66 public void onListItemClick(ListView l, View v, int position, long id) argument
68 Test t = mTests[position];
/frameworks/ex/chips/src/com/android/ex/chips/
H A DSingleRecipientArrayAdapter.java42 public View getView(int position, View convertView, ViewGroup parent) { argument
46 bindView(convertView, getItem(position));
/frameworks/opt/mailcommon/tests/src/com/android/mailcommon/
H A DMergedAdapterTest.java57 public Object getItem(int position) { argument
58 return Integer.toString(mOffset + position);
62 public long getItemId(int position) { argument
63 return position;
67 public View getView(int position, View convertView, ViewGroup parent) { argument
69 v.setTag(getItem(position));
89 public int getItemViewType(int position) { argument
90 return position % mViewTypeCount;
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
H A DExpandedMenuView.java67 public void onItemClick(AdapterView parent, View v, int position, long id) { argument
68 invokeItem((MenuItemImpl) getAdapter().getItem(position));
H A DMenuPopupHelper.java158 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
160 adapter.mAdapterMenu.performItemAction(adapter.getItem(position), 0);
204 // Recompute window size and position
318 public MenuItemImpl getItem(int position) { argument
321 if (mExpandedIndex >= 0 && position >= mExpandedIndex) {
322 position++;
324 return items.get(position);
327 public long getItemId(int position) { argument
328 // Since a menu item's ID is optional, we'll use the position as an
330 return position;
333 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
H A DActivityChooserView.java535 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
537 final int itemViewType = adapter.getItemViewType(position);
545 // The item at position zero is the default already.
546 if (position > 0) {
547 mAdapter.getDataModel().setDefaultActivity(position);
552 position = mAdapter.getShowDefaultActivity() ? position : position + 1;
553 Intent launchIntent = mAdapter.getDataModel().chooseActivity(position);
651 public int getItemViewType(int position) { argument
677 getItem(int position) argument
692 getItemId(int position) argument
696 getView(int position, View convertView, ViewGroup parent) argument
[all...]
H A DSpinnerICS.java305 * @param delta Change in the selected position. +1 moves selection is moving to the right,
332 // Make selected view and position it
365 * @param position Position in the spinner for the view to obtain
368 private View makeAndAddView(int position) { argument
373 child = mRecycler.get(position);
383 child = mAdapter.getView(position, null, this);
392 * Helper for makeAndAddView to set the position of a view
395 * @param child The view to position
546 public Object getItem(int position) { argument
547 return mAdapter == null ? null : mAdapter.getItem(position);
550 getItemId(int position) argument
554 getView(int position, View convertView, ViewGroup parent) argument
558 getDropDownView(int position, View convertView, ViewGroup parent) argument
596 isEnabled(int position) argument
605 getItemViewType(int position) argument
[all...]
H A DListPopupWindow.java224 * @param position A position constant declaring where the prompt should be displayed.
228 public void setPromptPosition(int position) { argument
229 mPromptPosition = position;
511 * size and position.
651 * Set the selected position of the list. Only valid when {@link #isShowing()} == {@code true}.
653 * @param position List position to set as selected.
655 public void setSelection(int position) { argument
659 list.setSelection(position);
701 performItemClick(int position) argument
1183 lookForSelectablePosition(int position, boolean lookDown) argument
[all...]
/frameworks/base/services/java/com/android/server/wm/
H A DStackBox.java160 * the specified TaskStack into two children. The size and position each of the new StackBoxes
164 * @param position One of the static TASK_STACK_GOES_xxx positions defined in this class.
168 TaskStack split(int stackId, int relativeStackBoxId, int position, float weight) { argument
175 TaskStack stack = mFirst.split(stackId, relativeStackBoxId, position, weight);
179 return mSecond.split(stackId, relativeStackBoxId, position, weight);
186 if (position == TASK_STACK_GOES_BEFORE) {
188 position = TASK_STACK_TO_LEFT_OF;
189 } else if (position == TASK_STACK_GOES_AFTER) {
191 position = TASK_STACK_TO_RIGHT_OF;
193 switch (position) {
[all...]
/frameworks/base/core/java/android/net/dhcp/
H A DDhcpPacket.java272 ipLengthOffset = buf.position();
278 ipChecksumOffset = buf.position();
283 endIpHeader = buf.position();
286 udpHeaderOffset = buf.position();
289 udpLengthOffset = buf.position();
291 udpChecksumOffset = buf.position();
314 buf.position(buf.position() +
322 if ((buf.position() & 1) == 1) {
330 short udpLen = (short)(buf.position()
[all...]
/frameworks/base/core/java/android/accounts/
H A DChooseAccountActivity.java85 public void onItemClick(AdapterView<?> parent, View v, int position, long id) {
86 onListItemClick((ListView)parent, v, position, id);
119 protected void onListItemClick(ListView l, View v, int position, long id) { argument
120 Account account = (Account) mAccounts[position];
167 public View getView(int position, View convertView, ViewGroup parent) { argument
180 holder.text.setText(mInfos[position].name);
181 holder.icon.setImageDrawable(mInfos[position].drawable);
/frameworks/base/core/java/android/content/
H A DSyncActivityTooManyDeletes.java61 // the order of these must match up with the constants for position used in onItemClick
109 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
110 // the constants for position correspond to the items options array in onCreate()
111 if (position == 0) startSyncReallyDelete();
112 else if (position == 1) startSyncUndoDeletes();
/frameworks/base/libs/hwui/
H A DRenderBufferCache.cpp144 size_t position = 0; local
146 RenderBuffer* victim = mCache.itemAt(position).mBuffer;
148 mCache.removeAt(position);
H A DLayerCache.cpp146 size_t position = 0; local
148 position = mCache.size() - 1;
150 Layer* victim = mCache.itemAt(position).mLayer;
152 mCache.removeAt(position);
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/
H A DSelectPrinterFragment.java134 public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
135 if (!((DestinationAdapter) mListView.getAdapter()).isActionable(position)) {
138 PrinterInfo printer = (PrinterInfo) mListView.getAdapter().getItem(position);
200 final int position = ((AdapterContextMenuInfo) menuInfo).position;
201 PrinterInfo printer = (PrinterInfo) mListView.getAdapter().getItem(position);
509 public Object getItem(int position) { argument
511 return mFilteredPrinters.get(position);
516 public long getItemId(int position) { argument
517 return position;
521 getDropDownView(int position, View convertView, ViewGroup parent) argument
527 getView(int position, View convertView, ViewGroup parent) argument
575 isActionable(int position) argument
[all...]

Completed in 3225 milliseconds

1234567891011>>