/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | Memory.java | 27 public static int peekInt(byte[] src, int offset, ByteOrder order) { in peekInt() argument 29 return (((src[offset++] & 0xff) << 24) | in peekInt() 30 ((src[offset++] & 0xff) << 16) | in peekInt() 31 ((src[offset++] & 0xff) << 8) | in peekInt() 32 ((src[offset ] & 0xff) << 0)); in peekInt() 34 return (((src[offset++] & 0xff) << 0) | in peekInt() 35 ((src[offset++] & 0xff) << 8) | in peekInt() 36 ((src[offset++] & 0xff) << 16) | in peekInt() 37 ((src[offset ] & 0xff) << 24)); in peekInt() 41 public static void pokeInt(byte[] dst, int offset, int value, ByteOrder order) { in pokeInt() argument [all …]
|
D | XAttrUtils.java | 90 int offset = 0; in serializeFileAccessAttributes() local 93 Memory.pokeLong(bytes, offset, fileAccessAttributes.getId(), byteOrder); in serializeFileAccessAttributes() 94 offset += Long.BYTES; in serializeFileAccessAttributes() 97 Memory.pokeInt(bytes, offset, fileAccessAttributes.getMediaType(), byteOrder); in serializeFileAccessAttributes() 98 offset += Integer.BYTES; in serializeFileAccessAttributes() 100 bytes[offset++] = (byte) (fileAccessAttributes.isPending() ? 1 : 0); in serializeFileAccessAttributes() 101 bytes[offset++] = (byte) (fileAccessAttributes.isTrashed() ? 1 : 0); in serializeFileAccessAttributes() 103 Memory.pokeInt(bytes, offset, fileAccessAttributes.getOwnerId(), byteOrder); in serializeFileAccessAttributes() 104 offset += Integer.BYTES; in serializeFileAccessAttributes() 105 if (offset != SIZE_OF_FILE_ATTRIBUTES) { in serializeFileAccessAttributes() [all …]
|
/packages/modules/Virtualization/libs/libfdt/src/ |
D | lib.rs | 96 fn from_offset(fdt: &Fdt, offset: PropOffset) -> Result<&Self> { in from_offset() 97 Ok(fdt.get_property_by_offset(offset)?.as_ref()) in from_offset() 117 offset: PropOffset, field 122 fn new(fdt: &'a Fdt, offset: PropOffset) -> Result<Self> { in new() 123 let property = FdtPropertyStruct::from_offset(fdt, offset)?; in new() 124 Ok(Self { fdt, offset, property }) in new() 138 if let Some(offset) = self.fdt.next_property_offset(self.offset)? { in next_property() 139 Ok(Some(Self::new(self.fdt, offset)?)) in next_property() 150 offset: NodeOffset, field 156 let offset = self.fdt.parent_offset(self.offset)?; in parent() localVariable [all …]
|
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/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/Bluetooth/framework/java/android/bluetooth/ |
D | BluetoothGattCharacteristic.java | 483 public Integer getIntValue(int formatType, int offset) { in getIntValue() argument 484 if ((offset + getTypeLen(formatType)) > mValue.length) return null; in getIntValue() 488 return unsignedByteToInt(mValue[offset]); in getIntValue() 491 return unsignedBytesToInt(mValue[offset], mValue[offset + 1]); in getIntValue() 495 mValue[offset], mValue[offset + 1], mValue[offset + 2], mValue[offset + 3]); in getIntValue() 497 return unsignedToSigned(unsignedByteToInt(mValue[offset]), 8); in getIntValue() 500 return unsignedToSigned(unsignedBytesToInt(mValue[offset], mValue[offset + 1]), 16); in getIntValue() 505 mValue[offset], in getIntValue() 506 mValue[offset + 1], in getIntValue() 507 mValue[offset + 2], in getIntValue() [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/Bluetooth/system/bta/vc/ |
D | device.cc | 124 VolumeOffset offset = VolumeOffset(service.handle); in set_volume_offset_control_service_handles() local 128 offset.state_handle = chrc.value_handle; in set_volume_offset_control_service_handles() 129 offset.state_ccc_handle = find_ccc_handle(chrc.value_handle); in set_volume_offset_control_service_handles() 132 offset.audio_location_handle = chrc.value_handle; in set_volume_offset_control_service_handles() 133 offset.audio_location_ccc_handle = find_ccc_handle(chrc.value_handle); in set_volume_offset_control_service_handles() 134 offset.audio_location_writable = in set_volume_offset_control_service_handles() 138 offset.control_point_handle = chrc.value_handle; in set_volume_offset_control_service_handles() 141 offset.audio_descr_handle = chrc.value_handle; in set_volume_offset_control_service_handles() 142 offset.audio_descr_ccc_handle = find_ccc_handle(chrc.value_handle); in set_volume_offset_control_service_handles() 143 offset.audio_descr_writable = in set_volume_offset_control_service_handles() [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/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/Bluetooth/system/stack/btm/ |
D | sco_pkt_status.h | 37 int offset; member 47 offset = 0; in init() 54 data[offset / 8] |= 1UL << (offset % 8); in update() 56 data[offset / 8] &= ~(1UL << (offset % 8)); in update() 58 if (offset == 0) { in update() 61 offset++; in update() 62 if (offset == size) { in update() 63 offset = 0; in update() 73 return !is_full ? ts : ts - BTM_PKT_STATUS_WBS_FRAME_US * (size - offset); in begin_ts_raw_us() 79 uint64_t end_ts_raw_us() { return ts + BTM_PKT_STATUS_WBS_FRAME_US * offset; } in end_ts_raw_us() [all …]
|
/packages/modules/Bluetooth/system/tools/scripts/ |
D | btsnooz.py | 100 offset = 0 101 while offset < len(decompressed): 102 length, delta_time_ms, type = struct.unpack_from('=HIb', decompressed, offset) 103 offset += 7 + length - 1 107 offset = 0 108 while offset < len(decompressed): 109 length, delta_time_ms, type = struct.unpack_from('=HIb', decompressed, offset) 111 offset += 7 116 sys.stdout.buffer.write(decompressed[offset:offset + length - 1]) 117 offset += length - 1 [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/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/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/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 …]
|
/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 …]
|
/packages/modules/GeoTZ/tzs2storage/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/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 …]
|
/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/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/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/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 …]
|
/packages/modules/Bluetooth/system/stack/gatt/ |
D | att_protocol.cc | 65 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_mtu_cmd() 85 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_exec_write_cmd() 119 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_err_cmd() 145 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_browse_cmd() 179 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_read_by_type_value_cmd() 215 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_read_multi_cmd() 237 uint16_t offset) { in attp_build_handle_cmd() argument 242 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_handle_cmd() 251 UINT16_TO_STREAM(p, offset); in attp_build_handle_cmd() 272 p_buf->offset = L2CAP_MIN_OFFSET; in attp_build_opcode_cmd() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/bass_client/ |
D | BaseData.java | 210 int offset = 0; in parseBaseData() local 211 System.arraycopy(serviceData, offset, levelOne.presentationDelay, 0, 3); in parseBaseData() 212 offset += METADATA_PRESENTATIONDELAY_LENGTH; in parseBaseData() 213 levelOne.numSubGroups = serviceData[offset++]; in parseBaseData() 217 Pair<BaseInformation, Integer> pair1 = parseLevelTwo(serviceData, i, offset); in parseBaseData() 226 offset = pair1.second; in parseBaseData() 228 Pair<BaseInformation, Integer> pair2 = parseLevelThree(serviceData, offset); in parseBaseData() 230 offset = pair2.second; in parseBaseData() 244 byte[] serviceData, int groupIndex, int offset) { in parseLevelTwo() argument 249 node.numSubGroups = serviceData[offset++]; in parseLevelTwo() [all …]
|