/frameworks/base/core/java/android/os/ |
H A D | Parcel.java | 253 private static native void nativeWriteByteArray(long nativePtr, byte[] b, int offset, int len); argument 254 private static native void nativeWriteBlob(long nativePtr, byte[] b, int offset, int len); argument 279 long nativePtr, byte[] data, int offset, int length); 281 long thisNativePtr, long otherNativePtr, int offset, int length); 395 * @param pos New offset in the parcel; must be between 0 and 441 public final void unmarshall(byte[] data, int offset, int length) { argument 442 nativeUnmarshall(mNativePtr, data, offset, length); 445 public final void appendFrom(Parcel parcel, int offset, int length) { argument 446 nativeAppendFrom(mNativePtr, parcel.mNativePtr, offset, length); 482 * @param offset Inde 278 nativeUnmarshall( long nativePtr, byte[] data, int offset, int length) argument 280 nativeAppendFrom( long thisNativePtr, long otherNativePtr, int offset, int length) argument 485 writeByteArray(byte[] b, int offset, int len) argument [all...] |
/frameworks/base/core/java/android/speech/srec/ |
H A D | MicrophoneInputStream.java | 70 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 D | Recognizer.java | 288 * @param offset offset of the first sample. 293 public int putAudio(byte[] buf, int offset, int length, boolean isLast) { argument 294 return SR_RecognizerPutAudio(mRecognizer, buf, offset, length, isLast); 631 private static native int SR_RecognizerPutAudio(long recognizer, byte[] buffer, int offset, argument
|
H A D | UlawEncoderInputStream.java | 116 * @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/speech/tts/ |
H A D | FileSynthesisCallback.java | 149 public int audioAvailable(byte[] buffer, int offset, int length) { argument 151 Log.d(TAG, "FileSynthesisRequest.audioAvailable(" + buffer + "," + offset 177 fileChannel.write(ByteBuffer.wrap(buffer, offset, length));
|
H A D | PlaybackSynthesisCallback.java | 157 public int audioAvailable(byte[] buffer, int offset, int length) { argument 158 if (DBG) Log.d(TAG, "audioAvailable(byte[" + buffer.length + "]," + offset + "," + length 184 System.arraycopy(buffer, offset, bufferCopy, 0, length);
|
H A D | SynthesisCallback.java | 65 * @param offset The offset into {@code buffer} where the audio data starts. 71 public int audioAvailable(byte[] buffer, int offset, int length); argument
|
/frameworks/base/core/java/android/text/ |
H A D | DynamicLayout.java | 373 int offset = BLOCK_MINIMUM_CHARACTER_LENGTH; 378 offset = TextUtils.indexOf(text, '\n', offset); 379 if (offset < 0) { 383 addBlockAtOffset(offset); 384 offset += BLOCK_MINIMUM_CHARACTER_LENGTH; 396 * Create a new block, ending at the specified character offset. 397 * A block will actually be created only if has at least one line, i.e. this offset is 400 private void addBlockAtOffset(int offset) { argument 401 final int line = getLineForOffset(offset); [all...] |
H A D | GraphicsOperations.java | 64 int getTextRunCursor(int contextStart, int contextEnd, int dir, int offset, argument
|
H A D | Layout.java | 639 * Return the text offset of the beginning of the specified line ( 682 * Returns true if the character at offset and the preceding character 684 * @param offset the offset 688 public boolean isLevelBoundary(int offset) { argument 689 int line = getLineForOffset(offset); 698 if (offset == lineStart || offset == lineEnd) { 700 int runIndex = offset == lineStart ? 0 : runs.length - 2; 704 offset 718 isRtlCharAt(int offset) argument 741 primaryIsTrailingPrevious(int offset) argument 795 getPrimaryHorizontal(int offset) argument 804 getPrimaryHorizontal(int offset, boolean clamped) argument 814 getSecondaryHorizontal(int offset) argument 823 getSecondaryHorizontal(int offset, boolean clamped) argument 828 getHorizontal(int offset, boolean trailing, boolean clamped) argument 834 getHorizontal(int offset, boolean trailing, int line, boolean clamped) argument 1033 getLineForOffset(int offset) argument 1189 getOffsetToLeftOf(int offset) argument 1193 getOffsetToRightOf(int offset) argument 1249 getOffsetAtStartOf(int offset) argument [all...] |
H A D | SpannableStringBuilder.java | 109 * Return the char at the specified offset within the buffer. 398 private int updatedIntervalBound(int offset, int start, int nbNewChars, int flag, boolean atEnd, argument 400 if (offset >= start && offset < mGapStart + mGapLength) { 406 if (textIsRemoved || offset > start) { 418 if (textIsRemoved || offset < mGapStart - nbNewChars) { 427 return offset; 500 final int offset = (selectionStart - start) * newLen / origLen; 501 selectionStart = start + offset; 507 final int offset 524 hasNonExclusiveExclusiveSpanAt(CharSequence text, int offset) argument 1256 getTextRunCursor(int contextStart, int contextEnd, int dir, int offset, int cursorOpt, Paint p) argument [all...] |
H A D | TextLine.java | 276 * @param offset the line-relative character offset, between 0 and the 279 * before offset, false to measure the leading edge of the character 280 * at offset. 283 * @return the signed offset from the leading margin to the requested 286 float measure(int offset, boolean trailing, FontMetricsInt fmi) { argument 287 int target = trailing ? offset - 1 : offset; 296 return measureRun(0, offset, mLen, false, fmi); 299 return measureRun(0, offset, mLe 415 measureRun(int start, int offset, int limit, boolean runIsRtl, FontMetricsInt fmi) argument 615 getOffsetBeforeAfter(int runIndex, int runStart, int runLimit, boolean runIsRtl, int offset, boolean after) argument [all...] |
H A D | TextUtils.java | 930 public static int getOffsetBefore(CharSequence text, int offset) { argument 931 if (offset == 0) 933 if (offset == 1) 936 char c = text.charAt(offset - 1); 939 char c1 = text.charAt(offset - 2); 942 offset -= 2; 944 offset -= 1; 946 offset -= 1; 950 ReplacementSpan[] spans = ((Spanned) text).getSpans(offset, offset, 965 getOffsetAfter(CharSequence text, int offset) argument [all...] |
/frameworks/base/core/java/android/text/format/ |
H A D | DateFormat.java | 625 private static String formatZoneOffset(int offset, int count) { argument 626 offset /= 1000; // milliseconds to seconds 629 if (offset < 0) { 631 offset = -offset; 636 int hours = offset / 3600; 637 int minutes = (offset % 3600) / 60;
|
/frameworks/base/core/java/android/text/method/ |
H A D | WordIterator.java | 71 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/util/ |
H A D | Base64.java | 88 public abstract boolean process(byte[] input, int offset, int len, boolean finish); argument 147 * @param offset the position within the input array at which to start 155 public static byte[] decode(byte[] input, int offset, int len, int flags) { argument 160 if (!decoder.process(input, offset, len, true)) { 263 public boolean process(byte[] input, int offset, int len, boolean finish) { argument 266 int p = offset; 267 len += offset; 468 * @param offset the position within the input array at which to 475 public static String encodeToString(byte[] input, int offset, int len, int flags) { argument 477 return new String(encode(input, offset, le 509 encode(byte[] input, int offset, int len, int flags) argument 603 process(byte[] input, int offset, int len, boolean finish) argument [all...] |
H A D | JsonReader.java | 200 * The offset of the first character in the buffer. 1106 private JsonToken decodeNumber(char[] chars, int offset, int length) { argument 1107 int i = offset; 1147 if (i == offset + length) {
|
H A D | LogWriter.java | 64 @Override public void write(char[] buf, int offset, int count) { argument 66 char c = buf[offset + i];
|
H A D | MapCollections.java | 43 ArrayIterator(int offset) { argument 44 mOffset = offset; 486 public Object[] toArrayHelper(int offset) { argument 490 result[i] = colGetEntry(i, offset); 495 public <T> T[] toArrayHelper(T[] array, int offset) { argument 503 array[i] = (T)colGetEntry(i, offset); 551 protected abstract Object colGetEntry(int index, int offset); argument
|
H A D | TimeUtils.java | 59 * Tries to return a time zone that would have had the specified offset 63 public static TimeZone getTimeZone(int offset, boolean dst, long when, String country) { argument 78 if (currentOffset == offset && currentDst == dst) { 84 // country that has the correct current offset and DST. 89 if (tz.getOffset(when) == offset && 120 // See if we already have this offset, 131 Log.d(TAG, "getTimeZonesWithUniqueOffsets: add unique offset=" +
|
/frameworks/base/core/java/android/view/ |
H A D | AccessibilityIterators.java | 95 public int[] following(int offset) { argument 100 if (offset >= textLegth) { 103 int start = offset; 121 public int[] preceding(int offset) { argument 126 if (offset <= 0) { 129 int end = offset; 185 public int[] following(int offset) { argument 190 if (offset >= mText.length()) { 193 int start = offset; 211 public int[] preceding(int offset) { argument 266 following(int offset) argument 293 preceding(int offset) argument [all...] |
H A D | GLES20Canvas.java | 644 public void drawBitmap(int[] colors, int offset, int stride, float x, float y, argument 658 int lastScanline = offset + (height - 1) * stride; 661 if (offset < 0 || (offset + width > length) || lastScanline < 0 || 667 nDrawBitmap(mRenderer, colors, offset, stride, x, y, 671 private static native void nDrawBitmap(long renderer, int[] colors, int offset, int stride, argument 675 public void drawBitmap(int[] colors, int offset, int stride, int x, int y, argument 677 drawBitmap(colors, offset, stride, (float) x, (float) y, width, height, hasAlpha, paint); 762 public void drawLines(float[] pts, int offset, int count, Paint paint) { argument 765 if ((offset | coun 771 nDrawLines(long renderer, float[] points, int offset, int count, long paint) argument 828 drawPoints(float[] pts, int offset, int count, Paint paint) argument 834 nDrawPoints(long renderer, float[] points, int offset, int count, long paint) argument [all...] |
H A D | RenderNode.java | 775 * @param offset The amount that the left and right positions of the display 776 * list are offset, in pixels 780 public boolean offsetLeftAndRight(int offset) { argument 781 return nOffsetLeftAndRight(mNativeRenderNode, offset); 787 * @param offset The amount that the top and bottom positions of the display 788 * list are offset, in pixels 792 public boolean offsetTopAndBottom(int offset) { argument 793 return nOffsetTopAndBottom(mNativeRenderNode, offset); 843 private static native boolean nOffsetTopAndBottom(long renderNode, int offset); argument 844 private static native boolean nOffsetLeftAndRight(long renderNode, int offset); argument [all...] |
H A D | View.java | 364 * Padding can be used to offset the content of the view by a specific amount of 553 * offset as well as mechanisms for drawing scrollbars. See 3040 * The offset, in pixels, by which the content of this view is scrolled 3047 * The offset, in pixels, by which the content of this view is scrolled 5036 position.offset(child.mLeft, child.mTop); 5044 position.offset(-parentView.getScrollX(), -parentView.getScrollY()); 5584 position.offset(mLeft, mTop); 5590 position.offset(-parentView.mScrollX, -parentView.mScrollY); 5603 position.offset(parentView.mLeft, parentView.mTop); 5610 position.offset( 11347 offsetTopAndBottom(int offset) argument 11397 offsetLeftAndRight(int offset) argument [all...] |
H A D | ViewGroup.java | 4721 dirty.offset(location[CHILD_LEFT_INDEX] - mScrollX, 4846 dirty.offset(left - mScrollX, top - mScrollY); 4899 // search and offset up to the parent 4905 rect.offset(descendant.mLeft - descendant.mScrollX, 4916 rect.offset(descendant.mScrollX - descendant.mLeft, 4924 // now that we are up to this view, need to offset one more time 4928 rect.offset(descendant.mLeft - descendant.mScrollX, 4931 rect.offset(descendant.mScrollX - descendant.mLeft, 4942 * @param offset the number of pixels to offset 4946 offsetChildrenTopAndBottom(int offset) argument 4970 getChildVisibleRect(View child, Rect r, android.graphics.Point offset) argument [all...] |