Searched refs:position (Results 426 - 450 of 821) sorted by relevance

<<11121314151617181920>>

/frameworks/support/design/src/android/support/design/internal/
H A DNavigationMenuPresenter.java371 public long getItemId(int position) { argument
372 return position;
381 public int getItemViewType(int position) { argument
382 NavigationMenuItem item = mItems.get(position);
414 public void onBindViewHolder(ViewHolder holder, int position) { argument
415 switch (getItemViewType(position)) {
427 NavigationMenuTextItem item = (NavigationMenuTextItem) mItems.get(position);
434 NavigationMenuTextItem item = (NavigationMenuTextItem) mItems.get(position);
440 (NavigationMenuSeparatorItem) mItems.get(position);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
H A DRowsFragment.java238 int position, int subposition) {
240 if (DEBUG) Log.v(TAG, "new row selected position " + position + " subposition "
254 mMainFragmentAdapter.getFragmentHost().showTitleView(position <= 0);
259 * Get row ViewHolder at adapter position. Returns null if the row object is not in adapter or
262 * @param position Position of row in adapter.
263 * @return Row ViewHolder at a given adapter position.
265 public RowPresenter.ViewHolder getRowViewHolder(int position) { argument
271 verticalView.findViewHolderForAdapterPosition(position));
505 // we will get a success callback to update selected row position
237 onRowSelected(RecyclerView parent, RecyclerView.ViewHolder viewHolder, int position, int subposition) argument
570 findRowViewHolderByPosition(int position) argument
665 findRowViewHolderByPosition(int position) argument
[all...]
H A DRowsSupportFragment.java241 int position, int subposition) {
243 if (DEBUG) Log.v(TAG, "new row selected position " + position + " subposition "
257 mMainFragmentAdapter.getFragmentHost().showTitleView(position <= 0);
262 * Get row ViewHolder at adapter position. Returns null if the row object is not in adapter or
265 * @param position Position of row in adapter.
266 * @return Row ViewHolder at a given adapter position.
268 public RowPresenter.ViewHolder getRowViewHolder(int position) { argument
274 verticalView.findViewHolderForAdapterPosition(position));
508 // we will get a success callback to update selected row position
240 onRowSelected(RecyclerView parent, RecyclerView.ViewHolder viewHolder, int position, int subposition) argument
573 findRowViewHolderByPosition(int position) argument
668 findRowViewHolderByPosition(int position) argument
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DBaseRecyclerViewInstrumentationTest.java380 + " adapter position unless it is removed : " + vh,
437 void scrollToPosition(final int position) throws Throwable { argument
441 mRecyclerView.getLayoutManager().scrollToPosition(position);
446 void smoothScrollToPosition(final int position) throws Throwable { argument
447 smoothScrollToPosition(position, true);
450 void smoothScrollToPosition(final int position, boolean assertArrival) throws Throwable { argument
452 Log.d(TAG, "SMOOTH scrolling to " + position);
459 if (position == mRecyclerView.getChildAdapterPosition(view)) {
472 mRecyclerView.findViewHolderForAdapterPosition(position);
485 mRecyclerView.smoothScrollToPosition(position);
822 getItemViewType(int position) argument
860 onBindViewHolder(TestViewHolder holder, int position) argument
871 getItemAt(int position) argument
915 getItemId(int position) argument
1132 TargetTuple(int position, int layoutDirection) argument
[all...]
H A DRecyclerViewCacheTest.java323 public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
382 public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
440 public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
494 public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
496 holder.itemView.setMinimumHeight(position == 0 ? 50 : 100);
568 public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
570 holder.itemView.setMinimumHeight(position == 0 ? 100 : 200);
613 public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
614 int height = expandedPosition[0] == position ? 400 : 100;
725 public void onBindViewHolder(ViewHolder holder, int position) { argument
794 onBindViewHolder(ViewHolder holder, int position) argument
1138 onBindViewHolder(ViewHolder holder, int position) argument
[all...]
/frameworks/base/core/java/android/view/
H A DFocusFinder.java367 int position = focusables.lastIndexOf(focused);
368 if (position >= 0 && position + 1 < count) {
369 return focusables.get(position + 1);
380 int position = focusables.indexOf(focused);
381 if (position > 0) {
382 return focusables.get(position - 1);
403 final int position = clusters.lastIndexOf(currentCluster);
404 if (position >= 0 && position
[all...]
/frameworks/base/core/java/android/widget/
H A DSearchView.java231 * @param position the absolute position in the list of suggestions.
236 boolean onSuggestionSelect(int position); argument
240 * @param position the absolute position of the clicked item in the list of suggestions.
246 boolean onSuggestionClick(int position); argument
1077 int position = mSearchSrcTextView.getListSelection();
1078 return onItemClicked(position, KeyEvent.KEYCODE_UNKNOWN, null);
1111 int position = mSearchSrcTextView.getListSelection();
1112 if (position !
1450 onItemClicked(int position, int actionKey, String actionMsg) argument
1461 onItemSelected(int position) argument
1503 rewriteQueryFromSuggestion(int position) argument
1536 launchSuggestion(int position, int actionKey, String actionMsg) argument
[all...]
H A DAlphabetIndexer.java176 // 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/base/media/java/android/media/session/
H A DPlaybackState.java35 * {@link PlaybackState#STATE_PLAYING}, the current playback position,
280 * Use this value for the position to indicate the position is not known.
295 private PlaybackState(int state, long position, long updateTime, float speed, argument
300 mPosition = position;
328 bob.append(", position=").append(mPosition);
329 bob.append(", buffered position=").append(mBufferedPosition);
382 * Get the current playback position in ms.
389 * Get the current buffered position in ms. This is the farthest playback
390 * point that can be reached from the current position usin
896 setState(@tate int state, long position, float playbackSpeed, long updateTime) argument
938 setState(@tate int state, long position, float playbackSpeed) argument
[all...]
/frameworks/support/core-ui/java/android/support/v4/widget/
H A DFocusStrategy.java63 // The position of the next focusable item, which is the first item if
65 final int position = (focused == null ? -1 : focusables.lastIndexOf(focused)) + 1;
66 if (position < count) {
67 return focusables.get(position);
78 // The position of the previous focusable item, which is the last item
80 final int position = (focused == null ? count : focusables.indexOf(focused)) - 1;
81 if (position >= 0) {
82 return focusables.get(position);
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/util/
H A DDiffUtilTest.java367 public void onInserted(int position, int count) {
369 target.add(i + position, new Item(true));
374 public void onRemoved(int position, int count) {
376 target.remove(position);
387 public void onChanged(int position, int count, Object payload) {
389 int positionInList = position + i;
/frameworks/support/wear/src/android/support/wear/widget/drawer/
H A DPageIndicatorView.java136 // Simulate 5 positions, currently on the 3rd position.
467 private void positionChanged(int position) { argument
468 mSelectedPosition = position;
516 public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { argument
533 public void onPageSelected(int position) { argument
534 if (position != mSelectedPosition) {
535 positionChanged(position);
/frameworks/av/media/libaudioclient/
H A DAudioRecord.cpp308 // reset current position as seen by client to 0
317 // we reactivate markers (mMarkerPosition != 0) as the position is reset to 0.
363 // periodic update position; we update those on start().
382 // The only purpose of setting marker position is to get a callback
412 // The only purpose of setting position update period is to get a callback
440 status_t AudioRecord::getPosition(uint32_t *position) const
442 if (position == NULL) {
447 mProxy->getPosition().getValue(position);
979 // Get current position of server
980 Modulo<uint32_t> position(mProx
[all...]
/frameworks/base/core/java/android/database/
H A DDatabaseUtils.java255 * 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 DCursorWrapper.java196 public boolean moveToPosition(int position) { argument
197 return mCursor.moveToPosition(position);
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DAlertController.java975 public View getView(int position, View convertView, ViewGroup parent) {
976 View view = super.getView(position, convertView, parent);
978 boolean isItemChecked = mCheckedItems[position];
980 listView.setItemChecked(position, true);
1045 public void onItemClick(AdapterView<?> parent, View v, int position, long id) {
1046 mOnClickListener.onClick(dialog.mDialog, position);
1055 public void onItemClick(AdapterView<?> parent, View v, int position, long id) {
1057 mCheckedItems[position] = listView.isItemChecked(position);
1060 dialog.mDialog, position, listVie
1091 getItemId(int position) argument
[all...]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
H A DPrintActivity.java2355 public boolean isEnabled(int position) { argument
2356 Object item = getItem(position);
2366 public Object getItem(int position) { argument
2368 if (position == 0) {
2372 if (position < 1) {
2373 return mPrinterHolders.get(position);
2375 if (position == 1) {
2378 if (position < getCount() - 1) {
2379 return mPrinterHolders.get(position - 1);
2386 public long getItemId(int position) { argument
2405 getDropDownView(int position, View convertView, ViewGroup parent) argument
2420 getView(int position, View convertView, ViewGroup parent) argument
2722 onItemSelected(AdapterView<?> spinner, View view, int position, long id) argument
[all...]
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/
H A DFwdLockEngine.h211 * @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 DMarshalQueryableParcelable.java141 // set the position past the bytes the parcelable actually used
143 buffer.position(buffer.position() + actualLength);
/frameworks/base/core/java/com/android/internal/view/menu/
H A DMenuPopup.java122 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
126 // Use the position from the outer adapter so that if a header view was added, we don't get
127 // an off-by-1 error in position.
128 wrappedAdapter.mAdapterMenu.performItemAction((MenuItem) outerAdapter.getItem(position), 0);
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
H A DTextViewAssertions.java183 * {@link ViewAssertion} to check that EditText cursor is on a given position.
195 private CursorPositionAssertion(@CursorEdgePositionType int position) { argument
196 this.mPosition = position;
224 throw new AssertionFailedError("Unknown position for cursor assertion");
/frameworks/base/keystore/java/android/security/keystore/
H A DAndroidKeyStoreCipherSpiBase.java402 input.array(), input.arrayOffset() + input.position(), inputSize);
403 input.position(input.position() + inputSize);
474 inputOffset = src.arrayOffset() + src.position();
476 src.position(src.limit());
559 input.array(), input.arrayOffset() + input.position(), inputSize);
560 input.position(input.position() + inputSize);
/frameworks/base/media/java/android/media/
H A DMediaDescrambler.java167 * srcBuf.position().
169 * dstBuf.position().
210 srcBuf, srcBuf.position(), srcBuf.limit(),
211 dstBuf, dstBuf.position(), dstBuf.limit());
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DByteArrayHelpers.java196 // 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()));
/frameworks/base/packages/ExtServices/src/android/ext/services/storage/
H A DCacheQuotaServiceImpl.java105 private double getFairShareForPosition(int position) { argument
106 double value = 1.0 / Math.log(position + 3) - 0.285;

Completed in 545 milliseconds

<<11121314151617181920>>