Searched defs:payload (Results 1 - 25 of 88) sorted by relevance

1234

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/
H A DRawByteElement.java11 public RawByteElement(Constants.ANQPElementType infoID, ByteBuffer payload) { argument
13 mPayload = new byte[payload.remaining()];
14 payload.get(mPayload);
H A DCapabilityListElement.java13 public CapabilityListElement(Constants.ANQPElementType infoID, ByteBuffer payload) argument
16 if ((payload.remaining() & 1) == 1)
18 mCapabilities = new Constants.ANQPElementType[payload.remaining() / Constants.BYTES_IN_SHORT];
21 while (payload.hasRemaining()) {
22 int capID = payload.getShort() & Constants.SHORT_MASK;
H A DCellularNetwork.java16 private CellularNetwork(int plmnCount, ByteBuffer payload) throws ProtocolException { argument
20 if (payload.remaining() < 3) {
24 payload.get(plmn);
43 public static CellularNetwork buildCellularNetwork(ByteBuffer payload) argument
45 int iei = payload.get() & BYTE_MASK;
46 int plmnLen = payload.get() & 0x7f;
49 payload.position(payload.position() + plmnLen);
53 int plmnCount = payload.get() & BYTE_MASK;
54 return new CellularNetwork(plmnCount, payload);
[all...]
H A DDomainNameElement.java16 public DomainNameElement(Constants.ANQPElementType infoID, ByteBuffer payload) argument
21 while (payload.hasRemaining()) {
23 mDomains.add(Constants.getPrefixedString(payload, 1, StandardCharsets.ISO_8859_1));
H A DEmergencyNumberElement.java15 public EmergencyNumberElement(Constants.ANQPElementType infoID, ByteBuffer payload) argument
21 while (payload.hasRemaining()) {
22 mNumbers.add(Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8));
H A DGenericBlobElement.java13 public GenericBlobElement(Constants.ANQPElementType infoID, ByteBuffer payload) { argument
15 mData = new byte[payload.remaining()];
16 payload.get(mData);
H A DGenericStringElement.java13 public GenericStringElement(Constants.ANQPElementType infoID, ByteBuffer payload) throws ProtocolException { argument
15 mText = Constants.getString(payload, payload.remaining(), StandardCharsets.UTF_8);
H A DHSCapabilityListElement.java15 public HSCapabilityListElement(Constants.ANQPElementType infoID, ByteBuffer payload) argument
19 mCapabilities = new Constants.ANQPElementType[payload.remaining()];
22 while (payload.hasRemaining()) {
23 int capID = payload.get() & Constants.BYTE_MASK;
H A DHSFriendlyNameElement.java17 public HSFriendlyNameElement(Constants.ANQPElementType infoID, ByteBuffer payload) argument
23 while (payload.hasRemaining()) {
24 mNames.add(new I18Name(payload));
H A DHSOsuProvidersElement.java19 public HSOsuProvidersElement(Constants.ANQPElementType infoID, ByteBuffer payload) argument
23 mSSID = Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8);
24 int providerCount = payload.get() & Constants.BYTE_MASK;
29 mProviders.add(new OSUProvider(payload));
H A DNAIRealmData.java23 public NAIRealmData(ByteBuffer payload) throws ProtocolException { argument
24 if (payload.remaining() < 5) {
25 throw new ProtocolException("Runt payload: " + payload.remaining());
28 int length = payload.getShort() & Constants.SHORT_MASK;
29 if (length > payload.remaining()) {
32 boolean utf8 = (payload.get() & 1) == Constants.UTF8_INDICATOR;
34 String realm = Constants.getPrefixedString(payload, 1, utf8 ?
45 int methodCount = payload.get() & Constants.BYTE_MASK;
48 mEAPMethods.add(new EAPMethod(payload));
[all...]
H A DNAIRealmElement.java24 public NAIRealmElement(Constants.ANQPElementType infoID, ByteBuffer payload) argument
28 if (!payload.hasRemaining()) {
33 if (payload.remaining() < BYTES_IN_SHORT) {
34 throw new ProtocolException("Runt NAI Realm: " + payload.remaining());
37 int count = payload.getShort() & SHORT_MASK;
40 mRealmData.add(new NAIRealmData(payload));
H A DRoamingConsortiumElement.java22 public RoamingConsortiumElement(Constants.ANQPElementType infoID, ByteBuffer payload) argument
28 while (payload.hasRemaining()) {
29 int length = payload.get() & BYTE_MASK;
30 if (length > payload.remaining()) {
33 mOis.add(getInteger(payload, ByteOrder.BIG_ENDIAN, length));
H A DThreeGPPNetworkElement.java19 public ThreeGPPNetworkElement(Constants.ANQPElementType infoID, ByteBuffer payload) argument
24 mUserData = payload.get() & BYTE_MASK;
25 int length = payload.get() & BYTE_MASK;
26 if (length > payload.remaining()) {
27 throw new ProtocolException("Runt payload");
30 while (payload.hasRemaining()) {
31 CellularNetwork network = CellularNetwork.buildCellularNetwork(payload);
/frameworks/base/core/java/com/android/server/backup/
H A DNotificationBackupHelper.java34 // Key under which the payload blob is stored
61 protected void applyRestoredPayload(String key, byte[] payload) { argument
71 nm.applyRestore(payload, UserHandle.USER_SYSTEM);
H A DPermissionBackupHelper.java54 Slog.e(TAG, "Unable to store payload " + key);
60 protected void applyRestoredPayload(String key, byte[] payload) { argument
68 pm.restorePermissionGrants(payload, UserHandle.USER_SYSTEM);
H A DPreferredActivityBackupHelper.java67 Slog.e(TAG, "Unable to store payload " + key);
73 protected void applyRestoredPayload(String key, byte[] payload) { argument
82 pm.restorePreferredActivities(payload, UserHandle.USER_SYSTEM);
85 pm.restoreDefaultApps(payload, UserHandle.USER_SYSTEM);
88 pm.restoreIntentFilterVerification(payload, UserHandle.USER_SYSTEM);
H A DShortcutBackupHelper.java57 protected void applyRestoredPayload(String key, byte[] payload) { argument
61 getShortcutService().applyRestore(payload, UserHandle.USER_SYSTEM);
H A DUsageStatsBackupHelper.java25 // Key under which the payload blob is stored
54 protected void applyRestoredPayload(String key, byte[] payload) { argument
58 DataInputStream in = new DataInputStream(new ByteArrayInputStream(payload));
61 byte[] restoreData = new byte[payload.length - 4];
/frameworks/base/packages/Osu/src/com/android/anqp/
H A DHSOsuProvidersElement.java19 public HSOsuProvidersElement(Constants.ANQPElementType infoID, ByteBuffer payload) argument
23 mSSID = Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8);
24 int providerCount = payload.get() & Constants.BYTE_MASK;
29 mProviders.add(new OSUProvider(mSSID, payload));
H A DI18Name.java20 public I18Name(ByteBuffer payload) throws ProtocolException { argument
21 if (payload.remaining() < Constants.LANG_CODE_LENGTH + 1) {
22 throw new ProtocolException("Truncated I18Name: " + payload.remaining());
24 int nameLength = payload.get() & BYTE_MASK;
28 mLanguage = Constants.getTrimmedString(payload,
31 mText = Constants.getString(payload, nameLength -
/frameworks/base/packages/Osu/src/com/android/anqp/eap/
H A DInnerAuthEAP.java15 public InnerAuthEAP(int length, ByteBuffer payload) throws ProtocolException { argument
19 int typeID = payload.get() & BYTE_MASK;
H A DVendorSpecificAuth.java14 public VendorSpecificAuth(int length, ByteBuffer payload) throws ProtocolException { argument
16 payload.get(mData);
/frameworks/opt/net/voip/src/jni/rtp/
H A 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) argument
56 gsm_encode(mEncode, samples, (unsigned char *)payload);
60 int GsmCodec::decode(int16_t *samples, int count, void *payload, int length) argument
62 unsigned char *bytes = (unsigned char *)payload;
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/eap/
H A DVendorSpecificAuth.java14 public VendorSpecificAuth(int length, ByteBuffer payload) throws ProtocolException { argument
16 payload.get(mData);

Completed in 236 milliseconds

1234