/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 | 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 | 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 | 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()
|
D | HSOsuProvidersElement.java | 68 public static HSOsuProvidersElement parse(ByteBuffer payload) in parse() argument 70 int ssidLength = payload.get() & 0xFF; in parse() 75 payload.get(ssidBytes); in parse() 77 int numProviders = payload.get() & 0xFF; in parse() 80 providers.add(OsuProviderInfo.parse(payload)); in parse()
|
D | HSIconFileElement.java | 74 public static HSIconFileElement parse(ByteBuffer payload) in parse() argument 77 int status = payload.get() & 0xFF; in parse() 86 ByteBufferReader.readStringWithByteLength(payload, StandardCharsets.US_ASCII); in parse() 90 (int) ByteBufferReader.readInteger(payload, ByteOrder.LITTLE_ENDIAN, 2) & 0xFFFF; in parse() 92 payload.get(iconData); 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/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 | 44 int encode(void *payload, int16_t *samples); 45 int decode(int16_t *samples, int count, void *payload, int length); 52 int GsmCodec::encode(void *payload, int16_t *samples) in encode() argument 54 gsm_encode(mEncode, samples, (unsigned char *)payload); in encode() 58 int GsmCodec::decode(int16_t *samples, int count, void *payload, int length) in decode() argument 60 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/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 | 184 public byte[] payload; field in IccIoResult 187 public IccIoResult(int sw1, int sw2, byte[] payload) { in IccIoResult() argument 190 this.payload = payload; in IccIoResult() 205 + (TelephonyUtils.IS_DEBUGGABLE ? IccUtils.bytesToHexString(payload) : "*******") in toString()
|
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/sms/ |
D | BearerData.java | 662 uData.payload = gcr.data; in encode7bitEms() 663 uData.payload[0] = (byte)udhData.length; in encode7bitEms() 664 System.arraycopy(udhData, 0, uData.payload, 1, udhData.length); in encode7bitEms() 670 byte[] payload = encodeUtf16(uData.payloadStr); in encode16bitEms() 673 int payloadCodeUnits = payload.length / 2; in encode16bitEms() 677 uData.payload = new byte[uData.numFields * 2]; in encode16bitEms() 678 uData.payload[0] = (byte)udhData.length; in encode16bitEms() 679 System.arraycopy(udhData, 0, uData.payload, 1, udhData.length); in encode16bitEms() 680 System.arraycopy(payload, 0, uData.payload, udhBytes, payload.length); in encode16bitEms() 692 byte[] payload ; in encode7bitAsciiEms() [all …]
|
/frameworks/base/tools/aapt/tests/ |
D | MockFileFinder.h | 39 const KeyedVector<String8,time_t>* payload(&mFiles.valueFor(basePath)); in findFiles() 42 for (size_t i = 0; i < payload->size(); ++i) { in findFiles() 43 fileStore.add(payload->keyAt(i),payload->valueAt(i)); in findFiles()
|
/frameworks/base/core/java/android/nfc/ |
D | NdefRecord.java | 558 public NdefRecord(short tnf, byte[] type, byte[] id, byte[] payload) { in NdefRecord() argument 562 if (payload == null) payload = EMPTY_BYTE_ARRAY; in NdefRecord() 564 String message = validateTnf(tnf, type, id, payload); in NdefRecord() 572 mPayload = payload; in NdefRecord() 792 byte[] payload = null; in parse() 839 payload = (payloadLength > 0 ? new byte[(int)payloadLength] : EMPTY_BYTE_ARRAY); in parse() 840 buffer.get(payload); in parse() 852 chunks.add(payload); in parse() 861 payload = new byte[(int)payloadLength]; in parse() 864 System.arraycopy(p, 0, payload, i, p.length); in parse() [all …]
|
/frameworks/av/media/libnblog/ |
D | Merger.cpp | 140 const HistTsEntry payload = it.payload<HistTsEntry>(); in processSnapshot() local 143 mThreadPerformanceAnalysis[author][0 /*hash*/].logTsEntry(payload.ts); in processSnapshot() 149 const thread_info_t info = it.payload<thread_info_t>(); in processSnapshot() 153 const thread_params_t params = it.payload<thread_params_t>(); in processSnapshot() 157 const double latencyMs = it.payload<double>(); in processSnapshot() 161 const int64_t monotonicNs = it.payload<int64_t>(); in processSnapshot() 167 const double timeMs = it.payload<double>(); in processSnapshot() 171 const int64_t ts = it.payload<int64_t>(); in processSnapshot() 180 const int64_t ts = it.payload<int64_t>(); in processSnapshot()
|