/packages/apps/Email/tests/src/com/android/email/provider/ |
D | ProviderTests.java | 652 int numBoxes = EmailContent.count(mMockContext, Account.CONTENT_URI, null, null); in testAccountDelete() 660 numBoxes = EmailContent.count(mMockContext, Account.CONTENT_URI, null, null); in testAccountDelete() 668 numBoxes = EmailContent.count(mMockContext, Account.CONTENT_URI, null, null); in testAccountDelete() 888 private int count(Context context, Uri uri, String selection, String[] selectionArgs) { in count() method in ProviderTests 919 assertEquals(8, count(mMockContext, Message.CONTENT_URI, null, null)); in testMessageQueryWithLimit() 921 count(mMockContext, EmailContent.uriWithLimit(Message.CONTENT_URI, 1), null, null)); in testMessageQueryWithLimit() 923 count(mMockContext, EmailContent.uriWithLimit(Message.CONTENT_URI, 3), null, null)); in testMessageQueryWithLimit() 924 assertEquals(8, count(mMockContext, EmailContent.uriWithLimit(Message.CONTENT_URI, 100), in testMessageQueryWithLimit() 930 count(mMockContext, Message.CONTENT_URI, MessageColumns.MAILBOX_KEY + "=?", args)); in testMessageQueryWithLimit() 931 assertEquals(1, count(mMockContext, EmailContent.uriWithLimit(Message.CONTENT_URI, 1), in testMessageQueryWithLimit() [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(count, 2); in testGetFolders() 152 count = 0; in testGetFolders() 162 switch (count) { in testGetFolders() 176 count++; in testGetFolders() [all …]
|
/packages/apps/VideoEditor/src/com/android/videoeditor/service/ |
D | VideoEditorProject.java | 361 final int count = mMediaItems.size(); in updateMediaItem() local 362 for (int i = 0; i < count; i++) { in updateMediaItem() 373 if (i < count - 1) { in updateMediaItem() 391 final int count = mMediaItems.size(); in removeMediaItem() local 392 for (int i = 0; i < count; i++) { in removeMediaItem() 405 if (i < count - 1) { in removeMediaItem() 477 final int count = mMediaItems.size(); in getLastMediaItem() local 478 if (count == 0) { in getLastMediaItem() 481 return mMediaItems.get(count - 1); in getLastMediaItem() 540 final int count = mMediaItems.size(); in getNextMediaItem() local [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
D | ContactEntryListAdapter.java | 166 int count = getPartitionCount(); in getPartitionByDirectoryId() local 167 for (int i = 0; i < count; i++) { in getPartitionByDirectoryId() 179 int count = getPartitionCount(); in getDirectoryById() local 180 for (int i = 0; i < count; i++) { in getDirectoryById() 200 int count = getPartitionCount(); in onDataReload() local 201 for (int i = 0; i < count; i++) { in onDataReload() 218 int count = getPartitionCount(); in clearPartitions() local 219 for (int i = 0; i < count; i++) { in clearPartitions() 403 int count = getPartitionCount(); in changeDirectories() local 404 for (int i = count; --i >= 0; ) { in changeDirectories() [all …]
|
/packages/apps/Dialer/tests/src/com/android/dialer/tests/calllog/ |
D | FillCallLogTestActivity.java | 72 int count; in onCreate() 74 count = Integer.parseInt(mNumberTextView.getText().toString()); in onCreate() 75 if (count > 100) { in onCreate() 83 addEntriesToCallLog(count, mUseRandomNumbers.isChecked()); in onCreate() 87 mProgressBar.setMax(count); in onCreate() 99 private void addEntriesToCallLog(final int count, boolean useRandomNumbers) { in addEntriesToCallLog() argument 101 addRandomNumbers(count); in addEntriesToCallLog() 104 new CallLogLoaderListener(count)); in addEntriesToCallLog() 159 private void addRandomNumbers(int count) { in addRandomNumbers() argument 160 ContentValues[] values = new ContentValues[count]; in addRandomNumbers() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | UserHistoryForgettingCurveUtils.java | 133 private static int calcFreq(int elapsedTime, int count, int level) { in calcFreq() argument 138 if (count == COUNT_MAX) { in calcFreq() 147 /* pakcage */ static byte calcFc(int elapsedTime, int count, int level) { in calcFc() argument 149 final int c = Math.min(COUNT_MAX, Math.max(0, count)); in calcFc() 156 final int count = fcToCount(fc); in fcToFreq() local 158 return calcFreq(elapsedTime, count, level); in fcToFreq() 163 int count = fcToCount(fc); in pushElapsedTime() local 168 count = COUNT_MAX; in pushElapsedTime() 173 return calcFc(elapsedTime, count, level); in pushElapsedTime() 178 int count = fcToCount(fc); in pushCount() local [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/Camera2/src/com/android/camera/ui/ |
D | PieRenderer.java | 395 final int count = items.size(); in layoutItems() local 400 float angle = getArcCenter(item, pos, count); in layoutItems() 431 private float getArcCenter(PieItem item, int pos, int count) { in getArcCenter() argument 432 return getCenter(pos, count, SWEEP_ARC); in getArcCenter() 435 private float getSliceCenter(PieItem item, int pos, int count) { in getSliceCenter() argument 437 return center + (count - 1) * SWEEP_SLICE / 2f in getSliceCenter() 441 private float getCenter(int pos, int count, float sweep) { in getCenter() argument 442 return mCenterAngle + (count - 1) * sweep / 2f - pos * sweep; in getCenter() 556 final int count = items.size(); in onDraw() local 559 drawItem(Math.max(0, mOpen.size() - 2), pos, count, canvas, item, alpha); in onDraw() [all …]
|
/packages/inputmethods/PinyinIME/jni/share/ |
D | userdict.cpp | 416 uint16 count = searchable->splid_count[i]; in is_prefix_spell_id() local 417 if (fullids[i] >= start_id && fullids[i] < start_id + count) in is_prefix_spell_id() 434 uint16 count = searchable->splid_count[i]; in equal_spell_id() local 435 if (fullids[i] >= start_id && fullids[i] < start_id + count) in equal_spell_id() 535 uint32 start, count; in _get_lpis() local 536 bool cached = cache_hit(&searchable, &start, &count); in _get_lpis() 539 max_off = start + count; in _get_lpis() 601 count = middle - start; in _get_lpis() 602 cache_push(USER_DICT_CACHE, &searchable, start, count); in _get_lpis() 698 uint32 start, count; in _get_lpis() local [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/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/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/DeskClock/src/com/android/deskclock/provider/ |
D | ClockProvider.java | 132 int count; in update() local 138 count = db.update(ClockDatabaseHelper.ALARMS_TABLE_NAME, values, in update() 144 count = db.update(ClockDatabaseHelper.INSTANCES_TABLE_NAME, values, in update() 150 count = db.update(ClockDatabaseHelper.CITIES_TABLE_NAME, values, in update() 161 return count; in update() 189 int count; in delete() local 194 count = db.delete(ClockDatabaseHelper.ALARMS_TABLE_NAME, where, whereArgs); in delete() 204 count = db.delete(ClockDatabaseHelper.ALARMS_TABLE_NAME, where, whereArgs); in delete() 207 count = db.delete(ClockDatabaseHelper.INSTANCES_TABLE_NAME, where, whereArgs); in delete() 217 count = db.delete(ClockDatabaseHelper.INSTANCES_TABLE_NAME, where, whereArgs); in delete() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | RichInputMethodManager.java | 177 final int count = imiList.size(); in getImiIndexInList() local 178 for (int index = 0; index < count; index++) { in getImiIndexInList() 190 final int count = imiList.size(); in getNextNonAuxiliaryIme() local 191 for (int i = 1; i < count; i++) { in getNextNonAuxiliaryIme() 192 final int nextIndex = (currentIndex + i) % count; in getNextNonAuxiliaryIme() 203 final int count = imi.getSubtypeCount(); in isAuxiliaryIme() local 204 if (count == 0) { in isAuxiliaryIme() 207 for (int index = 0; index < count; index++) { in isAuxiliaryIme() 250 final int count = subtypes.size(); in getSubtypeIndexInList() local 251 for (int index = 0; index < count; index++) { in getSubtypeIndexInList() [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/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | LegacyApiSupport.java | 948 int count = 0; in update() local 951 count = updateContactTime(uri, values); in update() 971 count = updateAll(uri, match, values, selection, selectionArgs); in update() 975 if (count > 0) { in update() 979 return count; in update() 989 int count = 0; in updateAll() local 993 count += update(match, id, values); in updateAll() 999 return count; in updateAll() 1003 int count = 0; in update() local 1007 count = updatePeople(id, values); in update() [all …]
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | SQLiteContentProvider.java | 145 int count = 0; in update() local 153 count = updateInTransaction(uri, values, selection, selectionArgs, in update() 155 if (count > 0) { in update() 166 count = updateInTransaction(uri, values, selection, selectionArgs, in update() 168 if (count > 0) { in update() 173 return count; in update() 178 int count = 0; in delete() local 186 count = deleteInTransaction(uri, selection, selectionArgs, isCallerSyncAdapter); in delete() 187 if (count > 0) { in delete() 198 count = deleteInTransaction(uri, selection, selectionArgs, isCallerSyncAdapter); in delete() [all …]
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | SmsProvider.java | 293 final int count = messages.size(); in getAllMessagesFromIcc() local 294 MatrixCursor cursor = new MatrixCursor(ICC_COLUMNS, count); in getAllMessagesFromIcc() 295 for (int i = 0; i < count; i++) { in getAllMessagesFromIcc() 542 int count; in delete() local 547 count = db.delete(TABLE_SMS, where, whereArgs); in delete() 548 if (count != 0) { in delete() 557 count = MmsSmsDatabaseHelper.deleteOneSms(db, message_id); in delete() 577 count = db.delete(TABLE_SMS, where, whereArgs); in delete() 582 count = db.delete("raw", where, whereArgs); in delete() 586 count = db.delete("sr_pending", where, whereArgs); in delete() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | FolderItemView.java | 150 private void setUnreadCount(int count) { in setUnreadCount() argument 151 mUnreadCountTextView.setVisibility(count > 0 ? View.VISIBLE : View.GONE); in setUnreadCount() 152 if (count > 0) { in setUnreadCount() 153 mUnreadCountTextView.setText(Utils.getUnreadCountString(getContext(), count)); in setUnreadCount() local 160 private void setUnseenCount(final int color, final int count) { in setUnseenCount() argument 161 mUnseenCountTextView.setVisibility(count > 0 ? View.VISIBLE : View.GONE); in setUnseenCount() 162 if (count > 0) { in setUnseenCount() 164 mUnseenCountTextView.setText(Utils.getUnreadCountString(getContext(), count)); in setUnseenCount() local 172 public final void overrideUnreadCount(int count) { in overrideUnreadCount() argument 174 mUnreadCountTextView.getText(), count); in overrideUnreadCount() [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/Launcher3/src/com/android/launcher3/ |
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() 112 int count = getChildCount(); in onLayout() local 115 if (mCenterContent && count > 0) { in onLayout() 119 for (int i = 0; i < count; i++) { in onLayout() 132 for (int i = 0; i < count; i++) { in onLayout() 151 final int count = getChildCount(); in setChildrenDrawingCacheEnabled() local 152 for (int i = 0; i < count; i++) { in setChildrenDrawingCacheEnabled()
|
/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/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/VoiceDialer/src/com/android/voicedialer/ |
D | CommandRecognizerEngine.java | 198 int count = 0; in addNameEntriesToGrammar() local 218 count, e); in addNameEntriesToGrammar() 222 count++; in addNameEntriesToGrammar() 331 int count = 0; in addOpenEntriesToGrammar() local 332 for (int i = 0; 0 != (i = entry.indexOf(' ', i) + 1); count++) ; in addOpenEntriesToGrammar() 333 if (count > RESULT_LIMIT) continue; in addOpenEntriesToGrammar() 998 int count = 0; in onRecognitionSuccess() local 1018 count++; in onRecognitionSuccess() 1046 count++; in onRecognitionSuccess() 1050 if (count == 0 || !mMinimizeResults) { in onRecognitionSuccess() [all …]
|