/frameworks/base/core/tests/coretests/src/android/content/pm/ |
H A D | LimitedLengthInputStreamTest.java | 74 fail("Should fail when offset + length is > Long.MAX_VALUE"); 80 private void checkReadBytesWithOffsetAndLength_WithString1(int offset, int length) argument 86 System.arraycopy(TEST_STRING1, offset, expected, 0, length); 88 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); 131 private void checkReadBytes_WithString1(int offset, int length) throws Exception { argument 136 System.arraycopy(TEST_STRING1, offset, expected, 0, length); 138 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); 167 private void checkSingleByteRead_WithString1(int offset, int length) throws Exception { argument 168 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); 171 assertEquals(TEST_STRING1[offset [all...] |
/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | MemoryFileTest.java | 123 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/core/tests/coretests/src/android/text/format/ |
H A D | TimeTest.java | 51 public int offset; field in class:TimeTest.DateTest 61 int offset, int year2, int month2, int day2, int hour2, int minute2, 69 this.offset = offset; 79 int offset, int year2, int month2, int day2, int hour2, int minute2) { 86 this.offset = offset; 98 // The "offset" field in "dayTests" represents days. 130 // The "offset" field in "minuteTests" represents minutes. 188 local.monthDay += test.offset; 60 DateTest(int year1, int month1, int day1, int hour1, int minute1, int dst1, int offset, int year2, int month2, int day2, int hour2, int minute2, int dst2) argument 78 DateTest(int year1, int month1, int day1, int hour1, int minute1, int offset, int year2, int month2, int day2, int hour2, int minute2) argument [all...] |
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.cpp | 353 GLint offset = (1 - (t - floorf(t))) * mAndroid[1].w; local 354 GLint x = xc - offset;
|
/frameworks/base/core/java/android/accessibilityservice/ |
H A D | GestureDescription.java | 98 * offset 99 * @param offset the minimum start time 100 * @return The next key time that is at least the offset or -1 if one can't be found 102 private long getNextKeyPointAtLeast(long offset) { argument 106 if ((thisStartTime < nextKeyPoint) && (thisStartTime >= offset)) { 110 if ((thisEndTime < nextKeyPoint) && (thisEndTime >= offset)) {
|
/frameworks/base/core/java/android/app/ |
H A D | ActionBar.java | 970 * Return the current vertical offset of the action bar. 972 * <p>The action bar's current hide offset is the distance that the action bar is currently 976 * @return The action bar's offset toward its fully hidden state in pixels 983 * Set the current hide offset of the action bar. 985 * <p>The action bar's current hide offset is the distance that the action bar is currently 989 * @param offset The action bar's offset toward its fully hidden state in pixels. 991 public void setHideOffset(int offset) { argument 992 if (offset != 0) { 993 throw new UnsupportedOperationException("Setting an explicit action bar hide offset " [all...] |
/frameworks/base/core/java/android/app/backup/ |
H A D | BackupDataInput.java | 156 * @param offset Offset within the 'data' array at which the data will be placed 163 public int readEntityData(byte[] data, int offset, int size) throws IOException { argument 165 int result = readEntityData_native(mBackupReader, data, offset, size); 196 private native int readEntityData_native(long mBackupReader, byte[] data, int offset, int size); argument
|
H A D | BackupDataInputStream.java | 69 * {@code offset} within the array. 72 * @param offset The data will be stored in {@code b} beginning at this index 80 public int read(byte[] b, int offset, int size) throws IOException { argument 81 return mData.readEntityData(b, offset, size);
|
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothGattCharacteristic.java | 495 * characteristic value at the given offset are interpreted to generate the 500 * @param offset Offset at which the integer value can be found. 501 * @return Cached value of the characteristic or null of offset exceeds 504 public Integer getIntValue(int formatType, int offset) { argument 505 if ((offset + getTypeLen(formatType)) > mValue.length) return null; 509 return unsignedByteToInt(mValue[offset]); 512 return unsignedBytesToInt(mValue[offset], mValue[offset+1]); 515 return unsignedBytesToInt(mValue[offset], mValue[offset 542 getFloatValue(int formatType, int offset) argument 564 getStringValue(int offset) argument 597 setValue(int value, int formatType, int offset) argument 644 setValue(int mantissa, int exponent, int formatType, int offset) argument [all...] |
H A D | BluetoothGattServer.java | 133 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 D | BluetoothGattServerCallback.java | 57 * @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 D | BluetoothInputStream.java | 70 * 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 D | BluetoothOutputStream.java | 61 * 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 D | BluetoothSocket.java | 489 /*package*/ int read(byte[] b, int offset, int length) throws IOException { argument 495 if (VDBG) Log.v(TAG, "l2cap: read(): offset: " + offset + " length:" + length 509 if(VDBG) Log.v(TAG, "get(): offset: " + offset 511 mL2capBuffer.get(b, offset, bytesToRead); 514 if (VDBG) Log.v(TAG, "default: read(): offset: " + offset + " length:" + length); 515 ret = mSocketIS.read(b, offset, length); 523 /*package*/ int write(byte[] b, int offset, in argument [all...] |
/frameworks/base/core/java/android/bluetooth/le/ |
H A D | ResultStorageDescriptor.java | 50 * @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 D | LimitedLengthInputStream.java | 22 * 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 D | MacAuthenticatedInputStream.java | 71 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 D | AssetFileDescriptor.java | 33 * 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 D | AssetManager.java | 783 private native final long seekAsset(long asset, long offset, int whence); argument
|
H A D | StringBlock.java | 54 public StringBlock(byte[] data, int offset, int size, boolean useSparse) { argument 55 mNative = nativeCreate(data, offset, size); 490 int offset, 489 nativeCreate(byte[] data, int offset, int size) argument
|
H A D | XmlBlock.java | 43 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 D | AbstractCursor.java | 252 public final boolean move(int offset) { argument 253 return moveToPosition(mPos + offset);
|
H A D | Cursor.java | 85 * @param offset the offset to be applied from the current position. 88 boolean move(int offset); argument
|
H A D | CursorWrapper.java | 191 public boolean move(int offset) { argument 192 return mCursor.move(offset);
|
/frameworks/base/core/java/android/hardware/camera2/ |
H A D | DngCreator.java | 289 * {@code offset + 2 * width * height)} bytes. The width and height of 304 * @param offset the offset of the raw image in bytes. This indicates how many bytes will 313 @NonNull InputStream pixels, @IntRange(from=0) long offset) throws IOException { 320 } else if (offset < 0) { 321 throw new IllegalArgumentException("Negative offset passed to writeInputStream"); 330 nativeWriteInputStream(dngOutput, pixels, width, height, offset); 339 * {@code offset + 2 * width * height)} bytes. The width and height of 359 * @param offset the offset o 312 writeInputStream(@onNull OutputStream dngOutput, @NonNull Size size, @NonNull InputStream pixels, @IntRange(from=0) long offset) argument 366 writeByteBuffer(@onNull OutputStream dngOutput, @NonNull Size size, @NonNull ByteBuffer pixels, @IntRange(from=0) long offset) argument 472 writeByteBuffer(int width, int height, ByteBuffer pixels, OutputStream dngOutput, int pixelStride, int rowStride, long offset) argument 646 nativeWriteImage(OutputStream out, int width, int height, ByteBuffer rawBuffer, int rowStride, int pixStride, long offset, boolean isDirect) argument 651 nativeWriteInputStream(OutputStream out, InputStream rawStream, int width, int height, long offset) argument [all...] |