/packages/apps/Nfc/src/com/android/nfc/handover/ |
D | HandoverDataParser.java | 126 byte[] payload = new byte[4]; in createBluetoothAlternateCarrierRecord() 127 payload[0] = (byte) (activating ? CARRIER_POWER_STATE_ACTIVATING : in createBluetoothAlternateCarrierRecord() 129 payload[1] = 1; // length of carrier data reference in createBluetoothAlternateCarrierRecord() 130 payload[2] = 'b'; // carrier data reference: ID for Bluetooth OOB data record in createBluetoothAlternateCarrierRecord() 131 payload[3] = 0; // Auxiliary data reference count in createBluetoothAlternateCarrierRecord() 133 payload); in createBluetoothAlternateCarrierRecord() 137 byte[] payload = new byte[8]; in createBluetoothOobDataRecord() 142 payload[0] = (byte) (payload.length & 0xFF); in createBluetoothOobDataRecord() 143 payload[1] = (byte) ((payload.length >> 8) & 0xFF); in createBluetoothOobDataRecord() 152 System.arraycopy(addressBytes, 0, payload, 2, 6); in createBluetoothOobDataRecord() [all …]
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | NfcWifiProtectedSetup.java | 103 ByteBuffer payload = ByteBuffer.wrap(record.getPayload()); in parse() local 104 while (payload.hasRemaining()) { in parse() 105 short fieldId = payload.getShort(); in parse() 106 int fieldSize = payload.getShort() & 0xFFFF; in parse() 108 return parseCredential(payload, fieldSize); in parse() 110 payload.position(payload.position() + fieldSize); in parse() 117 private static WifiConfiguration parseCredential(ByteBuffer payload, int size) { in parseCredential() argument 118 int startPosition = payload.position(); in parseCredential() 120 while (payload.position() < startPosition + size) { in parseCredential() 121 short fieldId = payload.getShort(); in parseCredential() [all …]
|
/packages/apps/Nfc/src/com/android/nfc/snep/ |
D | SnepMessage.java | 110 byte[] payload = new byte[1 + langLength + textLength]; in getLargeNdef() 111 payload[0] = (byte) langLength; in getLargeNdef() 113 System.arraycopy(langBytes, 0, payload, 1, langLength); in getLargeNdef() 114 System.arraycopy(textBytes, 0, payload, 1 + langLength, textLength); in getLargeNdef() 116 …ecord data2 = new NdefRecord(NdefRecord.TNF_WELL_KNOWN, NdefRecord.RTD_TEXT, new byte[0], payload); in getLargeNdef() 128 byte[] payload = new byte[1 + langLength + textLength]; in getSmallNdef() 129 payload[0] = (byte) langLength; in getSmallNdef() 131 System.arraycopy(langBytes, 0, payload, 1, langLength); in getSmallNdef() 132 System.arraycopy(textBytes, 0, payload, 1 + langLength, textLength); in getSmallNdef() 134 …ecord data1 = new NdefRecord(NdefRecord.TNF_WELL_KNOWN, NdefRecord.RTD_TEXT, new byte[0], payload); in getSmallNdef()
|
/packages/apps/Tag/src/com/android/apps/tag/record/ |
D | TextRecord.java | 85 byte[] payload = record.getPayload(); in parse() 86 Preconditions.checkArgument(payload.length > 0); in parse() 102 String textEncoding = ((payload[0] & 0200) == 0) ? "UTF-8" : "UTF-16"; in parse() 103 int languageCodeLength = payload[0] & 0077; in parse() 104 Preconditions.checkArgument(payload.length - languageCodeLength - 1 >= 0); in parse() 106 String languageCode = new String(payload, 1, languageCodeLength, "US-ASCII"); in parse() 107 String text = new String(payload, in parse() 109 payload.length - languageCodeLength - 1, in parse()
|
/packages/services/Car/service/src/com/android/car/trust/ |
D | BLEMessageV1Factory.java | 124 private static BLEMessage makeBLEMessage(byte[] payload, OperationType operation, in makeBLEMessage() argument 132 .setPayload(ByteString.copyFrom(payload)) in makeBLEMessage() 145 public static List<BLEMessage> makeBLEMessages(byte[] payload, OperationType operation, in makeBLEMessages() argument 149 int payloadLength = payload.length; in makeBLEMessages() 151 bleMessages.add(makeBLEMessage(payload, operation, isPayloadEncrypted)); in makeBLEMessages() 164 .setPayload(ByteString.copyFrom(Arrays.copyOfRange(payload, start, end))) in makeBLEMessages()
|
/packages/services/Car/service/proto/ |
D | operation_type.proto | 8 // The different message types that indicate the content of the payload. 13 // The contents of the payload are unknown. 19 // The payload contains handshake messages needed to set up encryption. 23 // payload for this type should be empty. 26 // The payload contains a client-specific message.
|
D | ble_message.proto | 25 // Whether the payload field is encrypted. 29 bytes payload = 6; field
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/ |
D | SearchResult.java | 80 public final ResultPayload payload; field in SearchResult 99 payload = builder.mResultPayload; in SearchResult() 100 viewType = payload.getType(); in SearchResult() 163 public Builder setPayload(ResultPayload payload) { in setPayload() argument 164 mResultPayload = payload; in setPayload()
|
D | ResultPayloadUtils.java | 30 public static byte[] marshall(ResultPayload payload) { in marshall() argument 32 payload.writeToParcel(parcel, 0); in marshall()
|
/packages/services/Car/car-lib/src/android/car/content/pm/ |
D | CarAppBlockingPolicy.java | 63 byte[] payload = in.readBlob(); in CarAppBlockingPolicy() 65 payloadParcel.unmarshall(payload, 0, payload.length); in CarAppBlockingPolicy() 83 byte[] payload = payloadParcel.marshall(); in writeToParcel() 84 dest.writeBlob(payload); in writeToParcel()
|
/packages/apps/Camera2/src/com/android/camera/one/v2/imagesaver/ |
D | JpegImageBackendImageSaver.java | 120 TaskImageContainer.CompressedPayload payload) { in onResultCompressed() argument 128 final Bitmap bitmap = BitmapFactory.decodeByteArray(payload.data, 0, in onResultCompressed() 129 payload.data.length, options); in onResultCompressed() 134 int rotation = Exif.getOrientation(payload.data); in onResultCompressed() 137 mPictureSaverCallback.onRemoteThumbnailAvailable(payload.data); in onResultCompressed() 144 TaskImageContainer.UncompressedPayload payload) { in onResultUncompressed() argument
|
D | YuvImageBackendImageSaver.java | 126 TaskImageContainer.CompressedPayload payload) { in onResultCompressed() argument 129 mPictureSaverCallback.onRemoteThumbnailAvailable(payload.data); in onResultCompressed() 135 TaskImageContainer.UncompressedPayload payload) { in onResultUncompressed() argument 139 final Bitmap bitmap = Bitmap.createBitmap(payload.data, in onResultUncompressed() 145 final Bitmap bitmapIntermediate = Bitmap.createBitmap(payload.data, in onResultUncompressed()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | ItemAdapter.java | 56 public void onItemChanged(ItemHolder<?> itemHolder, Object payload) { 58 mOnItemChangedListener.onItemChanged(itemHolder, payload); 62 notifyItemChanged(position, payload); 368 public final void notifyItemChanged(Object payload) { in notifyItemChanged() argument 370 listener.onItemChanged(this, payload); in notifyItemChanged() 529 void onItemChanged(ItemAdapter.ItemHolder<?> itemHolder, Object payload); in onItemChanged() argument
|
/packages/services/Car/car-lib/src/android/car/vms/ |
D | VmsSubscriberManager.java | 64 void onVmsMessageReceived(@NonNull VmsLayer layer, byte[] payload); in onVmsMessageReceived() argument 83 public void onVmsMessageReceived(VmsLayer layer, byte[] payload) { in VmsSubscriberManager() 96 dispatchOnReceiveMessage(layer, payload); in VmsSubscriberManager() 290 private void dispatchOnReceiveMessage(VmsLayer layer, byte[] payload) { in dispatchOnReceiveMessage() argument 296 clientCallback.onVmsMessageReceived(layer, payload); in dispatchOnReceiveMessage()
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/savedqueries/ |
D | SavedQueryLoader.java | 71 final SavedQueryPayload payload = new SavedQueryPayload( in convertCursorToResult() local 74 .setDataKey(payload.query) in convertCursorToResult() 75 .setTitle(payload.query) in convertCursorToResult() 76 .setPayload(payload) in convertCursorToResult()
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/hint/ |
D | PawAnswerHint.java | 60 private final Drawable payload; field in PawAnswerHint 71 @NonNull Drawable payload, in PawAnswerHint() argument 75 this.payload = Assert.isNotNull(payload); in PawAnswerHint() 89 ((ImageView) payloadView).setImageDrawable(payload); in onCreateView()
|
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/ |
D | ImageProcessorProxyListener.java | 162 TaskImageContainer.CompressedPayload payload) { in onResultCompressed() argument 169 l.onResultCompressed(job, payload); in onResultCompressed() 174 TaskImageContainer.UncompressedPayload payload) { in onResultUncompressed() argument 181 l.onResultUncompressed(job, payload); in onResultUncompressed()
|
D | ImageProcessorListener.java | 47 TaskImageContainer.CompressedPayload payload); in onResultCompressed() argument 56 TaskImageContainer.UncompressedPayload payload); in onResultUncompressed() argument
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | VmsHalService.java | 124 public void onVmsMessageReceived(VmsLayer layer, byte[] payload) { 126 mMessageQueue.enqueue(VmsMessageType.DATA, createDataMessage(layer, payload)); 432 private void handleDataEvent(List<Integer> message, byte[] payload) in handleDataEvent() argument 440 mPublisherService.publish(mPublisherToken, vmsLayer, publisherId, payload); in handleDataEvent() 529 private void handlePublisherIdRequest(byte[] payload) in handlePublisherIdRequest() argument 535 vehicleProp.value.int32Values.add(mPublisherService.getPublisherId(payload)); in handlePublisherIdRequest() 708 private static VehiclePropValue createDataMessage(VmsLayer layer, byte[] payload) { in createDataMessage() argument 719 appendBytes(vehicleProp.value.bytes, payload); in createDataMessage()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | MockedVmsTestBase.java | 176 public void onVmsMessageReceived(VmsLayer layer, byte[] payload) { in onVmsMessageReceived() argument 178 mMessages.add(Pair.create(layer, payload)); in onVmsMessageReceived() 214 void sendMessage(int[] message, byte[] payload) { in sendMessage() argument 218 .addByteValue(payload) in sendMessage()
|
D | VmsPublisherClientServiceTest.java | 70 byte[] payload = new byte[rawValue.bytes.size()]; in testPublish() 72 payload[i] = rawValue.bytes.get(i); in testPublish() 77 assertArrayEquals(PAYLOAD, payload); in testPublish()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | DirectoryAddonsAdapter.java | 127 public void onBindViewHolder(DocumentHolder holder, int p, List<Object> payload) { 139 mDelegate.onBindViewHolder(holder, toDelegatePosition(p), payload); 295 public void onItemRangeChanged(int positionStart, int itemCount, Object payload) { 297 notifyItemRangeChanged(toViewPosition(positionStart), itemCount, payload);
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/ |
D | IndexData.java | 59 public final byte[] payload; field in IndexData 97 payload = builder.mPayload != null ? ResultPayloadUtils.marshall(builder.mPayload) in IndexData() 259 public Builder setPayload(ResultPayload payload) { in setPayload() argument 260 mPayload = payload; in setPayload()
|
/packages/services/Car/service/src/com/android/car/ |
D | VmsPublisherService.java | 252 public void publish(IBinder token, VmsLayer layer, int publisherId, byte[] payload) { in publish() argument 262 int payloadLength = payload != null ? payload.length : 0; in publish() 279 listener.onVmsMessageReceived(layer, payload); in publish()
|
/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpPacket.java | 612 protected static void addTlv(ByteBuffer buf, byte type, @Nullable byte[] payload) { in addTlv() argument 613 if (payload != null) { in addTlv() 614 if (payload.length > MAX_OPTION_LEN) { in addTlv() 616 + payload.length + " vs. " + MAX_OPTION_LEN); in addTlv() 619 buf.put((byte) payload.length); in addTlv() 620 buf.put(payload); in addTlv()
|