/packages/apps/Email/src/org/apache/commons/io/input/ |
D | NullInputStream.java | 65 private long size; field in NullInputStream 79 public NullInputStream(long size) { in NullInputStream() argument 80 this(size, true, false); in NullInputStream() 94 public NullInputStream(long size, boolean markSupported, boolean throwEofException) { in NullInputStream() argument 95 this.size = size; in NullInputStream() 115 return size; in getSize() 124 long avail = size - position; in available() 184 if (position == size) { in read() 223 if (position == size) { in read() 228 if (position > size) { in read() [all …]
|
D | NullReader.java | 65 private long size; field in NullReader 79 public NullReader(long size) { in NullReader() argument 80 this(size, true, false); in NullReader() 94 public NullReader(long size, boolean markSupported, boolean throwEofException) { in NullReader() argument 95 this.size = size; in NullReader() 115 return size; in getSize() 168 if (position == size) { in read() 207 if (position == size) { in read() 212 if (position > size) { in read() 213 returnLength = length - (int)(position - size); in read() [all …]
|
/packages/apps/Email/src/org/apache/commons/io/filefilter/ |
D | SizeFileFilter.java | 44 private final long size; field in SizeFileFilter 55 public SizeFileFilter(long size) { in SizeFileFilter() argument 56 this(size, true); in SizeFileFilter() 68 public SizeFileFilter(long size, boolean acceptLarger) { in SizeFileFilter() argument 69 if (size < 0) { in SizeFileFilter() 72 this.size = size; in SizeFileFilter() 89 boolean smaller = file.length() < size; in accept() 100 return super.toString() + "(" + condition + size + ")";
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | ICalendarTest.java | 15 assertEquals(0, prop.getParameterNames().size()); in testAddParameter() 17 assertEquals(1, prop.getParameterNames().size()); in testAddParameter() 19 assertEquals(1, prop.getParameterNames().size()); in testAddParameter() 21 assertEquals(2, prop.getParameterNames().size()); in testAddParameter() 23 assertEquals(2, prop.getParameterNames().size()); in testAddParameter() 25 assertEquals(3, prop.getParameterNames().size()); in testAddParameter() 78 assertEquals(2, component.getPropertyNames().size()); in testParseBasicComponent() 80 assertEquals(2, prop1.getParameterNames().size()); in testParseBasicComponent() 84 assertEquals(2, props.size()); in testParseBasicComponent() 105 assertEquals(1, component.getComponents().size()); in testParseChildComponent() [all …]
|
/packages/apps/IM/libwbxml/test/ |
D | imps_parser_test.cpp | 403 TEST_ASSERT((currentElement == &root) ? !elemStack.size() : elemStack.size() > 0); in endElement() 404 if (elemStack.size()) { in endElement() 477 TEST_ASSERT_EQUAL_INT(1, handler.attribs.size()); in testSimpleCspStartElementAttr() 501 TEST_ASSERT_EQUAL_INT(1, handler.attribs.size()); in testSimpleCspNoContentTag() 515 TEST_ASSERT_EQUAL_INT(1, root.attribs.size()); in testSimpleCspLevel2() 519 TEST_ASSERT_EQUAL_INT(1, root.children.size()); in testSimpleCspLevel2() 521 TEST_ASSERT_EQUAL_INT(0, elem.children.size()); in testSimpleCspLevel2() 523 TEST_ASSERT_EQUAL_INT(0, elem.attribs.size()); in testSimpleCspLevel2() 536 TEST_ASSERT_EQUAL_INT(1, root.attribs.size()); in testSimpleCspLevel3Characters() 540 TEST_ASSERT_EQUAL_INT(1, root.children.size()); in testSimpleCspLevel3Characters() [all …]
|
D | imps_encoder_test.cpp | 35 ASSERT_EQUAL_INT(sizeof(expected), cpp_string.size()); \ 41 ASSERT_EQUAL_INT(sizeof(expected) - 1, cpp_string.size()); \ 493 ASSERT_EQUAL_INT(6, handler.wbxml.size()); in testImpsEncoderSmokeTest() 505 ASSERT_EQUAL_INT(6, handler.wbxml.size()); in testImpsEncoderReset() 515 ASSERT_EQUAL_INT(8, handler.wbxml.size()); in testImpsEncoderReset() 528 ASSERT_EQUAL_INT(13, handler.wbxml.size()); in testImpsStringContentData() 541 ASSERT_EQUAL_INT(13, handler.wbxml.size()); in testImpsOpaqueContentData() 555 ASSERT_EQUAL_INT(dataSize + 9 + 1, handler.wbxml.size()); in testImpsOpaqueContentData() 575 TEST_ASSERT_EQUAL_INT(1, root.attribs.size()); 582 TEST_ASSERT_EQUAL_INT(1, transacContent.attribs.size()); [all …]
|
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
D | SkbTemplate.java | 115 if (mKeyTypeList.size() != keyType.mKeyTypeId) return false; in addKeyType() 121 if (typeId < 0 || typeId > mKeyTypeList.size()) return null; in getKeyType() 134 int size = mKeyIconRecords.size(); in addDefaultKeyIcons() local 136 while (pos < size) { in addDefaultKeyIcons() 144 int size = mKeyIconRecords.size(); in getDefaultKeyIcon() local 146 while (pos < size) { in getDefaultKeyIcon() 161 int size = mKeyIconRecords.size(); in getDefaultKeyIconPopup() local 163 while (pos < size) { in getDefaultKeyIconPopup() 184 int size = mKeyRecords.size(); in addDefaultKey() local 186 while (pos < size) { in addDefaultKey() [all …]
|
D | SoftKeyboard.java | 187 if (mKeyRows.size() == 0) return false; in addSoftKey() 188 KeyRow keyRow = mKeyRows.get(mKeyRows.size() - 1); in addSoftKey() 214 for (int row = 0; row < mKeyRows.size(); row++) { in setSkbCoreSize() 220 for (int i = 0; i < softKeys.size(); i++) { in setSkbCoreSize() 274 return mKeyRows.size(); in getRowNum() 280 if (null != mKeyRows && mKeyRows.size() > row) { in getKeyRowForDisplay() 291 if (null != mKeyRows && mKeyRows.size() > row) { in getKey() 293 if (softKeys.size() > location) { in getKey() 306 int rowNum = mKeyRows.size(); in mapToKey() 314 int keyNum = softKeys.size(); in mapToKey() [all …]
|
/packages/inputmethods/PinyinIME/jni/share/ |
D | utf16char.cpp | 97 size_t size = 0; in utf16_strlen() local 98 while ((char16)'\0' != utf16_str[size]) in utf16_strlen() 99 size++; in utf16_strlen() 100 return size; in utf16_strlen() 111 int utf16_strncmp(const char16 *str1, const char16 *str2, size_t size) { in utf16_strncmp() argument 113 while (pos < size && str1[pos] == str2[pos] && (char16)'\0' != str1[pos]) in utf16_strncmp() 116 if (pos == size) in utf16_strncmp() 140 char16* utf16_strncpy(char16 *dst, const char16 *src, size_t size) { in utf16_strncpy() argument 141 if (NULL == src || NULL == dst || 0 == size) in utf16_strncpy() 149 if (dst < src || (dst > src && dst >= src + size)) { in utf16_strncpy() [all …]
|
/packages/apps/Calculator/src/com/android/calculator2/ |
D | History.java | 39 int size = in.readInt(); in History() local 40 for (int i = 0; i < size; ++i) { in History() 67 out.writeInt(mEntries.size()); in write() 87 if (mPos < mEntries.size() - 1) { in moveToNext() 96 if (mEntries.size() >= MAX_ENTRIES) { in enter() 99 if (mEntries.size() < 2 || in enter() 100 !text.equals(mEntries.elementAt(mEntries.size() - 2).getBase())) { in enter() 101 mEntries.insertElementAt(new HistoryEntry(text), mEntries.size() - 1); in enter() 103 mPos = mEntries.size() - 1; in enter()
|
/packages/apps/Email/src/org/apache/commons/io/ |
D | FilenameUtils.java | 264 int size = filename.length(); in doNormalize() local 265 if (size == 0) { in doNormalize() 273 char[] array = new char[size + 2]; // +1 for possible extra slash, +2 for arraycopy in doNormalize() 285 if (array[size - 1] != SYSTEM_SEPARATOR) { in doNormalize() 286 array[size++] = SYSTEM_SEPARATOR; in doNormalize() 291 for (int i = prefix + 1; i < size; i++) { in doNormalize() 293 System.arraycopy(array, i, array, i - 1, size - i); in doNormalize() 294 size--; in doNormalize() 300 for (int i = prefix + 1; i < size; i++) { in doNormalize() 303 if (i == size - 1) { in doNormalize() [all …]
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | ComposingText.java | 105 pos = strLayer.size() - 1; in getStrSegment() 107 if (pos >= strLayer.size() || pos < 0) { in getStrSegment() 146 return this.toString(layer, 0, mStringLayer[layer].size() - 1); in toString() 165 if (strUplayer.size() <= 0) { in modifyUpper() 170 strUplayer.add(new StrSegment(toString(layer), 0, mStringLayer[layer].size() - 1)); in modifyUpper() 177 StrSegment last = strUplayer.get(strUplayer.size() - 1); in modifyUpper() 182 modifyUpper(uplayer, strUplayer.size()-1, 1, 1); in modifyUpper() 188 for (int i = 0; i < strUplayer.size(); i++) { in modifyUpper() 236 for (int i = next; i < strUplayer.size(); i++) { in modifyUpper() 248 for (int i = 1; i < strUplayer.size(); i++) { in modifyUpper() [all …]
|
/packages/apps/Email/src/org/apache/james/mime4j/field/address/ |
D | DomainList.java | 47 public int size() { in size() method in DomainList 48 return domains.size(); in size() 57 if (0 > index || size() <= index) in get() 68 for (int i = 0; i < domains.size(); i++) { in toRouteString() 71 if (i + 1 < domains.size()) in toRouteString()
|
D | AddressList.java | 51 public int size() { in size() method in AddressList 52 return addresses.size(); in size() 59 if (0 > index || size() <= index) in get() 72 for (int i = 0; i < size(); i++) { in flatten() 83 for (int i = 0; i < size(); i++) { in flatten() 98 for (int i = 0; i < size(); i++) { in print()
|
D | MailboxList.java | 47 public int size() { in size() method in MailboxList 48 return mailboxes.size(); in size() 55 if (0 > index || size() <= index) in get() 65 for (int i = 0; i < size(); i++) { in print()
|
/packages/apps/Email/src/org/apache/james/mime4j/decoder/ |
D | UnboundedFifoByteBuffer.java | 94 public int size() { in size() method in UnboundedFifoByteBuffer 95 int size = 0; in size() local 98 size = buffer.length - head + tail; in size() 100 size = tail - head; in size() 103 return size; in size() 112 return (size() == 0); in isEmpty() 123 if (size() + 1 >= buffer.length) { in add()
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
D | ndfdic.c | 74 … convert_to_yomi(NJ_DIC_HANDLE hdl, NJ_UINT8 *index, NJ_UINT16 len, NJ_CHAR *yomi, NJ_UINT16 size); 151 …6 convert_to_yomi(NJ_DIC_HANDLE hdl, NJ_UINT8 *index, NJ_UINT16 len, NJ_CHAR *yomi, NJ_UINT16 size) in convert_to_yomi() argument 179 if (((ret + char_len + NJ_TERM_LEN) * sizeof(NJ_CHAR)) > size) { in convert_to_yomi() 180 return (size / sizeof(NJ_CHAR)); in convert_to_yomi() 189 if (((ret + 1 + NJ_TERM_LEN) * sizeof(NJ_CHAR)) > size) { in convert_to_yomi() 190 return (size / sizeof(NJ_CHAR)); in convert_to_yomi() 206 NJ_UINT16 ylen, dic_ylen, j, size; in yomi_strcmp_forward() local 210 size = sizeof(buf); in yomi_strcmp_forward() 221 if (size < ((dic_ylen + NJ_TERM_LEN) * sizeof(NJ_CHAR))) { in yomi_strcmp_forward() 232 dic_ylen = convert_to_yomi(hdl, area, DATA_YOMI_SIZE(data), stroke, size); in yomi_strcmp_forward() [all …]
|
/packages/apps/Email/tests/src/com/android/email/mail/store/ |
D | ImapResponseParserUnitTests.java | 53 assertEquals("Line 1 count", 3, line1.size()); in testParseLiteral() 58 assertEquals("Line 2 count", 3, line2.size()); in testParseLiteral() 63 assertEquals("Line 3 count", 2, line3.size()); in testParseLiteral() 73 assertEquals("Line 4 count", 1, line4.size()); in testParseLiteral() 78 assertEquals("Line 3-4 count", 3, line3.size()); in testParseLiteral() 84 assertEquals("Line 5 count", 3, line5.size()); in testParseLiteral()
|
/packages/inputmethods/LatinIME/src/com/android/inputmethod/latin/ |
D | Suggest.java | 96 while (mStringPool.size() < mPrefMaxSuggestions) { in setMaxSuggestions() 144 if (wordComposer.size() > 1) { in getSuggestions() 147 if (mSuggestions.size() > 0 && isValidWord(mOriginalWord)) { in getSuggestions() 152 if (mCorrectionMode == CORRECTION_FULL && mSuggestions.size() > 0) { in getSuggestions() 161 if (mCorrectionMode == CORRECTION_FULL && mSuggestions.size() > 1) { in getSuggestions() 171 while (i < mSuggestions.size() && i < max) { in getSuggestions() 180 if (canAdd && i + 1 < mSuggestions.size() && mCorrectionMode != CORRECTION_BASIC) { in getSuggestions() 238 int poolSize = mStringPool.size(); in addWord() 244 if (mSuggestions.size() > prefMaxSuggestions) { in addWord() 263 int poolSize = mStringPool.size(); in collectGarbage() [all …]
|
/packages/apps/GlobalSearch/src/com/android/globalsearch/ |
D | SourceSuggestionBacker.java | 143 if (promotedSources.size() > maxPromotedSlots) { in SourceSuggestionBacker() 162 final int numShortcuts = shortcuts.size(); in SourceSuggestionBacker() 214 final int promotedSlotsAvailable = mMaxPromotedSlots - mShortcuts.size(); in snapshotSuggestionsInternal() 217 Math.max(1, promotedSlotsAvailable / mPromotedSources.size()); in snapshotSuggestionsInternal() 221 new ArrayList<Iterator<SuggestionData>>(mReportedResults.size()); in snapshotSuggestionsInternal() 251 final boolean allPromotedResponded = mReportedResults.size() >= mPromotedSources.size(); in snapshotSuggestionsInternal() 270 0 : Math.max(1, slotsRemaining / reportedResults.size()); in snapshotSuggestionsInternal() 315 if (numDisplayed < sourceResult.getSuggestions().size()) { in snapshotSuggestionsInternal() 366 int indexOfMore = dest.size(); in snapshotSuggestionsInternal() 373 for (int i = 0; i < moreSources.size(); i++) { in snapshotSuggestionsInternal() [all …]
|
D | SuggestionSession.java | 160 final int numPromotable = promotableSources.size(); in SuggestionSession() 161 final int numUnpromotable = unpromotableSources.size(); in SuggestionSession() 243 promotableSourcesToQuery.size() + unpromotableSourcesToQuery.size()); in fireStuffOff() 248 Log.d(TAG, promotableSourcesToQuery.size() + " promotable sources and " in fireStuffOff() 249 + promotableSourcesToQuery.size() + " unpromotable sources will be queried."); in fireStuffOff() 254 final int numShortcuts = shortcuts.size(); in fireStuffOff() 299 Log.d(TAG, "starting off with " + queryCacheResults.getResults().size() + " cached " in fireStuffOff() 301 Log.d(TAG, "identified " + promoted.size() + " promoted sources to query"); in fireStuffOff() 302 Log.d(TAG, "identified " + shortcutsToRefresh.size() in fireStuffOff() 337 HashSet<ComponentName> promoted = new HashSet<ComponentName>(sources.size()); in pickPromotedSources() [all …]
|
/packages/apps/Email/src/org/apache/commons/io/output/ |
D | ByteArrayOutputStream.java | 82 public ByteArrayOutputStream(int size) { in ByteArrayOutputStream() argument 83 if (size < 0) { in ByteArrayOutputStream() 85 "Negative initial size: " + size); in ByteArrayOutputStream() 87 needNewBuffer(size); in ByteArrayOutputStream() 108 if (currentBufferIndex < buffers.size() - 1) { in needNewBuffer() 212 public synchronized int size() { in size() method in ByteArrayOutputStream 248 for (int i = 0; i < buffers.size(); i++) { in writeTo() 273 for (int i = 0; i < buffers.size(); i++) { in toByteArray()
|
/packages/apps/Mms/src/com/android/mms/ui/ |
D | RecipientList.java | 43 public int size() { return mRecipients.size(); } in size() method in RecipientList 45 public int countInvalidRecipients() { return mInvalidRecipients.size(); } in countInvalidRecipients() 261 int count = mRecipients.size(); in getToNumbers() 268 return numbers.toArray(new String[numbers.size()]); in getToNumbers() 276 int count = mRecipients.size(); in getSingleRecipient() 292 int count = mRecipients.size(); in containsBcc() 302 int count = mRecipients.size(); in containsEmail() 313 int count = mRecipients.size(); in getBccNumbers() 320 return numbers.toArray(new String[numbers.size()]); in getBccNumbers() 324 int count = mRecipients.size(); in getNumbers() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | ContactEntryAdapter.java | 188 int numSections = mSections.size(); in setSections() 192 int sectionSize = section.size(); in setSections() 229 int numSections = mSections.size(); in isEnabled() 232 int sectionSize = section.size(); in isEnabled() 262 int numSections = sections.size(); in getEntry() 265 int sectionSize = section.size(); in getEntry() 270 if (position < section.size()) { in getEntry() 273 position -= section.size(); in getEntry() 287 int numSections = sections.size(); in countEntries() 290 int sectionSize = section.size(); in countEntries() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | ManageApplications.java | 263 long size; 371 size = data.getLong(ATTR_PKG_STATS); 375 mAppInfoAdapter.addToList(pkgName, size, formattedSize); 377 mAppInfoAdapter.updatePackage(pkgName, size, formattedSize); 497 int size = mPkgList.size(); in run() local 498 int numMsgs = size / MSG_PKG_SIZE; in run() 499 if (size > (numMsgs * MSG_PKG_SIZE)) { in run() 503 for (int j = 0; j < size; j += MSG_PKG_SIZE) { in run() 508 if (endi > size) { in run() 509 endi = size; in run() [all …]
|