/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/block/read/ |
D | BlockDataTest.java | 94 int offset = 1 + tinyByteArray.length; in typedRandomAccess() local 96 assertEquals(0x123456789ABCDEF1L, blockData.getValueAsLong(8, offset, false)); in typedRandomAccess() 97 assertEquals(0x123456789ABCDEL, blockData.getValueAsLong(7, offset, false)); in typedRandomAccess() 98 assertEquals(0x123456789ABCL, blockData.getValueAsLong(6, offset, false)); in typedRandomAccess() 99 assertEquals(0x123456789AL, blockData.getValueAsLong(5, offset, false)); in typedRandomAccess() 100 assertEquals(0x12345678L, blockData.getValueAsLong(4, offset, false)); in typedRandomAccess() 101 assertEquals(0x123456L, blockData.getValueAsLong(3, offset, false)); in typedRandomAccess() 102 assertEquals(0x1234L, blockData.getValueAsLong(2, offset, false)); in typedRandomAccess() 103 assertEquals(0x12L, blockData.getValueAsLong(1, offset, false)); in typedRandomAccess() 105 offset += 8; in typedRandomAccess() [all …]
|
/packages/modules/Wifi/framework/java/android/net/wifi/aware/ |
D | TlvBufferUtils.java | 197 public TlvConstructor putByteArray(int type, @Nullable byte[] array, int offset, in putByteArray() argument 202 System.arraycopy(array, offset, mArray, mPosition, length); in putByteArray() 397 public int offset; field in TlvBufferUtils.TlvElement 399 private TlvElement(int type, int length, @Nullable byte[] refArray, int offset) { in TlvElement() argument 403 this.offset = offset; in TlvElement() 405 if (offset + length > refArray.length) { in TlvElement() 416 return Arrays.copyOfRange(mRefArray, offset, offset + length); in getRawData() 431 return mRefArray[offset]; in getByte() 446 return peekShort(mRefArray, offset, byteOrder); in getShort() 461 return peekInt(mRefArray, offset, byteOrder); in getInt() [all …]
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | Exif.java | 29 int offset = 0; in getOrientation() local 33 while (offset + 3 < jpeg.length && (jpeg[offset++] & 0xFF) == 0xFF) { in getOrientation() 34 int marker = jpeg[offset] & 0xFF; in getOrientation() 40 offset++; in getOrientation() 52 length = pack(jpeg, offset, 2, false); in getOrientation() 53 if (length < 2 || offset + length > jpeg.length) { in getOrientation() 60 pack(jpeg, offset + 2, 4, false) == 0x45786966 && in getOrientation() 61 pack(jpeg, offset + 6, 2, false) == 0) { in getOrientation() 62 offset += 8; in getOrientation() 68 offset += length; in getOrientation() [all …]
|
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_variation/ |
D | stdout.txt.expect | 23 .location = {.poolIndex = 0, .offset = 0, .length = 0}, 32 .location = {.poolIndex = 0, .offset = 0, .length = 64}, 41 .location = {.poolIndex = 0, .offset = 64, .length = 4}, 50 .location = {.poolIndex = 0, .offset = 68, .length = 4}, 59 .location = {.poolIndex = 0, .offset = 72, .length = 4}, 68 .location = {.poolIndex = 0, .offset = 76, .length = 4}, 77 .location = {.poolIndex = 0, .offset = 80, .length = 4}, 86 .location = {.poolIndex = 0, .offset = 84, .length = 4}, 95 .location = {.poolIndex = 0, .offset = 0, .length = 0}, 170 .location = {.poolIndex = 0, .offset = 0, .length = 0}, [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactLookupKey.java | 121 int offset = 0; in parse() local 129 while (offset < length) { in parse() 134 while (offset < length) { in parse() 135 c = string.charAt(offset++); in parse() 165 while (offset < length) { in parse() 166 c = string.charAt(offset++); in parse() 169 if (offset == length) { in parse() 173 c = string.charAt(offset); in parse() 177 offset++; in parse() 187 int start = offset; in parse() [all …]
|
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_naming/ |
D | stdout.txt.expect | 23 .location = {.poolIndex = 0, .offset = 0, .length = 0}, 32 .location = {.poolIndex = 0, .offset = 0, .length = 64}, 41 .location = {.poolIndex = 0, .offset = 64, .length = 4}, 50 .location = {.poolIndex = 0, .offset = 68, .length = 4}, 59 .location = {.poolIndex = 0, .offset = 72, .length = 4}, 68 .location = {.poolIndex = 0, .offset = 76, .length = 4}, 77 .location = {.poolIndex = 0, .offset = 80, .length = 4}, 86 .location = {.poolIndex = 0, .offset = 84, .length = 4}, 95 .location = {.poolIndex = 0, .offset = 0, .length = 0}, 170 .location = {.poolIndex = 0, .offset = 0, .length = 0}, [all …]
|
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_implicit_variation/ |
D | stdout.txt.expect | 23 .location = {.poolIndex = 0, .offset = 0, .length = 0}, 32 .location = {.poolIndex = 0, .offset = 0, .length = 64}, 41 .location = {.poolIndex = 0, .offset = 64, .length = 4}, 50 .location = {.poolIndex = 0, .offset = 68, .length = 4}, 59 .location = {.poolIndex = 0, .offset = 72, .length = 4}, 68 .location = {.poolIndex = 0, .offset = 76, .length = 4}, 77 .location = {.poolIndex = 0, .offset = 80, .length = 4}, 86 .location = {.poolIndex = 0, .offset = 84, .length = 4}, 95 .location = {.poolIndex = 0, .offset = 0, .length = 0}, 170 .location = {.poolIndex = 0, .offset = 0, .length = 0}, [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | Memory.java | 22 public static int peekInt(byte[] src, int offset, ByteOrder order) { in peekInt() argument 24 return (((src[offset++] & 0xff) << 24) | in peekInt() 25 ((src[offset++] & 0xff) << 16) | in peekInt() 26 ((src[offset++] & 0xff) << 8) | in peekInt() 27 ((src[offset ] & 0xff) << 0)); in peekInt() 29 return (((src[offset++] & 0xff) << 0) | in peekInt() 30 ((src[offset++] & 0xff) << 8) | in peekInt() 31 ((src[offset++] & 0xff) << 16) | in peekInt() 32 ((src[offset ] & 0xff) << 24)); in peekInt() 36 public static void pokeInt(byte[] dst, int offset, int value, ByteOrder order) { in pokeInt() argument [all …]
|
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/ |
D | BearerData.java | 244 private static String decodeUtf8(byte[] data, int offset, int numFields) in decodeUtf8() argument 246 return decodeCharset(data, offset, numFields, 1, "UTF-8"); in decodeUtf8() 249 private static String decodeUtf16(byte[] data, int offset, int numFields) in decodeUtf16() argument 252 int padding = offset % 2; in decodeUtf16() 253 numFields -= (offset + padding) / 2; in decodeUtf16() 254 return decodeCharset(data, offset, numFields, 2, "utf-16be"); in decodeUtf16() 257 private static String decodeCharset(byte[] data, int offset, int numFields, int width, in decodeCharset() argument 259 if (numFields < 0 || (numFields * width + offset) > data.length) { in decodeCharset() 261 int padding = offset % width; in decodeCharset() 262 int maxNumFields = (data.length - offset - padding) / width; in decodeCharset() [all …]
|
/packages/apps/Camera2/src/com/android/camera/exif/ |
D | ExifOutputStream.java | 106 , int offset, int length) { in requestByteToBuffer() argument 109 mBuffer.put(buffer, offset, byteToRead); in requestByteToBuffer() 118 public void write(byte[] buffer, int offset, int length) throws IOException { in write() argument 125 offset += byteToProcess; in write() 129 out.write(buffer, offset, byteToProcess); in write() 132 offset += byteToProcess; in write() 139 int byteRead = requestByteToBuffer(2, buffer, offset, length); in write() 140 offset += byteRead; in write() 157 byteRead = requestByteToBuffer(4, buffer, offset, length); in write() 158 offset += byteRead; in write() [all …]
|
D | ExifParser.java | 218 long offset = mTiffStream.readUnsignedInt(); in ExifParser() local 219 if (offset > Integer.MAX_VALUE) { in ExifParser() 220 throw new ExifInvalidFormatException("Invalid offset " + offset); in ExifParser() 222 mIfd0Position = (int) offset; in ExifParser() 225 registerIfd(IfdId.TYPE_IFD_0, offset); in ExifParser() 226 if (offset != DEFAULT_IFD0_OFFSET) { in ExifParser() 227 mDataAboveIfd0 = new byte[(int) offset - DEFAULT_IFD0_OFFSET]; in ExifParser() 275 int offset = mTiffStream.getReadByteCount(); in next() local 277 if (offset < endOfTags) { in next() 286 } else if (offset == endOfTags) { in next() [all …]
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
D | ExifOutputStream.java | 106 , int offset, int length) { in requestByteToBuffer() argument 109 mBuffer.put(buffer, offset, byteToRead); in requestByteToBuffer() 118 public void write(byte[] buffer, int offset, int length) throws IOException { in write() argument 125 offset += byteToProcess; in write() 129 out.write(buffer, offset, byteToProcess); in write() 132 offset += byteToProcess; in write() 139 int byteRead = requestByteToBuffer(2, buffer, offset, length); in write() 140 offset += byteRead; in write() 157 byteRead = requestByteToBuffer(4, buffer, offset, length); in write() 158 offset += byteRead; in write() [all …]
|
D | ExifParser.java | 218 long offset = mTiffStream.readUnsignedInt(); in ExifParser() local 219 if (offset > Integer.MAX_VALUE) { in ExifParser() 220 throw new ExifInvalidFormatException("Invalid offset " + offset); in ExifParser() 222 mIfd0Position = (int) offset; in ExifParser() 225 registerIfd(IfdId.TYPE_IFD_0, offset); in ExifParser() 226 if (offset != DEFAULT_IFD0_OFFSET) { in ExifParser() 227 mDataAboveIfd0 = new byte[(int) offset - DEFAULT_IFD0_OFFSET]; in ExifParser() 275 int offset = mTiffStream.getReadByteCount(); in next() local 277 if (offset < endOfTags) { in next() 286 } else if (offset == endOfTags) { in next() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/util/exif/ |
D | ExifOutputStream.java | 107 , int offset, int length) { in requestByteToBuffer() argument 110 mBuffer.put(buffer, offset, byteToRead); in requestByteToBuffer() 119 public void write(byte[] buffer, int offset, int length) throws IOException { in write() argument 126 offset += byteToProcess; in write() 130 out.write(buffer, offset, byteToProcess); in write() 133 offset += byteToProcess; in write() 140 int byteRead = requestByteToBuffer(2, buffer, offset, length); in write() 141 offset += byteRead; in write() 158 byteRead = requestByteToBuffer(4, buffer, offset, length); in write() 159 offset += byteRead; in write() [all …]
|
D | ExifParser.java | 219 long offset = mTiffStream.readUnsignedInt(); in ExifParser() local 220 if (offset > Integer.MAX_VALUE) { in ExifParser() 221 throw new ExifInvalidFormatException("Invalid offset " + offset); in ExifParser() 223 mIfd0Position = (int) offset; in ExifParser() 226 registerIfd(IfdId.TYPE_IFD_0, offset); in ExifParser() 276 int offset = mTiffStream.getReadByteCount(); in next() local 278 if (offset < endOfTags) { in next() 287 } else if (offset == endOfTags) { in next() 366 int offset = mTiffStream.getReadByteCount(); in skipRemainingTagsInCurrentIfd() local 367 if (offset > endOfTags) { in skipRemainingTagsInCurrentIfd() [all …]
|
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_backward_compatibility_float/ |
D | stdout.txt.expect | 23 .location = {.poolIndex = 0, .offset = 0, .length = 0}, 32 .location = {.poolIndex = 0, .offset = 0, .length = 0}, 41 .location = {.poolIndex = 0, .offset = 0, .length = 0}, 50 .location = {.poolIndex = 0, .offset = 0, .length = 0}, 59 .location = {.poolIndex = 0, .offset = 0, .length = 0}, 68 .location = {.poolIndex = 0, .offset = 0, .length = 0}, 77 .location = {.poolIndex = 0, .offset = 0, .length = 0}, 86 .location = {.poolIndex = 0, .offset = 0, .length = 0}, 95 .location = {.poolIndex = 0, .offset = 0, .length = 0}, 104 .location = {.poolIndex = 0, .offset = 0, .length = 0}, [all …]
|
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/timezone/location/storage/tzs2range/read/ |
D | HeaderBlock.java | 40 int offset = 0; in HeaderBlock() local 43 int dataS2Level = blockData.getUnsignedByte(offset++); in HeaderBlock() 44 int prefixBitCount = blockData.getUnsignedByte(offset++); in HeaderBlock() 45 int suffixBitCount = blockData.getUnsignedByte(offset++); in HeaderBlock() 46 int suffixRecordBitCount = blockData.getUnsignedByte(offset++); in HeaderBlock() 47 int endCellIdOffsetBitCount = blockData.getUnsignedByte(offset++); in HeaderBlock() 48 int suffixTableBlockIdOffset = blockData.getUnsignedByte(offset++); in HeaderBlock() 55 char stringCount = blockData.getChar(offset); in HeaderBlock() 56 offset += Character.BYTES; in HeaderBlock() 61 byte[] bytes = blockData.getTinyByteArray(offset); in HeaderBlock() [all …]
|
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_internal/ |
D | stdout.txt.expect | 23 .location = {.poolIndex = 0, .offset = 0, .length = 0}, 32 .location = {.poolIndex = 0, .offset = 0, .length = 0}, 41 .location = {.poolIndex = 0, .offset = 0, .length = 4}, 50 .location = {.poolIndex = 0, .offset = 0, .length = 0}, 59 .location = {.poolIndex = 0, .offset = 4, .length = 8}, 68 .location = {.poolIndex = 0, .offset = 0, .length = 0}, 77 .location = {.poolIndex = 0, .offset = 0, .length = 0}, 86 .location = {.poolIndex = 0, .offset = 0, .length = 0}, 95 .location = {.poolIndex = 0, .offset = 0, .length = 0}, 104 .location = {.poolIndex = 0, .offset = 0, .length = 0}, [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapSmsPdu.java | 177 int offset = 0; in cdmaGetParameterOffset() local 192 offset += 2 + currentLen; in cdmaGetParameterOffset() 201 return offset; in cdmaGetParameterOffset() 211 int offset = 0; in cdmaGetSubParameterOffset() local 213 offset = cdmaGetParameterOffset(BEARER_DATA) in cdmaGetSubParameterOffset() 215 pdu.skip(offset); in cdmaGetSubParameterOffset() 227 offset += 2 + currentLen; in cdmaGetSubParameterOffset() 236 return offset; in cdmaGetSubParameterOffset() 249 int offset; in cdmaChangeToDeliverPdu() local 253 offset = cdmaGetParameterOffset(DESTINATION_ADDRESS); in cdmaChangeToDeliverPdu() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/ |
D | ExifParser.java | 190 long offset = tiffStream.readUnsignedInt(); in ExifParser() local 191 if (offset > Integer.MAX_VALUE) { in ExifParser() 192 throw new ExifInvalidFormatException("Invalid offset " + offset); in ExifParser() 194 ifd0Position = (int) offset; in ExifParser() 197 registerIfd(IfdId.TYPE_IFD_0, offset); in ExifParser() 198 if (offset != DEFAULT_IFD0_OFFSET) { in ExifParser() 199 dataAboveIfd0 = new byte[(int) offset - DEFAULT_IFD0_OFFSET]; in ExifParser() 253 int offset = tiffStream.getReadByteCount(); in next() local 255 if (offset < endOfTags) { in next() 264 } else if (offset == endOfTags) { in next() [all …]
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | BlobCache.java | 488 private boolean getBlob(RandomAccessFile file, int offset, in getBlob() argument 493 file.seek(offset); in getBlob() 508 if (blobOffset != offset) { in getBlob() 513 if (length < 0 || length > mMaxBytes - offset - BLOB_HEADER_SIZE) { in getBlob() 555 int offset = hashStart + slot * 12; in lookupInternal() local 556 long candidateKey = mIndexBuffer.getLong(offset); in lookupInternal() 557 int candidateOffset = mIndexBuffer.getInt(offset + 8); in lookupInternal() 559 mSlotOffset = offset; in lookupInternal() 562 mSlotOffset = offset; in lookupInternal() 606 int offset = mActiveHashStart + i * 12; in getActiveCount() local [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | CompositeAdapter.java | 149 int offset = position - start; in getPartitionAtPosition() local 152 offset--; in getPartitionAtPosition() 154 if (offset == -1) { in getPartitionAtPosition() 200 final int offset = position - start; in getItem() local 202 if (partition.hasHeader() && offset == 0 && in getItem() 207 return mPartitions[i].getAdapter().getItem(offset); in getItem() 222 final int offset = position - start; in getItemId() local 224 if (partition.hasHeader() && offset == 0 && in getItemId() 229 return mPartitions[i].getAdapter().getItemId(offset); in getItemId() 244 final int offset = position - start; in isEnabled() local [all …]
|
/packages/modules/Virtualization/authfs/fd_server/src/ |
D | main.rs | 56 fn validate_and_cast_offset(offset: i64) -> Result<u64, Status> { in validate_and_cast_offset() 57 offset.try_into().map_err(|_| { in validate_and_cast_offset() 58 new_binder_exception(ExceptionCode::ILLEGAL_ARGUMENT, format!("Invalid offset: {}", offset)) in validate_and_cast_offset() 113 fn readFile(&self, id: i32, offset: i64, size: i32) -> BinderResult<Vec<u8>> { in readFile() 115 let offset: u64 = validate_and_cast_offset(offset)?; in readFile() localVariable 119 read_into_buf(&file, size, offset).map_err(|e| { in readFile() 127 fn readFsverityMerkleTree(&self, id: i32, offset: i64, size: i32) -> BinderResult<Vec<u8>> { in readFsverityMerkleTree() 129 let offset: u64 = validate_and_cast_offset(offset)?; in readFsverityMerkleTree() localVariable 134 read_into_buf(&tree_file, size, offset).map_err(|e| { in readFsverityMerkleTree() 140 let s = fsverity::read_merkle_tree(file.as_raw_fd(), offset, &mut buf) in readFsverityMerkleTree() [all …]
|
/packages/modules/NetworkStack/src/android/net/apf/ |
D | ApfGenerator.java | 112 int offset; field in ApfGenerator.Instruction 239 int writingOffset = offset; in generate() 251 if ((writingOffset - offset) != size()) { in generate() 252 throw new IllegalStateException("wrote " + (writingOffset - offset) + in generate() 282 final int targetLabelOffset = targetLabelInstruction.offset - (offset + size()); in calculateTargetLabelOffset() 436 public ApfGenerator addLoad8(Register register, int offset) { in addLoad8() argument 438 instruction.setUnsignedImm(offset); in addLoad8() 447 public ApfGenerator addLoad16(Register register, int offset) { in addLoad16() argument 449 instruction.setUnsignedImm(offset); in addLoad16() 458 public ApfGenerator addLoad32(Register register, int offset) { in addLoad32() argument [all …]
|
/packages/apps/Gallery/src/com/android/camera/ |
D | ImageGetter.java | 53 public void imageLoaded(int pos, int offset, RotateBitmap bitmap, in imageLoaded() argument 55 public boolean wantsThumbnail(int pos, int offset); in wantsThumbnail() argument 56 public boolean wantsFullImage(int pos, int offset); in wantsFullImage() argument 57 public int fullImageSizeToUse(int pos, int offset); in fullImageSizeToUse() argument 102 private Runnable callback(final int position, final int offset, in callback() argument 111 mCB.imageLoaded(position, offset, bitmap, isThumb); in callback() 162 int offset = order[i]; 163 int imageNumber = mCurrentPosition + offset; 165 if (!mCB.wantsThumbnail(mCurrentPosition, offset)) { 180 Runnable cb = callback(mCurrentPosition, offset, [all …]
|