/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/ |
D | InputPointersTests.java | 108 final InputPointers dst = new InputPointers(DEFAULT_CAPACITY); in testSet() local 109 dst.set(src); in testSet() 110 assertEquals("size after set", dst.getPointerSize(), src.getPointerSize()); in testSet() 111 assertSame("xCoordinates after set", dst.getXCoordinates(), src.getXCoordinates()); in testSet() 112 assertSame("yCoordinates after set", dst.getYCoordinates(), src.getYCoordinates()); in testSet() 113 assertSame("pointerIds after set", dst.getPointerIds(), src.getPointerIds()); in testSet() 114 assertSame("times after set", dst.getTimes(), src.getTimes()); in testSet() 127 final InputPointers dst = new InputPointers(DEFAULT_CAPACITY); in testCopy() local 128 dst.copy(src); in testCopy() 129 assertEquals("size after copy", dst.getPointerSize(), src.getPointerSize()); in testCopy() [all …]
|
D | ResizableIntArrayTests.java | 183 final ResizableIntArray dst = new ResizableIntArray(DEFAULT_CAPACITY); in testSet() local 184 dst.set(src); in testSet() 185 assertEquals("length after set", dst.getLength(), src.getLength()); in testSet() 186 assertSame("array after set", dst.getPrimitiveArray(), src.getPrimitiveArray()); in testSet() 196 final ResizableIntArray dst = new ResizableIntArray(DEFAULT_CAPACITY); in testCopy() local 197 final int[] array = dst.getPrimitiveArray(); in testCopy() 198 dst.copy(src); in testCopy() 199 assertEquals("length after copy", dst.getLength(), src.getLength()); in testCopy() 200 assertSame("array after copy", array, dst.getPrimitiveArray()); in testCopy() 201 assertNotSame("array after copy", dst.getPrimitiveArray(), src.getPrimitiveArray()); in testCopy() [all …]
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
D | nj_str.c | 21 NJ_CHAR *nj_strcpy(NJ_CHAR *dst, NJ_CHAR *src) { in nj_strcpy() argument 23 NJ_CHAR *ret = dst; in nj_strcpy() 27 *dst++ = *src++; in nj_strcpy() 29 *dst = *src; in nj_strcpy() 33 NJ_CHAR *nj_strncpy(NJ_CHAR *dst, NJ_CHAR *src, NJ_UINT16 n) { in nj_strncpy() argument 35 NJ_CHAR *d = dst; in nj_strncpy() 50 return dst; in nj_strncpy() 122 NJ_CHAR *nj_charncpy(NJ_CHAR *dst, NJ_CHAR *src, NJ_UINT16 n) { in nj_charncpy() argument 124 NJ_CHAR *d = dst; in nj_charncpy() 132 return dst; in nj_charncpy() [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/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 | 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 | geometry.c | 130 …nativeApplyFilterFlip, jobject src, jint srcWidth, jint srcHeight, jobject dst, jint dstWidth, jin… in JNIFUNCF() argument 137 AndroidBitmap_lockPixels(env, dst, (void**) &destination); in JNIFUNCF() 139 AndroidBitmap_unlockPixels(env, dst); in JNIFUNCF() 143 …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 159 AndroidBitmap_lockPixels(env, dst, (void**) &destination); in JNIFUNCF() 161 AndroidBitmap_unlockPixels(env, dst); in JNIFUNCF() 165 …ApplyFilterStraighten, jobject src, jint srcWidth, jint srcHeight, jobject dst, jint dstWidth, jin… 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 | edge.c | 35 char * 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()
|
D | kmeans.cc | 43 unsigned char * dst = (unsigned char *) destination; in JNIFUNCF() local 73 applyCentroids<unsigned char, int>(k, nextCentroids, dst, len, dimension, stride); in JNIFUNCF()
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/ |
D | OpenWnnDictionaryImplJni.c | 48 NJ_UINT8* dst; in convertUTFCharToNjChar() local 51 dst = ( NJ_UINT8* )&ret; in convertUTFCharToNjChar() 52 dst[ 0 ] = src[ 0 ]; in convertUTFCharToNjChar() 53 dst[ 1 ] = src[ 1 ]; in convertUTFCharToNjChar() 58 static int convertStringToNjChar( JNIEnv *env, NJ_CHAR* dst, jstring srcJ, int maxChars ) in convertStringToNjChar() argument 69 dst_tmp = ( NJ_UINT8* )&( dst[ o ] ); in convertStringToNjChar() 127 dst[ o ] = NJ_CHAR_NUL; in convertStringToNjChar() 138 char dst[ (NJ_MAX_LEN + NJ_MAX_RESULT_LEN + NJ_TERM_LEN ) * 3 + 1 ]; in convertNjCharToString() local 150 dst[ o + 0 ] = src_tmp[ 1 ] & 0x007f; in convertNjCharToString() 156 … dst[ o + 0 ] = 0xc0 | ( ( src_tmp[ 0 ] & 0x07 ) << 2 ) | ( ( src_tmp[ 1 ] & 0xc0 ) >> 6 ); in convertNjCharToString() [all …]
|
/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/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/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/inputmethods/OpenWnn/libs/libwnnDictionary/include/ |
D | nj_ext.h | 41 #define NJ_CHAR_COPY(dst, src) \ argument 43 ((NJ_UINT8*)(dst))[0] = ((NJ_UINT8*)(src))[0]; \ 44 ((NJ_UINT8*)(dst))[1] = ((NJ_UINT8*)(src))[1]; \ 145 extern NJ_CHAR *nj_strcpy(NJ_CHAR *dst, NJ_CHAR *src); 146 extern NJ_CHAR *nj_strncpy(NJ_CHAR *dst, NJ_CHAR *src, NJ_UINT16 n); 152 extern NJ_CHAR *nj_charncpy(NJ_CHAR *dst, NJ_CHAR *src, NJ_UINT16 n); 153 extern NJ_UINT8 *nj_memcpy(NJ_UINT8 *dst, NJ_UINT8 *src, NJ_UINT16 n);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | CompletionInfoUtils.java | 34 final CompletionInfo[] dst = new CompletionInfo[src.length]; in removeNulls() local 37 dst[j] = src[i]; in removeNulls() 41 return Arrays.copyOfRange(dst, 0, j); in removeNulls()
|
/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/ContactsCommon/src/com/android/contacts/common/list/ |
D | ShortcutIntentBuilder.java | 350 Rect dst = new Rect(0,0, mIconSize, mIconSize); in generateQuickContactIcon() local 351 photo.setBounds(dst); in generateQuickContactIcon() 361 roundedDrawable.setBounds(dst); in generateQuickContactIcon() 387 Rect dst = new Rect(0, 0, mIconSize, mIconSize); in generatePhoneNumberIcon() local 407 dst.set(0, mIconSize - textBandHeight, mIconSize, mIconSize); in generatePhoneNumberIcon() 408 canvas.drawRect(dst, workPaint); in generatePhoneNumberIcon() 419 dst.set(iconWidth - ((int) (20 * density)), -1, in generatePhoneNumberIcon() 421 canvas.drawBitmap(phoneIcon, src, dst, photoPaint); in generatePhoneNumberIcon()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
D | CropDrawingUtils.java | 173 public static boolean setImageToScreenMatrix(Matrix dst, RectF image, in setImageToScreenMatrix() argument 176 dst.setRotate(rotation, image.centerX(), image.centerY()); in setImageToScreenMatrix() 177 if (!dst.mapRect(rotatedImage, image)) { in setImageToScreenMatrix() 181 boolean rToR = dst.setRectToRect(rotatedImage, screen, Matrix.ScaleToFit.CENTER); in setImageToScreenMatrix() 182 boolean rot = dst.preRotate(rotation, image.centerX(), image.centerY()); in setImageToScreenMatrix()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
D | TransitionImageAnimation.java | 50 public void onRemovedView(TransitionImage src, TransitionImage dst) { in onRemovedView() argument 334 public boolean addTransitionTarget(TransitionImage dst) { in addTransitionTarget() argument 340 if (mComparator.compare(view.getSourceTransition(), dst) == 0) { in addTransitionTarget() 341 view.setDestTransition(dst); in addTransitionTarget()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
D | BitmapUtil.java | 137 final RectF dst = new RectF(0, 0, targetWidth, targetHeight); in getRoundedBitmap() local 138 canvas.drawOval(dst, paint); in getRoundedBitmap() 161 canvas.drawBitmap(input, src, dst, paint); in getRoundedBitmap()
|
/packages/services/Telephony/src/com/android/phone/ |
D | CallGatewayManager.java | 157 public static void checkAndCopyPhoneProviderExtras(Intent src, Intent dst) { in checkAndCopyPhoneProviderExtras() argument 163 dst.putExtra(EXTRA_GATEWAY_PROVIDER_PACKAGE, in checkAndCopyPhoneProviderExtras() 165 dst.putExtra(EXTRA_GATEWAY_URI, in checkAndCopyPhoneProviderExtras()
|
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/ |
D | reader.h | 1241 …tate Transit(IterativeParsingState src, Token token, IterativeParsingState dst, InputStream& is, H… in Transit() argument 1244 switch (dst) { in Transit() 1246 return dst; in Transit() 1263 …bool hr = (dst == IterativeParsingObjectInitialState) ? handler.StartObject() : handler.StartArray… in Transit() 1271 return dst; in Transit() 1280 return dst; in Transit() 1285 return dst; in Transit() 1293 return dst; in Transit() 1301 return dst; in Transit() 1308 return dst; in Transit() [all …]
|