Home
last modified time | relevance | path

Searched refs:dst (Results 1 – 25 of 189) sorted by relevance

12345678

/packages/providers/MediaProvider/src/com/android/providers/media/util/
DMemory.java41 public static void pokeInt(byte[] dst, int offset, int value, ByteOrder order) { in pokeInt() argument
43 dst[offset++] = (byte) ((value >> 24) & 0xff); in pokeInt()
44 dst[offset++] = (byte) ((value >> 16) & 0xff); in pokeInt()
45 dst[offset++] = (byte) ((value >> 8) & 0xff); in pokeInt()
46 dst[offset ] = (byte) ((value >> 0) & 0xff); in pokeInt()
48 dst[offset++] = (byte) ((value >> 0) & 0xff); in pokeInt()
49 dst[offset++] = (byte) ((value >> 8) & 0xff); in pokeInt()
50 dst[offset++] = (byte) ((value >> 16) & 0xff); in pokeInt()
51 dst[offset ] = (byte) ((value >> 24) & 0xff); in pokeInt()
79 public static void pokeLong(byte[] dst, int offset, long value, ByteOrder order) { in pokeLong() argument
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/
DInputPointersTests.java124 final InputPointers dst = new InputPointers(DEFAULT_CAPACITY); in testSet() local
125 dst.set(src); in testSet()
126 assertEquals("size after set", dst.getPointerSize(), src.getPointerSize()); in testSet()
127 assertSame("xCoordinates after set", dst.getXCoordinates(), src.getXCoordinates()); in testSet()
128 assertSame("yCoordinates after set", dst.getYCoordinates(), src.getYCoordinates()); in testSet()
129 assertSame("pointerIds after set", dst.getPointerIds(), src.getPointerIds()); in testSet()
130 assertSame("times after set", dst.getTimes(), src.getTimes()); in testSet()
144 final InputPointers dst = new InputPointers(DEFAULT_CAPACITY); in testCopy() local
145 dst.copy(src); in testCopy()
146 assertEquals("size after copy", dst.getPointerSize(), src.getPointerSize()); in testCopy()
[all …]
DResizableIntArrayTests.java201 final ResizableIntArray dst = new ResizableIntArray(DEFAULT_CAPACITY); in testSet() local
202 dst.set(src); in testSet()
203 assertEquals("length after set", dst.getLength(), src.getLength()); in testSet()
204 assertSame("array after set", dst.getPrimitiveArray(), src.getPrimitiveArray()); in testSet()
215 final ResizableIntArray dst = new ResizableIntArray(DEFAULT_CAPACITY); in testCopy() local
216 final int[] array = dst.getPrimitiveArray(); in testCopy()
217 dst.copy(src); in testCopy()
218 assertEquals("length after copy", dst.getLength(), src.getLength()); in testCopy()
219 assertSame("array after copy", array, dst.getPrimitiveArray()); in testCopy()
220 assertNotSame("array after copy", dst.getPrimitiveArray(), src.getPrimitiveArray()); in testCopy()
[all …]
/packages/services/Car/cpp/evs/support_library/
DFormatConvert.cpp57 void copyNV21toRGB32(unsigned width, unsigned height, uint8_t* src, uint32_t* dst, in copyNV21toRGB32() argument
75 uint32_t* rowDest = dst + r * dstStridePixels; in copyNV21toRGB32()
85 void copyYV12toRGB32(unsigned width, unsigned height, uint8_t* src, uint32_t* dst, in copyYV12toRGB32() argument
108 uint32_t* rowDest = dst + r * dstStridePixels; in copyYV12toRGB32()
117 uint32_t* dst, unsigned dstStridePixels) { in copyYUYVtoRGB32() argument
135 *(dst + 0) = yuvToRgbx(Y1, U, V); in copyYUYVtoRGB32()
136 *(dst + 1) = yuvToRgbx(Y2, U, V); in copyYUYVtoRGB32()
137 dst += 2; in copyYUYVtoRGB32()
142 dst += dstRowPadding32; in copyYUYVtoRGB32()
147 unsigned srcStridePixels, void* dst, unsigned dstStridePixels, in copyMatchedInterleavedFormats() argument
[all …]
/packages/services/Car/cpp/evs/apps/default/src/
DFormatConvert.cpp54 void copyNV21toRGB32(unsigned width, unsigned height, uint8_t* src, uint32_t* dst, in copyNV21toRGB32() argument
72 uint32_t* rowDest = dst + r * dstStridePixels; in copyNV21toRGB32()
82 void copyYV12toRGB32(unsigned width, unsigned height, uint8_t* src, uint32_t* dst, in copyYV12toRGB32() argument
105 uint32_t* rowDest = dst + r * dstStridePixels; in copyYV12toRGB32()
114 uint32_t* dst, unsigned dstStridePixels) { in copyYUYVtoRGB32() argument
132 *(dst + 0) = yuvToRgbx(Y1, U, V); in copyYUYVtoRGB32()
133 *(dst + 1) = yuvToRgbx(Y2, U, V); in copyYUYVtoRGB32()
134 dst += 2; in copyYUYVtoRGB32()
139 dst += dstRowPadding32; in copyYUYVtoRGB32()
144 unsigned srcStridePixels, void* dst, unsigned dstStridePixels, in copyMatchedInterleavedFormats() argument
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/src/dbreg/
Ddbreg.h480 inline void db_WarpImageLutFast_rgb(const unsigned char * const * src, unsigned char ** dst, int w,… in db_WarpImageLutFast_rgb() argument
483 assert(src && dst); in db_WarpImageLutFast_rgb()
494 dst[j][3*i ] = 0; in db_WarpImageLutFast_rgb()
495 dst[j][3*i+1] = 0; in db_WarpImageLutFast_rgb()
496 dst[j][3*i+2] = 0; in db_WarpImageLutFast_rgb()
500 dst[j][3*i ] = src[yd][3*xd ]; in db_WarpImageLutFast_rgb()
501 dst[j][3*i+1] = src[yd][3*xd+1]; in db_WarpImageLutFast_rgb()
502 dst[j][3*i+2] = src[yd][3*xd+2]; in db_WarpImageLutFast_rgb()
526 inline void db_WarpImageLutBilinear_rgb(const unsigned char * const * src, unsigned char ** dst, in… in db_WarpImageLutBilinear_rgb() argument
529 assert(src && dst); in db_WarpImageLutBilinear_rgb()
[all …]
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DGridMigrationTest.kt91 private fun migrate(src: GridMigrationData, dst: GridMigrationData) { in migrate()
95 dst.gridState, in migrate()
96 dst.dbHelper, in migrate()
117 private fun compare(dst: GridMigrationData, target: GridMigrationData) { in compare()
122 val entriesDst = dst.readEntries().sortedWith(sort).map(mapF) in compare()
137 private fun runTest(src: GridMigrationData, dst: GridMigrationData, target: GridMigrationData) { in runTest()
138 migrate(src, dst) in runTest()
139 assert(src.readEntries().size == dst.readEntries().size) { in runTest()
142 validateDb(dst) in runTest()
143 compare(dst, target) in runTest()
[all …]
/packages/apps/Gallery2/jni_jpegstream/src/
Djpeg_hook.cpp25 DestManager *dst = reinterpret_cast<DestManager*>(cinfo->dest); in Mgr_init_destination_fcn() local
26 dst->mgr.next_output_byte = reinterpret_cast<JOCTET*>(dst->outStream->getBufferPtr()); in Mgr_init_destination_fcn()
27 dst->mgr.free_in_buffer = dst->outStream->getBufferSize(); in Mgr_init_destination_fcn()
31 DestManager *dst = reinterpret_cast<DestManager*>(cinfo->dest); in Mgr_empty_output_buffer_fcn() local
32 int32_t len = dst->outStream->getBufferSize(); in Mgr_empty_output_buffer_fcn()
33 if (dst->outStream->write(len, 0) != J_SUCCESS) { in Mgr_empty_output_buffer_fcn()
36 dst->mgr.next_output_byte = reinterpret_cast<JOCTET*>(dst->outStream->getBufferPtr()); in Mgr_empty_output_buffer_fcn()
37 dst->mgr.free_in_buffer = len; in Mgr_empty_output_buffer_fcn()
42 DestManager *dst = reinterpret_cast<DestManager*>(cinfo->dest); in Mgr_term_destination_fcn() local
43 int32_t remaining = dst->outStream->getBufferSize() - dst->mgr.free_in_buffer; in Mgr_term_destination_fcn()
[all …]
/packages/apps/Gallery2/jni/filters/
Dnegative.c26 char * dst = destination; in JNIFUNCF() local
28 dst[RED] = 255 - dst[RED]; in JNIFUNCF()
29 dst[GREEN] = 255 - dst[GREEN]; in JNIFUNCF()
30 dst[BLUE] = 255 - dst[BLUE]; in JNIFUNCF()
Dkmeans.h26 inline void sum(T values[], int len, int dimension, int stride, N dst[]) { in sum() argument
30 dst[x] = 0; in sum()
34 dst[y] += values[x + y]; in sum()
48 inline void add(T val[], N dst[], int dimension) { in add() argument
51 dst[x] += val[x]; in add()
56 inline void divide(T dst[], N divisor, int dimension) { in divide() argument
62 dst[x] /= divisor; in divide()
88 void initialPickHeuristicRandom(int k, T values[], int len, int dimension, int stride, T dst[], in initialPickHeuristicRandom() argument
114 set<T,T>(dst + cntr, values + r, dimension); in initialPickHeuristicRandom()
142 T dst[]) { in calculateNewCentroids() argument
[all …]
Dgeometry.c131 …nativeApplyFilterFlip, jobject src, jint srcWidth, jint srcHeight, jobject dst, jint dstWidth, jin… in JNIFUNCF() argument
138 AndroidBitmap_lockPixels(env, dst, (void**) &destination); in JNIFUNCF()
140 AndroidBitmap_unlockPixels(env, dst); in JNIFUNCF()
144 …tiveApplyFilterRotate, jobject src, jint srcWidth, jint srcHeight, jobject dst, jint dstWidth, jin… in JNIFUNCF() argument
148 AndroidBitmap_lockPixels(env, dst, (void**) &destination); in JNIFUNCF()
150 AndroidBitmap_unlockPixels(env, dst); in JNIFUNCF()
154 …nativeApplyFilterCrop, jobject src, jint srcWidth, jint srcHeight, jobject dst, jint dstWidth, jin… in JNIFUNCF() argument
158 AndroidBitmap_lockPixels(env, dst, (void**) &destination); in JNIFUNCF()
160 AndroidBitmap_unlockPixels(env, dst); in JNIFUNCF()
165 jint srcHeight __unused, jobject dst, jint dstWidth, jint dstHeight, in JNIFUNCF() argument
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities.cpp102 inline void db_WarpImageLutFast_u(const unsigned char * const * src, unsigned char ** dst, int w, i… in db_WarpImageLutFast_u() argument
105 assert(src && dst); in db_WarpImageLutFast_u()
117 dst[j][i] = 0; in db_WarpImageLutFast_u()
119 dst[j][i] = src[yd][xd]; in db_WarpImageLutFast_u()
123 inline void db_WarpImageLutBilinear_u(const unsigned char * const * src, unsigned char ** dst, int … in db_WarpImageLutBilinear_u() argument
126 assert(src && dst); in db_WarpImageLutBilinear_u()
136 dst[j][i] = 0; in db_WarpImageLutBilinear_u()
138 dst[j][i] = db_BilinearInterpolation(yd, xd, src); in db_WarpImageLutBilinear_u()
143 void db_WarpImageLut_u(const unsigned char * const * src, unsigned char ** dst, int w, int h, in db_WarpImageLut_u() argument
149 db_WarpImageLutFast_u(src,dst,w,h,lut_x,lut_y); in db_WarpImageLut_u()
[all …]
/packages/modules/DnsResolver/
Dhostent.h50 #define HENT_ARRAY(dst, anum, ptr, len) do { \ argument
51 size_t _len = (anum + 1) * sizeof(*dst); \
53 dst = (char**) ptr; \
58 #define HENT_COPY(dst, src, slen, ptr, len) do { \ argument
61 dst = ptr; \
66 #define HENT_SCOPY(dst, src, ptr, len) do { \ argument
68 HENT_COPY(dst, src, _len, ptr, len); \
Dres_comp.cpp87 int dn_expand(const uint8_t* msg, const uint8_t* eom, const uint8_t* src, char* dst, int dstsiz) { in dn_expand() argument
88 int n = ns_name_uncompress(msg, eom, src, dst, (size_t) dstsiz); in dn_expand()
90 if (n > 0 && dst[0] == '.') dst[0] = '\0'; in dn_expand()
99 int dn_comp(const char* src, uint8_t* dst, int dstsiz, uint8_t** dnptrs, uint8_t** lastdnptr) { in dn_comp() argument
100 return (ns_name_compress(src, dst, (size_t)dstsiz, (const uint8_t**)dnptrs, in dn_comp()
/packages/modules/Bluetooth/system/bta/pan/
Dbta_pan_ci.cc117 void bta_pan_ci_rx_write(uint16_t handle, const RawAddress& dst, in bta_pan_ci_rx_write() argument
126 ((tBTA_PAN_DATA_PARAMS*)p_buf)->dst = dst; in bta_pan_ci_rx_write()
154 void bta_pan_ci_rx_writebuf(uint16_t handle, const RawAddress& dst, in bta_pan_ci_rx_writebuf() argument
159 ((tBTA_PAN_DATA_PARAMS*)p_buf)->dst = dst; in bta_pan_ci_rx_writebuf()
178 BT_HDR* bta_pan_ci_readbuf(uint16_t handle, RawAddress& src, RawAddress& dst, in bta_pan_ci_readbuf() argument
188 dst = ((tBTA_PAN_DATA_PARAMS*)p_buf)->dst; in bta_pan_ci_readbuf()
/packages/modules/Wifi/framework/java/android/net/wifi/aware/
DTlvBufferUtils.java669 private static void pokeShort(byte[] dst, int offset, short value, ByteOrder order) { in pokeShort() argument
671 dst[offset++] = (byte) ((value >> 8) & 0xff); in pokeShort()
672 dst[offset ] = (byte) ((value >> 0) & 0xff); in pokeShort()
674 dst[offset++] = (byte) ((value >> 0) & 0xff); in pokeShort()
675 dst[offset ] = (byte) ((value >> 8) & 0xff); in pokeShort()
679 private static void pokeInt(byte[] dst, int offset, int value, ByteOrder order) { in pokeInt() argument
681 dst[offset++] = (byte) ((value >> 24) & 0xff); in pokeInt()
682 dst[offset++] = (byte) ((value >> 16) & 0xff); in pokeInt()
683 dst[offset++] = (byte) ((value >> 8) & 0xff); in pokeInt()
684 dst[offset ] = (byte) ((value >> 0) & 0xff); in pokeInt()
[all …]
/packages/modules/Bluetooth/system/btif/src/
Dbtif_a2dp_source.cc282 SchedulingStats* dst) { in btif_a2dp_source_accumulate_scheduling_stats() argument
283 dst->total_updates += src->total_updates; in btif_a2dp_source_accumulate_scheduling_stats()
284 dst->last_update_us = src->last_update_us; in btif_a2dp_source_accumulate_scheduling_stats()
285 dst->overdue_scheduling_count += src->overdue_scheduling_count; in btif_a2dp_source_accumulate_scheduling_stats()
286 dst->total_overdue_scheduling_delta_us += in btif_a2dp_source_accumulate_scheduling_stats()
288 dst->max_overdue_scheduling_delta_us = in btif_a2dp_source_accumulate_scheduling_stats()
289 std::max(dst->max_overdue_scheduling_delta_us, in btif_a2dp_source_accumulate_scheduling_stats()
291 dst->premature_scheduling_count += src->premature_scheduling_count; in btif_a2dp_source_accumulate_scheduling_stats()
292 dst->total_premature_scheduling_delta_us += in btif_a2dp_source_accumulate_scheduling_stats()
294 dst->max_premature_scheduling_delta_us = in btif_a2dp_source_accumulate_scheduling_stats()
[all …]
/packages/modules/NeuralNetworks/runtime/
DMemory.cpp223 const std::optional<RunTimePoolInfo>& dst) { in copyHidlMemories() argument
224 if (!src.has_value() || !dst.has_value()) { in copyHidlMemories()
228 if (src->getSize() != dst->getSize()) { in copyHidlMemories()
233 CHECK(dst->getBuffer() != nullptr); in copyHidlMemories()
234 std::copy(src->getBuffer(), src->getBuffer() + src->getSize(), dst->getBuffer()); in copyHidlMemories()
235 dst->flush(); in copyHidlMemories()
239 int copyIBufferToMemory(const SharedBuffer& src, const SharedMemory& dst) { in copyIBufferToMemory() argument
240 const auto ret = src->copyTo(dst); in copyIBufferToMemory()
248 int copyMemoryToIBuffer(const SharedMemory& src, const SharedBuffer& dst, in copyMemoryToIBuffer() argument
250 const auto ret = dst->copyFrom(src, dimensions); in copyMemoryToIBuffer()
[all …]
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/async/
DCircularByteBuffer.java71 public void readBytes(byte[] dst, int dstPos, int dstLen) { in readBytes() argument
72 if (dst != null) { in readBytes()
73 Assertions.throwsIfOutOfBounds(dst, dstPos, dstLen); in readBytes()
81 if (dst != null) { in readBytes()
82 System.arraycopy(mBuffer, mReadPos, dst, dstPos, copyLen); in readBytes()
98 public void peekBytes(int offset, byte[] dst, int dstPos, int dstLen) { in peekBytes() argument
99 Assertions.throwsIfOutOfBounds(dst, dstPos, dstLen); in peekBytes()
108 System.arraycopy(mBuffer, tmpReadPos, dst, dstPos, copyLen); in peekBytes()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DVideoUtils.java71 public static void startTrim(File src, File dst, int startMs, int endMs) in startTrim() argument
74 genVideoUsingMuxer(src.getPath(), dst.getPath(), startMs, endMs, in startTrim()
77 trimUsingMp4Parser(src, dst, startMs, endMs); in startTrim()
83 File dst = dstFileInfo.mFile; in startMuteUsingMp4Parser() local
97 writeMovieIntoFile(dst, movie); in startMuteUsingMp4Parser()
101 private static void writeMovieIntoFile(File dst, Movie movie) in writeMovieIntoFile() argument
103 if (!dst.exists()) { in writeMovieIntoFile()
104 dst.createNewFile(); in writeMovieIntoFile()
108 FileOutputStream fos = new FileOutputStream(dst); in writeMovieIntoFile()
235 private static void trimUsingMp4Parser(File src, File dst, int startMs, int endMs) in trimUsingMp4Parser() argument
[all …]
/packages/modules/Bluetooth/system/stack/mmc/codec_server/
Da2dp_aac_mmc_encoder.cc206 uint8_t* dst = o_buf; in transcode() local
211 std::copy(header, header + A2DP_AAC_HEADER_LEN, dst); in transcode()
214 dst += written; in transcode()
224 std::copy(silent_frame, std::end(silent_frame), dst); in transcode()
225 dst += sizeof(silent_frame); in transcode()
231 *(dst++) = 0xff; in transcode()
235 *(dst++) = fsize; in transcode()
238 std::copy(pkt->data, pkt->data + pkt->size, dst); in transcode()
/packages/modules/DnsResolver/tests/
Dtun_forwarder.cpp72 inet_pton(AF_INET, addrs[1].c_str(), &pair.dst) != 1) { in makePair()
79 return std::tie(src.s_addr, dst.s_addr) == std::tie(o.src.s_addr, o.dst.s_addr); in operator ==()
83 return std::tie(src.s_addr, dst.s_addr) < std::tie(o.src.s_addr, o.dst.s_addr); in operator <()
90 inet_pton(AF_INET6, addrs[1].c_str(), &pair.dst) != 1) { in makePair()
97 return src == o.src && dst == o.dst; in operator ==()
102 return dst < o.dst; in operator <()
334 ipHeader->daddr == static_cast<int>(from.dst.s_addr)) { in translateIpv4Packet()
336 ipHeader->daddr = to.dst.s_addr; in translateIpv4Packet()
368 if (ipv6Header->ip6_src == from.src && ipv6Header->ip6_dst == from.dst) { in translateIpv6Packet()
370 ipv6Header->ip6_dst = to.dst; in translateIpv6Packet()
/packages/modules/StatsD/lib/libkll/encoding/
Dencoder.cpp47 void Encoder::AppendToString(const int64_t src, std::string* dst) { in AppendToString() argument
53 dst->append(enc.base(), enc.length()); in AppendToString()
58 std::string* dst) { in SerializeToPackedStringAll() argument
59 dst->clear(); in SerializeToPackedStringAll()
61 Encoder::AppendToString(*begin, dst); in SerializeToPackedStringAll()
/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/
DNetworkTraceHandler.cpp205 auto dst = ctx.NewTracePacket(); in Write() local
206 dst->set_timestamp(pkt.timestampNs); in Write()
207 auto* event = dst->set_network_packet(); in Write()
239 auto dst = ctx.NewTracePacket(); in Write() local
240 dst->set_timestamp(details.minTs); in Write()
246 dst->set_sequence_flags(TracePacket::SEQ_INCREMENTAL_STATE_CLEARED); in Write()
249 dst->set_sequence_flags(TracePacket::SEQ_NEEDS_INCREMENTAL_STATE); in Write()
253 auto* event = FillWithInterning(incr_state, key, dst.get()); in Write()
298 NetworkTraceState* state, const BundleKey& key, TracePacket* dst) { in FillWithInterning() argument
309 auto* packet_context = dst->set_interned_data()->add_packet_context(); in FillWithInterning()
[all …]
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/include/netdutils/
DSyscalls.h74 virtual StatusOr<size_t> sendto(Fd sock, const Slice buf, int flags, const sockaddr* dst,
77 virtual StatusOr<Slice> recvfrom(Fd sock, const Slice dst, int flags, sockaddr* src,
162 StatusOr<size_t> sendto(Fd sock, const Slice buf, int flags, const SockaddrT& dst) const { in sendto() argument
163 return sendto(sock, buf, flags, asSockaddrPtr(&dst), sizeof(dst)); in sendto()
167 StatusOr<Slice> recvfrom(Fd sock, const Slice dst, int flags) const { in recvfrom() argument
168 return recvfrom(sock, dst, flags, nullptr, nullptr); in recvfrom()
172 StatusOr<std::pair<Slice, SockaddrT>> recvfrom(Fd sock, const Slice dst, int flags) const { in recvfrom() argument
175 ASSIGN_OR_RETURN(auto used, recvfrom(sock, dst, flags, asSockaddrPtr(&addr), &addrlen)); in recvfrom()

12345678