Searched defs:offset (Results 176 - 200 of 575) sorted by path

1234567891011>>

/frameworks/base/core/java/android/bluetooth/
H A DBluetoothGattServer.java133 int offset, boolean isLong, int srvcType, int srvcInstId,
148 mCallback.onCharacteristicReadRequest(device, transId, offset, characteristic);
159 int offset, boolean isLong, int srvcType, int srvcInstId,
180 mCallback.onDescriptorReadRequest(device, transId, offset, descriptor);
191 int offset, int length, boolean isPrep, boolean needRsp,
208 isPrep, needRsp, offset, value);
220 int offset, int length, boolean isPrep, boolean needRsp,
244 isPrep, needRsp, offset, value);
489 * @param offset Value offset fo
492 sendResponse(BluetoothDevice device, int requestId, int status, int offset, byte[] value) argument
[all...]
H A DBluetoothGattServerCallback.java57 * @param offset Offset into the value of the characteristic
61 int offset, BluetoothGattCharacteristic characteristic) {
76 * @param offset The offset given for the value
82 int offset, byte[] value) {
93 * @param offset Offset into the value of the characteristic
97 int offset, BluetoothGattDescriptor descriptor) {
112 * @param offset The offset given for the value
118 int offset, byt
60 onCharacteristicReadRequest(BluetoothDevice device, int requestId, int offset, BluetoothGattCharacteristic characteristic) argument
79 onCharacteristicWriteRequest(BluetoothDevice device, int requestId, BluetoothGattCharacteristic characteristic, boolean preparedWrite, boolean responseNeeded, int offset, byte[] value) argument
96 onDescriptorReadRequest(BluetoothDevice device, int requestId, int offset, BluetoothGattDescriptor descriptor) argument
115 onDescriptorWriteRequest(BluetoothDevice device, int requestId, BluetoothGattDescriptor descriptor, boolean preparedWrite, boolean responseNeeded, int offset, byte[] value) argument
[all...]
H A DBluetoothInputStream.java70 * the byte array {@code b} starting at {@code offset}.
74 * @param offset
82 * if {@code offset < 0} or {@code length < 0}, or if
83 * {@code offset + length} is greater than the length of
89 public int read(byte[] b, int offset, int length) throws IOException { argument
93 if ((offset | length) < 0 || length > b.length - offset) {
94 throw new ArrayIndexOutOfBoundsException("invalid offset or length");
96 return mSocket.read(b, offset, length);
H A DBluetoothOutputStream.java61 * at position {@code offset} to this stream.
65 * @param offset
73 * if {@code offset < 0} or {@code count < 0}, or if
74 * {@code offset + count} is bigger than the length of
78 public void write(byte[] b, int offset, int count) throws IOException { argument
82 if ((offset | count) < 0 || count > b.length - offset) {
83 throw new IndexOutOfBoundsException("invalid offset or length");
85 mSocket.write(b, offset, count);
H A DBluetoothSocket.java429 /*package*/ int read(byte[] b, int offset, int length) throws IOException { argument
432 int ret = mSocketIS.read(b, offset, length);
439 /*package*/ int write(byte[] b, int offset, int length) throws IOException { argument
442 mSocketOS.write(b, offset, length);
/frameworks/base/core/java/android/bluetooth/le/
H A DResultStorageDescriptor.java50 * @param offset Offset from start of the advertise packet payload.
53 public ResultStorageDescriptor(int type, int offset, int length) { argument
55 mOffset = offset;
/frameworks/base/core/java/android/content/pm/
H A DLimitedLengthInputStream.java22 * Current offset in the stream.
28 * @param offset offset into stream where data starts
29 * @param length length of data at offset
32 public LimitedLengthInputStream(InputStream in, long offset, long length) throws IOException { argument
39 if (offset < 0) {
40 throw new IOException("offset < 0");
47 if (length > Long.MAX_VALUE - offset) {
48 throw new IOException("offset + length > Long.MAX_VALUE");
51 mEnd = offset
68 read(byte[] buffer, int offset, int byteCount) argument
[all...]
H A DMacAuthenticatedInputStream.java71 public int read(byte[] buffer, int offset, int count) throws IOException { argument
72 int numRead = super.read(buffer, offset, count);
74 mMac.update(buffer, offset, numRead);
/frameworks/base/core/java/android/content/res/
H A DAssetFileDescriptor.java33 * offset and length of that entry's data in the file.
106 * Returns the byte offset where this asset entry's data starts.
225 public int read(byte[] buffer, int offset, int count) throws IOException { argument
229 int res = super.read(buffer, offset, count);
234 return super.read(buffer, offset, count);
300 public void write(byte[] buffer, int offset, int count) throws IOException { argument
304 super.write(buffer, offset, count);
309 super.write(buffer, offset, count);
H A DAssetManager.java713 private native final long seekAsset(long asset, long offset, int whence); argument
H A DStringBlock.java54 public StringBlock(byte[] data, int offset, int size, boolean useSparse) { argument
55 mNative = nativeCreate(data, offset, size);
486 int offset,
485 nativeCreate(byte[] data, int offset, int size) argument
H A DXmlBlock.java43 public XmlBlock(byte[] data, int offset, int size) { argument
45 mNative = nativeCreate(data, offset, size);
492 int offset,
491 nativeCreate(byte[] data, int offset, int size) argument
/frameworks/base/core/java/android/database/
H A DAbstractCursor.java232 public final boolean move(int offset) { argument
233 return moveToPosition(mPos + offset);
H A DCursor.java85 * @param offset the offset to be applied from the current position.
88 boolean move(int offset); argument
H A DCursorWrapper.java157 public boolean move(int offset) { argument
158 return mCursor.move(offset);
/frameworks/base/core/java/android/hardware/camera2/
H A DDngCreator.java275 * {@code offset + 2 * width * height)} bytes. The width and height of
288 * @param offset the offset of the raw image in bytes. This indicates how many bytes will
296 public void writeInputStream(OutputStream dngOutput, Size size, InputStream pixels, long offset) argument
304 } else if (offset < 0) {
305 throw new IllegalArgumentException("Negative offset passed to writeInputStream");
314 nativeWriteInputStream(dngOutput, pixels, width, height, offset);
323 * {@code offset + 2 * width * height)} bytes. The width and height of
341 * @param offset the offset o
348 writeByteBuffer(OutputStream dngOutput, Size size, ByteBuffer pixels, long offset) argument
449 writeByteBuffer(int width, int height, ByteBuffer pixels, OutputStream dngOutput, int pixelStride, int rowStride, long offset) argument
623 nativeWriteImage(OutputStream out, int width, int height, ByteBuffer rawBuffer, int rowStride, int pixStride, long offset, boolean isDirect) argument
628 nativeWriteInputStream(OutputStream out, InputStream rawStream, int width, int height, long offset) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/params/
H A DBlackLevelPattern.java35 * 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 DColorSpaceTransform.java50 /** 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 DLensShadingMap.java163 final int offset = (row * mColumns + column) * COUNT;
166 mElements[RED + offset];
168 mElements[GREEN_EVEN + offset];
170 mElements[GREEN_ODD + offset];
172 mElements[BLUE + offset];
184 * elements after the {@code offset}
185 * @param offset
186 * a non-negative offset into the array
190 * If offset was negative
193 * offset
197 copyGainFactors(final float[] destination, final int offset) argument
[all...]
H A DRggbChannelVector.java137 * {@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 DTonemapCurve.java215 * {@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 DHdmiTvClient.java356 void onReceived(int portId, int offset, int length, byte[] data); argument
379 public void onReceived(int portId, int offset, int length, byte[] data) {
380 listener.onReceived(portId, offset, length, data);
389 * @param offset offset in the in given data
390 * @param length length of data. offset + length should be bound to length of data.
394 public void sendMhlVendorCommand(int portId, int offset, int length, byte[] data) { argument
398 if (offset < 0 || offset >= VENDOR_DATA_SIZE) {
399 throw new IllegalArgumentException("Invalid offset
[all...]
/frameworks/base/core/java/android/hardware/usb/
H A DUsbDeviceConnection.java131 * 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 DSntpClient.java114 // if (false) Log.d(TAG, "clock offset: " + clockOffset + " ms");
162 * Reads an unsigned 32 bit big endian number from the given offset in the buffer.
164 private long read32(byte[] buffer, int offset) { argument
165 byte b0 = buffer[offset];
166 byte b1 = buffer[offset+1];
167 byte b2 = buffer[offset+2];
168 byte b3 = buffer[offset+3];
180 * Reads the NTP time stamp at the given offset in the buffer and returns
183 private long readTimeStamp(byte[] buffer, int offset) { argument
184 long seconds = read32(buffer, offset);
193 writeTimeStamp(byte[] buffer, int offset, long time) argument
[all...]
/frameworks/base/core/java/android/os/
H A DMemoryFile.java192 * @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...]

Completed in 216 milliseconds

1234567891011>>