/packages/apps/Calendar/tests/src/com/android/calendar/ |
D | AsyncQueryServiceTest.java | 108 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/ |
D | MoreSuggestions.java | 66 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/ |
D | KeyStylesSet.java | 62 public String[] getStringArray(final TypedArray a, final int index) { in getStringArray() argument 63 return parseStringArray(a, index); in getStringArray() 68 public String getString(final TypedArray a, final int index) { in getString() argument 69 return parseString(a, index); in getString() 73 public int getInt(final TypedArray a, final int index, final int defaultValue) { in getInt() argument 74 return a.getInt(index, defaultValue); in getInt() 78 public int getFlags(final TypedArray a, final int index) { in getFlags() argument 79 return a.getInt(index, 0); in getFlags() 98 public String[] getStringArray(final TypedArray a, final int index) { in getStringArray() argument 99 if (a.hasValue(index)) { in getStringArray() [all …]
|
D | PointerTrackerQueue.java | 71 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/Camera2/src/com/android/camera/data/ |
D | FixedFirstProxyAdapter.java | 62 public FilmstripItem getItemAt(int index) { in getItemAt() argument 63 if (index == 0) { in getItemAt() 66 return mAdapter.getItemAt(index - 1); in getItemAt() 70 public void removeAt(int index) { in removeAt() argument 71 if (index > 0) { in removeAt() 72 mAdapter.removeAt(index - 1); in removeAt() 92 public boolean isDataRemoved(int index) { in updateItemAt() 97 public boolean isDataUpdated(int index) { in updateItemAt() 98 return (index == 0); in updateItemAt() 113 public View getView(View recycled, int index, VideoClickedCallback videoClickedCallback) { in getView() argument [all …]
|
D | FixedLastProxyAdapter.java | 61 public FilmstripItem getItemAt(int index) { in getItemAt() argument 64 if (index < totalNumber) { in getItemAt() 65 return mAdapter.getItemAt(index); in getItemAt() 66 } else if (index == totalNumber) { in getItemAt() 73 public void removeAt(int index) { in removeAt() argument 74 if (index < mAdapter.getTotalNumber()) { in removeAt() 75 mAdapter.removeAt(index); in removeAt() 95 public boolean isDataRemoved(int index) { in updateItemAt() 100 public boolean isDataUpdated(int index) { in updateItemAt() 101 return (index == pos); in updateItemAt() [all …]
|
D | CameraFilmstripDataAdapter.java | 86 public AsyncTask updateMetadataAt(int index) { in updateMetadataAt() argument 87 return updateMetadataAt(index, false); in updateMetadataAt() 90 private AsyncTask updateMetadataAt(int index, boolean forceItemUpdate) { in updateMetadataAt() argument 92 result.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, index); in updateMetadataAt() 97 public boolean isMetadataUpdatedAt(int index) { in isMetadataUpdatedAt() argument 98 if (index < 0 || index >= mFilmstripItems.size()) { in isMetadataUpdatedAt() 101 return mFilmstripItems.get(index).getMetadata().isLoaded(); in isMetadataUpdatedAt() 105 public int getItemViewType(int index) { in getItemViewType() argument 106 if (index < 0 || index >= mFilmstripItems.size()) { in getItemViewType() 110 return mFilmstripItems.get(index).getItemViewType().ordinal(); in getItemViewType() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | PhotoDataAdapter.java | 159 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 …]
|
D | AlbumSetDataLoader.java | 49 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 …]
|
D | SlideshowPage.java | 70 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/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
D | proximity_info_state.h | 65 inline int getPrimaryCodePointAt(const int index) const { in getPrimaryCodePointAt() argument 66 return getProximityCodePointsAt(index)[0]; in getPrimaryCodePointAt() 69 int getPrimaryOriginalCodePointAt(const int index) const; 86 AK_FORCE_INLINE bool existsCodePointInProximityAt(const int index, const int c) const { in existsCodePointInProximityAt() argument 87 const int *codePoints = getProximityCodePointsAt(index); in existsCodePointInProximityAt() 97 AK_FORCE_INLINE bool existsAdjacentProximityChars(const int index) const { in existsAdjacentProximityChars() argument 98 if (index < 0 || index >= mSampledInputSize) return false; in existsAdjacentProximityChars() 99 const int currentCodePoint = getPrimaryCodePointAt(index); in existsAdjacentProximityChars() 100 const int leftIndex = index - 1; in existsAdjacentProximityChars() 104 const int rightIndex = index + 1; in existsAdjacentProximityChars() [all …]
|
D | proximity_info_state.cpp | 35 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/TvSettings/Settings/src/com/android/tv/settings/widget/ |
D | ScrollAdapterView.java | 268 saveViewUnchecked(v.expandedView, v.index); in saveVisibleViewsUnchecked() 307 int index; field in ScrollAdapterView.ScrollInfo 316 return index >= 0; in isValid() 319 index = -1; in clear() 323 index = other.index; in copyFrom() 366 index = i; in ExpandedView() 370 final int index; // "Adapter index" of the expandable view field in ScrollAdapterView.ExpandedView 647 public void setSelectionSmooth(int index) { 648 setSelectionSmooth(index, 0); 652 public void setSelectionSmooth(int index, int duration) { [all …]
|
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/ |
D | UnicodeEscaper.java | 109 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 …]
|
D | Preconditions.java | 268 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 …]
|
/packages/apps/Nfc/nxp/jni/ |
D | com_android_nfc.cpp | 415 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/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | SlotView.java | 41 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/Camera2/src/com/android/camera/ |
D | ButtonManager.java | 185 int index = 0; in onSettingChanged() local 188 index = mSettingsManager.getIndexOfCurrentValue(mAppController.getCameraScope(), in onSettingChanged() 192 index = mSettingsManager.getIndexOfCurrentValue(mAppController.getCameraScope(), in onSettingChanged() 196 index = mSettingsManager.getIndexOfCurrentValue(mAppController.getModuleScope(), in onSettingChanged() 200 index = mSettingsManager.getIndexOfCurrentValue(mAppController.getModuleScope(), in onSettingChanged() 204 index = mSettingsManager.getIndexOfCurrentValue(SettingsManager.SCOPE_GLOBAL, in onSettingChanged() 208 index = mSettingsManager.getIndexOfCurrentValue(SettingsManager.SCOPE_GLOBAL, in onSettingChanged() 212 index = mSettingsManager.getIndexOfCurrentValue(SettingsManager.SCOPE_GLOBAL, in onSettingChanged() 220 index = mSettingsManager.getIndexOfCurrentValue(SettingsManager.SCOPE_GLOBAL, in onSettingChanged() 225 if (button != null && button.getState() != index) { in onSettingChanged() [all …]
|
/packages/apps/Camera2/src/com/android/camera/widget/ |
D | FilmstripView.java | 179 public ViewItem(int index, View v, FilmstripItem data, FilmstripView filmstrip) { in ViewItem() argument 184 mIndex = index; in ViewItem() 254 public void setIndex(int index) { in setIndex() argument 255 mIndex = index; in setIndex() 678 private void recycleView(View view, int index) { in recycleView() argument 691 private View getRecycledView(int index) { in getRecycledView() argument 692 final int viewType = mDataAdapter.getItemViewType(index); in getRecycledView() 736 int index = mViewItems[BUFFER_CENTER].getAdapterIndex(); in zoomAtIndexChanged() local 737 mListener.onZoomAtIndexChanged(index, mScale); in zoomAtIndexChanged() 746 private boolean isItemAtIndexCentered(int index) { in isItemAtIndexCentered() argument [all …]
|
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/ |
D | StringUtils.java | 282 for (int index = startIndex; index < endIndex; in copyCodePointsAndReturnCodePointCount() 283 index = Character.offsetByCodePoints(charSequence, index, 1)) { in copyCodePointsAndReturnCodePointCount() 284 final int codePoint = Character.codePointAt(charSequence, index); in copyCodePointsAndReturnCodePointCount() 325 int index = 0; in getCapitalizationType() local 326 for (; index < len; index = text.offsetByCodePoints(index, 1)) { in getCapitalizationType() 327 if (Character.isLetter(text.codePointAt(index))) { in getCapitalizationType() 331 if (index == len) return CAPITALIZE_NONE; in getCapitalizationType() 332 if (!Character.isUpperCase(text.codePointAt(index))) { in getCapitalizationType() 337 for (index = text.offsetByCodePoints(index, 1); index < len; in getCapitalizationType() 338 index = text.offsetByCodePoints(index, 1)) { in getCapitalizationType() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | BinaryDictDecoderUtils.java | 179 int index = fromIndex; in writeCharArray() local 188 buffer[index++] = (byte)codePoint; in writeCharArray() 190 buffer[index++] = (byte)(0xFF & (codePoint >> 16)); in writeCharArray() 191 buffer[index++] = (byte)(0xFF & (codePoint >> 8)); in writeCharArray() 192 buffer[index++] = (byte)(0xFF & codePoint); in writeCharArray() 195 return index; in writeCharArray() 211 int index = origin; in writeString() local 221 buffer[index++] = (byte)codePoint; in writeString() 223 buffer[index++] = (byte)(0xFF & (codePoint >> 16)); in writeString() 224 buffer[index++] = (byte)(0xFF & (codePoint >> 8)); in writeString() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
D | MediaSetSource.java | 65 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/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/ |
D | UnboundedFifoByteBuffer.java | 192 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/services/Telephony/src/org/apache/james/mime4j/decoder/ |
D | UnboundedFifoByteBuffer.java | 192 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/ |
D | SearchUtil.java | 54 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 …]
|