Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 500) sorted by relevance

12345678910>>...20

/packages/apps/Calendar/tests/src/com/android/calendar/
DAsyncQueryServiceTest.java108 int index = 0; in testQuery() local
110 work[index] = new OperationInfo(); in testQuery()
111 work[index].op = Operation.EVENT_ARG_QUERY; in testQuery()
113 work[index].token = ++mId; in testQuery()
114 work[index].cookie = ++mId; in testQuery()
115 work[index].uri = Uri.parse(AUTHORITY_URI + "blah"); in testQuery()
116 work[index].projection = TEST_PROJECTION; in testQuery()
117 work[index].selection = TEST_SELECTION; in testQuery()
118 work[index].selectionArgs = TEST_SELECTION_ARGS; in testQuery()
119 work[index].orderBy = "order"; in testQuery()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
DMoreSuggestions.java66 int index = fromIndex; in layout() local
69 while (index < size) { in layout()
71 if (isIndexSubjectToAutoCorrection(suggestedWords, index)) { in layout()
75 word = suggestedWords.getLabel(index); in layout()
78 mWidths[index] = (int)(TypefaceUtils.getStringWidth(word, paint) + padding); in layout()
79 final int numColumn = index - rowStartIndex + 1; in layout()
83 || !fitInWidth(rowStartIndex, index + 1, columnWidth)) { in layout()
87 mNumColumnsInRow[row] = index - rowStartIndex; in layout()
88 rowStartIndex = index; in layout()
91 mColumnOrders[index] = index - rowStartIndex; in layout()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyStylesSet.java54 public String[] getStringArray(final TypedArray a, final int index) { in getStringArray() argument
55 return parseStringArray(a, index); in getStringArray()
59 public String getString(final TypedArray a, final int index) { in getString() argument
60 return parseString(a, index); in getString()
64 public int getInt(final TypedArray a, final int index, final int defaultValue) { in getInt() argument
65 return a.getInt(index, defaultValue); in getInt()
69 public int getFlags(final TypedArray a, final int index) { in getFlags() argument
70 return a.getInt(index, 0); in getFlags()
87 public String[] getStringArray(final TypedArray a, final int index) { in getStringArray() argument
88 if (a.hasValue(index)) { in getStringArray()
[all …]
DPointerTrackerQueue.java71 for (int index = 0; index < arraySize; index++) { in remove()
72 final Element element = expandableArray.get(index); in remove()
74 if (newIndex != index) { in remove()
79 if (newIndex != index) { in remove()
102 int newIndex, index; in releaseAllPointersOlderThan() local
103 for (newIndex = index = 0; index < arraySize; index++) { in releaseAllPointersOlderThan()
104 final Element element = expandableArray.get(index); in releaseAllPointersOlderThan()
112 if (newIndex != index) { in releaseAllPointersOlderThan()
120 for (; index < arraySize; index++) { in releaseAllPointersOlderThan()
121 final Element element = expandableArray.get(index); in releaseAllPointersOlderThan()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DPhotoDataAdapter.java159 public void onPhotoChanged(int index, Path item); in onPhotoChanged() argument
221 private MediaItem getItemInternal(int index) { in getItemInternal() argument
222 if (index < 0 || index >= mSize) return null; in getItemInternal()
223 if (index >= mContentStart && index < mContentEnd) { in getItemInternal()
224 return mData[index % DATA_CACHE_SIZE]; in getItemInternal()
229 private long getVersion(int index) { in getVersion() argument
230 MediaItem item = getItemInternal(index); in getVersion()
235 private Path getPath(int index) { in getPath() argument
236 MediaItem item = getItemInternal(index); in getPath()
385 private MediaItem getItem(int index) { in getItem() argument
[all …]
DAlbumSetDataLoader.java49 public void onContentChanged(int index); in onContentChanged() argument
117 private void assertIsActive(int index) { in assertIsActive() argument
118 if (index < mActiveStart || index >= mActiveEnd) { in assertIsActive()
120 "%s not in (%s, %s)", index, mActiveStart, mActiveEnd)); in assertIsActive()
124 public MediaSet getMediaSet(int index) { in getMediaSet() argument
125 assertIsActive(index); in getMediaSet()
126 return mData[index % mData.length]; in getMediaSet()
129 public MediaItem getCoverItem(int index) { in getCoverItem() argument
130 assertIsActive(index); in getCoverItem()
131 return mCoverItem[index % mCoverItem.length]; in getCoverItem()
[all …]
DSlideshowPage.java70 public int index; field in SlideshowPage.Slide
72 public Slide(MediaItem item, int index, Bitmap bitmap) { in Slide() argument
75 this.index = index; in Slide()
168 .putExtra(KEY_PHOTO_INDEX, slide.index)); in showPendingBitmap()
210 int index = data.getInt(KEY_PHOTO_INDEX); in initializeData() local
215 index, path); in initializeData()
216 setStateResult(Activity.RESULT_OK, mResultIntent.putExtra(KEY_PHOTO_INDEX, index)); in initializeData()
226 private static MediaItem findMediaItem(MediaSet mediaSet, int index) { in findMediaItem() argument
230 if (index < count) { in findMediaItem()
231 return findMediaItem(subset, index); in findMediaItem()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DScrollAdapterView.java278 saveViewUnchecked(v.expandedView, v.index); in saveVisibleViewsUnchecked()
317 int index; field in ScrollAdapterView.ScrollInfo
326 return index >= 0; in isValid()
329 index = -1; in clear()
333 index = other.index; in copyFrom()
376 index = i; in ExpandedView()
380 int index; // "Adapter index" of the expandable view field in ScrollAdapterView.ExpandedView
657 public void setSelectionSmooth(int index) {
658 setSelectionSmooth(index, 0);
662 public void setSelectionSmooth(int index, int duration) {
[all …]
DScrollAdapterEditScrollListener.java76 public void startEditMode(int index) { in startEditMode() argument
80 mCurrentIndex = index; in startEditMode()
81 mEditStartIndex = index; in startEditMode()
83 View selectedView = mScrollAdapterView.getItemView(index); in startEditMode()
137 for (int index = mEditStartIndex; index < mCurrentIndex + 1; ++index) { in onScrolled()
138 curView = mScrollAdapterView.getItemView(index); in onScrolled()
152 for (int index = mCurrentIndex + 2; index < size; ++index) { in onScrolled()
153 curView = mScrollAdapterView.getItemView(index); in onScrolled()
164 for (int index = 0; index < mEditStartIndex; ++index) { in onScrolled()
165 curView = mScrollAdapterView.getItemView(index); in onScrolled()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_state.h64 inline int getPrimaryCodePointAt(const int index) const { in getPrimaryCodePointAt() argument
65 return getProximityCodePointsAt(index)[0]; in getPrimaryCodePointAt()
68 int getPrimaryOriginalCodePointAt(const int index) const;
85 AK_FORCE_INLINE bool existsCodePointInProximityAt(const int index, const int c) const { in existsCodePointInProximityAt() argument
86 const int *codePoints = getProximityCodePointsAt(index); in existsCodePointInProximityAt()
96 AK_FORCE_INLINE bool existsAdjacentProximityChars(const int index) const { in existsAdjacentProximityChars() argument
97 if (index < 0 || index >= mSampledInputSize) return false; in existsAdjacentProximityChars()
98 const int currentCodePoint = getPrimaryCodePointAt(index); in existsAdjacentProximityChars()
99 const int leftIndex = index - 1; in existsAdjacentProximityChars()
103 const int rightIndex = index + 1; in existsAdjacentProximityChars()
[all …]
Dproximity_info_state.cpp35 int ProximityInfoState::getPrimaryOriginalCodePointAt(const int index) const { in getPrimaryOriginalCodePointAt()
36 const int primaryCodePoint = getPrimaryCodePointAt(index); in getPrimaryOriginalCodePointAt()
173 const int index = inputIndex * mProximityInfo->getKeyCount() + keyId; in getPointToKeyLength() local
174 return std::min(mSampledNormalizedSquaredLengthCache[index], mMaxPointToKeyLength); in getPointToKeyLength()
200 ProximityType ProximityInfoState::getProximityType(const int index, const int codePoint, in getProximityType() argument
202 const int *currentCodePoints = getProximityCodePointsAt(index); in getProximityType()
254 ProximityType ProximityInfoState::getProximityTypeG(const int index, const int codePoint) const { in getProximityTypeG() argument
259 if (index < 0 || index >= sampledSearchKeyVectorsSize) { in getProximityTypeG()
261 "mSampledSearchKeyVectors.size() = %d, codePoint = %x.", index, in getProximityTypeG()
268 for (int i = 0; i < static_cast<int>(mSampledSearchKeyVectors[index].size()); ++i) { in getProximityTypeG()
[all …]
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
DUnicodeEscaper.java109 int index = start; in nextEscapeIndex() local
110 while (index < end) { in nextEscapeIndex()
111 int cp = codePointAt(csq, index, end); in nextEscapeIndex()
115 index += Character.isSupplementaryCodePoint(cp) ? 2 : 1; in nextEscapeIndex()
117 return index; in nextEscapeIndex()
147 int index = nextEscapeIndex(string, 0, end); in escape() local
148 return index == end ? string : escapeSlow(string, index); in escape()
168 protected final String escapeSlow(String s, int index) { in escapeSlow() argument
176 while (index < end) { in escapeSlow()
177 int cp = codePointAt(s, index, end); in escapeSlow()
[all …]
DPreconditions.java268 public static int checkElementIndex(int index, int size) { in checkElementIndex() argument
269 return checkElementIndex(index, size, "index"); in checkElementIndex()
286 public static int checkElementIndex(int index, int size, String desc) { in checkElementIndex() argument
288 if (index < 0 || index >= size) { in checkElementIndex()
289 throw new IndexOutOfBoundsException(badElementIndex(index, size, desc)); in checkElementIndex()
291 return index; in checkElementIndex()
294 private static String badElementIndex(int index, int size, String desc) { in badElementIndex() argument
295 if (index < 0) { in badElementIndex()
296 return format("%s (%s) must not be negative", desc, index); in badElementIndex()
300 return format("%s (%s) must be less than size (%s)", desc, index, size); in badElementIndex()
[all …]
DCharEscaper.java54 for (int index = 0; index < length; index++) { in escape()
55 if (escape(string.charAt(index)) != null) { in escape()
56 return escapeSlow(string, index); in escape()
120 protected String escapeSlow(String s, int index) {
131 for (; index < slen; index++) {
134 char[] r = escape(s.charAt(index));
140 int charsSkipped = index - lastEscape;
146 destSize = sizeNeeded + (slen - index) + DEST_PAD;
152 s.getChars(lastEscape, index, dest, destIndex);
161 lastEscape = index + 1;
[all …]
/packages/apps/Camera2/src/com/android/camera/
DButtonManager.java181 int index = 0; in onSettingChanged() local
184 index = mSettingsManager.getIndexOfCurrentValue(mAppController.getCameraScope(), in onSettingChanged()
188 index = mSettingsManager.getIndexOfCurrentValue(mAppController.getCameraScope(), in onSettingChanged()
192 index = mSettingsManager.getIndexOfCurrentValue(mAppController.getModuleScope(), in onSettingChanged()
196 index = mSettingsManager.getIndexOfCurrentValue(mAppController.getModuleScope(), in onSettingChanged()
200 index = mSettingsManager.getIndexOfCurrentValue(SettingsManager.SCOPE_GLOBAL, in onSettingChanged()
204 index = mSettingsManager.getIndexOfCurrentValue(SettingsManager.SCOPE_GLOBAL, in onSettingChanged()
208 index = mSettingsManager.getIndexOfCurrentValue(SettingsManager.SCOPE_GLOBAL, in onSettingChanged()
216 index = mSettingsManager.getIndexOfCurrentValue(SettingsManager.SCOPE_GLOBAL, in onSettingChanged()
221 if (button != null && button.getState() != index) { in onSettingChanged()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DSlotView.java41 public void onDown(int index); in onDown() argument
43 public void onSingleTapUp(int index); in onSingleTapUp() argument
44 public void onLongTap(int index); in onLongTap() argument
49 @Override public void onDown(int index) {} in onDown() argument
51 @Override public void onSingleTapUp(int index) {} in onSingleTapUp() argument
52 @Override public void onLongTap(int index) {} in onLongTap() argument
60 public int renderSlot(GLCanvas canvas, int index, int pass, int width, int height); in renderSlot() argument
106 public void setCenterIndex(int index) { in setCenterIndex() argument
108 if (index < 0 || index >= slotCount) { in setCenterIndex()
111 Rect rect = mLayout.getSlotRect(index, mTempRect); in setCenterIndex()
[all …]
/packages/apps/Nfc/nxp/jni/
Dcom_android_nfc.cpp415 int index = 0; in nfc_jni_get_technology_tree() local
428 index = addTechIfNeeded(technologies, handles, libnfctypes, index, in nfc_jni_get_technology_tree()
434 index = addTechIfNeeded(technologies, handles, libnfctypes, index, in nfc_jni_get_technology_tree()
436 index = addTechIfNeeded(technologies, handles, libnfctypes, index, in nfc_jni_get_technology_tree()
441 index = addTechIfNeeded(technologies, handles, libnfctypes, in nfc_jni_get_technology_tree()
442 index, MAX_NUM_TECHNOLOGIES, TARGET_TYPE_ISO14443_3A, handle, type); in nfc_jni_get_technology_tree()
449 index = addTechIfNeeded(technologies, handles, libnfctypes, in nfc_jni_get_technology_tree()
450 index, MAX_NUM_TECHNOLOGIES, TARGET_TYPE_ISO14443_4, handle, type); in nfc_jni_get_technology_tree()
451 index = addTechIfNeeded(technologies, handles, libnfctypes, in nfc_jni_get_technology_tree()
452 index, MAX_NUM_TECHNOLOGIES, TARGET_TYPE_ISO14443_3B, handle, type); in nfc_jni_get_technology_tree()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DStringUtils.java208 for (int index = startIndex; index < endIndex; in copyCodePointsAndReturnCodePointCount()
209 index = Character.offsetByCodePoints(charSequence, index, 1)) { in copyCodePointsAndReturnCodePointCount()
210 final int codePoint = Character.codePointAt(charSequence, index); in copyCodePointsAndReturnCodePointCount()
248 int index = 0; in getCapitalizationType() local
249 for (; index < len; index = text.offsetByCodePoints(index, 1)) { in getCapitalizationType()
250 if (Character.isLetter(text.codePointAt(index))) { in getCapitalizationType()
254 if (index == len) return CAPITALIZE_NONE; in getCapitalizationType()
255 if (!Character.isUpperCase(text.codePointAt(index))) { in getCapitalizationType()
260 for (index = text.offsetByCodePoints(index, 1); index < len; in getCapitalizationType()
261 index = text.offsetByCodePoints(index, 1)) { in getCapitalizationType()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DMediaSetSource.java65 public Bitmap getImage(int index) { in getImage() argument
66 return mSource.getImage(index); in getImage()
70 public Uri getContentUri(int index) { in getContentUri() argument
71 return mSource.getContentUri(index); in getContentUri()
147 private void ensureCacheRange(int index) { in ensureCacheRange() argument
148 if (index >= mCacheStart && index < mCacheEnd) return; in ensureCacheRange()
152 mCacheStart = index; in ensureCacheRange()
162 public synchronized Uri getContentUri(int index) { in getContentUri() argument
163 ensureCacheRange(index); in getContentUri()
164 if (index < mCacheStart || index >= mCacheEnd) return null; in getContentUri()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DSentenceLevelAdapter.java89 public int getEndOfWord(final CharSequence sequence, int index) { in getEndOfWord() argument
91 index = index < 0 ? 0 : Character.offsetByCodePoints(sequence, index, 1); in getEndOfWord()
92 while (index < length) { in getEndOfWord()
93 final int codePoint = Character.codePointAt(sequence, index); in getEndOfWord()
99 index + Character.charCount(Constants.CODE_PERIOD); in getEndOfWord()
103 return index; in getEndOfWord()
106 return index; in getEndOfWord()
109 index += Character.charCount(codePoint); in getEndOfWord()
111 return index; in getEndOfWord()
114 public int getBeginningOfNextWord(final CharSequence sequence, int index) {
[all …]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/
DUnboundedFifoByteBuffer.java192 private int increment(int index) { in increment() argument
193 index++; in increment()
194 if (index >= buffer.length) { in increment()
195 index = 0; in increment()
197 return index; in increment()
206 private int decrement(int index) { in decrement() argument
207 index--; in decrement()
208 if (index < 0) { in decrement()
209 index = buffer.length - 1; in decrement()
211 return index; in decrement()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DSearchUtil.java54 final int index = SearchUtil.contains(contents, substring); in findMatchingLine() local
55 if (index != -1) { in findMatchingLine()
57 int start = index - 1; in findMatchingLine()
64 int end = index + 1; in findMatchingLine()
72 matched.startIndex = index - (start + 1); in findMatchingLine()
136 int index = startIndex; in findNextTokenStart() local
139 while (index <= line.length()) { in findNextTokenStart()
140 if (index == line.length()) { in findNextTokenStart()
142 return index; in findNextTokenStart()
144 final int codePoint = line.codePointAt(index); in findNextTokenStart()
[all …]
/packages/apps/Gallery/src/com/android/camera/
DGridViewSpecial.java53 public void onImageClicked(int index); in onImageClicked() argument
54 public void onImageTapped(int index); in onImageTapped() argument
315 int index = computeSelectedIndex(e.getX(), e.getY()); in onDown() local
316 if (index >= 0 && index < mCount) { in onDown()
317 setSelectedIndex(index); in onDown()
362 int index = computeSelectedIndex(e.getX(), e.getY()); in onSingleTapConfirmed() local
363 if (index >= 0 && index < mCount) { in onSingleTapConfirmed()
371 mListener.onImageTapped(index); in onSingleTapConfirmed()
382 public void invalidateImage(int index) { in invalidateImage() argument
383 if (index != INDEX_NONE) { in invalidateImage()
[all …]
/packages/apps/Calendar/src/com/android/calendar/event/
DEventViewUtils.java76 int index = values.indexOf(minutes); in findMinutesInReminderList() local
77 if (index == -1) { in findMinutesInReminderList()
82 return index; in findMinutesInReminderList()
98 int index = values.indexOf(method); in findMethodInReminderList() local
99 if (index == -1) { in findMethodInReminderList()
102 index = 0; in findMethodInReminderList()
104 return index; in findMethodInReminderList()
120 for (int index = 0; index < len; index++) { in reminderItemsToReminders()
121 LinearLayout layout = reminderItems.get(index); in reminderItemsToReminders()
137 int index = values.indexOf(minutes); in addMinutesToList() local
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DZoomControl.java48 void onZoomValueChanged(int index); // only for immediate zoom in onZoomValueChanged() argument
127 public void setZoomIndex(int index) { in setZoomIndex() argument
128 if (index < 0 || index > mZoomMax) { in setZoomIndex()
129 throw new IllegalArgumentException("Invalid zoom value:" + index); in setZoomIndex()
131 mZoomIndex = index; in setZoomIndex()
187 int index = (int) (mZoomMax * zoomPercentage); in performZoom() local
188 if (mZoomIndex == index) return; in performZoom()
189 changeZoomIndex(index); in performZoom()
192 private boolean changeZoomIndex(int index) { in changeZoomIndex() argument
195 int zoomType = (index < mZoomIndex) ? ZOOM_OUT : ZOOM_IN; in changeZoomIndex()
[all …]

12345678910>>...20