Home
last modified time | relevance | path

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

12

/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/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/services/Car/evs/app/
DFormatConvert.cpp62 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 …]
DFormatConvert.h30 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/
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/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/apps/Gallery2/jni/filters/
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 …]
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()
Dedge.c35 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()
/packages/services/Car/evs/sampleDriver/
DbufferCopy.cpp150 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/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()
230 private static void trimUsingMp4Parser(File src, File dst, int startMs, int endMs) in trimUsingMp4Parser() argument
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/
DMetrics.java115 @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/
DPgmImage.cpp64 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/
DBinaryDictOffdeviceUtilsTests.java99 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/
Djpegutilnative.cpp123 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/
DBinaryDictOffdeviceUtils.java134 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/modules/NetworkStack/src/android/net/dhcp/
DDhcpServer.java147 @NonNull InetAddress dst) throws ErrnoException, IOException; in sendPacket() argument
185 @NonNull InetAddress dst) throws ErrnoException, IOException { in sendPacket() argument
186 Os.sendto(fd, buffer, 0, dst, DhcpPacket.DHCP_CLIENT); in sendPacket()
522 final Inet4Address dst = isEmpty(request.mRelayIp) in transmitNak() local
525 return transmitPacket(nakPacket, DhcpNakPacket.class.getSimpleName(), dst); in transmitNak()
538 final Inet4Address dst = getAckOrOfferDst(request, lease, broadcastFlag); in transmitOfferOrAckPacket() local
539 return transmitPacket(buf, request.getClass().getSimpleName(), dst); in transmitOfferOrAckPacket()
543 @NonNull Inet4Address dst) { in transmitPacket() argument
545 mDeps.sendPacket(mSocket, buf, dst); in transmitPacket()
/packages/apps/Contacts/src/com/android/contacts/
DShortcutIntentBuilder.java375 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/
DDragHost.java119 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()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DCompletionInfoUtils.java34 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/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dreader.h1241 …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 …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropDrawingUtils.java173 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/Dialer/java/com/android/dialer/contactphoto/
DBitmapUtil.java113 final RectF dst = new RectF(0, 0, targetWidth, targetHeight); in getRoundedBitmap() local
114 canvas.drawOval(dst, paint); in getRoundedBitmap()
138 canvas.drawBitmap(input, src, dst, paint); in getRoundedBitmap()

12