Searched defs:count (Results 1 - 25 of 95) sorted by relevance

1234

/packages/apps/Email/src/org/apache/commons/io/output/
H A DCountingOutputStream.java33 /** The count of bytes that have passed. */
34 private long count; field in class:CountingOutputStream
48 * keeping count of the number of bytes written.
55 count += b.length;
61 * keeping count of the number of bytes written.
70 count += len;
75 * Writes a single byte to the output stream adding to the count of the
83 count++;
92 * count is greater than can be expressed by an <code>int</code>.
96 * @throws ArithmeticException if the byte count i
[all...]
H A DThresholdingOutputStream.java211 * @param count The number of bytes about to be written to the underlying
216 protected void checkThreshold(int count) throws IOException argument
218 if (!thresholdExceeded && (written + count > threshold))
H A DByteArrayOutputStream.java60 /** The total count of bytes in all the filled buffers. */
64 /** The total count of bytes written. */
65 private int count; field in class:ByteArrayOutputStream
151 int newcount = count + len;
153 int inBufferPos = count - filledBufferSum;
163 count = newcount;
173 int inBufferPos = count - filledBufferSum;
175 needNewBuffer(count + 1);
179 count++;
195 int inBufferPos = count
[all...]
/packages/apps/Email/src/org/apache/james/mime4j/decoder/
H A DByteQueue.java46 public int count() { method in class:ByteQueue
/packages/apps/Email/src/org/apache/commons/io/input/
H A DCountingInputStream.java34 /** The count of bytes that have passed. */
35 private long count; field in class:CountingInputStream
48 * Reads a number of bytes into the byte array, keeping count of the
58 this.count += (found >= 0) ? found : 0;
64 * keeping count of the number read.
75 this.count += (found >= 0) ? found : 0;
80 * Reads the next byte of data adding to the count of bytes received
89 this.count += (found >= 0) ? 1 : 0;
95 * amount to the count.
104 this.count
[all...]
/packages/apps/Email/tests/src/com/android/email/activity/
H A DMailboxFragmentAdapterTest.java67 // "unloaded" messages will not affect 'favorite' message count
88 // Row 1 -- combined inbox (with unread count)
92 // Row 2 -- all starred (with total count)
96 // Row 3 -- all drafts (with total count)
100 // Row 4 -- combined outbox (with total count)
115 int count) {
120 Assert.assertEquals(count, MailboxFragmentAdapter.getMessageCount(cursor));
121 Assert.assertEquals(count, MailboxFragmentAdapter.getUnreadCount(cursor));
114 checkSpecialMailboxRow(Cursor cursor, long id, int type, int count) argument
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DFilterEmptyPromptSet.java47 public ArrayList<MediaItem> getMediaItem(int start, int count) { argument
50 return mBaseSet.getMediaItem(start, count);
51 } else if (start == 0 && count == 1) {
H A DSingleItemAlbum.java39 public ArrayList<MediaItem> getMediaItem(int start, int count) { argument
42 // If [start, start+count) contains the index 0, return the item.
43 if (start <= 0 && start + count > 0) {
H A DComboAlbum.java42 public ArrayList<MediaItem> getMediaItem(int start, int count) { argument
46 if (count < 1) break;
48 int fetchCount = (start + count <= size) ? count : size - start;
51 count -= fetchItems.size();
62 int count = 0;
64 count += set.getMediaItemCount();
66 return count;
H A DFilterTypeSet.java62 public ArrayList<MediaItem> getMediaItem(int start, int count) { argument
64 mPaths, start, count, mDataManager);
H A DClusterAlbum.java70 public ArrayList<MediaItem> getMediaItem(int start, int count) { argument
71 return getMediaItemFromPath(mPaths, start, count, mDataManager);
75 ArrayList<Path> paths, int start, int count,
80 int end = Math.min(start + count, paths.size());
74 getMediaItemFromPath( ArrayList<Path> paths, int start, int count, DataManager dataManager) argument
/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DInterruptableOutputStream.java43 public void write(byte[] buffer, int offset, int count) throws IOException { argument
44 int end = offset + count;
/packages/apps/Gallery2/src/com/android/photos/data/
H A DAlbumSetLoader.java30 private static MatrixCursor createRandomCursor(int count) { argument
31 MatrixCursor c = new MatrixCursor(PROJECTION, count);
32 for (int i = 0; i < count; i++) {
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
H A Dnj_str.c55 NJ_UINT16 count = 0; local
59 count++;
61 return count;
92 NJ_UINT16 count = 0; local
96 count++;
99 return count;
/packages/apps/Contacts/tests/src/com/android/contacts/activities/
H A DPeopleActivityTest.java196 private void expectContactListQuery(int count) { argument
207 for (int i = 1; i <= count; i++) {
/packages/apps/Email/src/com/android/email/activity/
H A DUiUtilities.java59 public static String getMessageCountForUi(Context context, int count, argument
61 if (replaceZeroWithBlank && (count == 0)) {
63 } else if (count > 999) {
66 return Integer.toString(count);
/packages/apps/Gallery2/tests/src/com/android/gallery3d/data/
H A DMockSet.java50 public ArrayList<MediaItem> getMediaItem(int start, int count) { argument
52 int end = Math.min(start + count, mItems.size());
/packages/apps/Mms/apptests/src/com/android/mms/tests/
H A DSmsSendIntentTestActivity.java140 private void sendMessage(int count, int dupeCount) { argument
162 for (int i = 0; i < count; i++) {
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
H A DRankAwarePromoterTest.java131 private static List<Corpus> createMockCorpora(int count, int defaultCount) { argument
133 for (int i = 0; i < count; i++) {
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/
H A DMockTask.java58 public void assertRunCount(String message, int count) { argument
59 assertEquals(message + ": " + toString() + " bad run count", count, getRunCount());
/packages/apps/Browser/src/com/android/browser/homepages/
H A DRequestHandler.java252 void writeString(String str, int offset, int count) throws IOException { argument
253 mOutput.write(str.getBytes(), offset, count);
/packages/apps/Contacts/src/com/android/contacts/widget/
H A DPinnedHeaderListDemoActivity.java136 private Cursor makeCursor(String name, int count) { argument
138 for (int i = 0; i < count; i++) {
/packages/apps/Contacts/tests/src/com/android/contacts/detail/
H A DStreamItemAdapterTest.java85 private ArrayList<StreamItemEntry> createStreamItemList(int count) { argument
87 for (int index = 0; index < count; ++index) {
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
H A DContactListPinnedHeaderView.java183 public void setCountView(String count) { argument
191 mCountTextView.setText(count);
192 if (count == null || count.isEmpty()) {
/packages/apps/Email/src/com/android/email/activity/setup/
H A DEditQuickResponseDialog.java115 public void beforeTextChanged(CharSequence s, int start, int count, int after) {} argument
119 public void onTextChanged(CharSequence s, int start, int before, int count) {} argument

Completed in 498 milliseconds

1234