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

1234567

/packages/inputmethods/LatinIME/native/jni/tests/dictionary/structure/v4/content/
H A Dlanguage_model_dict_content_global_counters_test.cpp32 const int count = (1 << (Ver4DictConstants::WORD_COUNT_FIELD_SIZE * CHAR_BIT)) - 1; local
33 globalCounters.updateMaxValueOfCounters(count);
H A Dprobability_entry_test.cpp42 const int count = 0xABCD; local
44 const HistoricalInfo historicalInfo(timestamp, 0 /* level */, count);
54 EXPECT_EQ(count, decodedEntry.getHistoricalInfo()->getCount());
H A Dlanguage_model_dict_content_test.cpp55 const int count = 10; local
57 const HistoricalInfo historicalInfo(timestamp, 0 /* level */, count);
63 EXPECT_EQ(count, entry.getHistoricalInfo()->getCount());
/packages/apps/Camera2/src/com/android/camera/async/
H A DUpdatableCountDownLatch.java27 public UpdatableCountDownLatch(int count) { argument
28 super(count);
/packages/apps/Contacts/src/com/android/contacts/interactions/
H A DContactInteractionUtil.java38 * @return a string like (?,?,?...) with {@param count} question marks.
41 public static String questionMarks(int count) { argument
42 Preconditions.checkArgument(count > 0);
44 for (int i = 1; i < count; i++) {
/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/jni_jpegstream/src/
H A Dinputstream_wrapper.cpp48 int64_t InputStreamWrapper::skip(int64_t count) { argument
51 static_cast<jlong>(count)));
/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() -
/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...]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/
H A DByteQueue.java46 public int count() { method in class:ByteQueue
/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/services/Telephony/src/com/android/phone/common/mail/utility/
H A DCountingOutputStream.java23 * makes that 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/services/Telephony/src/org/apache/james/mime4j/decoder/
H A DByteQueue.java46 public int count() { method in class:ByteQueue
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
H A DBluetoothMapMessageListing.java120 public void segment(int count, int offset) { argument
121 count = Math.min(count, mList.size() - offset);
122 if (count > 0) {
123 mList = mList.subList(offset, offset + count);
H A DBluetoothMapConvoListing.java124 public void segment(int count, int offset) { argument
125 count = Math.min(count, mList.size() - offset);
126 if (count > 0) {
127 mList = mList.subList(offset, offset + count);
/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) {
/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/apps/UnifiedEmail/src/com/google/android/mail/common/base/
H A DStrings.java142 * @param count the number of times to repeat it; a nonnegative integer
143 * @return a string containing {@code string} repeated {@code count} times
144 * (the empty string if {@code count} is zero)
145 * @throws IllegalArgumentException if {@code count} is negative
147 public static String repeat(String string, int count) { argument
149 checkArgument(count >= 0, "invalid count: %s", count);
153 StringBuilder builder = new StringBuilder(string.length() * count);
154 for (int i = 0; i < count;
[all...]
/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...]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
H A Ddynamic_language_model_probability_utils.h31 static float computeRawProbabilityFromCounts(const int count, const int contextCount, argument
34 return static_cast<float>(count) / static_cast<float>(std::max(contextCount, minCount));
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
H A Dentry_counters.h77 void setNgramCount(const NgramType ngramType, const int count) { argument
78 mEntryCounters[static_cast<int>(ngramType)] = count;
/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/Bluetooth/tests/src/com/android/bluetooth/tests/
H A DSdpManagerTest.java84 int count = handles.length-1; // Break condition
92 if(record_id == count) break;
99 if(record_id == count) break;
105 if(record_id == count) break;
112 if(record_id == count) break;
118 if (record_id == count) break;
131 private void addRemoveRecords(int count) { argument
132 int record_count = count;
159 int count = SDP_RECORD_COUNT;
160 int record_count = count;
[all...]

Completed in 471 milliseconds

1234567