Searched refs:count (Results 1 - 25 of 642) sorted by relevance

1234567891011>>

/packages/apps/DeskClock/src/com/android/deskclock/data/
H A DWidgetDAO.java27 /** Suffix for a key to a preference that stores the instance count for a given widget type. */
34 * @param count the number of widgets of the given type
35 * @return the delta between the new count and the old count
37 static int updateWidgetCount(SharedPreferences prefs, Class widgetProviderClass, int count) { argument
40 if (count == 0) {
43 prefs.edit().putInt(key, count).apply();
45 return count - oldCount;
/packages/apps/UnifiedEmail/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 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/TV/tests/unit/src/com/android/tv/data/
H A DGenreItemTest.java46 int count = GenreItems.getGenreCount();
48 for (int i = 1; i < count; ++i) {
55 int count = GenreItems.getGenreCount();
58 assertInRange(GenreItems.getId(Genres.FAMILY_KIDS), 1, count - 1);
59 assertInRange(GenreItems.getId(Genres.SPORTS), 1, count - 1);
60 assertInRange(GenreItems.getId(Genres.SHOPPING), 1, count - 1);
61 assertInRange(GenreItems.getId(Genres.MOVIES), 1, count - 1);
62 assertInRange(GenreItems.getId(Genres.COMEDY), 1, count - 1);
63 assertInRange(GenreItems.getId(Genres.TRAVEL), 1, count - 1);
64 assertInRange(GenreItems.getId(Genres.DRAMA), 1, count
[all...]
/packages/apps/Camera2/src/com/android/camera/async/
H A DUpdatableCountDownLatch.java27 public UpdatableCountDownLatch(int count) { argument
28 super(count);
/packages/apps/UnifiedEmail/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...]
H A DCharSequenceReader.java106 int count = 0;
110 return count;
113 count++;
115 return count;
141 int count = dest - idx;
143 return count;
/packages/apps/Launcher3/src/com/android/launcher3/util/
H A DParcelableSparseArray.java28 final int count = size();
29 dest.writeInt(count);
30 for (int i = 0; i < count; i++) {
41 final int count = source.readInt();
42 for (int i = 0; i < count; i++) {
/packages/apps/Dialer/java/com/android/dialer/voicemailstatus/
H A DVoicemailStatusHelper.java45 int count = 0;
51 ++count;
54 return count;
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/utility/
H A DCountingOutputStream.java23 * count available to callers.
38 public void write(byte[] buffer, int offset, int count) throws IOException { argument
39 mOutputStream.write(buffer, offset, count);
40 mCount += count;
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DCountingOutputStream.java24 * makes that count available to callers.
39 public void write(byte[] buffer, int offset, int count) throws IOException { argument
40 mOutputStream.write(buffer, offset, count);
41 mCount += 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/apps/Dialer/java/com/android/dialer/searchfragment/list/
H A DSearchCursorManager.java134 int count = 0;
136 count += contactsCursor.getCount();
140 count++; // header
141 count += nearbyPlacesCursor.getCount();
145 count++; // header
146 count += corpDirectoryCursor.getCount();
149 return count;
203 int count = contactsCursor.getCount();
205 if (position - count < 0) {
209 position -= count;
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DMailObservable.java36 final int count = mObservers.size();
39 mName, observer, count, mObservers.size());
44 final int count = mObservers.size();
47 mName, observer, count, mObservers.size());
/packages/apps/Gallery2/src/com/android/gallery3d/data/
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 DFilterEmptyPromptSet.java47 public ArrayList<MediaItem> getMediaItem(int start, int count) { argument
50 return mBaseSet.getMediaItem(start, count);
51 } else if (start == 0 && count == 1) {
/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/
H A Dhistorical_info.h30 HistoricalInfo(const int timestamp, const int level, const int count) argument
31 : mTimestamp(timestamp), mLevel(level), mCount(count) {}
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
H A DMissedCallNotificationReceiver.java49 int count =
62 updateBadgeCount(context, count);
73 .executeParallel(new Pair<>(count, phoneNumber));
76 private static void updateBadgeCount(Context context, int count) { argument
77 boolean success = ShortcutBadger.applyCount(context, count);
80 "update badge count: %d success: %b",
81 count,
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
H A DStringConcatenator.java45 final int count = items.size();
47 if (count == 1) {
51 if (count == 2) {
55 String result = items.get(count - 2);
56 for (int i = count - 3; i >= 0; i--) {
61 result = mResources.getString(R.string.join_many_items_last, result, items.get(count - 1));
/packages/apps/LegacyCamera/src/com/android/camera/
H A DExif.java83 int count = pack(jpeg, offset + 4, 4, littleEndian) + 2;
84 if (count < 10 || count > length) {
88 offset += count;
89 length -= count;
91 // Get the count and go through all the elements.
92 count = pack(jpeg, offset - 2, 2, littleEndian);
93 while (count-- > 0 && length >= 12) {
97 // We do not really care about type and count, do we?
/packages/apps/Settings/src/com/android/settings/applications/
H A DAppCounter.java39 int count = 0;
48 count++;
52 return count;
56 protected void onPostExecute(Integer count) { argument
57 onCountComplete(count);
H A DSpecialAppAccessPreferenceController.java49 final int count = mDataSaverBackend.getWhitelistedCount();
51 R.plurals.special_access_summary, count, count));
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
H A DMessageChangeLogTable.java112 * @param count The number of messages we're interested in.
115 private static String getSelectionForMessages(final long[] messageKeys, final int count) { argument
117 for (int i = 0; i < count; ++i) {
133 * @param count The number of message keys.
137 final long[] messageKeys, final int count) {
138 if (count == 0) {
141 return cr.delete(uri, getSelectionForMessages(messageKeys, count), null);
149 * @param count The number of messageKeys.
154 final long[] messageKeys, final int count, final int status) {
155 if (count
136 deleteRowsForMessages(final ContentResolver cr, final Uri uri, final long[] messageKeys, final int count) argument
153 updateStatusForMessages(final ContentResolver cr, final Uri uri, final long[] messageKeys, final int count, final int status) argument
171 retryMessages(final ContentResolver cr, final Uri uri, final long[] messageKeys, final int count) argument
184 failMessages(final ContentResolver cr, final Uri uri, final long[] messageKeys, final int count) argument
[all...]
/packages/apps/LegacyCamera/src/com/android/camera/ui/
H A DStackLayout.java34 final int count = getChildCount();
50 final int count = super.getChildCount();
52 for (int i = 0; i < count; i++) {
/packages/apps/Messaging/src/com/android/messaging/util/
H A DCircularArray.java34 * @param count Max elements to hold in the list.
36 public CircularArray(int count) { argument
37 mMaxCount = count;
65 * Get the number of elements in the list. This will be 0 <= returned count <= max count
69 public int count() { method in class:CircularArray
93 * Get the object at index. Index 0 is the oldest item inserted into the list. Index (count() -

Completed in 955 milliseconds

1234567891011>>