Searched defs:offset (Results 101 - 125 of 575) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/speech/srec/
H A DMicrophoneInputStream.java70 public int read(byte[] b, int offset, int length) throws IOException { argument
73 return AudioRecordRead(mAudioRecord, b, offset, length);
107 private static native int AudioRecordRead(long audioRecord, byte[] b, int offset, int length) throws IOException; argument
H A DUlawEncoderInputStream.java116 * @param offset offset of start of 16 bit pcm data.
120 public static int maxAbsPcm(byte[] pcmBuf, int offset, int length) { argument
123 int pcm = (0xff & pcmBuf[offset++]) + (pcmBuf[offset++] << 8);
141 public int read(byte[] buf, int offset, int length) throws IOException { argument
153 encode(mBuf, 0, buf, offset, n, mMax);
/frameworks/base/core/java/android/text/
H A DGraphicsOperations.java64 int getTextRunCursor(int contextStart, int contextEnd, int dir, int offset, argument
/frameworks/base/core/java/android/text/method/
H A DWordIterator.java71 public int preceding(int offset) { argument
72 int shiftedOffset = offset - mOffsetShift;
85 public int following(int offset) { argument
86 int shiftedOffset = offset - mOffsetShift;
98 /** If <code>offset</code> is within a word, returns the index of the first character of that
103 * If offset is the index of a low surrogate character, BreakIterator.DONE will be returned.
105 * Valid range for offset is [0..textLength] (note the inclusive upper bound).
106 * The returned value is within [0..offset] or BreakIterator.DONE.
108 * @throws IllegalArgumentException is offset is not valid.
110 public int getBeginning(int offset) { argument
140 getEnd(int offset) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DAccessibilityIterators.java51 public int[] following(int offset) { argument
56 if (offset >= mText.length()) {
60 if (offset < 0) {
63 final int currentLine = mLayout.getLineForOffset(offset);
64 if (getLineEdgeIndex(currentLine, DIRECTION_START) == offset) {
79 public int[] preceding(int offset) { argument
84 if (offset <= 0) {
88 if (offset > mText.length()) {
91 final int currentLine = mLayout.getLineForOffset(offset);
92 if (getLineEdgeIndex(currentLine, DIRECTION_END) + 1 == offset) {
136 following(int offset) argument
165 preceding(int offset) argument
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DIndentingPrintWriter.java76 public void write(char[] buf, int offset, int count) { argument
78 final int bufferEnd = offset + count;
79 int lineStart = offset;
80 int lineEnd = offset;
/frameworks/base/core/jni/
H A Dandroid_backup_BackupDataInput.cpp92 readEntityData_native(JNIEnv* env, jobject clazz, jlong r, jbyteArray data, jint offset, jint size) argument
97 if (env->GetArrayLength(data) < (size+offset)) {
107 err = reader->ReadEntityData(dataBytes+offset, size);
/frameworks/base/core/tests/coretests/src/android/os/
H A DMemoryFileTest.java123 private void readIndexOutOfBoundsException(int offset, int count, String msg) argument
131 is.read(buffer, offset, count);
146 "read() with negative offset should throw IndexOutOfBoundsException");
158 "read() with offset outside buffer should throw IndexOutOfBoundsException");
164 "read() with offset + count outside buffer should throw IndexOutOfBoundsException");
/frameworks/base/graphics/java/android/graphics/
H A DPoint.java61 public final void offset(int dx, int dy) { method in class:Point
H A DPointF.java64 public final void offset(float dx, float dy) { method in class:PointF
/frameworks/base/libs/hwui/
H A DPixelBuffer.cpp44 void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset);
74 void CpuPixelBuffer::upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) { argument
76 mFormat, GL_UNSIGNED_BYTE, mBuffer + offset);
93 void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset);
149 void GpuPixelBuffer::upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) { argument
154 GL_UNSIGNED_BYTE, reinterpret_cast<void*>(offset));
/frameworks/base/media/java/android/media/
H A DAmrInputStream.java74 public int read(byte[] b, int offset, int length) throws IOException { argument
96 System.arraycopy(mBuf, mBufOut, b, offset, length);
H A DResampleInputStream.java82 public int read(byte[] b, int offset, int length) throws IOException { argument
109 fir21(mBuf, 0, b, offset, length / 2);
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
H A DPageRangeUtils.java160 * @param pageRanges The page ranges to offset.
161 * @param offset The offset value.
163 public static void offset(PageRange[] pageRanges, int offset) { argument
164 if (offset == 0) {
169 final int start = pageRanges[i].getStart() + offset;
170 final int end = pageRanges[i].getEnd() + offset;
253 // Hence, we have to offset appropriately the printed pages to
256 final int offset
[all...]
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DExifModifier.java41 TagOffset(ExifTag tag, int offset) { argument
43 mOffset = offset;
147 private void writeTagValue(ExifTag tag, int offset) { argument
150 Log.v(TAG, "at offset: " + offset);
152 mByteBuffer.position(offset + mOffsetBase);
H A DIfdData.java109 * Sets the offset of next IFD.
111 protected void setOffsetToNextIfd(int offset) { argument
112 mOffsetToNextIfd = offset;
116 * Gets the offset of next IFD.
124 * IFDs offset or thumbnail offset will be ignored.
/frameworks/base/rs/java/android/renderscript/
H A DDouble2.java379 * @param offset
381 public void copyTo(double[] data, int offset) { argument
382 data[offset] = x;
383 data[offset + 1] = y;
H A DDouble3.java410 * @param offset
412 public void copyTo(double[] data, int offset) { argument
413 data[offset] = x;
414 data[offset + 1] = y;
415 data[offset + 2] = z;
H A DFloat2.java378 * @param offset
380 public void copyTo(float[] data, int offset) { argument
381 data[offset] = x;
382 data[offset + 1] = y;
H A DFloat3.java410 * @param offset
412 public void copyTo(float[] data, int offset) { argument
413 data[offset] = x;
414 data[offset + 1] = y;
415 data[offset + 2] = z;
/frameworks/base/services/core/java/com/android/server/am/
H A DNativeCrashListener.java170 static int unpackInt(byte[] buf, int offset) { argument
173 b0 = ((int) buf[offset]) & 0xFF; // mask against sign extension
174 b1 = ((int) buf[offset+1]) & 0xFF;
175 b2 = ((int) buf[offset+2]) & 0xFF;
176 b3 = ((int) buf[offset+3]) & 0xFF;
180 static int readExactly(FileDescriptor fd, byte[] buffer, int offset, int numBytes) argument
184 int n = Os.read(fd, buffer, offset + totalRead, numBytes);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
H A Dsobeloperator.cpp50 const int offset = (i * width + j) * 3; local
52 *(gxPtr + offset + c) =
56 *(gyPtr + offset + c) =
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DBitmapMutateActivity.java46 mAnimator = ObjectAnimator.ofInt(view, "offset", 0, PATTERN_SIZE - 1);
78 public void setOffset(int offset) { argument
79 mOffset = offset;
H A DLines2Activity.java69 public LinesView(Context c, float offset, int color) { argument
71 mOffset = offset;
H A DLinesActivity.java42 mAnimator = ObjectAnimator.ofFloat(view, "offset", 0.0f, 15.0f);
109 public void setOffset(float offset) { argument
110 mOffset = offset;

Completed in 405 milliseconds

1234567891011>>