Home
last modified time | relevance | path

Searched refs:payload (Results 1 – 25 of 131) sorted by relevance

123456

/frameworks/base/packages/Osu/src/com/android/anqp/
DOSUProvider.java31 public OSUProvider(String ssid, ByteBuffer payload) throws ProtocolException { in OSUProvider() argument
32 if (payload.remaining() < 11) { in OSUProvider()
33 throw new ProtocolException("Truncated OSU provider: " + payload.remaining()); in OSUProvider()
38 int length = payload.getShort() & SHORT_MASK; in OSUProvider()
39 int namesLength = payload.getShort() & SHORT_MASK; in OSUProvider()
41 ByteBuffer namesBuffer = payload.duplicate().order(ByteOrder.LITTLE_ENDIAN); in OSUProvider()
43 payload.position(payload.position() + namesLength); in OSUProvider()
51 mOSUServer = Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8); in OSUProvider()
52 int methodLength = payload.get() & BYTE_MASK; in OSUProvider()
55 int methodID = payload.get() & BYTE_MASK; in OSUProvider()
[all …]
DConstants.java172 public static long getInteger(ByteBuffer payload, ByteOrder bo, int size) { in getInteger() argument
174 payload.get(octets); in getInteger()
189 public static String getPrefixedString(ByteBuffer payload, int lengthLength, Charset charset) in getPrefixedString() argument
191 return getPrefixedString(payload, lengthLength, charset, false); in getPrefixedString()
194 public static String getPrefixedString(ByteBuffer payload, int lengthLength, Charset charset, in getPrefixedString() argument
196 if (payload.remaining() < lengthLength) { in getPrefixedString()
197 throw new ProtocolException("Runt string: " + payload.remaining()); in getPrefixedString()
199 return getString(payload, (int) getInteger(payload, ByteOrder.LITTLE_ENDIAN, in getPrefixedString()
203 public static String getTrimmedString(ByteBuffer payload, int length, Charset charset) in getTrimmedString() argument
205 String s = getString(payload, length, charset, false); in getTrimmedString()
[all …]
DHSIconFileElement.java23 public HSIconFileElement(Constants.ANQPElementType infoID, ByteBuffer payload) in HSIconFileElement() argument
27 if (payload.remaining() < 4) { in HSIconFileElement()
28 throw new ProtocolException("Truncated icon file: " + payload.remaining()); in HSIconFileElement()
31 int statusID = payload.get() & BYTE_MASK; in HSIconFileElement()
33 mType = Constants.getPrefixedString(payload, 1, StandardCharsets.US_ASCII); in HSIconFileElement()
35 int dataLength = payload.getShort() & SHORT_MASK; in HSIconFileElement()
37 payload.get(mIconData); in HSIconFileElement()
DIconInfo.java21 public IconInfo(ByteBuffer payload) throws ProtocolException { in IconInfo() argument
22 if (payload.remaining() < 9) { in IconInfo()
26 mWidth = payload.getShort() & SHORT_MASK; in IconInfo()
27 mHeight = payload.getShort() & SHORT_MASK; in IconInfo()
28 mLanguage = Constants.getTrimmedString(payload, in IconInfo()
30 mIconType = Constants.getPrefixedString(payload, 1, StandardCharsets.US_ASCII); in IconInfo()
31 mFileName = Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8); in IconInfo()
DI18Name.java20 public I18Name(ByteBuffer payload) throws ProtocolException { in I18Name() argument
21 if (payload.remaining() < Constants.LANG_CODE_LENGTH + 1) { in I18Name()
22 throw new ProtocolException("Truncated I18Name: " + payload.remaining()); in I18Name()
24 int nameLength = payload.get() & BYTE_MASK; in I18Name()
28 mLanguage = Constants.getTrimmedString(payload, in I18Name()
31 mText = Constants.getString(payload, nameLength - in I18Name()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/
DOSUProvider.java30 public OSUProvider(ByteBuffer payload) throws ProtocolException { in OSUProvider() argument
31 if (payload.remaining() < 11) { in OSUProvider()
32 throw new ProtocolException("Truncated OSU provider: " + payload.remaining()); in OSUProvider()
35 int length = payload.getShort() & SHORT_MASK; in OSUProvider()
36 int namesLength = payload.getShort() & SHORT_MASK; in OSUProvider()
38 ByteBuffer namesBuffer = payload.duplicate().order(ByteOrder.LITTLE_ENDIAN); in OSUProvider()
40 payload.position(payload.position() + namesLength); in OSUProvider()
48 mOSUServer = Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8); in OSUProvider()
49 int methodLength = payload.get() & BYTE_MASK; in OSUProvider()
52 int methodID = payload.get() & BYTE_MASK; in OSUProvider()
[all …]
DCellularNetwork.java16 private CellularNetwork(int plmnCount, ByteBuffer payload) throws ProtocolException { in CellularNetwork() argument
20 if (payload.remaining() < 3) { in CellularNetwork()
24 payload.get(plmn); in CellularNetwork()
43 public static CellularNetwork buildCellularNetwork(ByteBuffer payload) in buildCellularNetwork() argument
45 int iei = payload.get() & BYTE_MASK; in buildCellularNetwork()
46 int plmnLen = payload.get() & 0x7f; in buildCellularNetwork()
49 payload.position(payload.position() + plmnLen); in buildCellularNetwork()
53 int plmnCount = payload.get() & BYTE_MASK; in buildCellularNetwork()
54 return new CellularNetwork(plmnCount, payload); in buildCellularNetwork()
DANQPFactory.java168 public static List<ANQPElement> parsePayload(ByteBuffer payload) throws ProtocolException { in parsePayload() argument
169 payload.order(ByteOrder.LITTLE_ENDIAN); in parsePayload()
171 while (payload.hasRemaining()) { in parsePayload()
172 elements.add(buildElement(payload)); in parsePayload()
177 private static ANQPElement buildElement(ByteBuffer payload) throws ProtocolException { in buildElement() argument
178 if (payload.remaining() < 4) in buildElement()
179 throw new ProtocolException("Runt payload: " + payload.remaining()); in buildElement()
181 int infoIDNumber = payload.getShort() & Constants.SHORT_MASK; in buildElement()
186 int length = payload.getShort() & Constants.SHORT_MASK; in buildElement()
188 if (payload.remaining() < length) { in buildElement()
[all …]
DHSConnectionCapabilityElement.java25 private ProtocolTuple(ByteBuffer payload) throws ProtocolException { in ProtocolTuple() argument
26 if (payload.remaining() < 4) { in ProtocolTuple()
27 throw new ProtocolException("Runt protocol tuple: " + payload.remaining()); in ProtocolTuple()
29 mProtocol = payload.get() & Constants.BYTE_MASK; in ProtocolTuple()
30 mPort = payload.getShort() & Constants.SHORT_MASK; in ProtocolTuple()
31 int statusNumber = payload.get() & Constants.BYTE_MASK; in ProtocolTuple()
59 public HSConnectionCapabilityElement(Constants.ANQPElementType infoID, ByteBuffer payload)
64 while (payload.hasRemaining()) {
65 mStatusList.add(new ProtocolTuple(payload));
DHSWanMetricsElement.java28 public HSWanMetricsElement(Constants.ANQPElementType infoID, ByteBuffer payload) in HSWanMetricsElement() argument
32 if (payload.remaining() != 13) { in HSWanMetricsElement()
33 throw new ProtocolException("Bad WAN metrics length: " + payload.remaining()); in HSWanMetricsElement()
36 int status = payload.get() & BYTE_MASK; in HSWanMetricsElement()
40 mDlSpeed = payload.getInt() & INT_MASK; in HSWanMetricsElement()
41 mUlSpeed = payload.getInt() & INT_MASK; in HSWanMetricsElement()
42 mDlLoad = payload.get() & BYTE_MASK; in HSWanMetricsElement()
43 mUlLoad = payload.get() & BYTE_MASK; in HSWanMetricsElement()
44 mLMD = payload.getShort() & SHORT_MASK; in HSWanMetricsElement()
DCivicLocationElement.java24 public CivicLocationElement(Constants.ANQPElementType infoID, ByteBuffer payload) in CivicLocationElement() argument
28 if (payload.remaining() < 6) { in CivicLocationElement()
29 throw new ProtocolException("Runt civic location:" + payload.remaining()); in CivicLocationElement()
32 int locType = payload.get() & Constants.BYTE_MASK; in CivicLocationElement()
37 int locSubType = payload.get() & Constants.BYTE_MASK; in CivicLocationElement()
43 int length = payload.get() & Constants.BYTE_MASK; in CivicLocationElement()
44 if (length > payload.remaining()) { in CivicLocationElement()
48 int what = payload.get() & Constants.BYTE_MASK; in CivicLocationElement()
51 mLocale = Locale.forLanguageTag(Constants.getString(payload, 2, StandardCharsets.US_ASCII)); in CivicLocationElement()
54 while (payload.hasRemaining()) { in CivicLocationElement()
[all …]
DConstants.java172 public static long getInteger(ByteBuffer payload, ByteOrder bo, int size) { in getInteger() argument
174 payload.get(octets); in getInteger()
189 public static String getPrefixedString(ByteBuffer payload, int lengthLength, Charset charset) in getPrefixedString() argument
191 return getPrefixedString(payload, lengthLength, charset, false); in getPrefixedString()
194 public static String getPrefixedString(ByteBuffer payload, int lengthLength, Charset charset, in getPrefixedString() argument
196 if (payload.remaining() < lengthLength) { in getPrefixedString()
197 throw new ProtocolException("Runt string: " + payload.remaining()); in getPrefixedString()
199 return getString(payload, (int) getInteger(payload, ByteOrder.LITTLE_ENDIAN, in getPrefixedString()
203 public static String getTrimmedString(ByteBuffer payload, int length, Charset charset) in getTrimmedString() argument
205 String s = getString(payload, length, charset, false); in getTrimmedString()
[all …]
DHSIconFileElement.java23 public HSIconFileElement(Constants.ANQPElementType infoID, ByteBuffer payload) in HSIconFileElement() argument
27 if (payload.remaining() < 4) { in HSIconFileElement()
28 throw new ProtocolException("Truncated icon file: " + payload.remaining()); in HSIconFileElement()
31 int statusID = payload.get() & BYTE_MASK; in HSIconFileElement()
33 mType = Constants.getPrefixedString(payload, 1, StandardCharsets.US_ASCII); in HSIconFileElement()
35 int dataLength = payload.getShort() & SHORT_MASK; in HSIconFileElement()
37 payload.get(mIconData); in HSIconFileElement()
DNAIRealmData.java23 public NAIRealmData(ByteBuffer payload) throws ProtocolException { in NAIRealmData() argument
24 if (payload.remaining() < 5) { in NAIRealmData()
25 throw new ProtocolException("Runt payload: " + payload.remaining()); in NAIRealmData()
28 int length = payload.getShort() & Constants.SHORT_MASK; in NAIRealmData()
29 if (length > payload.remaining()) { in NAIRealmData()
32 boolean utf8 = (payload.get() & 1) == Constants.UTF8_INDICATOR; in NAIRealmData()
34 String realm = Constants.getPrefixedString(payload, 1, utf8 ? in NAIRealmData()
45 int methodCount = payload.get() & Constants.BYTE_MASK; in NAIRealmData()
48 mEAPMethods.add(new EAPMethod(payload)); in NAIRealmData()
DThreeGPPNetworkElement.java19 public ThreeGPPNetworkElement(Constants.ANQPElementType infoID, ByteBuffer payload) in ThreeGPPNetworkElement() argument
24 mUserData = payload.get() & BYTE_MASK; in ThreeGPPNetworkElement()
25 int length = payload.get() & BYTE_MASK; in ThreeGPPNetworkElement()
26 if (length > payload.remaining()) { in ThreeGPPNetworkElement()
30 while (payload.hasRemaining()) { in ThreeGPPNetworkElement()
31 CellularNetwork network = CellularNetwork.buildCellularNetwork(payload); in ThreeGPPNetworkElement()
DIconInfo.java22 public IconInfo(ByteBuffer payload) throws ProtocolException { in IconInfo() argument
23 if (payload.remaining() < 9) { in IconInfo()
27 mWidth = payload.getShort() & SHORT_MASK; in IconInfo()
28 mHeight = payload.getShort() & SHORT_MASK; in IconInfo()
29 mLanguage = Constants.getTrimmedString(payload, in IconInfo()
31 mIconType = Constants.getPrefixedString(payload, 1, StandardCharsets.US_ASCII); in IconInfo()
32 mFileName = Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8); in IconInfo()
DCapabilityListElement.java13 public CapabilityListElement(Constants.ANQPElementType infoID, ByteBuffer payload) in CapabilityListElement() argument
16 if ((payload.remaining() & 1) == 1) in CapabilityListElement()
18 … mCapabilities = new Constants.ANQPElementType[payload.remaining() / Constants.BYTES_IN_SHORT]; in CapabilityListElement()
21 while (payload.hasRemaining()) { in CapabilityListElement()
22 int capID = payload.getShort() & Constants.SHORT_MASK; in CapabilityListElement()
DI18Name.java20 public I18Name(ByteBuffer payload) throws ProtocolException { in I18Name() argument
21 if (payload.remaining() < Constants.LANG_CODE_LENGTH + 1) { in I18Name()
22 throw new ProtocolException("Truncated I18Name: " + payload.remaining()); in I18Name()
24 int nameLength = payload.get() & BYTE_MASK; in I18Name()
28 mLanguage = Constants.getTrimmedString(payload, in I18Name()
31 mText = Constants.getString(payload, nameLength - in I18Name()
DRoamingConsortiumElement.java22 public RoamingConsortiumElement(Constants.ANQPElementType infoID, ByteBuffer payload) in RoamingConsortiumElement() argument
28 while (payload.hasRemaining()) { in RoamingConsortiumElement()
29 int length = payload.get() & BYTE_MASK; in RoamingConsortiumElement()
30 if (length > payload.remaining()) { in RoamingConsortiumElement()
33 mOis.add(getInteger(payload, ByteOrder.BIG_ENDIAN, length)); in RoamingConsortiumElement()
DNAIRealmElement.java24 public NAIRealmElement(Constants.ANQPElementType infoID, ByteBuffer payload) in NAIRealmElement() argument
28 if (!payload.hasRemaining()) { in NAIRealmElement()
33 if (payload.remaining() < BYTES_IN_SHORT) { in NAIRealmElement()
34 throw new ProtocolException("Runt NAI Realm: " + payload.remaining()); in NAIRealmElement()
37 int count = payload.getShort() & SHORT_MASK; in NAIRealmElement()
40 mRealmData.add(new NAIRealmData(payload)); in NAIRealmElement()
/frameworks/opt/net/voip/src/jni/rtp/
DG711Codec.cpp41 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 …]
DAmrCodec.cpp54 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 …]
DGsmCodec.cpp46 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/base/core/java/com/android/internal/widget/
DVerifyCredentialResponse.java51 byte[] payload = new byte[size];
52 source.readByteArray(payload);
53 response.setPayload(payload);
72 public VerifyCredentialResponse(byte[] payload) { in VerifyCredentialResponse() argument
73 mPayload = payload; in VerifyCredentialResponse()
83 private VerifyCredentialResponse(int responseCode, int timeout, byte[] payload) { in VerifyCredentialResponse() argument
86 mPayload = payload; in VerifyCredentialResponse()
123 private void setPayload(byte[] payload) { in setPayload() argument
124 mPayload = payload; in setPayload()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DAdapterHelper.java198 op.payload); in applyUpdate()
207 op.payload); in applyUpdate()
217 Object payload = op.payload; in applyUpdate() local
219 op = obtainUpdateOp(UpdateOp.UPDATE, tmpStart, tmpCount, payload); in applyUpdate()
282 UpdateOp tmp = obtainUpdateOp(op.cmd, tmpStart, tmpCnt, op.payload); in dispatchAndUpdateViewHolders()
295 Object payload = op.payload; in dispatchAndUpdateViewHolders() local
298 UpdateOp tmp = obtainUpdateOp(op.cmd, tmpStart, tmpCnt, payload); in dispatchAndUpdateViewHolders()
322 mCallback.markViewHoldersUpdated(offsetStart, op.itemCount, op.payload); in dispatchFirstPassAndUpdateViewHolders()
453 mCallback.markViewHoldersUpdated(op.positionStart, op.itemCount, op.payload); in postponeAndUpdateViewHolders()
504 boolean onItemRangeChanged(int positionStart, int itemCount, Object payload) { in onItemRangeChanged() argument
[all …]

123456