Searched refs:dst (Results 76 - 100 of 181) sorted by relevance

12345678

/frameworks/base/cmds/installd/tests/
H A Dinstalld_utils_test.cpp385 //int copy_and_append(dir_rec_t* dst, dir_rec_t* src, char* suffix)
386 dir_rec_t dst; local
392 EXPECT_EQ(0, copy_and_append(&dst, &src, "app/"))
395 EXPECT_STREQ("/data/app/", dst.path)
398 EXPECT_EQ(10, (ssize_t) dst.len)
404 char dst[dst_size]; local
405 char *dstp = dst;
411 EXPECT_STREQ("FOO", dst)
417 EXPECT_STREQ("FOOFOO", dst)
423 char dst[dst_siz local
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DPathMeasure.java112 * Given a start and stop distance, return in dst the intervening
115 * If startD <= stopD then return false (and leave dst untouched).
118 public boolean getSegment(float startD, float stopD, Path dst, boolean startWithMoveTo) { argument
119 return native_getSegment(native_instance, startD, stopD, dst.ni(), startWithMoveTo);
H A DCanvas.java1037 * @param dst The destination rectangle.
1042 public void drawPatch(Bitmap bitmap, byte[] chunks, RectF dst, Paint paint) { argument
1088 * @param dst The rectangle that the bitmap will be scaled/translated
1092 public void drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) { argument
1093 if (dst == null) {
1097 native_drawBitmap(mNativeCanvas, bitmap.ni(), src, dst,
1119 * @param dst The rectangle that the bitmap will be scaled/translated
1123 public void drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) { argument
1124 if (dst == null) {
1128 native_drawBitmap(mNativeCanvas, bitmap.ni(), src, dst,
1589 drawPicture(Picture picture, RectF dst) argument
1602 drawPicture(Picture picture, Rect dst) argument
1703 native_drawBitmap(int nativeCanvas, int bitmap, Rect src, RectF dst, int nativePaintOrZero, int screenDensity, int bitmapDensity) argument
1708 native_drawBitmap(int nativeCanvas, int bitmap, Rect src, Rect dst, int nativePaintOrZero, int screenDensity, int bitmapDensity) argument
[all...]
H A DPath.java540 * @param dst The translated path is written here. If this is null, then
543 public void offset(float dx, float dy, Path dst) { argument
545 if (dst != null) {
546 dstNative = dst.mNativePath;
574 * into dst. If dst is null, then the the original path is modified.
577 * @param dst The transformed path is written here. If dst is null,
580 public void transform(Matrix matrix, Path dst) { argument
582 if (dst !
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DMatrix_Delegate.java137 public boolean mapRect(RectF dst, RectF src) { argument
150 dst.left = Math.min(Math.min(corners[0], corners[2]), Math.min(corners[4], corners[6]));
151 dst.right = Math.max(Math.max(corners[0], corners[2]), Math.max(corners[4], corners[6]));
153 dst.top = Math.min(Math.min(corners[1], corners[3]), Math.min(corners[5], corners[7]));
154 dst.bottom = Math.max(Math.max(corners[1], corners[3]), Math.max(corners[5], corners[7]));
583 RectF dst, int stf) {
594 if (dst.isEmpty()) {
599 float tx, sx = dst.width() / src.width();
600 float ty, sy = dst.height() / src.height();
612 tx = dst
582 native_setRectToRect(int native_object, RectF src, RectF dst, int stf) argument
647 native_setPolyToPoly(int native_object, float[] src, int srcIndex, float[] dst, int dstIndex, int pointCount) argument
685 native_mapPoints(int native_object, float[] dst, int dstIndex, float[] src, int srcIndex, int ptCount, boolean isPts) argument
700 native_mapRect(int native_object, RectF dst, RectF src) argument
910 mapPoints(float[] dst, int dstIndex, float[] src, int srcIndex, int pointCount) argument
949 mapVectors(float[] dst, int dstIndex, float[] src, int srcIndex, int ptCount) argument
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_MediaMetadataRetriever.cpp164 static void rotate0(T* dst, const T* src, size_t width, size_t height) argument
166 memcpy(dst, src, width * height * sizeof(T));
170 static void rotate90(T* dst, const T* src, size_t width, size_t height) argument
174 dst[j * height + height - 1 - i] = src[i * width + j];
180 static void rotate180(T* dst, const T* src, size_t width, size_t height) argument
184 dst[(height - 1 - i) * width + width - 1 - j] = src[i * width + j];
190 static void rotate270(T* dst, const T* src, size_t width, size_t height) argument
194 dst[(width - 1 - j) * height + i] = src[i * width + j];
200 static void rotate(T *dst, const T *src, size_t width, size_t height, int angle) argument
204 rotate0(dst, sr
[all...]
H A Dandroid_media_MediaExtractor.cpp186 void *dst = env->GetDirectBufferAddress(byteBuf); local
191 if (dst == NULL) {
207 dst = env->GetByteArrayElements(byteArray, &isCopy);
216 env->ReleaseByteArrayElements(byteArray, (jbyte *)dst, 0);
222 sp<ABuffer> buffer = new ABuffer((char *)dst + offset, dstSize - offset);
227 env->ReleaseByteArrayElements(byteArray, (jbyte *)dst, 0);
534 jint *dst = env->GetIntArrayElements(numBytesOfEncryptedDataObj, &isCopy); local
536 dst[i] = ((const size_t *)data)[i];
538 env->ReleaseIntArrayElements(numBytesOfEncryptedDataObj, dst, 0);
539 dst
551 jint *dst = env->GetIntArrayElements(numBytesOfPlainDataObj, &isCopy); local
568 jbyte *dst = env->GetByteArrayElements(keyObj, &isCopy); local
583 jbyte *dst = env->GetByteArrayElements(ivObj, &isCopy); local
[all...]
/frameworks/av/media/libstagefright/
H A DFLACExtractor.cpp125 void (*mCopy)(short *dst, const int *const *src, unsigned nSamples);
383 static void copyMono8(short *dst, const int *const *src, unsigned nSamples) argument
386 *dst++ = src[0][i] << 8;
390 static void copyStereo8(short *dst, const int *const *src, unsigned nSamples) argument
393 *dst++ = src[0][i] << 8;
394 *dst++ = src[1][i] << 8;
398 static void copyMono16(short *dst, const int *const *src, unsigned nSamples) argument
401 *dst++ = src[0][i];
405 static void copyStereo16(short *dst, const int *const *src, unsigned nSamples) argument
408 *dst
415 copyMono24(short *dst, const int *const *src, unsigned nSamples) argument
422 copyStereo24(short *dst, const int *const *src, unsigned nSamples) argument
430 copyTrespass(short *dst, const int *const *src, unsigned nSamples) argument
[all...]
H A DAVIExtractor.cpp960 static uint8_t *EncodeSize(uint8_t *dst, size_t x) { argument
962 *dst++ = (x & 0x7f) | 0x80;
965 *dst++ = x;
966 return dst;
975 uint8_t *dst = csd->data(); local
976 *dst++ = 0x03;
977 dst = EncodeSize(dst, len2 + 3);
978 *dst++ = 0x00; // ES_ID
979 *dst
[all...]
/frameworks/rs/driver/
H A DrsdIntrinsicBlend.cpp80 extern "C" void rsdIntrinsicBlendSrcOver_K(void *dst, const void *src, uint32_t count8);
81 extern "C" void rsdIntrinsicBlendDstOver_K(void *dst, const void *src, uint32_t count8);
82 extern "C" void rsdIntrinsicBlendSrcIn_K(void *dst, const void *src, uint32_t count8);
83 extern "C" void rsdIntrinsicBlendDstIn_K(void *dst, const void *src, uint32_t count8);
84 extern "C" void rsdIntrinsicBlendSrcOut_K(void *dst, const void *src, uint32_t count8);
85 extern "C" void rsdIntrinsicBlendDstOut_K(void *dst, const void *src, uint32_t count8);
86 extern "C" void rsdIntrinsicBlendSrcAtop_K(void *dst, const void *src, uint32_t count8);
87 extern "C" void rsdIntrinsicBlendDstAtop_K(void *dst, const void *src, uint32_t count8);
88 extern "C" void rsdIntrinsicBlendXor_K(void *dst, const void *src, uint32_t count8);
89 extern "C" void rsdIntrinsicBlendMultiply_K(void *dst, cons
[all...]
/frameworks/support/renderscript/v8/rs_support/driver/
H A DrsdIntrinsicBlend.cpp80 extern "C" void rsdIntrinsicBlendSrcOver_K(void *dst, const void *src, uint32_t count8);
81 extern "C" void rsdIntrinsicBlendDstOver_K(void *dst, const void *src, uint32_t count8);
82 extern "C" void rsdIntrinsicBlendSrcIn_K(void *dst, const void *src, uint32_t count8);
83 extern "C" void rsdIntrinsicBlendDstIn_K(void *dst, const void *src, uint32_t count8);
84 extern "C" void rsdIntrinsicBlendSrcOut_K(void *dst, const void *src, uint32_t count8);
85 extern "C" void rsdIntrinsicBlendDstOut_K(void *dst, const void *src, uint32_t count8);
86 extern "C" void rsdIntrinsicBlendSrcAtop_K(void *dst, const void *src, uint32_t count8);
87 extern "C" void rsdIntrinsicBlendDstAtop_K(void *dst, const void *src, uint32_t count8);
88 extern "C" void rsdIntrinsicBlendXor_K(void *dst, const void *src, uint32_t count8);
89 extern "C" void rsdIntrinsicBlendMultiply_K(void *dst, cons
[all...]
/frameworks/base/cmds/installd/
H A Dutils.c41 char *dst = path; local
44 if (append_and_increment(&dst, dir->path, &dst_size) < 0
45 || append_and_increment(&dst, pkgname, &dst_size) < 0
46 || append_and_increment(&dst, postfix, &dst_size) < 0) {
76 char *dst = prefix; local
79 if (append_and_increment(&dst, android_data_dir.path, &dst_size) < 0
80 || append_and_increment(&dst, persona_prefix, &dst_size) < 0) {
86 int ret = snprintf(dst, dst_size, "%d/", persona);
117 char *dst = path; local
120 if (append_and_increment(&dst, android_data_di
862 char *dst; local
886 copy_and_append(dir_rec_t* dst, const dir_rec_t* src, const char* suffix) argument
952 append_and_increment(char** dst, const char* src, size_t* dst_size) argument
[all...]
H A Dinstalld.h181 int copy_and_append(dir_rec_t* dst, const dir_rec_t* src, const char* suffix);
185 int append_and_increment(char** dst, const char* src, size_t* dst_size);
204 int move_dex(const char *src, const char *dst);
/frameworks/av/include/media/stagefright/
H A DSkipCutBuffer.h49 size_t read(char *dst, size_t num);
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Didct_vca.cpp40 void idctrow1(int16 *blk, uint8 *pred, uint8 *dst, int width) argument
50 dst -= width;
71 *((uint32*)(dst += width)) = dst_word; /* save 4 bytes to dst */
85 *((uint32*)(dst += 4)) = dst_word; /* save 4 bytes to dst */
97 void idctrow2(int16 *blk, uint8 *pred, uint8 *dst, int width) argument
106 dst -= width;
139 *((uint32*)(dst += width)) = dst_word; /* save 4 bytes to dst */
185 idctrow3(int16 *blk, uint8 *pred, uint8 *dst, int width) argument
294 idctrow4(int16 *blk, uint8 *pred, uint8 *dst, int width) argument
[all...]
H A Didct.cpp345 int *blk, uint8 *pred, uint8 *dst, int width)
540 *dst++ = res;
543 *dst++ = res;
546 *dst++ = res;
549 *dst++ = res;
552 *dst++ = res;
555 *dst++ = res;
558 *dst++ = res;
561 *dst++ = res;
564 dst
344 idct( int *blk, uint8 *pred, uint8 *dst, int width) argument
[all...]
/frameworks/compile/slang/tests/
H A Dtest.py43 def UpdateFiles(src, dst):
44 """Update dst if it is different from src."""
45 if not CompareFiles(src, dst):
46 print 'Copying from %s to %s' % (src, dst)
47 shutil.copyfile(src, dst)
/frameworks/native/opengl/tests/gralloc/
H A Dgralloc.cpp31 char* dst = (char*)d; local
34 *dst++ = *src++;
/frameworks/base/media/jni/mediaeditor/
H A DVideoEditorThumbnailMain.cpp115 M4OSA_Int32* dst = pC->m_dst32; local
121 dst[i] = RGB565toSKCOLOR(src[i]);
125 dst[i] = 0;
128 dst += pC->m_width;
133 M4OSA_Int16* dst = pC->m_dst16; local
137 memcpy((void * )dst, (void * )src, pPlane->u_stride);
140 dst[i] = 0;
143 dst += pC->m_width;
/frameworks/compile/libbcc/runtime/BlocksRuntime/
H A Druntime.c52 static __inline bool OSAtomicCompareAndSwapLong(long oldl, long newl, long volatile *dst) { argument
54 long original = InterlockedCompareExchange(dst, newl, oldl);
58 static __inline bool OSAtomicCompareAndSwapInt(int oldi, int newi, int volatile *dst) { argument
60 int original = InterlockedCompareExchange(dst, newi, oldi);
73 static __inline bool OSAtomicCompareAndSwapLong(long oldl, long newl, long volatile *dst) { argument
74 return __sync_bool_compare_and_swap(dst, oldl, newl);
77 static __inline bool OSAtomicCompareAndSwapInt(int oldi, int newi, int volatile *dst) { argument
78 return __sync_bool_compare_and_swap(dst, oldi, newi);
195 static void _Block_memmove_default(void *dst, void *src, unsigned long size) { argument
196 memmove(dst, sr
[all...]
/frameworks/base/core/jni/android/graphics/
H A DMatrix.cpp227 static jboolean setRectToRect(JNIEnv* env, jobject clazz, SkMatrix* matrix, jobject src, jobject dst, SkMatrix::ScaleToFit stf) { argument
231 GraphicsJNI::jrectf_to_rect(env, dst, &dst_);
245 float* dst = autoDst.ptr() + dstIndex; local
253 dstPt[i].set(SkFloatToScalar(dst[x]), SkFloatToScalar(dst[y]));
257 return matrix->setPolyToPoly((const SkPoint*)src, (const SkPoint*)dst,
267 jfloatArray dst, int dstIndex,
272 AutoJavaFloatArray autoDst(env, dst, dstIndex + (ptCount << 1));
277 // we allocate twice the count, 1 set for src, 1 for dst
308 static jboolean mapRect__RectFRectF(JNIEnv* env, jobject clazz, SkMatrix* matrix, jobjectArray dst, jobjec argument
266 mapPoints(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloatArray dst, int dstIndex, jfloatArray src, int srcIndex, int ptCount, bool isPts) argument
322 float* dst = autoValues.ptr(); local
[all...]
/frameworks/av/media/libstagefright/colorconversion/
H A DSoftwareRenderer.cpp154 void *dst; local
156 buf->handle, GRALLOC_USAGE_SW_WRITE_OFTEN, bounds, &dst));
163 dst,
171 uint8_t *dst_y = (uint8_t *)dst;
203 uint8_t *dst_y = (uint8_t *)dst;
/frameworks/native/include/ui/
H A DRegion.h151 static void boolean_operation(int op, Region& dst,
153 static void boolean_operation(int op, Region& dst,
156 static void boolean_operation(int op, Region& dst,
158 static void boolean_operation(int op, Region& dst,
162 static void translate(Region& dst, const Region& reg, int dx, int dy);
/frameworks/native/libs/ui/
H A DRegion.cpp408 void Region::boolean_operation(int op, Region& dst, argument
415 validate(dst, "boolean_operation (before): dst");
428 rasterizer r(dst);
435 validate(dst, "boolean_operation: dst");
469 if (sk_dst.isEmpty() && dst.isEmpty())
473 Region::const_iterator head = dst.begin();
474 Region::const_iterator const tail = dst.end();
503 dst
518 boolean_operation(int op, Region& dst, const Region& lhs, const Rect& rhs, int dx, int dy) argument
545 boolean_operation(int op, Region& dst, const Region& lhs, const Region& rhs) argument
551 boolean_operation(int op, Region& dst, const Region& lhs, const Rect& rhs) argument
576 translate(Region& dst, const Region& reg, int dx, int dy) argument
[all...]
/frameworks/av/media/libstagefright/codecs/avc/enc/src/
H A Dmotion_est.cpp483 uint8 *src, *dst; local
502 dst = src - (pitch << 4);
504 *((uint32*)(dst - 16)) = temp1;
505 *((uint32*)(dst - 12)) = temp1;
506 *((uint32*)(dst - 8)) = temp1;
507 *((uint32*)(dst - 4)) = temp1;
509 memcpy(dst, src, width);
511 *((uint32*)(dst += width)) = temp2;
512 *((uint32*)(dst + 4)) = temp2;
513 *((uint32*)(dst
[all...]

Completed in 5371 milliseconds

12345678