/packages/apps/TV/tests/unit/src/com/android/tv/data/ |
D | GenreItemTest.java | 46 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/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/Dialer/java/com/android/dialer/searchfragment/list/ |
D | SearchCursorManager.java | 134 int count = 0; in getCount() local 136 count += contactsCursor.getCount(); in getCount() 140 count++; // header in getCount() 141 count += nearbyPlacesCursor.getCount(); in getCount() 145 count++; // header in getCount() 146 count += corpDirectoryCursor.getCount(); in getCount() 149 return count; in getCount() 203 int count = contactsCursor.getCount(); in getCursor() local 205 if (position - count < 0) { in getCursor() 209 position -= count; in getCursor() [all …]
|
/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/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 …]
|
/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/Contacts/src/com/android/contacts/list/ |
D | ContactEntryListAdapter.java | 180 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/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/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/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/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/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/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/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/Calendar/src/com/android/calendar/month/ |
D | MonthWeekEventsView.java | 590 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/Calendar/src/com/android/calendar/recurrencepicker/ |
D | RecurrencePickerDialog.java | 263 public void beforeTextChanged(CharSequence s, int start, int count, int after) { in beforeTextChanged() argument 267 public void onTextChanged(CharSequence s, int start, int before, int count) { in onTextChanged() argument 371 if (er.count > 0 && !TextUtils.isEmpty(er.until)) { in canHandleRecurrenceRule() 444 model.endCount = er.count; in copyEventRecurrenceToModel() 473 int count = 0; in copyEventRecurrenceToModel() local 486 count++; in copyEventRecurrenceToModel() 495 if (count != 1) { in copyEventRecurrenceToModel() 541 er.count = 0; in copyModelToEventRecurrence() 547 er.count = model.endCount; in copyModelToEventRecurrence() 549 if (er.count <= 0) { in copyModelToEventRecurrence() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | Weekdays.java | 194 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/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/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | SmsProvider.java | 356 final int count = messages.size(); in getAllMessagesFromIcc() local 357 MatrixCursor cursor = new MatrixCursor(ICC_COLUMNS, count); in getAllMessagesFromIcc() 358 for (int i = 0; i < count; i++) { in getAllMessagesFromIcc() 649 int count; in delete() local 655 count = db.delete(TABLE_SMS, where, whereArgs); in delete() 656 if (count != 0) { in delete() 665 count = MmsSmsDatabaseHelper.deleteOneSms(db, message_id); in delete() 685 count = db.delete(TABLE_SMS, where, whereArgs); in delete() 692 count = db.update(TABLE_RAW, cv, where, whereArgs); in delete() 694 Log.d(TAG, "delete: num rows marked deleted in raw table: " + count); in delete() [all …]
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/ |
D | CallLogListingTask.java | 75 private String maybeAppendCount(StringBuilder sb, int count) { in maybeAppendCount() argument 76 if (count > 1) { in maybeAppendCount() 77 sb.append(" (").append(count).append(")"); in maybeAppendCount() 83 int count, boolean isVoicemail) { in getContactName() argument 85 return maybeAppendCount(new StringBuilder(cachedName), count); in getContactName() 99 return maybeAppendCount(sb, count); in getContactName() 137 int count = 1; in doInBackground() local 146 count++; in doInBackground() 155 number, count, isVoicemail); in doInBackground() 186 if (count > 1) { in doInBackground() [all …]
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | MatchParentShrinkingLinearLayout.java | 331 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/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()
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
D | CachedInputStream.java | 133 public int read(byte[] buffer, int offset, int count) throws IOException { in read() argument 138 int reads = in.read(buffer, offset, count); in read() 141 if (count == 0) { in read() 144 int copied = copyMarkedBuffer(buffer, offset, count); in read() 145 count -= copied; in read() 148 while (count > 0) { in read() 157 int toRead = count > leftInBuffer ? leftInBuffer : count; in read() 165 count -= reads; in read() 167 reads = in.read(buffer, offset, count); in read()
|
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/ |
D | ImageBackend.java | 700 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 …]
|