/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/ |
H A D | dictionary.cpp | 84 int Dictionary::getBigrams(const int *word, int length, int *outWords, int *frequencies, argument 86 if (length <= 0) return 0; 87 return mBigramDictionary->getPredictions(word, length, outWords, frequencies, outputTypes); 90 int Dictionary::getProbability(const int *word, int length) const { 91 int pos = getDictionaryStructurePolicy()->getTerminalNodePositionOfWord(word, length, 104 void Dictionary::addUnigramWord(const int *const word, const int length, const int probability) { argument 105 mDictionaryStructureWithBufferPolicy->addUnigramWord(word, length, probability);
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/ |
H A D | dynamic_patricia_trie_policy.cpp | 118 const int length, const bool forceLowerCaseSearch) const { 119 int searchCodePoints[length]; 120 for (int i = 0; i < length; ++i) { 129 if (readingHelper.getTotalCodePointCount() > length 147 if (length == readingHelper.getTotalCodePointCount()) { 217 bool DynamicPatriciaTriePolicy::addUnigramWord(const int *const word, const int length, argument 234 if (writingHelper.addUnigramWord(&readingHelper, word, length, probability, 117 getTerminalNodePositionOfWord(const int *const inWord, const int length, const bool forceLowerCaseSearch) const argument
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/utils/ |
H A D | byte_array_utils.h | 156 // Returns the length of the string. 159 int length = 0; local 161 while (NOT_A_CODE_POINT != codePoint && length < maxLength) { 162 outBuffer[length++] = codePoint; 165 return length; 168 // Advances the position and returns the length of the string. 171 int length = 0; local 173 while (NOT_A_CODE_POINT != codePoint && length < maxLength) { 175 length++; 177 return length; [all...] |
/packages/inputmethods/PinyinIME/jni/share/ |
H A D | pinyinime.cpp | 49 bool im_open_decoder_fd(int sys_fd, long start_offset, long length, argument 58 return matrix_search->init_fd(sys_fd, start_offset, length, fn_usr_dict);
|
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
H A D | PinyinDecoderService.java | 43 long startOffset, long length, byte fn_usr_dict[]); 119 for (int i = 0; i < mUsr_dict_file.length(); i++) 121 usr_dict[mUsr_dict_file.length()] = 0; 137 + ", length=" + afd.getLength() + ", fd=" 42 nativeImOpenDecoderFd(FileDescriptor fd, long startOffset, long length, byte fn_usr_dict[]) argument
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
H A D | BluetoothMapbMessage.java | 140 if(numbers != null && numbers.length > 0) 142 phoneNumbers = new String[numbers.length]; 143 for(int i = 0, n = numbers.length; i < n; i++){ 150 if(phoneNumbers.length > 0) { 199 if(parts.length == 2) { 206 if(parts.length == 2) { 213 if(parts.length == 2) { 217 phoneNumbers.add(subParts[subParts.length-1]); // only keep actual phone number 223 if(parts.length == 2) { 227 emailAddresses.add(subParts[subParts.length 352 getDataBytes(int length) argument [all...] |
/packages/apps/Calendar/tests/src/com/android/calendar/ |
H A D | AsyncQueryServiceTest.java | 130 assertEquals("Not all operations were executed.", work.length, aqs 156 assertEquals("Not all operations were executed.", work.length, aqs 184 assertEquals("Not all operations were executed.", work.length, aqs 214 assertEquals("Not all operations were executed.", work.length, aqs 246 assertEquals("Not all operations were executed.", work.length, aqs 262 OperationInfo[] sorted = generateSortedWork(work, work.length); 268 assertEquals("Not all operations were executed.", work.length, aqs 285 OperationInfo[] expected = generateSortedWork(work, work.length - 1); 296 assertEquals("Not all operations were executed.", expected.length, aqs 328 assertEquals("Not all operations were executed.", expected.length, aq 389 generateSortedWork(OperationInfo[] work, int length) argument [all...] |
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
H A D | HostEmulationManager.java | 58 /** Length of Select APDU header including length byte */ 426 if (data == null || data.length < SELECT_APDU_HDR_LENGTH + MINIMUM_AID_LENGTH) { 441 if (data.length < SELECT_APDU_HDR_LENGTH + aidLength) { 514 if (data == null || data.length == 0) { 546 static String bytesToString(byte[] bytes, int offset, int length) { argument 548 char[] chars = new char[length * 2]; 550 for (int j = 0; j < length; j++) {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/ |
H A D | Statistics.java | 208 public void recordGestureDelete(final int length, final long time) { argument
|
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
H A D | XmlDictInputOutput.java | 135 public void characters(char[] ch, int start, int length) { argument 140 mWord += String.copyValueOf(ch, start, length);
|
/packages/inputmethods/PinyinIME/jni/include/ |
H A D | matrixsearch.h | 47 // What's the length of the spelling string for this match, for the whole 122 uint16 length; // Counted in Chinese characters. member in struct:ime_pinyin::__anon59 127 // If it is true, prediction list by string whose length is greater than 1 146 // The maximum length of the sentence candidates counted in chinese 179 // The maximum allowed length of spelling string (such as a Pinyin string). 182 // The maximum allowed length of a result Chinese string. 185 // Pinyin string. Max length: kMaxRowNum - 1 188 // The length of the string that has been decoded successfully. 285 // maximum length of a word). 299 // Extend a DMI node with a spelling id. ext_len is the length o [all...] |
/packages/apps/Camera2/src/com/android/camera/exif/ |
H A D | ExifParser.java | 297 // Some camera models use invalid length of the offset 692 for (int i = 0, n = value.length; i < n; i++) { 700 for (int i = 0, n = value.length; i < n; i++) { 708 for (int i = 0, n = value.length; i < n; i++) { 716 for (int i = 0, n = value.length; i < n; i++) { 724 for (int i = 0, n = value.length; i < n; i++) { 762 int length = dataStream.readUnsignedShort(); 768 if (length >= 8) { 771 length -= 6; 774 mApp1End = length; 800 read(byte[] buffer, int offset, int length) argument [all...] |
H A D | ExifTag.java | 211 * setValue() if the length of value does not match the component count. 232 * <li>The value.length does NOT match the component count in the definition 237 if (checkBadComponentCount(value.length)) { 250 long[] data = new long[value.length]; 251 for (int i = 0; i < value.length; i++) { 255 mComponentCountActual = value.length; 282 * <li>The value.length does NOT match the component count in the definition 287 if (checkBadComponentCount(value.length) || mDataType != TYPE_UNSIGNED_LONG) { 294 mComponentCountActual = value.length; 316 * Characters that cannot be converted are replaced with '?'. The length o 411 setValue(byte[] value, int offset, int length) argument 850 getBytes(byte[] buf, int offset, int length) argument [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
H A D | BlobCache.java | 245 if (mIndexFile.length() != 247 Log.w(TAG, "invalid index file length"); 273 0, mIndexFile.length()); 363 if (DATA_HEADER_SIZE + BLOB_HEADER_SIZE + data.length > mMaxBytes) { 367 if (mActiveBytes + BLOB_HEADER_SIZE + data.length > mMaxBytes 379 insertInternal(key, data, data.length); 396 private void insertInternal(long key, byte[] data, int length) argument 403 writeInt(header, BH_LENGTH, length); 405 mActiveDataFile.write(data, 0, length); 409 mActiveBytes += BLOB_HEADER_SIZE + length; 416 public int length; // output: the length of the blob field in class:BlobCache.LookupRequest [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
H A D | ExifParser.java | 297 // Some camera models use invalid length of the offset 692 for (int i = 0, n = value.length; i < n; i++) { 700 for (int i = 0, n = value.length; i < n; i++) { 708 for (int i = 0, n = value.length; i < n; i++) { 716 for (int i = 0, n = value.length; i < n; i++) { 724 for (int i = 0, n = value.length; i < n; i++) { 762 int length = dataStream.readUnsignedShort(); 768 if (length >= 8) { 771 length -= 6; 774 mApp1End = length; 800 read(byte[] buffer, int offset, int length) argument [all...] |
H A D | ExifTag.java | 211 * setValue() if the length of value does not match the component count. 232 * <li>The value.length does NOT match the component count in the definition 237 if (checkBadComponentCount(value.length)) { 250 long[] data = new long[value.length]; 251 for (int i = 0; i < value.length; i++) { 255 mComponentCountActual = value.length; 282 * <li>The value.length does NOT match the component count in the definition 287 if (checkBadComponentCount(value.length) || mDataType != TYPE_UNSIGNED_LONG) { 294 mComponentCountActual = value.length; 316 * Characters that cannot be converted are replaced with '?'. The length o 411 setValue(byte[] value, int offset, int length) argument 850 getBytes(byte[] buf, int offset, int length) argument [all...] |
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/exif/ |
H A D | ExifParser.java | 297 // Some camera models use invalid length of the offset 692 for (int i = 0, n = value.length; i < n; i++) { 700 for (int i = 0, n = value.length; i < n; i++) { 708 for (int i = 0, n = value.length; i < n; i++) { 716 for (int i = 0, n = value.length; i < n; i++) { 724 for (int i = 0, n = value.length; i < n; i++) { 762 int length = dataStream.readUnsignedShort(); 768 if (length >= 8) { 771 length -= 6; 774 mApp1End = length; 800 read(byte[] buffer, int offset, int length) argument [all...] |
H A D | ExifTag.java | 211 * setValue() if the length of value does not match the component count. 232 * <li>The value.length does NOT match the component count in the definition 237 if (checkBadComponentCount(value.length)) { 250 long[] data = new long[value.length]; 251 for (int i = 0; i < value.length; i++) { 255 mComponentCountActual = value.length; 282 * <li>The value.length does NOT match the component count in the definition 287 if (checkBadComponentCount(value.length) || mDataType != TYPE_UNSIGNED_LONG) { 294 mComponentCountActual = value.length; 316 * Characters that cannot be converted are replaced with '?'. The length o 411 setValue(byte[] value, int offset, int length) argument 850 getBytes(byte[] buf, int offset, int length) argument [all...] |
/packages/apps/Mms/src/com/android/mms/exif/ |
H A D | ExifParser.java | 297 // Some camera models use invalid length of the offset 692 for (int i = 0, n = value.length; i < n; i++) { 700 for (int i = 0, n = value.length; i < n; i++) { 708 for (int i = 0, n = value.length; i < n; i++) { 716 for (int i = 0, n = value.length; i < n; i++) { 724 for (int i = 0, n = value.length; i < n; i++) { 762 int length = dataStream.readUnsignedShort(); 768 if (length >= 8) { 771 length -= 6; 774 mApp1End = length; 800 read(byte[] buffer, int offset, int length) argument [all...] |
H A D | ExifTag.java | 211 * setValue() if the length of value does not match the component count. 232 * <li>The value.length does NOT match the component count in the definition 237 if (checkBadComponentCount(value.length)) { 250 long[] data = new long[value.length]; 251 for (int i = 0; i < value.length; i++) { 255 mComponentCountActual = value.length; 282 * <li>The value.length does NOT match the component count in the definition 287 if (checkBadComponentCount(value.length) || mDataType != TYPE_UNSIGNED_LONG) { 294 mComponentCountActual = value.length; 316 * Characters that cannot be converted are replaced with '?'. The length o 411 setValue(byte[] value, int offset, int length) argument 850 getBytes(byte[] buf, int offset, int length) argument [all...] |
/packages/apps/Mms/src/com/android/mms/util/ |
H A D | BlobCache.java | 244 if (mIndexFile.length() != 246 Log.w(TAG, "invalid index file length"); 272 0, mIndexFile.length()); 362 if (DATA_HEADER_SIZE + BLOB_HEADER_SIZE + data.length > mMaxBytes) { 366 if (mActiveBytes + BLOB_HEADER_SIZE + data.length > mMaxBytes 378 insertInternal(key, data, data.length); 385 private void insertInternal(long key, byte[] data, int length) argument 392 writeInt(header, BH_LENGTH, length); 394 mActiveDataFile.write(data, 0, length); 398 mActiveBytes += BLOB_HEADER_SIZE + length; 405 public int length; // output: the length of the blob field in class:BlobCache.LookupRequest [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | ExpandableDictionary.java | 39 * The weight to give to a word if it's length is the same as the number of typed characters. 68 if (mLength + 1 > mData.length) { 169 if (word.length() >= Constants.DICTIONARY_MAX_WORD_LENGTH) { 189 final int wordLength = word.length(); 255 if (mCodes.length < mInputLength) mCodes = new int[mInputLength][]; 262 if (mCodes[i] == null || mCodes[i].length < 1) { 265 final int x = xCoordinates != null && i < xCoordinates.length ? 267 final int y = xCoordinates != null && i < yCoordinates.length ? 281 final Node node = searchNode(mRoots, word, 0, word.length()); 318 final Node node = searchNode(mRoots, word, 0, word.length()); 648 searchNode(final NodeArray children, final CharSequence word, final int offset, final int length) argument [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/ |
H A D | FusionDictionary.java | 197 assert(mChars.length > 0); 198 return 1 < mChars.length; 372 final int length = word.length(); 373 if (length <= 0) return new int[] {}; 375 final int[] codePoints = new int[Character.codePointCount(characters, 0, length)]; 379 srci < length; srci += Character.charCount(codePoint), ++dsti) { 476 if (word.length >= Constants.DICTIONARY_MAX_WORD_LENGTH) { 477 MakedictLog.w("Ignoring a word that is too long: word.length = " + word.length); 843 public int length; field in class:FusionDictionary.DictionaryIterator.Position [all...] |
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/ |
H A D | suggest.cpp | 129 DicNode terminals[MAX_RESULTS]; // Avoiding non-POD variable length array 266 const int length = terminalDicNode->getTotalNodeCodePointCount(); local 277 // Expected length is about 4 ~ 30 298 // The larger the suggestion length, the larger the contribution. MIN_EXPECTED_LENGTH is no 300 // length. Length is guaranteed to be between 1 and 48, so we don't need to clamp. 302 * (length - MIN_EXPECTED_LENGTH) / (MAX_EXPECTED_LENGTH - MIN_EXPECTED_LENGTH);
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/ |
H A D | OpenWnnDictionaryImplJni.c | 453 (JNIEnv *env, jclass obj, jlong wnnWork, jint length) 463 if( length <= 0 ) { 468 if( length == ( NJ_GET_YLEN_FROM_STEM( &( work->result.word ) ) + NJ_GET_YLEN_FROM_FZK( &( work->result.word ) ) ) ) { 452 Java_jp_co_omronsoft_openwnn_OpenWnnDictionaryImplJni_getNextWord(JNIEnv *env, jclass obj, jlong wnnWork, jint length) argument
|