/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | BlackLevelPattern.java | 35 * Create a new {@link BlackLevelPattern} from a given offset array. 37 * <p>The given offset array must contain offsets for each color channel in 58 * Return the color channel offset for a given index into the array of raw pixel values. 62 * @return a color channel offset. 79 * {@code offset} 80 * @param offset a non-negative offset into the array 82 * @throws IllegalArgumentException if the offset is invalid. 86 public void copyTo(int[] destination, int offset) { argument 88 if (offset < [all...] |
H A D | ColorSpaceTransform.java | 50 /** Numerator offset inside a rational (pair). */ 53 /** Denominator offset inside a rational (pair). */ 153 * {@code offset} 154 * @param offset 155 * a non-negative offset into the array 160 * offset. 162 public void copyElements(Rational[] destination, int offset) { argument 163 checkArgumentNonnegative(offset, "offset must not be negative"); 165 if (destination.length - offset < COUN 197 copyElements(int[] destination, int offset) argument [all...] |
H A D | LensShadingMap.java | 162 final int offset = (row * mColumns + column) * COUNT; 165 mElements[RED + offset]; 167 mElements[GREEN_EVEN + offset]; 169 mElements[GREEN_ODD + offset]; 171 mElements[BLUE + offset]; 183 * elements after the {@code offset} 184 * @param offset 185 * a non-negative offset into the array 189 * If offset was negative 192 * offset 196 copyGainFactors(final float[] destination, final int offset) argument [all...] |
H A D | RggbChannelVector.java | 137 * {@code offset} 138 * @param offset 139 * a non-negative offset into the array 145 * offset. 147 public void copyTo(final float[] destination, final int offset) { argument 149 if (destination.length - offset < COUNT) { 153 destination[offset + RED] = mRed; 154 destination[offset + GREEN_EVEN] = mGreenEven; 155 destination[offset + GREEN_ODD] = mGreenOdd; 156 destination[offset [all...] |
H A D | TonemapCurve.java | 215 * {@link #POINT_SIZE} elements after the {@code offset} 216 * @param offset 217 * a non-negative offset into the array 221 * If offset was negative 224 * offset. 233 int offset) { 234 checkArgumentNonnegative(offset, "offset must not be negative"); 237 if (destination.length + offset < getPointCount(colorChannel) * POINT_SIZE) { 242 System.arraycopy(curve, /*srcPos*/0, destination, offset, curv 232 copyColorCurve(int colorChannel, float[] destination, int offset) argument [all...] |
/frameworks/base/core/java/android/hardware/hdmi/ |
H A D | HdmiTvClient.java | 384 void onReceived(int portId, int offset, int length, byte[] data); argument 407 public void onReceived(int portId, int offset, int length, byte[] data) { 408 listener.onReceived(portId, offset, length, data); 417 * @param offset offset in the in given data 418 * @param length length of data. offset + length should be bound to length of data. 422 public void sendMhlVendorCommand(int portId, int offset, int length, byte[] data) { argument 426 if (offset < 0 || offset >= VENDOR_DATA_SIZE) { 427 throw new IllegalArgumentException("Invalid offset [all...] |
/frameworks/base/core/java/android/hardware/usb/ |
H A D | UsbDeviceConnection.java | 131 * To specify a different offset, use 165 * @param offset the index of the first byte in the buffer to send or receive 172 byte[] buffer, int offset, int length, int timeout) { 173 checkBounds(buffer, offset, length); 175 buffer, offset, length, timeout); 183 * To specify a different offset, use 205 * @param offset the index of the first byte in the buffer to send or receive 212 byte[] buffer, int offset, int length, int timeout) { 213 checkBounds(buffer, offset, length); 214 return native_bulk_request(endpoint.getAddress(), buffer, offset, lengt 171 controlTransfer(int requestType, int request, int value, int index, byte[] buffer, int offset, int length, int timeout) argument 211 bulkTransfer(UsbEndpoint endpoint, byte[] buffer, int offset, int length, int timeout) argument 260 native_control_request(int requestType, int request, int value, int index, byte[] buffer, int offset, int length, int timeout) argument 262 native_bulk_request(int endpoint, byte[] buffer, int offset, int length, int timeout) argument [all...] |
/frameworks/base/core/java/android/net/ |
H A D | SntpClient.java | 147 "clock offset: " + clockOffset + "ms"); 213 * Reads an unsigned 32 bit big endian number from the given offset in the buffer. 215 private long read32(byte[] buffer, int offset) { argument 216 byte b0 = buffer[offset]; 217 byte b1 = buffer[offset+1]; 218 byte b2 = buffer[offset+2]; 219 byte b3 = buffer[offset+3]; 231 * Reads the NTP time stamp at the given offset in the buffer and returns 234 private long readTimeStamp(byte[] buffer, int offset) { argument 235 long seconds = read32(buffer, offset); 248 writeTimeStamp(byte[] buffer, int offset, long time) argument [all...] |
/frameworks/base/core/java/android/os/ |
H A D | MemoryFile.java | 192 * @param srcOffset offset into the memory file to read from. 193 * @param destOffset offset into the byte array buffer to read into. 217 * @param srcOffset offset into the byte array buffer to write from. 218 * @param destOffset offset into the memory file to write to. 303 public int read(byte buffer[], int offset, int count) throws IOException { argument 304 if (offset < 0 || count < 0 || offset + count > buffer.length) { 313 int result = readBytes(buffer, mOffset, offset, count); 336 public void write(byte buffer[], int offset, int count) throws IOException { argument 337 writeBytes(buffer, offset, mOffse [all...] |
H A D | Parcel.java | 267 private static native void nativeWriteByteArray(long nativePtr, byte[] b, int offset, int len); argument 268 private static native void nativeWriteBlob(long nativePtr, byte[] b, int offset, int len); argument 293 long nativePtr, byte[] data, int offset, int length); 295 long thisNativePtr, long otherNativePtr, int offset, int length); 411 * @param pos New offset in the parcel; must be between 0 and 457 public final void unmarshall(byte[] data, int offset, int length) { argument 458 updateNativeSize(nativeUnmarshall(mNativePtr, data, offset, length)); 461 public final void appendFrom(Parcel parcel, int offset, int length) { argument 462 updateNativeSize(nativeAppendFrom(mNativePtr, parcel.mNativePtr, offset, length)); 498 * @param offset Inde 292 nativeUnmarshall( long nativePtr, byte[] data, int offset, int length) argument 294 nativeAppendFrom( long thisNativePtr, long otherNativePtr, int offset, int length) argument 501 writeByteArray(byte[] b, int offset, int len) argument 530 writeBlob(byte[] b, int offset, int len) argument [all...] |
H A D | UpdateEngine.java | 134 public void applyPayload(String url, long offset, long size, String[] headerKeyValuePairs) { argument 136 mUpdateEngine.applyPayload(url, offset, size, headerKeyValuePairs);
|
/frameworks/base/core/java/android/speech/tts/ |
H A D | FileSynthesisCallback.java | 153 public int audioAvailable(byte[] buffer, int offset, int length) { argument 155 Log.d(TAG, "FileSynthesisRequest.audioAvailable(" + buffer + "," + offset 181 System.arraycopy(buffer, offset, bufferCopy, 0, length); 185 fileChannel.write(ByteBuffer.wrap(buffer, offset, length));
|
H A D | PlaybackSynthesisCallback.java | 168 public int audioAvailable(byte[] buffer, int offset, int length) { argument 169 if (DBG) Log.d(TAG, "audioAvailable(byte[" + buffer.length + "]," + offset + "," + length 195 System.arraycopy(buffer, offset, bufferCopy, 0, length);
|
H A D | SynthesisCallback.java | 85 * @param offset The offset into {@code buffer} where the audio data starts. 91 public int audioAvailable(byte[] buffer, int offset, int length); argument
|
/frameworks/base/core/java/android/text/ |
H A D | DynamicLayout.java | 388 int offset = BLOCK_MINIMUM_CHARACTER_LENGTH; 393 offset = TextUtils.indexOf(text, '\n', offset); 394 if (offset < 0) { 398 addBlockAtOffset(offset); 399 offset += BLOCK_MINIMUM_CHARACTER_LENGTH; 411 * Create a new block, ending at the specified character offset. 412 * A block will actually be created only if has at least one line, i.e. this offset is 415 private void addBlockAtOffset(int offset) { argument 416 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 | 684 * Return the text offset of the beginning of the specified line ( 743 * Returns true if the character at offset and the preceding character 745 * @param offset the offset 749 public boolean isLevelBoundary(int offset) { argument 750 int line = getLineForOffset(offset); 759 if (offset == lineStart || offset == lineEnd) { 761 int runIndex = offset == lineStart ? 0 : runs.length - 2; 765 offset 779 isRtlCharAt(int offset) argument 808 getRunRange(int offset) argument 827 primaryIsTrailingPrevious(int offset) argument 881 getPrimaryHorizontal(int offset) argument 890 getPrimaryHorizontal(int offset, boolean clamped) argument 900 getSecondaryHorizontal(int offset) argument 909 getSecondaryHorizontal(int offset, boolean clamped) argument 914 getHorizontal(int offset, boolean primary) argument 918 getHorizontal(int offset, boolean trailing, boolean clamped) argument 924 getHorizontal(int offset, boolean trailing, int line, boolean clamped) argument 1123 getLineForOffset(int offset) argument 1309 getOffsetToLeftOf(int offset) argument 1313 getOffsetToRightOf(int offset) argument 1369 getOffsetAtStartOf(int offset) argument [all...] |
H A D | SpannableStringBuilder.java | 117 * Return the char at the specified offset within the buffer. 447 private int updatedIntervalBound(int offset, int start, int nbNewChars, int flag, boolean atEnd, argument 449 if (offset >= start && offset < mGapStart + mGapLength) { 455 if (textIsRemoved || offset > start) { 467 if (textIsRemoved || offset < mGapStart - nbNewChars) { 476 return offset; 557 final int offset = Math.toIntExact(diff * newLen / origLen); 558 selectionStart = start + offset; 566 final int offset 587 hasNonExclusiveExclusiveSpanAt(CharSequence text, int offset) argument 1503 getTextRunCursor(int contextStart, int contextEnd, int dir, int offset, int cursorOpt, Paint p) argument [all...] |
H A D | StaticLayout.java | 778 // here is the offset of the starting character of the line we are currently measuring 1246 /* package */ static native long nLoadHyphenator(ByteBuffer buf, int offset); argument
|
H A D | TextLine.java | 257 * @param offset the line-relative character offset, between 0 and the 260 * before offset, false to measure the leading edge of the character 261 * at offset. 264 * @return the signed offset from the leading margin to the requested 267 float measure(int offset, boolean trailing, FontMetricsInt fmi) { argument 268 int target = trailing ? offset - 1 : offset; 277 return measureRun(0, offset, mLen, false, fmi); 280 return measureRun(0, offset, mLe 385 measureRun(int start, int offset, int limit, boolean runIsRtl, FontMetricsInt fmi) argument 585 getOffsetBeforeAfter(int runIndex, int runStart, int runLimit, boolean runIsRtl, int offset, boolean after) argument 695 handleText(TextPaint wp, int start, int end, int contextStart, int contextEnd, boolean runIsRtl, Canvas c, float x, int top, int y, int bottom, FontMetricsInt fmi, boolean needWidth, int offset) 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 | 570 private static String formatZoneOffset(int offset, int count) { argument 571 offset /= 1000; // milliseconds to seconds 574 if (offset < 0) { 576 offset = -offset; 581 int hours = offset / 3600; 582 int minutes = (offset % 3600) / 60;
|
/frameworks/base/core/java/android/text/method/ |
H A D | BaseKeyListener.java | 88 // Returns the offset of the replacement span edge if the offset is inside of the replacement 89 // span. Otherwise, does nothing and returns the input offset value. 90 private static int adjustReplacementSpan(CharSequence text, int offset, boolean moveToStart) { argument 92 return offset; 95 ReplacementSpan[] spans = ((Spanned) text).getSpans(offset, offset, ReplacementSpan.class); 100 if (start < offset && end > offset) { 101 offset 108 getOffsetForBackspaceKey(CharSequence text, int offset) argument 282 getOffsetForForwardDeleteKey(CharSequence text, int offset, Paint paint) argument [all...] |
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; 99 public boolean isBoundary(int offset) { argument 100 int shiftedOffset = offset - mOffsetShift; 106 * Returns the position of next boundary after the given offset. Returns 107 * {@code DONE} if there is no boundary after the given offset. 109 * @param offset the given start position to search from. 110 * @return the position of the last boundary preceding the given offset 112 nextBoundary(int offset) argument 128 prevBoundary(int offset) argument 149 getBeginning(int offset) argument 168 getEnd(int offset) argument 188 getPrevWordBeginningOnTwoWordsBoundary(int offset) argument 206 getNextWordEndOnTwoWordBoundary(int offset) argument 226 getBeginning(int offset, boolean getPrevWordBeginningOnTwoWordsBoundary) argument 262 getEnd(int offset, boolean getNextWordEndOnTwoWordBoundary) argument 288 getPunctuationBeginning(int offset) argument 303 getPunctuationEnd(int offset) argument 318 isAfterPunctuation(int offset) argument 334 isOnPunctuation(int offset) argument 343 isPunctuationStartBoundary(int offset) argument 347 isPunctuationEndBoundary(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...] |