/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/ |
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...] |
/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...] |
/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...] |
/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...] |
/frameworks/wilhelm/src/itf/ |
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/base/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
H A D | CameraBrowser.java | 64 public Object getItem(int position) { argument 65 return mDeviceList.get(position); 68 public long getItemId(int position) { argument 69 return position; 72 public View getView(int position, View convertView, ViewGroup parent) { argument 83 MtpDevice device = mDeviceList.get(position); 117 protected void onListItemClick(ListView l, View v, int position, long id) { argument 119 intent.putExtra("device", mDeviceList.get(position).getDeviceName());
|
H A D | ObjectBrowser.java | 71 public Object getItem(int position) { argument 72 return mObjectList.get(position); 75 public long getItemId(int position) { argument 76 return position; 79 public View getView(int position, View convertView, ViewGroup parent) { argument 88 MtpObjectInfo info = mObjectList.get(position); 133 protected void onListItemClick(ListView l, View v, int position, long id) { argument 134 MtpObjectInfo info = mObjectList.get(position);
|
/frameworks/av/drm/common/ |
H A D | DrmEngineBase.cpp | 87 int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position) { 88 return onSetPlaybackStatus(uniqueId, decryptHandle, playbackStatus, position); 86 setPlaybackStatus( int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position) argument
|
/frameworks/av/drm/libdrmframework/ |
H A D | DrmManagerClient.cpp | 85 sp<DecryptHandle> &decryptHandle, int playbackStatus, int64_t position) { 87 ->setPlaybackStatus(mUniqueId, decryptHandle, playbackStatus, position); 84 setPlaybackStatus( sp<DecryptHandle> &decryptHandle, int playbackStatus, int64_t position) argument
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | MidiFile.cpp | 248 status_t MidiFile::seekTo(int position) argument 250 ALOGV("MidiFile::seekTo %d", position); 258 if ((result = EAS_Locate(mEasData, mEasHandle, position, false)) 292 status_t MidiFile::getCurrentPosition(int* position) argument 303 *position = mPlayTime; 483 // update playback state and position
|
/frameworks/base/core/java/android/database/ |
H A D | Cursor.java | 60 * Returns the current position of the cursor in the row set. 64 * the last entry, at a position of count(). 66 * @return the current cursor position. 72 * current position. Positive offsets move forwards, negative offsets move 73 * backwards. If the final position is outside of the bounds of the result 74 * set then the resultant position will be pinned to -1 or count() depending 80 * the position will be pinned at -1, and false will be returned. 82 * @param offset the offset to be applied from the current position. 88 * Move the cursor to an absolute position. The valid 89 * range of values is -1 <= position 97 moveToPosition(int position) argument [all...] |
H A D | CursorWrapper.java | 161 public boolean moveToPosition(int position) { argument 162 return mCursor.moveToPosition(position);
|
/frameworks/base/core/java/android/preference/ |
H A D | PreferenceGroupAdapter.java | 59 * Maps a position into this adapter -> {@link Preference}. These 200 public Preference getItem(int position) { argument 201 if (position < 0 || position >= getCount()) return null; 202 return mPreferenceList.get(position); 205 public long getItemId(int position) { argument 206 if (position < 0 || position >= getCount()) return ListView.INVALID_ROW_ID; 207 return this.getItem(position).getId(); 210 public View getView(int position, Vie argument 225 isEnabled(int position) argument 252 getItemViewType(int position) argument [all...] |
/frameworks/base/core/java/android/text/ |
H A D | Selection.java | 366 public int preceding(int position); argument 367 public int following(int position); argument
|
/frameworks/base/core/java/android/webkit/ |
H A D | AutoCompletePopup.java | 163 mPopup.show(); // update its position 169 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument 173 if (id == 0 && position == 0 && mInputConnection.getIsAutoFillable()) { 192 if (position < 0) { 195 selectedItem = mAdapter.getItem(position);
|
H A D | HTML5VideoFullScreen.java | 150 HTML5VideoFullScreen(Context context, int videoLayerId, int position, boolean skipPrepare) { argument 155 init(videoLayerId, position, skipPrepare);
|
/frameworks/base/core/java/android/widget/ |
H A D | AbsSpinner.java | 96 * It also provides methods to transform spinner items based on their position 120 int position = mItemCount > 0 ? 0 : INVALID_POSITION; 122 setSelectedPositionInt(position); 123 setNextSelectedPositionInt(position); 257 final int position = mFirstPosition; 262 int index = position + i; 270 public void setSelection(int position, boolean animate) { argument 271 // Animate only if requested position is already on screen somewhere 272 boolean shouldAnimate = animate && mFirstPosition <= position && 273 position < 278 setSelection(int position) argument 292 setSelectionInt(int position, boolean animate) argument 366 int position; field in class:AbsSpinner.SavedState 443 put(int position, View v) argument 447 get(int position) argument [all...] |
H A D | ArrayAdapter.java | 336 public T getItem(int position) { argument 337 return mObjects.get(position); 341 * Returns the position of the specified item in the array. 343 * @param item The item to retrieve the position of. 345 * @return The position of the specified item. 354 public long getItemId(int position) { argument 355 return position; 361 public View getView(int position, View convertView, ViewGroup parent) { argument 362 return createViewFromResource(position, convertView, parent, mResource); 365 private View createViewFromResource(int position, Vie argument 414 getDropDownView(int position, View convertView, ViewGroup parent) argument [all...] |
H A D | CursorAdapter.java | 205 public Object getItem(int position) { argument 207 mCursor.moveToPosition(position); 217 public long getItemId(int position) { argument 219 if (mCursor.moveToPosition(position)) { 237 public View getView(int position, View convertView, ViewGroup parent) { argument 241 if (!mCursor.moveToPosition(position)) { 242 throw new IllegalStateException("couldn't move cursor to position " + position); 255 public View getDropDownView(int position, View convertView, ViewGroup parent) { argument 257 mCursor.moveToPosition(position); [all...] |
H A D | SimpleAdapter.java | 99 public Object getItem(int position) { argument 100 return mData.get(position); 106 public long getItemId(int position) { argument 107 return position; 113 public View getView(int position, View convertView, ViewGroup parent) { argument 114 return createViewFromResource(position, convertView, parent, mResource); 117 private View createViewFromResource(int position, View convertView, argument 126 bindView(position, v); 142 public View getDropDownView(int position, View convertView, ViewGroup parent) { argument 143 return createViewFromResource(position, convertVie 146 bindView(int position, View view) argument [all...] |
/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | ListMenuPresenter.java | 165 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument 166 mMenu.performItemAction(mAdapter.getItem(position), 0); 238 public MenuItemImpl getItem(int position) { argument 240 position += mItemIndexOffset; 241 if (mExpandedIndex >= 0 && position >= mExpandedIndex) { 242 position++; 244 return items.get(position); 247 public long getItemId(int position) { argument 248 // Since a menu item's ID is optional, we'll use the position as an 250 return position; 253 getView(int position, View convertView, ViewGroup parent) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_opengl_GLES10Ext.cpp | 58 positionID = _env->GetFieldID(bufferClass, "position", "I"); 68 jint position; local 73 position = _env->GetIntField(buffer, positionID); 76 *remaining = (limit - position) << elementSizeShift;
|
/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | GridScenario.java | 112 * Set the position that starts selected. 114 * @param startingSelectionPosition The selected position within the adapter's data set. 135 * @param position The position in the grid. 139 int position, double itemScreenSizeFactor) { 140 mOverrideItemScreenSizeFactors.put(position, itemScreenSizeFactor); 266 public void onItemSelected(AdapterView parent, View v, int position, long id) { 267 positionSelected(position); 315 public final String getValueAtPosition(int position) { argument 316 return "postion " + position; 138 setPositionScreenSizeFactorOverride( int position, double itemScreenSizeFactor) argument 328 createView(int position, ViewGroup parent, int desiredHeight) argument 348 getItem(int position) argument 352 getItemId(int position) argument 356 getView(int position, View convertView, ViewGroup parent) argument [all...] |
/frameworks/base/services/common_time/ |
H A D | clock_recovery.cpp | 107 void ClockRecoveryLoop::reset(bool position, bool frequency) { argument 109 reset_l(position, frequency); 306 void ClockRecoveryLoop::reset_l(bool position, bool frequency) { 309 if (position) {
|