/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/services/Car/evs/apps/default/ |
D | FormatConvert.cpp | 63 uint32_t* dst, unsigned dstStridePixels) in copyNV21toRGB32() argument 81 uint32_t* rowDest = dst + r*dstStridePixels; in copyNV21toRGB32() 94 uint32_t* dst, unsigned dstStridePixels) in copyYV12toRGB32() argument 117 uint32_t* rowDest = dst + r*dstStridePixels; in copyYV12toRGB32() 128 uint32_t* dst, unsigned dstStridePixels) in copyYUYVtoRGB32() argument 146 *(dst+0) = yuvToRgbx(Y1, U, V); in copyYUYVtoRGB32() 147 *(dst+1) = yuvToRgbx(Y2, U, V); in copyYUYVtoRGB32() 148 dst += 2; in copyYUYVtoRGB32() 153 dst += dstRowPadding32; in copyYUYVtoRGB32() 160 void* dst, unsigned dstStridePixels, in copyMatchedInterleavedFormats() argument [all …]
|
D | FormatConvert.h | 36 uint32_t* dst, unsigned dstStridePixels); 46 uint32_t* dst, unsigned dstStridePixels); 55 uint32_t* dst, unsigned dstStrideBytes); 63 void* dst, unsigned dstStridePixels,
|
/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/support_library/ |
D | FormatConvert.cpp | 66 uint32_t* dst, unsigned dstStridePixels) in copyNV21toRGB32() argument 84 uint32_t* rowDest = dst + r*dstStridePixels; in copyNV21toRGB32() 97 uint32_t* dst, unsigned dstStridePixels) in copyYV12toRGB32() argument 120 uint32_t* rowDest = dst + r*dstStridePixels; in copyYV12toRGB32() 131 uint32_t* dst, unsigned dstStridePixels) in copyYUYVtoRGB32() argument 149 *(dst+0) = yuvToRgbx(Y1, U, V); in copyYUYVtoRGB32() 150 *(dst+1) = yuvToRgbx(Y2, U, V); in copyYUYVtoRGB32() 151 dst += 2; in copyYUYVtoRGB32() 156 dst += dstRowPadding32; in copyYUYVtoRGB32() 163 void* dst, unsigned dstStridePixels, in copyMatchedInterleavedFormats() argument [all …]
|
D | FormatConvert.h | 34 uint32_t* dst, unsigned dstStridePixels); 44 uint32_t* dst, unsigned dstStridePixels); 53 uint32_t* dst, unsigned dstStrideBytes); 61 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/providers/MediaProvider/src/com/android/providers/media/util/ |
D | Memory.java | 36 public static void pokeInt(byte[] dst, int offset, int value, ByteOrder order) { in pokeInt() argument 38 dst[offset++] = (byte) ((value >> 24) & 0xff); in pokeInt() 39 dst[offset++] = (byte) ((value >> 16) & 0xff); in pokeInt() 40 dst[offset++] = (byte) ((value >> 8) & 0xff); in pokeInt() 41 dst[offset ] = (byte) ((value >> 0) & 0xff); in pokeInt() 43 dst[offset++] = (byte) ((value >> 0) & 0xff); in pokeInt() 44 dst[offset++] = (byte) ((value >> 8) & 0xff); in pokeInt() 45 dst[offset++] = (byte) ((value >> 16) & 0xff); in pokeInt() 46 dst[offset ] = (byte) ((value >> 24) & 0xff); in pokeInt()
|
/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 | 156 uint32_t* dst = (uint32_t*)tgt; in fillRGBAFromYUYV() local 174 *(dst+0) = yuvToRgbx(Y1, U, V); in fillRGBAFromYUYV() 175 *(dst+1) = yuvToRgbx(Y2, U, V); in fillRGBAFromYUYV() 176 dst += 2; in fillRGBAFromYUYV() 181 dst += dstRowPadding32; in fillRGBAFromYUYV() 192 uint8_t* dst = (uint8_t*)tgt; in fillYUYVFromYUYV() local 198 memcpy(dst+r*dstStrideBytes, src+r*srcStrideBytes, width*2); in fillYUYVFromYUYV() 209 uint32_t* dst = (uint32_t*)tgt; in fillYUYVFromUYVY() local 227 *dst++ = (U) | in fillYUYVFromUYVY() 235 dst += dstRowPadding32; in fillYUYVFromUYVY()
|
/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 | 137 @Nullable DocumentInfo dst) { in logFileOperation() argument 139 countProviders(counts, srcs, dst); in logFileOperation() 141 logIntraProviderFileOps(dst.authority, operationType); in logFileOperation() 145 logInterProviderFileOps(MetricConsts.PROVIDER_SYSTEM, dst, operationType); in logFileOperation() 149 logInterProviderFileOps(MetricConsts.PROVIDER_EXTERNAL, dst, operationType); in logFileOperation() 301 DocumentInfo dst, in logInterProviderFileOps() argument 307 assert(dst != null); in logInterProviderFileOps() 308 @MetricConsts.Provider int opProviderType = isSystemProvider(dst.authority) in logInterProviderFileOps() 605 ProviderCounts counts, List<DocumentInfo> srcs, @Nullable DocumentInfo dst) { in countProviders() argument 607 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/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/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/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/services/Car/surround_view/app/ |
D | SurroundViewServiceCallback.cpp | 242 BufferDesc dst = {}; in convertBufferDesc() local 244 reinterpret_cast<AHardwareBuffer_Desc *>(&dst.buffer.description); in convertBufferDesc() 252 dst.buffer.nativeHandle = src.memHandle; in convertBufferDesc() 253 dst.pixelSize = src.pixelSize; in convertBufferDesc() 254 dst.bufferId = src.bufferId; in convertBufferDesc() 256 return dst; in convertBufferDesc()
|