/frameworks/support/v7/recyclerview/src/android/support/v7/util/ |
H A D | MessageThreadUtil.java | 48 public void removeTile(int generation, int position) { 49 sendMessage(SyncQueueItem.obtainMessage(REMOVE_TILE, generation, position)); 106 public void loadTile(int position, int scrollHint) { 107 sendMessage(SyncQueueItem.obtainMessage(LOAD_TILE, position, scrollHint));
|
/frameworks/base/core/java/android/text/format/ |
H A D | TimeFormatter.java | 135 char currentChar = formatBuffer.get(formatBuffer.position()); 140 outputBuilder.append(formatBuffer.get(formatBuffer.position())); 142 formatBuffer.position(formatBuffer.position() + 1); 149 // The char at formatBuffer.position() is expected to be '%' at this point. 152 // Increment the position then get the new current char. 153 formatBuffer.position(formatBuffer.position() + 1); 154 char currentChar = formatBuffer.get(formatBuffer.position());
|
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/ |
H A D | FrameworkPerfActivity.java | 211 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { argument 213 TestService.Op op = TestService.mAvailOps[position]; 215 mFgTestIndex = position; 217 ((TextView)findViewById(R.id.fgtext)).setText(mAvailOpDescriptions[position]); 219 mBgTestIndex = position; 221 ((TextView)findViewById(R.id.bgtext)).setText(mAvailOpDescriptions[position]); 223 mLimitIsIterations = (position != 0);
|
/frameworks/support/v4/java/android/support/v4/view/ |
H A D | PagerTitleStrip.java | 232 * Set the {@link Gravity} used to position text within the title strip. 335 void updateTextPositions(int position, float positionOffset, boolean force) { argument 336 if (position != mLastKnownCurrentPage) { 337 updateText(position, mPager.getAdapter()); 479 public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { argument 482 position++; 484 updateTextPositions(position, positionOffset, false); 488 public void onPageSelected(int position) { argument
|
/frameworks/base/core/java/android/widget/ |
H A D | AutoCompleteTextView.java | 828 * Set the position of the dropdown view selection. 830 * @param position The position to move the selector to. 832 public void setListSelection(int position) { argument 833 mPopup.setSelection(position); 837 * Get the position of the dropdown view selection, if there is one. Returns 841 * @return the position of the current selection, if there is one, or 881 private void performCompletion(View selectedView, int position, long id) { argument 884 if (position < 0) { 887 selectedItem = mAdapter.getItem(position); 1201 onItemClick(AdapterView parent, View v, int position, long id) argument [all...] |
H A D | CalendarViewLegacyDelegate.java | 234 * Command for adjusting the position after a scroll/fling. 791 int position = getWeeksSinceMinDate(date); 795 if (position < firstFullyVisiblePosition || position > lastFullyVisiblePosition 804 position = 0; 806 position = getWeeksSinceMinDate(mFirstDayOfMonth); 811 mListView.smoothScrollToPositionFromTop(position, mListScrollTopOffset, 814 mListView.setSelectionFromTop(position, mListScrollTopOffset); 961 // Fix the position after a scroll or a fling ends 1051 public Object getItem(int position) { argument 1056 getItemId(int position) argument 1061 getView(int position, View convertView, ViewGroup parent) argument [all...] |
H A D | AlphabetIndexer.java | 176 // position. 186 // Do we have the position of the previous section? 252 * Returns the section index for a given position in the list by querying the item 255 public int getSectionForPosition(int position) { argument 257 mDataCursor.moveToPosition(position);
|
/frameworks/native/opengl/tools/glgen/stubs/jsr239/ |
H A D | GLCHeader.cpp | 113 positionID = _env->GetFieldID(bufferClass, "position", "I"); 122 jint position; local 127 position = _env->GetIntField(buffer, positionID); 130 *remaining = (limit - position) << elementSizeShift; 177 jint position = _env->GetIntField(buffer, positionID); local 179 buf = ((char*) buf) + (position << elementSizeShift);
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
H A D | DropdownChipLayouter.java | 78 * @param position The position in the list. 84 public View bindView(View convertView, ViewGroup parent, RecipientEntry entry, int position, argument 86 return bindView(convertView, parent, entry, position, type, constraint, null); 95 public View bindView(View convertView, ViewGroup parent, RecipientEntry entry, int position, argument 129 viewHolder.topDivider.setVisibility(position == 0 ? View.VISIBLE : View.GONE); 141 if (position != 0) {
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | GuidedActionAdapter.java | 158 * Returns the GuidedAction at the given position in the managed list. 159 * @param position The position of the desired GuidedAction. 160 * @return The GuidedAction at the given position. 162 public GuidedAction getItem(int position) { argument 163 return mActions.get(position); 225 public void onBindViewHolder(ViewHolder holder, int position) { argument 226 if (position >= mActions.size()) { 230 GuidedAction action = mActions.get(position);
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
H A D | ActionBarDrawerToggle.java | 475 public void setPosition(float position) { argument 476 if (position == 1f) { 478 } else if (position == 0f) { 481 setProgress(position); 494 public void setPosition(float position); argument
|
H A D | AlertController.java | 742 public View getView(int position, View convertView, ViewGroup parent) { 743 View view = super.getView(position, convertView, parent); 745 boolean isItemChecked = mCheckedItems[position]; 747 listView.setItemChecked(position, true); 806 public void onItemClick(AdapterView<?> parent, View v, int position, long id) { 807 mOnClickListener.onClick(dialog.mDialog, position); 816 public void onItemClick(AdapterView<?> parent, View v, int position, long id) { 818 mCheckedItems[position] = listView.isItemChecked(position); 821 dialog.mDialog, position, listVie 852 getItemId(int position) argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | SearchView.java | 252 * @param position the absolute position in the list of suggestions. 257 boolean onSuggestionSelect(int position); argument 261 * @param position the absolute position of the clicked item in the list of suggestions. 267 boolean onSuggestionClick(int position); argument 1015 int position = mSearchSrcTextView.getListSelection(); 1016 return onItemClicked(position, KeyEvent.KEYCODE_UNKNOWN, null); 1287 private boolean onItemClicked(int position, int actionKey, String actionMsg) { argument 1289 || !mOnSuggestionListener.onSuggestionClick(position)) { 1298 onItemSelected(int position) argument 1340 rewriteQueryFromSuggestion(int position) argument 1373 launchSuggestion(int position, int actionKey, String actionMsg) argument [all...] |
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | RecyclerView.java | 82 * <li><em>Position:</em> The position of a data item within an <em>Adapter</em>.</li> 86 * to a <em>position</em> within the adapter.</li> 88 * position may be placed in a cache for later reuse to display the same type of data again 107 * For this reason, there are two types of <code>position</code> related methods in RecyclerView: 109 * <li>layout position: Position of an item in the latest layout calculation. This is the 110 * position from the LayoutManager's perspective.</li> 111 * <li>adapter position: Position of an item in the adapter. This is the position from 118 * Methods that return or receive <code>*LayoutPosition*</code> use position as of the latest 126 * The other set of position relate 1290 scrollToPosition(int position) argument 1304 jumpToPositionForSmoothScroller(int position) argument 1327 smoothScrollToPosition(int position) argument 3573 findViewHolderForPosition(int position) argument 3592 findViewHolderForLayoutPosition(int position) argument 3610 findViewHolderForAdapterPosition(int position) argument 3624 findViewHolderForPosition(int position, boolean checkNewPosition) argument 4380 bindViewToPosition(View view, int position) argument 4435 convertPreLayoutPositionToPostLayout(int position) argument 4460 getViewForPosition(int position) argument 4464 getViewForPosition(int position, boolean dryRun) argument 4835 getChangedScrapViewForPosition(int position) argument 4875 getScrapViewForPosition(int position, int type, boolean dryRun) argument 5189 getViewForPositionAndType(Recycler recycler, int position, int type) argument 5245 onBindViewHolder(VH holder, int position) argument 5276 onBindViewHolder(VH holder, int position, List<Object> payloads) argument 5301 bindViewHolder(VH holder, int position) argument 5327 getItemViewType(int position) argument 5355 getItemId(int position) argument 5568 notifyItemChanged(int position) argument 5596 notifyItemChanged(int position, Object payload) argument 5661 notifyItemInserted(int position) argument 5712 notifyItemRemoved(int position) argument 6151 scrollToPosition(int position) argument 6166 smoothScrollToPosition(RecyclerView recyclerView, State state, int position) argument 6412 findViewByPosition(int position) argument 9020 findViewByPosition(int position) argument 9029 instantScrollToPosition(int position) argument [all...] |
/frameworks/base/core/java/com/android/internal/app/ |
H A D | ChooserActivity.java | 818 public int getPositionTargetType(int position) { argument 822 if (position < callerTargetCount) { 828 if (position - offset < serviceTargetCount) { 834 if (position - offset < standardTargetCount) { 842 public TargetInfo getItem(int position) { argument 843 return targetInfoForPosition(position, true); 847 public TargetInfo targetInfoForPosition(int position, boolean filtered) { argument 851 if (position < callerTargetCount) { 852 return mCallerTargets.get(position); 857 if (position 1082 getItem(int position) argument 1088 getItemId(int position) argument 1093 getView(int position, View convertView, ViewGroup parent) argument [all...] |
H A D | ResolverActivity.java | 1186 // Not using getItem since it offsets to dodge this position for the list 1496 public ResolveInfo resolveInfoForPosition(int position, boolean filtered) { argument 1497 return (filtered ? getItem(position) : mDisplayList.get(position)) 1501 public TargetInfo targetInfoForPosition(int position, boolean filtered) { argument 1502 return filtered ? getItem(position) : mDisplayList.get(position); 1525 public TargetInfo getItem(int position) { argument 1526 if (mFilterLastUsed && mLastChosenPosition >= 0 && position >= mLastChosenPosition) { 1527 position 1532 getItemId(int position) argument 1558 getView(int position, View convertView, ViewGroup parent) argument 1583 bindView(int position, View view) argument 1680 onItemClick(AdapterView<?> parent, View view, int position, long id) argument 1704 onItemLongClick(AdapterView<?> parent, View view, int position, long id) argument [all...] |
H A D | AlertController.java | 1038 public View getView(int position, View convertView, ViewGroup parent) { 1039 View view = super.getView(position, convertView, parent); 1041 boolean isItemChecked = mCheckedItems[position]; 1043 listView.setItemChecked(position, true); 1107 public void onItemClick(AdapterView<?> parent, View v, int position, long id) { 1108 mOnClickListener.onClick(dialog.mDialogInterface, position); 1117 public void onItemClick(AdapterView<?> parent, View v, int position, long id) { 1119 mCheckedItems[position] = listView.isItemChecked(position); 1122 dialog.mDialogInterface, position, listVie 1154 getItemId(int position) argument [all...] |
/frameworks/base/media/java/android/media/session/ |
H A D | PlaybackState.java | 31 * {@link PlaybackState#STATE_PLAYING}, the current playback position, 228 * Use this value for the position to indicate the position is not known. 243 private PlaybackState(int state, long position, long updateTime, float speed, argument 248 mPosition = position; 276 bob.append(", position=").append(mPosition); 277 bob.append(", buffered position=").append(mBufferedPosition); 324 * Get the current playback position in ms. 331 * Get the current buffered position in ms. This is the farthest playback 332 * point that can be reached from the current position usin 829 setState(int state, long position, float playbackSpeed, long updateTime) argument 866 setState(int state, long position, float playbackSpeed) argument [all...] |
/frameworks/support/v4/java/android/support/v4/media/session/ |
H A D | PlaybackStateCompat.java | 35 * {@link PlaybackStateCompat#STATE_PLAYING}, the current playback position, 254 * Use this value for the position to indicate the position is not known. 271 private PlaybackStateCompat(int state, long position, long bufferedPosition, argument 276 mPosition = position; 304 bob.append(", position=").append(mPosition); 305 bob.append(", buffered position=").append(mBufferedPosition); 357 * Get the current playback position in ms. 364 * Get the current buffered position in ms. This is the farthest playback 365 * point that can be reached from the current position usin 830 setState(@tate int state, long position, float playbackSpeed) argument 868 setState(@tate int state, long position, float playbackSpeed, long updateTime) argument [all...] |
/frameworks/av/media/libmedia/ |
H A D | AudioRecord.cpp | 302 // reset current position as seen by client to 0 351 // the record head position will reset to 0, so if a marker is set, we need 371 // The only purpose of setting marker position is to get a callback 401 // The only purpose of setting position update period is to get a callback 429 status_t AudioRecord::getPosition(uint32_t *position) const 431 if (position == NULL) { 436 *position = mProxy->getPosition(); 887 // Get current position of server 888 size_t position = mProxy->getPosition(); local 894 if (!mMarkerReached && (markerPosition > 0) && (position > 1085 size_t position = mProxy->getPosition(); local [all...] |
/frameworks/base/core/java/android/database/ |
H A D | DatabaseUtils.java | 255 * The original position of the cursor is left unchanged by this operation. 258 * @param position The start position for filling the window. 263 int position, final CursorWindow window) { 264 if (position < 0 || position >= cursor.getCount()) { 270 window.setStartPosition(position); 272 if (cursor.moveToPosition(position)) { 282 success = window.putNull(position, i); 286 success = window.putLong(cursor.getLong(i), position, 262 cursorFillWindow(final Cursor cursor, int position, final CursorWindow window) argument [all...] |
H A D | CursorWrapper.java | 196 public boolean moveToPosition(int position) { argument 197 return mCursor.moveToPosition(position);
|
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/ |
H A D | FwdLockEngine.h | 211 * @param position Position in the file (in milliseconds) where the start occurs. 220 int64_t position); 225 int position); 326 * @param offset Start position of the content 453 * Updates the file position within an open DRM file. 457 * @param offset Offset with which to update the file position. 461 * @return New file position. 483 * @param offset Offset with which to update the file position.
|
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
H A D | MarshalQueryableParcelable.java | 141 // set the position past the bytes the parcelable actually used 143 buffer.position(buffer.position() + actualLength);
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
H A D | ByteArrayHelpers.java | 196 // Each number written is at least 1 byte, so the position should be at least length 197 if (numbers.length != 0 && byteBuffer.position() < numbers.length) { 199 "Had %d numbers, but byte buffer position was only %d", 200 numbers.length, byteBuffer.position()));
|