Home
last modified time | relevance | path

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

12345678910>>...15

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/
DResizableIntArrayTests.java41 final ResizableIntArray src = new ResizableIntArray(DEFAULT_CAPACITY); in testNewInstance() local
42 final int[] array = src.getPrimitiveArray(); in testNewInstance()
43 assertEquals("new instance length", 0, src.getLength()); in testNewInstance()
50 final ResizableIntArray src = new ResizableIntArray(DEFAULT_CAPACITY); in testAdd() local
51 final int[] array = src.getPrimitiveArray(); in testAdd()
56 src.add(value); in testAdd()
57 assertEquals("length after add " + i, i + 1, src.getLength()); in testAdd()
59 array2 = src.getPrimitiveArray(); in testAdd()
62 array3 = src.getPrimitiveArray(); in testAdd()
65 assertSame("array after add " + i, array, src.getPrimitiveArray()); in testAdd()
[all …]
DInputPointersTests.java41 final InputPointers src = new InputPointers(DEFAULT_CAPACITY); in testNewInstance() local
42 assertEquals("new instance size", 0, src.getPointerSize()); in testNewInstance()
43 assertNotNull("new instance xCoordinates", src.getXCoordinates()); in testNewInstance()
44 assertNotNull("new instance yCoordinates", src.getYCoordinates()); in testNewInstance()
45 assertNotNull("new instance pointerIds", src.getPointerIds()); in testNewInstance()
46 assertNotNull("new instance times", src.getTimes()); in testNewInstance()
51 final InputPointers src = new InputPointers(DEFAULT_CAPACITY); in testReset() local
52 final int[] xCoordinates = src.getXCoordinates(); in testReset()
53 final int[] yCoordinates = src.getXCoordinates(); in testReset()
54 final int[] pointerIds = src.getXCoordinates(); in testReset()
[all …]
/packages/inputmethods/LatinIME/native/jni/
DAndroid.bp18 "src/dictionary/header/header_policy.cpp",
19 "src/dictionary/header/header_read_write_utils.cpp",
20 "src/dictionary/property/ngram_context.cpp",
21 "src/dictionary/structure/dictionary_structure_with_buffer_policy_factory.cpp",
22 "src/dictionary/structure/pt_common/bigram/bigram_list_read_write_utils.cpp",
23 "src/dictionary/structure/pt_common/dynamic_pt_gc_event_listeners.cpp",
24 "src/dictionary/structure/pt_common/dynamic_pt_reading_helper.cpp",
25 "src/dictionary/structure/pt_common/dynamic_pt_reading_utils.cpp",
26 "src/dictionary/structure/pt_common/dynamic_pt_updating_helper.cpp",
27 "src/dictionary/structure/pt_common/dynamic_pt_writing_utils.cpp",
[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 >= (size_t)num_bytes) { in Mgr_skip_input_data_fcn()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DCopyJob.java319 void processDocument(DocumentInfo src, DocumentInfo srcParent, in processDocument() argument
327 if (src.authority.equals(dstDirInfo.authority)) { in processDocument()
328 if ((src.flags & Document.FLAG_SUPPORTS_COPY) != 0) { in processDocument()
330 if (DocumentsContract.copyDocument(wrap(getClient(src)), src.derivedUri, in processDocument()
336 Log.e(TAG, "Provider side copy failed for: " + src.derivedUri in processDocument()
339 appContext, MetricConsts.SUBFILEOP_QUICK_COPY, src.derivedUri); in processDocument()
344 Log.d(TAG, "Fallback to byte-by-byte copy for: " + src.derivedUri); in processDocument()
350 byteCopyDocument(src, dstDirInfo); in processDocument()
353 private void processDocumentThenUpdateProgress(DocumentInfo src, DocumentInfo srcParent, in processDocumentThenUpdateProgress() argument
355 processDocument(src, srcParent, dstDirInfo); in processDocumentThenUpdateProgress()
[all …]
DMoveJob.java122 for (DocumentInfo src : mResolvedDocs) { in checkSpace()
123 if (!src.authority.equals(stack.getRoot().authority)) { in checkSpace()
124 if (src.isDirectory()) { in checkSpace()
126 size += calculateFileSizesRecursively(getClient(src), src.derivedUri); in checkSpace()
128 Log.w(TAG, "Failed to obtain client for %s" + src.derivedUri + ".", e); in checkSpace()
134 size += src.size; in checkSpace()
142 void processDocument(DocumentInfo src, DocumentInfo srcParent, DocumentInfo dest) in processDocument() argument
149 if (src.authority.equals(dest.authority) && (srcParent != null || mSrcParent != null)) { in processDocument()
150 if ((src.flags & Document.FLAG_SUPPORTS_MOVE) != 0) { in processDocument()
152 if (DocumentsContract.moveDocument(wrap(getClient(src)), src.derivedUri, in processDocument()
[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
32 feature_mos/src/mosaic/trsMatrix.cpp \
33 feature_mos/src/mosaic/AlignFeatures.cpp \
34 feature_mos/src/mosaic/Blend.cpp \
35 feature_mos/src/mosaic/Delaunay.cpp \
36 feature_mos/src/mosaic/ImageUtils.cpp \
37 feature_mos/src/mosaic/Mosaic.cpp \
[all …]
/packages/apps/DocumentsUI/
Dwrap_alpha.py21 for src in files:
22 if not src.endswith(".png"): continue
23 src = src[0:-4] variable
25 src_clause = '\n android:src="@drawable/%s"' % (src)
27 alpha = src.endswith("_alpha")
29 src = src[0:-6] variable
30 if "ic_doc" in src or "ic_root" in src or "ic_grid_folder" in src:
37 am = src.endswith("_am")
39 src = src[0:-3] variable
44 with open("res/drawable/%s.xml" % (src), 'w') as xml:
/packages/apps/Gallery2/jni/filters/
DredEyeMath.c26 int isRed(unsigned char *src, int p) { in isRed() argument
27 int b = src[p + 2]; in isRed()
28 int g = src[p + 1]; in isRed()
29 int r = src[p]; in isRed()
35 void findPossible(unsigned char *src, unsigned char *mask, int iw, in findPossible() argument
45 int b = src[p + 2]; in findPossible()
46 int g = src[p + 1]; in findPossible()
47 int r = src[p]; in findPossible()
56 void findReds(unsigned char *src, unsigned char *mask, int iw, int ih __unused, in findReds() argument
66 mask[x + y * recW] = ((isRed(src, p)) ? 1 : 0); in findReds()
[all …]
Dgeometry.c131 void JNIFUNCF(ImageFilterGeometry, nativeApplyFilterFlip, jobject src, jint srcWidth, jint srcHeigh… in JNIFUNCF() argument
137 AndroidBitmap_lockPixels(env, src, (void**) &source); in JNIFUNCF()
141 AndroidBitmap_unlockPixels(env, src); in JNIFUNCF()
144 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
157 AndroidBitmap_lockPixels(env, src, (void**) &source); in JNIFUNCF()
161 AndroidBitmap_unlockPixels(env, src); in JNIFUNCF()
164 void JNIFUNCF(ImageFilterGeometry, nativeApplyFilterStraighten, jobject src, jint srcWidth __unused, 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/apps/Settings/
Dwrap_alpha.py20 for src in files:
21 if not src.endswith(".png"): continue
22 src = src[0:-4] variable
24 src_clause = '\n android:src="@drawable/%s"' % (src)
26 alpha = src.endswith("_alpha")
28 src = src[0:-6] variable
33 am = src.endswith("_am")
35 src = src[0:-3] variable
40 with open("res/drawable/%s.xml" % (src), 'w') as xml:
/packages/services/Car/tests/CarDeveloperOptions/
Dwrap_alpha.py20 for src in files:
21 if not src.endswith(".png"): continue
22 src = src[0:-4] variable
24 src_clause = '\n android:src="@drawable/%s"' % (src)
26 alpha = src.endswith("_alpha")
28 src = src[0:-6] variable
33 am = src.endswith("_am")
35 src = src[0:-3] variable
40 with open("res/drawable/%s.xml" % (src), 'w') as xml:
/packages/inputmethods/LatinIME/
DAndroid.bp18 "java/src/com/android/inputmethod/latin/makedict/**/*.java",
23 "java/src/com/android/inputmethod/latin/BinaryDictionary.java",
24 "java/src/com/android/inputmethod/latin/DicTraverseSession.java",
25 "java/src/com/android/inputmethod/latin/Dictionary.java",
26 "java/src/com/android/inputmethod/latin/NgramContext.java",
27 "java/src/com/android/inputmethod/latin/SuggestedWords.java",
28 "java/src/com/android/inputmethod/latin/settings/SettingsValuesForSuggestion.java",
29 "java/src/com/android/inputmethod/latin/utils/BinaryDictionaryUtils.java",
30 "java/src/com/android/inputmethod/latin/utils/CombinedFormatUtils.java",
31 "java/src/com/android/inputmethod/latin/utils/JniUtils.java",
[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/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/services/Car/evs/app/
DFormatConvert.cpp61 uint8_t* src, in copyNV21toRGB32() argument
72 uint8_t* srcY = src; in copyNV21toRGB32()
73 uint8_t* srcUV = src+offsetUV; in copyNV21toRGB32()
92 uint8_t* src, in copyYV12toRGB32() argument
106 uint8_t* srcY = src; in copyYV12toRGB32()
107 uint8_t* srcU = src+offsetU; in copyYV12toRGB32()
108 uint8_t* srcV = src+offsetV; in copyYV12toRGB32()
126 uint8_t* src, unsigned srcStridePixels, in copyYUYVtoRGB32() argument
129 uint32_t* srcWords = (uint32_t*)src; in copyYUYVtoRGB32()
158 void* src, unsigned srcStridePixels, in copyMatchedInterleavedFormats() argument
[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/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/inputmethods/LatinIME/native/dicttoolkit/
DAndroid.bp40 local_include_dirs: ["src"],
42 include_dirs: ["packages/inputmethods/LatinIME/native/jni/src"],
56 "src/command_executors/diff_executor.cpp",
57 "src/command_executors/header_executor.cpp",
58 "src/command_executors/help_executor.cpp",
59 "src/command_executors/info_executor.cpp",
60 "src/command_executors/makedict_executor.cpp",
61 "src/offdevice_intermediate_dict/offdevice_intermediate_dict.cpp",
62 "src/utils/arguments_parser.cpp",
63 "src/utils/command_utils.cpp",
[all …]
/packages/apps/Launcher3/
DAndroid.mk90 $(call all-java-files-under, src) \
122 $(call all-java-files-under, src) \
124 $(call all-java-files-under, go/src)
169 $(call all-java-files-under, src) \
170 $(call all-java-files-under, quickstep/src) \
171 $(call all-java-files-under, quickstep/recents_ui_overrides/src) \
238 $(call all-java-files-under, src) \
239 $(call all-java-files-under, quickstep/src) \
240 $(call all-java-files-under, quickstep/recents_ui_overrides/src) \
241 $(call all-java-files-under, go/src)
[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()
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/Nfc/nci/jni/
DAndroid.bp16 "system/nfc/src/nfa/include",
17 "system/nfc/src/nfc/include",
18 "system/nfc/src/include",
19 "system/nfc/src/gki/ulinux",
20 "system/nfc/src/gki/common",
26 "extns/pn54x/src/common",
27 "extns/pn54x/src/mifare",

12345678910>>...15