/frameworks/base/libs/rs/driver/ |
D | rsdRuntimeStubs.cpp | 37 ScriptC * sc = (ScriptC *) tls->mScript 48 rsrAllocationSyncAll(rsc, sc, a, source); in SC_AllocationSyncAll2() 53 rsrAllocationSyncAll(rsc, sc, a, RS_ALLOCATION_USAGE_SCRIPT); in SC_AllocationSyncAll() 89 rsrBindTexture(rsc, sc, pf, slot, a); in SC_BindTexture() 94 rsrBindSampler(rsc, sc, pf, slot, s); in SC_BindSampler() 99 rsrBindProgramStore(rsc, sc, ps); in SC_BindProgramStore() 104 rsrBindProgramFragment(rsc, sc, pf); in SC_BindProgramFragment() 109 rsrBindProgramVertex(rsc, sc, pv); in SC_BindProgramVertex() 114 rsrBindProgramRaster(rsc, sc, pr); in SC_BindProgramRaster() 119 rsrBindFrameBufferObjectColorTarget(rsc, sc, a, slot); in SC_BindFrameBufferObjectColorTarget() [all …]
|
D | rsdBcc.cpp | 56 static Script * setTLS(Script *sc) { in setTLS() argument 60 tls->mScript = sc; in setTLS() 295 const RsScriptCall *sc) { in rsdScriptInvokeForEach() argument 324 if (!sc || (sc->xEnd == 0)) { in rsdScriptInvokeForEach() 327 rsAssert(sc->xStart < mtls.dimX); in rsdScriptInvokeForEach() 328 rsAssert(sc->xEnd <= mtls.dimX); in rsdScriptInvokeForEach() 329 rsAssert(sc->xStart < sc->xEnd); in rsdScriptInvokeForEach() 330 mtls.xStart = rsMin(mtls.dimX, sc->xStart); in rsdScriptInvokeForEach() 331 mtls.xEnd = rsMin(mtls.dimX, sc->xEnd); in rsdScriptInvokeForEach() 335 if (!sc || (sc->yEnd == 0)) { in rsdScriptInvokeForEach() [all …]
|
D | rsdShader.h | 61 void setup(const android::renderscript::Context *, RsdShaderCache *sc); 70 …void setupUserConstants(const android::renderscript::Context *rsc, RsdShaderCache *sc, bool isFrag… 72 void setupTextures(const android::renderscript::Context *rsc, RsdShaderCache *sc);
|
D | rsdShader.cpp | 397 void RsdShader::setupTextures(const Context *rsc, RsdShaderCache *sc) { in setupTextures() argument 415 RSD_CALL_GL(glUniform1i, sc->fragUniformSlot(mTextureUniformIndexStart + ct), ct); in setupTextures() 448 void RsdShader::setupUserConstants(const Context *rsc, RsdShaderCache *sc, bool isFragment) { in setupUserConstants() argument 475 slot = sc->vtxUniformSlot(uidx); in setupUserConstants() 476 arraySize = sc->vtxUniformSize(uidx); in setupUserConstants() 478 slot = sc->fragUniformSlot(uidx); in setupUserConstants() 479 arraySize = sc->fragUniformSize(uidx); in setupUserConstants() 498 void RsdShader::setup(const android::renderscript::Context *rsc, RsdShaderCache *sc) { in setup() argument 500 setupUserConstants(rsc, sc, mType == GL_FRAGMENT_SHADER); in setup() 501 setupTextures(rsc, sc); in setup()
|
/frameworks/base/libs/rs/ |
D | rsScriptC_LibGL.cpp | 47 void rsrBindTexture(Context *rsc, Script *sc, ProgramFragment *pf, uint32_t slot, Allocation *a) { in rsrBindTexture() argument 53 void rsrBindSampler(Context *rsc, Script *sc, ProgramFragment *pf, uint32_t slot, Sampler *s) { in rsrBindSampler() argument 59 void rsrBindProgramStore(Context *rsc, Script *sc, ProgramStore *ps) { in rsrBindProgramStore() argument 64 void rsrBindProgramFragment(Context *rsc, Script *sc, ProgramFragment *pf) { in rsrBindProgramFragment() argument 69 void rsrBindProgramVertex(Context *rsc, Script *sc, ProgramVertex *pv) { in rsrBindProgramVertex() argument 74 void rsrBindProgramRaster(Context *rsc, Script *sc, ProgramRaster *pr) { in rsrBindProgramRaster() argument 79 void rsrBindFrameBufferObjectColorTarget(Context *rsc, Script *sc, Allocation *a, uint32_t slot) { in rsrBindFrameBufferObjectColorTarget() argument 84 void rsrBindFrameBufferObjectDepthTarget(Context *rsc, Script *sc, Allocation *a) { in rsrBindFrameBufferObjectDepthTarget() argument 89 void rsrClearFrameBufferObjectColorTarget(Context *rsc, Script *sc, uint32_t slot) { in rsrClearFrameBufferObjectColorTarget() argument 93 void rsrClearFrameBufferObjectDepthTarget(Context *rsc, Script *sc) { in rsrClearFrameBufferObjectDepthTarget() argument [all …]
|
D | rsScriptC_Lib.cpp | 81 time_t rsrTime(Context *rsc, Script *sc, time_t *timer) { in rsrTime() argument 85 tm* rsrLocalTime(Context *rsc, Script *sc, tm *local, time_t *timer) { in rsrLocalTime() argument 99 int64_t rsrUptimeMillis(Context *rsc, Script *sc) { in rsrUptimeMillis() argument 103 int64_t rsrUptimeNanos(Context *rsc, Script *sc) { in rsrUptimeNanos() argument 107 float rsrGetDt(Context *rsc, Script *sc) { in rsrGetDt() argument 108 int64_t l = sc->mEnviroment.mLastDtTime; in rsrGetDt() 109 sc->mEnviroment.mLastDtTime = systemTime(SYSTEM_TIME_MONOTONIC); in rsrGetDt() 110 return ((float)(sc->mEnviroment.mLastDtTime - l)) / 1.0e9; in rsrGetDt() 117 void rsrSetObject(const Context *rsc, const Script *sc, ObjectBase **dst, ObjectBase * src) { in rsrSetObject() argument 130 void rsrClearObject(const Context *rsc, const Script *sc, ObjectBase **dst) { in rsrClearObject() argument [all …]
|
D | rsContext.cpp | 364 Context * Context::createContext(Device *dev, const RsSurfaceConfig *sc) { in createContext() argument 367 if (!rsc->initContext(dev, sc)) { in createContext() 380 bool Context::initContext(Device *dev, const RsSurfaceConfig *sc) { in initContext() argument 388 if (sc) { in initContext() 389 mUserSurfaceConfig = *sc; in initContext() 394 mIsGraphicsContext = sc != NULL; in initContext() 718 uint32_t sdkVersion, RsSurfaceConfig sc, in rsContextCreateGL() argument 722 Context *rsc = Context::createContext(dev, &sc); in rsContextCreateGL()
|
/frameworks/base/core/java/android/view/ |
D | VolumePanel.java | 295 StreamControl sc = new StreamControl(); in createSliders() local 296 sc.streamType = streamType; in createSliders() 297 sc.group = (ViewGroup) inflater.inflate(R.layout.volume_adjust_item, null); in createSliders() 298 sc.group.setTag(sc); in createSliders() 299 sc.icon = (ImageView) sc.group.findViewById(R.id.stream_icon); in createSliders() 300 if ((silentableStreams & (1 << sc.streamType)) != 0) { in createSliders() 301 sc.icon.setOnClickListener(this); in createSliders() 303 sc.icon.setTag(sc); in createSliders() 304 sc.icon.setContentDescription(res.getString(streamRes.descRes)); in createSliders() 305 sc.iconRes = streamRes.iconRes; in createSliders() [all …]
|
/frameworks/base/media/libstagefright/codecs/aacenc/src/ |
D | bit_cnt.c | 48 Word16 bc11,sc; in count1_2_3_4_5_6_7_8_9_10_11() local 56 sc=0; in count1_2_3_4_5_6_7_8_9_10_11() 91 sc = sc + (t0>0) + (t1>0) + (t2>0) + (t3>0); in count1_2_3_4_5_6_7_8_9_10_11() 96 bitCount[3]=extract_h(bc3_4) + sc; in count1_2_3_4_5_6_7_8_9_10_11() 97 bitCount[4]=extract_l(bc3_4) + sc; in count1_2_3_4_5_6_7_8_9_10_11() 100 bitCount[7]=extract_h(bc7_8) + sc; in count1_2_3_4_5_6_7_8_9_10_11() 101 bitCount[8]=extract_l(bc7_8) + sc; in count1_2_3_4_5_6_7_8_9_10_11() 102 bitCount[9]=extract_h(bc9_10) + sc; in count1_2_3_4_5_6_7_8_9_10_11() 103 bitCount[10]=extract_l(bc9_10) + sc; in count1_2_3_4_5_6_7_8_9_10_11() 104 bitCount[11]=bc11 + sc; in count1_2_3_4_5_6_7_8_9_10_11() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/ |
D | GsmMmiCode.java | 115 String sc; // Service Code field in GsmMmiCode 187 ret.sc = makeEmptyNull(m.group(MATCH_GROUP_SERVICE_CODE)); in newFromDialString() 264 scToCallForwardReason(String sc) { in scToCallForwardReason() argument 265 if (sc == null) { in scToCallForwardReason() 269 if (sc.equals(SC_CF_All)) { in scToCallForwardReason() 271 } else if (sc.equals(SC_CFU)) { in scToCallForwardReason() 273 } else if (sc.equals(SC_CFB)) { in scToCallForwardReason() 275 } else if (sc.equals(SC_CFNR)) { in scToCallForwardReason() 277 } else if (sc.equals(SC_CFNRy)) { in scToCallForwardReason() 279 } else if (sc.equals(SC_CF_All_Conditional)) { in scToCallForwardReason() [all …]
|
/frameworks/base/graphics/java/android/renderscript/ |
D | RenderScriptGL.java | 66 public SurfaceConfig(SurfaceConfig sc) { in SurfaceConfig() argument 67 mDepthMin = sc.mDepthMin; in SurfaceConfig() 68 mDepthPref = sc.mDepthPref; in SurfaceConfig() 69 mStencilMin = sc.mStencilMin; in SurfaceConfig() 70 mStencilPref = sc.mStencilPref; in SurfaceConfig() 71 mColorMin = sc.mColorMin; in SurfaceConfig() 72 mColorPref = sc.mColorPref; in SurfaceConfig() 73 mAlphaMin = sc.mAlphaMin; in SurfaceConfig() 74 mAlphaPref = sc.mAlphaPref; in SurfaceConfig() 75 mSamplesMin = sc.mSamplesMin; in SurfaceConfig() [all …]
|
D | RSSurfaceView.java | 122 public RenderScriptGL createRenderScriptGL(RenderScriptGL.SurfaceConfig sc) { in createRenderScriptGL() argument 123 RenderScriptGL rs = new RenderScriptGL(this.getContext(), sc); in createRenderScriptGL()
|
D | RSTextureView.java | 139 public RenderScriptGL createRenderScriptGL(RenderScriptGL.SurfaceConfig sc) { in createRenderScriptGL() argument 140 RenderScriptGL rs = new RenderScriptGL(this.getContext(), sc); in createRenderScriptGL()
|
/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
D | GSMTestHandler.java | 40 private SimulatedCommands sc; field in GSMTestHandler 54 sc = new SimulatedCommands(); in onLooperPrepared() 55 mGSMPhone = new GSMPhone(mContext, sc, new TestPhoneNotifier(), true); in onLooperPrepared() 88 return sc; in getSimulatedCommands()
|
/frameworks/base/opengl/tests/hwc/ |
D | hwcCommit.cpp | 270 } sc; member 504 measPtr->sc.minWidth = scMinWidth(format->format, measPtr->df.minDim); in main() 505 testPrintI(" scMinWidth: %u", measPtr->sc.minWidth); in main() 507 measPtr->sc.minHeight = scMinHeight(format->format, measPtr->df.minDim); in main() 508 testPrintI(" scMinHeight: %u", measPtr->sc.minHeight); in main() 510 measPtr->sc.maxWidth = scMaxWidth(format->format, measPtr->df.maxDim); in main() 511 testPrintI(" scMaxWidth: %s%u", (measPtr->sc.maxWidth in main() 513 measPtr->sc.maxWidth); in main() 515 measPtr->sc.maxHeight = scMaxHeight(format->format, measPtr->df.maxDim); in main() 516 testPrintI(" scMaxHeight: %s%u", (measPtr->sc.maxHeight in main() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | LocalReceiver.java | 48 ServiceConnection sc = new ServiceConnection() { in onReceive() local 55 context.bindService(new Intent(context, LocalService.class), sc, 0); in onReceive() 56 context.unbindService(sc); in onReceive()
|
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/ |
D | SceneGraphView.java | 56 RenderScriptGL.SurfaceConfig sc = new RenderScriptGL.SurfaceConfig(); in surfaceChanged() local 57 sc.setDepth(16, 24); in surfaceChanged() 58 mRS = createRenderScriptGL(sc); in surfaceChanged()
|
D | SimpleModelView.java | 63 RenderScriptGL.SurfaceConfig sc = new RenderScriptGL.SurfaceConfig(); in ensureRenderScript() local 64 sc.setDepth(16, 24); in ensureRenderScript() 65 mRS = createRenderScriptGL(sc); in ensureRenderScript()
|
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/ |
D | RsBenchView.java | 56 RenderScriptGL.SurfaceConfig sc = new RenderScriptGL.SurfaceConfig(); in surfaceChanged() local 57 sc.setDepth(16, 24); in surfaceChanged() 58 mRS = createRenderScriptGL(sc); in surfaceChanged()
|
/frameworks/base/tests/RenderScriptTests/ShadersTest/src/com/android/shaderstest/ |
D | ShadersTestView.java | 44 RenderScriptGL.SurfaceConfig sc = new RenderScriptGL.SurfaceConfig(); in ensureRenderScript() local 45 sc.setDepth(16, 24); in ensureRenderScript() 46 mRS = createRenderScriptGL(sc); in ensureRenderScript()
|
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/ |
D | CdmaMmiCode.java | 59 String sc; // Service Code field in CdmaMmiCode 112 ret.sc = makeEmptyNull(m.group(MATCH_GROUP_SERVICE_CODE)); in newFromDialString() 178 return sc != null && sc.equals(SC_PUK); in isPukCommand() 248 if (sc != null) { in getScString()
|
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/ |
D | FBOTestView.java | 46 RenderScriptGL.SurfaceConfig sc = new RenderScriptGL.SurfaceConfig(); in ensureRenderScript() local 47 sc.setDepth(16, 24); in ensureRenderScript() 48 mRS = createRenderScriptGL(sc); in ensureRenderScript()
|
D | FBOSyncView.java | 46 RenderScriptGL.SurfaceConfig sc = new RenderScriptGL.SurfaceConfig(); in ensureRenderScript() local 47 sc.setDepth(16, 24); in ensureRenderScript() 48 mRS = createRenderScriptGL(sc); in ensureRenderScript()
|
/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/ |
D | RSTestView.java | 58 RenderScriptGL.SurfaceConfig sc = new RenderScriptGL.SurfaceConfig(); in surfaceChanged() local 59 mRS = createRenderScriptGL(sc); in surfaceChanged()
|
/frameworks/base/services/input/ |
D | EventHub.cpp | 320 int32_t sc = scanCodes.itemAt(i); in getKeyCodeState() local 321 if (sc >= 0 && sc <= KEY_MAX && test_bit(sc, keyState)) { in getKeyCodeState() 385 for (size_t sc = 0; sc < scanCodes.size(); sc++) { in markSupportedKeyCodes() local 386 if (test_bit(scanCodes[sc], device->keyBitmask)) { in markSupportedKeyCodes() 1153 int32_t sc = scanCodes.itemAt(i); in hasKeycodeLocked() local 1154 if (sc >= 0 && sc <= KEY_MAX && test_bit(sc, device->keyBitmask)) { in hasKeycodeLocked()
|