/packages/apps/Email/src/org/apache/commons/io/output/ |
H A D | CountingOutputStream.java | 33 /** 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 D | ByteArrayOutputStream.java | 60 /** 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/commons/io/input/ |
H A D | CountingInputStream.java | 34 /** 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 D | CharSequenceReader.java | 106 int count = 0;
110 return count;
113 count++;
115 return count;
141 int count = dest - idx;
143 return count;
|
H A D | SwappedDataInputStream.java | 141 int count = read( data, location, remaining );
143 if( -1 == count )
148 remaining -= count;
240 * @param count the number of bytes to skip
245 public int skipBytes( int count )
248 return (int)in.skip( count );
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/exif/ |
H A D | ExifTagTest.java | 42 int count = tag.getComponentCount(); 43 int intBuf[] = new int[count]; 44 long longBuf[] = new long[count]; 45 byte byteBuf[] = new byte[count]; 46 Rational rationalBuf[] = new Rational[count]; 48 for (int i = 0; i < count; i++) { 53 // The string size should equal to component count - 1 109 int count = intBuf.length; 111 intBuf[count - 1] = MAX_LONG; 113 longBuf[count [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | ComboAlbum.java | 42 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 D | FilterEmptyPromptSet.java | 47 public ArrayList<MediaItem> getMediaItem(int start, int count) { argument 50 return mBaseSet.getMediaItem(start, count); 51 } else if (start == 0 && count == 1) {
|
H A D | Exif.java | 100 int count = pack(jpeg, offset + 4, 4, littleEndian) + 2; 101 if (count < 10 || count > length) { 105 offset += count; 106 length -= count; 108 // Get the count and go through all the elements. 109 count = pack(jpeg, offset - 2, 2, littleEndian); 110 while (count-- > 0 && length >= 12) { 114 // We do not really care about type and count, do we?
|
H A D | SingleItemAlbum.java | 39 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) {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | UserHistoryForgettingCurveUtils.java | 122 private static int calcFreq(int elapsedTime, int count, int level) { argument 127 if (count == COUNT_MAX) { 136 /* pakcage */ static byte calcFc(int elapsedTime, int count, int level) { argument 138 final int c = Math.min(COUNT_MAX, Math.max(0, count)); 145 final int count = fcToCount(fc); 147 return calcFreq(elapsedTime, count, level); 152 int count = fcToCount(fc); 157 count = COUNT_MAX; 162 return calcFc(elapsedTime, count, level); 167 int count [all...] |
/packages/apps/Camera/src/com/android/camera/ |
H A D | Exif.java | 84 int count = pack(jpeg, offset + 4, 4, littleEndian) + 2; 85 if (count < 10 || count > length) { 89 offset += count; 90 length -= count; 92 // Get the count and go through all the elements. 93 count = pack(jpeg, offset - 2, 2, littleEndian); 94 while (count-- > 0 && length >= 12) { 98 // We do not really care about type and count, do we?
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
H A D | Exif.java | 83 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/Gallery2/src/com/android/gallery3d/ui/ |
H A D | SelectionManager.java | 122 int count = mClickedSet.size(); 124 count = getTotalCount() - count; 126 return count; 138 int count = getSelectedCount(); 139 if (count == getTotalCount()) { 144 if (count == 0 && mAutoLeave) { 159 int count = index + batch < total 162 ArrayList<MediaItem> list = set.getMediaItem(index, count); 200 int count [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
H A D | StackLayout.java | 34 final int count = getChildCount(); 50 final int count = super.getChildCount(); 52 for (int i = 0; i < count; i++) {
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
H A D | nj_str.c | 55 NJ_UINT16 count = 0; local 59 count++; 61 return count; 92 NJ_UINT16 count = 0; local 96 count++; 99 return count;
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
H A D | SpinnerOption.java | 27 for (int i = 0, count = spinner.getCount(); i < count; i++) {
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | FocusOnlyTabWidget.java | 38 final int count = getTabCount(); 39 for (int i = 0; i < count; ++i) { 61 final int count = getTabCount(); 62 for (int i = 0; i < count; ++i) {
|
H A D | PagedViewCellLayoutChildren.java | 48 final int count = getChildCount(); 49 for (int i = 0; i < count; i++) { 89 final int count = getChildCount(); 90 for (int i = 0; i < count; i++) { 111 int count = getChildCount(); 114 if (mCenterContent && count > 0) { 118 for (int i = 0; i < count; i++) { 131 for (int i = 0; i < count; i++) { 150 final int count = getChildCount(); 151 for (int i = 0; i < count; [all...] |
/packages/apps/Email/src/org/apache/commons/io/ |
H A D | CopyUtils.java | 197 int count = 0;
201 count += n;
203 return count;
222 int count = 0;
226 count += n;
228 return count;
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/ |
H A D | CommonNicknameCache.java | 75 int count = cursor.getCount(); 76 for (int i = 0; i < count; i++) { 138 int count = cursor.getCount(); 139 if (count > 0) { 140 clusters = new String[count]; 141 for (int i = 0; i < count; i++) {
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/calllog/ |
H A D | FillCallLogTestActivity.java | 72 int count; 74 count = Integer.parseInt(mNumberTextView.getText().toString()); 75 if (count > 100) { 83 addEntriesToCallLog(count, mUseRandomNumbers.isChecked()); 87 mProgressBar.setMax(count); 97 * @param count the number of entries to add 99 private void addEntriesToCallLog(final int count, boolean useRandomNumbers) { argument 101 addRandomNumbers(count); 104 new CallLogLoaderListener(count)); 159 private void addRandomNumbers(int count) { argument 179 CallLogLoaderListener(int count) argument 243 onPostExecute(Integer count) argument 305 updateCount(Integer count) argument [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
H A D | EvenlySpacedLayout.java | 50 int count = getChildCount(); 53 for (int i = 0; i < count; i++) { 70 int count = getChildCount(); 74 for (int i = 0; i < count; i++) { 85 for (int i = 0; i < count; i++) { 97 int count = getChildCount(); 101 for (int i = 0; i < count; i++) { 112 for (int i = 0; i < count; i++) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
H A D | InterruptableOutputStream.java | 43 public void write(byte[] buffer, int offset, int count) throws IOException { argument 44 int end = offset + count;
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/ |
H A D | MockTask.java | 58 public void assertRunCount(String message, int count) { argument 59 assertEquals(message + ": " + toString() + " bad run count", count, getRunCount());
|