/frameworks/rs/driver/ |
D | rsdIntrinsicBlur.cpp | 37 static void ComputeGaussianWeights(ConvolveParams *cp) { in ComputeGaussianWeights() argument 51 float sigma = 0.4f * cp->radius + 0.6f; in ComputeGaussianWeights() 61 cp->iradius = (float)ceil(cp->radius) + 0.5f; in ComputeGaussianWeights() 62 for (r = -cp->iradius; r <= cp->iradius; r ++) { in ComputeGaussianWeights() 64 cp->fp[r + cp->iradius] = coeff1 * powf(e, floatR * floatR * coeff2); in ComputeGaussianWeights() 65 normalizeFactor += cp->fp[r + cp->iradius]; in ComputeGaussianWeights() 70 for (r = -cp->iradius; r <= cp->iradius; r ++) { in ComputeGaussianWeights() 71 cp->fp[r + cp->iradius] *= normalizeFactor; in ComputeGaussianWeights() 72 cp->ip[r + cp->iradius] = (short)(cp->ip[r + cp->iradius] * 32768); in ComputeGaussianWeights() 78 ConvolveParams *cp = (ConvolveParams *)intrinsicData; in Blur_Bind() local [all …]
|
D | rsdIntrinsicColorMatrix.cpp | 36 ConvolveParams *cp = (ConvolveParams *)intrinsicData; in ColorMatrix_SetVar() local 39 memcpy (cp->fp, data, dataLength); in ColorMatrix_SetVar() 41 cp->ip[ct] = (short)(cp->fp[ct] * 255.f + 0.5f); in ColorMatrix_SetVar() 44 if ((cp->ip[3] == 0) && (cp->ip[7] == 0) && (cp->ip[11] == 0) && in ColorMatrix_SetVar() 45 (cp->ip[12] == 0) && (cp->ip[13] == 0) && (cp->ip[14] == 0) && in ColorMatrix_SetVar() 46 (cp->ip[15] == 255)) { in ColorMatrix_SetVar() 47 cp->use3x3 = true; in ColorMatrix_SetVar() 49 if ((cp->ip[0] == cp->ip[1]) && (cp->ip[0] == cp->ip[2]) && in ColorMatrix_SetVar() 50 (cp->ip[4] == cp->ip[5]) && (cp->ip[4] == cp->ip[6]) && in ColorMatrix_SetVar() 51 (cp->ip[8] == cp->ip[9]) && (cp->ip[8] == cp->ip[10])) { in ColorMatrix_SetVar() [all …]
|
D | rsdIntrinsicConvolve3x3.cpp | 35 ConvolveParams *cp = (ConvolveParams *)intrinsicData; in Convolve3x3_Bind() local 37 cp->alloc.set(data); in Convolve3x3_Bind() 42 ConvolveParams *cp = (ConvolveParams *)intrinsicData; in Convolve3x3_SetVar() local 45 memcpy (cp->fp, data, dataLength); in Convolve3x3_SetVar() 47 cp->ip[ct] = (short)(cp->fp[ct] * 255.f + 0.5f); in Convolve3x3_SetVar() 79 ConvolveParams *cp = (ConvolveParams *)p->usr; in Convolve3x3_uchar4() local 81 if (!cp->alloc.get()) { in Convolve3x3_uchar4() 85 DrvAllocation *din = (DrvAllocation *)cp->alloc->mHal.drv; in Convolve3x3_uchar4() 98 ConvolveOne(p, 0, out, py0, py1, py2, cp->fp); in Convolve3x3_uchar4() 107 rsdIntrinsicConvolve3x3_K(out, &py0[x1-1], &py1[x1-1], &py2[x1-1], cp->ip, len); in Convolve3x3_uchar4() [all …]
|
D | rsdIntrinsicConvolve5x5.cpp | 35 ConvolveParams *cp = (ConvolveParams *)intrinsicData; in Convolve5x5_Bind() local 37 cp->alloc.set(data); in Convolve5x5_Bind() 42 ConvolveParams *cp = (ConvolveParams *)intrinsicData; in Convolve5x5_SetVar() local 45 memcpy (cp->fp, data, dataLength); in Convolve5x5_SetVar() 47 cp->ip[ct] = (short)(cp->fp[ct] * 255.f + 0.5f); in Convolve5x5_SetVar() 104 ConvolveParams *cp = (ConvolveParams *)p->usr; in Convolve5x5_uchar4() local 105 if (!cp->alloc.get()) { in Convolve5x5_uchar4() 109 DrvAllocation *din = (DrvAllocation *)cp->alloc->mHal.drv; in Convolve5x5_uchar4() 129 One(p, x1, out, py0, py1, py2, py3, py4, cp->fp); in Convolve5x5_uchar4() 137 … rsdIntrinsicConvolve5x5_K(out, py0+x1-2, py1+x1-2, py2+x1-2, py3+x1-2, py4+x1-2, cp->ip, len); in Convolve5x5_uchar4() [all …]
|
D | rsdIntrinsicLUT.cpp | 33 ConvolveParams *cp = (ConvolveParams *)intrinsicData; in LUT_Bind() local 35 cp->lut.set(data); in LUT_Bind() 41 ConvolveParams *cp = (ConvolveParams *)p->usr; in LUT_uchar4() local 47 DrvAllocation *din = (DrvAllocation *)cp->lut->mHal.drv; in LUT_uchar4() 70 ConvolveParams *cp = (ConvolveParams *)calloc(1, sizeof(ConvolveParams)); in rsdIntrinsic_InitLUT() local 71 return cp; in rsdIntrinsic_InitLUT()
|
D | rsdIntrinsicYuvToRGB.cpp | 33 YuvParams *cp = (YuvParams *)intrinsicData; in YuvToRGB_Bind() local 35 cp->alloc.set(data); in YuvToRGB_Bind() 88 YuvParams *cp = (YuvParams *)p->usr; in YuvToRGB_uchar4() local 89 if (!cp->alloc.get()) { in YuvToRGB_uchar4() 93 DrvAllocation *din = (DrvAllocation *)cp->alloc->mHal.drv; in YuvToRGB_uchar4() 135 YuvParams *cp = (YuvParams *)calloc(1, sizeof(YuvParams)); in rsdIntrinsic_InitYuvToRGB() local 136 return cp; in rsdIntrinsic_InitYuvToRGB()
|
/frameworks/support/renderscript/v8/rs_support/driver/ |
D | rsdIntrinsicColorMatrix.cpp | 36 ConvolveParams *cp = (ConvolveParams *)intrinsicData; in ColorMatrix_SetVar() local 39 memcpy (cp->fp, data, dataLength); in ColorMatrix_SetVar() 41 cp->ip[ct] = (short)(cp->fp[ct] * 255.f + 0.5f); in ColorMatrix_SetVar() 44 if ((cp->ip[3] == 0) && (cp->ip[7] == 0) && (cp->ip[11] == 0) && in ColorMatrix_SetVar() 45 (cp->ip[12] == 0) && (cp->ip[13] == 0) && (cp->ip[14] == 0) && in ColorMatrix_SetVar() 46 (cp->ip[15] == 255)) { in ColorMatrix_SetVar() 47 cp->use3x3 = true; in ColorMatrix_SetVar() 49 if ((cp->ip[0] == cp->ip[1]) && (cp->ip[0] == cp->ip[2]) && in ColorMatrix_SetVar() 50 (cp->ip[4] == cp->ip[5]) && (cp->ip[4] == cp->ip[6]) && in ColorMatrix_SetVar() 51 (cp->ip[8] == cp->ip[9]) && (cp->ip[8] == cp->ip[10])) { in ColorMatrix_SetVar() [all …]
|
D | rsdIntrinsicBlur.cpp | 35 static void ComputeGaussianWeights(ConvolveParams *cp) { in ComputeGaussianWeights() argument 49 float sigma = 0.4f * cp->radius + 0.6f; in ComputeGaussianWeights() 59 cp->iradius = (float)ceil(cp->radius) + 0.5f; in ComputeGaussianWeights() 60 for (r = -cp->iradius; r <= cp->iradius; r ++) { in ComputeGaussianWeights() 62 cp->fp[r + cp->iradius] = coeff1 * powf(e, floatR * floatR * coeff2); in ComputeGaussianWeights() 63 normalizeFactor += cp->fp[r + cp->iradius]; in ComputeGaussianWeights() 68 for (r = -cp->iradius; r <= cp->iradius; r ++) { in ComputeGaussianWeights() 69 cp->fp[r + cp->iradius] *= normalizeFactor; in ComputeGaussianWeights() 70 cp->ip[r + cp->iradius] = (short)(cp->ip[r + cp->iradius] * 32768); in ComputeGaussianWeights() 76 ConvolveParams *cp = (ConvolveParams *)intrinsicData; in Blur_Bind() local [all …]
|
D | rsdIntrinsicConvolve3x3.cpp | 35 ConvolveParams *cp = (ConvolveParams *)intrinsicData; in Convolve3x3_Bind() local 37 cp->alloc.set(data); in Convolve3x3_Bind() 42 ConvolveParams *cp = (ConvolveParams *)intrinsicData; in Convolve3x3_SetVar() local 45 memcpy (cp->fp, data, dataLength); in Convolve3x3_SetVar() 47 cp->ip[ct] = (short)(cp->fp[ct] * 255.f + 0.5f); in Convolve3x3_SetVar() 79 ConvolveParams *cp = (ConvolveParams *)p->usr; in Convolve3x3_uchar4() local 80 DrvAllocation *din = (DrvAllocation *)cp->alloc->mHal.drv; in Convolve3x3_uchar4() 93 ConvolveOne(p, 0, out, py0, py1, py2, cp->fp); in Convolve3x3_uchar4() 102 rsdIntrinsicConvolve3x3_K(out, &py0[x1-1], &py1[x1-1], &py2[x1-1], cp->ip, len); in Convolve3x3_uchar4() 109 ConvolveOne(p, x1, out, py0, py1, py2, cp->fp); in Convolve3x3_uchar4() [all …]
|
D | rsdIntrinsicConvolve5x5.cpp | 35 ConvolveParams *cp = (ConvolveParams *)intrinsicData; in Convolve5x5_Bind() local 37 cp->alloc.set(data); in Convolve5x5_Bind() 42 ConvolveParams *cp = (ConvolveParams *)intrinsicData; in Convolve5x5_SetVar() local 45 memcpy (cp->fp, data, dataLength); in Convolve5x5_SetVar() 47 cp->ip[ct] = (short)(cp->fp[ct] * 255.f + 0.5f); in Convolve5x5_SetVar() 104 ConvolveParams *cp = (ConvolveParams *)p->usr; in Convolve5x5_uchar4() local 105 DrvAllocation *din = (DrvAllocation *)cp->alloc->mHal.drv; in Convolve5x5_uchar4() 125 One(p, x1, out, py0, py1, py2, py3, py4, cp->fp); in Convolve5x5_uchar4() 133 rsdIntrinsicConvolve5x5_K(out, py0, py1, py2, py3, py4, cp->ip, len); in Convolve5x5_uchar4() 140 One(p, x1, out, py0, py1, py2, py3, py4, cp->fp); in Convolve5x5_uchar4() [all …]
|
D | rsdIntrinsicLUT.cpp | 33 ConvolveParams *cp = (ConvolveParams *)intrinsicData; in LUT_Bind() local 35 cp->lut.set(data); in LUT_Bind() 41 ConvolveParams *cp = (ConvolveParams *)p->usr; in LUT_uchar4() local 50 DrvAllocation *din = (DrvAllocation *)cp->lut->mHal.drv; in LUT_uchar4() 73 ConvolveParams *cp = (ConvolveParams *)calloc(1, sizeof(ConvolveParams)); in rsdIntrinsic_InitLUT() local 74 return cp; in rsdIntrinsic_InitLUT()
|
D | rsdIntrinsicYuvToRGB.cpp | 33 YuvParams *cp = (YuvParams *)intrinsicData; in YuvToRGB_Bind() local 35 cp->alloc.set(data); in YuvToRGB_Bind() 88 YuvParams *cp = (YuvParams *)p->usr; in YuvToRGB_uchar4() local 89 DrvAllocation *din = (DrvAllocation *)cp->alloc->mHal.drv; in YuvToRGB_uchar4() 131 YuvParams *cp = (YuvParams *)calloc(1, sizeof(YuvParams)); in rsdIntrinsic_InitYuvToRGB() local 132 return cp; in rsdIntrinsic_InitYuvToRGB()
|
/frameworks/compile/libbcc/runtime/BlocksRuntime/ |
D | runtime.c | 624 char *cp = buffer; in _Block_dump() local 626 sprintf(cp, "NULL passed to _Block_dump\n"); in _Block_dump() 633 cp += sprintf(cp, "^%p (new layout) =\n", (void *)closure); in _Block_dump() 635 cp += sprintf(cp, "isa: NULL\n"); in _Block_dump() 638 cp += sprintf(cp, "isa: stack Block\n"); in _Block_dump() 641 cp += sprintf(cp, "isa: malloc heap Block\n"); in _Block_dump() 644 cp += sprintf(cp, "isa: GC heap Block\n"); in _Block_dump() 647 cp += sprintf(cp, "isa: global Block\n"); in _Block_dump() 650 cp += sprintf(cp, "isa: finalizing Block\n"); in _Block_dump() 653 cp += sprintf(cp, "isa?: %p\n", (void *)closure->isa); in _Block_dump() [all …]
|
/frameworks/base/tools/aapt/ |
D | Main.cpp | 272 const char* cp = argv[0] +1; in main() local 274 while (*cp != '\0') { in main() 275 switch (*cp) { in main() 474 if (strcmp(cp, "-debug-mode") == 0) { in main() 476 } else if (strcmp(cp, "-min-sdk-version") == 0) { in main() 485 } else if (strcmp(cp, "-target-sdk-version") == 0) { in main() 494 } else if (strcmp(cp, "-max-sdk-version") == 0) { in main() 503 } else if (strcmp(cp, "-max-res-version") == 0) { in main() 512 } else if (strcmp(cp, "-version-code") == 0) { in main() 521 } else if (strcmp(cp, "-version-name") == 0) { in main() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
D | CdmaDataConnection.java | 70 protected void onConnect(ConnectionParams cp) { in onConnect() argument 73 mApn = cp.apn; in onConnect() 78 if ((cp.apn != null) && (cp.apn.types.length > 0) && (cp.apn.types[0] != null) && in onConnect() 79 (cp.apn.types[0].equals(PhoneConstants.APN_TYPE_DUN))) { in onConnect() 87 Message msg = obtainMessage(EVENT_SETUP_DATA_CONNECTION_DONE, cp); in onConnect() 88 msg.obj = cp; in onConnect()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | DataConnection.java | 257 protected abstract void onConnect(ConnectionParams cp); in onConnect() argument 342 private void notifyConnectCompleted(ConnectionParams cp, FailCause cause) { in notifyConnectCompleted() argument 343 Message connectionCompletedMsg = cp.onCompletedMsg; in notifyConnectCompleted() 543 ConnectionParams cp = (ConnectionParams) ar.userObj; in onSetupConnectionCompleted() local 563 } else if (cp.tag != mTag) { in onSetupConnectionCompleted() 565 log("BUG: onSetupConnectionCompleted is stale cp.tag=" + cp.tag + ", mtag=" + mTag); in onSetupConnectionCompleted() 772 ConnectionParams cp = (ConnectionParams) msg.obj; in processMessage() local 773 notifyConnectCompleted(cp, FailCause.UNKNOWN); in processMessage() 825 public void setEnterNotificationParams(ConnectionParams cp, FailCause cause, in setEnterNotificationParams() argument 828 mConnectionParams = cp; in setEnterNotificationParams() [all …]
|
/frameworks/native/libs/utils/ |
D | String8.cpp | 484 const char* cp; in getPathLeaf() local 487 cp = strrchr(buf, OS_PATH_SEPARATOR); in getPathLeaf() 488 if (cp == NULL) in getPathLeaf() 491 return String8(cp+1); in getPathLeaf() 496 const char* cp; in getPathDir() local 499 cp = strrchr(str, OS_PATH_SEPARATOR); in getPathDir() 500 if (cp == NULL) in getPathDir() 503 return String8(str, cp - str); in getPathDir() 508 const char* cp; in walkPath() local 512 cp = strchr(buf, OS_PATH_SEPARATOR); in walkPath() [all …]
|
/frameworks/native/opengl/tools/glgen/ |
D | gen | 52 cp stubs/jsr239/GLHeader.java-if $GLFILE 103 cp out/com_google_android_gles_jni_GLImpl.cpp generated/C 104 cp -r out/com generated 105 cp -r out/javax generated 107 cp out/android_opengl_*.cpp generated/C 109 cp -r out/android/opengl generated/android 126 echo " " cp $2/$3 $1
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
D | GsmDataConnection.java | 75 void onConnect(ConnectionParams cp) { in onConnect() argument 76 mApn = cp.apn; in onConnect() 87 Message msg = obtainMessage(EVENT_SETUP_DATA_CONNECTION_DONE, cp); in onConnect() 88 msg.obj = cp; in onConnect()
|
/frameworks/base/native/ |
D | copy-to-ndk.sh | 37 cp $src $NDK_PLATFORMS/$CURR_PLATFORM/include/android/$i 46 cp $SRC_LIB_ANDROID $DST_LIB_ANDROID
|
/frameworks/compile/libbcc/runtime/make/ |
D | AppleBI.mk | 27 cp -r . $(SRCROOT) 33 cp $(SYMROOT)/usr/local/lib/system/libcompiler_rt.a \
|
D | config.mk | 18 CP := cp
|
/frameworks/wilhelm/tools/hashgen/ |
D | Makefile | 4 cp IID_to_MPH.c ../../src/autogen 50 cp frag2.c $@
|
/frameworks/base/tests/CoreTests/ |
D | run_junit.sh | 9 adb shell exec dalvikvm -cp system/app/MoreTests.apk junit.textui.TestRunner $*
|
/frameworks/native/opengl/libagl/ |
D | primitives.cpp | 78 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 …]
|