Home
last modified time | relevance | path

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

12345678910>>...14

/packages/apps/Calendar/tests/src/com/android/calendar/
DAsyncQueryServiceTest.java87 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/
DPointerTrackerQueue.java59 for (int index = 0; index < arraySize; index++) { in remove()
60 final Element element = expandableArray.get(index); in remove()
62 if (newSize != index) { in remove()
67 if (newSize != index) { in remove()
87 int newSize, index; in releaseAllPointersOlderThan() local
88 for (newSize = index = 0; index < arraySize; index++) { in releaseAllPointersOlderThan()
89 final Element element = expandableArray.get(index); in releaseAllPointersOlderThan()
97 if (newSize != index) { in releaseAllPointersOlderThan()
105 for (; index < arraySize; index++) { in releaseAllPointersOlderThan()
106 final Element element = expandableArray.get(index); in releaseAllPointersOlderThan()
[all …]
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 getFlag(final TypedArray a, final int index) { in getFlag() argument
70 return a.getInt(index, 0); in getFlag()
87 public String[] getStringArray(final TypedArray a, final int index) { in getStringArray() argument
88 if (a.hasValue(index)) { in getStringArray()
[all …]
DKeyStyle.java24 public abstract String[] getStringArray(TypedArray a, int index); in getStringArray() argument
25 public abstract String getString(TypedArray a, int index); in getString() argument
26 public abstract int getInt(TypedArray a, int index, int defaultValue); in getInt() argument
27 public abstract int getFlag(TypedArray a, int index); in getFlag() argument
33 protected String parseString(final TypedArray a, final int index) { in parseString() argument
34 if (a.hasValue(index)) { in parseString()
35 return KeySpecParser.resolveTextReference(a.getString(index), mTextsSet); in parseString()
40 protected String[] parseStringArray(final TypedArray a, final int index) { in parseStringArray() argument
41 if (a.hasValue(index)) { in parseStringArray()
42 return KeySpecParser.parseCsvString(a.getString(index), mTextsSet); in parseStringArray()
/packages/apps/Email/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/inputmethods/LatinIME/native/jni/src/
Dproximity_info_state.h67 inline unsigned short getPrimaryCharAt(const int index) const { in getPrimaryCharAt() argument
68 return getProximityCharsAt(index)[0]; in getPrimaryCharAt()
71 inline bool existsCharInProximityAt(const int index, const int c) const { in existsCharInProximityAt() argument
72 const int *chars = getProximityCharsAt(index); in existsCharInProximityAt()
82 inline bool existsAdjacentProximityChars(const int index) const { in existsAdjacentProximityChars() argument
83 if (index < 0 || index >= mInputSize) return false; in existsAdjacentProximityChars()
84 const int currentChar = getPrimaryCharAt(index); in existsAdjacentProximityChars()
85 const int leftIndex = index - 1; in existsAdjacentProximityChars()
89 const int rightIndex = index + 1; in existsAdjacentProximityChars()
108 inline ProximityType getMatchedProximityId(const int index,
[all …]
Dproximity_info_state.cpp169 const int index = mInputIndice[i]; in initInputParams() local
172 if (index == 0 && index < inputSize - 1) { in initInputParams()
173 length = getDistanceInt(xCoordinates[index], yCoordinates[index], in initInputParams()
174 xCoordinates[index + 1], yCoordinates[index + 1]); in initInputParams()
175 duration = times[index + 1] - times[index]; in initInputParams()
176 } else if (index == inputSize - 1 && index > 0) { in initInputParams()
177 length = getDistanceInt(xCoordinates[index - 1], yCoordinates[index - 1], in initInputParams()
178 xCoordinates[index], yCoordinates[index]); in initInputParams()
179 duration = times[index] - times[index - 1]; in initInputParams()
180 } else if (0 < index && index < inputSize - 1) { in initInputParams()
[all …]
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DQueryParameterUtils.java45 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/
DMediaSetSource.java56 private void ensureCacheRange(int index) { in ensureCacheRange() argument
57 if (index >= mCacheStart && index < mCacheEnd) return; in ensureCacheRange()
61 mCacheStart = index; in ensureCacheRange()
71 public synchronized Uri getContentUri(int index) { in getContentUri() argument
72 ensureCacheRange(index); in getContentUri()
73 if (index < mCacheStart || index >= mCacheEnd) return null; in getContentUri()
74 return mCache[index - mCacheStart].getContentUri(); in getContentUri()
78 public synchronized Bitmap getImage(int index) { in getImage() argument
79 ensureCacheRange(index); in getImage()
80 if (index < mCacheStart || index >= mCacheEnd) return null; in getImage()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
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()
169 .putExtra(KEY_PHOTO_INDEX, slide.index)); in showPendingBitmap()
211 int index = data.getInt(KEY_PHOTO_INDEX); in initializeData() local
216 index, path); in initializeData()
217 setStateResult(Activity.RESULT_OK, mResultIntent.putExtra(KEY_PHOTO_INDEX, index)); in initializeData()
227 private static MediaItem findMediaItem(MediaSet mediaSet, int index) { in findMediaItem() argument
231 if (index < count) { in findMediaItem()
232 return findMediaItem(subset, index); in findMediaItem()
[all …]
DPhotoDataAdapter.java160 public void onPhotoChanged(int index, Path item); in onPhotoChanged() argument
222 private MediaItem getItemInternal(int index) { in getItemInternal() argument
223 if (index < 0 || index >= mSize) return null; in getItemInternal()
224 if (index >= mContentStart && index < mContentEnd) { in getItemInternal()
225 return mData[index % DATA_CACHE_SIZE]; in getItemInternal()
230 private long getVersion(int index) { in getVersion() argument
231 MediaItem item = getItemInternal(index); in getVersion()
236 private Path getPath(int index) { in getPath() argument
237 MediaItem item = getItemInternal(index); in getPath()
386 private MediaItem getItem(int index) { in getItem() argument
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DResourceUtils.java68 public static float getFraction(final TypedArray a, final int index, final float defValue) { in getFraction() argument
69 final TypedValue value = a.peekValue(index); in getFraction()
73 return a.getFraction(index, 1, 1, defValue); in getFraction()
76 public static float getFraction(final TypedArray a, final int index) { in getFraction() argument
77 return getFraction(a, index, UNDEFINED_RATIO); in getFraction()
80 public static int getDimensionPixelSize(final TypedArray a, final int index) { in getDimensionPixelSize() argument
81 final TypedValue value = a.peekValue(index); in getDimensionPixelSize()
85 return a.getDimensionPixelSize(index, ResourceUtils.UNDEFINED_DIMENSION); in getDimensionPixelSize()
88 public static float getDimensionOrFraction(TypedArray a, int index, int base, in getDimensionOrFraction() argument
90 final TypedValue value = a.peekValue(index); in getDimensionOrFraction()
[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 …]
/packages/apps/Nfc/nxp/jni/
Dcom_android_nfc.cpp464 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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DBinaryDictInputOutput.java181 private static int writeCharArray(final int[] codePoints, final byte[] buffer, int index) { in writeCharArray() argument
184 buffer[index++] = (byte)codePoint; in writeCharArray()
186 buffer[index++] = (byte)(0xFF & (codePoint >> 16)); in writeCharArray()
187 buffer[index++] = (byte)(0xFF & (codePoint >> 8)); in writeCharArray()
188 buffer[index++] = (byte)(0xFF & codePoint); in writeCharArray()
191 return index; in writeCharArray()
207 int index = origin; in writeString() local
211 buffer[index++] = (byte)codePoint; in writeString()
213 buffer[index++] = (byte)(0xFF & (codePoint >> 16)); in writeString()
214 buffer[index++] = (byte)(0xFF & (codePoint >> 8)); in writeString()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/
DCityObj.java47 public CityObj(SharedPreferences prefs, int index) { in CityObj() argument
48 mCityName = prefs.getString(CITY_NAME + index, null); in CityObj()
49 mTimeZone = prefs.getString(CITY_TIME_ZONE + index, null); in CityObj()
50 mCityId = prefs.getString(CITY_ID + index, null); in CityObj()
53 public void saveCityToSharedPrefs(SharedPreferences.Editor editor, int index) { in saveCityToSharedPrefs() argument
54 editor.putString (CITY_NAME + index, mCityName); in saveCityToSharedPrefs()
55 editor.putString (CITY_TIME_ZONE + index, mTimeZone); in saveCityToSharedPrefs()
56 editor.putString (CITY_ID + index, mCityId); in saveCityToSharedPrefs()
/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/Browser/tests/src/com/android/browser/tests/utils/
DMockObserverNode.java47 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/
DImapList.java70 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/
DImageListUber.java99 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/
DSlotView.java40 public void onDown(int index); in onDown() argument
42 public void onSingleTapUp(int index); in onSingleTapUp() argument
43 public void onLongTap(int index); in onLongTap() argument
48 @Override public void onDown(int index) {} in onDown() argument
50 @Override public void onSingleTapUp(int index) {} in onSingleTapUp() argument
51 @Override public void onLongTap(int index) {} in onLongTap() argument
59 public int renderSlot(GLCanvas canvas, int index, int pass, int width, int height); in renderSlot() argument
105 public void setCenterIndex(int index) { in setCenterIndex() argument
107 if (index < 0 || index >= slotCount) { in setCenterIndex()
110 Rect rect = mLayout.getSlotRect(index, mTempRect); in setCenterIndex()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DSizeClustering.java59 public void consume(int index, MediaItem item) { in run()
114 private String getSizeString(int index) { in getSizeString() argument
115 long bytes = SIZE_LEVELS[index]; in getSizeString()
129 public ArrayList<Path> getCluster(int index) { in getCluster() argument
130 return mClusters[index]; in getCluster()
134 public String getClusterName(int index) { in getClusterName() argument
135 return mNames[index]; in getClusterName()
138 public long getMinSize(int index) { in getMinSize() argument
139 return mMinSizes[index]; in getMinSize()
DMediaDetails.java79 public void addDetail(int index, Object value) { in addDetail() argument
80 mDetails.put(index, value); in addDetail()
83 public Object getDetail(int index) { in getDetail() argument
84 return mDetails.get(index); in getDetail()
96 public void setUnit(int index, int unit) { in setUnit() argument
97 mUnits.put(index, unit); in setUnit()
100 public boolean hasUnit(int index) { in hasUnit() argument
101 return mUnits.containsKey(index); in hasUnit()
104 public int getUnit(int index) { in getUnit() argument
105 return mUnits.get(index); in getUnit()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/mail/
DMultipart.java32 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()

12345678910>>...14