Home
last modified time | relevance | path

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

12345678910>>...32

/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/services/Car/evs/sampleDriver/
DConfigManager.cpp265 size_t count = 0; in readCameraMetadata() local
269 count in readCameraMetadata()
273 tag, make_pair(data, count) in readCameraMetadata()
278 get_camera_metadata_tag_type(tag), count in readCameraMetadata()
631 size_t count = *reinterpret_cast<size_t *>(p); p += sizeof(size_t); in readConfigDataFromBinary() local
639 count); in readConfigDataFromBinary()
640 p += count * sizeof(uint8_t); in readConfigDataFromBinary()
647 count); in readConfigDataFromBinary()
648 p += count * sizeof(int32_t); in readConfigDataFromBinary()
655 count); in readConfigDataFromBinary()
[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/services/Car/watchdog/server/src/
DIoPerfCollection.cpp105 uint64_t count = 0; member
149 if (it->count < ioBlockedTasksCnt) { in getUidProcessStats()
154 .count = ioBlockedTasksCnt, in getUidProcessStats()
162 if (it->count < stats.process.majorFaults) { in getUidProcessStats()
167 .count = stats.process.majorFaults, in getUidProcessStats()
257 uidStats.packageName.c_str(), uidStats.count, in toString()
258 percentage(uidStats.count, data.totalMajorFaults)); in toString()
261 procStats.count, percentage(procStats.count, uidStats.count)); in toString()
276 uidStats.packageName.c_str(), uidStats.count, in toString()
277 percentage(uidStats.count, data.topNIoBlockedUidsTotalTaskCnt[i])); in toString()
[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.java54 if (prevKey.count == notificationKey.count) { in addOrUpdateNotificationKey()
58 mTotalCount -= prevKey.count; in addOrUpdateNotificationKey()
59 mTotalCount += notificationKey.count; in addOrUpdateNotificationKey()
60 prevKey.count = notificationKey.count; in addOrUpdateNotificationKey()
65 mTotalCount += notificationKey.count; in addOrUpdateNotificationKey()
76 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/services/Car/watchdog/server/tests/
DIoPerfCollectionTest.cpp155 return l.comm == r.comm && l.count == r.count; in isEqual()
157 return l.userId == r.userId && l.packageName == r.packageName && l.count == r.count && in isEqual()
198 .count(), in TEST()
204 .count(), in TEST()
340 ASSERT_EQ(looperStub->numSecondsElapsed(), kTestBootInterval.count()) in TEST()
341 << "Subsequent boot-time collection didn't happen at " << kTestBootInterval.count() in TEST()
476 ASSERT_EQ(looperStub->numSecondsElapsed(), kTestPeriodicInterval.count()) in TEST()
477 << "First periodic collection didn't happen at " << kTestPeriodicInterval.count() in TEST()
537 ASSERT_EQ(looperStub->numSecondsElapsed(), kTestPeriodicInterval.count()) in TEST()
538 << "Subsequent periodic collection didn't happen at " << kTestPeriodicInterval.count() in TEST()
[all …]
/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/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()
/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/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/Messaging/src/com/android/messaging/ui/
DMultiAttachmentLayout.java164 final Rect transitionRect, final int count) { in bindAttachments() argument
170 determineLayout(attachments, count); in bindAttachments()
208 private void determineLayout(final Iterable<MessagePartData> attachments, final int count) { in determineLayout() argument
212 mCurrentLayout = ATTACHMENT_RTL_LAYOUTS_BY_COUNT[Math.min(count, in determineLayout()
215 mCurrentLayout = ATTACHMENT_LAYOUTS_BY_COUNT[Math.min(count, in determineLayout()
222 mPlusNumber = count - mCurrentLayout.tiles.size(); in determineLayout()
229 final int count = mCurrentLayout.tiles.size(); in buildViews() local
232 while (iterator.hasNext() && i < count) { in buildViews()
263 if (count == 2 && i == 1 && transitionRect != null) { in buildViews()
304 final int count = mPreviewViews.size(); in onMeasure() local
[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/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()
DOnboardingPrefs.java93 private boolean hasReachedMaxCount(int count, @EventCountKey String eventKey) { in hasReachedMaxCount() argument
94 return count >= MAX_COUNTS.get(eventKey); in hasReachedMaxCount()
114 int count = getCount(eventKey); in incrementEventCount() local
115 if (hasReachedMaxCount(count, eventKey)) { in incrementEventCount()
118 count++; in incrementEventCount()
119 mSharedPrefs.edit().putInt(eventKey, count).apply(); in incrementEventCount()
120 return hasReachedMaxCount(count, eventKey); in incrementEventCount()
/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/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/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/DocumentsUI/src/com/android/documentsui/sorting/
DSortingCursorWrapper.java45 final int count = cursor.getCount(); in SortingCursorWrapper() local
46 mPosition = new int[count]; in SortingCursorWrapper()
47 boolean[] isDirs = new boolean[count]; in SortingCursorWrapper()
50 String[] ids = new String[count]; in SortingCursorWrapper()
56 stringValues = new String[count]; in SortingCursorWrapper()
60 longValues = new long[count]; in SortingCursorWrapper()
65 for (int i = 0; i < count; i++) { in SortingCursorWrapper()
201 final int count = positions.length; in binarySort() local
202 for (int start = 1; start < count; start++) { in binarySort()
282 final int count = positions.length; in binarySort() local
[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/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/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 …]

12345678910>>...32