Searched refs:index (Results 51 - 75 of 638) sorted by relevance

1234567891011>>

/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
H A DMediaSetSource.java65 public Bitmap getImage(int index) { argument
66 return mSource.getImage(index);
70 public Uri getContentUri(int index) { argument
71 return mSource.getContentUri(index);
147 private void ensureCacheRange(int index) { argument
148 if (index >= mCacheStart && index < mCacheEnd) return;
152 mCacheStart = index;
162 public synchronized Uri getContentUri(int index) { argument
163 ensureCacheRange(index);
169 getImage(int index) argument
215 getImage(int index) argument
220 getContentUri(int index) argument
[all...]
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
H A DCharEscaperBuilder.java24 * it. The array will be from 0 to the maximum index given. All non-set indexes will contain null
50 for (int index = 0; index < slen; index++) {
51 char c = s.charAt(index);
53 return escapeSlow(s, index);
67 // The highest index we've seen so far.
78 * Add a new mapping from an index to an object to the escaping.
89 * Add multiple mappings at once for a particular index.
99 * Convert this builder into an array of char[]s where the maximum index i
[all...]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/customizer/
H A DDvorakCustomizer.java59 for (int index = 0; index < moreKeys.length; index++) {
60 additionalMoreKeys[index] = ExpectedAdditionalMoreKey.newInstance(moreKeys[index]);
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/tests/
H A DKeyboardLayoutSetSubtypesCountTests.java41 for (int index = 0; index < subtypeList.size(); index++) {
42 final InputMethodSubtype subtype = subtypeList.get(index);
43 sb.append(index + ": ");
/packages/apps/Calendar/src/com/android/calendar/event/
H A DEventViewUtils.java69 * Finds the index of the given "minutes" in the "values" list.
73 * @return the index of "minutes" in the "values" list
76 int index = values.indexOf(minutes);
77 if (index == -1) {
82 return index;
86 * Finds the index of the given method in the "methods" list. If the method isn't present
95 * @return the index of the method in the "values" list
98 int index = values.indexOf(method);
99 if (index == -1) {
102 index
[all...]
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/
H A DImapList.java66 * Return true if the element at {@code index} exists, is string, and equals to {@code s}. (case
69 public final boolean is(int index, String s) { argument
70 return is(index, s, false);
74 public final boolean is(int index, String s, boolean prefixMatch) { argument
76 return getStringOrEmpty(index).is(s);
78 return getStringOrEmpty(index).startsWith(s);
83 * Return the element at {@code index}. If {@code index} is out of range, returns {@link
86 public final ImapElement getElementOrNone(int index) { argument
87 return (index >
94 getListOrEmpty(int index) argument
103 getStringOrEmpty(int index) argument
[all...]
/packages/apps/Email/provider_src/com/android/email/mail/store/imap/
H A DImapList.java67 * Return true if the element at {@code index} exists, is string, and equals to {@code s}.
70 public final boolean is(int index, String s) { argument
71 return is(index, s, false);
77 public final boolean is(int index, String s, boolean prefixMatch) { argument
79 return getStringOrEmpty(index).is(s);
81 return getStringOrEmpty(index).startsWith(s);
86 * Return the element at {@code index}.
87 * If {@code index} is out of range, returns {@link ImapElement#NONE}.
89 public final ImapElement getElementOrNone(int index) { argument
90 return (index >
97 getListOrEmpty(int index) argument
106 getStringOrEmpty(int index) argument
[all...]
/packages/apps/Messaging/src/com/android/messaging/util/
H A DCircularArray.java93 * Get the object at index. Index 0 is the oldest item inserted into the list. Index (count() -
96 * @param index Index to retrieve.
97 * @return Object at index.
100 public E get(int index) { argument
102 int wrappedIndex = index + mNextWriter;
108 return (E) mList[index];
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/
H A DUtils.java32 SparseArrayEntry(SparseArray<U> array, int index) { argument
33 key = array.keyAt(index);
34 value = array.valueAt(index);
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DPathMatcher.java60 public String getVar(int index) { argument
61 return mVariables.get(index);
64 public int getIntVar(int index) { argument
65 return Integer.parseInt(mVariables.get(index));
68 public long getLongVar(int index) { argument
69 return Long.parseLong(mVariables.get(index));
H A DComboAlbumSet.java43 public MediaSet getSubMediaSet(int index) { argument
46 if (index < size) {
47 return set.getSubMediaSet(index);
49 index -= size;
/packages/apps/UnifiedEmail/src/org/apache/commons/io/
H A DHexDump.java50 * @param index initial index into the byte array
54 * @throws ArrayIndexOutOfBoundsException if the index is
60 OutputStream stream, int index)
64 if ((index < 0) || (index >= data.length)) {
66 "illegal index: " + index + " into array of length "
72 long display_offset = offset + index;
75 for (int j = index;
59 dump(byte[] data, long offset, OutputStream stream, int index) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
H A DCursorAnchorInfoCompatWrapper.java86 public RectF getCharacterBounds(final int index) { argument
91 public int getCharacterBoundsFlags(final int index) { argument
151 public RectF getCharacterBounds(final int index) { argument
152 return mInstance.getCharacterBounds(index);
156 public int getCharacterBoundsFlags(final int index) { argument
157 return mInstance.getCharacterBoundsFlags(index);
H A DLocaleListCompatUtils.java37 public static Locale get(final Object localeList, final int index) { argument
38 return (Locale) CompatUtils.invoke(localeList, null, METHOD_get, index);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DPunctuationSuggestions.java72 public String getWord(final int index) { argument
73 final String keySpec = super.getWord(index);
86 public String getLabel(final int index) { argument
87 final String keySpec = super.getWord(index);
97 public SuggestedWordInfo getInfo(final int index) { argument
98 return newHardCodedWordInfo(getWord(index));
/packages/apps/UnifiedEmail/src/com/android/mail/analytics/
H A DTracker.java33 void setCustomDimension(int index, String value); argument
40 void setCustomMetric(int index, Long value); argument
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
H A DResizableIntArray.java35 public int get(final int index) { argument
36 if (index < mLength) {
37 return mArray[index];
39 throw new ArrayIndexOutOfBoundsException("length=" + mLength + "; index=" + index);
42 public void addAt(final int index, final int val) { argument
43 if (index < mLength) {
44 mArray[index] = val;
46 mLength = index;
/packages/inputmethods/LatinIME/tools/dicttool/compat/android/util/
H A DSparseIntArray.java54 public int keyAt(final int index) { argument
55 return mArray.keyAt(index);
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/
H A DLocaleUtils.java122 for (int index = 0; index < length; index++) {
123 if (!isAsciiAlphabet(text.charAt(index))) {
135 for (int index = 0; index < length; ++index) {
136 if (!isAsciiDigit(text.charAt(index))) {
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
H A DBinaryDictDecoderUtils.java173 * @param fromIndex the index in buffer to write the character array to.
175 * @return the index after the last character.
179 int index = fromIndex;
188 buffer[index++] = (byte)codePoint;
190 buffer[index++] = (byte)(0xFF & (codePoint >> 16));
191 buffer[index++] = (byte)(0xFF & (codePoint >> 8));
192 buffer[index++] = (byte)(0xFF & codePoint);
195 return index;
211 int index = origin;
221 buffer[index
[all...]
/packages/apps/TV/src/com/android/tv/tuner/exoplayer/buffer/
H A DSimpleSampleBuffer.java72 public void selectTrack(int index) { argument
74 if (mPlayingSampleQueues[index] == null) {
75 mPlayingSampleQueues[index] = new SampleQueue(mSamplePool);
77 mPlayingSampleQueues[index].clear();
83 public void deselectTrack(int index) { argument
85 if (mPlayingSampleQueues[index] != null) {
86 mPlayingSampleQueues[index].clear();
87 mPlayingSampleQueues[index] = null;
127 public void writeSample(int index, SampleHolder sample, argument
138 if (mPlayingSampleQueues[index] !
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DSparseLongArray.java98 * Removes the mapping at the given index.
100 public void removeAt(int index) { argument
101 System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1));
102 System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1));
143 * Given an index in the range <code>0...size()-1</code>, returns
144 * the key from the <code>index</cod
147 keyAt(int index) argument
156 valueAt(int index) argument
[all...]
/packages/apps/Contacts/src/com/android/contacts/format/
H A DTextHighlighter.java85 int index = FormatUtils.indexOfWordPrefix(text, trimmedPrefix);
86 if (index != -1) {
88 result.setSpan(mTextStyleSpan, index, index + trimmedPrefix.length(), 0 /* flags */);
/packages/apps/Gallery/src/com/android/camera/gallery/
H A DImageListUber.java42 // "a number" and "an index of sublist".
99 public IImage getImageAt(int index) { argument
100 if (index < 0 || index > getCount()) {
102 "index " + index + " out of range max is " + getCount());
111 // trying to get to index. alternatively we could
112 // have decremented index but, alas, I liked this
123 if (skipCount + offset > index) {
124 int subindex = mSkipCounts[which] + (index
175 modifySkipCountForDeletedImage(int index) argument
188 removeImage(IImage image, int index) argument
201 removeImageAt(int index) argument
277 MergeSlot(IImageList list, int index) argument
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DFocusOnlyTabWidget.java60 int index = -1;
66 index = i;
70 if (index > -1) {
71 super.setCurrentTab(index);

Completed in 787 milliseconds

1234567891011>>