/frameworks/wilhelm/src/itf/ |
H A D | IMIDITime.c | 39 static SLresult IMIDITime_SetPosition(SLMIDITimeItf self, SLuint32 position) argument 45 if (!(position < thiz->mDuration)) { 49 thiz->mPosition = position; 67 SLuint32 position = thiz->mPosition; local 69 *pPosition = position;
|
H A D | IPlay.c | 185 // otherwise the duration will be updated each time a new maximum position is detected 203 SLmillisecond position; local 207 // and doesn't cache the position 210 android_audioPlayer_getPosition(thiz, &position); 213 android_Player_getPosition(thiz, &position); 220 // on other platforms we depend on periodic updates to the current position 221 position = thiz->mPosition; 222 // if a seek is pending, then lie about current position so the seek appears synchronous 227 position = pos; 232 *pMsec = position; [all...] |
H A D | IRecord.c | 95 SLmillisecond position; local 100 android_audioRecorder_getPosition(InterfaceToCAudioRecorder(thiz), &position); local 102 position = thiz->mPosition; 105 position = thiz->mPosition; 108 *pMsec = position; 214 // clearing the marker position is equivalent to setting the marker to SL_TIME_UNKNOWN
|
/frameworks/wilhelm/tests/examples/ |
H A D | slesTestDecodeAac.cpp | 210 SLmillisecond position; local 211 SLresult res = (*caller)->GetPosition(caller, &position); 214 printf("SL_PLAYEVENT_HEADATMARKER position=%u ms\n", position); 217 printf("SL_PLAYEVENT_HEADATNEWPOS position=%u ms\n", position); 220 printf("SL_PLAYEVENT_HEADATEND position=%u ms, all decoded data has been received\n", 221 position); 385 /* Periodically ask for position and duration */ 387 SLmillisecond position; local 568 SLmillisecond position; local [all...] |
/frameworks/wilhelm/tests/listening/ |
H A D | seekTorture.c | 100 unsigned position, duration; local 101 while (fscanf(fp_map, "%u %u", &position, &duration) == 2) { 102 printf("%u %u\n", position, duration); 103 result = (*playerSeek)->SetPosition(playerSeek, (SLmillisecond) position,
|
H A D | slesTest_playMuteSolo.cpp | 110 SLmillisecond position; local 111 res = (*playItf)->GetPosition(playItf, &position); ExitOnError(res); 112 printf("position=%u\n", (unsigned) position); 295 /* Setup to receive playback events on position updates */
|
/frameworks/wilhelm/tests/sandbox/ |
H A D | xaplay.c | 51 XAmillisecond seekPos = XA_TIME_UNKNOWN; // seek to this position initially 135 XAmillisecond position; local 136 result = (*caller)->GetPosition(caller, &position); 140 printf("XA_PLAYEVENT_HEADATEND current position=%u ms\n", position); 144 printf("XA_PLAYEVENT_HEADATNEWPOS current position=%u ms\n", position); 148 printf("XA_PLAYEVENT_HEADATMARKER current position=%u ms\n", position); 210 // display position periodicall 212 XAmillisecond position; local 559 XAmillisecond position; local [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 87 public Object instantiateItem(ViewGroup container, int position) { argument 92 final long itemId = getItemId(position); 101 fragment = getItem(position); 115 public void destroyItem(ViewGroup container, int position, Object object) { argument 119 if (DEBUG) Log.v(TAG, "Detaching item #" + getItemId(position) + ": f=" + object 125 public void setPrimaryItem(ViewGroup container, int position, Object object) { argument 164 * Return a unique identifier for the item at the given position. 166 * <p>The default implementation returns the given position 172 getItemId(int position) argument [all...] |
H A D | FragmentStatePagerAdapter.java | 84 * Return the Fragment associated with a specified position. 86 public abstract Fragment getItem(int position); argument 93 public Object instantiateItem(ViewGroup container, int position) { argument 98 if (mFragments.size() > position) { 99 Fragment f = mFragments.get(position); 109 Fragment fragment = getItem(position); 110 if (DEBUG) Log.v(TAG, "Adding item #" + position + ": f=" + fragment); 111 if (mSavedState.size() > position) { 112 Fragment.SavedState fss = mSavedState.get(position); 117 while (mFragments.size() <= position) { 129 destroyItem(ViewGroup container, int position, Object object) argument 147 setPrimaryItem(ViewGroup container, int position, Object object) argument [all...] |
/frameworks/support/v4/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 83 public Object instantiateItem(ViewGroup container, int position) { argument 88 final long itemId = getItemId(position); 97 fragment = getItem(position); 111 public void destroyItem(ViewGroup container, int position, Object object) { argument 115 if (DEBUG) Log.v(TAG, "Detaching item #" + getItemId(position) + ": f=" + object 121 public void setPrimaryItem(ViewGroup container, int position, Object object) { argument 160 * Return a unique identifier for the item at the given position. 162 * <p>The default implementation returns the given position 168 getItemId(int position) argument [all...] |
H A D | FragmentStatePagerAdapter.java | 80 * Return the Fragment associated with a specified position. 82 public abstract Fragment getItem(int position); argument 89 public Object instantiateItem(ViewGroup container, int position) { argument 94 if (mFragments.size() > position) { 95 Fragment f = mFragments.get(position); 105 Fragment fragment = getItem(position); 106 if (DEBUG) Log.v(TAG, "Adding item #" + position + ": f=" + fragment); 107 if (mSavedState.size() > position) { 108 Fragment.SavedState fss = mSavedState.get(position); 113 while (mFragments.size() <= position) { 125 destroyItem(ViewGroup container, int position, Object object) argument 143 setPrimaryItem(ViewGroup container, int position, Object object) argument [all...] |
H A D | ListFragment.java | 57 public void onItemClick(AdapterView<?> parent, View v, int position, long id) { 58 onListItemClick((ListView)parent, v, position, id); 164 * getListView().getItemAtPosition(position) if they need to access the 169 * @param position The position of the view in the list 172 public void onListItemClick(ListView l, View v, int position, long id) { argument 193 * position with the adapter's data 195 * @param position 197 public void setSelection(int position) { argument 199 mList.setSelection(position); [all...] |
/frameworks/support/v4/java/android/support/v4/view/ |
H A D | PagerAdapter.java | 51 * independent of its position in the adapter. A call to the PagerAdapter method 74 * set change may involve pages being added, removed, or changing position. The 99 * Create the page for the given position. The adapter is responsible 105 * @param position The page position to be instantiated. 109 public Object instantiateItem(ViewGroup container, int position) { argument 110 return instantiateItem((View) container, position); 114 * Remove a page for the given position. The adapter is responsible 119 * @param position The page position t 123 destroyItem(ViewGroup container, int position, Object object) argument 136 setPrimaryItem(ViewGroup container, int position, Object object) argument 174 instantiateItem(View container, int position) argument 191 destroyItem(View container, int position, Object object) argument 206 setPrimaryItem(View container, int position, Object object) argument 296 getPageTitle(int position) argument 307 getPageWidth(int position) argument [all...] |
H A D | PagerTabStrip.java | 276 void updateTextPositions(int position, float positionOffset, boolean force) { argument 285 super.updateTextPositions(position, positionOffset, force);
|
H A D | PagerTitleStrip.java | 230 * Set the {@link Gravity} used to position text within the title strip. 332 void updateTextPositions(int position, float positionOffset, boolean force) { argument 333 if (position != mLastKnownCurrentPage) { 334 updateText(position, mPager.getAdapter()); 475 public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { argument 478 position++; 480 updateTextPositions(position, positionOffset, false); 484 public void onPageSelected(int position) { argument
|
H A D | ViewPager.java | 102 int position; field in class:ViewPager.ItemInfo 111 return lhs.position - rhs.position; 189 // If the pager is at least this close to its final position, complete the scroll 230 * Indicates that the pager is in the process of settling to a final position. 252 * @param position Position index of the first page currently being displayed. 253 * Page position+1 will be visible if positionOffset is nonzero. 254 * @param positionOffset Value from [0, 1) indicating the offset from the page at position. 255 * @param positionOffsetPixels Value in pixels indicating the offset from position. 257 public void onPageScrolled(int position, floa argument 265 onPageSelected(int position) argument 287 onPageScrolled(int position, float positionOffset, int positionOffsetPixels) argument 292 onPageSelected(int position) argument 320 transformPage(View page, float position) argument 798 addNewItem(int position, int index) argument 1153 int position; field in class:ViewPager.SavedState 1276 infoForPosition(int position) argument 1597 onPageScrolled(int position, float offset, int offsetPixels) argument 2730 int position; field in class:ViewPager.LayoutParams [all...] |
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | CursorAdapter.java | 211 public Object getItem(int position) { argument 213 mCursor.moveToPosition(position); 223 public long getItemId(int position) { argument 225 if (mCursor.moveToPosition(position)) { 243 public View getView(int position, View convertView, ViewGroup parent) { argument 247 if (!mCursor.moveToPosition(position)) { 248 throw new IllegalStateException("couldn't move cursor to position " + position); 261 public View getDropDownView(int position, View convertView, ViewGroup parent) { argument 263 mCursor.moveToPosition(position); [all...] |
/frameworks/opt/photoviewer/src/com/android/ex/photo/ |
H A D | PhotoViewActivity.java | 92 * will be at the proper position. 365 public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { argument 369 public void onPageSelected(int position) { argument 370 mPhotoIndex = position; 491 final int position = mViewPager.getCurrentItem() + 1; 505 if (mIsEmpty || !hasAlbumCount || position <= 0) { 508 subtitle = getResources().getString(R.string.photo_view_count, position, mAlbumCount); 519 * at the current position so that it refers to the current image on screen. 520 * @return the cursor at the current position or 528 final int position [all...] |
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/ |
H A D | BaseCursorPagerAdapter.java | 43 /** Mapping of row ID to cursor position */ 64 * moved to the correct position. 67 public abstract Fragment getItem(Context context, Cursor cursor, int position); argument 72 public Fragment getItem(int position) { argument 73 if (mCursor != null && moveCursorTo(position)) { 74 return getItem(mContext, mCursor, position); 89 public Object instantiateItem(View container, int position) { argument 95 if (moveCursorTo(position)) { 102 final Object obj = super.instantiateItem(container, position); 110 public void destroyItem(View container, int position, Objec argument 144 getDataItem(int position) argument 155 getItemId(int position) argument 220 moveCursorTo(int position) argument [all...] |
H A D | BaseFragmentPagerAdapter.java | 63 * Return the Fragment associated with a specified position. 65 public abstract Fragment getItem(int position); argument 72 public Object instantiateItem(View container, int position) { argument 78 String name = makeFragmentName(container.getId(), position); 85 if (DEBUG) Log.v(TAG, "Attaching item #" + position + ": f=" + fragment); 88 fragment = getItem(position); 93 if (DEBUG) Log.v(TAG, "Adding item #" + position + ": f=" + fragment); 95 makeFragmentName(container.getId(), position)); 105 public void destroyItem(View container, int position, Object object) { argument 109 if (DEBUG) Log.v(TAG, "Detaching item #" + position 126 setPrimaryItem(View container, int position, Object object) argument [all...] |
H A D | PhotoPagerAdapter.java | 45 public Fragment getItem(Context context, Cursor cursor, int position) { argument 67 return new PhotoViewFragment(builder.build(), position, this, onlyShowSpinner);
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/ |
H A D | PhotoViewFragment.java | 123 public PhotoViewFragment(Intent intent, int position, PhotoPagerAdapter adapter, argument 126 mPosition = position;
|
/frameworks/opt/mailcommon/tests/src/com/android/mailcommon/ |
H A D | MergedAdapterTest.java | 57 public Object getItem(int position) { argument 58 return Integer.toString(mOffset + position); 62 public long getItemId(int position) { argument 63 return position; 67 public View getView(int position, View convertView, ViewGroup parent) { argument 69 v.setTag(getItem(position)); 89 public int getItemViewType(int position) { argument 90 return position % mViewTypeCount;
|
/frameworks/opt/mailcommon/java/com/android/mailcommon/ |
H A D | MergedAdapter.java | 100 * For a given merged position, find the corresponding Adapter and local position within that 101 * Adapter by iterating through Adapters and summing their counts until the merged position is 104 * @param position a merged (global) position 105 * @return the matching Adapter and local position, or null if not found 107 public LocalAdapterPosition<T> getAdapterOffsetForItem(final int position) { argument 115 if (position < newCount) { 116 return new LocalAdapterPosition<T>(a, position - count); 125 public Object getItem(int position) { argument 134 getItemId(int position) argument 148 getItemViewType(int position) argument 167 getView(int position, View convertView, ViewGroup parent) argument 173 getDropDownView(int position, View convertView, ViewGroup parent) argument 188 isEnabled(int position) argument [all...] |
H A D | MultiAdapterSpinner.java | 69 * Whether or not an item at position should become the new selected spinner item and change 72 boolean canSelect(int position); argument 76 void onClick(int position); argument 88 public View getView(int position, View convertView, ViewGroup parent) { argument 89 return super.getDropDownView(position, convertView, parent); 112 public void setSelectedItem(final FancySpinnerAdapter adapter, final int position) { argument 119 globalPosition += position; 126 if (adapter.canSelect(position)) { 128 View itemView = adapter.getView(position, null, this); 133 if (position < adapte 163 onItemClick(AdapterView<?> parent, View view, int position, long id) argument [all...] |