Searched defs:length (Results 1 - 25 of 117) sorted by last modified time

12345

/packages/services/Telephony/src/com/android/phone/
H A DOtaUtils.java895 private void otaShowProgramFailure(int length) { argument
905 otaShowProgramFailureNotice(length);
981 private void otaShowSpcErrorNotice(int length) { argument
1003 long noticeTime = length*1000;
1024 private void otaShowProgramFailureNotice(int length) { argument
1035 long noticeTime = length*1000;
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DContactsProvider2.java2369 sb.setLength(sb.length() - 1); // Yank the last comma
3021 for (int i = 0; i < allowedMimeTypes.length; i++) {
3470 args = new String[selectionArgs.length + 2];
3471 System.arraycopy(selectionArgs, 0, args, 2, selectionArgs.length);
4641 if (sb.length() > 0) {
4658 if (accountsString.length() == 0) return ret; // no accounts
5345 subProjection = new String[projection.length + 2];
5346 System.arraycopy(projection, 0, subProjection, 0, projection.length);
5347 subProjection[projection.length + 0] = DataUsageStatColumns.TIMES_USED;
5348 subProjection[projection.length
7984 makeAssetFileDescriptor(ParcelFileDescriptor fd, long length) argument
[all...]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DStorageManager.java119 void verifySpaceBeforeWritingToFile(int destination, String path, long length) argument
122 if (incrementBytesDownloadedSinceLastCheckOnSpace(length) <
126 verifySpace(destination, path, length);
129 void verifySpace(int destination, String path, long length) throws StopRequestException { argument
134 ", path: " + path + ", length: " + length);
165 findSpace(dir, length, destination);
246 int size = files.length;
248 space -= files[i].length();
334 + file.length()
[all...]
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
H A DFakeInputStream.java28 public FakeInputStream(long length) { argument
29 mRemaining = length;
44 public int read(byte[] buffer, int offset, int length) { argument
45 Arrays.checkOffsetAndCount(buffer.length, offset, length);
47 if (length > mRemaining) {
48 length = (int) mRemaining;
50 mRemaining -= length;
52 if (length == 0) {
55 return length;
[all...]
/packages/inputmethods/PinyinIME/jni/android/
H A Dcom_android_inputmethod_pinyin_PinyinDecoderService.cpp68 jlong length,
76 if (im_open_decoder_fd(newfd, startoffset, length, (const char*)fud))
131 const char *py = im_get_sps_str(&py_len); // py_len gets decoded length
152 const char *py = im_get_sps_str(&py_len); // py_len gets decoded length
169 arr_body[0] = len; // element 0 is used to store the length of buffer.
65 nativeImOpenDecoderFd(JNIEnv* env, jclass jclazz, jobject fd_sys_dict, jlong startoffset, jlong length, jbyteArray fn_usr_dict) argument
/packages/inputmethods/PinyinIME/jni/include/
H A Dmatrixsearch.h47 // 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/inputmethods/PinyinIME/jni/share/
H A Ddicttrie.cpp277 long length, LemmaIdType start_id,
279 if (start_offset < 0 || length <= 0 || end_id <= start_id)
304 ftell(fp) < start_offset + length ||
802 // If the length is 1, and the splid is a one-char Yunmu like 'a', 'o', 'e',
276 load_dict_fd(int sys_fd, long start_offset, long length, LemmaIdType start_id, LemmaIdType end_id) argument
H A Dmatrixsearch.cpp148 bool MatrixSearch::init_fd(int sys_fd, long start_offset, long length, argument
156 if (!dict_trie_->load_dict_fd(sys_fd, start_offset, length, 1, kSysDictIdEnd))
296 spl_start_[c_phrase_.length] <= ch_pos))) {
378 c_phrase_.length = splpos;
391 while (c_py_pos < spl_start_[c_phrase_.length]) {
401 fixed_hzs_ = c_phrase_.length;
511 size_t c_py_len = 0; // The length of composing phrase's Pinyin
529 c_phrase_.length = c_phrase_.sublma_start[c_phrase_.sublma_num];
530 reset_pos = spl_start_[c_phrase_.length];
551 assert(c_phrase_.length >
[all...]
H A Dpinyinime.cpp49 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 DPinyinDecoderService.java43 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
H A DPinyinIME.java695 if (str.length() > 7) {
701 if (digitStr.length() > 2 && digitStr.charAt(0) == '0'
720 } else if (str.substring(str.length() - 7, str.length()).compareTo(
723 for (int pos = 0; pos < str.length() - 7; pos++) {
844 if (mDecInfo.getComposingStr().length() > 0) {
994 if (mDecInfo.length() > 0 && keyLabel.length() == 1
1160 if (null == completions || completions.length <= 0) return;
1180 activeCandNo < mDecInfo.mAppCompletions.length) {
1692 public int length() { method in class:PinyinIME.DecodingInfo
[all...]
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/
H A DOpenWnnDictionaryImplJni.c453 (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
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
H A DAssetFileAddress.java25 * also the offset in the file and the length of this data. This class encapsulates these three.
32 public AssetFileAddress(final String filename, final long offset, final long length) { argument
35 mLength = length;
48 return new AssetFileAddress(filename, 0l, f.length());
56 * @param length the length.
60 final long offset, final long length) {
64 return new AssetFileAddress(filename, offset, length);
59 makeFromFileNameAndOffset(final String filename, final long offset, final long length) argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DAssetFileAddress.java25 * also the offset in the file and the length of this data. This class encapsulates these three.
32 public AssetFileAddress(final String filename, final long offset, final long length) { argument
35 mLength = length;
40 return new AssetFileAddress(file.getAbsolutePath(), 0L, file.length());
49 final long offset, final long length) {
53 return new AssetFileAddress(filename, offset, length);
48 makeFromFileNameAndOffset(final String filename, final long offset, final long length) argument
H A DBinaryDictionary.java98 * @param length the length of the binary data.
103 public BinaryDictionary(final String filename, final long offset, final long length, argument
108 mDictSize = length;
111 loadDictionary(filename, offset, length, isUpdatable);
160 final long length, final boolean isUpdatable) {
161 mNativeDict = openNative(path, startOffset, length, isUpdatable);
310 dictFile.length(), true /* isUpdatable */);
159 loadDictionary(final String path, final long startOffset, final long length, final boolean isUpdatable) argument
H A DDictionary.java109 * @param length the number of valid characters in the character array
113 protected boolean same(final char[] word, final int length, final String typedWord) { argument
114 if (typedWord.length() != length) {
117 for (int i = 0; i < length; i++) {
H A DExpandableDictionary.java39 * 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...]
H A DInputPointers.java74 * @param length the number of pointers to be appended.
77 void append(InputPointers src, int startPos, int length) { argument
78 if (length == 0) {
81 mXCoordinates.append(src.mXCoordinates, startPos, length);
82 mYCoordinates.append(src.mYCoordinates, startPos, length);
83 mPointerIds.append(src.mPointerIds, startPos, length);
84 mTimes.append(src.mTimes, startPos, length);
95 * @param length the number of data to be appended.
98 ResizableIntArray yCoordinates, int startPos, int length) {
99 if (length
97 append(int pointerId, ResizableIntArray times, ResizableIntArray xCoordinates, ResizableIntArray yCoordinates, int startPos, int length) argument
[all...]
H A DReadOnlyBinaryDictionary.java40 public ReadOnlyBinaryDictionary(final String filename, final long offset, final long length, argument
43 mBinaryDictionary = new BinaryDictionary(filename, offset, length, useFullEditDistance,
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
H A DBinaryDictIOUtils.java54 public Position(int address, int length) { argument
56 mLength = length;
82 p.mNumOfPtNode + ", position=" + p.mPosition + ", length=" + p.mLength);
98 for (int i = 0; i < info.mCharacters.length; ++i) {
179 final int wordLen = word.codePointCount(0, word.length());
197 p < currentInfo.mCharacters.length;
208 if (wordPos + currentInfo.mCharacters.length == wordLen) {
216 wordPos += currentInfo.mCharacters.length;
314 final int length = word.length();
486 getDictionaryFileHeader( final File file, final long offset, final long length) argument
509 getDictionaryFileHeaderOrNull(final File file, final long offset, final long length) argument
[all...]
H A DDynamicBinaryDictIOUtils.java184 * @param length how many code points to read from codePoints.
199 final int length, final int flags, final int frequency, final int parentAddress,
206 final int[] writtenCharacters = Arrays.copyOfRange(codePoints, 0, length);
275 final int wordLen = codePoints.length;
294 for (int p = 0; p < currentInfo.mCharacters.length; ++p) {
315 currentInfo.mCharacters.length);
357 currentInfo.mCharacters, p, currentInfo.mCharacters.length);
363 suffixCharacters.length > 1,
379 codePoints.length);
381 newCharacters.length >
198 movePtNode(final int fileEndAddress, final int[] codePoints, final int length, final int flags, final int frequency, final int parentAddress, final ArrayList<WeightedString> shortcutTargets, final ArrayList<PendingAttribute> bigrams, final OutputStream destination, final Ver3DictUpdater dictUpdater, final int oldPtNodeArrayOrigin, final int oldPtNodeOrigin, final FormatOptions formatOptions) argument
[all...]
H A DFusionDictionary.java197 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/java/src/com/android/inputmethod/latin/utils/
H A DResizableIntArray.java34 throw new ArrayIndexOutOfBoundsException("length=" + mLength + "; index=" + index);
60 final int currentCapcity = mArray.length;
112 public void append(final ResizableIntArray src, final int startPos, final int length) { argument
113 if (length == 0) {
117 final int newLength = currentLength + length;
119 System.arraycopy(src.mArray, startPos, mArray, currentLength, length);
123 public void fill(final int value, final int startPos, final int length) { argument
124 if (startPos < 0 || length < 0) {
125 throw new IllegalArgumentException("startPos=" + startPos + "; length=" + length);
[all...]
H A DTextRange.java43 public int length() { method in class:TextRange
44 return mWord.length();
57 // Note: it's fine to pass indices negative or greater than the length of the string
78 for (; readIndex < spans.length; ++readIndex) {
87 for (int i = readIndex + 1; i < spans.length; ++i) {
111 || wordAtCursorEndIndex > textAtCursor.length()) {
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/
H A DStatistics.java208 public void recordGestureDelete(final int length, final long time) { argument

Completed in 449 milliseconds

12345