/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/base/libs/hwui/pipeline/skia/ |
D | SkiaRecordingCanvas.cpp | 220 void SkiaRecordingCanvas::handleMutableImages(Bitmap& bitmap, DrawImagePayload& payload) { in handleMutableImages() argument 224 if (!bitmap.isImmutable() && payload.image.get() && !payload.image->unique()) { in handleMutableImages() 225 mDisplayList->mMutableImages.push_back(payload.image.get()); in handleMutableImages() 232 if (!gainmapBitmap->isImmutable() && payload.gainmapImage.get() && in handleMutableImages() 233 !payload.gainmapImage->unique()) { in handleMutableImages() 234 mDisplayList->mMutableImages.push_back(payload.gainmapImage.get()); in handleMutableImages() 251 auto payload = DrawImagePayload(bitmap); in drawBitmap() local 256 mRecorder.drawImage(DrawImagePayload(payload), left, top, p.sampling(), &p); in drawBitmap() 260 handleMutableImages(bitmap, payload); in drawBitmap() 267 auto payload = DrawImagePayload(bitmap); in drawBitmap() local [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/base/core/java/com/android/internal/widget/ |
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/base/core/tests/coretests/src/android/widget/ |
D | TextViewReceiveContentTest.java | 137 ContentInfo payload = in testOnReceive_fallbackToCommitContent() local 139 mDefaultReceiver.onReceiveContent(mEditText, payload); in testOnReceive_fallbackToCommitContent() 159 ContentInfo payload = in testOnReceive_fallbackToCommitContent_noMimeTypesInEditorInfo() local 161 mDefaultReceiver.onReceiveContent(mEditText, payload); in testOnReceive_fallbackToCommitContent_noMimeTypesInEditorInfo() 180 ContentInfo payload = in testOnReceive_fallbackToCommitContent_sourceOtherThanAutofill() local 182 mDefaultReceiver.onReceiveContent(mEditText, payload); in testOnReceive_fallbackToCommitContent_sourceOtherThanAutofill() 185 payload = new ContentInfo.Builder(clip, SOURCE_INPUT_METHOD).build(); in testOnReceive_fallbackToCommitContent_sourceOtherThanAutofill() 186 mDefaultReceiver.onReceiveContent(mEditText, payload); in testOnReceive_fallbackToCommitContent_sourceOtherThanAutofill() 189 payload = new ContentInfo.Builder(clip, SOURCE_DRAG_AND_DROP).build(); in testOnReceive_fallbackToCommitContent_sourceOtherThanAutofill() 190 mDefaultReceiver.onReceiveContent(mEditText, payload); in testOnReceive_fallbackToCommitContent_sourceOtherThanAutofill() [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/com/android/server/backup/ |
D | CompanionBackupHelper.java | 50 byte[] payload = null; in getBackupPayload() 55 payload = cdm.getBackupPayload(mUserId); in getBackupPayload() 60 return payload; in getBackupPayload() 64 protected void applyRestoredPayload(String key, byte[] payload) { in applyRestoredPayload() argument 70 cdm.applyRestoredPayload(payload, mUserId); in applyRestoredPayload()
|
D | PreferredActivityBackupHelper.java | 104 protected void applyRestoredPayload(@Key String key, byte[] payload) { in applyRestoredPayload() argument 112 pm.restorePreferredActivities(payload, mUserId); in applyRestoredPayload() 115 pm.restoreDefaultApps(payload, mUserId); in applyRestoredPayload() 121 pm.restoreDomainVerification(payload, mUserId); in applyRestoredPayload()
|
/frameworks/base/core/java/android/service/gatekeeper/ |
D | GateKeeperResponse.java | 59 public static GateKeeperResponse createOkResponse(byte[] payload, boolean shouldReEnroll) { in createOkResponse() argument 61 response.mPayload = payload; in createOkResponse() 81 byte[] payload = null; 84 payload = new byte[size]; 85 source.readByteArray(payload); 87 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/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/telephony/java/com/android/internal/telephony/cdma/sms/ |
D | BearerData.java | 663 uData.payload = gcr.data; in encode7bitEms() 664 uData.payload[0] = (byte)udhData.length; in encode7bitEms() 665 System.arraycopy(udhData, 0, uData.payload, 1, udhData.length); in encode7bitEms() 671 byte[] payload = encodeUtf16(uData.payloadStr); in encode16bitEms() 674 int payloadCodeUnits = payload.length / 2; in encode16bitEms() 678 uData.payload = new byte[uData.numFields * 2]; in encode16bitEms() 679 uData.payload[0] = (byte)udhData.length; in encode16bitEms() 680 System.arraycopy(udhData, 0, uData.payload, 1, udhData.length); in encode16bitEms() 681 System.arraycopy(payload, 0, uData.payload, udhBytes, payload.length); in encode16bitEms() 693 byte[] payload ; in encode7bitAsciiEms() [all …]
|
/frameworks/base/nfc/java/android/nfc/ |
D | NdefRecord.java | 561 public NdefRecord(short tnf, byte[] type, byte[] id, byte[] payload) { in NdefRecord() argument 565 if (payload == null) payload = EMPTY_BYTE_ARRAY; in NdefRecord() 567 String message = validateTnf(tnf, type, id, payload); in NdefRecord() 575 mPayload = payload; in NdefRecord() 795 byte[] payload = null; in parse() 842 payload = (payloadLength > 0 ? new byte[(int)payloadLength] : EMPTY_BYTE_ARRAY); in parse() 843 buffer.get(payload); in parse() 855 chunks.add(payload); in parse() 864 payload = new byte[(int)payloadLength]; in parse() 867 System.arraycopy(p, 0, payload, i, p.length); in parse() [all …]
|
D | NfcVendorNciCallbackListener.java | 81 public void onVendorResponseReceived(int gid, int oid, @NonNull byte[] payload) in onVendorResponseReceived() argument 88 executor.execute(() -> callback.onVendorNciResponse(gid, oid, payload)); in onVendorResponseReceived() 99 public void onVendorNotificationReceived(int gid, int oid, @NonNull byte[] payload) in onVendorNotificationReceived() argument 106 executor.execute(() -> callback.onVendorNciNotification(gid, oid, payload)); in onVendorNotificationReceived()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/d2d/ |
D | RtpTransport.java | 585 byte[] payload = new byte[1]; in generateRtpHeaderExtension() 588 payload[0] |= CALL_STATE_MSG_TYPE_TO_RTP_BITS.getValue(message.getType()); in generateRtpHeaderExtension() 589 payload[0] |= CODEC_VALUE_TO_RTP_BITS.getValue(message.getValue()); in generateRtpHeaderExtension() 592 payload); in generateRtpHeaderExtension() 594 payload[0] |= CALL_STATE_MSG_TYPE_TO_RTP_BITS.getValue(message.getType()); in generateRtpHeaderExtension() 595 payload[0] |= RAT_VALUE_TO_RTP_BITS.getValue(message.getValue()); in generateRtpHeaderExtension() 598 payload); in generateRtpHeaderExtension() 600 payload[0] |= DEVICE_STATE_MSG_TYPE_TO_RTP_BITS.getValue(message.getType()); in generateRtpHeaderExtension() 601 payload[0] |= BATTERY_STATE_VALUE_TO_RTP_BITS.getValue(message.getValue()); in generateRtpHeaderExtension() 604 payload); in generateRtpHeaderExtension() [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()
|
/frameworks/av/media/libnblog/include/media/nblog/ |
D | Entry.h | 113 inline const T& payload() { 118 inline T payload() const { in payload() function 122 T payload; in payload() local 123 memcpy(&payload, mPtr + offsetof(entry, data), sizeof(payload)); in payload() 124 return payload; in payload()
|
/frameworks/base/core/java/android/app/backup/ |
D | BlobBackupHelper.java | 76 abstract protected void applyRestoredPayload(String key, byte[] payload); in applyRestoredPayload() argument 250 final byte[] payload = deflate(getBackupPayload(key)); in performBackup() 251 final long checksum = checksum(payload); in performBackup() 263 if (payload != null) { in performBackup() 264 data.writeEntityHeader(key, payload.length); in performBackup() 265 data.writeEntityData(payload, payload.length); in performBackup() 303 byte[] payload = inflate(compressed); in restoreEntity() 304 applyRestoredPayload(key, payload); in restoreEntity()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | LockscreenFrpTest.java | 127 assertEquals(CREDENTIAL_TYPE_PIN, data.payload[3]); in testFrpCredential_legacyPinTypePersistentData() 128 data.payload[3] = CREDENTIAL_TYPE_PASSWORD_OR_PIN; in testFrpCredential_legacyPinTypePersistentData() 130 DevicePolicyManager.PASSWORD_QUALITY_NUMERIC, data.payload); in testFrpCredential_legacyPinTypePersistentData() 144 assertEquals(CREDENTIAL_TYPE_PASSWORD, data.payload[3]); in testFrpCredential_legacyPasswordTypePersistentData() 145 data.payload[3] = CREDENTIAL_TYPE_PASSWORD_OR_PIN; in testFrpCredential_legacyPasswordTypePersistentData() 147 DevicePolicyManager.PASSWORD_QUALITY_COMPLEX, data.payload); in testFrpCredential_legacyPasswordTypePersistentData() 162 ByteBuffer buffer = ByteBuffer.wrap(data.payload); in testFrpBlock_isForwardsCompatible() 215 ByteBuffer buffer = ByteBuffer.wrap(data.payload); in testFrpBlock_inBadAndroid14FormatIsAutomaticallyFixed()
|
/frameworks/base/core/java/android/widget/ |
D | TextViewOnReceiveContentListener.java | 70 public ContentInfo onReceiveContent(@NonNull View view, @NonNull ContentInfo payload) { in onReceiveContent() argument 72 Log.d(LOG_TAG, "onReceive: " + payload); in onReceiveContent() 74 final @Source int source = payload.getSource(); in onReceiveContent() 78 return payload; in onReceiveContent() 81 onReceiveForAutofill((TextView) view, payload); in onReceiveContent() local 90 final ClipData clip = payload.getClip(); in onReceiveContent() 91 final @Flags int flags = payload.getFlags(); in onReceiveContent() 126 private void onReceiveForAutofill(@NonNull TextView view, @NonNull ContentInfo payload) { in onReceiveForAutofill() argument 127 ClipData clip = payload.getClip(); in onReceiveForAutofill() 137 final CharSequence text = coerceToText(clip, view.getContext(), payload.getFlags()); in onReceiveForAutofill()
|
/frameworks/base/services/companion/java/com/android/server/companion/transport/ |
D | SecureTransport.java | 131 final ByteBuffer payload = ByteBuffer.wrap(data); in onSecureMessageReceived() local 132 final int message = payload.getInt(); in onSecureMessageReceived() 133 final int sequence = payload.getInt(); in onSecureMessageReceived() 134 final int length = payload.getInt(); in onSecureMessageReceived() 136 payload.get(content); in onSecureMessageReceived()
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | LockSettingsStorage.java | 411 public void writeRepairModePersistentData(int persistentType, int userId, byte[] payload) { in writeRepairModePersistentData() argument 413 PersistentData.toBytes(persistentType, userId, /* qualityForUi= */0, payload)); in writeRepairModePersistentData() 596 byte[] payload) { in writePersistentDataBlock() argument 602 persistentType, userId, qualityForUi, payload)); in writePersistentDataBlock() 668 final byte[] payload; field in LockSettingsStorage.PersistentData 670 private PersistentData(int type, int userId, int qualityForUi, byte[] payload) { in PersistentData() argument 674 this.payload = payload; in PersistentData() 679 && SyntheticPasswordManager.PasswordData.isBadFormatFromAndroid14Beta(this.payload); in isBadFormatFromAndroid14Beta() 694 byte[] payload = new byte[frpData.length - VERSION_1_HEADER_SIZE]; in fromBytes() 695 System.arraycopy(frpData, VERSION_1_HEADER_SIZE, payload, 0, payload.length); in fromBytes() [all …]
|
/frameworks/base/services/core/java/com/android/server/grammaticalinflection/ |
D | GrammaticalInflectionBackupHelper.java | 94 public void stageAndApplyRestoredPayload(byte[] payload, int userId) { in stageAndApplyRestoredPayload() argument 98 HashMap<String, Integer> pkgInfo = readFromByteArray(payload); in stageAndApplyRestoredPayload() 133 public void applyRestoredSystemPayload(byte[] payload, int userId) { in applyRestoredSystemPayload() argument 134 int gender = convertByteArrayToInt(payload); in applyRestoredSystemPayload() 191 private static HashMap<String, Integer> readFromByteArray(byte[] payload) { in readFromByteArray() argument 194 try (var byteIn = new ByteArrayInputStream(payload); in readFromByteArray()
|