/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | DialogDetailsView.java | 255 public boolean isEnabled(int position) { argument 265 public Object getItem(int position) { argument 266 return mDetails.getDetail(position); 270 public long getItemId(int position) { argument 271 return position; 275 public View getView(int position, View convertView, ViewGroup parent) { argument 283 tv.setText(mItems.get(position));
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
H A D | Pyramid.cpp | 40 ImageTypeShort position = (ImageTypeShort) &y[lines]; local 49 for (int j = height + border2; j--; y++, position += curr->pitch) { 50 *y = position + border; 71 short *position = (short *) &y[height + border2]; local 77 position += border; // Move position down to origin of real image 80 for (int j = height + border2; j--; y++, position += img->pitch) { 81 *y = position;
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | FolderSelectorAdapter.java | 291 public Object getItem(int position) { argument 292 return mFolderRows.get(position); 296 public long getItemId(int position) { argument 297 return position; 301 public int getItemViewType(int position) { argument 311 public View getView(int position, View convertView, ViewGroup parent) { argument 318 final FolderRow row = (FolderRow) getItem(position);
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/ |
H A D | KitchenSinkActivity.java | 288 protected void populateViewHolder(DrawerItemViewHolder holder, int position) { argument 289 holder.getTitle().setText(mMenuEntries.get(position).getText()); 293 public void onItemClick(int position) { argument 294 if ((position < 0) || (position >= mMenuEntries.size())) { 295 Log.wtf(TAG, "Unknown menu item: " + position); 299 mMenuEntries.get(position).onClick();
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
H A D | BluetoothOppObexClientSession.java | 340 long position = 0; 404 if (!mInterrupted && (position != fileInfo.mLength)) { 417 position += readLength; 419 if (position == fileInfo.mLength) { 439 updateValues.put(BluetoothShare.CURRENT_BYTES, position); 447 while (!mInterrupted && okToProceed && (position < fileInfo.mLength)) { 461 position += readLength; 463 Log.v(TAG, "Sending file position = " + position 468 percent = position * 10 [all...] |
/packages/apps/Contacts/src/com/android/contacts/ |
H A D | SimImportFragment.java | 304 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument 305 if (mAdapter.existsInCurrentAccount(position)) { 368 public long getItemId(int position) { argument 371 if (position < 0 || position >= getCount()) { 374 return getItem(position).getId(); 388 public int getItemViewType(int position) { argument 389 return !existsInCurrentAccount(position) ? 0 : 1; 394 public View getView(int position, View convertView, ViewGroup parent) { argument 397 final int layoutRes = existsInCurrentAccount(position) 422 existsInCurrentAccount(int position) argument [all...] |
/packages/apps/Settings/src/com/android/settings/applications/ |
H A D | RunningProcessesView.java | 265 public Object getItem(int position) { argument 266 return mItems.get(position); 269 public long getItemId(int position) { argument 270 return mItems.get(position).hashCode(); 277 public boolean isEnabled(int position) { argument 278 return !mItems.get(position).mIsProcess; 281 public View getView(int position, View convertView, ViewGroup parent) { argument 288 bindView(v, position); 298 public void bindView(View view, int position) { argument 300 if (position > 394 onItemClick(AdapterView<?> parent, View v, int position, long id) argument [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
H A D | CalendarViewAdapter.java | 145 public Object getItem(int position) { argument 146 if (position < mButtonNames.length) { 147 return mButtonNames[position]; 153 public long getItemId(int position) { argument 155 return position; 164 public View getView(int position, View convertView, ViewGroup parent) { argument 244 public int getItemViewType(int position) { argument 260 public View getDropDownView(int position, View convertView, ViewGroup parent) { argument 264 switch (position) {
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
H A D | MultiSelectContactsListFragment.java | 148 protected boolean onItemLongClick(int position, long id) { argument 150 final long contactId = getContactId(position); 151 final int partition = getAdapter().getPartitionForPosition(position); 158 /* count */ getAdapter().getCount(), /* clickedIndex */ position, 162 final int index = position + getListView().getHeaderViewsCount() - getListView() 179 protected void onItemClick(int position, long id) { argument 180 final long contactId = getContactId(position); 192 private long getContactId(int position) { argument 195 final Cursor cursor = (Cursor) getAdapter().getItem(position); 215 * at the time the result in the given position wa [all...] |
/packages/apps/Dialer/java/com/android/dialer/app/list/ |
H A D | ListsFragment.java | 79 /** The position of the currently selected tab. */ 240 public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { argument 241 mTabIndex = mAdapter.getRtlPosition(position); 245 mOnPageChangeListeners.get(i).onPageScrolled(position, positionOffset, positionOffsetPixels); 250 public void onPageSelected(int position) { argument 251 PerformanceReport.recordClick(actionTypeList[position]); 253 LogUtil.i("ListsFragment.onPageSelected", "position: %d", position); 254 mTabIndex = mAdapter.getRtlPosition(position); 261 mOnPageChangeListeners.get(i).onPageSelected(position); [all...] |
H A D | OldSpeedDialFragment.java | 252 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument 254 if (position <= contactTileAdapterCount) { 257 "event for unexpected position. The position " 258 + position 276 final int position = firstVisiblePosition + i; 277 // Since we are getting the position from mListView and then querying 280 if (!mContactTileAdapter.isIndexInBound(position)) { 283 final long itemId = mContactTileAdapter.getItemId(position); 318 int position [all...] |
/packages/apps/Stk/src/com/android/stk/ |
H A D | StkMenuActivity.java | 135 protected void onListItemClick(ListView l, View v, int position, long id) { argument 136 super.onListItemClick(l, v, position, id); 143 Item item = getSelectedItem(position); 382 int position = info.position; 383 CatLog.d(this, "Position:" + position); 384 Item stkItem = getSelectedItem(position); 468 private Item getSelectedItem(int position) { argument 472 item = mStkMenu.items.get(position);
|
H A D | StkLauncherActivity.java | 85 protected void onListItemClick(ListView l, View v, int position, long id) { argument 86 super.onListItemClick(l, v, position, id); 92 Item item = getSelectedItem(position); 149 private Item getSelectedItem(int position) { argument 153 item = mStkMenuList.get(position);
|
/packages/apps/Car/Overview/src/com/android/car/overview/ |
H A D | StreamAdapter.java | 83 public void onBindViewHolder(StreamViewHolder holder, int position) { argument 85 Log.d(TAG, "Stream Card being bound: " + mStreamCards.get(position)); 87 holder.bindStreamCard(mStreamCards.get(position)); 91 public int getItemViewType(int position) { argument 92 StreamCard card = mStreamCards.get(position);
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/ |
H A D | AccessPointListAdapter.java | 135 public int getItemViewType(int position) { argument 137 if (position == mAccessPoints.size()) { 160 public void onBindViewHolder(ViewHolder holder, int position) { argument 162 if (position >= mAccessPoints.size()) { 165 AccessPoint accessPoint = mAccessPoints.get(position);
|
/packages/apps/DeskClock/src/com/android/alarmclock/ |
H A D | DigitalAppWidgetCityViewsFactory.java | 107 public synchronized RemoteViews getViewAt(int position) { argument 109 final int leftIndex = position * 2 + homeClockOffset; 134 final boolean lastRow = position == getCount() - 1; 142 public long getItemId(int position) { argument 143 return position;
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
H A D | CycleAdapter.java | 51 * Find position of {@link CycleItem} in this adapter which is nearest 139 final int position = findNearestPosition(previousItem); 140 mSpinner.setSelection(position); 144 final CycleAdapter.CycleItem selectedItem = getItem(position); 146 mListener.onItemSelected(null, null, position, 0); 195 void setSelection(int position); argument
|
/packages/apps/Terminal/src/com/android/terminal/ |
H A D | TerminalActivity.java | 89 public Object instantiateItem(ViewGroup container, int position) { 93 final Terminal term = mService.getTerminals().valueAt(position); 107 public void destroyItem(ViewGroup container, int position, Object object) { 140 public CharSequence getPageTitle(int position) { 141 return mService.getTerminals().valueAt(position).getTitle();
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
H A D | AlbumDataAdapter.java | 63 public boolean isSelected(int position) { argument 64 PhotoSource.AlbumData data = getItem(position); 82 public View getView(int position, View convertView, ViewGroup parent) { argument 87 PhotoSource.AlbumData data = getItem(position); 92 checkBox.setChecked(isSelected(position));
|
/packages/apps/Car/libs/car-stream-ui-lib/src/com/android/car/view/ |
H A D | CarLayoutManager.java | 164 * Set the anchor to the following position on the next layout pass. 381 public void scrollToPosition(int position) { argument 382 mPendingScrollPosition = position; 388 RecyclerView recyclerView, RecyclerView.State state, int position) { 394 mSmoothScroller = new CarSmoothScroller(mContext, position); 395 mSmoothScroller.setTargetPosition(position); 505 * You can get the position of the currently focused child through the child parameter. 565 * The scrolling offset is calculated by determining what position is at the top of the list. 566 * However, instead of using fixed integer positions for each row, the scroll position is 567 * factored in and the position i 387 smoothScrollToPosition( RecyclerView recyclerView, RecyclerView.State state, int position) argument 1218 calculatePreviousPageBreakPosition(int position) argument 1249 calculateNextPageBreakPosition(int position) argument [all...] |
/packages/apps/Settings/src/com/android/settings/dashboard/ |
H A D | DashboardAdapter.java | 223 final int position = mDashboardData.getPositionByTile(tile); 224 if (position != DashboardData.POSITION_NOT_FOUND) { 227 notifyItemChanged(position, mDashboardData.getItemTypeByPosition(position)); 244 public void onBindViewHolder(DashboardItemHolder holder, int position) { argument 245 final int type = mDashboardData.getItemTypeByPosition(position); 248 final Tile tile = (Tile) mDashboardData.getItemEntityByPosition(position); 255 (SuggestionAndConditionContainerHolder) holder, position); 260 mDashboardData.getItemEntityByPosition(position)); 277 public long getItemId(int position) { argument 282 getItemViewType(int position) argument 319 getSuggestion(int position) argument 438 onBindConditionAndSuggestion(final SuggestionAndConditionContainerHolder holder, int position) argument [all...] |
/packages/apps/Car/Dialer/src/com/android/car/dialer/ |
H A D | ContactResultViewHolder.java | 99 * need to have rounded corners depending on its position in the list and the number of items 103 int position = getAdapterPosition(); 111 } else if (position == 0) { 114 } else if (position == itemCount - 1) {
|
/packages/apps/Car/LensPicker/src/com/android/support/car/lenspicker/ |
H A D | ResolverAdapter.java | 67 public void onBindViewHolder(ResolverListRow holder, int position) { argument 68 holder.bind(mContext, mResolveInfos.get(position), mItems.get(position), mHandler);
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
H A D | BluetoothDeviceListAdapter.java | 190 public void onBindViewHolder(ViewHolder holder, int position) { argument 191 final CachedBluetoothDevice bluetoothDevice = getItem(position); 222 public int getItemViewType(int position) { argument 224 if (position == 0) { 228 if (position == mBondedDevicesSorted.size() + 1) { 234 private CachedBluetoothDevice getItem(int position) { argument 235 if (position > 0 && position <= mBondedDevicesSorted.size()) { 237 return mBondedDevicesSorted.get(position - 1); 239 if (position > mBondedDevicesSorte [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
H A D | LabeledEditorView.java | 101 AdapterView<?> parent, View view, int position, long id) { 102 onTypeSelectionChange(position); 508 protected void onTypeSelectionChange(int position) { argument 509 EditType selected = mEditTypeAdapter.getItem(position); 525 mSelectedLabelIndex = position; 599 public View getView(int position, View convertView, ViewGroup parent) { argument 601 position, convertView, parent, R.layout.edit_simple_spinner_item); 617 public View getDropDownView(int position, View convertView, ViewGroup parent) { argument 619 position, convertView, parent, android.R.layout.simple_spinner_dropdown_item); 621 dropDownView.setChecked(position 625 createViewFromResource(int position, View convertView, ViewGroup parent, int resource) argument [all...] |