/frameworks/opt/photoviewer/src/com/android/ex/photo/ |
H A D | PhotoViewCallbacks.java | 56 * will be at the proper position. 62 public void addScreenListener(int position, OnScreenListener listener); argument 64 public void removeScreenListener(int position); argument 70 public void setViewActivated(int position); argument 72 public void onNewPhotoLoaded(int position); argument
|
H A D | PhotoViewPager.java | 81 public void transformPage(View page, float position) { 91 if (position < 0 || position >= 1.f) { 97 page.setTranslationX(-position * page.getWidth()); 98 page.setAlpha(Math.max(0,1.f - position)); 99 final float scale = Math.max(0, 1.f - position * 0.3f);
|
/frameworks/support/v13/java/android/support/v13/app/ |
H A D | FragmentStatePagerAdapter.java | 84 * Return the Fragment associated with a specified position. 86 public abstract Fragment getItem(int position); argument 93 public Object instantiateItem(ViewGroup container, int position) { argument 98 if (mFragments.size() > position) { 99 Fragment f = mFragments.get(position); 109 Fragment fragment = getItem(position); 110 if (DEBUG) Log.v(TAG, "Adding item #" + position + ": f=" + fragment); 111 if (mSavedState.size() > position) { 112 Fragment.SavedState fss = mSavedState.get(position); 117 while (mFragments.size() <= position) { 129 destroyItem(ViewGroup container, int position, Object object) argument 147 setPrimaryItem(ViewGroup container, int position, Object object) argument [all...] |
/frameworks/support/v4/java/android/support/v4/app/ |
H A D | FragmentStatePagerAdapter.java | 80 * Return the Fragment associated with a specified position. 82 public abstract Fragment getItem(int position); argument 89 public Object instantiateItem(ViewGroup container, int position) { argument 94 if (mFragments.size() > position) { 95 Fragment f = mFragments.get(position); 105 Fragment fragment = getItem(position); 106 if (DEBUG) Log.v(TAG, "Adding item #" + position + ": f=" + fragment); 107 if (mSavedState.size() > position) { 108 Fragment.SavedState fss = mSavedState.get(position); 113 while (mFragments.size() <= position) { 125 destroyItem(ViewGroup container, int position, Object object) argument 143 setPrimaryItem(ViewGroup container, int position, Object object) argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
H A D | AdapterViewICS.java | 65 * The position of the first child displayed 97 * Indicates whether to sync based on the selection or position. Possible 149 * The position within the adapter's data set of the item to select 161 * The position within the adapter's data set of the currently selected item. 188 * Represents an invalid position. All valid positions are in the range 0 to 1 less than the 199 * The last selected position we used when notifying 204 * The id of the last selected position we used when notifying 249 * Implementers can call getItemAtPosition(position) if they need 255 * @param position The position o 258 onItemClick(AdapterViewICS<?> parent, View view, int position, long id) argument 270 onItemClick(AdapterView<?> parent, View view, int position, long id) argument 302 performItemClick(View view, int position, long id) argument 334 onItemLongClick(AdapterViewICS<?> parent, View view, int position, long id) argument 378 onItemSelected(AdapterViewICS<?> parent, View view, int position, long id) argument 413 AdapterContextMenuInfo(View targetView, int position, long id) argument 429 public int position; field in class:AdapterViewICS.AdapterContextMenuInfo 653 setSelection(int position) argument 764 getItemAtPosition(int position) argument 769 getItemIdAtPosition(int position) argument 1085 lookForSelectablePosition(int position, boolean lookDown) argument 1093 setSelectedPositionInt(int position) argument 1103 setNextSelectedPositionInt(int position) argument [all...] |
H A D | ScrollingTabContainerView.java | 168 public void setTabSelected(int position) { argument 169 mSelectedTabIndex = position; 173 final boolean isSelected = i == position; 176 animateToTab(position); 179 if (mTabSpinner != null && position >= 0) { 180 mTabSpinner.setSelection(position); 206 public void animateToTab(final int position) { argument 207 final View tabView = mTabLayout.getChildAt(position); 273 public void addTab(ActionBar.Tab tab, int position, boolean setSelected) { argument 275 mTabLayout.addView(tabView, position, ne 288 updateTab(int position) argument 298 removeTabAt(int position) argument 319 onItemClick(AdapterViewICS<?> parent, View view, int position, long id) argument 451 getItem(int position) argument 456 getItemId(int position) argument 461 getView(int position, View convertView, ViewGroup parent) argument [all...] |
/frameworks/base/core/java/android/app/ |
H A D | ListActivity.java | 199 * getListView().getItemAtPosition(position) if they need to access the 204 * @param position The position of the view in the list 207 protected void onListItemClick(ListView l, View v, int position, long id) { argument 271 * position with the adapter's data 273 * @param position 275 public void setSelection(int position) { argument 276 mList.setSelection(position); 280 * Get the position of the currently selected list item. 317 public void onItemClick(AdapterView<?> parent, View v, int position, lon [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | RemoteViewsAdapter.java | 337 public void add(int position, RemoteViewsFrameLayout layout) { argument 338 final Integer pos = position; 355 * Notifies each of the RemoteViewsFrameLayouts associated with a particular position that 358 public void notifyOnRemoteViewsLoaded(int position, RemoteViews view) { argument 361 final Integer pos = position; 363 // Notify all the references for that position of the newly loaded RemoteViews 469 private RemoteViewsFrameLayout createLoadingView(int position, View convertView, argument 472 // Create and return a new FrameLayout, and setup the references for this position 563 // The cache/mapping of position to RemoteViewsMetaData. This set is guaranteed to be 566 // we still need to be able to access the mapping of position t 615 insert(int position, RemoteViews v, long itemId, ArrayList<Integer> visibleWindow) argument 649 getRemoteViewsAt(int position) argument 655 getMetaDataAt(int position) argument 709 queueRequestedPositionToLoad(int position) argument 716 queuePositionsToBePreloadedFromRequestedPosition(int position) argument 774 containsRemoteViewAt(int position) argument 777 containsMetaDataAt(int position) argument 1025 updateRemoteViews(final int position, boolean notifyWhenLoaded) argument 1103 getItem(int position) argument 1108 getItemId(int position) argument 1117 getItemViewType(int position) argument 1158 getView(int position, View convertView, ViewGroup parent) argument [all...] |
H A D | SimpleAdapter.java | 99 public Object getItem(int position) { argument 100 return mData.get(position); 106 public long getItemId(int position) { argument 107 return position; 113 public View getView(int position, View convertView, ViewGroup parent) { argument 114 return createViewFromResource(position, convertView, parent, mResource); 117 private View createViewFromResource(int position, View convertView, argument 126 bindView(position, v); 142 public View getDropDownView(int position, View convertView, ViewGroup parent) { argument 143 return createViewFromResource(position, convertVie 146 bindView(int position, View view) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | ListItemFactory.java | 37 * @param position The position within the list. 42 public static View twoButtonsSeparatedByFiller(int position, Context context, int desiredHeight) { argument 59 topButton.setText("top (position " + position + ")"); 71 bottomButton.setText("bottom (position " + position + ")"); 149 * @param position The position within the list. 155 public static View button(int position, Contex argument 176 convertButton(View convertView, String text, int position) argument 195 text(int position, Context context, String text, int desiredHeight) argument 216 convertText(View convertView, String text, int position) argument 236 doubleText(int position, Context context, String text, int desiredHeight) argument 279 convertDoubleText(View convertView, String text, int position) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
H A D | ListWithFooterViewAndNewLabels.java | 85 public Object getItem(int position) { argument 86 return mLabels.get(position); 89 public long getItemId(int position) { argument 90 return position; 93 public View getView(int position, View convertView, ViewGroup parent) { argument 94 String label = mLabels.get(position);
|
/frameworks/native/services/surfaceflinger/RenderEngine/ |
H A D | RenderEngine.cpp | 162 Mesh::VertexArray<vec2> position(mesh.getPositionArray<vec2>()); 164 position[i*6 + 0].x = r->left; 165 position[i*6 + 0].y = height - r->top; 166 position[i*6 + 1].x = r->left; 167 position[i*6 + 1].y = height - r->bottom; 168 position[i*6 + 2].x = r->right; 169 position[i*6 + 2].y = height - r->bottom; 170 position[i*6 + 3].x = r->left; 171 position[i*6 + 3].y = height - r->top; 172 position[ [all...] |
/frameworks/base/core/java/android/database/ |
H A D | IBulkCursor.java | 33 * Gets a cursor window that contains the specified position. 34 * The window will contain a range of rows around the specified position. 36 public CursorWindow getWindow(int position) throws RemoteException; argument 39 * Notifies the cursor that the position has changed. 42 * @param position The new position 44 public void onMove(int position) throws RemoteException; argument
|
/frameworks/base/core/java/android/text/method/ |
H A D | CharacterPickerDialog.java | 88 public void onItemClick(AdapterView parent, View view, int position, long id) { argument 89 String result = String.valueOf(mOptions.charAt(position)); 122 public View getView(int position, View convertView, ViewGroup parent) { argument 125 b.setText(String.valueOf(mOptions.charAt(position))); 134 public final Object getItem(int position) { argument 135 return String.valueOf(mOptions.charAt(position)); 138 public final long getItemId(int position) { argument 139 return position;
|
/frameworks/base/core/java/android/webkit/ |
H A D | PluginList.java | 109 public synchronized void pluginClicked(Context context, int position) { argument 111 Plugin plugin = mPlugins.get(position);
|
/frameworks/base/core/tests/coretests/src/android/widget/gridview/ |
H A D | GridSimple.java | 49 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument 50 View view = super.createView(position, parent, desiredHeight);
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
H A D | ListSimple.java | 45 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument 46 View view = super.createView(position, parent, desiredHeight);
|
H A D | ListWithEmptyView.java | 42 public long getItemId(int position) { argument 43 if (position < 0 || position >= this.getCount()) { 46 return super.getItemId(position);
|
H A D | ListHorizontalFocusWithinItemWins.java | 51 protected View createView(int position, ViewGroup parent, argument 54 if (position == 0) { 57 } else if (position == 1) { 61 throw new IllegalArgumentException("expecting position 0 or 1");
|
H A D | ListItemISVAndButton.java | 42 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument 48 final InternalSelectionView isv = new InternalSelectionView(context, 8, "ISV postion " + position); 61 topButton.setText("button " + position + ")");
|
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
H A D | CameraBrowser.java | 64 public Object getItem(int position) { argument 65 return mDeviceList.get(position); 68 public long getItemId(int position) { argument 69 return position; 72 public View getView(int position, View convertView, ViewGroup parent) { argument 83 MtpDevice device = mDeviceList.get(position); 117 protected void onListItemClick(ListView l, View v, int position, long id) { argument 119 intent.putExtra("device", mDeviceList.get(position).getDeviceName());
|
H A D | ObjectBrowser.java | 71 public Object getItem(int position) { argument 72 return mObjectList.get(position); 75 public long getItemId(int position) { argument 76 return position; 79 public View getView(int position, View convertView, ViewGroup parent) { argument 88 MtpObjectInfo info = mObjectList.get(position); 133 protected void onListItemClick(ListView l, View v, int position, long id) { argument 134 MtpObjectInfo info = mObjectList.get(position);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | StackActivity.java | 45 public View getView(int position, View convertView, ViewGroup parent) { 52 getItem(position % getCount())); 53 ((TextView) item.findViewById(R.id.mini_text)).setText("" + position);
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
H A D | TimeZoneResultAdapter.java | 243 public Object getItem(int position) { argument 244 if (position < 0 || position >= mFilteredTimeZoneLength) { 248 return mTimeZoneData.get(mFilteredTimeZoneIndices[position]); 257 public boolean isEnabled(int position) { argument 258 return mFilteredTimeZoneIndices[position] >= 0; 262 public long getItemId(int position) { argument 263 return mFilteredTimeZoneIndices[position]; 267 public View getView(int position, View convertView, ViewGroup parent) { argument 270 if (mFilteredTimeZoneIndices[position] 308 onItemClick(AdapterView<?> parent, View v, int position, long id) argument [all...] |
/frameworks/ex/widget/java/com/android/ex/widget/ |
H A D | StaggeredGridView.java | 67 * - mFirstPosition is the adapter position of the View returned by getChildAt(0). 68 * - Any child index can be translated to an adapter position by adding mFirstPosition. 69 * - Any adapter position can be translated to a child index by subtracting mFirstPosition. 269 * Return the first adapter position with a view currently attached as 272 * @return the adapter position represented by the view at getChildAt(0). 465 * is always the view corresponding to position mFirstPosition + i. 761 final int position = mFirstPosition + i; 765 View newView = obtainView(position, child); 812 final LayoutRecord rec = mLayoutRecords.get(position); 816 rebuildLayoutRecordsBefore = position; 857 invalidateLayoutRecordsBeforePosition(int position) argument 865 invalidateLayoutRecordsAfterPosition(int position) argument 1127 getNextRecordUp(int position, int span) argument 1183 getNextRecordDown(int position, int span) argument 1228 obtainView(int position, View optScrap) argument 1398 int position; field in class:StaggeredGridView.LayoutParams 1521 getTransientStateView(int position) argument 1580 int position; field in class:StaggeredGridView.SavedState [all...] |