Home
last modified time | relevance | path

Searched refs:read (Results 1 – 25 of 755) sorted by relevance

12345678910>>...31

/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/msrp/
DMsrpParser.java46 int i = stream.read(); in parse()
59 i = stream.read(); in parse()
75 for (i = stream.read(); (i != CHAR_LF) && (i != -1); i = stream.read()) { in parse()
99 i = stream.read(); in parse()
124 i = stream.read(); in parse()
142 for (int i = stream.read(); (i != CHAR_LF) && (i != -1); ) { in readHeaders()
144 for (; (i != CHAR_DOUBLE_POINT) && (i != -1); i = stream.read()) { in readHeaders()
151 stream.read(); // skip space in readHeaders()
153 for (i = stream.read(); (i != CHAR_LF) && (i != -1); i = stream.read()) { in readHeaders()
162 stream.read(); in readHeaders()
[all …]
/packages/modules/Virtualization/libs/apkverify/src/
Dv3.rs97 let signers = block.read::<Signers>()?.into_inner(); in extract_signer_and_apk_sections()
128 let signed_data: SignedData = self.signed_data.slice(..).read()?; in find_digest_by_algorithm()
146 self.signed_data.slice(..).read() in parse_signed_data()
236 signed_data: buf.read()?, in read_from_bytes()
237 min_sdk: buf.read()?, in read_from_bytes()
238 max_sdk: buf.read()?, in read_from_bytes()
239 signatures: buf.read()?, in read_from_bytes()
240 public_key: buf.read()?, in read_from_bytes()
248 digests: buf.read()?, in read_from_bytes()
249 certificates: buf.read()?, in read_from_bytes()
[all …]
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DSmsHeader.java231 int id = inStream.read(); in fromByteArray()
232 int length = inStream.read(); in fromByteArray()
238 concatRef.refNumber = inStream.read(); in fromByteArray()
239 concatRef.msgCount = inStream.read(); in fromByteArray()
240 concatRef.seqNumber = inStream.read(); in fromByteArray()
249 concatRef.refNumber = (inStream.read() << 8) | inStream.read(); in fromByteArray()
250 concatRef.msgCount = inStream.read(); in fromByteArray()
251 concatRef.seqNumber = inStream.read(); in fromByteArray()
260 portAddrs.destPort = inStream.read(); in fromByteArray()
261 portAddrs.origPort = inStream.read(); in fromByteArray()
[all …]
DBearerData.java186 int paramBits = inStream.read(8) * 8; in decodeMessageId()
191 bData.messageId = inStream.read(8) << 8; in decodeMessageId()
192 bData.messageId |= inStream.read(8); in decodeMessageId()
193 bData.hasUserDataHeader = (inStream.read(1) == 1); in decodeMessageId()
208 int subparamLen = inStream.read(8); // SUBPARAM_LEN in decodeReserved()
226 int paramBits = inStream.read(8) * 8; in decodeUserData()
228 bData.userData.msgEncoding = inStream.read(5); in decodeUserData()
234 bData.userData.msgType = inStream.read(8); in decodeUserData()
237 bData.userData.numFields = inStream.read(8); in decodeUserData()
294 int charCode = inStream.read(7); in decode7bitAscii()
[all …]
DGsmSmsCbMessage.java193 int type = bitReader.read(4); in createGeoFencingTriggerMessage()
194 int length = bitReader.read(7); in createGeoFencingTriggerMessage()
203 int messageIdentifier = bitReader.read(16); in createGeoFencingTriggerMessage()
204 int serialNumber = bitReader.read(16); in createGeoFencingTriggerMessage()
248 int type = bitReader.read(4); in parseWarningAreaCoordinates()
249 int length = bitReader.read(10); in parseWarningAreaCoordinates()
256 maximumWaitTimeSec = bitReader.read(8); in parseWarningAreaCoordinates()
275 double radius = (bitReader.read(20) * 1.0 / (1 << 6)) * 1000.0; in parseWarningAreaCoordinates()
298 int wacLat = bitReader.read(22); in getLatLng()
299 int wacLng = bitReader.read(22); in getLatLng()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/
DPeekableInputStream.java37 public int read() throws IOException { in read() method in PeekableInputStream
39 return in.read(); in read()
48 peekedByte = read(); in peek()
55 public int read(byte[] b, int offset, int length) throws IOException { in read() method in PeekableInputStream
57 return in.read(b, offset, length); in read()
61 int r = in.read(b, offset + 1, length - 1); in read()
71 public int read(byte[] b) throws IOException { in read() method in PeekableInputStream
72 return read(b, 0, b.length); in read()
DFixedLengthInputStream.java42 public int read() throws IOException { in read() method in FixedLengthInputStream
45 return in.read(); in read()
52 public int read(byte[] b, int offset, int length) throws IOException { in read() method in FixedLengthInputStream
54 int d = in.read(b, offset, Math.min(this.length - count, length)); in read()
67 public int read(byte[] b) throws IOException { in read() method in FixedLengthInputStream
68 return read(b, 0, b.length); in read()
/packages/modules/Virtualization/libs/libfdt/tests/
Dapi_test.rs36 let data = fs::read(TEST_TREE_WITH_ONE_MEMORY_RANGE_PATH).unwrap(); in retrieving_memory_from_fdt_with_one_memory_range_succeeds()
48 let data = fs::read(TEST_TREE_WITH_MULTIPLE_MEMORY_RANGES_PATH).unwrap(); in retrieving_memory_from_fdt_with_multiple_memory_ranges_succeeds()
62 let data = fs::read(TEST_TREE_WITH_EMPTY_MEMORY_RANGE_PATH).unwrap(); in retrieving_first_memory_from_fdt_with_empty_memory_range_fails()
72 let data = fs::read(TEST_TREE_WITH_NO_MEMORY_NODE_PATH).unwrap(); in retrieving_memory_from_fdt_with_no_memory_node_fails()
81 let data = fs::read(TEST_TREE_WITH_NO_MEMORY_NODE_PATH).unwrap(); in node_name()
97 let data = fs::read(TEST_TREE_WITH_NO_MEMORY_NODE_PATH).unwrap(); in node_subnodes()
109 let data = fs::read(TEST_TREE_WITH_NO_MEMORY_NODE_PATH).unwrap(); in node_properties()
130 let data = fs::read(TEST_TREE_WITH_NO_MEMORY_NODE_PATH).unwrap(); in node_supernode_at_depth()
175 let data = fs::read(TEST_TREE_PHANDLE_PATH).unwrap(); in max_phandle()
184 let data = fs::read(TEST_TREE_PHANDLE_PATH).unwrap(); in node_with_phandle()
[all …]
/packages/modules/Virtualization/pvmfw/avb/tests/
Dapi_test.rs65 &fs::read(TEST_IMG_WITH_ONE_HASHDESC_PATH)?, in payload_expecting_no_initrd_passes_verification_with_no_initrd()
71 let kernel_digest = hash(&[&hex::decode("1111")?, &fs::read(UNSIGNED_TEST_IMG_PATH)?]); in payload_expecting_no_initrd_passes_verification_with_no_initrd()
88 &fs::read(TEST_IMG_WITH_NON_INITRD_HASHDESC_PATH)?, in payload_with_non_initrd_descriptor_fails_verification_with_no_initrd()
98 &fs::read(TEST_IMG_WITH_INITRD_AND_NON_INITRD_DESC_PATH)?, in payload_with_non_initrd_descriptor_fails_verification_with_initrd()
109 &fs::read(TEST_IMG_WITH_SERVICE_VM_PROP_PATH)?, in payload_expecting_no_initrd_passes_verification_with_service_vm_prop()
115 let kernel_digest = hash(&[&hex::decode("2131")?, &fs::read(UNSIGNED_TEST_IMG_PATH)?]); in payload_expecting_no_initrd_passes_verification_with_service_vm_prop()
132 &fs::read(TEST_IMG_WITH_UNKNOWN_VM_TYPE_PROP_PATH)?, in payload_with_unknown_vm_type_fails_verification_with_no_initrd()
142 &fs::read(TEST_IMG_WITH_MULTIPLE_PROPS_PATH)?, in payload_with_multiple_props_fails_verification_with_no_initrd()
152 &fs::read(TEST_IMG_WITH_DUPLICATED_CAP_PATH)?, in payload_with_duplicated_capability_fails_verification_with_no_initrd()
162 &fs::read(TEST_IMG_WITH_PROP_DESC_PATH)?, in payload_with_prop_descriptor_fails_verification_with_no_initrd()
[all …]
/packages/modules/Uwb/service/java/com/android/server/uwb/secure/iso7816/
DTlvParser.java52 private byte[] read(int bytes) throws IOException { in read() method in TlvParser.ByteArrayWrapper
137 byte[] tag = byteArrayWrapper.read(/* bytes= */ 1); in parseTlv()
140 tag = Bytes.concat(tag, byteArrayWrapper.read(/* bytes= */ 1)); in parseTlv()
143 byte[] lengthBytes = byteArrayWrapper.read(/* bytes= */ 1); in parseTlv()
146 lengthBytes = byteArrayWrapper.read(/* bytes= */ 1); in parseTlv()
149 lengthBytes = byteArrayWrapper.read(/* bytes= */ 2); in parseTlv()
152 lengthBytes = byteArrayWrapper.read(/* bytes= */ 3); in parseTlv()
155 lengthBytes = byteArrayWrapper.read(/* bytes= */ 4); in parseTlv()
161 byte[] value = byteArrayWrapper.read(length); in parseTlv()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/
DCountedDataInputStream.java45 public int read(byte[] b) throws IOException { in read() method in CountedDataInputStream
46 int r = in.read(b); in read()
52 public int read(byte[] b, int off, int len) throws IOException { in read() method in CountedDataInputStream
53 int r = in.read(b, off, len); in read()
59 public int read() throws IOException { in read() method in CountedDataInputStream
60 int r = in.read(); in read()
86 int r = read(b, off, len); in readOrThrow()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DCountedDataInputStream.java44 public int read(byte[] b) throws IOException { in read() method in CountedDataInputStream
45 int r = in.read(b); in read()
51 public int read(byte[] b, int off, int len) throws IOException { in read() method in CountedDataInputStream
52 int r = in.read(b, off, len); in read()
58 public int read() throws IOException { in read() method in CountedDataInputStream
59 int r = in.read(); in read()
83 int r = read(b, off, len); in readOrThrow()
/packages/apps/Messaging/src/com/android/messaging/util/exif/
DCountedDataInputStream.java44 public int read(byte[] b) throws IOException { in read() method in CountedDataInputStream
45 int r = in.read(b); in read()
51 public int read(byte[] b, int off, int len) throws IOException { in read() method in CountedDataInputStream
52 int r = in.read(b, off, len); in read()
58 public int read() throws IOException { in read() method in CountedDataInputStream
59 int r = in.read(); in read()
85 int r = read(b, off, len); in readOrThrow()
/packages/apps/Camera2/src/com/android/camera/exif/
DCountedDataInputStream.java44 public int read(byte[] b) throws IOException { in read() method in CountedDataInputStream
45 int r = in.read(b); in read()
51 public int read(byte[] b, int off, int len) throws IOException { in read() method in CountedDataInputStream
52 int r = in.read(b, off, len); in read()
58 public int read() throws IOException { in read() method in CountedDataInputStream
59 int r = in.read(); in read()
83 int r = read(b, off, len); in readOrThrow()
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DArchiveEntryInputStream.java46 public int read() throws IOException { in read() method in ArchiveEntryInputStream
51 public int read(byte[] b, int off, int len) throws IOException { in read() method in ArchiveEntryInputStream
53 return mReadSource.read(b, off, len); in read()
75 int read(byte[] b, int off, int len) throws IOException; in read() method
136 (b, off, len) -> ((SevenZFile) commonArchive).read(b, off, len), in create()
143 (b, off, len) -> inputStream.read(b, off, len), in create()
148 (b, off, len) -> ((ArchiveInputStream) commonArchive).read(b, off, len), in create()
/packages/modules/Bluetooth/system/rust/tests/
Dgatt_callbacks_test.rs57 .read(TCB_IDX, HANDLE_1, OFFSET, BACKING_TYPE) in test_read_characteristic_callback()
81 async move { datastore.read(TCB_IDX, HANDLE_1, OFFSET, BACKING_TYPE).await }, in test_read_characteristic_response()
104 async move { datastore.read(TCB_IDX, HANDLE_1, OFFSET, BACKING_TYPE).await }, in test_sequential_reads()
114 async move { datastore.read(TCB_IDX, HANDLE_1, OFFSET, BACKING_TYPE).await }, in test_sequential_reads()
138 async move { datastore.read(TCB_IDX, HANDLE_1, OFFSET, BACKING_TYPE).await }, in test_concurrent_reads()
145 async move { datastore.read(TCB_IDX, HANDLE_1, OFFSET, BACKING_TYPE).await }, in test_concurrent_reads()
170 spawn_local(async move { datastore.read(TCB_IDX, HANDLE_1, OFFSET, BACKING_TYPE).await }); in test_distinct_transaction_ids()
172 spawn_local(async move { datastore.read(TCB_IDX, HANDLE_1, OFFSET, BACKING_TYPE).await }); in test_distinct_transaction_ids()
192 spawn_local(async move { datastore.read(TCB_IDX, HANDLE_1, OFFSET, BACKING_TYPE).await }); in test_invalid_trans_id()
214 spawn_local(async move { datastore.read(TCB_IDX, HANDLE_1, OFFSET, BACKING_TYPE).await }); in test_invalid_conn_id()
[all …]
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/safetylabel/
DAppsSafetyLabelHistoryPersistenceTest.kt95 assertThat(AppsSafetyLabelHistoryPersistence.read(dataFile).appsSafetyLabelHistory) in read_afterDeleted_returnsNull()
107 assertThat(AppsSafetyLabelHistoryPersistence.read(dataFile).appsSafetyLabelHistory) in read_afterWrite_noHistory_returnsIdenticalAppsSafetyLabelHistory()
121 assertThat(AppsSafetyLabelHistoryPersistence.read(dataFile).appsSafetyLabelHistory) in read_afterWrite_noSharing_returnsIdenticalAppsSafetyLabelHistory()
139 assertThat(AppsSafetyLabelHistoryPersistence.read(dataFile).appsSafetyLabelHistory) in read_afterWrite_returnsIdenticalAppsSafetyLabelHistory()
145 assertThat(AppsSafetyLabelHistoryPersistence.read(dataFile).version).isEqualTo(0) in read_noFile_returnsInitialVersion()
158 assertThat(AppsSafetyLabelHistoryPersistence.read(dataFile).version).isEqualTo(0) in read_afterWrite_defaultVersion_returnsInitialVersion()
174 assertThat(AppsSafetyLabelHistoryPersistence.read(dataFile).version).isEqualTo(5) in read_afterWrite_specifiedVersion_returnsSpecifiedVersion()
183 assertThat(AppsSafetyLabelHistoryPersistence.read(dataFile).appsSafetyLabelHistory) in recordSafetyLabel_noAppsHistory_addsAppsHistory()
208 assertThat(AppsSafetyLabelHistoryPersistence.read(dataFile).appsSafetyLabelHistory) in recordSafetyLabel_noAppHistory_addsAppHistory()
241 assertThat(AppsSafetyLabelHistoryPersistence.read(dataFile).appsSafetyLabelHistory) in recordSafetyLabel_existingAppHistory_addsToHistory()
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DParcelables.java46 Parcel read = Parcel.obtain(); in parcel() local
52 read.unmarshall(data, 0, data.length); in parcel()
53 read.setDataPosition(0); in parcel()
54 restored = read.readParcelable(p.getClass().getClassLoader()); in parcel()
57 read.recycle(); in parcel()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DXmpDataParser.java280 public int read(byte[] b) throws IOException { in read() method in XmpDataParser.ByteCountingInputStream
281 return read(b, 0, b.length); in read()
285 public int read(byte[] b, int off, int len) throws IOException { in read() method in XmpDataParser.ByteCountingInputStream
286 final int read = mWrapped.read(b, off, len); in read() local
287 if (read == -1) return -1; in read()
289 for (int i = 0; i < read; i++) { in read()
295 mOffset += read; in read()
296 return read; in read()
300 public int read() throws IOException { in read() method in XmpDataParser.ByteCountingInputStream
301 int r = mWrapped.read(); in read()
/packages/modules/Virtualization/apkdmverity/src/
Dmain.rs241 let verity = fs::read(&ctx.result.mapper_device).unwrap(); in correct_inputs()
242 let original = fs::read(&ctx.result.data_device).unwrap(); in correct_inputs()
262 fs::read(&ctx.result.mapper_device).expect_err("Should fail"); in incorrect_apk()
285 fs::read(&ctx.result.mapper_device).expect_err("Should fail"); in incorrect_merkle_tree()
302 let f = OpenOptions::new().read(true).write(true).open(ctx.data_backing_file).unwrap(); in tampered_apk()
321 let f = OpenOptions::new().read(true).write(true).open(ctx.hash_backing_file).unwrap(); in tampered_idsig()
324 let verity = fs::read(&ctx.result.mapper_device).unwrap(); in tampered_idsig()
325 let original = fs::read(&ctx.result.data_device).unwrap(); in tampered_idsig()
376 let verity = fs::read(&ret.mapper_device).unwrap(); in inputs_are_block_devices()
377 let original = fs::read(&apk_path).unwrap(); in inputs_are_block_devices()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/sap/
DSapMessage.java384 paramCount = is.read(); in readMessage()
443 private static void read(InputStream is, byte[] buffer) throws IOException { in read() method in SapMessage
448 tmpBytesRead = is.read(buffer, bytesRead, bytesToRead - bytesRead); in read()
466 is.read(); // Do not use the InputStream.skip as it fails for some stream types in skip()
485 paramId = is.read(); in parseParameters()
486 is.read(); // Skip the reserved byte in parseParameters()
487 paramLength = is.read(); in parseParameters()
488 paramLength = paramLength << 8 | is.read(); in parseParameters()
507 mMaxMsgSize = is.read(); in parseParameters()
508 mMaxMsgSize = mMaxMsgSize << 8 | is.read(); in parseParameters()
[all …]
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothInputStream.java57 public int read() throws IOException { in read() method in BluetoothInputStream
59 int ret = mSocket.read(b, 0, 1); in read()
81 public int read(byte[] b, int offset, int length) throws IOException { in read() method in BluetoothInputStream
88 return mSocket.read(b, offset, length); in read()
/packages/modules/Virtualization/pvmfw/src/
Ddevice_assignment.rs1252 let mut fdt_data = fs::read(FDT_FILE_PATH).unwrap(); in device_info_new_without_symbols()
1253 let mut vm_dtbo_data = fs::read(VM_DTBO_WITHOUT_SYMBOLS_FILE_PATH).unwrap(); in device_info_new_without_symbols()
1264 let mut fdt_data = fs::read(FDT_WITHOUT_DEVICE_FILE_PATH).unwrap(); in device_info_new_without_device()
1265 let mut vm_dtbo_data = fs::read(VM_DTBO_FILE_PATH).unwrap(); in device_info_new_without_device()
1276 let mut fdt_data = fs::read(FDT_WITHOUT_IOMMUS_FILE_PATH).unwrap(); in device_info_assigned_info_without_iommus()
1277 let mut vm_dtbo_data = fs::read(VM_DTBO_FILE_PATH).unwrap(); in device_info_assigned_info_without_iommus()
1299 let mut fdt_data = fs::read(FDT_FILE_PATH).unwrap(); in device_info_assigned_info()
1300 let mut vm_dtbo_data = fs::read(VM_DTBO_FILE_PATH).unwrap(); in device_info_assigned_info()
1322 let mut fdt_data = fs::read(FDT_FILE_PATH).unwrap(); in device_info_filter()
1323 let mut vm_dtbo_data = fs::read(VM_DTBO_FILE_PATH).unwrap(); in device_info_filter()
[all …]
/packages/services/Telephony/utils/satellite/tools/src/main/java/com/android/telephony/tools/sats2/dump/
DSatS2RangeFileDumper.java25 import com.android.telephony.sats2range.read.HeaderBlock;
26 import com.android.telephony.sats2range.read.SatS2RangeFileFormat;
27 import com.android.telephony.sats2range.read.SatS2RangeFileReader;
28 import com.android.telephony.sats2range.read.SuffixTableBlock;
29 import com.android.telephony.sats2range.read.SuffixTableExtraInfo;
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/jpegstream/
DJPEGInputStream.java91 public int read() throws IOException { in read() method in JPEGInputStream
92 read(mTmpBuffer, 0, 1); in read()
97 public int read(byte[] buffer) throws IOException { in read() method in JPEGInputStream
98 return read(buffer, 0, buffer.length); in read()
102 public int read(byte[] buffer, int offset, int count) throws IOException { in read() method in JPEGInputStream

12345678910>>...31