Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 736) sorted by relevance

12345678910>>...30

/packages/apps/TV/tests/robotests/src/com/android/tv/data/
DGenreItemTest.java46 int count = GenreItems.getGenreCount(); in testGetCanonicalGenre() local
48 for (int i = 1; i < count; ++i) { in testGetCanonicalGenre()
55 int count = GenreItems.getGenreCount(); in testGetId_base() local
58 assertInRange(GenreItems.getId(Genres.FAMILY_KIDS), 1, count - 1); in testGetId_base()
59 assertInRange(GenreItems.getId(Genres.SPORTS), 1, count - 1); in testGetId_base()
60 assertInRange(GenreItems.getId(Genres.SHOPPING), 1, count - 1); in testGetId_base()
61 assertInRange(GenreItems.getId(Genres.MOVIES), 1, count - 1); in testGetId_base()
62 assertInRange(GenreItems.getId(Genres.COMEDY), 1, count - 1); in testGetId_base()
63 assertInRange(GenreItems.getId(Genres.TRAVEL), 1, count - 1); in testGetId_base()
64 assertInRange(GenreItems.getId(Genres.DRAMA), 1, count - 1); in testGetId_base()
[all …]
/packages/apps/Dialer/java/com/android/dialer/searchfragment/list/
DSearchCursorManager.java181 int count = 0; in getCount() local
183 count += contactsCursor.getCount(); in getCount()
187 count++; in getCount()
189 count += nearbyPlacesCursor.getCount(); in getCount()
193 count += corpDirectoryCursor.getCount(); in getCount()
196 return count + searchActions.size(); in getCount()
243 int count = contactsCursor.getCount(); in getCursor() local
245 if (position - count < 0) { in getCursor()
249 position -= count; in getCursor()
253 int count = nearbyPlacesCursor.getCount(); in getCursor() local
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DSelectionManager.java123 int count = mClickedSet.size(); in getSelectedCount() local
125 count = getTotalCount() - count; in getSelectedCount()
127 return count; in getSelectedCount()
139 int count = getSelectedCount(); in toggle() local
140 if (count == getTotalCount()) { in toggle()
145 if (count == 0 && mAutoLeave) { in toggle()
162 int count = index + batch < total in expandMediaSet() local
165 ArrayList<MediaItem> list = set.getMediaItem(index, count); in expandMediaSet()
223 int count = Math.min(total - index, MediaSet.MEDIAITEM_BATCH_FETCH_COUNT); in getSelected() local
224 ArrayList<MediaItem> list = mSourceMediaSet.getMediaItem(index, count); in getSelected()
[all …]
/packages/apps/Contacts/src/com/android/contacts/list/
DContactEntryListAdapter.java180 int count = getPartitionCount(); in getPartitionByDirectoryId() local
181 for (int i = 0; i < count; i++) { in getPartitionByDirectoryId()
193 int count = getPartitionCount(); in getDirectoryById() local
194 for (int i = 0; i < count; i++) { in getDirectoryById()
214 int count = getPartitionCount(); in onDataReload() local
215 for (int i = 0; i < count; i++) { in onDataReload()
232 int count = getPartitionCount(); in clearPartitions() local
233 for (int i = 0; i < count; i++) { in clearPartitions()
443 int count = getPartitionCount(); in changeDirectories() local
444 for (int i = count; --i >= 0; ) { in changeDirectories()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/dot/
DDotInfo.java52 if (prevKey.count == notificationKey.count) { in addOrUpdateNotificationKey()
56 mTotalCount -= prevKey.count; in addOrUpdateNotificationKey()
57 mTotalCount += notificationKey.count; in addOrUpdateNotificationKey()
58 prevKey.count = notificationKey.count; in addOrUpdateNotificationKey()
63 mTotalCount += notificationKey.count; in addOrUpdateNotificationKey()
74 mTotalCount -= notificationKey.count; in removeNotificationKey()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DSQLiteContentProvider.java147 int count = 0; in update() local
155 count = updateInTransaction(uri, values, selection, selectionArgs, in update()
157 if (count > 0) { in update()
168 count = updateInTransaction(uri, values, selection, selectionArgs, in update()
170 if (count > 0) { in update()
175 return count; in update()
180 int count = 0; in delete() local
188 count = deleteInTransaction(uri, selection, selectionArgs, isCallerSyncAdapter); in delete()
189 if (count > 0) { in delete()
200 count = deleteInTransaction(uri, selection, selectionArgs, isCallerSyncAdapter); in delete()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DRichInputMethodManager.java190 final int count = imiList.size(); in getImiIndexInList() local
191 for (int index = 0; index < count; index++) { in getImiIndexInList()
203 final int count = imiList.size(); in getNextNonAuxiliaryIme() local
204 for (int i = 1; i < count; i++) { in getNextNonAuxiliaryIme()
205 final int nextIndex = (currentIndex + i) % count; in getNextNonAuxiliaryIme()
216 final int count = imi.getSubtypeCount(); in isAuxiliaryIme() local
217 if (count == 0) { in isAuxiliaryIme()
220 for (int index = 0; index < count; index++) { in isAuxiliaryIme()
312 final int count = subtypes.size(); in getSubtypeIndexInList() local
313 for (int index = 0; index < count; index++) { in getSubtypeIndexInList()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/
DMultiAttachmentLayout.java165 final Rect transitionRect, final int count) { in bindAttachments() argument
171 determineLayout(attachments, count); in bindAttachments()
209 private void determineLayout(final Iterable<MessagePartData> attachments, final int count) { in determineLayout() argument
213 mCurrentLayout = ATTACHMENT_RTL_LAYOUTS_BY_COUNT[Math.min(count, in determineLayout()
216 mCurrentLayout = ATTACHMENT_LAYOUTS_BY_COUNT[Math.min(count, in determineLayout()
223 mPlusNumber = count - mCurrentLayout.tiles.size(); in determineLayout()
230 final int count = mCurrentLayout.tiles.size(); in buildViews() local
233 while (iterator.hasNext() && i < count) { in buildViews()
264 if (count == 2 && i == 1 && transitionRect != null) { in buildViews()
309 final int count = mPreviewViews.size(); in onMeasure() local
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/data/
DWeekdays.java194 for (int count = 1; count <= 7; count++) { in getDistanceToPreviousDay()
200 return count; in getDistanceToPreviousDay()
217 for (int count = 0; count < 7; count++) { in getDistanceToNextDay()
219 return count; in getDistanceToNextDay()
295 int count = 0; in getCount() local
298 count++; in getCount()
301 return count; in getCount()
DWeekdays.kt167 for (count in 1..7) { in getDistanceToPreviousDay() variable
173 return count in getDistanceToPreviousDay()
190 for (count in 0..6) { in getDistanceToNextDay() variable
192 return count in getDistanceToNextDay()
264 val count: Int constant
266 var count = 0 variable
269 count++
272 return count
290 val longNames = forceLongNames || count <= 1 in toString()
/packages/apps/Gallery2/jni_jpegstream/src/
Djpeg_reader.cpp117 int32_t JpegReader::read(int8_t* bytes, int32_t offset, int32_t count) { in read() argument
128 if (count <= 0) { in read()
131 int32_t total_length = count; in read()
133 if (count < mScanlineBytesRemaining) { in read()
138 count * sizeof(int8_t)); in read()
140 mScanlineBytesRemaining -= count; in read()
141 mScanlineIter += count; in read()
143 } else if (count > 0) { in read()
151 count -= mScanlineBytesRemaining; in read()
171 return total_length - count; in read()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DComboAlbum.java42 public ArrayList<MediaItem> getMediaItem(int start, int count) { in getMediaItem() argument
46 if (count < 1) break; in getMediaItem()
48 int fetchCount = (start + count <= size) ? count : size - start; in getMediaItem()
51 count -= fetchItems.size(); in getMediaItem()
62 int count = 0; in getMediaItemCount() local
64 count += set.getMediaItemCount(); in getMediaItemCount()
66 return count; in getMediaItemCount()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/utility/
DCountingOutputStream.java26 private long count; field in CountingOutputStream
34 return count; in getCount()
38 public void write(byte[] buffer, int offset, int count) throws IOException { in write() argument
39 outputStream.write(buffer, offset, count); in write()
40 this.count += count; in write()
46 count++; in write()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/
DAnglesClassifier.java98 private float count; field in AnglesClassifier.Data
113 count = secondCount = 1.0f; in Data()
152 firstAngleVariance = getAnglesVariance(sumSquares, sum, count); in addPoint()
164 count += 1.0f; in addPoint()
170 public float getAnglesVariance(float sumSquares, float sum, float count) { in getAnglesVariance() argument
171 return sumSquares / count - (sum / count) * (sum / count); in getAnglesVariance()
175 float anglesVariance = getAnglesVariance(sumSquares, sum, count); in getAnglesVariance()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DIntArray.java96 final int count = values.mSize; in addAll() local
97 ensureCapacity(count); in addAll()
99 System.arraycopy(values.mValues, 0, mValues, mSize, count); in addAll()
100 mSize += count; in addAll()
114 private void ensureCapacity(int count) { in ensureCapacity() argument
116 final int minCapacity = currentSize + count; in ensureCapacity()
255 int count = 0; in fromConcatString() local
257 array[count] = Integer.parseInt(tokenizer.nextToken().trim()); in fromConcatString()
258 count++; in fromConcatString()
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/
Dstack.h111 RAPIDJSON_FORCEINLINE T* Push(size_t count = 1) {
113 if (stackTop_ + sizeof(T) * count >= stackEnd_)
114 Expand<T>(count);
117 stackTop_ += sizeof(T) * count;
122 T* Pop(size_t count) { in Pop() argument
123 RAPIDJSON_ASSERT(GetSize() >= count * sizeof(T)); in Pop()
124 stackTop_ -= count * sizeof(T); in Pop()
151 void Expand(size_t count) { in Expand() argument
162 size_t newSize = GetSize() + sizeof(T) * count; in Expand()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/
DFixedLengthInputStream.java29 private int count; field in FixedLengthInputStream
38 return length - count; in available()
43 if (count < length) { in read()
44 count++; in read()
53 if (count < this.length) { in read()
54 int d = in.read(b, offset, Math.min(this.length - count, length)); in read()
58 count += d; in read()
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthWeekEventsView.java590 int count = 6 * 4; in drawDaySeparators() local
596 count += 4; in drawDaySeparators()
603 count += 4; in drawDaySeparators()
611 while (i < count) { in drawDaySeparators()
620 canvas.drawLines(lines, 0, count, p); in drawDaySeparators()
778 protected int addChipOutline(FloatRef lines, int count, int x, int y) { in addChipOutline() argument
779 lines.ensureSize(count + 16); in addChipOutline()
781 lines.array[count++] = x; in addChipOutline()
782 lines.array[count++] = y; in addChipOutline()
783 lines.array[count++] = x + EVENT_SQUARE_WIDTH; in addChipOutline()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/
DSortingCursorWrapper.java44 final int count = cursor.getCount(); in SortingCursorWrapper() local
45 mPosition = new int[count]; in SortingCursorWrapper()
46 boolean[] isDirs = new boolean[count]; in SortingCursorWrapper()
49 String[] ids = new String[count]; in SortingCursorWrapper()
55 stringValues = new String[count]; in SortingCursorWrapper()
59 longValues = new long[count]; in SortingCursorWrapper()
64 for (int i = 0; i < count; i++) { in SortingCursorWrapper()
190 final int count = positions.length; in binarySort() local
191 for (int start = 1; start < count; start++) { in binarySort()
271 final int count = positions.length; in binarySort() local
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/
DExif.java83 int count = pack(jpeg, offset + 4, 4, littleEndian) + 2; in getOrientation() local
84 if (count < 10 || count > length) { in getOrientation()
88 offset += count; in getOrientation()
89 length -= count; in getOrientation()
92 count = pack(jpeg, offset - 2, 2, littleEndian); in getOrientation()
93 while (count-- > 0 && length >= 12) { in getOrientation()
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
DImageBackend.java700 protected ImageReleaseProtocol setSemaphoreReferenceCount(ImageToProcess img, int count, in setSemaphoreReferenceCount() argument
712 protocol.setCount(count); in setSemaphoreReferenceCount()
715 mOutstandingImageRefs += count; in setSemaphoreReferenceCount()
719 logWrapper("Setting an image reference count of " + count + " Total refs = " in setSemaphoreReferenceCount()
735 protected void incrementSemaphoreReferenceCount(ImageToProcess img, int count) in incrementSemaphoreReferenceCount() argument
744 protocol.addCount(count); in incrementSemaphoreReferenceCount()
747 mOutstandingImageRefs += count; in incrementSemaphoreReferenceCount()
849 private int count; field in ImageBackend.BlockSignalProtocol
857 count = value; in setCount()
864 value = count; in getCount()
[all …]
/packages/apps/Gallery/src/com/android/camera/
DEvenlySpacedLayout.java50 int count = getChildCount(); in onMeasure() local
53 for (int i = 0; i < count; i++) { in onMeasure()
70 int count = getChildCount(); in layoutHorizontal() local
74 for (int i = 0; i < count; i++) { in layoutHorizontal()
85 for (int i = 0; i < count; i++) { in layoutHorizontal()
97 int count = getChildCount(); in layoutVertical() local
101 for (int i = 0; i < count; i++) { in layoutVertical()
112 for (int i = 0; i < count; i++) { in layoutVertical()
/packages/apps/Settings/src/com/android/settings/widget/
DMatchParentShrinkingLinearLayout.java331 final int count = getVirtualChildCount(); in drawDividersVertical() local
332 for (int i = 0; i < count; i++) { in drawDividersVertical()
344 if (hasDividerBeforeChildAt(count)) { in drawDividersVertical()
345 final View child = getVirtualChildAt(count - 1); in drawDividersVertical()
358 final int count = getVirtualChildCount(); in drawDividersHorizontal() local
360 for (int i = 0; i < count; i++) { in drawDividersHorizontal()
377 if (hasDividerBeforeChildAt(count)) { in drawDividersHorizontal()
378 final View child = getVirtualChildAt(count - 1); in drawDividersHorizontal()
650 final int count = getVirtualChildCount(); in measureVertical() local
664 for (int i = 0; i < count; ++i) { in measureVertical()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DMatchParentShrinkingLinearLayout.java331 final int count = getVirtualChildCount(); in drawDividersVertical() local
332 for (int i = 0; i < count; i++) { in drawDividersVertical()
344 if (hasDividerBeforeChildAt(count)) { in drawDividersVertical()
345 final View child = getVirtualChildAt(count - 1); in drawDividersVertical()
358 final int count = getVirtualChildCount(); in drawDividersHorizontal() local
360 for (int i = 0; i < count; i++) { in drawDividersHorizontal()
377 if (hasDividerBeforeChildAt(count)) { in drawDividersHorizontal()
378 final View child = getVirtualChildAt(count - 1); in drawDividersHorizontal()
650 final int count = getVirtualChildCount(); in measureVertical() local
664 for (int i = 0; i < count; ++i) { in measureVertical()
[all …]
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/
DCountedDataInputStream.java30 private int count = 0; field in CountedDataInputStream
41 return count; in getReadByteCount()
47 count += (r >= 0) ? r : 0; in read()
54 count += (r >= 0) ? r : 0; in read()
61 count += (r >= 0) ? 1 : 0; in read()
68 count += skip; in skip()
79 long cur = count; in skipTo()

12345678910>>...30