/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | ViewLayersActivity3.java | 54 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 D | TestActivity.java | 66 public void onListItemClick(ListView l, View v, int position, long id) argument 68 Test t = mTests[position];
|
/frameworks/ex/framesequence/samples/RastermillSamples/src/com/android/rastermill/samples/ |
H A D | SamplesList.java | 56 protected void onListItemClick(ListView l, View v, int position, long id) { argument 57 Class<?> clazz = (Class<?>) SAMPLES.get(position).get(KEY_CLASS);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | SparseArrayObjectAdapter.java | 40 public Object get(int position) { argument 41 return mItems.valueAt(position); 68 * @param positionStart The position of first item that has changed.
|
H A D | ItemBridgeAdapter.java | 214 public int getItemViewType(int position) { argument 217 Object item = mAdapter.get(position); 270 public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { argument 271 if (DEBUG) Log.v(TAG, "onBindViewHolder position " + position); 273 viewHolder.mItem = mAdapter.get(position); 313 public long getItemId(int position) { argument 314 return mAdapter.getId(position);
|
/frameworks/support/v4/api21/android/support/v4/media/session/ |
H A D | PlaybackStateCompatApi21.java | 51 public static Object newInstance(int state, long position, long bufferedPosition, argument 54 stateObj.setState(state, position, speed, updateTime);
|
/frameworks/base/core/java/android/widget/ |
H A D | SimpleMonthAdapter.java | 117 public Object getItem(int position) { argument 122 public long getItemId(int position) { argument 123 return position; 133 public View getView(int position, View convertView, ViewGroup parent) { argument 154 final int currentMonth = position + minMonth;
|
H A D | GridView.java | 210 int position; 212 position = lookForSelectablePosition(mItemCount - 1, false); 214 position = lookForSelectablePosition(0, true); 216 setSelectedPositionInt(position); 217 setNextSelectedPositionInt(position); 229 int lookForSelectablePosition(int position, boolean lookDown) { argument 235 if (position < 0 || position >= mItemCount) { 238 return position; 258 int position 548 fillSpecific(int position, int top) argument 847 smoothScrollToPosition(int position) argument 1416 makeAndAddView(int position, int y, boolean flow, int childrenLeft, boolean selected, int where) argument 1457 setupChild(View child, int position, int y, boolean flow, int childrenLeft, boolean selected, boolean recycled, int where) argument 1569 setSelection(int position) argument 1588 setSelectionInt(int position) argument 2364 onInitializeAccessibilityNodeInfoForItem( View view, int position, AccessibilityNodeInfo info) argument [all...] |
H A D | ListPopupWindow.java | 258 * @param position A position constant declaring where the prompt should be displayed. 263 public void setPromptPosition(int position) { argument 264 mPromptPosition = position; 565 * will recalculate the popup's size and position. 708 * Set the selected position of the list. 711 * @param position List position to set as selected. 713 public void setSelection(int position) { argument 717 list.setSelection(position); 760 performItemClick(int position) argument 1612 clickPressedItem(final View child, final int position) argument 1648 setPressedItem(View child, int position, float x, float y) argument 1705 obtainView(int position, boolean[] isScrap) argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
H A D | ActivityChooserView.java | 558 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument 560 final int itemViewType = adapter.getItemViewType(position); 568 // The item at position zero is the default already. 569 if (position > 0) { 570 mAdapter.getDataModel().setDefaultActivity(position); 575 position = mAdapter.getShowDefaultActivity() ? position : position + 1; 576 Intent launchIntent = mAdapter.getDataModel().chooseActivity(position); 674 public int getItemViewType(int position) { argument 700 getItem(int position) argument 715 getItemId(int position) argument 719 getView(int position, View convertView, ViewGroup parent) argument [all...] |
H A D | SpinnerCompat.java | 456 * @param delta Change in the selected position. +1 means selection is moving to the right, so 483 // Make selected view and position it 519 * @param position Position in the spinner for the view to obtain 521 * @return A view for the given position 523 private View makeView(int position, boolean addChild) { argument 528 child = mRecycler.get(position); 538 child = mAdapter.getView(position, null, this); 547 * Helper for makeAndAddView to set the position of a view and fill out its layout paramters. 549 * @param child The view to position 773 public Object getItem(int position) { argument 777 getItemId(int position) argument 781 getView(int position, View convertView, ViewGroup parent) argument 785 getDropDownView(int position, View convertView, ViewGroup parent) argument 823 isEnabled(int position) argument 832 getItemViewType(int position) argument [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | GridLayoutManagerTest.java | 99 int position) { 100 super.onBindViewHolder(holder, position); 107 final int size = sizePerPosition[position]; 151 final int position = recyclerView.getChildLayoutPosition(chosen); 162 assertEquals("result should have span group position", 163 ssl.getSpanGroupIndex(position, mGlm.getSpanCount()), 166 ssl.getSpanIndex(position, mGlm.getSpanCount()), 169 ssl.getSpanSize(position), 194 int position) { 195 super.onBindViewHolder(holder, position); [all...] |
H A D | LinearLayoutManagerTest.java | 121 // add a bunch of items right before that view, make sure it keeps its position 131 assertEquals("focused child's screen position should stay unchanged", top, 170 final int position = mRecyclerView.getChildLayoutPosition(child); 179 scrollToPositionWithOffset(position, scrollOffset); 188 + "child " + position, 235 int position = mRecyclerView.getChildLayoutPosition(child); 236 if (position < minPosition) { 237 minPosition = position; 239 if (position > maxPosition) { 240 maxPosition = position; 794 scrollToPositionWithOffset(final int position, final int offset) argument [all...] |
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | MenuPopupHelper.java | 184 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument 186 adapter.mAdapterMenu.performItemAction(adapter.getItem(position), 0); 239 // Recompute window size and position 365 public MenuItemImpl getItem(int position) { argument 368 if (mExpandedIndex >= 0 && position >= mExpandedIndex) { 369 position++; 371 return items.get(position); 374 public long getItemId(int position) { argument 375 // Since a menu item's ID is optional, we'll use the position as an 377 return position; 380 getView(int position, View convertView, ViewGroup parent) argument [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | VerticalGridFragment.java | 158 int position = mGridViewHolder.getGridView().getSelectedPosition(); 159 if (DEBUG) Log.v(TAG, "row selected position " + position); 160 onRowSelected(position); 186 private void onRowSelected(int position) { argument 187 if (position != mSelectedPosition) { 188 if (!mGridViewHolder.getGridView().hasPreviousViewInSameRow(position)) { 198 mSelectedPosition = position; 395 * Sets the selected item position. 397 public void setSelectedPosition(int position) { argument [all...] |
H A D | VerticalGridSupportFragment.java | 160 int position = mGridViewHolder.getGridView().getSelectedPosition(); 161 if (DEBUG) Log.v(TAG, "row selected position " + position); 162 onRowSelected(position); 188 private void onRowSelected(int position) { argument 189 if (position != mSelectedPosition) { 190 if (!mGridViewHolder.getGridView().hasPreviousViewInSameRow(position)) { 200 mSelectedPosition = position; 397 * Sets the selected item position. 399 public void setSelectedPosition(int position) { argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
H A D | MenuPopupHelper.java | 185 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument 187 adapter.mAdapterMenu.performItemAction(adapter.getItem(position), 0); 240 // Recompute window size and position 353 public MenuItemImpl getItem(int position) { argument 356 if (mExpandedIndex >= 0 && position >= mExpandedIndex) { 357 position++; 359 return items.get(position); 362 public long getItemId(int position) { argument 363 // Since a menu item's ID is optional, we'll use the position as an 365 return position; 368 getView(int position, View convertView, ViewGroup parent) argument [all...] |
/frameworks/native/services/surfaceflinger/RenderEngine/ |
H A D | RenderEngine.cpp | 203 Mesh::VertexArray<vec2> position(mesh.getPositionArray<vec2>()); 205 position[i*6 + 0].x = r->left; 206 position[i*6 + 0].y = height - r->top; 207 position[i*6 + 1].x = r->left; 208 position[i*6 + 1].y = height - r->bottom; 209 position[i*6 + 2].x = r->right; 210 position[i*6 + 2].y = height - r->bottom; 211 position[i*6 + 3].x = r->left; 212 position[i*6 + 3].y = height - r->top; 213 position[ [all...] |
/frameworks/base/core/java/android/net/dhcp/ |
H A D | DhcpPacket.java | 269 ipLengthOffset = buf.position(); 275 ipChecksumOffset = buf.position(); 280 endIpHeader = buf.position(); 283 udpHeaderOffset = buf.position(); 286 udpLengthOffset = buf.position(); 288 udpChecksumOffset = buf.position(); 311 buf.position(buf.position() + 319 if ((buf.position() & 1) == 1) { 327 short udpLen = (short)(buf.position() [all...] |
/frameworks/base/core/java/android/accounts/ |
H A D | ChooseAccountActivity.java | 85 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/tests/OneMedia/src/com/android/onemedia/ |
H A D | PlayerSession.java | 140 long position = mRenderer == null ? -1 : mRenderer.getSeekPosition(); 142 bob.setState(newState, position, rate, SystemClock.elapsedRealtime()); 181 long position = -1; 183 position = mRenderer.getSeekPosition(); 213 bob.setState(pbState, position, rate, SystemClock.elapsedRealtime()); 229 long position = mRenderer == null ? -1 : mRenderer.getSeekPosition(); 231 bob.setState(PlaybackState.STATE_PAUSED, position, 0, SystemClock.elapsedRealtime());
|
/frameworks/base/core/java/android/content/ |
H A D | SyncActivityTooManyDeletes.java | 61 // 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 D | RenderBufferCache.cpp | 144 size_t position = 0; local 146 RenderBuffer* victim = mCache.itemAt(position).mBuffer; 148 mCache.removeAt(position);
|
H A D | LayerCache.cpp | 152 size_t position = 0; local 154 position = mCache.size() - 1; 156 Layer* victim = mCache.itemAt(position).mLayer; 158 mCache.removeAt(position);
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
H A D | SelectPrinterActivity.java | 127 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { 128 if (!((DestinationAdapter) mListView.getAdapter()).isActionable(position)) { 132 PrinterInfo printer = (PrinterInfo) mListView.getAdapter().getItem(position); 188 final int position = ((AdapterContextMenuInfo) menuInfo).position; 189 PrinterInfo printer = (PrinterInfo) mListView.getAdapter().getItem(position); 513 public Object getItem(int position) { argument 515 return mFilteredPrinters.get(position); 520 public long getItemId(int position) { argument 521 return position; 525 getDropDownView(int position, View convertView, ViewGroup parent) argument 530 getView(int position, View convertView, ViewGroup parent) argument 578 isActionable(int position) argument [all...] |