Searched defs:index (Results 176 - 200 of 474) sorted by relevance

1234567891011>>

/frameworks/support/v13/java/android/support/v13/app/
H A DFragmentPagerAdapter.java161 private static String makeFragmentName(int viewId, int index) { argument
162 return "android:switcher:" + viewId + ":" + index;
/frameworks/support/v4/java/android/support/v4/app/
H A DFragmentPagerAdapter.java157 private static String makeFragmentName(int viewId, int index) { argument
158 return "android:switcher:" + viewId + ":" + index;
H A DHCSparseArray.java91 * Removes the mapping at the specified index.
93 public void removeAt(int index) { argument
94 if (mValues[index] != DELETED) {
95 mValues[index] = DELETED;
192 * Given an index in the range <code>0...size()-1</code>, returns
193 * the key from the <code>index</code>th key-value mapping that this
196 public int keyAt(int index) { argument
201 return mKeys[index];
205 * Given an index in the range <code>0...size()-1</code>, returns
206 * the value from the <code>index</cod
209 valueAt(int index) argument
222 setValueAt(int index, E value) argument
[all...]
H A DTaskStackBuilder.java185 * Get the intent at the specified index.
189 * @param index Index from 0-getIntentCount()
190 * @return the intent at position index
192 public Intent getIntent(int index) { argument
193 return mIntents.get(index);
/frameworks/base/cmds/stagefright/
H A Dstream.cpp49 virtual void onBufferAvailable(size_t index);
88 void MyStreamSource::onBufferAvailable(size_t index) { argument
89 CHECK_LT(index, mBuffers.size());
110 sp<IMemory> mem = mBuffers.itemAt(index);
116 mListener->queueBuffer(index, n);
129 virtual void onBufferAvailable(size_t index);
243 void MyConvertingStreamSource::onBufferAvailable(size_t index) { argument
246 mBufferQueue.push_back(index);
/frameworks/base/core/java/android/app/
H A DFragmentBreadCrumbs.java221 * Returns the pre-entry corresponding to the index. If there is a parent and a top entry
222 * set, parent has an index of zero and top entry has an index of 1. Returns null if the
223 * specified index doesn't exist or is null.
224 * @param index should not be more than {@link #getPreEntryCount()} - 1
226 private BackStackEntry getPreEntry(int index) { argument
229 return index == 0 ? mParentEntry : mTopEntry;
/frameworks/base/core/java/android/content/
H A DClipData.java470 * Return a single item inside of the clip data. The index can range
473 public Item getItemAt(int index) { argument
474 return mItems.get(index);
/frameworks/base/core/java/android/content/res/
H A DTypedArray.java62 * Return an index in the array that has data.
64 * @param at The index you would like to returned, ranging from 0 to
67 * @return The index at the given offset, which can be used with
82 * Retrieve the styled string value for the attribute at <var>index</var>.
84 * @param index Index of attribute to retrieve.
89 public CharSequence getText(int index) { argument
90 index *= AssetManager.STYLE_NUM_ENTRIES;
92 final int type = data[index+AssetManager.STYLE_TYPE];
96 return loadStringValueAt(index);
100 if (getValueAt(index,
117 getString(int index) argument
152 getNonResourceString(int index) argument
178 getNonConfigurationString(int index, int allowedChangingConfigs) argument
210 getBoolean(int index, boolean defValue) argument
240 getInt(int index, int defValue) argument
269 getFloat(int index, float defValue) argument
307 getColor(int index, int defValue) argument
339 getColorStateList(int index) argument
356 getInteger(int index, int defValue) argument
387 getDimension(int index, float defValue) argument
419 getDimensionPixelOffset(int index, int defValue) argument
452 getDimensionPixelSize(int index, int defValue) argument
479 getLayoutDimension(int index, String name) argument
508 getLayoutDimension(int index, int defValue) argument
538 getFraction(int index, int base, int pbase, float defValue) argument
567 getResourceId(int index, int defValue) argument
589 getDrawable(int index) argument
616 getTextArray(int index) argument
642 getValue(int index, TypedValue outValue) argument
653 hasValue(int index) argument
671 peekValue(int index) argument
699 getValueAt(int index, TypedValue outValue) argument
715 loadStringValueAt(int index) argument
[all...]
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteProgram.java225 private void bind(int type, int index, Object value) { argument
227 addToBindArgs(index, (type == Cursor.FIELD_TYPE_NULL) ? null : value);
234 native_bind_null(index);
237 native_bind_blob(index, (byte[]) value);
240 native_bind_double(index, (Double) value);
243 native_bind_long(index, (Long) value);
247 native_bind_string(index, (String) value);
260 * @param index The 1-based index to the parameter to bind null to
262 public void bindNull(int index) { argument
273 bindLong(int index, long value) argument
284 bindDouble(int index, double value) argument
295 bindString(int index, String value) argument
309 bindBlob(int index, byte[] value) argument
344 addToBindArgs(int index, Object value) argument
425 native_bind_null(int index) argument
426 native_bind_long(int index, long value) argument
427 native_bind_double(int index, double value) argument
428 native_bind_string(int index, String value) argument
429 native_bind_blob(int index, byte[] value) argument
[all...]
/frameworks/base/core/java/android/hardware/usb/
H A DUsbDevice.java41 * <a href="{@docRoot}guide/topics/usb/index.html">USB</a> developer guide.</p>
150 * Returns the {@link UsbInterface} at the given index.
154 public UsbInterface getInterface(int index) { argument
155 return (UsbInterface)mInterfaces[index];
H A DUsbDeviceConnection.java115 * @param index index field for this transaction
124 int index, byte[] buffer, int length, int timeout) {
125 return native_control_request(requestType, request, value, index, buffer, length, timeout);
178 int index, byte[] buffer, int length, int timeout);
123 controlTransfer(int requestType, int request, int value, int index, byte[] buffer, int length, int timeout) argument
177 native_control_request(int requestType, int request, int value, int index, byte[] buffer, int length, int timeout) argument
/frameworks/base/core/java/android/preference/
H A DListPreference.java71 * Each entry must have a corresponding index in
176 * Sets the value to the given index from the entry values.
178 * @param index The index of the value to set.
180 public void setValueIndex(int index) { argument
182 setValue(mEntryValues[index].toString());
202 int index = getValueIndex();
203 return index >= 0 && mEntries != null ? mEntries[index] : null;
207 * Returns the index o
272 onGetDefaultValue(TypedArray a, int index) argument
[all...]
H A DMultiSelectListPreference.java66 * Each entry must have a corresponding index in
141 * Returns the index of the given value (in the entry values array).
143 * @param value The value whose index should be returned.
144 * @return The index of the value, or -1 if not found.
209 protected Object onGetDefaultValue(TypedArray a, int index) { argument
210 final CharSequence[] defaultValues = a.getTextArray(index);
H A DSeekBarPreference.java80 protected Object onGetDefaultValue(TypedArray a, int index) { argument
81 return a.getInt(index, 0);
H A DTwoStatePreference.java178 protected Object onGetDefaultValue(TypedArray a, int index) { argument
179 return a.getBoolean(index, false);
/frameworks/base/core/java/android/text/
H A DSelection.java84 * Move the cursor to offset <code>index</code>.
86 public static final void setSelection(Spannable text, int index) { argument
87 setSelection(text, index, index);
98 * Move the selection edge to offset <code>index</code>.
100 public static final void extendSelection(Spannable text, int index) { argument
101 if (text.getSpanStart(SELECTION_END) != index)
102 text.setSpan(SELECTION_END, index, index, Spanned.SPAN_POINT_POINT);
/frameworks/base/core/java/android/view/
H A DMenu.java388 * Gets the menu item at the given index.
390 * @param index The index of the menu item to return.
393 * when {@code index < 0 || >= size()}
395 public MenuItem getItem(int index); argument
/frameworks/base/core/java/android/view/accessibility/
H A DAccessibilityEvent.java85 * <li>{@link #getFromIndex()} - The zero based index of the first visible item of the source,
87 * <li>{@link #getToIndex()} - The zero based index of the last visible item of the source,
113 * <li>{@link #getFromIndex()} - The zero based index of the first visible item of the source,
115 * <li>{@link #getToIndex()} - The zero based index of the last visible item of the source,
137 * <li>{@link #getCurrentItemIndex()} - The currently selected item index.</li>
143 * <li>{@link #getFromIndex()} - The zero based index of the first visible item of the source,
145 * <li>{@link #getToIndex()} - The zero based index of the last visible item of the source,
167 * <li>{@link #getCurrentItemIndex()} - The currently focused item index.</li>
173 * <li>{@link #getFromIndex()} - The zero based index of the first visible item of the source,
175 * <li>{@link #getToIndex()} - The zero based index o
636 getRecord(int index) argument
[all...]
/frameworks/base/core/java/android/view/inputmethod/
H A DInputMethodInfo.java319 * Return the Input Method's subtype at the specified index.
321 * @param index the index of the subtype to return.
323 public InputMethodSubtype getSubtypeAt(int index) { argument
324 return mSubtypes.get(index);
/frameworks/base/core/java/android/widget/
H A DArrayAdapter.java218 * Inserts the specified object at the specified index in the array.
221 * @param index The index at which the object must be inserted.
223 public void insert(T object, int index) { argument
226 mOriginalValues.add(index, object);
228 mObjects.add(index, object);
489 // Start at index 0, in case valueText starts with space(s)
H A DRadioGroup.java87 final int index = attributes.getInt(com.android.internal.R.styleable.RadioGroup_orientation, VERTICAL);
88 setOrientation(index);
126 public void addView(View child, int index, ViewGroup.LayoutParams params) { argument
139 super.addView(child, index, params);
H A DViewAnimator.java97 * @param whichChild the index of the child view to display
117 * Returns the index of the currently displayed child view.
145 * @param childIndex The index of the child to be shown.
173 * @param childIndex The index of the child to be shown.
181 public void addView(View child, int index, ViewGroup.LayoutParams params) { argument
182 super.addView(child, index, params);
199 final int index = indexOfChild(view);
200 if (index >= 0) {
201 removeViewAt(index);
206 public void removeViewAt(int index) { argument
[all...]
/frameworks/base/core/java/com/android/internal/view/menu/
H A DActionMenu.java144 public MenuItem getItem(int index) { argument
145 return mItems.get(index);
183 final int index = findItemIndex(id);
184 if (index < 0) {
188 return mItems.get(index).invoke();
/frameworks/base/core/jni/android/graphics/
H A DYuvToJpegEncoder.cpp120 int index = row * (width >> 1) + i; local
121 uRows[index] = vu[1];
122 vRows[index] = vu[0];
/frameworks/base/core/jni/
H A Dandroid_media_AudioSystem.cpp186 android_media_AudioSystem_setStreamVolumeIndex(JNIEnv *env, jobject thiz, jint stream, jint index) argument
188 return check_AudioSystem_Command(AudioSystem::setStreamVolumeIndex(static_cast <audio_stream_type_t>(stream), index));
194 int index; local
195 if (AudioSystem::getStreamVolumeIndex(static_cast <audio_stream_type_t>(stream), &index) != NO_ERROR) {
196 index = -1;
198 return index;

Completed in 315 milliseconds

1234567891011>>