Home
last modified time | relevance | path

Searched refs:BYTES (Results 1 – 25 of 74) sorted by relevance

123

/packages/modules/NetworkStack/src/com/android/networkstack/netlink/
DTcpInfo.java36 STATE(Byte.BYTES),
37 CASTATE(Byte.BYTES),
38 RETRANSMITS(Byte.BYTES),
39 PROBES(Byte.BYTES),
40 BACKOFF(Byte.BYTES),
41 OPTIONS(Byte.BYTES),
42 WSCALE(Byte.BYTES),
43 DELIVERY_RATE_APP_LIMITED(Byte.BYTES),
44 RTO(Integer.BYTES),
45 ATO(Integer.BYTES),
[all …]
/packages/modules/GeoTZ/s2storage/src/write/java/com/android/storage/block/write/
DBlockFileWriter.java89 mCurrentBlockByteCount += Integer.BYTES; in addBlock()
91 mCurrentBlockByteCount += Integer.BYTES; in addBlock()
120 Integer.BYTES /* blockInfoSize */ in writeHeaderAndAppendTempFile()
121 + Integer.BYTES /* blockType */ in writeHeaderAndAppendTempFile()
122 + Long.BYTES /* blockOffset */ in writeHeaderAndAppendTempFile()
123 + Long.BYTES /* blockSizeBytes */ in writeHeaderAndAppendTempFile()
124 + Byte.BYTES /* extraBytesLength */; in writeHeaderAndAppendTempFile()
126 Character.BYTES /* magic */ in writeHeaderAndAppendTempFile()
127 + Integer.BYTES /* version */ in writeHeaderAndAppendTempFile()
128 + (10 * Byte.BYTES) /* reserved */ in writeHeaderAndAppendTempFile()
[all …]
/packages/modules/Uwb/service/java/com/android/server/uwb/params/
DTlvUtil.java24 ByteBuffer buffer = ByteBuffer.allocate(Byte.BYTES).put(data); in getBytes()
29 ByteBuffer buffer = ByteBuffer.allocate(Short.BYTES).order( in getBytes()
35 ByteBuffer buffer = ByteBuffer.allocate(Short.BYTES).order( in getLeBytes()
41 ByteBuffer buffer = ByteBuffer.allocate(Integer.BYTES).order( in getBytes()
47 ByteBuffer buffer = ByteBuffer.allocate(Integer.BYTES).order( in getLeBytes()
53 ByteBuffer buffer = ByteBuffer.allocate(Long.BYTES).order( in getBytes()
59 ByteBuffer buffer = ByteBuffer.allocate(Long.BYTES).order( in getLeBytes()
73 ByteBuffer srcBuf = ByteBuffer.allocate(Integer.BYTES).putInt(data); in getBytes()
DTlvBuffer.java59 addHeader(tagType, Byte.BYTES); in putByte()
78 addHeader(tagType, Short.BYTES); in putShort()
90 addHeader(tagType, length * Short.BYTES); in putShortArray()
99 addHeader(tagType, Integer.BYTES); in putInt()
106 addHeader(tagType, Long.BYTES); in putLong()
DTlvDecoderBuffer.java139 if (tlv.length != Byte.BYTES) { in getByte()
152 if (tlv.length != Short.BYTES) { in getShort()
165 if (tlv.length != Integer.BYTES) { in getInt()
178 if (tlv.length != Long.BYTES) { in getLong()
/packages/modules/AdServices/adservices/tests/cts/cobalt/src/com/android/adservices/tests/cobalt/
DAdServicesCobaltUploadTest.java34 private static final byte[] BYTES = {0x0a, 0x0b, 0x0c}; field in AdServicesCobaltUploadTest
57 new EncryptedCobaltEnvelopeParams(ENVIRONMENT_DEV, KEY_INDEX, BYTES); in testEncryptedCobaltEnvelopeParams()
61 assertThat(params.getCipherText()).isEqualTo(BYTES); in testEncryptedCobaltEnvelopeParams()
94 new EncryptedCobaltEnvelopeParams(ENVIRONMENT_DEV, KEY_INDEX, BYTES)); in testAdServicesCobaltUploadService_devEnvironment()
98 assertThat(params.getCipherText()).isEqualTo(BYTES); in testAdServicesCobaltUploadService_devEnvironment()
117 new EncryptedCobaltEnvelopeParams(ENVIRONMENT_PROD, KEY_INDEX, BYTES)); in testAdServicesCobaltUploadService_prodEnvironment()
121 assertThat(params.getCipherText()).isEqualTo(BYTES); in testAdServicesCobaltUploadService_prodEnvironment()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DXAttrUtils.java94 offset += Long.BYTES; in serializeFileAccessAttributes()
98 offset += Integer.BYTES; in serializeFileAccessAttributes()
104 offset += Integer.BYTES; in serializeFileAccessAttributes()
123 offset += Long.BYTES; in deserializeFileAccessAttributes()
126 offset += Integer.BYTES; in deserializeFileAccessAttributes()
132 offset += Integer.BYTES; in deserializeFileAccessAttributes()
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/cobalt/
DEncryptedCobaltEnvelopeParamsTest.java36 private static final byte[] BYTES = {0x0a, 0x0b, 0x0c}; field in EncryptedCobaltEnvelopeParamsTest
54 new EncryptedCobaltEnvelopeParams(ENVIRONMENT_PROD, KEY_INDEX, BYTES); in getMethods_returnExpectedValues()
57 assertThat(params.getCipherText()).isEqualTo(BYTES); in getMethods_returnExpectedValues()
65 new EncryptedCobaltEnvelopeParams(ENVIRONMENT_PROD, KEY_INDEX, BYTES); in parcelContents_areEqualToInput()
75 assertThat(outputParams.getCipherText()).isEqualTo(BYTES); in parcelContents_areEqualToInput()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/cobalt/
DCobaltUploaderTest.java59 private static final byte[] BYTES = {0x0a, 0x0b, 0x0c}; field in CobaltUploaderTest
100 .setCiphertext(ByteString.copyFrom(BYTES)) in environmentSet_devEnvironment()
108 expect.that(params.getCipherText()).isEqualTo(BYTES); in environmentSet_devEnvironment()
123 .setCiphertext(ByteString.copyFrom(BYTES)) in environmentSet_prodEnvironment()
131 expect.that(params.getCipherText()).isEqualTo(BYTES); in environmentSet_prodEnvironment()
145 .setCiphertext(ByteString.copyFrom(BYTES)) in nullService_doesThrow()
170 .setCiphertext(ByteString.copyFrom(BYTES)) in uploadThrowsRemoteException_logsError()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/discovery/info/
DChannelPowerInfoTest.java34 private static final byte[] BYTES = new byte[] {(byte) 0xE5, (byte) 0x9F}; field in ChannelPowerInfoTest
52 ChannelPowerInfo info = ChannelPowerInfo.fromBytes(BYTES); in fromBytes_succeed()
69 assertThat(result.length).isEqualTo(BYTES.length); in toBytes_succeed()
70 assertThat(result).isEqualTo(BYTES); in toBytes_succeed()
DVendorSpecificDataTest.java38 private static final byte[] BYTES = field in VendorSpecificDataTest
53 VendorSpecificData info = VendorSpecificData.fromBytes(BYTES, Optional.empty()); in fromBytes_succeed()
75 assertThat(result).isEqualTo(BYTES); in toBytes_succeed()
DAdminErrorMessageTest.java50 private static final byte[] BYTES = field in AdminErrorMessageTest
123 byte[] bytes = Arrays.copyOf(BYTES, BYTES.length); in testConstructwithBytes()
177 assertThat(MESSAGE.toBytes()).isEqualTo(BYTES); in testToBytes()
DFiraProfileSupportInfoTest.java36 private static final byte[] BYTES = new byte[] {0x1}; field in FiraProfileSupportInfoTest
87 assertThat(result).isEqualTo(BYTES); in toBytes_duplicateProfile()
96 assertThat(result).isEqualTo(BYTES); in toBytes_succeed()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/
DStructNlAttr.java155 setValue(new byte[Short.BYTES]); in StructNlAttr()
172 setValue(new byte[Integer.BYTES]); in StructNlAttr()
189 setValue(new byte[Long.BYTES]); in StructNlAttr()
255 if (byteBuffer == null || byteBuffer.remaining() != Short.BYTES) { in getValueAsBe16()
272 if (byteBuffer == null || byteBuffer.remaining() != Integer.BYTES) { in getValueAsBe32()
302 if (byteBuffer == null || byteBuffer.remaining() != Byte.BYTES) { in getValueAsByte()
314 if (byteBuffer == null || byteBuffer.remaining() != Integer.BYTES) { in getValueAsInteger()
326 if (byteBuffer == null || byteBuffer.remaining() != Long.BYTES) { in getValueAsLong()
/packages/modules/Uwb/service/java/com/android/server/uwb/util/
DDataTypeConversionUtil.java123 ByteBuffer byteBuffer = ByteBuffer.allocate(Integer.BYTES); in arbitraryByteArrayToI32()
124 byteBuffer.position(Integer.BYTES - bytes.length); in arbitraryByteArrayToI32()
133 return ByteBuffer.allocate(Integer.BYTES).order(ByteOrder.BIG_ENDIAN).putInt(n).array(); in i32ToByteArray()
140 return ByteBuffer.allocate(Integer.BYTES).order(ByteOrder.LITTLE_ENDIAN).putInt(n).array(); in i32ToLeByteArray()
/packages/modules/StatsD/framework/java/android/util/
DStatsEvent.java351 private static final int POS_TIMESTAMP_NS = POS_NUM_ELEMENTS + Byte.BYTES;
352 private static final int POS_ATOM_ID = POS_TIMESTAMP_NS + Byte.BYTES + Long.BYTES;
946 if (hasEnoughSpace(index, Byte.BYTES)) { in putByte()
948 return Byte.BYTES; in putByte()
972 if (hasEnoughSpace(index, Integer.BYTES)) { in putInt()
978 return Integer.BYTES; in putInt()
991 if (hasEnoughSpace(index, Long.BYTES)) { in putLong()
1001 return Long.BYTES; in putLong()
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/storage/block/read/
DBlockData.java92 return getBytes(byteOffset + Integer.BYTES, size); in getByteArray()
122 byteOffset += Character.BYTES; in getChars()
133 if (valueSizeBytes < 0 || valueSizeBytes > Long.BYTES) { in getValueAsLong()
DBlockFileReader.java114 (2 * Integer.BYTES) + (2 * Long.BYTES) + Byte.BYTES; in open()
/packages/services/Car/car-lib/src/android/car/
DVehiclePropertyType.java39 public static final int BYTES = 0x00700000; field in VehiclePropertyType
53 BYTES,
/packages/modules/Uwb/service/java/com/android/server/uwb/config/
DConfigParam.java163 ByteBuffer buffer = ByteBuffer.allocate(Integer.BYTES).putInt(tagType); in getTagBytes()
164 return Arrays.copyOfRange(buffer.array(), Integer.BYTES - tagLength, Integer.BYTES); in getTagBytes()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/discovery/ble/
DDiscoveryAdvertisementTest.java47 private static final byte[] BYTES = field in DiscoveryAdvertisementTest
187 DiscoveryAdvertisement adv = DiscoveryAdvertisement.fromBytes(BYTES, null); in fromBytes_succeed()
227 assertThat(result).isEqualTo(BYTES); in toBytes_succeedWithVendorData()
/packages/modules/NetworkStack/src/android/net/apf/
DDnsUtils.java44 private static final int LABEL_SIZE = Byte.BYTES;
45 private static final int POINTER_SIZE = Short.BYTES;
46 private static final int QUESTION_HEADER_SIZE = Short.BYTES + Short.BYTES;
/packages/modules/Wifi/service/java/com/android/server/wifi/
DByteBufferReader.java31 public static final int MINIMUM_INTEGER_SIZE = Byte.BYTES;
34 public static final int MAXIMUM_INTEGER_SIZE = Long.BYTES;
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/anqp/
DRoamingConsortiumElement.java29 public static final int MINIMUM_OI_LENGTH = Byte.BYTES;
32 public static final int MAXIMUM_OI_LENGTH = Long.BYTES;
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DPlannedExerciseSessionRecordHelper.java558 Length.fromMeters(convertBytesToDouble(Arrays.copyOfRange(bytes, 0, Double.BYTES))); in extractDistanceWithVariableRestGoal()
563 bytes, Double.BYTES, Double.BYTES + Long.BYTES))); in extractDistanceWithVariableRestGoal()
576 System.arraycopy(distanceBytes, 0, bytes, 0, Double.BYTES); in populateContentValuesForDistanceWithVariableRestGoal()
577 System.arraycopy(durationBytes, 0, bytes, Double.BYTES, Long.BYTES); in populateContentValuesForDistanceWithVariableRestGoal()

123