Home
last modified time | relevance | path

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

12345678

/packages/apps/Email/src/org/apache/commons/io/input/
DCountingInputStream.java35 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()
DCharSequenceReader.java106 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()
DSwappedDataInputStream.java141 int count = read( data, location, remaining ); in readFully() local
143 if( -1 == count ) in readFully()
148 remaining -= count; in readFully()
245 public int skipBytes( int count ) in skipBytes() argument
248 return (int)in.skip( count ); in skipBytes()
/packages/apps/Email/src/org/apache/commons/io/output/
DByteArrayOutputStream.java65 private int count; field in ByteArrayOutputStream
150 int newcount = count + len; in write()
152 int inBufferPos = count - filledBufferSum; in write()
162 count = newcount; in write()
171 int inBufferPos = count - filledBufferSum; in write()
173 needNewBuffer(count + 1); in write()
177 count++; in write()
193 int inBufferPos = count - filledBufferSum; in write()
198 count += n; in write()
213 return count; in size()
[all …]
DCountingOutputStream.java34 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/providers/ContactsProvider/src/com/android/providers/contacts/
DSQLiteContentProvider.java133 int count = 0; in update() local
139 count = updateInTransaction(uri, values, selection, selectionArgs); in update()
140 if (count > 0) { in update()
150 count = updateInTransaction(uri, values, selection, selectionArgs); in update()
151 if (count > 0) { in update()
156 return count; in update()
161 int count = 0; in delete() local
167 count = deleteInTransaction(uri, selection, selectionArgs); in delete()
168 if (count > 0) { in delete()
178 count = deleteInTransaction(uri, selection, selectionArgs); in delete()
[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/Camera/src/com/android/camera/
DEvenlySpacedLayout.java48 int count = getChildCount(); in onMeasure() local
51 for (int i = 0; i < count; i++) { in onMeasure()
68 int count = getChildCount(); in layoutHorizontal() local
72 for (int i = 0; i < count; i++) { in layoutHorizontal()
83 for (int i = 0; i < count; i++) { in layoutHorizontal()
95 int count = getChildCount(); in layoutVertical() local
99 for (int i = 0; i < count; i++) { in layoutVertical()
110 for (int i = 0; i < count; i++) { in layoutVertical()
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
Dnj_str.c55 NJ_UINT16 count = 0; in nj_strlen() local
59 count++; in nj_strlen()
61 return count; in nj_strlen()
92 NJ_UINT16 count = 0; in nj_charlen() local
96 count++; in nj_charlen()
99 return count; in nj_charlen()
/packages/apps/Email/src/org/apache/commons/io/
DCopyUtils.java197 int count = 0; in copy() local
201 count += n; in copy()
203 return count; in copy()
222 int count = 0; in copy() local
226 count += n; in copy()
228 return count; in copy()
DIOUtils.java999 long count = copyLarge(input, output); in copy() local
1000 if (count > Integer.MAX_VALUE) { in copy()
1003 return (int) count; in copy()
1023 long count = 0; in copyLarge() local
1027 count += n; in copyLarge()
1029 return count; in copyLarge()
1104 long count = copyLarge(input, output); in copy() local
1105 if (count > Integer.MAX_VALUE) { in copy()
1108 return (int) count; in copy()
1126 long count = 0; in copyLarge() local
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DRestrictionExceptionsTest.java104 final int count = mGrey.getDataCountForRawContact(rawContact); in testRestrictedInsertRestrictedQuery() local
105 assertEquals(1, count); in testRestrictedInsertRestrictedQuery()
111 final int count = mRed.getDataCountForRawContact(rawContact); in testRestrictedInsertGenericQuery() local
112 assertEquals(0, count); in testRestrictedInsertGenericQuery()
118 final int count = mGrey.getDataCountForRawContact(rawContact); in testGenericInsertRestrictedQuery() local
119 assertEquals(1, count); in testGenericInsertRestrictedQuery()
125 final int count = mRed.getDataCountForRawContact(rawContact); in testGenericInsertGenericQuery() local
126 assertEquals(1, count); in testGenericInsertGenericQuery()
155 int count = mRed.getDataCountForRawContact(greyContact); in testUpdateRestricted() local
156 assertEquals(0, count); in testUpdateRestricted()
[all …]
/packages/apps/Email/src/com/android/email/mail/store/
DImapStore.java211 for (int i = 0, count = attributes.size(); i < count; i++) { in getPersonalNamespaces()
482 for (int i = 0, count = messages.length; i < count; i++) { in copyMessages()
536 for (int i = 1, count = response.size(); i < count; i++) { in getMessage()
570 for (int i = 1, count = response.size(); i < count; i++) { in getMessages()
575 for (int i = 0, count = uids.size(); i < count; i++) { in getMessages()
577 listener.messageStarted(uids.get(i), i, count); in getMessages() local
582 listener.messageFinished(message, i, count); in getMessages()
606 for (int i = 1, count = response.size(); i < count; i++) { in getMessages()
613 for (int i = 0, count = uids.length; i < count; i++) { in getMessages()
615 listener.messageStarted(uids[i], i, count); in getMessages()
[all …]
/packages/apps/Email/src/com/android/email/activity/
DAccountFolderList.java254 int count = 0; in getUnreadCountByMailboxType() local
267 return count; in getUnreadCountByMailboxType()
271 int count = 0; in getCountByMailboxType() local
279 count += EmailContent.count(context, Message.CONTENT_URI, in getCountByMailboxType()
287 return count; in getCountByMailboxType()
311 int count; in getSummaryChildCursor() local
314 count = getUnreadCountByMailboxType(this, Mailbox.TYPE_INBOX); in getSummaryChildCursor()
320 row.add(Integer.valueOf(count)); // MAILBOX_UNREAD_COUNT = 4; in getSummaryChildCursor()
322 count = EmailContent.count(this, Message.CONTENT_URI, FAVORITE_COUNT_SELECTION, null); in getSummaryChildCursor()
323 if (count > 0) { in getSummaryChildCursor()
[all …]
/packages/apps/Email/src/org/apache/james/mime4j/util/
DSimpleTempStorage.java60 int count = 1000; in createTempPath() local
64 count--; in createTempPath()
65 } while (p.exists() && count > 0); in createTempPath()
88 int count = 1000; in createTempFile() local
93 count--; in createTempFile()
94 } while (f.exists() && count > 0); in createTempFile()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DRecurrenceProcessor.java73 if (rrule.count != 0) { in getLastOccurence()
281 int generateByList(int count, int freq, int byFreq) in generateByList() argument
286 if (count == 0) { in generateByList()
294 private static boolean useBYX(int freq, int freqConstant, int count) in useBYX() argument
296 return freq > freqConstant && count > 0; in useBYX()
381 int i, count, v; in generateDaysList() local
390 count = r.bydayCount; in generateDaysList()
391 if (count > 0) { in generateDaysList()
410 for (i=0; i<count; i++) { in generateDaysList()
459 count = r.bymonthdayCount; in generateDaysList()
[all …]
/packages/apps/Email/src/org/apache/james/mime4j/decoder/
DQuotedPrintableInputStream.java58 if (byteq.count() == 0) in read()
81 if (pushbackq.count() != 0) in populatePushbackQueue()
117 while (byteq.count() == 0) { in fillBuffer()
118 if (pushbackq.count() == 0) { in fillBuffer()
120 if (pushbackq.count() == 0) in fillBuffer()
/packages/inputmethods/LatinIME/src/com/android/inputmethod/latin/
DBinaryDictionary.java92 int count = getSuggestionsNative(mNativeDict, mInputCodes, codesSize, in getWords() local
100 if (ENABLE_MISSED_CHARACTERS && count < 5) { in getWords()
105 count = Math.max(count, tempCount); in getWords()
110 for (int j = 0; j < count; j++) { in getWords()
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DUserDictionaryProvider.java198 int count; in delete() local
201 count = db.delete(USERDICT_TABLE_NAME, where, whereArgs); in delete()
206 count = db.delete(USERDICT_TABLE_NAME, Words._ID + "=" + wordId in delete()
216 return count; in delete()
222 int count; in update() local
225 count = db.update(USERDICT_TABLE_NAME, values, where, whereArgs); in update()
230 count = db.update(USERDICT_TABLE_NAME, values, Words._ID + "=" + wordId in update()
240 return count; in update()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DTelephonyProvider.java489 int count; in delete() local
499 count = db.delete(CARRIERS_TABLE, where, whereArgs); in delete()
505 count = db.delete(CARRIERS_TABLE, where, whereArgs); in delete()
511 count = db.delete(CARRIERS_TABLE, Telephony.Carriers._ID + "=?", in delete()
517 count = 1; in delete()
525 count = 1; in delete()
534 if (count > 0) { in delete()
538 return count; in delete()
544 int count = 0; in update() local
554 count = db.update(CARRIERS_TABLE, values, where, whereArgs); in update()
[all …]
/packages/apps/Launcher/src/com/android/launcher/
DWorkspace.java195 int count = currentScreen.getChildCount(); in getOpenFolder() local
196 for (int i = 0; i < count; i++) { in getOpenFolder()
212 int count = currentScreen.getChildCount(); in getOpenFolders() local
213 for (int i = 0; i < count; i++) { in getOpenFolders()
370 final int count = getChildCount(); in setOnLongClickListener() local
371 for (int i = 0; i < count; i++) { in setOnLongClickListener()
448 final int count = getChildCount(); in dispatchDraw() local
449 for (int i = 0; i < count; i++) { in dispatchDraw()
476 final int count = getChildCount(); in onMeasure() local
477 for (int i = 0; i < count; i++) { in onMeasure()
[all …]
/packages/apps/AlarmClock/src/com/android/alarmclock/
DAlarmProvider.java143 int count; in update() local
151 count = db.update("alarms", values, "_id=" + rowId, null); in update()
161 return count; in update()
214 int count; in delete() local
218 count = db.delete("alarms", where, whereArgs); in delete()
228 count = db.delete("alarms", where, whereArgs); in delete()
235 return count; in delete()
/packages/apps/DeskClock/src/com/android/deskclock/
DAlarmProvider.java142 int count; in update() local
150 count = db.update("alarms", values, "_id=" + rowId, null); in update()
160 return count; in update()
213 int count; in delete() local
217 count = db.delete("alarms", where, whereArgs); in delete()
227 count = db.delete("alarms", where, whereArgs); in delete()
234 return count; in delete()
/packages/apps/GlobalSearch/src/com/android/globalsearch/
DSuggestionFactoryImpl.java80 String count = getCountString(suggestionCount, sourceStat.getQueryLimit()); in getMoreEntry() local
82 appLabel, count); in getMoreEntry()
114 private String getCountString(int count, int limit) { in getCountString() argument
115 if (limit == 0 || count < limit) { in getCountString()
116 return String.valueOf(count); in getCountString()
120 count = 10 * ((limit - 1) / 10); in getCountString()
122 return count + "+"; in getCountString()
/packages/apps/IM/src/com/android/im/service/
DStatusBarNotifier.java282 int count = mItems.size(); in getTitle() local
283 if (count == 0) { in getTitle()
285 } else if (count == 1) { in getTitle()
295 int count = mItems.size(); in getMessage() local
296 if (count == 0) { in getMessage()
298 } else if (count == 1) { in getMessage()
302 return mContext.getString(R.string.num_unread_chats, count); in getMessage()
307 int count = mItems.size(); in getIntent() local
308 if (count == 0) { in getIntent()
310 } else if (count == 1) { in getIntent()

12345678