/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/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/media/session/ |
H A D | PlaybackStateCompat.java | 27 * {@link PlaybackStateCompat#STATE_PLAYING}, the current playback position, 206 * Use this value for the position to indicate the position is not known. 220 private PlaybackStateCompat(int state, long position, long bufferedPosition, argument 223 mPosition = position; 245 bob.append(", position=").append(mPosition); 246 bob.append(", buffered position=").append(mBufferedPosition); 288 * Get the current playback position in ms. 295 * Get the current buffered position in ms. This is the farthest playback 296 * point that can be reached from the current position usin 639 setState(int state, long position, float playbackSpeed) argument 673 setState(int state, long position, float playbackSpeed, long updateTime) argument [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 306 getPageTitle(int position) argument 317 getPageWidth(int position) argument [all...] |
H A D | PagerTabStrip.java | 278 void updateTextPositions(int position, float positionOffset, boolean force) { argument 287 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 | 115 int position; field in class:ViewPager.ItemInfo 124 return lhs.position - rhs.position; 201 // If the pager is at least this close to its final position, complete the scroll 242 * Indicates that the pager is in the process of settling to a final position. 264 * @param position Position index of the first page currently being displayed. 265 * Page position+1 will be visible if positionOffset is nonzero. 266 * @param positionOffset Value from [0, 1) indicating the offset from the page at position. 267 * @param positionOffsetPixels Value in pixels indicating the offset from position. 269 public void onPageScrolled(int position, floa argument 277 onPageSelected(int position) argument 299 onPageScrolled(int position, float positionOffset, int positionOffsetPixels) argument 304 onPageSelected(int position) argument 332 transformPage(View page, float position) argument 834 addNewItem(int position, int index) argument 1219 int position; field in class:ViewPager.SavedState 1351 infoForPosition(int position) argument 1675 onPageScrolled(int position, float offset, int offsetPixels) argument 2864 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/support/v4/jellybean-mr2/android/support/v4/media/ |
H A D | TransportMediatorJellybeanMR2.java | 158 public void refreshState(boolean playing, long position, int transportControls) { argument 161 : RemoteControlClient.PLAYSTATE_STOPPED, position, playing ? 1 : 0);
|
/frameworks/support/v4/jellybean-mr2/android/support/v4/media/session/ |
H A D | MediaSessionCompatApi18.java | 41 public static void setState(Object rccObj, int state, long position, float speed, argument 44 if (state == MediaSessionCompatApi14.STATE_PLAYING && position > 0) { 52 position += diff; 55 ((RemoteControlClient) rccObj).setPlaybackState(state, position, speed);
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
H A D | ActionBar.java | 344 * @param position Position of the item to select. 351 public abstract void setSelectedNavigationItem(int position); argument 354 * Get the position of the selected navigation item in list or tabbed navigation modes. 651 * <code>position</code>. If this is the first tab to be added it will become 655 * @param position The new position of the tab 662 public abstract void addTab(Tab tab, int position); argument 666 * <code>position</code>. 669 * @param position The new position o 677 addTab(Tab tab, int position, boolean setSelected) argument 703 removeTabAt(int position) argument [all...] |
H A D | ActionBarDrawerToggle.java | 489 public void setPosition(float position) { argument 490 if (position == 1f) { 492 } else if (position == 0f) { 495 super.setProgress(position); 514 public void setPosition(float position); argument
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/app/ |
H A D | NavItemSelectedListener.java | 38 public void onItemSelected(AdapterViewCompat<?> parent, View view, int position, long id) { argument 40 mListener.onNavigationItemSelected(position, id);
|
H A D | ToolbarActionBar.java | 213 public void setSelectedNavigationItem(int position) { argument 216 mDecorToolbar.setDropdownSelectedPosition(position); 352 public void addTab(Tab tab, int position) { argument 358 public void addTab(Tab tab, int position, boolean setSelected) { argument 370 public void removeTabAt(int position) { argument
|
H A D | WindowDecorActionBar.java | 411 public void setSelectedNavigationItem(int position) { argument 414 selectTab(mTabs.get(position)); 417 mDecorToolbar.setDropdownSelectedPosition(position); 530 private void configureTab(Tab tab, int position) { argument 538 tabi.setPosition(position); 539 mTabs.add(position, tabi); 542 for (int i = position + 1; i < count; i++) { 553 public void addTab(Tab tab, int position) { argument 554 addTab(tab, position, mTabs.isEmpty()); 568 public void addTab(Tab tab, int position, boolea argument 588 removeTabAt(int position) argument 1172 setPosition(int position) argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
H A D | ExpandedMenuView.java | 88 public void onItemClick(AdapterView parent, View v, int position, long id) { argument 89 invokeItem((MenuItemImpl) getAdapter().getItem(position));
|
H A D | ListMenuPresenter.java | 168 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument 169 mMenu.performItemAction(mAdapter.getItem(position), this, 0); 241 public MenuItemImpl getItem(int position) { argument 243 position += mItemIndexOffset; 244 if (mExpandedIndex >= 0 && position >= mExpandedIndex) { 245 position++; 247 return items.get(position); 250 public long getItemId(int position) { argument 251 // Since a menu item's ID is optional, we'll use the position as an 253 return position; 256 getView(int position, View convertView, ViewGroup parent) argument [all...] |