/packages/apps/TV/tests/unit/src/com/android/tv/data/ |
D | GenreItemTest.java | 38 int count = GenreItems.getGenreCount(); in testGetCanonicalGenre() local 40 for (int i = 1; i < count; ++i) { in testGetCanonicalGenre() 46 int count = GenreItems.getGenreCount(); in testGetId_base() local 49 assertInRange(GenreItems.getId(Genres.FAMILY_KIDS), 1, count - 1); in testGetId_base() 50 assertInRange(GenreItems.getId(Genres.SPORTS), 1, count - 1); in testGetId_base() 51 assertInRange(GenreItems.getId(Genres.SHOPPING), 1, count - 1); in testGetId_base() 52 assertInRange(GenreItems.getId(Genres.MOVIES), 1, count - 1); in testGetId_base() 53 assertInRange(GenreItems.getId(Genres.COMEDY), 1, count - 1); in testGetId_base() 54 assertInRange(GenreItems.getId(Genres.TRAVEL), 1, count - 1); in testGetId_base() 55 assertInRange(GenreItems.getId(Genres.DRAMA), 1, count - 1); in testGetId_base() [all …]
|
/packages/apps/UnifiedEmail/tests/src/com/android/mail/providers/protos/mock/ |
D | MockUiProviderTests.java | 78 int count = 0; in testGetFolders() local 94 switch (count) { in testGetFolders() 129 count++; in testGetFolders() 132 count = 0; in testGetFolders() 139 switch (count) { in testGetFolders() 147 count++; in testGetFolders() 151 assertEquals(2, count); in testGetFolders() 152 count = 0; in testGetFolders() 162 switch (count) { in testGetFolders() 176 count++; in testGetFolders() [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/ |
D | ByteArrayOutputStream.java | 65 private int count; field in ByteArrayOutputStream 151 int newcount = count + len; in write() 153 int inBufferPos = count - filledBufferSum; in write() 163 count = newcount; in write() 173 int inBufferPos = count - filledBufferSum; in write() 175 needNewBuffer(count + 1); in write() 179 count++; in write() 195 int inBufferPos = count - filledBufferSum; in write() 200 count += n; in write() 215 return count; in size() [all …]
|
D | CountingOutputStream.java | 34 private long count; field in CountingOutputStream 55 count += b.length; in write() 70 count += len; in write() 83 count++; in write() 135 return this.count; in getByteCount() 149 long tmp = this.count; in resetByteCount() 150 this.count = 0; in resetByteCount()
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
D | MessageChangeLogTable.java | 115 private static String getSelectionForMessages(final long[] messageKeys, final int count) { in getSelectionForMessages() argument 117 for (int i = 0; i < count; ++i) { in getSelectionForMessages() 137 final long[] messageKeys, final int count) { in deleteRowsForMessages() argument 138 if (count == 0) { in deleteRowsForMessages() 141 return cr.delete(uri, getSelectionForMessages(messageKeys, count), null); in deleteRowsForMessages() 154 final long[] messageKeys, final int count, final int status) { in updateStatusForMessages() argument 155 if (count == 0) { in updateStatusForMessages() 160 return cr.update(uri, cv, getSelectionForMessages(messageKeys, count), null); in updateStatusForMessages() 172 final long[] messageKeys, final int count) { in retryMessages() argument 173 return updateStatusForMessages(cr, uri, messageKeys, count, STATUS_NONE); in retryMessages() [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/ |
D | CountingInputStream.java | 35 private long count; field in CountingInputStream 58 this.count += (found >= 0) ? found : 0; in read() 75 this.count += (found >= 0) ? found : 0; in read() 89 this.count += (found >= 0) ? 1 : 0; in read() 104 this.count += skip; in skip() 156 return this.count; in getByteCount() 170 long tmp = this.count; in resetByteCount() 171 this.count = 0; in resetByteCount()
|
D | CharSequenceReader.java | 106 int count = 0; in read() local 110 return count; in read() 113 count++; in read() 115 return count; in read() 141 int count = dest - idx; in skip() local 143 return count; in skip()
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | FolderItemView.java | 143 private void setUnreadCount(int count) { in setUnreadCount() argument 144 mUnreadCountTextView.setVisibility(count > 0 ? View.VISIBLE : View.GONE); in setUnreadCount() 145 if (count > 0) { in setUnreadCount() 146 mUnreadCountTextView.setText(Utils.getUnreadCountString(getContext(), count)); in setUnreadCount() local 153 private void setUnseenCount(final int color, final int count) { in setUnseenCount() argument 154 mUnseenCountTextView.setVisibility(count > 0 ? View.VISIBLE : View.GONE); in setUnseenCount() 155 if (count > 0) { in setUnseenCount() 160 mUnseenCountTextView.setText(Utils.getUnseenCountString(getContext(), count)); in setUnseenCount() local 168 public final void overrideUnreadCount(int count) { in overrideUnreadCount() argument 170 mUnreadCountTextView.getText(), count); in overrideUnreadCount() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | SelectionManager.java | 123 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/UnifiedEmail/src/com/android/mail/browse/ |
D | MergedAdapter.java | 90 int count = 0; in getCount() local 92 count += adapter.getCount(); in getCount() 94 return count; in getCount() 109 int count = 0; in getAdapterOffsetForItem() local 113 int newCount = count + a.getCount(); in getAdapterOffsetForItem() 115 return new LocalAdapterPosition<T>(a, position - count); in getAdapterOffsetForItem() 117 count = newCount; in getAdapterOffsetForItem() 139 int count = 0; in getViewTypeCount() local 141 count += adapter.getViewTypeCount(); in getViewTypeCount() 143 return count; in getViewTypeCount()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | PagedViewCellLayoutChildren.java | 48 final int count = getChildCount(); in cancelLongPress() local 49 for (int i = 0; i < count; i++) { in cancelLongPress() 89 final int count = getChildCount(); in onMeasure() local 90 for (int i = 0; i < count; i++) { in onMeasure() 111 int count = getChildCount(); in onLayout() local 114 if (mCenterContent && count > 0) { in onLayout() 118 for (int i = 0; i < count; i++) { in onLayout() 131 for (int i = 0; i < count; i++) { in onLayout() 150 final int count = getChildCount(); in setChildrenDrawingCacheEnabled() local 151 for (int i = 0; i < count; i++) { in setChildrenDrawingCacheEnabled()
|
D | ShortcutAndWidgetContainer.java | 61 final int count = getChildCount(); in getChildAt() local 62 for (int i = 0; i < count; i++) { in getChildAt() 94 int count = getChildCount(); in onMeasure() local 95 for (int i = 0; i < count; i++) { in onMeasure() 136 int count = getChildCount(); in onLayout() local 137 for (int i = 0; i < count; i++) { in onLayout() 180 final int count = getChildCount(); in cancelLongPress() local 181 for (int i = 0; i < count; i++) { in cancelLongPress() 189 final int count = getChildCount(); in setChildrenDrawingCacheEnabled() local 190 for (int i = 0; i < count; i++) { in setChildrenDrawingCacheEnabled()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | ComboAlbum.java | 42 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/Email/tests/src/com/android/email/provider/ |
D | ProviderTests.java | 621 int numBoxes = EmailContent.count(mMockContext, Account.CONTENT_URI, null, null); in testAccountDelete() 629 numBoxes = EmailContent.count(mMockContext, Account.CONTENT_URI, null, null); in testAccountDelete() 637 numBoxes = EmailContent.count(mMockContext, Account.CONTENT_URI, null, null); in testAccountDelete() 857 private int count(Context context, Uri uri, String selection, String[] selectionArgs) { in count() method in ProviderTests 888 assertEquals(8, count(mMockContext, Message.CONTENT_URI, null, null)); in testMessageQueryWithLimit() 890 count(mMockContext, EmailContent.uriWithLimit(Message.CONTENT_URI, 1), null, null)); in testMessageQueryWithLimit() 892 count(mMockContext, EmailContent.uriWithLimit(Message.CONTENT_URI, 3), null, null)); in testMessageQueryWithLimit() 893 assertEquals(8, count(mMockContext, EmailContent.uriWithLimit(Message.CONTENT_URI, 100), in testMessageQueryWithLimit() 899 count(mMockContext, Message.CONTENT_URI, MessageColumns.MAILBOX_KEY + "=?", args)); in testMessageQueryWithLimit() 900 assertEquals(1, count(mMockContext, EmailContent.uriWithLimit(Message.CONTENT_URI, 1), in testMessageQueryWithLimit() [all …]
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | SQLiteContentProvider.java | 147 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/apps/Gallery2/jni_jpegstream/src/ |
D | jpeg_reader.cpp | 117 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/TvSettings/Settings/src/com/android/tv/settings/util/ |
D | CachedInputStream.java | 135 public int read(@NonNull byte[] buffer, int offset, int count) throws IOException { in read() argument 140 int reads = in.read(buffer, offset, count); in read() 143 if (count == 0) { in read() 146 int copied = copyMarkedBuffer(buffer, offset, count); in read() 147 count -= copied; in read() 150 while (count > 0) { in read() 159 int toRead = count > leftInBuffer ? leftInBuffer : count; in read() 167 count -= reads; in read() 169 reads = in.read(buffer, offset, count); in read()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | Exif.java | 83 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/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/ |
D | stack.h | 111 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/ContactsCommon/src/com/android/contacts/common/list/ |
D | ContactEntryListAdapter.java | 184 int count = getPartitionCount(); in getPartitionByDirectoryId() local 185 for (int i = 0; i < count; i++) { in getPartitionByDirectoryId() 197 int count = getPartitionCount(); in getDirectoryById() local 198 for (int i = 0; i < count; i++) { in getDirectoryById() 218 int count = getPartitionCount(); in onDataReload() local 219 for (int i = 0; i < count; i++) { in onDataReload() 236 int count = getPartitionCount(); in clearPartitions() local 237 for (int i = 0; i < count; i++) { in clearPartitions() 445 int count = getPartitionCount(); in changeDirectories() local 446 for (int i = count; --i >= 0; ) { in changeDirectories() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | MultiAttachmentLayout.java | 164 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/apps/Launcher3/src/com/android/launcher3/ |
D | ShortcutAndWidgetContainer.java | 68 final int count = getChildCount(); in getChildAt() local 69 for (int i = 0; i < count; i++) { in getChildAt() 101 int count = getChildCount(); in onMeasure() local 107 for (int i = 0; i < count; i++) { in onMeasure() 176 int count = getChildCount(); in onLayout() local 177 for (int i = 0; i < count; i++) { in onLayout() 219 final int count = getChildCount(); in cancelLongPress() local 220 for (int i = 0; i < count; i++) { in cancelLongPress() 228 final int count = getChildCount(); in setChildrenDrawingCacheEnabled() local 229 for (int i = 0; i < count; i++) { in setChildrenDrawingCacheEnabled()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | EvenlySpacedLayout.java | 50 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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | RichInputMethodManager.java | 190 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/tests/src/com/android/dialer/tests/calllog/ |
D | FillCallLogTestActivity.java | 122 int count; in onCreate() 124 count = Integer.parseInt(mNumberTextView.getText().toString()); in onCreate() 125 if (count > 100) { in onCreate() 133 addEntriesToCallLog(count, mUseRandomNumbers.isChecked()); in onCreate() 137 mProgressBar.setMax(count); in onCreate() 162 public void beforeTextChanged(CharSequence s, int start, int count, int after) { in onCreate() 167 public void onTextChanged(CharSequence s, int start, int before, int count) { in onCreate() 195 private void addEntriesToCallLog(final int count, boolean useRandomNumbers) { in addEntriesToCallLog() argument 197 addRandomNumbers(count); in addEntriesToCallLog() 200 new CallLogLoaderListener(count)); in addEntriesToCallLog() [all …]
|