/frameworks/ex/common/java/com/android/common/widget/ |
H A D | CompositeCursorAdapter.java | 240 * Given a list position, returns the index of the corresponding partition. 242 public int getPartitionForPosition(int position) { argument 247 if (position >= start && position < end) { 256 * Given a list position, return the offset of the corresponding item in its 259 public int getOffsetInPartition(int position) { argument 264 if (position >= start && position < end) { 265 int offset = position - start; 277 * Returns the first list position fo 306 getItemViewType(int partition, int position) argument 311 getItemViewType(int position) argument 333 getView(int position, View convertView, ViewGroup parent) argument 394 getView(int partition, Cursor cursor, int position, View convertView, ViewGroup parent) argument 410 newView(Context context, int partition, Cursor cursor, int position, ViewGroup parent) argument 417 bindView(View v, int partition, Cursor cursor, int position) argument 422 getItem(int position) argument 450 getItemId(int position) argument 496 isEnabled(int position) argument 519 isEnabled(int partition, int position) argument [all...] |
H A D | GroupingListAdapter.java | 264 * Figures out whether the item at the specified position represents a 266 * corresponding cursor position. 268 public void obtainPositionMetadata(PositionMetadata metadata, int position) { argument 271 if (metadata.listPosition == position) { 279 // Check cache for the supplied position. What we are looking for is 280 // the group descriptor immediately preceding the supplied position. 281 // Once we have that, we will be able to tell whether the position 284 if (position <= mLastCachedListPosition) { 287 int index = mPositionCache.indexOfKey(position); 289 // If we get back a positive number, the position correspond 388 isGroupHeader(int position) argument 397 getGroupSize(int position) argument 405 toggleGroup(int position) argument 427 getItemViewType(int position) argument 432 getItem(int position) argument 445 getItemId(int position) argument 454 getView(int position, View convertView, ViewGroup parent) argument [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | ArrayObjectAdapter.java | 75 * @param positionStart The position of first item that has changed. 135 * Replaces item at position with a new item and calls notifyItemRangeChanged() 136 * at the given position. Note that this method does not compare new item to 138 * @param position The index of item to replace. 139 * @param item The new item to be placed at given position. 141 public void replace(int position, Object item) { argument 142 mItems.set(position, item); 143 notifyItemRangeChanged(position, 1); 148 * the starting position and the number of elements to remove. 150 * @param position Th 154 removeItems(int position, int count) argument [all...] |
/frameworks/base/core/java/android/preference/ |
H A D | PreferenceGroupAdapter.java | 64 * Maps a position into this adapter -> {@link Preference}. These 211 public Preference getItem(int position) { argument 212 if (position < 0 || position >= getCount()) return null; 213 return mPreferenceList.get(position); 216 public long getItemId(int position) { argument 217 if (position < 0 || position >= getCount()) return ListView.INVALID_ROW_ID; 218 return this.getItem(position).getId(); 224 public void setHighlighted(int position) { argument 235 getView(int position, View convertView, ViewGroup parent) argument 258 isEnabled(int position) argument 289 getItemViewType(int position) argument [all...] |
/frameworks/support/v17/leanback/api21/android/support/v17/leanback/transition/ |
H A D | FadeAndShortSlide.java | 62 float getGoneX(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) { argument 67 float getGoneY(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) { argument 82 public float getGoneX(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) { 96 public float getGoneX(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) { 110 public float getGoneX(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) { 111 final int viewCenter = position[0] + view.getWidth() / 2; 112 sceneRoot.getLocationOnScreen(position); 114 final int sceneRootCenter = center == null ? (position[0] + sceneRoot.getWidth() / 2) 126 public float getGoneY(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) { 133 public float getGoneY(FadeAndShortSlide t, ViewGroup sceneRoot, View view, int[] position) { [all...] |
/frameworks/support/fragment/java/android/support/v4/app/ |
H A D | FragmentPagerAdapter.java | 74 * Return the Fragment associated with a specified position. 76 public abstract Fragment getItem(int position); argument 88 public Object instantiateItem(ViewGroup container, int position) { argument 93 final long itemId = getItemId(position); 102 fragment = getItem(position); 116 public void destroyItem(ViewGroup container, int position, Object object) { argument 120 if (DEBUG) Log.v(TAG, "Detaching item #" + getItemId(position) + ": f=" + object 127 public void setPrimaryItem(ViewGroup container, int position, Object object) { argument 165 * Return a unique identifier for the item at the given position. 167 * <p>The default implementation returns the given position 173 getItemId(int position) argument [all...] |
/frameworks/support/v13/java/android/support/v13/app/ |
H A D | FragmentPagerAdapter.java | 78 * Return the Fragment associated with a specified position. 80 public abstract Fragment getItem(int position); argument 92 public Object instantiateItem(ViewGroup container, int position) { argument 97 final long itemId = getItemId(position); 106 fragment = getItem(position); 120 public void destroyItem(ViewGroup container, int position, Object object) { argument 124 if (DEBUG) Log.v(TAG, "Detaching item #" + getItemId(position) + ": f=" + object 131 public void setPrimaryItem(ViewGroup container, int position, Object object) { argument 170 * Return a unique identifier for the item at the given position. 172 * <p>The default implementation returns the given position 178 getItemId(int position) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | PagedTileLayout.java | 43 public void onPageSelected(int position) { 46 mPageListener.onPageChanged(isLayoutRtl() ? position == mPages.size() - 1 47 : position == 0); 52 public void onPageScrolled(int position, float positionOffset, 55 setCurrentPage(position, positionOffset != 0); 56 mPageIndicator.setLocation(position + positionOffset); 59 (isLayoutRtl() ? position == mPages.size() - 1 : position == 0)); 104 * the next page after position to listening as well since we are in between 107 private void setCurrentPage(int position, boolea argument 131 setPageListening(int position, boolean listening) argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ListViewCompat.java | 153 * Find a position that can be selected (i.e., is not a separator). 155 * @param position The starting position to look at. 157 * @return The next selectable position starting at position and then searching either up or 160 public int lookForSelectablePosition(int position, boolean lookDown) { argument 169 position = Math.max(0, position); 170 while (position < count && !adapter.isEnabled(position)) { 192 positionSelectorLikeTouchCompat(int position, View sel, float x, float y) argument 201 positionSelectorLikeFocusCompat(int position, View sel) argument 221 positionSelectorCompat(int position, View sel) argument [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
H A D | FrameParser.java | 90 data.position(data.position() + ETHERNET_SRC_MAC_ADDR_LEN + ETHERNET_DST_MAC_ADDR_LEN); 136 data.position(data.position() + IP_V4_DSCP_AND_ECN_LEN + IP_V4_TOTAL_LEN_LEN 139 data.position(data.position() + IP_V4_HEADER_CHECKSUM_LEN + IP_V4_SRC_ADDR_LEN 144 data.position(data.position() + headerLen); 179 data.position(data.position() [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | DropDownListView.java | 134 final int position = pointToPosition((int) ev.getX(), (int) ev.getY()); 135 if (position != INVALID_POSITION && position != mSelectedPosition) { 136 final View hoveredItem = getChildAt(position - getFirstVisiblePosition()); 142 positionSelector(position, hoveredItem); 143 setSelectedPositionInt(position); 144 setNextSelectedPositionInt(position); 149 // Do not cancel the selected position if the selection is visible 194 final int position = pointToPosition(x, y); 195 if (position 252 setPressedItem(@onNull View child, int position, float x, float y) argument 304 obtainView(int position, boolean[] isScrap) argument [all...] |
H A D | HeaderViewListAdapter.java | 146 public boolean isEnabled(int position) { argument 149 if (position < numHeaders) { 150 return mHeaderViewInfos.get(position).isSelectable; 154 final int adjPosition = position - numHeaders; 167 public Object getItem(int position) { argument 170 if (position < numHeaders) { 171 return mHeaderViewInfos.get(position).data; 175 final int adjPosition = position - numHeaders; 188 public long getItemId(int position) { argument 190 if (mAdapter != null && position > 207 getView(int position, View convertView, ViewGroup parent) argument 228 getItemViewType(int position) argument [all...] |
H A D | YearPickerView.java | 61 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { 62 final int year = mAdapter.getYearForPosition(position); 90 final int position = mAdapter.getPositionForYear(year); 91 if (position >= 0 && position < getCount()) { 92 setSelectionCentered(position); 98 public void setSelectionCentered(int position) { argument 100 setSelectionFromTop(position, offset); 150 public Integer getItem(int position) { argument 151 return getYearForPosition(position); 155 getItemId(int position) argument 163 getYearForPosition(int position) argument 173 getView(int position, View convertView, ViewGroup parent) argument 201 getItemViewType(int position) argument 221 isEnabled(int position) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | GridScenario.java | 112 * Set the position that starts selected. 114 * @param startingSelectionPosition The selected position within the adapter's data set. 135 * @param position The position in the grid. 139 int position, double itemScreenSizeFactor) { 140 mOverrideItemScreenSizeFactors.put(position, itemScreenSizeFactor); 266 public void onItemSelected(AdapterView parent, View v, int position, long id) { 267 positionSelected(position); 315 public final String getValueAtPosition(int position) { argument 316 return "postion " + position; 138 setPositionScreenSizeFactorOverride( int position, double itemScreenSizeFactor) argument 328 createView(int position, ViewGroup parent, int desiredHeight) argument 348 getItem(int position) argument 352 getItemId(int position) argument 356 getView(int position, View convertView, ViewGroup parent) argument [all...] |
/frameworks/base/core/java/android/database/ |
H A D | CrossProcessCursorWrapper.java | 46 public void fillWindow(int position, CursorWindow window) { argument 49 crossProcessCursor.fillWindow(position, window); 53 DatabaseUtils.cursorFillWindow(mCursor, position, window);
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
H A D | ListButtonsDiagonalAcrossItems.java | 50 protected View createView(int position, ViewGroup parent, argument 52 final Slot slot = position == 0 ? Slot.Left : 53 (position == 1 ? Slot.Middle : Slot.Right);
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
H A D | SlowBindRecyclerViewActivity.java | 46 public void onBindViewHolder(ViewHolder holder, int position) { 47 Trace.beginSection("bind item " + position); 50 super.onBindViewHolder(holder, position);
|
/frameworks/av/include/media/ |
H A D | AudioTimestamp.h | 33 uint32_t mPosition; // a frame position in AudioTrack::getPosition() units 71 // If this value is -1, then both time and position are invalid. 72 // If this value is 0, then the time is not valid but the position is valid. 85 // before sending to client, but differences in legacy position offset handling 103 int64_t *position, int64_t *time, int timebase, Location *location = nullptr) const { 104 if (position == nullptr || time == nullptr 113 *position = mPosition[i]; 128 int64_t position, time; local 129 if (getBestTimestamp(&position, &time, TIMEBASE_MONOTONIC, location) == OK) { 130 timestamp->mPosition = position; 102 getBestTimestamp( int64_t *position, int64_t *time, int timebase, Location *location = nullptr) const argument [all...] |
/frameworks/av/media/libaudioclient/include/media/ |
H A D | AudioTimestamp.h | 33 uint32_t mPosition; // a frame position in AudioTrack::getPosition() units 71 // If this value is -1, then both time and position are invalid. 72 // If this value is 0, then the time is not valid but the position is valid. 85 // before sending to client, but differences in legacy position offset handling 103 int64_t *position, int64_t *time, int timebase, Location *location = nullptr) const { 104 if (position == nullptr || time == nullptr 113 *position = mPosition[i]; 128 int64_t position, time; local 129 if (getBestTimestamp(&position, &time, TIMEBASE_MONOTONIC, location) == OK) { 130 timestamp->mPosition = position; 102 getBestTimestamp( int64_t *position, int64_t *time, int timebase, Location *location = nullptr) const argument [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | AccountViewAdapter.java | 50 public Object getItem(int position) { argument 51 return mData.get(position); 55 public long getItemId(int position) { argument 56 return position; 65 public View getView(int position, View convertView, ViewGroup parent) { argument 72 AccountElements elements = (AccountElements) getItem(position);
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
H A D | AutoCompleteTextViewSimple.java | 99 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument 100 Log.d(LOG_TAG, "onItemClick() position " + position); 102 mItemClickPosition = position; 108 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { argument 109 Log.d(LOG_TAG, "onItemSelected() position " + position); 111 mItemSelectedPosition = position;
|
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/ |
H A D | AdapterViewBindingAdapter.java | 39 public static void setSelectedItemPosition(AdapterView view, int position) { argument 40 if (view.getSelectedItemPosition() != position) { 41 view.setSelection(position); 70 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { argument 72 mSelected.onItemSelected(parent, view, position, id); 91 void onItemSelected(AdapterView<?> parent, View view, int position, long id); argument
|
H A D | SearchViewBindingAdapter.java | 75 public boolean onSuggestionSelect(int position) { 77 return submit.onSuggestionSelect(position); 84 public boolean onSuggestionClick(int position) { 86 return change.onSuggestionClick(position); 108 boolean onSuggestionSelect(int position); argument 113 boolean onSuggestionClick(int position); argument
|
/frameworks/support/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/ |
H A D | SimpleStringRecyclerViewAdapter.java | 53 public String getValueAt(int position) { argument 54 return mValues.get(position); 76 public void onBindViewHolder(ViewHolder holder, int position) { argument 77 holder.mBoundString = mValues.get(position); 78 holder.mTextView.setText(position + ": " + mValues.get(position));
|
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/ |
H A D | SimpleStringRecyclerViewAdapter.java | 53 public String getValueAt(int position) { argument 54 return mValues.get(position); 76 public void onBindViewHolder(ViewHolder holder, int position) { argument 77 holder.mBoundString = mValues.get(position); 78 holder.mTextView.setText(position + ": " + mValues.get(position));
|