Searched defs:position (Results 176 - 200 of 220) sorted by relevance

123456789

/frameworks/av/media/libstagefright/matroska/
H A DMatroskaExtractor.cpp43 virtual int Read(long long position, long length, unsigned char* buffer) { argument
44 CHECK(position >= 0);
51 ssize_t n = mSource->readAt(position, buffer, length);
/frameworks/base/core/java/android/database/
H A DDatabaseUtils.java257 * The original position of the cursor is left unchanged by this operation.
260 * @param position The start position for filling the window.
265 int position, final CursorWindow window) {
266 if (position < 0 || position >= cursor.getCount()) {
272 window.setStartPosition(position);
274 if (cursor.moveToPosition(position)) {
284 success = window.putNull(position, i);
288 success = window.putLong(cursor.getLong(i), position,
264 cursorFillWindow(final Cursor cursor, int position, final CursorWindow window) argument
[all...]
/frameworks/base/core/java/android/preference/
H A DPreferenceActivity.java263 public View getView(int position, View convertView, ViewGroup parent) { argument
281 Header header = getItem(position);
967 protected void onListItemClick(ListView l, View v, int position, long id) { argument
968 super.onListItemClick(l, v, position, id);
971 Object item = mAdapter.getItem(position);
972 if (item instanceof Header) onHeaderClick((Header) item, position);
983 * @param position The header's position in the list.
985 public void onHeaderClick(Header header, int position) { argument
/frameworks/base/core/java/android/webkit/
H A DHTML5VideoViewProxy.java89 // The seek position.
155 // save the current position.
678 public void play(String url, int position, int videoLayerID) { argument
683 if (position > 0) {
684 seek(position);
709 * @param time is the position in the video stream.
791 private native void nativeOnTimeupdate(int position, int nativePointer); argument
/frameworks/base/core/java/android/widget/
H A DAdapterView.java64 * The position of the first child displayed
96 * Indicates whether to sync based on the selection or position. Possible
148 * The position within the adapter's data set of the item to select
160 * The position within the adapter's data set of the currently selected item.
187 * Represents an invalid position. All valid positions are in the range 0 to 1 less than the
198 * The last selected position we used when notifying
203 * The id of the last selected position we used when notifying
253 * Implementers can call getItemAtPosition(position) if they need
259 * @param position The position o
262 onItemClick(AdapterView<?> parent, View view, int position, long id) argument
292 performItemClick(View view, int position, long id) argument
324 onItemLongClick(AdapterView<?> parent, View view, int position, long id) argument
368 onItemSelected(AdapterView<?> parent, View view, int position, long id) argument
403 AdapterContextMenuInfo(View targetView, int position, long id) argument
419 public int position; field in class:AdapterView.AdapterContextMenuInfo
643 setSelection(int position) argument
761 getItemAtPosition(int position) argument
766 getItemIdAtPosition(int position) argument
1144 lookForSelectablePosition(int position, boolean lookDown) argument
1152 setSelectedPositionInt(int position) argument
1162 setNextSelectedPositionInt(int position) argument
[all...]
H A DAdapterViewAnimator.java529 // the transform for it's new relative position in the window, and animate
835 // values to restore the list position after we connect, and can skip setting the displayed
1012 public void setSelection(int position) { argument
1013 setDisplayedChild(position);
1041 // Restore the previous position (see onRestoreInstanceState)
H A DAutoCompleteTextView.java824 * Set the position of the dropdown view selection.
826 * @param position The position to move the selector to.
828 public void setListSelection(int position) { argument
829 mPopup.setSelection(position);
833 * Get the position of the dropdown view selection, if there is one. Returns
837 * @return the position of the current selection, if there is one, or
877 private void performCompletion(View selectedView, int position, long id) { argument
880 if (position < 0) {
883 selectedItem = mAdapter.getItem(position);
1191 onItemClick(AdapterView parent, View v, int position, long id) argument
[all...]
H A DExpandableListView.java55 * {@link SimpleCursorTreeAdapter}) contain the preferred position information
60 * {@link ExpandableListContextMenuInfo#packedPosition} being a packed position
83 * The packed position represents a group.
88 * The packed position represents a child.
93 * The packed position represents a neither/null/no preference.
98 * The value for a packed position that represents neither/null/no
100 * (first bit 0) should not have a child position filled.
104 /** The mask (in packed position representation) for the child */
107 /** The mask (in packed position representation) for the group */
110 /** The mask (in packed position representatio
485 isHeaderOrFooterPosition(int position) argument
513 performItemClick(View v, int position, long id) argument
533 handleItemClick(View v, int position, long id) argument
1011 getChildOrGroupId(ExpandableListPosition position) argument
[all...]
H A DFastScroller.java183 public void setScrollbarPosition(int position) { argument
184 if (position == View.SCROLLBAR_POSITION_DEFAULT) {
185 position = mList.isLayoutRtl() ?
188 mPosition = position;
189 switch (position) {
521 void scrollTo(float position) { argument
529 int section = (int) (position * nSections);
571 // position actually returns Q's. So we need to look ahead to make
572 // sure that there is really a Q at Q's position. If not, move
585 if (prevSection == exactSection && position
[all...]
H A DGallery.java82 * position, measured in milliseconds.
109 * The position of the item that received the user's down touch.
180 * If true, mFirstPosition is the position of the rightmost child, and
187 * Used to reset position correctly during layout.
264 * changes position. Only relevant if animation is turned on.
314 // Current scroll position is the same as the selected position
576 // Common case where the current selected position is correct
617 * @param delta Change in the selected position. +1 means the selection is
639 // Update to the new selected position
843 makeAndAddView(int position, int offset, int x, boolean fromLeft) argument
1174 dispatchLongPress(View view, int position, long id) argument
1293 setSelectedPositionInt(int position) argument
[all...]
H A DGridView.java191 int position;
193 position = lookForSelectablePosition(mItemCount - 1, false);
195 position = lookForSelectablePosition(0, true);
197 setSelectedPositionInt(position);
198 setNextSelectedPositionInt(position);
210 int lookForSelectablePosition(int position, boolean lookDown) { argument
216 if (position < 0 || position >= mItemCount) {
219 return position;
239 int position
528 fillSpecific(int position, int top) argument
827 smoothScrollToPosition(int position) argument
1324 makeAndAddView(int position, int y, boolean flow, int childrenLeft, boolean selected, int where) argument
1365 setupChild(View child, int position, int y, boolean flow, int childrenLeft, boolean selected, boolean recycled, int where) argument
1473 setSelection(int position) argument
1492 setSelectionInt(int position) argument
[all...]
H A DListPopupWindow.java232 * @param position A position constant declaring where the prompt should be displayed.
237 public void setPromptPosition(int position) { argument
238 mPromptPosition = position;
529 * will recalculate the popup's size and position.
672 * Set the selected position of the list.
675 * @param position List position to set as selected.
677 public void setSelection(int position) { argument
681 list.setSelection(position);
724 performItemClick(int position) argument
1195 obtainView(int position, boolean[] isScrap) argument
[all...]
H A DOverScroller.java144 * position.
241 * Instead of setting a new final position and extending
252 * Sets the final position (X) for this scroller.
259 * @deprecated OverScroller's final position may change during an animation.
260 * Instead of setting a new final position and extending
270 * Sets the final position (Y) for this scroller.
277 * @deprecated OverScroller's final position may change during an animation.
278 * Instead of setting a new final position and extending
459 * @param startX Starting/current X position
460 * @param finalX Desired final X position
702 setFinalPosition(int position) argument
[all...]
H A DRemoteViewsAdapter.java307 public void add(int position, RemoteViewsFrameLayout layout) { argument
308 final Integer pos = position;
324 * Notifies each of the RemoteViewsFrameLayouts associated with a particular position that
327 public void notifyOnRemoteViewsLoaded(int position, RemoteViews view) { argument
330 final Integer pos = position;
332 // Notify all the references for that position of the newly loaded RemoteViews
425 private RemoteViewsFrameLayout createLoadingView(int position, View convertView, argument
428 // Create and return a new FrameLayout, and setup the references for this position
519 // The cache/mapping of position to RemoteViewsMetaData. This set is guaranteed to be
522 // we still need to be able to access the mapping of position t
571 insert(int position, RemoteViews v, long itemId, ArrayList<Integer> visibleWindow) argument
605 getRemoteViewsAt(int position) argument
611 getMetaDataAt(int position) argument
665 queueRequestedPositionToLoad(int position) argument
672 queuePositionsToBePreloadedFromRequestedPosition(int position) argument
730 containsRemoteViewAt(int position) argument
733 containsMetaDataAt(int position) argument
942 updateRemoteViews(final int position, boolean notifyWhenLoaded) argument
1019 getItem(int position) argument
1024 getItemId(int position) argument
1033 getItemViewType(int position) argument
1074 getView(int position, View convertView, ViewGroup parent) argument
[all...]
H A DCalendarView.java278 * Command for adjusting the position after a scroll/fling.
1120 int position = getWeeksSinceMinDate(date);
1124 if (position < firstFullyVisiblePosition || position > lastFullyVisiblePosition
1133 position = 0;
1135 position = getWeeksSinceMinDate(mFirstDayOfMonth);
1140 mListView.smoothScrollToPositionFromTop(position, mListScrollTopOffset,
1143 mListView.setSelectionFromTop(position, mListScrollTopOffset);
1306 // Fix the position after a scroll or a fling ends
1394 public Object getItem(int position) { argument
1399 getItemId(int position) argument
1404 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/frameworks/base/core/java/com/android/internal/app/
H A DMediaRouteChooserDialogFragment.java219 public int position; field in class:MediaRouteChooserDialogFragment.ViewHolder
365 public int getItemViewType(int position) { argument
366 final Object item = getItem(position);
368 return position == 0 ? VIEW_TOP_HEADER : VIEW_SECTION_HEADER;
386 public boolean isEnabled(int position) { argument
387 switch (getItemViewType(position)) {
389 return ((RouteInfo) mItems.get(position)).isEnabled();
399 public Object getItem(int position) { argument
400 return mItems.get(position);
404 public long getItemId(int position) { argument
409 getView(int position, View convertView, ViewGroup parent) argument
459 bindItemView(int position, ViewHolder holder) argument
499 bindHeaderView(int position, ViewHolder holder) argument
505 onItemClick(AdapterView<?> parent, View view, int position, long id) argument
565 int position; field in class:MediaRouteChooserDialogFragment.RouteAdapter.ExpandGroupListener
[all...]
/frameworks/base/core/jni/
H A Dandroid_media_AudioTrack.cpp699 jint position) {
706 return android_media_translateErrorCode( lpTrack->setPosition(position) );
713 uint32_t position = 0; local
720 lpTrack->getPosition(&position);
721 return (jint)position;
698 android_media_AudioTrack_set_position(JNIEnv *env, jobject thiz, jint position) argument
H A Dandroid_opengl_GLES11.cpp65 positionID = _env->GetFieldID(bufferClass, "position", "I");
75 jint position; local
80 position = _env->GetIntField(buffer, positionID);
83 *remaining = (limit - position) << elementSizeShift;
111 jint position = _env->GetIntField(buffer, positionID); local
113 buf += position << elementSizeShift;
/frameworks/ex/chips/src/com/android/ex/chips/
H A DBaseRecipientAdapter.java837 public Object getItem(int position) { argument
838 return getEntries().get(position);
842 public long getItemId(int position) { argument
843 return position;
852 public int getItemViewType(int position) { argument
853 return getEntries().get(position).getEntryType();
857 public boolean isEnabled(int position) { argument
858 return getEntries().get(position).isSelectable();
862 public View getView(int position, View convertView, ViewGroup parent) { argument
863 final RecipientEntry entry = getEntries().get(position);
[all...]
/frameworks/ex/widget/java/com/android/ex/widget/
H A DStaggeredGridView.java67 * - mFirstPosition is the adapter position of the View returned by getChildAt(0).
68 * - Any child index can be translated to an adapter position by adding mFirstPosition.
69 * - Any adapter position can be translated to a child index by subtracting mFirstPosition.
269 * Return the first adapter position with a view currently attached as
272 * @return the adapter position represented by the view at getChildAt(0).
465 * is always the view corresponding to position mFirstPosition + i.
761 final int position = mFirstPosition + i;
765 View newView = obtainView(position, child);
812 final LayoutRecord rec = mLayoutRecords.get(position);
816 rebuildLayoutRecordsBefore = position;
857 invalidateLayoutRecordsBeforePosition(int position) argument
865 invalidateLayoutRecordsAfterPosition(int position) argument
1127 getNextRecordUp(int position, int span) argument
1183 getNextRecordDown(int position, int span) argument
1228 obtainView(int position, View optScrap) argument
1398 int position; field in class:StaggeredGridView.LayoutParams
1521 getTransientStateView(int position) argument
1580 int position; field in class:StaggeredGridView.SavedState
[all...]
/frameworks/base/media/java/android/media/
H A DAudioTrack.java160 * The listener the AudioTrack notifies when the playback position reaches a marker
616 * Returns marker position expressed in frames.
630 * Returns the playback head position expressed in frames
717 * for each periodic playback head position update.
728 * for each periodic playback head position update.
804 * Sets the position of the notification marker.
831 * Sets the playback head position. The track must be stopped for the position to be changed.
832 * @param positionInFrames playback head position expressed in frames
1099 * Interface definition for a callback to be invoked when the playback head position o
1243 native_set_position(int position) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/
H A DRecentsPanelView.java133 public Object getItem(int position) { argument
134 return position; // we only need the index
137 public long getItemId(int position) { argument
138 return position; // we just need something unique for this position
160 public View getView(int position, View convertView, ViewGroup parent) { argument
167 final int index = mRecentTaskDescriptions.size() - position - 1;
679 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DGlobalActions.java336 public boolean onItemLongClick(AdapterView<?> parent, View view, int position,
338 return mAdapter.getItem(position).onLongPress();
449 public boolean isEnabled(int position) { argument
450 return getItem(position).isEnabled();
458 public Action getItem(int position) { argument
469 if (filteredPos == position) {
475 throw new IllegalArgumentException("position " + position
483 public long getItemId(int position) { argument
484 return position;
487 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/frameworks/av/media/libstagefright/
H A DAwesomePlayer.cpp878 int64_t position; local
879 getPosition(&position);
881 Playback::START, position / 1000);
/frameworks/av/media/libstagefright/mp4/
H A DFragmentedMP4Parser.cpp290 msg->setInt64("position", timeUs);
309 status_t FragmentedMP4Parser::onSeekTo(bool wantAudio, int64_t position) { argument
323 if (totalTime > position) {
332 info->mDecodingTime = position * info->mMediaTimeScale / 1000000ll;
550 int64_t position; local
551 CHECK(msg->findInt64("position", &position));
561 err = onSeekTo(wantAudio, position);
1788 // This should point to the position of the first byte of the

Completed in 366 milliseconds

123456789