/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/ |
D | ANQPParser.java | 58 public static ANQPElement parseElement(Constants.ANQPElementType infoID, ByteBuffer payload) in parseElement() argument 62 return VenueNameElement.parse(payload); in parseElement() 64 return RoamingConsortiumElement.parse(payload); in parseElement() 66 return IPAddressTypeAvailabilityElement.parse(payload); in parseElement() 68 return NAIRealmElement.parse(payload); in parseElement() 70 return ThreeGPPNetworkElement.parse(payload); in parseElement() 72 return DomainNameElement.parse(payload); in parseElement() 74 return parseVendorSpecificElement(payload); in parseElement() 90 ByteBuffer payload) throws ProtocolException { in parseHS20Element() argument 93 return HSFriendlyNameElement.parse(payload); in parseHS20Element() [all …]
|
D | OsuProviderInfo.java | 105 public static OsuProviderInfo parse(ByteBuffer payload) in parse() argument 108 int length = (int) ByteBufferReader.readInteger(payload, ByteOrder.LITTLE_ENDIAN, 2) in parse() 116 (int) ByteBufferReader.readInteger(payload, ByteOrder.LITTLE_ENDIAN, 2) & 0xFFFF; in parse() 117 ByteBuffer friendlyNameBuffer = getSubBuffer(payload, friendlyNameLength); in parse() 122 ByteBufferReader.readStringWithByteLength(payload, StandardCharsets.UTF_8)); in parse() 125 int methodListLength = payload.get() & 0xFF; in parse() 128 methodList.add(payload.get() & 0xFF); in parse() 134 (int) ByteBufferReader.readInteger(payload, ByteOrder.LITTLE_ENDIAN, 2) & 0xFFFF; in parse() 135 ByteBuffer iconBuffer = getSubBuffer(payload, availableIconLength); in parse() 142 String nai = ByteBufferReader.readStringWithByteLength(payload, StandardCharsets.UTF_8); in parse() [all …]
|
D | CellularNetwork.java | 79 public static CellularNetwork parse(ByteBuffer payload) throws ProtocolException { in parse() argument 80 int ieiType = payload.get() & 0xFF; in parse() 81 int ieiSize = payload.get() & IEI_CONTENT_LENGTH_MASK; in parse() 87 payload.position(payload.position() + ieiSize); in parse() 92 int plmnCount = payload.get() & 0xFF; in parse() 104 plmnList.add(parsePlmn(payload)); in parse() 150 private static String parsePlmn(ByteBuffer payload) { in parsePlmn() argument 152 payload.get(plmn); in parsePlmn()
|
D | ThreeGPPNetworkElement.java | 63 public static ThreeGPPNetworkElement parse(ByteBuffer payload) in parse() argument 66 int gudVersion = payload.get() & 0xFF; in parse() 72 int length = payload.get() & 0xFF; in parse() 73 if (length != payload.remaining()) { in parse() 75 + " bufferSize=" + payload.remaining()); in parse() 80 while (payload.hasRemaining()) { in parse() 81 CellularNetwork network = CellularNetwork.parse(payload); in parse()
|
D | HSWanMetricsElement.java | 89 public static HSWanMetricsElement parse(ByteBuffer payload) in parse() argument 91 if (payload.remaining() != EXPECTED_BUFFER_SIZE) { in parse() 92 throw new ProtocolException("Unexpected buffer size: " + payload.remaining()); in parse() 95 int wanInfo = payload.get() & 0xFF; in parse() 99 long downlinkSpeed = ByteBufferReader.readInteger(payload, ByteOrder.LITTLE_ENDIAN, 4) in parse() 101 long uplinkSpeed = ByteBufferReader.readInteger(payload, ByteOrder.LITTLE_ENDIAN, 4) in parse() 103 int downlinkLoad = payload.get() & 0xFF; in parse() 104 int uplinkLoad = payload.get() & 0xFF; in parse() 105 int lmd = (int) ByteBufferReader.readInteger(payload, ByteOrder.LITTLE_ENDIAN, 2) & 0xFFFF; in parse()
|
D | RawByteElement.java | 31 public RawByteElement(Constants.ANQPElementType infoID, byte[] payload) { in RawByteElement() argument 33 mPayload = payload; in RawByteElement() 42 public static RawByteElement parse(Constants.ANQPElementType infoID, ByteBuffer payload) { in parse() argument 43 byte[] rawBytes = new byte[payload.remaining()]; in parse() 44 if (payload.hasRemaining()) { in parse() 45 payload.get(rawBytes); in parse()
|
D | NAIRealmData.java | 67 public static NAIRealmData parse(ByteBuffer payload) throws ProtocolException { in parse() argument 69 int length = (int) ByteBufferReader.readInteger(payload, ByteOrder.LITTLE_ENDIAN, 2) in parse() 71 if (length > payload.remaining()) { in parse() 76 boolean utf8 = (payload.get() & NAI_ENCODING_UTF8_MASK) != 0; in parse() 80 payload, utf8 ? StandardCharsets.UTF_8 : StandardCharsets.US_ASCII); in parse() 84 int methodCount = payload.get() & 0xFF; in parse() 87 eapMethodList.add(EAPMethod.parse(payload)); in parse()
|
D | IconInfo.java | 65 public static IconInfo parse(ByteBuffer payload) { in parse() argument 66 int width = (int) ByteBufferReader.readInteger(payload, ByteOrder.LITTLE_ENDIAN, 2) in parse() 68 int height = (int) ByteBufferReader.readInteger(payload, ByteOrder.LITTLE_ENDIAN, 2) in parse() 73 payload, LANGUAGE_CODE_LENGTH, StandardCharsets.US_ASCII).trim(); in parse() 76 ByteBufferReader.readStringWithByteLength(payload, StandardCharsets.US_ASCII); in parse() 78 ByteBufferReader.readStringWithByteLength(payload, StandardCharsets.UTF_8); in parse()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/eap/ |
D | EAPMethod.java | 56 public static EAPMethod parse(ByteBuffer payload) throws ProtocolException { in parse() argument 58 int length = payload.get() & 0xFF; in parse() 59 if (length > payload.remaining()) { in parse() 63 int methodID = payload.get() & 0xFF; in parse() 64 int authCount = payload.get() & 0xFF; in parse() 67 addAuthParam(authParams, parseAuthParam(payload)); in parse() 85 private static AuthParam parseAuthParam(ByteBuffer payload) throws ProtocolException { in parseAuthParam() argument 86 int authID = payload.get() & 0xFF; in parseAuthParam() 87 int length = payload.get() & 0xFF; in parseAuthParam() 90 return ExpandedEAPMethod.parse(payload, length, false); in parseAuthParam() [all …]
|
/frameworks/opt/net/ike/tests/iketests/src/java/com/android/ike/ikev2/message/ |
D | IkeIdPayloadTest.java | 53 IkeIdPayload payload = new IkeIdPayload(false, inputPacket, false); in testDecodeIpv4AddrIdPayload() local 55 assertEquals(IkePayload.PAYLOAD_TYPE_ID_RESPONDER, payload.payloadType); in testDecodeIpv4AddrIdPayload() 56 assertEquals(IkeIdentification.ID_TYPE_IPV4_ADDR, payload.ikeId.idType); in testDecodeIpv4AddrIdPayload() 57 IkeIpv4AddrIdentification ikeId = (IkeIpv4AddrIdentification) payload.ikeId; in testDecodeIpv4AddrIdPayload() 66 IkeIdPayload payload = new IkeIdPayload(false, inputPacket, false); in testDecodeIpv6AddrIdPayload() local 68 assertEquals(IkePayload.PAYLOAD_TYPE_ID_RESPONDER, payload.payloadType); in testDecodeIpv6AddrIdPayload() 69 assertEquals(IkeIdentification.ID_TYPE_IPV6_ADDR, payload.ikeId.idType); in testDecodeIpv6AddrIdPayload() 70 IkeIpv6AddrIdentification ikeId = (IkeIpv6AddrIdentification) payload.ikeId; in testDecodeIpv6AddrIdPayload() 91 IkeIdPayload payload = new IkeIdPayload(false, new IkeIpv4AddrIdentification(ipv4Address)); in testConstructAndEncodeIpv4AddrIdPayload() local 93 ByteBuffer inputBuffer = ByteBuffer.allocate(payload.getPayloadLength()); in testConstructAndEncodeIpv4AddrIdPayload() [all …]
|
D | IkeKePayloadTest.java | 100 IkeKePayload payload = new IkeKePayload(CRITICAL_BIT, inputPacket); in testDecodeIkeKePayload() local 102 assertFalse(payload.isOutbound); in testDecodeIkeKePayload() 103 assertEquals(EXPECTED_DH_GROUP, payload.dhGroup); in testDecodeIkeKePayload() 106 assertEquals(keyExchangeData.length, payload.keyExchangeData.length); in testDecodeIkeKePayload() 108 assertEquals(keyExchangeData[i], payload.keyExchangeData[i]); in testDecodeIkeKePayload() 120 IkeKePayload payload = new IkeKePayload(CRITICAL_BIT, inputPacket); in testDecodeIkeKePayloadWithInvalidKeData() local 129 IkeKePayload payload = new IkeKePayload(CRITICAL_BIT, inputPacket); in testEncodeIkeKePayload() local 131 ByteBuffer byteBuffer = ByteBuffer.allocate(payload.getPayloadLength()); in testEncodeIkeKePayload() 132 payload.encodeToByteBuffer(NEXT_PAYLOAD_TYPE, byteBuffer); in testEncodeIkeKePayload() 141 IkeKePayload payload = new IkeKePayload(SaProposal.DH_GROUP_1024_BIT_MODP); in testGetIkeKePayload() local [all …]
|
D | IkeNotifyPayloadTest.java | 59 IkeNotifyPayload payload = new IkeNotifyPayload(false, inputPacket); in testDecodeNotifyPayload() local 60 assertEquals(EXPECTED_PROTOCOL_ID, payload.protocolId); in testDecodeNotifyPayload() 61 assertEquals(EXPECTED_SPI_SIZE, payload.spiSize); in testDecodeNotifyPayload() 62 assertEquals(EXPECTED_NOTIFY_TYPE, payload.notifyType); in testDecodeNotifyPayload() 63 assertEquals(EXPECTED_SPI_SIZE, payload.spi); in testDecodeNotifyPayload() 64 assertEquals(EXPECTED_NOTIFY_DATA_LEN, payload.notifyData.length); in testDecodeNotifyPayload() 73 IkeNotifyPayload payload = new IkeNotifyPayload(false, inputPacket); in testDecodeNotifyPayloadThrowException() local 97 IkeNotifyPayload payload = new IkeNotifyPayload(false, inputPacket); in testEncodeNotifyPayload() local 99 ByteBuffer byteBuffer = ByteBuffer.allocate(payload.getPayloadLength()); in testEncodeNotifyPayload() 100 payload.encodeToByteBuffer(NEXT_PAYLOAD_TYPE, byteBuffer); in testEncodeNotifyPayload()
|
/frameworks/opt/net/voip/src/jni/rtp/ |
D | G711Codec.cpp | 41 int encode(void *payload, int16_t *samples); 42 int decode(int16_t *samples, int count, void *payload, int length); 47 int UlawCodec::encode(void *payload, int16_t *samples) in encode() argument 49 int8_t *ulaws = (int8_t *)payload; in encode() 67 int UlawCodec::decode(int16_t *samples, int count, void *payload, int length) in decode() argument 69 int8_t *ulaws = (int8_t *)payload; in decode() 92 int encode(void *payload, int16_t *samples); 93 int decode(int16_t *samples, int count, void *payload, int length); 98 int AlawCodec::encode(void *payload, int16_t *samples) in encode() argument 100 int8_t *alaws = (int8_t *)payload; in encode() [all …]
|
D | AmrCodec.cpp | 54 int encode(void *payload, int16_t *samples); 55 int decode(int16_t *samples, int count, void *payload, int length); 100 int AmrCodec::encode(void *payload, int16_t *samples) in encode() argument 102 unsigned char *bytes = (unsigned char *)payload; in encode() 131 int AmrCodec::decode(int16_t *samples, int /* count */, void *payload, int length) in decode() argument 133 unsigned char *bytes = (unsigned char *)payload; in decode() 215 int encode(void *payload, int16_t *samples); 216 int decode(int16_t *samples, int count, void *payload, int length); 224 int GsmEfrCodec::encode(void *payload, int16_t *samples) in encode() argument 226 unsigned char *bytes = (unsigned char *)payload; in encode() [all …]
|
D | GsmCodec.cpp | 46 int encode(void *payload, int16_t *samples); 47 int decode(int16_t *samples, int count, void *payload, int length); 54 int GsmCodec::encode(void *payload, int16_t *samples) in encode() argument 56 gsm_encode(mEncode, samples, (unsigned char *)payload); in encode() 60 int GsmCodec::decode(int16_t *samples, int count, void *payload, int length) in decode() argument 62 unsigned char *bytes = (unsigned char *)payload; in decode()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ByteBufferReader.java | 46 public static long readInteger(ByteBuffer payload, ByteOrder byteOrder, int size) { in readInteger() argument 53 payload.get(octets); in readInteger() 79 public static String readString(ByteBuffer payload, int length, Charset charset) { in readString() argument 81 payload.get(octets); in readString() 94 public static String readStringWithByteLength(ByteBuffer payload, Charset charset) { in readStringWithByteLength() argument 95 int length = payload.get() & 0xFF; in readStringWithByteLength() 96 return readString(payload, length, charset); in readStringWithByteLength()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | VerifyCredentialResponse.java | 54 byte[] payload = new byte[size]; 55 source.readByteArray(payload); 56 response.setPayload(payload); 75 public VerifyCredentialResponse(byte[] payload) { in VerifyCredentialResponse() argument 76 mPayload = payload; in VerifyCredentialResponse() 86 private VerifyCredentialResponse(int responseCode, int timeout, byte[] payload) { in VerifyCredentialResponse() argument 89 mPayload = payload; in VerifyCredentialResponse() 128 private void setPayload(byte[] payload) { in setPayload() argument 129 mPayload = payload; in setPayload()
|
D | AdapterHelper.java | 196 op.payload); in applyUpdate() 205 op.payload); in applyUpdate() 215 Object payload = op.payload; in applyUpdate() local 217 op = obtainUpdateOp(UpdateOp.UPDATE, tmpStart, tmpCount, payload); in applyUpdate() 280 UpdateOp tmp = obtainUpdateOp(op.cmd, tmpStart, tmpCnt, op.payload); in dispatchAndUpdateViewHolders() 293 Object payload = op.payload; in dispatchAndUpdateViewHolders() local 296 UpdateOp tmp = obtainUpdateOp(op.cmd, tmpStart, tmpCnt, payload); in dispatchAndUpdateViewHolders() 320 mCallback.markViewHoldersUpdated(offsetStart, op.itemCount, op.payload); in dispatchFirstPassAndUpdateViewHolders() 451 mCallback.markViewHoldersUpdated(op.positionStart, op.itemCount, op.payload); in postponeAndUpdateViewHolders() 502 boolean onItemRangeChanged(int positionStart, int itemCount, Object payload) { in onItemRangeChanged() argument [all …]
|
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/ |
D | remote_method.h | 148 rpc::ServicePayload<ReplyBuffer> payload(message); 149 MakeArgumentEncoder<Signature>(&payload).EncodeReturn(return_value); 151 auto ret = message.WriteAll(payload.Data(), payload.Size()); 185 rpc::ServicePayload<ReceiveBuffer> payload(message); 186 payload.Resize(max_capacity); 188 Status<size_t> read_status = message.Read(payload.Data(), payload.Size()); 194 payload.Resize(read_status.get()); 197 auto decoder = MakeArgumentDecoder<Signature>(&payload); 221 rpc::ServicePayload<ReceiveBuffer> payload(message); 222 payload.Resize(max_capacity); [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/benchmarks/ |
D | generate_datasets.cc | 48 const std::vector<std::string>& payload) { in WriteFileWithPayloads() argument 67 for (size_t i = 0; i < payload.size(); i++) { in WriteFileWithPayloads() 68 if (!m->ParseFromString(payload[i])) { in WriteFileWithPayloads() 78 for (size_t i = 0; i < payload.size(); i++) { in WriteFileWithPayloads() 79 dataset.add_payload()->assign(payload[i]); in WriteFileWithPayloads() 92 const std::string& payload) { in WriteFile() argument 94 payloads.push_back(payload); in WriteFile()
|
/frameworks/native/libs/vr/libpdx_uds/private/uds/ |
D | ipc_helper.h | 166 SendPayload payload; variable 167 rpc::Serialize(data, &payload); 168 return payload.Send(socket_fd, nullptr, data_vec, vec_count); 176 SendPayload payload; variable 177 rpc::Serialize(request, &payload); 178 return payload.Send(socket_fd, &request.cred, data_vec, vec_count); 188 ReceivePayload payload; in ReceiveData() local 189 Status<void> status = payload.Receive(socket_fd); in ReceiveData() 190 if (status && rpc::Deserialize(data, &payload) != rpc::ErrorCode::NO_ERROR) in ReceiveData() 198 ReceivePayload payload; in ReceiveData() local [all …]
|
/frameworks/base/core/java/android/service/gatekeeper/ |
D | GateKeeperResponse.java | 57 public static GateKeeperResponse createOkResponse(byte[] payload, boolean shouldReEnroll) { in createOkResponse() argument 59 response.mPayload = payload; in createOkResponse() 79 byte[] payload = null; 82 payload = new byte[size]; 83 source.readByteArray(payload); 85 response = createOkResponse(payload, shouldReEnroll);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | IccIoResult.java | 180 public byte[] payload; field in IccIoResult 183 public IccIoResult(int sw1, int sw2, byte[] payload) { in IccIoResult() argument 186 this.payload = payload; in IccIoResult() 201 + (Build.IS_DEBUGGABLE ? IccUtils.bytesToHexString(payload) : "*******") in toString()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/ |
D | field_mask_util_test.cc | 424 EXPECT_EQ(1234, nested_dst.child().payload().optional_int32()); in TEST() 425 EXPECT_EQ(0, nested_dst.child().child().payload().optional_int32()); in TEST() 429 EXPECT_EQ(1234, nested_dst.child().payload().optional_int32()); in TEST() 430 EXPECT_EQ(5678, nested_dst.child().child().payload().optional_int32()); in TEST() 435 EXPECT_EQ(0, nested_dst.child().payload().optional_int32()); in TEST() 436 EXPECT_EQ(5678, nested_dst.child().child().payload().optional_int32()); in TEST() 441 EXPECT_EQ(1234, nested_dst.child().payload().optional_int32()); in TEST() 442 EXPECT_EQ(5678, nested_dst.child().child().payload().optional_int32()); in TEST() 451 EXPECT_EQ(1234, nested_dst.child().payload().optional_int32()); in TEST() 452 EXPECT_EQ(4321, nested_dst.child().payload().optional_int64()); in TEST() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/ |
D | BearerData.java | 578 uData.payload = gcr.data; in encode7bitEms() 579 uData.payload[0] = (byte)udhData.length; in encode7bitEms() 580 System.arraycopy(udhData, 0, uData.payload, 1, udhData.length); in encode7bitEms() 586 byte[] payload = encodeUtf16(uData.payloadStr); in encode16bitEms() 589 int payloadCodeUnits = payload.length / 2; in encode16bitEms() 593 uData.payload = new byte[uData.numFields * 2]; in encode16bitEms() 594 uData.payload[0] = (byte)udhData.length; in encode16bitEms() 595 System.arraycopy(udhData, 0, uData.payload, 1, udhData.length); in encode16bitEms() 596 System.arraycopy(payload, 0, uData.payload, udhBytes, payload.length); in encode16bitEms() 608 byte[] payload ; in encode7bitAsciiEms() [all …]
|