Searched refs:pf (Results 1 - 25 of 28) sorted by relevance

12

/frameworks/compile/libbcc/tests/debuginfo/host-tests/
H A Dglobal_struct.c18 float *pf = &f; variable
34 double result = pf[0] * d[1][1] * s.d * us * l;
H A Dglobals.c6 // DEBUGGER: print pf[0]
25 float *pf = &f; variable
41 double result = pf[0] * d[1][1] * s.d * us * l;
H A Dlocals.cpp7 // CHECK: pf = 0x
25 float *pf = &f; local
44 double result = pf[0] * d[1][1] * s.f * us * l;
H A Dparameters.cpp7 // DEBUGGER: print pf[0]
28 double test_parameters(float* pf, double ppd[][2], struct char_struct& s, int** ppn = 0, unsigned short us = 10u, const unsigned long l = 42) argument
30 double result = pf[0] * ppd[1][1] * s.c * us * l;
/frameworks/rs/driver/
H A DrsdProgram.cpp83 bool rsdProgramFragmentInit(const Context *rsc, const ProgramFragment *pf, argument
87 RsdShader *drv = new RsdShader(pf, GL_FRAGMENT_SHADER, shader, shaderLen,
89 pf->mHal.drv = drv;
94 void rsdProgramFragmentSetActive(const Context *rsc, const ProgramFragment *pf) { argument
97 SyncProgramConstants(rsc, pf);
98 dc->gl.shaderCache->setActiveFragment((RsdShader*)pf->mHal.drv);
101 void rsdProgramFragmentDestroy(const Context *rsc, const ProgramFragment *pf) { argument
105 if(pf->mHal.drv) {
106 drv = (RsdShader*)pf->mHal.drv;
108 ALOGV("Destroying fragment shader with ID %p", (void*)pf);
[all...]
H A DrsdShaderCache.h49 void setActiveFragment(RsdShader *pf) { argument
51 mFragment = pf;
H A DrsdRuntimeStubs.cpp205 static void SC_BindTexture(ProgramFragment *pf, uint32_t slot, Allocation *a) { argument
207 rsrBindTexture(rsc, pf, slot, a);
215 static void SC_BindFragmentConstant(ProgramFragment *pf, uint32_t slot, Allocation *a) { argument
217 rsrBindConstant(rsc, pf, slot, a);
220 static void SC_BindSampler(ProgramFragment *pf, uint32_t slot, Sampler *s) { argument
222 rsrBindSampler(rsc, pf, slot, s);
230 static void SC_BindProgramFragment(ProgramFragment *pf) { argument
232 rsrBindProgramFragment(rsc, pf);
290 static void SC_PfConstantColor(ProgramFragment *pf, float r, float g, float b, float a) { argument
292 rsrPfConstantColor(rsc, pf,
[all...]
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
H A DRenderState.java47 FragmentShader pf,
51 mFragment = pf;
68 public void setProgramFragment(FragmentShader pf) { argument
69 mFragment = pf;
89 item.pf = mFragment.getRSData().getAllocation();
46 RenderState(VertexShader pv, FragmentShader pf, ProgramStore ps, ProgramRaster pr) argument
H A DRenderable.java149 ProgramFragment pf = mRenderState.mFragment.mProgram;
150 mData.pf_num_textures = pf != null ? Math.min(pf.getTextureCount(), paramIndex) : 0;
192 FragmentShader pf = mRenderState.mFragment;
193 if (pf != null && pf.getObjectConstants() != null) {
194 fragmentConstants = Allocation.createTyped(rs, pf.getObjectConstants());
/frameworks/rs/
H A DrsScriptC_LibGL.cpp49 void rsrBindTexture(Context *rsc, ProgramFragment *pf, uint32_t slot, Allocation *a) { argument
51 CHECK_OBJ(pf);
52 pf->bindTexture(rsc, slot, a);
55 void rsrBindConstant(Context *rsc, ProgramFragment *pf, uint32_t slot, Allocation *a) { argument
57 CHECK_OBJ(pf);
58 pf->bindAllocation(rsc, a, slot);
67 void rsrBindSampler(Context *rsc, ProgramFragment *pf, uint32_t slot, Sampler *s) { argument
70 pf->bindSampler(rsc, slot, s);
78 void rsrBindProgramFragment(Context *rsc, ProgramFragment *pf) { argument
79 CHECK_OBJ_OR_NULL(pf);
136 rsrPfConstantColor(Context *rsc, ProgramFragment *pf, float r, float g, float b, float a) argument
204 ProgramFragment *pf = rsc->getProgramFragment(); local
[all...]
H A DrsProgramFragment.cpp120 ProgramFragment *pf = new ProgramFragment(rsc, shaderString, strlen(shaderString), local
122 pf->bindAllocation(rsc, constAlloc, 0);
123 pf->setConstantColor(rsc, 1.0f, 1.0f, 1.0f, 1.0f);
125 mDefault.set(pf);
142 ProgramFragment *pf = new ProgramFragment(rsc, shaderText, shaderLength, local
145 pf->incUserRef();
146 //ALOGE("rsi_ProgramFragmentCreate %p", pf);
147 return pf;
H A Drsg.spec30 param RsProgramFragment pf
36 param RsProgramFragment pf
H A Drs_hal.h269 bool (*init)(const Context *rsc, const ProgramFragment *pf,
273 void (*setActive)(const Context *rsc, const ProgramFragment *pf);
274 void (*destroy)(const Context *rsc, const ProgramFragment *pf);
H A DrsContext.cpp708 void Context::setProgramFragment(ProgramFragment *pf) { argument
710 if (pf == NULL) {
713 mFragment.set(pf);
843 ProgramFragment *pf = static_cast<ProgramFragment *>(vpf); local
844 rsc->setProgramFragment(pf);
/frameworks/base/rs/java/android/renderscript/
H A DProgramFragment.java88 ProgramFragment pf = new ProgramFragment(id, mRS);
89 initProgram(pf);
90 return pf;
H A DProgramFragmentFixedFunction.java75 ProgramFragmentFixedFunction pf = new ProgramFragmentFixedFunction(id, mRS);
76 initProgram(pf);
77 return pf;
315 ProgramFragmentFixedFunction pf = sb.create();
316 pf.mTextureCount = MAX_TEXTURE;
323 pf.bindConstants(constantData, 0);
325 return pf;
H A DRenderScript.java279 native void rsnContextBindProgramFragment(long con, long pf); argument
280 synchronized void nContextBindProgramFragment(long pf) { argument
282 rsnContextBindProgramFragment(mContext, pf);
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicBlur.cpp126 float4 pf = convert_float4(pvy[0]); local
127 blurredPixel += pf * gPtr[0];
143 float pf = (float)pi[validY * iStride]; local
144 blurredPixel += pf * gPtr[0];
185 float4 pf = convert_float4(((const uchar4 *)pi)[0]); local
186 blurredPixel += pf * gp[0];
209 float pf = (float)pi[0]; local
210 blurredPixel += pf * gp[0];
238 float pf = (float)pi[0]; local
239 blurredPixel += pf * g
257 float4 pf = ptrIn[validX]; local
272 float pf = ptrIn[validX]; local
[all...]
H A DrsCpuIntrinsics_x86.c345 __m128 pf, x, y; local
355 pf = _mm_mul_ps(x, _mm_load_ps(pi));
363 pf = _mm_add_ps(pf, _mm_mul_ps(x, _mm_load_ps(pi + (r << 2))));
364 pf = _mm_add_ps(pf, _mm_mul_ps(y, _mm_load_ps(pi + (r << 2) + 4)));
367 o = _mm_cvtps_epi32(pf);
378 __m128 pf, g0, g1, g2, g3, gx, p0, p1; local
387 pf = _mm_mul_ps(g0, _mm_loadu_ps(pi));
395 pf
[all...]
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DPhoneWindowManager.java3228 final Rect pf = mTmpParentFrame;
3233 pf.left = df.left = of.left = vf.left = mDockLeft;
3234 pf.top = df.top = of.top = vf.top = mDockTop;
3235 pf.right = df.right = of.right = vf.right = mDockRight;
3236 pf.bottom = df.bottom = of.bottom = vf.bottom = mDockBottom;
3356 pf.left = df.left = of.left = mUnrestrictedScreenLeft;
3357 pf.top = df.top = of.top = mUnrestrictedScreenTop;
3358 pf.right = df.right = of.right = mUnrestrictedScreenWidth + mUnrestrictedScreenLeft;
3359 pf.bottom = df.bottom = of.bottom = mUnrestrictedScreenHeight
3369 mStatusBar.computeFrameLw(pf, d
3432 setAttachedWindowFrames(WindowState win, int fl, int adjust, WindowState attached, boolean insetDecors, Rect pf, Rect df, Rect of, Rect cf, Rect vf) argument
[all...]
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/
H A DTestAppRS.java144 FragmentShader pf = fb.create();
145 pf.getProgram().bindSampler(Sampler.WRAP_LINEAR_MIP_LINEAR(mRS), 0);
147 pf.getProgram().bindSampler(Sampler.CLAMP_LINEAR_MIP_LINEAR(mRS), 1);
149 return pf;
/frameworks/rs/scriptc/
H A Drs_graphics.rsh80 * @param pf
83 rsgBindProgramFragment(rs_program_fragment pf);
165 * @param pf
172 rsgProgramFragmentConstantColor(rs_program_fragment pf, float r, float g, float b, float a);
/frameworks/base/rs/jni/
H A Dandroid_renderscript_RenderScript.cpp1532 nContextBindProgramFragment(JNIEnv *_env, jobject _this, jlong con, jlong pf) argument
1534 LOG_API("nContextBindProgramFragment, con(%p), pf(%p)", (RsContext)con, (RsProgramFragment)pf);
1535 rsContextBindProgramFragment((RsContext)con, (RsProgramFragment)pf);
1539 nContextBindProgramVertex(JNIEnv *_env, jobject _this, jlong con, jlong pf) argument
1541 LOG_API("nContextBindProgramVertex, con(%p), pf(%p)", (RsContext)con, (RsProgramVertex)pf);
1542 rsContextBindProgramVertex((RsContext)con, (RsProgramVertex)pf);
1546 nContextBindProgramRaster(JNIEnv *_env, jobject _this, jlong con, jlong pf) argument
1548 LOG_API("nContextBindProgramRaster, con(%p), pf(
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dmotion_est.cpp104 void CalcThreshold(double pf, double exp_lamda[], Int nrmlz_th[]);
651 void CalcThreshold(double pf, double exp_lamda[], Int nrmlz_th[]) argument
661 if (pf < 0.5)
662 temp[i] = 1 / exp_lamda[i] * M4VENC_LOG(2 * pf);
664 temp[i] = -1 / exp_lamda[i] * M4VENC_LOG(2 * (1 - pf));
/frameworks/base/services/core/java/com/android/server/wm/
H A DWindowState.java508 public void computeFrameLw(Rect pf, Rect df, Rect of, Rect cf, Rect vf, Rect dcf, Rect sf) { argument
515 mContainingFrame.top = pf.top;
518 mContainingFrame.set(pf);
559 if (!mParentFrame.equals(pf)) {
561 // + " to " + pf);
562 mParentFrame.set(pf);

Completed in 328 milliseconds

12