Home
last modified time | relevance | path

Searched refs:cp (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/base/tools/aapt/
DMain.cpp294 const char* cp = argv[0] +1; in main() local
296 while (*cp != '\0') { in main()
297 switch (*cp) { in main()
496 if (strcmp(cp, "-debug-mode") == 0) { in main()
498 } else if (strcmp(cp, "-min-sdk-version") == 0) { in main()
507 } else if (strcmp(cp, "-target-sdk-version") == 0) { in main()
516 } else if (strcmp(cp, "-max-sdk-version") == 0) { in main()
525 } else if (strcmp(cp, "-max-res-version") == 0) { in main()
534 } else if (strcmp(cp, "-version-code") == 0) { in main()
543 } else if (strcmp(cp, "-version-name") == 0) { in main()
[all …]
DAaptAssets.cpp40 const char* cp = fileName; in validateFileName() local
43 while (*cp != '\0') { in validateFileName()
44 if ((*cp & 0x80) != 0) in validateFileName()
46 if (*cp < 0x20 || *cp >= 0x7f) in validateFileName()
48 if (strchr(kInvalidChars, *cp) != NULL) in validateFileName()
50 cp++; in validateFileName()
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicBlur.cpp287 RsdCpuScriptIntrinsicBlur *cp = (RsdCpuScriptIntrinsicBlur *)p->usr; in kernelU4() local
288 if (!cp->mAlloc.get()) { in kernelU4()
292 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU4()
293 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU4()
302 stride, x1, p->y, x2 - x1, cp->mIradius, cp->mIp + cp->mIradius); in kernelU4()
308 if ((p->dimX > cp->mScratchSize[p->lid]) || !cp->mScratch[p->lid]) { in kernelU4()
310 cp->mScratch[p->lid] = realloc(cp->mScratch[p->lid], (p->dimX + 1) * 16); in kernelU4()
311 cp->mScratchSize[p->lid] = p->dimX; in kernelU4()
314 buf = (float4 *) ((((intptr_t)cp->mScratch[p->lid]) + 15) & ~0xf); in kernelU4()
318 if ((y > cp->mIradius) && (y < ((int)p->dimY - cp->mIradius))) { in kernelU4()
[all …]
DrsCpuIntrinsicHistogram.cpp167 RsdCpuScriptIntrinsicHistogram *cp = (RsdCpuScriptIntrinsicHistogram *)p->usr; in kernelP1U4() local
169 int * sums = &cp->mSums[256 * 4 * p->lid]; in kernelP1U4()
184 RsdCpuScriptIntrinsicHistogram *cp = (RsdCpuScriptIntrinsicHistogram *)p->usr; in kernelP1U3() local
186 int * sums = &cp->mSums[256 * 4 * p->lid]; in kernelP1U3()
200 RsdCpuScriptIntrinsicHistogram *cp = (RsdCpuScriptIntrinsicHistogram *)p->usr; in kernelP1U2() local
202 int * sums = &cp->mSums[256 * 2 * p->lid]; in kernelP1U2()
215 RsdCpuScriptIntrinsicHistogram *cp = (RsdCpuScriptIntrinsicHistogram *)p->usr; in kernelP1L4() local
217 int * sums = &cp->mSums[256 * p->lid]; in kernelP1L4()
220 int t = (cp->mDotI[0] * in[0]) + in kernelP1L4()
221 (cp->mDotI[1] * in[1]) + in kernelP1L4()
[all …]
DrsCpuIntrinsicConvolve3x3.cpp189 RsdCpuScriptIntrinsicConvolve3x3 *cp = (RsdCpuScriptIntrinsicConvolve3x3 *)p->usr; in kernelU4() local
191 if (!cp->mAlloc.get()) { in kernelU4()
195 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU4()
196 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU4()
208 ConvolveOneU4(p, 0, out, py0, py1, py2, cp->mFp); in kernelU4()
218 rsdIntrinsicConvolve3x3_K(out, &py0[x1-1], &py1[x1-1], &py2[x1-1], cp->mIp, len); in kernelU4()
226 ConvolveOneU4(p, x1, out, py0, py1, py2, cp->mFp); in kernelU4()
236 RsdCpuScriptIntrinsicConvolve3x3 *cp = (RsdCpuScriptIntrinsicConvolve3x3 *)p->usr; in kernelU2() local
238 if (!cp->mAlloc.get()) { in kernelU2()
242 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU2()
[all …]
DrsCpuIntrinsicResize.cpp181 RsdCpuScriptIntrinsicResize *cp = (RsdCpuScriptIntrinsicResize *)p->usr; in kernelU4() local
183 if (!cp->mAlloc.get()) { in kernelU4()
187 const uchar *pin = (const uchar *)cp->mAlloc->mHal.drvState.lod[0].mallocPtr; in kernelU4()
188 const int srcHeight = cp->mAlloc->mHal.drvState.lod[0].dimY; in kernelU4()
189 const int srcWidth = cp->mAlloc->mHal.drvState.lod[0].dimX; in kernelU4()
190 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU4()
192 float yf = p->y * cp->scaleY; in kernelU4()
211 float xf = x1 * cp->scaleX; in kernelU4()
221 RsdCpuScriptIntrinsicResize *cp = (RsdCpuScriptIntrinsicResize *)p->usr; in kernelU2() local
223 if (!cp->mAlloc.get()) { in kernelU2()
[all …]
DrsCpuIntrinsicConvolve5x5.cpp352 RsdCpuScriptIntrinsicConvolve5x5 *cp = (RsdCpuScriptIntrinsicConvolve5x5 *)p->usr; in kernelU4() local
353 if (!cp->alloc.get()) { in kernelU4()
357 const uchar *pin = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernelU4()
358 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; in kernelU4()
377 OneU4(p, x1, out, py0, py1, py2, py3, py4, cp->mFp); in kernelU4()
387 …olve5x5_K(out, py0 + x1 - 2, py1 + x1 - 2, py2 + x1 - 2, py3 + x1 - 2, py4 + x1 - 2, cp->mIp, len); in kernelU4()
396 …olve5x5_K(out, py0 + x1 - 2, py1 + x1 - 2, py2 + x1 - 2, py3 + x1 - 2, py4 + x1 - 2, cp->mIp, len); in kernelU4()
403 OneU4(p, x1, out, py0, py1, py2, py3, py4, cp->mFp); in kernelU4()
412 RsdCpuScriptIntrinsicConvolve5x5 *cp = (RsdCpuScriptIntrinsicConvolve5x5 *)p->usr; in kernelU2() local
413 if (!cp->alloc.get()) { in kernelU2()
[all …]
DrsCpuIntrinsicYuvToRGB.cpp107 RsdCpuScriptIntrinsicYuvToRGB *cp = (RsdCpuScriptIntrinsicYuvToRGB *)p->usr; in kernel() local
108 if (!cp->alloc.get()) { in kernel()
112 const uchar *pinY = (const uchar *)cp->alloc->mHal.drvState.lod[0].mallocPtr; in kernel()
118 size_t strideY = cp->alloc->mHal.drvState.lod[0].stride; in kernel()
121 if (cp->alloc->mHal.drvState.lod[0].dimY == 0) { in kernel()
130 size_t cstep = cp->alloc->mHal.drvState.yuv.step; in kernel()
132 const uchar *pinU = (const uchar *)cp->alloc->mHal.drvState.lod[1].mallocPtr; in kernel()
133 const size_t strideU = cp->alloc->mHal.drvState.lod[1].stride; in kernel()
136 const uchar *pinV = (const uchar *)cp->alloc->mHal.drvState.lod[2].mallocPtr; in kernel()
137 const size_t strideV = cp->alloc->mHal.drvState.lod[2].stride; in kernel()
[all …]
DrsCpuIntrinsic3DLUT.cpp64 RsdCpuScriptIntrinsic3DLUT *cp = (RsdCpuScriptIntrinsic3DLUT *)p->usr; in kernel() local
71 const uchar *bp = (const uchar *)cp->mLUT->mHal.drvState.lod[0].mallocPtr; in kernel()
74 static_cast<int>(cp->mLUT->mHal.drvState.lod[0].dimX - 1), in kernel()
75 static_cast<int>(cp->mLUT->mHal.drvState.lod[0].dimY - 1), in kernel()
76 static_cast<int>(cp->mLUT->mHal.drvState.lod[0].dimZ - 1), in kernel()
81 const size_t stride_y = cp->mLUT->mHal.drvState.lod[0].stride; in kernel()
82 const size_t stride_z = stride_y * cp->mLUT->mHal.drvState.lod[0].dimY; in kernel()
DrsCpuIntrinsicColorMatrix.cpp886 RsdCpuScriptIntrinsicColorMatrix *cp = (RsdCpuScriptIntrinsicColorMatrix *)p->usr; in kernel() local
892 uint32_t vsin = cp->mLastKey.u.inVecSize; in kernel()
893 uint32_t vsout = cp->mLastKey.u.outVecSize; in kernel()
894 bool floatIn = !!cp->mLastKey.u.inType; in kernel()
895 bool floatOut = !!cp->mLastKey.u.outType; in kernel()
902 if((cp->mOptKernel != NULL) && (len >= 4)) { in kernel()
905 cp->mOptKernel(out, in, cp->ip, len >> 2); in kernel()
915 … if (cp->mLastKey.u.inType == RS_TYPE_FLOAT_32 || cp->mLastKey.u.outType == RS_TYPE_FLOAT_32) { in kernel()
916 … rsdIntrinsicColorMatrix_float_K(out, in, len, &cp->mFnTab, cp->tmpFp, cp->tmpFpa); in kernel()
918 rsdIntrinsicColorMatrix_int_K(out, in, len, &cp->mFnTab, cp->ip, cp->ipa); in kernel()
[all …]
DrsCpuIntrinsicLUT.cpp59 RsdCpuScriptIntrinsicLUT *cp = (RsdCpuScriptIntrinsicLUT *)p->usr; in kernel() local
66 const uchar *tr = (const uchar *)cp->lut->mHal.drvState.lod[0].mallocPtr; in kernel()
/frameworks/rs/
Dupdate_rs_prebuilts.sh131 cp `find $sys_lib_dir $obj_lib_dir -name $file | head -1` $a || exit 4
136cp `find $HOST_LIB_DIR $HOST_LIB64_DIR $sys_lib_dir $obj_lib_dir -name $file | head -1` $a || exit…
141cp $MY_ANDROID_DIR/out/target/common/obj/JAVA_LIBRARIES/android-support-v8-renderscript_intermedia…
146 cp $MY_ANDROID_DIR/external/clang/lib/Headers/*.h renderscript/clang-include
147 cp $MY_ANDROID_DIR/frameworks/rs/scriptc/* renderscript/include
165 cp $ANDROID_HOST_OUT/bin/$a tools/$SHORT_OSNAME/
170 cp $ANDROID_HOST_OUT/lib/$a tools/$SHORT_OSNAME/
DrsCppUtils.h83 const char* cp; in getPathDir() local
86 cp = strrchr(str, OS_PATH_SEPARATOR); in getPathDir()
87 if (cp == NULL) in getPathDir()
90 return String8(str, cp - str); in getPathDir()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataConnection.java501 private void onConnect(ConnectionParams cp) { in onConnect() argument
523 Message msg = obtainMessage(EVENT_SETUP_DATA_CONNECTION_DONE, cp); in onConnect()
539 Message msg = obtainMessage(EVENT_SETUP_DATA_CONNECTION_DONE, cp); in onConnect()
540 msg.obj = cp; in onConnect()
556 Integer.toString(cp.mRilRat + 2), in onConnect()
557 Integer.toString(cp.mProfileId), in onConnect()
623 private void notifyConnectCompleted(ConnectionParams cp, DcFailCause cause, boolean sendAll) { in notifyConnectCompleted() argument
626 if (cp != null && cp.mOnCompletedMsg != null) { in notifyConnectCompleted()
628 Message connectionCompletedMsg = cp.mOnCompletedMsg; in notifyConnectCompleted()
629 cp.mOnCompletedMsg = null; in notifyConnectCompleted()
[all …]
/frameworks/native/opengl/tools/glgen/
Dgen46 cp static/egl/*.java out/android/opengl/
49 cp stubs/jsr239/GLHeader.java-if $GLFILE
120 cp out/com_google_android_gles_jni_GLImpl.cpp generated/C
121 cp -r out/com generated
122 cp -r out/javax generated
124 cp out/android_opengl_*.cpp generated/C
126 cp -r out/android/opengl generated/android
/frameworks/base/native/
Dcopy-to-ndk.sh37 cp $src $NDK_PLATFORMS/$CURR_PLATFORM/include/android/$i
46 cp $SRC_LIB_ANDROID $DST_LIB_ANDROID
/frameworks/wilhelm/tools/hashgen/
DMakefile4 cp IID_to_MPH.c ../../src/autogen
50 cp frag2.c $@
/frameworks/base/tests/CoreTests/
Drun_junit.sh9 adb shell exec dalvikvm -cp system/app/MoreTests.apk junit.textui.TestRunner $*
Drun_core_test.sh4 -Xbootclasspath:$bpath -cp /data/app/android.core.apk \
/frameworks/av/media/libeffects/loudness/common/core/
Dbyte_swapper.h32 char *cp = reinterpret_cast<char *>(&word); in IsLittleEndian() local
33 return cp[0] != 0; in IsLittleEndian()
/frameworks/native/opengl/libagl/
Dprimitives.cpp78 const GLvoid* cp = c->arrays.color.element( in lightTriangleDarkSmooth() local
80 c->arrays.color.fetch(c, v0->color.v, cp); in lightTriangleDarkSmooth()
84 const GLvoid* cp = c->arrays.color.element( in lightTriangleDarkSmooth() local
86 c->arrays.color.fetch(c, v1->color.v, cp); in lightTriangleDarkSmooth()
90 const GLvoid* cp = c->arrays.color.element( in lightTriangleDarkSmooth() local
92 c->arrays.color.fetch(c, v2->color.v, cp); in lightTriangleDarkSmooth()
101 const GLvoid* cp = c->arrays.color.element( in lightTriangleDarkFlat() local
103 c->arrays.color.fetch(c, v2->color.v, cp); in lightTriangleDarkFlat()
137 const GLvoid* cp = c->arrays.color.element( in lightVertexDarkSmoothFog() local
139 c->arrays.color.fetch(c, v->color.v, cp); in lightVertexDarkSmoothFog()
[all …]
/frameworks/av/media/libstagefright/matroska/
DMatroskaExtractor.cpp173 const mkvparser::CuePoint* cp = mCuePoints.itemAt(0); in find() local
175 if (timeNs <= cp->GetTime(mExtractor->mSegment)) { in find()
176 return cp->Find(track); in find()
198 cp = mCuePoints.itemAt(lo - 1); in find()
199 if (cp->GetTime(mExtractor->mSegment) > timeNs) { in find()
203 return cp->Find(track); in find()
/frameworks/testing/uiautomator/samples/SkeletonTest/
DREADME17 * cp -r frameworks/testing/uiautomator/samples/SkeletonTest /new/location
/frameworks/base/core/jni/
DAndroidRuntime.cpp900 for (char* cp = result; *cp != '\0'; cp++) { in toSlashClassName() local
901 if (*cp == '.') { in toSlashClassName()
902 *cp = '/'; in toSlashClassName()
/frameworks/av/camera/
DICamera.cpp306 sp<IGraphicBufferProducer> cp = in onTransact() local
308 reply->writeInt32(setPreviewCallbackTarget(cp)); in onTransact()

12