Home
last modified time | relevance | path

Searched refs:src (Results 1 – 25 of 252) sorted by relevance

1234567891011

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DResizableIntArrayTests.java29 final ResizableIntArray src = new ResizableIntArray(DEFAULT_CAPACITY); in testNewInstance() local
30 final int[] array = src.getPrimitiveArray(); in testNewInstance()
31 assertEquals("new instance length", 0, src.getLength()); in testNewInstance()
37 final ResizableIntArray src = new ResizableIntArray(DEFAULT_CAPACITY); in testAdd() local
38 final int[] array = src.getPrimitiveArray(); in testAdd()
43 src.add(value); in testAdd()
44 assertEquals("length after add " + i, i + 1, src.getLength()); in testAdd()
46 array2 = src.getPrimitiveArray(); in testAdd()
49 array3 = src.getPrimitiveArray(); in testAdd()
52 assertSame("array after add " + i, array, src.getPrimitiveArray()); in testAdd()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DInputPointersTests.java31 final InputPointers src = new InputPointers(DEFAULT_CAPACITY); in testNewInstance() local
32 assertEquals("new instance size", 0, src.getPointerSize()); in testNewInstance()
33 assertNotNull("new instance xCoordinates", src.getXCoordinates()); in testNewInstance()
34 assertNotNull("new instance yCoordinates", src.getYCoordinates()); in testNewInstance()
35 assertNotNull("new instance pointerIds", src.getPointerIds()); in testNewInstance()
36 assertNotNull("new instance times", src.getTimes()); in testNewInstance()
40 final InputPointers src = new InputPointers(DEFAULT_CAPACITY); in testReset() local
41 final int[] xCoordinates = src.getXCoordinates(); in testReset()
42 final int[] yCoordinates = src.getXCoordinates(); in testReset()
43 final int[] pointerIds = src.getXCoordinates(); in testReset()
[all …]
/packages/apps/Gallery2/jni_jpegstream/src/
Djpeg_hook.cpp90 SourceManager *src = reinterpret_cast<SourceManager*>(cinfo->src); in Mgr_fill_input_buffer_fcn() local
91 int32_t bytesRead = src->inStream->read(src->inStream->getBufferSize(), 0); in Mgr_fill_input_buffer_fcn()
93 if (src->start_of_file == TRUE) { in Mgr_fill_input_buffer_fcn()
97 bytesRead = src->inStream->forceReadEOI(); in Mgr_fill_input_buffer_fcn()
103 src->mgr.next_input_byte = reinterpret_cast<JOCTET*>(src->inStream->getBufferPtr()); in Mgr_fill_input_buffer_fcn()
104 src->mgr.bytes_in_buffer = bytesRead; in Mgr_fill_input_buffer_fcn()
106 src->start_of_file = FALSE; in Mgr_fill_input_buffer_fcn()
112 SourceManager *s = reinterpret_cast<SourceManager*>(cinfo->src); in Mgr_init_source_fcn()
123 SourceManager *src = reinterpret_cast<SourceManager*>(cinfo->src); in Mgr_skip_input_data_fcn() local
124 if (src->mgr.bytes_in_buffer >= num_bytes) { in Mgr_skip_input_data_fcn()
[all …]
/packages/apps/Mms/src/com/android/mms/model/
DMediaModelFactory.java45 String src = sme.getSrc(); in getMediaModel() local
46 PduPart part = findPart(pb, src); in getMediaModel()
50 context, tag, src, (SMILRegionMediaElement) sme, layouts, part); in getMediaModel()
53 context, tag, src, sme, part, null); in getMediaModel()
57 private static PduPart findPart(PduBody pb, String src) { in findPart() argument
60 if (src != null) { in findPart()
61 src = unescapeXML(src); in findPart()
62 if (src.startsWith("cid:")) { in findPart()
63 part = pb.getPartByContentId("<" + src.substring("cid:".length()) + ">"); in findPart()
65 part = pb.getPartByName(src); in findPart()
[all …]
/packages/apps/LegacyCamera/jni/
DAndroid.mk7 $(LOCAL_PATH)/feature_stab/src \
8 $(LOCAL_PATH)/feature_stab/src/dbreg \
9 $(LOCAL_PATH)/feature_mos/src \
10 $(LOCAL_PATH)/feature_mos/src/mosaic
17 feature_mos/src/mosaic/trsMatrix.cpp \
18 feature_mos/src/mosaic/AlignFeatures.cpp \
19 feature_mos/src/mosaic/Blend.cpp \
20 feature_mos/src/mosaic/Delaunay.cpp \
21 feature_mos/src/mosaic/ImageUtils.cpp \
22 feature_mos/src/mosaic/Mosaic.cpp \
[all …]
/packages/apps/Camera/jni/
DAndroid.mk7 $(LOCAL_PATH)/feature_stab/src \
8 $(LOCAL_PATH)/feature_stab/src/dbreg \
9 $(LOCAL_PATH)/feature_mos/src \
10 $(LOCAL_PATH)/feature_mos/src/mosaic
17 feature_mos/src/mosaic/trsMatrix.cpp \
18 feature_mos/src/mosaic/AlignFeatures.cpp \
19 feature_mos/src/mosaic/Blend.cpp \
20 feature_mos/src/mosaic/Delaunay.cpp \
21 feature_mos/src/mosaic/ImageUtils.cpp \
22 feature_mos/src/mosaic/Mosaic.cpp \
[all …]
/packages/apps/Gallery2/jni/filters/
DredEyeMath.c24 int isRed(unsigned char *src, int p) { in isRed() argument
25 int b = src[p + 2]; in isRed()
26 int g = src[p + 1]; in isRed()
27 int r = src[p]; in isRed()
33 void findPossible(unsigned char *src, unsigned char *mask, int iw, int ih, in findPossible() argument
43 int b = src[p + 2]; in findPossible()
44 int g = src[p + 1]; in findPossible()
45 int r = src[p]; in findPossible()
54 void findReds(unsigned char *src, unsigned char *mask, int iw, int ih, in findReds() argument
64 mask[x + y * recW] = ((isRed(src, p)) ? 1 : 0); in findReds()
[all …]
Dgeometry.c130 void JNIFUNCF(ImageFilterGeometry, nativeApplyFilterFlip, jobject src, jint srcWidth, jint srcHeigh… in JNIFUNCF() argument
136 AndroidBitmap_lockPixels(env, src, (void**) &source); in JNIFUNCF()
140 AndroidBitmap_unlockPixels(env, src); in JNIFUNCF()
143 void JNIFUNCF(ImageFilterGeometry, nativeApplyFilterRotate, jobject src, jint srcWidth, jint srcHei… in JNIFUNCF() argument
147 AndroidBitmap_lockPixels(env, src, (void**) &source); in JNIFUNCF()
151 AndroidBitmap_unlockPixels(env, src); in JNIFUNCF()
154 void JNIFUNCF(ImageFilterGeometry, nativeApplyFilterCrop, jobject src, jint srcWidth, jint srcHeigh… in JNIFUNCF() argument
158 AndroidBitmap_lockPixels(env, src, (void**) &source); in JNIFUNCF()
162 AndroidBitmap_unlockPixels(env, src); in JNIFUNCF()
165 void JNIFUNCF(ImageFilterGeometry, nativeApplyFilterStraighten, jobject src, jint srcWidth, jint sr… in JNIFUNCF() argument
[all …]
Dfx.c19 __inline__ int interp(unsigned char *src, int p , int *off ,float dr,float dg, float db){ in interp() argument
21 float fr00 = (src[p+off[0]])*(1-dr)+(src[p+off[1]])*dr; in interp()
22 float fr01 = (src[p+off[2]])*(1-dr)+(src[p+off[3]])*dr; in interp()
23 float fr10 = (src[p+off[4]])*(1-dr)+(src[p+off[5]])*dr; in interp()
24 float fr11 = (src[p+off[6]])*(1-dr)+(src[p+off[7]])*dr; in interp()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DTiledTexture.java266 RectF src, float x0, float y0, float x, float y, float scaleX, in mapRect() argument
268 output.set(x + (src.left - x0) * scaleX, in mapRect()
269 y + (src.top - y0) * scaleY, in mapRect()
270 x + (src.right - x0) * scaleX, in mapRect()
271 y + (src.bottom - y0) * scaleY); in mapRect()
278 RectF src = mSrcRect; in drawMixed() local
285 src.set(0, 0, t.contentWidth, t.contentHeight); in drawMixed()
286 src.offset(t.offsetX, t.offsetY); in drawMixed()
287 mapRect(dest, src, 0, 0, x, y, scaleX, scaleY); in drawMixed()
288 src.offset(BORDER_SIZE - t.offsetX, BORDER_SIZE - t.offsetY); in drawMixed()
[all …]
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/
DOpenWnnDictionaryImplJni.c45 static NJ_CHAR convertUTFCharToNjChar( NJ_UINT8* src ) in convertUTFCharToNjChar() argument
52 dst[ 0 ] = src[ 0 ]; in convertUTFCharToNjChar()
53 dst[ 1 ] = src[ 1 ]; in convertUTFCharToNjChar()
60 const unsigned char* src; in convertStringToNjChar() local
62 src = ( const unsigned char* )( ( *env )->GetStringUTFChars( env, srcJ, NULL ) ); in convertStringToNjChar()
63 if( src != NULL ) { in convertStringToNjChar()
67 for( i = o = 0 ; src[ i ] != 0x00 && o < maxChars ; ) { in convertStringToNjChar()
71 if( ( src[ i ] & 0x80 ) == 0x00 ) { in convertStringToNjChar()
75 dst_tmp[ 1 ] = src[ i + 0 ] & 0x7f; in convertStringToNjChar()
78 } else if( ( src[ i ] & 0xe0 ) == 0xc0 ) { in convertStringToNjChar()
[all …]
/packages/apps/UnifiedEmail/assets/
Dscript.js474 var src = rewriteRelativeImageSrc(image);
475 if (src) {
476 urls[k] = src;
497 var src = imgElement.src;
500 if (src.indexOf(DOC_BASE_URI) == 0 && (DOC_BASE_URI != CONVERSATION_BASE_URI)) {
502 src = CONVERSATION_BASE_URI + src.substring(DOC_BASE_URI.length);
503 imgElement.src = src;
504 return src;
508 if (src.substring(0, 4) == "cid:") {
509 return src;
[all …]
/packages/apps/QuickSearchBox/benchmarks/src/com/android/quicksearchbox/benchmarks/
DSourceLatency.java89 public void checkSourceConcurrent(final String src, final ComponentName componentName, in checkSourceConcurrent() argument
99 long t = checkSourceInternal(src, searchable, prefix); in checkSourceConcurrent()
118 Log.d(TAG, src + "[DONE]: " + length + " queries in " + formatTime(time.getAverage()) in checkSourceConcurrent()
122 public void checkSource(String src, ComponentName componentName, String[] queries) { in checkSource() argument
126 long t = checkSource(src, componentName, queries[i]); in checkSource()
129 Log.d(TAG, src + "[DONE]: " + count + " queries in " + formatTime(time.getAverage()) in checkSource()
133 public long checkSource(String src, ComponentName componentName, String query) { in checkSource() argument
135 return checkSourceInternal(src, searchable, query); in checkSource()
138 private long checkSourceInternal(String src, SearchableInfo searchable, String query) { in checkSourceInternal() argument
146 Log.d(TAG, src + ": null cursor in " + formatTime(elapsed) in checkSourceInternal()
[all …]
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
Dnj_str.c21 NJ_CHAR *nj_strcpy(NJ_CHAR *dst, NJ_CHAR *src) { in nj_strcpy() argument
26 while (*src != NJ_CHAR_NUL) { 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
39 if (*src == NJ_CHAR_NUL) { in nj_strncpy()
46 *d++ = *src++; in nj_strncpy()
122 NJ_CHAR *nj_charncpy(NJ_CHAR *dst, NJ_CHAR *src, NJ_UINT16 n) { in nj_charncpy() argument
129 for (i = NJ_CHAR_LEN(src); i != 0; i--) { in nj_charncpy()
130 *d = *src; in nj_charncpy()
[all …]
Dndldic.c100 #define COPY_QUE(handle, src, dst) \ argument
101 nj_memcpy(POS_TO_ADDRESS((handle), (dst)), POS_TO_ADDRESS((handle), (src)), QUE_SIZE(handle))
148 #define COPY_UINT16(dst,src) (*(NJ_UINT16 *)(dst) = *(NJ_UINT16 *)(src)) argument
682 NJ_UINT8 *src, *dst; in get_string() local
690 src = POS_TO_ADDRESS(handle, que_id); in get_string()
691 switch (GET_TYPE_FROM_DATA(src)) { in get_string()
694 size = GET_YSIZE_FROM_DATA(src); in get_string()
716 src += LEARN_QUE_STRING_OFFSET; in get_string()
728 *dst++ = *src++; in get_string()
738 if (src >= bottom_addr) { in get_string()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DBitmapUtil.java47 public static Bitmap decodeByteArray(byte[] src, int w, int h) { in decodeByteArray() argument
52 BitmapFactory.decodeByteArray(src, 0, src.length, opts); in decodeByteArray()
58 return BitmapFactory.decodeByteArray(src, 0, src.length, opts); in decodeByteArray()
74 public static Bitmap decodeByteArrayWithCenterCrop(byte[] src, int w, int h) { in decodeByteArrayWithCenterCrop() argument
76 final Bitmap decoded = decodeByteArray(src, w, h); in decodeByteArrayWithCenterCrop()
96 public static Bitmap centerCrop(final Bitmap src, final int w, final int h) { in centerCrop() argument
97 return crop(src, w, h, 0.5f, 0.5f); in centerCrop()
131 public static Bitmap crop(final Bitmap src, final int w, final int h, in crop() argument
139 final int srcWidth = src.getWidth(); in crop()
140 final int srcHeight = src.getHeight(); in crop()
[all …]
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DBinaryDictOffdeviceUtils.java91 public static DecoderChainSpec getRawDictionaryOrNull(final File src) { in getRawDictionaryOrNull() argument
92 return getRawDictionaryOrNullInternal(new DecoderChainSpec(), src, 0); in getRawDictionaryOrNull()
96 final DecoderChainSpec spec, final File src, final int depth) { in getRawDictionaryOrNullInternal() argument
103 if (BinaryDictDecoderUtils.isBinaryDictionary(src) in getRawDictionaryOrNullInternal()
104 || CombinedInputOutput.isCombinedDictionary(src.getAbsolutePath())) { in getRawDictionaryOrNullInternal()
105 spec.mFile = src; in getRawDictionaryOrNullInternal()
109 final File uncompressedFile = tryGetUncompressedFile(src); in getRawDictionaryOrNullInternal()
117 final File decryptedFile = tryGetDecryptedFile(src); in getRawDictionaryOrNullInternal()
132 private static File tryGetUncompressedFile(final File src) { in tryGetUncompressedFile() argument
138 new BufferedInputStream(new FileInputStream(src))); in tryGetUncompressedFile()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/internal/
Ddic_node_state.h38 DicNodeState &operator=(const DicNodeState& src) {
39 initByCopy(&src);
43 DicNodeState(const DicNodeState& src) in DicNodeState() argument
45 initByCopy(&src); in DicNodeState()
65 AK_FORCE_INLINE void initByCopy(const DicNodeState *const src) { in initByCopy() argument
66 mDicNodeStateInput.initByCopy(&src->mDicNodeStateInput); in initByCopy()
67 mDicNodeStateOutput.initByCopy(&src->mDicNodeStateOutput); in initByCopy()
68 mDicNodeStateScoring.initByCopy(&src->mDicNodeStateScoring); in initByCopy()
72 void init(const DicNodeState *const src, const uint16_t mergedNodeCodePointCount, in init() argument
74 initByCopy(src); in init()
/packages/apps/Gallery2/jni_jpegstream/
DAndroid.mk12 $(LOCAL_PATH)/src \
26 src/inputstream_wrapper.cpp \
27 src/jpegstream.cpp \
28 src/jerr_hook.cpp \
29 src/jpeg_hook.cpp \
30 src/jpeg_writer.cpp \
31 src/jpeg_reader.cpp \
32 src/outputstream_wrapper.cpp \
33 src/stream_wrapper.cpp
/packages/apps/Camera/src/com/android/camera/
DComboPreferences.java78 Map<String, ?> m, String key, SharedPreferences src) { in movePrefFrom() argument
92 src.edit().remove(key).apply(); in movePrefFrom()
96 private void moveGlobalPrefsFrom(SharedPreferences src) { in moveGlobalPrefsFrom() argument
97 Map<String, ?> prefMap = src.getAll(); in moveGlobalPrefsFrom()
98 movePrefFrom(prefMap, CameraSettings.KEY_VERSION, src); in moveGlobalPrefsFrom()
99 movePrefFrom(prefMap, CameraSettings.KEY_VIDEO_TIME_LAPSE_FRAME_INTERVAL, src); in moveGlobalPrefsFrom()
100 movePrefFrom(prefMap, CameraSettings.KEY_CAMERA_ID, src); in moveGlobalPrefsFrom()
101 movePrefFrom(prefMap, CameraSettings.KEY_RECORD_LOCATION, src); in moveGlobalPrefsFrom()
102 movePrefFrom(prefMap, CameraSettings.KEY_CAMERA_FIRST_USE_HINT_SHOWN, src); in moveGlobalPrefsFrom()
103 movePrefFrom(prefMap, CameraSettings.KEY_VIDEO_FIRST_USE_HINT_SHOWN, src); in moveGlobalPrefsFrom()
[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()
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()
546 dst[j][3*i ] = db_BilinearInterpolationRGB(yd,xd,src,0); in db_WarpImageLutBilinear_rgb()
547 dst[j][3*i+1] = db_BilinearInterpolationRGB(yd,xd,src,1); in db_WarpImageLutBilinear_rgb()
548 dst[j][3*i+2] = db_BilinearInterpolationRGB(yd,xd,src,2); in db_WarpImageLutBilinear_rgb()
/packages/apps/Camera/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()
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()
546 dst[j][3*i ] = db_BilinearInterpolationRGB(yd,xd,src,0); in db_WarpImageLutBilinear_rgb()
547 dst[j][3*i+1] = db_BilinearInterpolationRGB(yd,xd,src,1); in db_WarpImageLutBilinear_rgb()
548 dst[j][3*i+2] = db_BilinearInterpolationRGB(yd,xd,src,2); in db_WarpImageLutBilinear_rgb()
/packages/apps/Camera/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()
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()
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()
152 db_WarpImageLutBilinear_u(src,dst,w,h,lut_x,lut_y); in db_WarpImageLut_u()
/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()
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()
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()
152 db_WarpImageLutBilinear_u(src,dst,w,h,lut_x,lut_y); in db_WarpImageLut_u()
/packages/apps/Dialer/src/com/android/dialer/widget/
DOverlappingPaneLayout.java1331 AccessibilityNodeInfoCompat src) { in copyNodeInfoNoChildren() argument
1334 src.getBoundsInParent(rect); in copyNodeInfoNoChildren()
1337 src.getBoundsInScreen(rect); in copyNodeInfoNoChildren()
1340 dest.setVisibleToUser(src.isVisibleToUser()); in copyNodeInfoNoChildren()
1341 dest.setPackageName(src.getPackageName()); in copyNodeInfoNoChildren()
1342 dest.setClassName(src.getClassName()); in copyNodeInfoNoChildren()
1343 dest.setContentDescription(src.getContentDescription()); in copyNodeInfoNoChildren()
1345 dest.setEnabled(src.isEnabled()); in copyNodeInfoNoChildren()
1346 dest.setClickable(src.isClickable()); in copyNodeInfoNoChildren()
1347 dest.setFocusable(src.isFocusable()); in copyNodeInfoNoChildren()
[all …]

1234567891011