Searched defs:length (Results 51 - 75 of 117) sorted by relevance

12345

/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/
H A Dpatricia_trie_reading_utils.cpp69 int length = 0; local
71 length = ByteArrayUtils::readStringAndAdvancePosition(buffer, maxLength, outBuffer,
79 length = 0;
85 length = 1;
88 return length;
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/
H A DStringResourceMap.java97 public void comment(char[] ch, int start, int length) { argument
98 mComment.append(ch, start, length);
99 if (ch[start + length - 1] != '\n') {
115 public void characters(char[] ch, int start, int length) { argument
116 mValue.append(ch, start, length);
124 final String comment = mComment.length() > 0 ? mComment.toString() : null;
128 value = value.substring(1, value.length() - 1);
/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/apps/Camera2/src/com/android/camera/exif/
H A DExifOutputStream.java106 , int offset, int length) {
108 int byteToRead = length > byteNeeded ? byteNeeded : length;
118 public void write(byte[] buffer, int offset, int length) throws IOException { argument
120 && length > 0) {
122 int byteToProcess = length > mByteToSkip ? mByteToSkip : length;
123 length -= byteToProcess;
128 int byteToProcess = length > mByteToCopy ? mByteToCopy : length;
105 requestByteToBuffer(int requestByteCount, byte[] buffer , int offset, int length) argument
[all...]
/packages/apps/Contacts/src/com/android/contacts/widget/
H A DTextHighlightingAnimation.java120 public int length() { method in class:TextHighlightingAnimation.TextWithHighlightingImpl
151 int count = states.length;
/packages/apps/DeskClock/src/com/android/deskclock/timer/
H A DTimerObj.java39 // Max timer length is 9 hours + 99 minutes + 9 seconds
46 public long mOriginalLength; // length set at start of timer and by +1 min after times up
47 public long mSetupLength; // length set at start of timer
188 public TimerObj(long length, String label) { argument
189 this(length);
193 private void init (long length) { argument
199 mTimeLeft = mOriginalLength = mSetupLength = length;
212 return (mLabel == null || mLabel.length() == 0) ? context.getString(
245 if (timerStrings.length > 0) {
246 for (int i = 0; i < timerStrings.length;
[all...]
/packages/apps/Email/tests/src/com/android/email/provider/
H A DProviderTestUtils.java64 account.mNewMessageCount = 5 + name.length();
168 message.mTimeStamp = 100 + name.length();
178 message.mServerTimeStamp = 300 + name.length();
190 message.mMeetingInfo = "123" + accountId + mailboxId + name.length();
197 message.mSourceKey = 400 + name.length();
235 * @param length the "length" of the attachment
240 public static Attachment setupAttachment(long messageId, String fileName, long length, argument
243 att.mSize = length;
266 * @param length th
270 setupAttachment(long messageId, String fileName, long length, boolean saveIt, Context context) argument
[all...]
/packages/apps/Email/tests/src/com/android/email/service/
H A DAttachmentDownloadServiceTests.java115 for (int i = 0; i < expectedAttachmentIds.length; i++) {
165 * length of the single file can be set
196 public void setFileLength(long length) { argument
197 mMockFile.mLength = length;
207 * A mock file that reports back a pre-set length
218 public long length() { method in class:AttachmentDownloadServiceTests.MockFile
255 // Mock a file of length 12, but need to uncache previous amount first
260 // Mock a file of length 13, but need to uncache previous amount first
/packages/apps/Exchange/src/com/android/exchange/
H A DEasOutboxService.java102 public SendMailEntity(Context context, FileInputStream instream, long length, int tag, argument
104 super(instream, length);
107 mFileLength = length;
113 * We always return -1 because we don't know the actual length of the POST data (this
159 // the message, as EAS 14 limits the length to 40 chars and we use 70+)
406 long fileLength = tmpFile.length();
/packages/apps/Exchange/src/com/android/exchange/adapter/
H A DSerializer.java102 mOutput.write(0); // 0 length string array
175 public Serializer opaque(InputStream is, int length) throws IOException { argument
178 writeInteger(mOutput, length);
180 log("Opaque, length: " + length);
184 while (length > 0) {
185 int bytesRead = is.read(buffer, 0, Math.min(BUFFER_SIZE, length));
190 length -= bytesRead;
195 public Serializer opaqueWithoutData(int length) throws IOException { argument
198 writeInteger(mOutput, length);
[all...]
/packages/apps/Exchange/src/com/android/exchange/eas/
H A DEasOutboxSync.java125 final long fileLength = mTmpFile.length();
416 public SendMailEntity(final FileInputStream instream, final long length, final int tag, argument
418 super(instream, length);
420 mFileLength = length;
427 * We always return -1 because we don't know the actual length of the POST data (this
474 // the message, as EAS 14 limits the length to 40 chars and we use 70+)
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
H A DExifOutputStream.java106 , int offset, int length) {
108 int byteToRead = length > byteNeeded ? byteNeeded : length;
118 public void write(byte[] buffer, int offset, int length) throws IOException { argument
120 && length > 0) {
122 int byteToProcess = length > mByteToSkip ? mByteToSkip : length;
123 length -= byteToProcess;
128 int byteToProcess = length > mByteToCopy ? mByteToCopy : length;
105 requestByteToBuffer(int requestByteCount, byte[] buffer , int offset, int length) argument
[all...]
/packages/apps/Gallery2/jni/filters/
H A Dgeometry.c24 int length = srcHeight; local
25 int total = length * width;
38 int length = srcHeight; local
39 int total = length * width;
76 int length = srcHeight; local
77 int total = length * width;
80 for (j = 0; j < length * cpy_bytes; j+= cpy_bytes){
82 int column_disp = (width - cpy_bytes - i) * length;
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DUploadedTexture.java46 // Since the length will be power of two, it won't use too much memory.
88 public int length; field in class:UploadedTexture.BorderKey
92 int x = config.hashCode() ^ length;
101 && config == o.config && length == o.length;
119 boolean vertical, Config config, int length) {
123 key.length = length;
127 ? Bitmap.createBitmap(1, length, config)
128 : Bitmap.createBitmap(length,
118 getBorderLine( boolean vertical, Config config, int length) argument
[all...]
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/exif/
H A DExifOutputStream.java106 , int offset, int length) {
108 int byteToRead = length > byteNeeded ? byteNeeded : length;
118 public void write(byte[] buffer, int offset, int length) throws IOException { argument
120 && length > 0) {
122 int byteToProcess = length > mByteToSkip ? mByteToSkip : length;
123 length -= byteToProcess;
128 int byteToProcess = length > mByteToCopy ? mByteToCopy : length;
105 requestByteToBuffer(int requestByteCount, byte[] buffer , int offset, int length) argument
[all...]
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/
H A DUploadedTexture.java46 // Since the length will be power of two, it won't use too much memory.
88 public int length; field in class:UploadedTexture.BorderKey
92 int x = config.hashCode() ^ length;
101 && config == o.config && length == o.length;
119 boolean vertical, Config config, int length) {
123 key.length = length;
127 ? Bitmap.createBitmap(1, length, config)
128 : Bitmap.createBitmap(length,
118 getBorderLine( boolean vertical, Config config, int length) argument
[all...]
/packages/apps/Mms/src/com/android/mms/dom/smil/
H A DSmilRegionElementImpl.java253 private int parseRegionLength(String length, boolean horizontal) { argument
254 if (length.endsWith("px")) {
255 length = length.substring(0, length.indexOf("px"));
256 return Integer.parseInt(length);
257 } else if (length.endsWith("%")) {
258 double value = 0.01*Integer.parseInt(length.substring(0, length.length()
[all...]
/packages/apps/Mms/src/com/android/mms/exif/
H A DExifOutputStream.java106 , int offset, int length) {
108 int byteToRead = length > byteNeeded ? byteNeeded : length;
118 public void write(byte[] buffer, int offset, int length) throws IOException { argument
120 && length > 0) {
122 int byteToProcess = length > mByteToSkip ? mByteToSkip : length;
123 length -= byteToProcess;
128 int byteToProcess = length > mByteToCopy ? mByteToCopy : length;
105 requestByteToBuffer(int requestByteCount, byte[] buffer , int offset, int length) argument
[all...]
/packages/apps/Mms/src/com/android/mms/util/
H A DThumbnailManager.java332 data.mOffset, data.mData.length - data.mOffset, options);
384 int length, Options options) {
389 BitmapFactory.decodeByteArray(bytes, offset, length, options));
383 requestDecode(byte[] bytes, int offset, int length, Options options) argument
/packages/apps/Nfc/src/com/android/nfc/snep/
H A DSnepMessage.java54 return new SnepMessage(VERSION, REQUEST_GET, 4 + ndef.toByteArray().length,
59 return new SnepMessage(VERSION, REQUEST_PUT, ndef.toByteArray().length, 0, ndef);
70 return new SnepMessage(VERSION, RESPONSE_SUCCESS, ndef.toByteArray().length, 0, ndef);
105 SnepMessage(byte version, byte field, int length, int acceptableLength, argument
109 mLength = length;
125 buffer = new ByteArrayOutputStream(bytes.length + HEADER_LENGTH + 4);
127 buffer = new ByteArrayOutputStream(bytes.length + HEADER_LENGTH);
134 output.writeInt(bytes.length + 4);
137 output.writeInt(bytes.length);
/packages/apps/UnifiedEmail/src/com/android/mail/lib/base/
H A DSplitter.java36 * expression, {@code CharMatcher}, or by using a fixed substring length. This
159 checkArgument(separator.length() != 0,
167 int delimeterLength = separator.length();
170 for (int p = start, last = toSplit.length() - delimeterLength;
183 return separatorPosition + separator.length();
244 * Returns a splitter that divides strings into pieces of the given length.
247 * smaller than {@code length} but will never be empty.
249 * @param length the desired length of pieces after splitting
253 public static Splitter fixedLength(final int length) { argument
[all...]
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
H A DSplitter.java36 * expression, {@code CharMatcher}, or by using a fixed substring length. This
159 checkArgument(separator.length() != 0,
167 int delimeterLength = separator.length();
170 for (int p = start, last = toSplit.length() - delimeterLength;
183 return separatorPosition + separator.length();
244 * Returns a splitter that divides strings into pieces of the given length.
247 * smaller than {@code length} but will never be empty.
249 * @param length the desired length of pieces after splitting
253 public static Splitter fixedLength(final int length) { argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
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++) {
/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...]

Completed in 459 milliseconds

12345