/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/ |
D | OSUProvider.java | 29 public OSUProvider(ByteBuffer payload) throws ProtocolException { in OSUProvider() argument 30 if (payload.remaining() < 11) { in OSUProvider() 31 throw new ProtocolException("Truncated OSU provider: " + payload.remaining()); in OSUProvider() 34 int length = payload.getShort() & SHORT_MASK; in OSUProvider() 35 int namesLength = payload.getShort() & SHORT_MASK; in OSUProvider() 37 ByteBuffer namesBuffer = payload.duplicate().order(ByteOrder.LITTLE_ENDIAN); in OSUProvider() 39 payload.position(payload.position() + namesLength); in OSUProvider() 47 mOSUServer = Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8); in OSUProvider() 48 int methodLength = payload.get() & BYTE_MASK; in OSUProvider() 51 int methodID = payload.get() & BYTE_MASK; in OSUProvider() [all …]
|
D | ANQPFactory.java | 132 public static List<ANQPElement> parsePayload(ByteBuffer payload) throws ProtocolException { in parsePayload() argument 133 payload.order(ByteOrder.LITTLE_ENDIAN); in parsePayload() 135 while (payload.hasRemaining()) { in parsePayload() 136 elements.add(buildElement(payload)); in parsePayload() 141 private static ANQPElement buildElement(ByteBuffer payload) throws ProtocolException { in buildElement() argument 142 if (payload.remaining() < 4) in buildElement() 143 throw new ProtocolException("Runt payload: " + payload.remaining()); in buildElement() 145 int infoIDNumber = payload.getShort() & Constants.SHORT_MASK; in buildElement() 150 int length = payload.getShort() & Constants.SHORT_MASK; in buildElement() 152 if (payload.remaining() < length) { in buildElement() [all …]
|
D | CellularNetwork.java | 16 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()
|
D | HSConnectionCapabilityElement.java | 25 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));
|
D | HSWanMetricsElement.java | 28 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()
|
D | IconInfo.java | 22 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 mLocale = Locale.forLanguageTag(Constants.getString(payload, 3, StandardCharsets.US_ASCII)); in IconInfo() 30 mIconType = Constants.getPrefixedString(payload, 1, StandardCharsets.US_ASCII); in IconInfo() 31 mFileName = Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8); in IconInfo()
|
D | CivicLocationElement.java | 24 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 …]
|
D | HSIconFileElement.java | 23 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()
|
D | Constants.java | 148 public static long getInteger(ByteBuffer payload, ByteOrder bo, int size) { in getInteger() argument 150 payload.get(octets); in getInteger() 165 public static String getPrefixedString(ByteBuffer payload, int lengthLength, Charset charset) in getPrefixedString() argument 167 return getPrefixedString(payload, lengthLength, charset, false); in getPrefixedString() 170 public static String getPrefixedString(ByteBuffer payload, int lengthLength, Charset charset, in getPrefixedString() argument 172 if (payload.remaining() < lengthLength) { in getPrefixedString() 173 throw new ProtocolException("Runt string: " + payload.remaining()); in getPrefixedString() 175 return getString(payload, (int) getInteger(payload, ByteOrder.LITTLE_ENDIAN, in getPrefixedString() 179 public static String getString(ByteBuffer payload, int length, Charset charset) in getString() argument 181 return getString(payload, length, charset, false); in getString() [all …]
|
D | I18Name.java | 20 public I18Name(ByteBuffer payload) throws ProtocolException { in I18Name() argument 21 if (payload.remaining() < 4) { in I18Name() 22 throw new ProtocolException("Truncated I18Name: " + payload.remaining()); in I18Name() 24 int nameLength = payload.get() & BYTE_MASK; in I18Name() 28 String language = Constants.getString(payload, LANG_CODE_LENGTH, StandardCharsets.US_ASCII); in I18Name() 30 mText = Constants.getString(payload, nameLength - LANG_CODE_LENGTH, StandardCharsets.UTF_8); in I18Name()
|
D | NAIRealmData.java | 23 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()
|
D | ThreeGPPNetworkElement.java | 19 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()
|
D | CapabilityListElement.java | 13 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()
|
D | RoamingConsortiumElement.java | 22 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()
|
D | NAIRealmElement.java | 24 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()
|
D | HSCapabilityListElement.java | 15 public HSCapabilityListElement(Constants.ANQPElementType infoID, ByteBuffer payload) in HSCapabilityListElement() argument 19 mCapabilities = new Constants.ANQPElementType[payload.remaining()]; in HSCapabilityListElement() 22 while (payload.hasRemaining()) { in HSCapabilityListElement() 23 int capID = payload.get() & Constants.BYTE_MASK; in HSCapabilityListElement()
|
/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/base/core/java/com/android/internal/widget/ |
D | VerifyCredentialResponse.java | 51 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/ |
D | AdapterHelper.java | 194 op.payload); in applyUpdate() 203 op.payload); in applyUpdate() 213 Object payload = op.payload; in applyUpdate() local 215 op = obtainUpdateOp(UpdateOp.UPDATE, tmpStart, tmpCount, payload); in applyUpdate() 278 UpdateOp tmp = obtainUpdateOp(op.cmd, tmpStart, tmpCnt, op.payload); in dispatchAndUpdateViewHolders() 291 Object payload = op.payload; in dispatchAndUpdateViewHolders() local 294 UpdateOp tmp = obtainUpdateOp(op.cmd, tmpStart, tmpCnt, payload); in dispatchAndUpdateViewHolders() 318 mCallback.markViewHoldersUpdated(offsetStart, op.itemCount, op.payload); in dispatchFirstPassAndUpdateViewHolders() 449 mCallback.markViewHoldersUpdated(op.positionStart, op.itemCount, op.payload); in postponeAndUpdateViewHolders() 496 boolean onItemRangeChanged(int positionStart, int itemCount, Object payload) { in onItemRangeChanged() argument [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | IccIoResult.java | 28 public byte[] payload; field in IccIoResult 30 public IccIoResult(int sw1, int sw2, byte[] payload) { in IccIoResult() argument 33 this.payload = payload; in IccIoResult()
|
/frameworks/base/core/java/android/service/gatekeeper/ |
D | GateKeeperResponse.java | 63 byte[] payload = new byte[size]; 64 source.readByteArray(payload); 65 response.setPayload(payload); 116 private void setPayload(byte[] payload) { in setPayload() argument 117 mPayload = payload; in setPayload()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/eap/ |
D | EAPMethod.java | 25 public EAPMethod(ByteBuffer payload) throws ProtocolException { in EAPMethod() argument 26 if (payload.remaining() < 3) { in EAPMethod() 27 throw new ProtocolException("Runt EAP Method: " + payload.remaining()); in EAPMethod() 30 int length = payload.get() & Constants.BYTE_MASK; in EAPMethod() 31 int methodID = payload.get() & Constants.BYTE_MASK; in EAPMethod() 32 int count = payload.get() & Constants.BYTE_MASK; in EAPMethod() 39 ByteBuffer paramPayload = payload.duplicate().order(ByteOrder.LITTLE_ENDIAN); in EAPMethod() 41 payload.position(payload.position() + length - 2); in EAPMethod()
|
/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()
|