/packages/apps/Music/tests/src/com/android/music/functional/ |
H A D | TestPlaylist.java | 62 private void clearSearchString(int length){ argument 64 for (int j=0; j< length; j++) 77 clearSearchString(playlistname.length()); 104 clearSearchString(playListName.length()); 119 clearSearchString(oldPlaylistName.length()); 124 clearSearchString(oldPlaylistName.length());
|
/packages/apps/Nfc/nci/jni/ |
H A D | RouteDataSet.h | 138 int length () {return mBufferLen;}; function in class:AidBuffer
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/ |
H A D | NullInputStream.java | 52 * protected void processBytes(byte[] bytes, int offset, int length) {
53 * for (int i = offset; i < length; i++) {
203 return read(bytes, 0, bytes.length);
211 * @param length The number of bytes to read.
219 public int read(byte[] bytes, int offset, int length) throws IOException {
argument 226 position += length;
227 int returnLength = length;
229 returnLength = length - (int)(position - size);
300 * Process the bytes for the <code>read(byte[], offset, length)</code>
307 * @param length Th 309 processBytes(byte[] bytes, int offset, int length) argument [all...] |
H A D | NullReader.java | 52 * protected void processChars(char[] chars, int offset, int length) {
53 * for (int i = offset; i < length; i++) {
187 return read(chars, 0, chars.length);
195 * @param length The number of characters to read.
203 public int read(char[] chars, int offset, int length) throws IOException {
argument 210 position += length;
211 int returnLength = length;
213 returnLength = length - (int)(position - size);
284 * Process the characters for the <code>read(char[], offset, length)</code>
291 * @param length Th 293 processChars(char[] chars, int offset, int length) argument [all...] |
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/util/ |
H A D | SimpleTempStorage.java | 231 * @see org.apache.james.mime4j.util.TempFile#length()
233 public long length() {
method in class:SimpleTempStorage.SimpleTempFile 234 return file.length();
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | ReadOnlyBinaryDictionary.java | 40 public ReadOnlyBinaryDictionary(final String filename, final long offset, final long length, argument 43 mBinaryDictionary = new BinaryDictionary(filename, offset, length, useFullEditDistance,
|
H A D | InputPointers.java | 74 * @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...] |
/packages/inputmethods/LatinIME/native/jni/src/utils/ |
H A D | char_utils.h | 78 static AK_FORCE_INLINE int getSpaceCount(const int *const codePointBuffer, const int length) { argument 80 for (int i = 0; i < length; ++i) {
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
H A D | InputPointersTests.java | 56 final int limit = src.getXCoordinates().length * 2 + 10; 86 final int limit = src.getXCoordinates().length * 2 + 10; 151 assertTrue("primitive length after append", 152 dst.getPointerIds().length >= dstLen + srcLen); 206 assertTrue("primitive length after append", 207 dst.getPointerIds().length >= dstLen + srcLen); 229 final int expectedPos, final int[] actuals, final int actualPos, final int length) { 237 if (expecteds.length < expectedPos + length || actuals.length < actualPo 228 assertIntArrayEquals(final String message, final int[] expecteds, final int expectedPos, final int[] actuals, final int actualPos, final int length) argument [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
H A D | ResizableIntArrayTests.java | 31 assertEquals("new instance length", 0, src.getLength()); 33 assertEquals("new instance array length", DEFAULT_CAPACITY, array.length); 43 assertEquals("length after add " + i, i + 1, src.getLength()); 68 assertEquals("length after add at " + i, i + 1, src.getLength()); 97 fail("get(length) shouldn't succeed"); 108 assertEquals("length after add " + i, i + 1, src.getLength()); 114 assertEquals("length after reset", 0, src.getLength()); 120 assertEquals("length after add " + i, i + 1, src.getLength()); 137 assertEquals("length afte 324 assertIntArrayEquals(final String message, final int[] expecteds, final int expectedPos, final int[] actuals, final int actualPos, final int length) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/exif/ |
H A D | CountedDataInputStream.java | 65 public long skip(long length) throws IOException { argument 66 long skip = in.skip(length); 71 public void skipOrThrow(long length) throws IOException { argument 72 if (skip(length) != length) throw new EOFException(); 88 readOrThrow(b, 0, b.length);
|
/packages/apps/Camera2/src/com/android/camera/util/ |
H A D | XmpUtil.java | 66 public int length; field in class:XmpUtil.Section 117 section.data, XMP_HEADER_SIZE, buffer, 0, buffer.length); 224 if (section.length > 0) { 226 int lh = section.length >> 8; 227 int ll = section.length & 0xff; 253 if (buffer.length > MAX_XMP_BUFFER_SIZE) { 258 byte[] xmpdata = new byte[buffer.length + XMP_HEADER_SIZE]; 260 System.arraycopy(buffer, 0, xmpdata, XMP_HEADER_SIZE, buffer.length); 263 // Adds the length place (2 bytes) to the section length [all...] |
/packages/apps/Dialer/src/com/android/dialer/dialpad/ |
H A D | SmartDialNameMatcher.java | 42 // The maximum length of the initial we will match - typically set to 1 to minimize false 69 * @param length Length of the desired mask. 71 private void constructEmptyMask(StringBuilder builder, int length) { argument 72 for (int i = 0; i < length; ++i) { 107 for (int i = offset; i < number.length(); i++) { 128 constructEmptyMask(builder, phoneNumber.length()); 202 for (int i = offset; i < phoneNumber.length(); i++) { 203 if (queryAt == query.length()) { 264 constructEmptyMask(builder, displayName.length()); 266 final int nameLength = displayName.length(); [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
H A D | CountedDataInputStream.java | 65 public long skip(long length) throws IOException { argument 66 long skip = in.skip(length); 71 public void skipOrThrow(long length) throws IOException { argument 72 if (skip(length) != length) throw new EOFException(); 88 readOrThrow(b, 0, b.length);
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/jpegstream/ |
H A D | JPEGOutputStream.java | 80 public void write(byte[] buffer, int offset, int length) throws IOException { argument 81 if (offset < 0 || length < 0 || (offset + length) > buffer.length) { 83 " buffer length %d, offset %d, length %d", 84 buffer.length, offset, length)); 104 returnCode = writeInputBytes(buffer, offset, length); 117 write(buffer, 0, buffer.length); [all...] |
/packages/apps/Gallery2/jni_jpegstream/src/ |
H A D | jpeg_writer.cpp | 116 int32_t JpegWriter::write(int8_t* bytes, int32_t length) { argument 127 if (length < 0 || bytes == NULL) { 131 int32_t total_length = length; 134 if (length < mScanlineBytesRemaining) { 137 length * sizeof(int8_t)); 138 mScanlineBytesRemaining -= length; 139 mScanlineIter += length; 141 } else if (length > 0) { 146 length -= mScanlineBytesRemaining; 162 return total_length - length; [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | DecodeUtils.java | 79 return decode(jc, bytes, 0, bytes.length, options); 83 int length, Options options) { 88 BitmapFactory.decodeByteArray(bytes, offset, length, options)); 92 int length, Options options) { 96 BitmapFactory.decodeByteArray(bytes, offset, length, options); 175 BitmapFactory.decodeByteArray(data, 0, data.length, options); 186 BitmapFactory.decodeByteArray(data, 0, data.length, options)); 200 JobContext jc, byte[] bytes, int offset, int length, 202 if (offset < 0 || length <= 0 || offset + length > byte 82 decode(JobContext jc, byte[] bytes, int offset, int length, Options options) argument 91 decodeBounds(JobContext jc, byte[] bytes, int offset, int length, Options options) argument 199 createBitmapRegionDecoder( JobContext jc, byte[] bytes, int offset, int length, boolean shareable) argument 250 decodeUsingPool(JobContext jc, byte[] data, int offset, int length, BitmapFactory.Options options) argument 301 findCachedBitmap(JobContext jc, byte[] data, int offset, int length, Options options) argument [all...] |
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/exif/ |
H A D | CountedDataInputStream.java | 65 public long skip(long length) throws IOException { argument 66 long skip = in.skip(length); 71 public void skipOrThrow(long length) throws IOException { argument 72 if (skip(length) != length) throw new EOFException(); 88 readOrThrow(b, 0, b.length);
|
/packages/apps/Mms/src/com/android/mms/exif/ |
H A D | CountedDataInputStream.java | 65 public long skip(long length) throws IOException { argument 66 long skip = in.skip(length); 71 public void skipOrThrow(long length) throws IOException { argument 72 if (skip(length) != length) throw new EOFException(); 88 readOrThrow(b, 0, b.length);
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
H A D | LevenshteinDistance.java | 39 final int sourceSize = source.length; 40 final int targetSize = target.length; 67 final int sourceLen = src.length; 68 final int targetLen = trg.length; 107 final int trgLen = mTarget.length; 110 int sourcePos = mSource.length; 160 public int length() { method in class:LevenshteinDistance.Token 167 return subSequence(0, length()); 171 final int len = length(); 172 if (len > that.length()) retur [all...] |
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
H A D | SuggestionCursorUtil.java | 130 public static ListSuggestionCursor slice(SuggestionCursor cursor, int start, int length) { argument 132 for (int i = start; i < start + length; i++) {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | ResizableIntArray.java | 34 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...] |
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/ |
H A D | bigram_dictionary.cpp | 42 void BigramDictionary::addWordBigram(int *word, int length, int probability, int *bigramProbability, argument 44 word[length] = 0; 47 char s[length + 1]; 48 for (int i = 0; i <= length; i++) s[i] = static_cast<char>(word[i]); 57 && length < CharUtils::getCodePointCount(MAX_WORD_LENGTH, 78 while (length--) { 89 * prevWordLength: its length.
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/ |
H A D | patricia_trie_policy.cpp | 95 // the length. 236 const int length, const bool forceLowerCaseSearch) const { 243 if (wordPos >= length) return NOT_A_DICT_POS; 267 // If we shoot the length of the word we search for, or if we find a single 271 if (wordPos >= length) return NOT_A_DICT_POS; 278 // and we match the length, in which case we found it, or we traverse children. 279 // If we don't match the length AND don't have children, then a word in the 283 if (wordPos == length) { 235 getTerminalNodePositionOfWord(const int *const inWord, const int length, const bool forceLowerCaseSearch) const argument
|
H A D | patricia_trie_policy.h | 58 const int length, const bool forceLowerCaseSearch) const; 80 bool addUnigramWord(const int *const word, const int length, const int probability) { argument
|