Searched defs:index (Results 201 - 225 of 795) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/hardware/usb/
H A DUsbInterface.java32 * <a href="{@docRoot}guide/topics/usb/index.html">USB</a> developer guide.</p>
130 * Returns the {@link android.hardware.usb.UsbEndpoint} at the given index.
134 public UsbEndpoint getEndpoint(int index) { argument
135 return (UsbEndpoint)mEndpoints[index];
/frameworks/base/core/java/android/net/nsd/
H A DDnsSdTxtRecord.java117 /** Remove a key/value pair. If found, returns the index or -1 if not found */
168 private void insert(byte[] keyBytes, byte[] value, int index) { argument
174 for (int i = 0; i < index && insertion < mData.length; i++) {
193 /** Return a key in the TXT record by zero-based index. Returns null if index exceeds the total number of keys. */
194 private String getKey(int index) { argument
197 for (int i=0; i < index && avStart < mData.length; i++) {
214 * Look up a key in the TXT record by zero-based index and return its value.
215 * Returns null if index exceeds the total number of keys.
218 private byte[] getValue(int index) { argument
241 getValueAsString(int index) argument
[all...]
/frameworks/base/core/java/android/preference/
H A DEditTextPreference.java154 protected Object onGetDefaultValue(TypedArray a, int index) { argument
155 return a.getString(index);
H A DPreferenceGroup.java117 * Returns the {@link Preference} at a particular index.
119 * @param index The index of the {@link Preference} to retrieve.
122 public Preference getPreference(int index) { argument
123 return mPreferenceList.get(index);
H A DRingtonePreference.java204 protected Object onGetDefaultValue(TypedArray a, int index) { argument
205 return a.getString(index);
/frameworks/base/core/java/android/util/
H A DLongSparseArray.java48 * <code>keyAt(int)</code> with ascending values of the index will return the
144 * Removes the mapping at the specified index.
146 public void removeAt(int index) { argument
147 if (mValues[index] != DELETED) {
148 mValues[index] = DELETED;
226 * Given an index in the range <code>0...size()-1</code>, returns
227 * the key from the <code>index</code>th key-value mapping that this
235 public long keyAt(int index) { argument
240 return mKeys[index];
244 * Given an index i
255 valueAt(int index) argument
268 setValueAt(int index, E value) argument
[all...]
H A DSparseArray.java48 * <code>keyAt(int)</code> with ascending values of the index will return the
162 * Removes the mapping at the specified index.
167 public void removeAt(int index) { argument
168 if (mValues[index] != DELETED) {
169 mValues[index] = DELETED;
177 * @param index Index to begin at
183 public void removeAtRange(int index, int size) { argument
184 final int end = Math.min(mSize, index + size);
185 for (int i = index; i < end; i++) {
263 * Given an index i
275 keyAt(int index) argument
298 valueAt(int index) argument
313 setValueAt(int index, E value) argument
[all...]
H A DSparseBooleanArray.java42 * <code>keyAt(int)</code> with ascending values of the index will return the
121 public void removeAt(int index) { argument
122 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1));
123 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1));
155 * Given an index in the range <code>0...size()-1</code>, returns
156 * the key from the <code>index</cod
164 keyAt(int index) argument
179 valueAt(int index) argument
184 setValueAt(int index, boolean value) argument
189 setKeyAt(int index, int key) argument
[all...]
/frameworks/base/core/java/android/view/
H A DAccessibilityIterators.java236 private boolean isStartBoundary(int index) { argument
237 return isLetterOrDigit(index)
238 && (index == 0 || !isLetterOrDigit(index - 1));
241 private boolean isEndBoundary(int index) { argument
242 return (index > 0 && isLetterOrDigit(index - 1))
243 && (index == mText.length() || !isLetterOrDigit(index));
246 private boolean isLetterOrDigit(int index) { argument
318 isStartBoundary(int index) argument
323 isEndBoundary(int index) argument
[all...]
/frameworks/base/core/java/android/view/animation/
H A DLayoutAnimationController.java35 * characteristics of each child, like its index in the view group.
38 * amount of miliseconds by the index of the child in its parent view group.
276 * child animation delay = child index * delay * animation duration
355 * child animation delay = child index * delay
358 * The index is retrieved from the
393 * Transforms the index stored in
400 * @param params the animation parameters containing the index
401 * @return a transformed index
406 return params.count - 1 - params.index;
414 return params.index;
435 public int index; field in class:LayoutAnimationController.AnimationParameters
[all...]
/frameworks/base/core/java/android/view/inputmethod/
H A DSparseRectFArray.java200 * @throws IllegalArgumentException If the index is not greater than all of existing keys.
260 public RectF get(final int index) { argument
264 if (index < 0) {
267 final int arrayIndex = Arrays.binarySearch(mKeys, index);
278 public int getFlags(final int index, final int valueIfKeyNotFound) { argument
282 if (index < 0) {
285 final int arrayIndex = Arrays.binarySearch(mKeys, index);
/frameworks/base/core/java/android/view/textservice/
H A DSpellCheckerInfo.java257 * Return the subtype at the specified index.
259 * @param index the index of the subtype to return.
261 public SpellCheckerSubtype getSubtypeAt(int index) { argument
262 return mSubtypes.get(index);
/frameworks/base/core/java/com/android/internal/inputmethod/
H A DLocaleUtils.java121 ScoreEntry(@NonNull byte[] score, int index) { argument
123 set(score, index);
126 private void set(@NonNull byte[] score, int index) { argument
130 mIndex = index;
134 * Update score and index if the given score is better than this.
136 public void updateIfBetter(@NonNull byte[] score, int index) { argument
138 set(score, index);
/frameworks/base/core/java/com/android/internal/preference/
H A DYesNoPreference.java84 protected Object onGetDefaultValue(TypedArray a, int index) { argument
85 return a.getBoolean(index, false);
/frameworks/base/core/java/com/android/internal/util/
H A DCallbackRegistry.java50 * The lowest significant bit corresponds to the 0th index into mCallbacks.
168 * @param remainderIndex The index into mRemainderRemoved that should be notified.
194 * @param startIndex The index into the mCallbacks to start notifying.
195 * @param endIndex One past the last index into mCallbacks to notify.
216 int index = mCallbacks.lastIndexOf(callback);
217 if (index < 0 || isRemovedLocked(index)) {
223 * Returns true if the callback at index has been marked for removal.
225 * @param index The index int
228 isRemovedLocked(int index) argument
285 setRemovalBitLocked(int index) argument
[all...]
/frameworks/base/core/jni/android/opengl/
H A Dpoly_clip.cpp49 * copying the portion satisfying sign*s[index] < k*sw into q,
51 * index is an index into the array of floats at each vertex, such that
52 * s[index] is sx, sy, or sz (screen space x, y, or z).
59 void poly_clip_to_halfspace(Poly* p, Poly* q, int index, float sign, float k) argument
71 tu = sign*COORD(u, index) - u->sw*k;
75 tv = sign*COORD(v, index) - v->sw*k;
/frameworks/base/core/tests/coretests/src/android/net/
H A DNetworkStatsTest.java516 int index = stats.findIndex(iface, uid, set, tag, roaming);
517 assertTrue(index != -1);
518 assertValues(stats, index, iface, uid, set, tag, roaming,
522 private static void assertValues(NetworkStats stats, int index, String iface, int uid, int set, argument
525 final NetworkStats.Entry entry = stats.getValues(index, null);
/frameworks/base/core/tests/coretests/src/android/util/
H A DScrollViewScenario.java219 * @param index The index within the linear layout.
221 * at the specified index.
224 public <T extends View> T getContentChildAt(int index) { argument
225 return (T) mLinearLayout.getChildAt(index);
/frameworks/base/graphics/java/android/graphics/
H A DInterpolator.java64 * Assign the keyFrame (specified by index) a time value and an array of key
68 * @param index The index of the key frame to assign
73 public void setKeyFrame(int index, int msec, float[] values) { argument
74 setKeyFrame(index, msec, values, null);
78 * Assign the keyFrame (specified by index) a time value and an array of key
81 * @param index The index of the key frame to assign
87 public void setKeyFrame(int index, int msec, float[] values, float[] blend) { argument
88 if (index <
160 nativeSetKeyFrame(long native_instance, int index, int msec, float[] values, float[] blend) argument
[all...]
/frameworks/base/libs/hwui/
H A DProgram.cpp110 ssize_t index = mAttributes.indexOfKey(name); local
111 if (index >= 0) {
112 return mAttributes.valueAt(index);
124 ssize_t index = mUniforms.indexOfKey(name); local
125 if (index >= 0) {
126 return mUniforms.valueAt(index);
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/
H A Daccessorychat.c77 static void send_string(struct usb_device *device, int index, const char* string) { argument
79 ACCESSORY_SEND_STRING, 0, index, (void *)string, strlen(string) + 1, 0);
/frameworks/base/libs/usb/tests/accessorytest/
H A Daudio.c56 int index, other; local
63 index = empty_index;
64 other = (index == 0 ? 1 : 0);
65 buffer_states[index] = BUFFER_BUSY;
72 return index;
75 static void put_empty(int index) argument
79 buffer_states[index] = BUFFER_EMPTY;
81 empty_index = index;
90 int index, other; local
97 index
109 put_full(int index) argument
149 int index = get_empty(); local
168 int index, err; local
[all...]
H A Dusb.c78 static void send_string(struct usb_device *device, int index, const char* string) { argument
80 ACCESSORY_SEND_STRING, 0, index, (void *)string, strlen(string) + 1, 0);
/frameworks/base/media/java/android/media/
H A DAudioPort.java138 * Get the list of supported channel index mask configurations
140 * Empty array if channel index mask is not relevant for this audio port
164 * Get the gain descriptor at a given index
166 AudioGain gain(int index) { argument
167 if (index < 0 || index >= mGains.length) {
170 return mGains[index];
H A DMediaCodecList.java51 * the given {@code index} in the regular list.
57 public static final MediaCodecInfo getCodecInfoAt(int index) { argument
59 if (index < 0 || index > sRegularCodecInfos.length) {
62 return sRegularCodecInfos[index];
85 for (int index = 0; index < count; index++) {
87 MediaCodecInfo info = getNewCodecInfoAt(index);
105 private static MediaCodecInfo getNewCodecInfoAt(int index) { argument
117 getCodecName(int index) argument
119 isEncoder(int index) argument
121 getSupportedTypes(int index) argument
124 getCodecCapabilities(int index, String type) argument
[all...]

Completed in 6228 milliseconds

1234567891011>>