/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/ |
D | InputPointersTests.java | 124 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 …]
|
D | ResizableIntArrayTests.java | 201 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/apps/Launcher3/quickstep/src/com/android/quickstep/logging/ |
D | StatsLogCompatManager.java | 142 private static void copy(Target src, LauncherTarget dst) { in copy() argument 150 dst.type = LauncherTarget.ITEM_TYPE; in copy() 153 dst.type = LauncherTarget.CONTROL_TYPE; in copy() 156 dst.type = LauncherTarget.CONTAINER_TYPE; in copy() 159 dst.type = LauncherTarget.NONE; in copy() 166 dst.item = LauncherTarget.APP_ICON; in copy() 169 dst.item = LauncherTarget.SHORTCUT; in copy() 172 dst.item = LauncherTarget.WIDGET; in copy() 175 dst.item = LauncherTarget.FOLDER_ICON; in copy() 178 dst.item = LauncherTarget.DEEPSHORTCUT; in copy() [all …]
|
/packages/apps/LegacyCamera/jni/feature_stab/src/dbreg/ |
D | dbreg.h | 480 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/services/Car/evs/app/ |
D | FormatConvert.cpp | 62 uint32_t* dst, unsigned dstStridePixels) in copyNV21toRGB32() argument 80 uint32_t* rowDest = dst + r*dstStridePixels; in copyNV21toRGB32() 93 uint32_t* dst, unsigned dstStridePixels) in copyYV12toRGB32() argument 116 uint32_t* rowDest = dst + r*dstStridePixels; in copyYV12toRGB32() 127 uint32_t* dst, unsigned dstStridePixels) in copyYUYVtoRGB32() argument 145 *(dst+0) = yuvToRgbx(Y1, U, V); in copyYUYVtoRGB32() 146 *(dst+1) = yuvToRgbx(Y2, U, V); in copyYUYVtoRGB32() 147 dst += 2; in copyYUYVtoRGB32() 152 dst += dstRowPadding32; in copyYUYVtoRGB32() 159 void* dst, unsigned dstStridePixels, in copyMatchedInterleavedFormats() argument [all …]
|
D | FormatConvert.h | 30 uint32_t* dst, unsigned dstStridePixels); 40 uint32_t* dst, unsigned dstStridePixels); 49 uint32_t* dst, unsigned dstStrideBytes); 57 void* dst, unsigned dstStridePixels,
|
/packages/apps/Gallery2/jni_jpegstream/src/ |
D | jpeg_hook.cpp | 25 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/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_utilities.cpp | 102 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/apps/Gallery2/jni/filters/ |
D | geometry.c | 131 …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 …]
|
D | kmeans.h | 26 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 …]
|
D | negative.c | 26 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()
|
D | edge.c | 35 uint8_t* dst = destination; in JNIFUNCF() local 110 memcpy((dst + row_stride * (j - 1)), (buf + buf_row_ring), row_stride * sizeof(char)); in JNIFUNCF() 117 memcpy((dst + second_last_row), (buf + buf_row_ring), row_stride * sizeof(char)); in JNIFUNCF() 121 memset((dst + last_row), 0, row_stride * sizeof(char)); in JNIFUNCF() 123 *(dst + last_row + j) = 255; // set alphas in JNIFUNCF()
|
/packages/services/Car/evs/sampleDriver/ |
D | bufferCopy.cpp | 150 uint32_t* dst = (uint32_t*)tgt; in fillRGBAFromYUYV() local 168 *(dst+0) = yuvToRgbx(Y1, U, V); in fillRGBAFromYUYV() 169 *(dst+1) = yuvToRgbx(Y2, U, V); in fillRGBAFromYUYV() 170 dst += 2; in fillRGBAFromYUYV() 175 dst += dstRowPadding32; in fillRGBAFromYUYV() 184 uint8_t* dst = (uint8_t*)tgt; in fillYUYVFromYUYV() local 190 memcpy(dst+r*dstStrideBytes, src+r*srcStrideBytes, width*2); in fillYUYVFromYUYV() 199 uint32_t* dst = (uint32_t*)tgt; in fillYUYVFromUYVY() local 217 *dst++ = (U) | in fillYUYVFromUYVY() 225 dst += dstRowPadding32; in fillYUYVFromUYVY()
|
/packages/modules/DnsResolver/tests/ |
D | tun_forwarder.cpp | 72 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()
|
D | tun_forwarder.h | 55 dst.s_addr = static_cast<in_addr_t>(dstAddr); in v4pair() 58 in_addr dst; member 66 v6pair(const in6_addr& srcAddr, const in6_addr& dstAddr) : src(srcAddr), dst(dstAddr) {} in v6pair() 68 in6_addr dst; member
|
/packages/modules/DnsResolver/ |
D | hostent.h | 50 #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); \
|
D | res_comp.cpp | 87 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/apps/Gallery2/src/com/android/gallery3d/app/ |
D | VideoUtils.java | 71 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() 230 private static void trimUsingMp4Parser(File src, File dst, int startMs, int endMs) in trimUsingMp4Parser() argument [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | Metrics.java | 115 @Nullable DocumentInfo dst) { in logFileOperation() argument 117 countProviders(counts, srcs, dst); in logFileOperation() 119 logIntraProviderFileOps(dst.authority, operationType); in logFileOperation() 123 logInterProviderFileOps(MetricConsts.PROVIDER_SYSTEM, dst, operationType); in logFileOperation() 127 logInterProviderFileOps(MetricConsts.PROVIDER_EXTERNAL, dst, operationType); in logFileOperation() 279 DocumentInfo dst, in logInterProviderFileOps() argument 285 assert(dst != null); in logInterProviderFileOps() 286 @MetricConsts.Provider int opProviderType = isSystemProvider(dst.authority) in logInterProviderFileOps() 570 ProviderCounts counts, List<DocumentInfo> srcs, @Nullable DocumentInfo dst) { in countProviders() argument 572 countForAuthority(counts, doc.authority, dst); in countProviders() [all …]
|
/packages/apps/LegacyCamera/jni/feature_stab/src/dbregtest/ |
D | PgmImage.cpp | 64 void PgmImage::DeepCopy(const PgmImage& src, PgmImage& dst) in DeepCopy() argument 66 dst.m_data = src.m_data; in DeepCopy() 69 dst.m_w = src.m_w; in DeepCopy() 70 dst.m_h = src.m_h; in DeepCopy() 71 dst.m_format = src.m_format; in DeepCopy() 72 dst.m_colors = src.m_colors; in DeepCopy() 74 dst.m_comment = src.m_comment; in DeepCopy()
|
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/dicttool/ |
D | BinaryDictOffdeviceUtilsTests.java | 99 final File dst = File.createTempFile("testGetRawDict", ".tmp"); in testGetRawDictWorks() local 100 dst.deleteOnExit(); in testGetRawDictWorks() 102 new BufferedOutputStream(new FileOutputStream(dst)))) { in testGetRawDictWorks() 109 BinaryDictOffdeviceUtils.getRawDictionaryOrNull(dst); in testGetRawDictWorks() 128 final File dst = File.createTempFile("testGetRawDict", ".tmp"); in testGetRawDictFails() local 129 dst.deleteOnExit(); in testGetRawDictFails() 130 try (final OutputStream out = new BufferedOutputStream(new FileOutputStream(dst))) { in testGetRawDictFails() 138 BinaryDictOffdeviceUtils.getRawDictionaryOrNull(dst)); in testGetRawDictFails()
|
/packages/apps/Camera2/jni/ |
D | jpegutilnative.cpp | 123 char* dst = 0; in Java_com_android_camera_util_JpegUtilNative_copyImagePlaneToBitmap() local 124 AndroidBitmap_lockPixels(env, outBitmap, (void**)&dst); in Java_com_android_camera_util_JpegUtilNative_copyImagePlaneToBitmap() 130 char* dstPtr = &dst[y * width]; in Java_com_android_camera_util_JpegUtilNative_copyImagePlaneToBitmap() 143 dst[y * width + x] = src[srcX * pStride + rStride * srcY]; in Java_com_android_camera_util_JpegUtilNative_copyImagePlaneToBitmap() 152 dst[y * width + x] = src[srcX * pStride + rStride * srcY]; in Java_com_android_camera_util_JpegUtilNative_copyImagePlaneToBitmap() 161 dst[y * width + x] = src[srcX * pStride + rStride * srcY]; in Java_com_android_camera_util_JpegUtilNative_copyImagePlaneToBitmap()
|
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
D | BinaryDictOffdeviceUtils.java | 134 final File dst = File.createTempFile(PREFIX, SUFFIX); in process() local 135 dst.deleteOnExit(); in process() 136 try (final OutputStream output = new BufferedOutputStream(new FileOutputStream(dst))) { in process() 140 if (BinaryDictDecoderUtils.isBinaryDictionary(dst) in process() 141 || CombinedInputOutput.isCombinedDictionary(dst.getAbsolutePath())) { in process() 142 return dst; in process()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | ShortcutIntentBuilder.java | 375 Rect dst = new Rect(0,0, mIconSize, mIconSize); in generateQuickContactIcon() local 376 photo.setBounds(dst); in generateQuickContactIcon() 391 roundedDrawable.setBounds(dst); in generateQuickContactIcon() 419 Rect dst = new Rect(0, 0, mIconSize, mIconSize); in generatePhoneNumberIcon() local 440 dst.set(0, mIconSize - textBandHeight, mIconSize, mIconSize); in generatePhoneNumberIcon() 441 canvas.drawRect(dst, workPaint); in generatePhoneNumberIcon() 463 dst.set(iconWidth - ((int) (20 * density)), -1, in generatePhoneNumberIcon() 465 canvas.drawBitmap(phoneIcon, null, dst, photoPaint); in generatePhoneNumberIcon()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | DragHost.java | 119 DocumentInfo dst = mDestinationLookup.lookup(v); in handleDropEvent() local 120 if (dst == null) { in handleDropEvent() 128 DocumentStack dstStack = dst.equals(mState.stack.peek()) in handleDropEvent() 130 : new DocumentStack(mState.stack, dst); in handleDropEvent()
|