Searched refs:offset (Results 1 - 25 of 68) sorted by relevance

123

/packages/apps/Email/src/org/apache/commons/io/
H A DEndianUtils.java112 * Writes a "short" value to a byte array at a given offset. The value is
115 * @param offset starting offset in the byte array
118 public static void writeSwappedShort(byte[] data, int offset, short value) { argument
119 data[ offset + 0 ] = (byte)( ( value >> 0 ) & 0xff );
120 data[ offset + 1 ] = (byte)( ( value >> 8 ) & 0xff );
124 * Reads a "short" value from a byte array at a given offset. The value is
127 * @param offset starting offset in the byte array
130 public static short readSwappedShort(byte[] data, int offset) { argument
143 readSwappedUnsignedShort(byte[] data, int offset) argument
155 writeSwappedInteger(byte[] data, int offset, int value) argument
169 readSwappedInteger(byte[] data, int offset) argument
184 readSwappedUnsignedInteger(byte[] data, int offset) argument
201 writeSwappedLong(byte[] data, int offset, long value) argument
219 readSwappedLong(byte[] data, int offset) argument
240 writeSwappedFloat(byte[] data, int offset, float value) argument
251 readSwappedFloat(byte[] data, int offset) argument
262 writeSwappedDouble(byte[] data, int offset, double value) argument
273 readSwappedDouble(byte[] data, int offset) argument
[all...]
/packages/apps/Mms/src/org/w3c/dom/smil/
H A DElementTimeControl.java42 * constraints), at the passed offset from the current time when the
43 * method is called. If the offset is >= 0, the semantics are
44 * equivalent to an event-base begin with the specified offset. If the
45 * offset is < 0, the semantics are equivalent to beginElement(), but
47 * begun at the passed (negative) offset from the current time when the
49 * @param offset The offset in seconds at which to begin the element.
64 public boolean beginElementAt(float offset) argument
85 * constraints) at the specified offset from the current time when the
87 * @param offset Th
99 endElementAt(float offset) argument
[all...]
H A DTime.java71 public void setOffset(double offset) argument
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DContactLookupKey.java108 int offset = 0;
116 while (offset < length) {
121 while (offset < length) {
122 c = string.charAt(offset++);
149 while (offset < length) {
150 c = string.charAt(offset++);
153 if (offset == length) {
157 c = string.charAt(offset);
161 offset++;
171 int start = offset;
[all...]
/packages/apps/Email/src/com/android/email/
H A DPeekableInputStream.java55 public int read(byte[] b, int offset, int length) throws IOException { argument
57 return mIn.read(b, offset, length);
61 int r = mIn.read(b, offset + 1, length - 1);
H A DFixedLengthInputStream.java53 public int read(byte[] b, int offset, int length) throws IOException { argument
55 int d = mIn.read(b, offset, Math.min(mLength - mCount, length));
/packages/apps/Email/src/org/apache/james/mime4j/util/
H A DPartialInputStream.java29 public PartialInputStream(InputStream inputStream, long offset, long length) throws IOException { argument
31 inputStream.skip(offset);
32 this.limit = offset + length;
/packages/apps/IM/src/com/android/im/app/
H A DMarkup.java54 int offset = 0;
58 while (offset < len) {
59 int index = offset;
94 offset, lastMatchEnd, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
102 offset = lastMatchEnd;
105 offset++;
/packages/apps/Email/src/com/android/email/mail/transport/
H A DLoggingInputStream.java69 public int read(byte[] b, int offset, int length) throws IOException { argument
70 int bytesRead = super.read(b, offset, length);
73 logRaw(b[offset] & 0xFF);
75 offset++;
/packages/apps/Email/src/org/apache/commons/io/input/
H A DCharSequenceReader.java90 * @param offset The starting position in the array to store
95 public int read(char[] array, int offset, int length) { argument
102 if (length < 0 || (offset + length) > array.length) {
104 ", offset=" + offset + ", length=" + length);
112 array[offset + i] = (char)c;
H A DNullInputStream.java52 * protected void processBytes(byte[] bytes, int offset, int length) {
53 * for (int i = offset; i < length; i++) {
210 * @param offset The offset to start reading bytes into.
219 public int read(byte[] bytes, int offset, int length) throws IOException { argument
232 processBytes(bytes, offset, returnLength);
300 * Process the bytes for the <code>read(byte[], offset, length)</code>
306 * @param offset The offset to start at.
309 protected void processBytes(byte[] bytes, int offset, in argument
[all...]
H A DNullReader.java52 * protected void processChars(char[] chars, int offset, int length) {
53 * for (int i = offset; i < length; i++) {
194 * @param offset The offset to start reading characters into.
203 public int read(char[] chars, int offset, int length) throws IOException { argument
216 processChars(chars, offset, returnLength);
284 * Process the characters for the <code>read(char[], offset, length)</code>
290 * @param offset The offset to start at.
293 protected void processChars(char[] chars, int offset, in argument
[all...]
/packages/apps/IM/src/com/android/im/imps/
H A DSmsSplitter.java89 int offset = mPreambleEnd + 1 + segmentPayload * mCurrentSegment;
90 int len = (offset + segmentPayload > mData.length) ?
91 mData.length - offset : segmentPayload;
92 mOutBuffer.put(mData, offset, len);
/packages/apps/Gallery/src/com/android/camera/
H A DImageGetter.java53 public void imageLoaded(int pos, int offset, RotateBitmap bitmap, argument
55 public boolean wantsThumbnail(int pos, int offset); argument
56 public boolean wantsFullImage(int pos, int offset); argument
57 public int fullImageSizeToUse(int pos, int offset); argument
102 private Runnable callback(final int position, final int offset, argument
111 mCB.imageLoaded(position, offset, bitmap, isThumb);
162 int offset = order[i];
163 int imageNumber = mCurrentPosition + offset;
165 if (!mCB.wantsThumbnail(mCurrentPosition, offset)) {
180 Runnable cb = callback(mCurrentPosition, offset,
[all...]
/packages/apps/Camera/src/com/android/camera/ui/
H A DTexture.java162 public void getTextureCoords(float coord[], int offset) { argument
166 coord[offset++] = 0;
167 coord[offset++] = 0;
168 coord[offset++] = w;
169 coord[offset++] = 0;
170 coord[offset++] = 0;
171 coord[offset++] = h;
172 coord[offset++] = w;
173 coord[offset] = h;
H A DNinePatchTexture.java63 public void getTextureCoords(float coord[], int offset) { argument
64 mDelegate.getTextureCoords(coord, offset);
/packages/apps/Gallery/src/com/android/camera/gallery/
H A DImageListUber.java121 int offset = (int) (v & 0xFFFFFFFF);
123 if (skipCount + offset > index) {
127 skipCount += offset;
128 mSkipCounts[which] += offset;
179 int offset = (int) (v & 0xFFFFFFFF);
180 if (skipCount + offset > index) {
184 skipCount += offset;
219 int offset = (int) (value & 0xFFFFFFFF);
222 if (listOffset < offset) {
225 listOffset -= offset;
[all...]
/packages/apps/Gallery3D/src/com/cooliris/media/
H A DDiskCache.java81 chunkFile.seek(record.offset);
120 chunkFile.seek(record.offset);
123 mIndexMap.put(key, new Record(currentChunk, record.offset, data.length, record.sizeOnDisk, timestamp));
144 final int offset = (int) chunkFile.length();
145 chunkFile.seek(offset);
148 mIndexMap.put(key, new Record(chunk, offset, data.length, data.length, timestamp));
150 if (offset + data.length > CHUNK_SIZE) {
260 final int offset = dataInput.readInt();
264 mIndexMap.append(key, new Record(chunk, offset, size, sizeOnDisk, timestamp));
313 dataOutput.writeInt(record.offset);
353 Record(int chunk, int offset, int size, int sizeOnDisk, long timestamp) argument
363 public final int offset; field in class:DiskCache.Record
[all...]
H A DMatrixStack.java59 public void glLoadMatrixf(float[] m, int offset) { argument
60 System.arraycopy(m, offset, mMatrix, mTop, MATRIX_SIZE);
67 public void glLoadMatrixx(int[] m, int offset) { argument
69 mMatrix[mTop + i] = fixedToFloat(m[offset + i]);
79 public void glMultMatrixf(float[] m, int offset) { argument
81 Matrix.multiplyMM(mMatrix, mTop, mTemp, 0, m, offset);
89 public void glMultMatrixx(int[] m, int offset) { argument
91 mTemp[MATRIX_SIZE + i] = fixedToFloat(m[offset + i]);
149 public void getMatrix(float[] dest, int offset) { argument
150 System.arraycopy(mMatrix, mTop, dest, offset, MATRIX_SIZ
[all...]
/packages/apps/Mms/src/com/android/mms/dom/smil/
H A DSmilPlayer.java90 ElementParallelTimeContainer par, double offset, double maxOffset) {
100 double beginOffset = begin.getResolvedOffset() + offset;
114 double endOffset = end.getResolvedOffset() + offset;
125 ArrayList<TimelineEntry> childTimeline = getTimeline(child, offset, maxOffset);
133 (float) (endOffset - offset) * 1000);
147 ElementSequentialTimeContainer seq, double offset, double maxOffset) {
149 double orgOffset = offset;
158 double beginOffset = begin.getResolvedOffset() + offset;
172 double endOffset = end.getResolvedOffset() + offset;
184 ArrayList<TimelineEntry> childTimeline = getTimeline(child, offset, maxOffse
89 getParTimeline( ElementParallelTimeContainer par, double offset, double maxOffset) argument
146 getSeqTimeline( ElementSequentialTimeContainer seq, double offset, double maxOffset) argument
206 getTimeline(ElementTime element, double offset, double maxOffset) argument
[all...]
/packages/apps/Calendar/src/com/android/calendar/
H A DAgendaListView.java156 // Move the currently selected or visible focus down by offset amount.
157 // offset could be negative.
158 public void shiftSelection(int offset) { argument
159 shiftPosition(offset);
162 setSelectionFromTop(position + offset, 0);
166 private void shiftPosition(int offset) { argument
168 Log.v(TAG, "Shifting position "+ offset);
179 setSelectionFromTop(position + offset, r.top > 0 ? -r.top : r.top);
183 Log.v(TAG, "Shifting from " + position + " by " + offset + ". Title "
188 Log.v(TAG, "Shifting from " + position + " by " + offset
[all...]
/packages/inputmethods/PinyinIME/jni/share/
H A Duserdict.cpp76 // 2) lmt_off: lmt index (week offset for example)
82 // 3) now_off: current time index (current week offset for example)
178 inline void UserDict::set_lemma_flag(uint32 offset, uint8 flag) { argument
179 offset &= kUserDictOffsetMask;
180 lemmas_[offset] |= flag;
183 inline char UserDict::get_lemma_flag(uint32 offset) { argument
184 offset &= kUserDictOffsetMask;
185 return (char)(lemmas_[offset]);
188 inline char UserDict::get_lemma_nchar(uint32 offset) { argument
189 offset
193 get_lemma_spell_ids(uint32 offset) argument
198 get_lemma_word(uint32 offset) argument
453 uint32 offset = offsets_[middle]; local
563 uint32 offset = offsets_[middle]; local
[all...]
/packages/inputmethods/PinyinIME/jni/include/
H A Duserdict.h152 // Inuse lemmas' offset
154 // Highest bit in offset tells whether corresponding lemma is removed
156 // Maximum possible for the offset
272 uint32 offset, uint32 length);
275 uint32 *offset, uint32 *length);
278 uint32 *offset, uint32 *length);
281 uint32 offset, uint32 length);
334 void set_lemma_flag(uint32 offset, uint8 flag);
336 char get_lemma_flag(uint32 offset);
338 char get_lemma_nchar(uint32 offset);
[all...]
/packages/apps/Camera/src/com/android/camera/gallery/
H A DImageListUber.java101 int offset = (int) (v & 0xFFFFFFFF);
103 if (skipCount + offset > index) {
107 skipCount += offset;
108 mSkipCounts[which] += offset;
/packages/apps/IM/libwbxml/src/
H A Dwbxml_encoder.cpp125 int offset = 0; local
133 offset += mStringTable[index].length();
134 ++offset; // '\0' for each string in the table
140 return offset;

Completed in 176 milliseconds

123