/packages/apps/Calendar/tests/src/com/android/calendar/ |
D | AsyncQueryServiceTest.java | 87 int index = 0; in testQuery() local 89 work[index] = new OperationInfo(); in testQuery() 90 work[index].op = Operation.EVENT_ARG_QUERY; in testQuery() 92 work[index].token = ++mId; in testQuery() 93 work[index].cookie = ++mId; in testQuery() 94 work[index].uri = Uri.parse(AUTHORITY_URI + "blah"); in testQuery() 95 work[index].projection = TEST_PROJECTION; in testQuery() 96 work[index].selection = TEST_SELECTION; in testQuery() 97 work[index].selectionArgs = TEST_SELECTION_ARGS; in testQuery() 98 work[index].orderBy = "order"; in testQuery() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | KeyStyles.java | 48 public abstract String[] getStringArray(TypedArray a, int index); in getStringArray() argument 49 public abstract String getString(TypedArray a, int index); in getString() argument 50 public abstract int getInt(TypedArray a, int index, int defaultValue); in getInt() argument 51 public abstract int getFlag(TypedArray a, int index); in getFlag() argument 53 protected String parseString(TypedArray a, int index) { in parseString() argument 54 if (a.hasValue(index)) { in parseString() 55 return KeySpecParser.resolveTextReference(a.getString(index), mTextsSet); in parseString() 60 protected String[] parseStringArray(TypedArray a, int index) { in parseStringArray() argument 61 if (a.hasValue(index)) { in parseStringArray() 62 return KeySpecParser.parseCsvString(a.getString(index), mTextsSet); in parseStringArray() [all …]
|
/packages/apps/Email/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/Gallery2/src/com/android/gallery3d/app/ |
D | AlbumSetDataLoader.java | 50 public void onContentChanged(int index); in onContentChanged() argument 118 private void assertIsActive(int index) { in assertIsActive() argument 119 if (index < mActiveStart && index >= mActiveEnd) { in assertIsActive() 121 "%s not in (%s, %s)", index, mActiveStart, mActiveEnd)); in assertIsActive() 125 public MediaSet getMediaSet(int index) { in getMediaSet() argument 126 assertIsActive(index); in getMediaSet() 127 return mData[index % mData.length]; in getMediaSet() 130 public MediaItem getCoverItem(int index) { in getCoverItem() argument 131 assertIsActive(index); in getCoverItem() 132 return mCoverItem[index % mCoverItem.length]; in getCoverItem() [all …]
|
D | SlideshowPage.java | 69 public int index; field in SlideshowPage.Slide 71 public Slide(MediaItem item, int index, Bitmap bitmap) { in Slide() argument 74 this.index = index; in Slide() 160 .putExtra(KEY_PHOTO_INDEX, slide.index)); in showPendingBitmap() 202 int index = data.getInt(KEY_PHOTO_INDEX); in initializeData() local 207 index, path); in initializeData() 208 setStateResult(Activity.RESULT_OK, mResultIntent.putExtra(KEY_PHOTO_INDEX, index)); in initializeData() 218 private static MediaItem findMediaItem(MediaSet mediaSet, int index) { in findMediaItem() argument 222 if (index < count) { in findMediaItem() 223 return findMediaItem(subset, index); in findMediaItem() [all …]
|
D | PhotoDataAdapter.java | 159 public void onPhotoChanged(int index, Path item); in onPhotoChanged() argument 217 private MediaItem getItemInternal(int index) { in getItemInternal() argument 218 if (index < 0 || index >= mSize) return null; in getItemInternal() 219 if (index >= mContentStart && index < mContentEnd) { in getItemInternal() 220 return mData[index % DATA_CACHE_SIZE]; in getItemInternal() 225 private long getVersion(int index) { in getVersion() argument 226 MediaItem item = getItemInternal(index); in getVersion() 231 private Path getPath(int index) { in getPath() argument 232 MediaItem item = getItemInternal(index); in getPath() 373 private MediaItem getItem(int index) { in getItem() argument [all …]
|
D | AlbumDataLoader.java | 55 public void onContentChanged(int index); in onContentChanged() argument 116 public MediaItem get(int index) { in get() argument 117 if (!isActive(index)) { in get() 119 "%s not in (%s, %s)", index, mActiveStart, mActiveEnd)); in get() 121 return mData[index % mData.length]; in get() 128 public boolean isActive(int index) { in isActive() argument 129 return index >= mActiveStart && index < mActiveEnd; in isActive() 241 int index = i % DATA_CACHE_SIZE; in call() local 242 if (setVersion[index] != version) { in call() 278 int index = i % DATA_CACHE_SIZE; in call() local [all …]
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | QueryParameterUtils.java | 45 int index = 0; in getQueryParameter() local 47 index = query.indexOf(parameter, index); in getQueryParameter() 48 if (index == -1) { in getQueryParameter() 52 index += parameterLength; in getQueryParameter() 54 if (queryLength == index) { in getQueryParameter() 58 if (query.charAt(index) == '=') { in getQueryParameter() 59 index++; in getQueryParameter() 64 int ampIndex = query.indexOf('&', index); in getQueryParameter() 66 value = query.substring(index); in getQueryParameter() 68 value = query.substring(index, ampIndex); in getQueryParameter()
|
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
D | MediaSetSource.java | 55 private void ensureCacheRange(int index) { in ensureCacheRange() argument 56 if (index >= mCacheStart && index < mCacheEnd) return; in ensureCacheRange() 60 mCacheStart = index; in ensureCacheRange() 70 public synchronized Uri getContentUri(int index) { in getContentUri() argument 71 ensureCacheRange(index); in getContentUri() 72 if (index < mCacheStart || index >= mCacheEnd) return null; in getContentUri() 73 return mCache[index - mCacheStart].getContentUri(); in getContentUri() 77 public synchronized Bitmap getImage(int index) { in getImage() argument 78 ensureCacheRange(index); in getImage() 79 if (index < mCacheStart || index >= mCacheEnd) return null; in getImage() [all …]
|
/packages/apps/Camera/src/com/android/camera/ui/ |
D | ZoomControl.java | 38 void onZoomValueChanged(int index); // only for immediate zoom in onZoomValueChanged() argument 103 public void setZoomIndex(int index) { in setZoomIndex() argument 104 if (index < 0 || index > mZoomMax) { in setZoomIndex() 105 throw new IllegalArgumentException("Invalid zoom value:" + index); in setZoomIndex() 107 mZoomIndex = index; in setZoomIndex() 112 int index = (int) (mZoomMax * zoomPercentage); in performZoom() local 113 if (mZoomIndex == index) return; in performZoom() 115 if (index > mZoomMax) index = mZoomMax; in performZoom() 116 if (index < 0) index = 0; in performZoom() 117 mListener.onZoomValueChanged(index); in performZoom() [all …]
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | ZoomControl.java | 48 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 …]
|
/packages/apps/Nfc/jni/ |
D | com_android_nfc.cpp | 464 int index = 0; in nfc_jni_get_technology_tree() local 477 index = addTechIfNeeded(technologies, handles, libnfctypes, index, in nfc_jni_get_technology_tree() 483 index = addTechIfNeeded(technologies, handles, libnfctypes, index, in nfc_jni_get_technology_tree() 485 index = addTechIfNeeded(technologies, handles, libnfctypes, index, in nfc_jni_get_technology_tree() 490 index = addTechIfNeeded(technologies, handles, libnfctypes, in nfc_jni_get_technology_tree() 491 index, MAX_NUM_TECHNOLOGIES, TARGET_TYPE_ISO14443_3A, handle, type); in nfc_jni_get_technology_tree() 498 index = addTechIfNeeded(technologies, handles, libnfctypes, in nfc_jni_get_technology_tree() 499 index, MAX_NUM_TECHNOLOGIES, TARGET_TYPE_ISO14443_4, handle, type); in nfc_jni_get_technology_tree() 500 index = addTechIfNeeded(technologies, handles, libnfctypes, in nfc_jni_get_technology_tree() 501 index, MAX_NUM_TECHNOLOGIES, TARGET_TYPE_ISO14443_3B, handle, type); in nfc_jni_get_technology_tree() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/event/ |
D | EventViewUtils.java | 76 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/Browser/tests/src/com/android/browser/tests/utils/ |
D | MockObserverNode.java | 47 private String getUriSegment(Uri uri, int index) { in getUriSegment() argument 49 if (index == 0) { in getUriSegment() 52 return uri.getPathSegments().get(index - 1); in getUriSegment() 71 private void addObserver(Uri uri, int index, ContentObserver observer, in addObserver() argument 74 if (index == countUriSegments(uri)) { in addObserver() 80 String segment = getUriSegment(uri, index); in addObserver() 88 node.addObserver(uri, index + 1, observer, notifyForDescendents); in addObserver() 96 node.addObserver(uri, index + 1, observer, notifyForDescendents); in addObserver() 144 public void notifyMyObservers(Uri uri, int index, ContentObserver observer, in notifyMyObservers() argument 148 if (index >= segmentCount) { in notifyMyObservers() [all …]
|
/packages/apps/Email/src/com/android/email/mail/store/imap/ |
D | ImapList.java | 70 public final boolean is(int index, String s) { in is() argument 71 return is(index, s, false); in is() 77 public final boolean is(int index, String s, boolean prefixMatch) { in is() argument 79 return getStringOrEmpty(index).is(s); in is() 81 return getStringOrEmpty(index).startsWith(s); in is() 89 public final ImapElement getElementOrNone(int index) { in getElementOrNone() argument 90 return (index >= mList.size()) ? ImapElement.NONE : mList.get(index); in getElementOrNone() 97 public final ImapList getListOrEmpty(int index) { in getListOrEmpty() argument 98 ImapElement el = getElementOrNone(index); in getListOrEmpty() 106 public final ImapString getStringOrEmpty(int index) { in getStringOrEmpty() argument [all …]
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
D | ImageListUber.java | 99 public IImage getImageAt(int index) { in getImageAt() argument 100 if (index < 0 || index > getCount()) { in getImageAt() 102 "index " + index + " out of range max is " + getCount()); in getImageAt() 123 if (skipCount + offset > index) { in getImageAt() 124 int subindex = mSkipCounts[which] + (index - skipCount); in getImageAt() 134 if (skipCount == index) { in getImageAt() 175 private void modifySkipCountForDeletedImage(int index) { in modifySkipCountForDeletedImage() argument 180 if (skipCount + offset > index) { in modifySkipCountForDeletedImage() 188 private boolean removeImage(IImage image, int index) { in removeImage() argument 191 modifySkipCountForDeletedImage(index); in removeImage() [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 107 public void setCenterIndex(int index) { in setCenterIndex() argument 109 if (index < 0 || index >= slotCount) { in setCenterIndex() 112 Rect rect = mLayout.getSlotRect(index, mTempRect); in setCenterIndex() [all …]
|
D | SelectionManager.java | 156 int index = 0; in expandMediaSet() local 158 while (index < total) { in expandMediaSet() 159 int count = index + batch < total in expandMediaSet() 161 : total - index; in expandMediaSet() 162 ArrayList<MediaItem> list = set.getMediaItem(index, count); in expandMediaSet() 166 index += batch; in expandMediaSet() 198 int index = 0; 199 while (index < total) { 200 int count = Math.min(total - index, MediaSet.MEDIAITEM_BATCH_FETCH_COUNT); 201 ArrayList<MediaItem> list = mSourceMediaSet.getMediaItem(index, count); [all …]
|
D | AlbumSlotRenderer.java | 31 public boolean acceptSlot(int index); in acceptSlot() argument 61 public void setPressedIndex(int index) { in setPressedIndex() argument 62 if (mPressedIndex == index) return; in setPressedIndex() 63 mPressedIndex = index; in setPressedIndex() 100 public int renderSlot(GLCanvas canvas, int index, int pass, int width, int height) { in renderSlot() argument 101 if (mSlotFilter != null && !mSlotFilter.acceptSlot(index)) return 0; in renderSlot() 103 AlbumSlidingWindow.AlbumEntry entry = mDataWindow.get(index); in renderSlot() 130 renderRequestFlags |= renderOverlay(canvas, index, entry, width, height); in renderSlot() 135 private int renderOverlay(GLCanvas canvas, int index, in renderOverlay() argument 138 if (mPressedIndex == index) { in renderOverlay()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/ |
D | BinaryDictInputOutput.java | 245 private static int writeCharArray(final int[] codePoints, final byte[] buffer, int index) { in writeCharArray() argument 248 buffer[index++] = (byte)codePoint; in writeCharArray() 250 buffer[index++] = (byte)(0xFF & (codePoint >> 16)); in writeCharArray() 251 buffer[index++] = (byte)(0xFF & (codePoint >> 8)); in writeCharArray() 252 buffer[index++] = (byte)(0xFF & codePoint); in writeCharArray() 255 return index; in writeCharArray() 271 int index = origin; in writeString() local 275 buffer[index++] = (byte)codePoint; in writeString() 277 buffer[index++] = (byte)(0xFF & (codePoint >> 16)); in writeString() 278 buffer[index++] = (byte)(0xFF & (codePoint >> 8)); in writeString() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | SizeClustering.java | 56 public void consume(int index, MediaItem item) { in run() 111 private String getSizeString(int index) { in getSizeString() argument 112 long bytes = SIZE_LEVELS[index]; in getSizeString() 126 public ArrayList<Path> getCluster(int index) { in getCluster() argument 127 return mClusters[index]; in getCluster() 131 public String getClusterName(int index) { in getClusterName() argument 132 return mNames[index]; in getClusterName() 135 public long getMinSize(int index) { in getMinSize() argument 136 return mMinSizes[index]; in getMinSize()
|
D | MediaDetails.java | 78 public void addDetail(int index, Object value) { in addDetail() argument 79 mDetails.put(index, value); in addDetail() 82 public Object getDetail(int index) { in getDetail() argument 83 return mDetails.get(index); in getDetail() 94 public void setUnit(int index, int unit) { in setUnit() argument 95 mUnits.put(index, unit); in setUnit() 98 public boolean hasUnit(int index) { in hasUnit() argument 99 return mUnits.containsKey(index); in hasUnit() 102 public int getUnit(int index) { in getUnit() argument 103 return mUnits.get(index); in getUnit()
|
D | FilterDeleteSet.java | 50 int index; field in FilterDeleteSet.Deletion 51 public Deletion(Path path, int index) { in Deletion() argument 53 this.index = index; in Deletion() 118 if (d.index - i > start) break; in getMediaItem() 124 if (d.index - j > end) break; in getMediaItem() 133 int k = d.index - (start + i); in getMediaItem() 186 int minIndex = mCurrent.get(0).index; in reload() 190 minIndex = Math.min(d.index, minIndex); in reload() 191 maxIndex = Math.max(d.index, maxIndex); in reload() 207 d.index = from + i; in reload()
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/mail/ |
D | Multipart.java | 32 public void addBodyPart(BodyPart part, int index) throws MessagingException { in addBodyPart() argument 33 mParts.add(index, part); in addBodyPart() 36 public BodyPart getBodyPart(int index) throws MessagingException { in getBodyPart() argument 37 return mParts.get(index); in getBodyPart() 52 public void removeBodyPart(int index) throws MessagingException { in removeBodyPart() argument 53 mParts.remove(index); in removeBodyPart()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
D | SuggestionsView.java | 75 public void pickSuggestionManually(int index, CharSequence word, int x, int y); in pickSuggestionManually() argument 280 private static float getPercent(TypedArray a, int index, int defValue) { in getPercent() argument 281 return a.getInt(index, defValue) / 100.0f; in getPercent() 285 private static float getRatio(TypedArray a, int index) { in getRatio() argument 286 return a.getFraction(index, 1000, 1000, 1) / 1000.0f; in getRatio() 309 private int getWordPosition(int index, SuggestedWords suggestedWords) { in getWordPosition() argument 313 if (index == mCenterSuggestionIndex) { in getWordPosition() 315 } else if (index == centerPos) { in getWordPosition() 318 return index; in getWordPosition() 322 private int getSuggestionTextColor(int index, SuggestedWords suggestedWords, int pos) { in getSuggestionTextColor() argument [all …]
|