Home
last modified time | relevance | path

Searched refs:sc (Results 1 – 25 of 73) sorted by relevance

123

/frameworks/native/services/surfaceflinger/tests/
DTransaction_test.cpp32 static void fillSurfaceRGBA8(const sp<SurfaceControl>& sc, in fillSurfaceRGBA8() argument
35 sp<Surface> s = sc->getSurface(); in fillSurfaceRGBA8()
55 static void captureScreen(sp<ScreenCapture>* sc) { in captureScreen() argument
65 *sc = new ScreenCapture(w, h, heap); in captureScreen()
174 sp<ScreenCapture> sc; in TEST_F() local
177 ScreenCapture::captureScreen(&sc); in TEST_F()
178 sc->checkPixel( 0, 12, 63, 63, 195); in TEST_F()
179 sc->checkPixel( 75, 75, 195, 63, 63); in TEST_F()
180 sc->checkPixel(145, 145, 63, 63, 195); in TEST_F()
189 ScreenCapture::captureScreen(&sc); in TEST_F()
[all …]
/frameworks/rs/
DrsScriptC_LibGL.cpp49 void rsrBindTexture(Context *rsc, Script *sc, ProgramFragment *pf, uint32_t slot, Allocation *a) { in rsrBindTexture() argument
55 void rsrBindConstant(Context *rsc, Script *sc, ProgramFragment *pf, uint32_t slot, Allocation *a) { in rsrBindConstant() argument
61 void rsrBindConstant(Context *rsc, Script *sc, ProgramVertex *pv, uint32_t slot, Allocation *a) { in rsrBindConstant() argument
67 void rsrBindSampler(Context *rsc, Script *sc, ProgramFragment *pf, uint32_t slot, Sampler *s) { in rsrBindSampler() argument
73 void rsrBindProgramStore(Context *rsc, Script *sc, ProgramStore *ps) { in rsrBindProgramStore() argument
78 void rsrBindProgramFragment(Context *rsc, Script *sc, ProgramFragment *pf) { in rsrBindProgramFragment() argument
83 void rsrBindProgramVertex(Context *rsc, Script *sc, ProgramVertex *pv) { in rsrBindProgramVertex() argument
88 void rsrBindProgramRaster(Context *rsc, Script *sc, ProgramRaster *pr) { in rsrBindProgramRaster() argument
93 void rsrBindFrameBufferObjectColorTarget(Context *rsc, Script *sc, Allocation *a, uint32_t slot) { in rsrBindFrameBufferObjectColorTarget() argument
99 void rsrBindFrameBufferObjectDepthTarget(Context *rsc, Script *sc, Allocation *a) { in rsrBindFrameBufferObjectDepthTarget() argument
[all …]
DrsScriptC_Lib.cpp82 time_t rsrTime(Context *rsc, Script *sc, time_t *timer) { in rsrTime() argument
86 tm* rsrLocalTime(Context *rsc, Script *sc, tm *local, time_t *timer) { in rsrLocalTime() argument
100 int64_t rsrUptimeMillis(Context *rsc, Script *sc) { in rsrUptimeMillis() argument
104 int64_t rsrUptimeNanos(Context *rsc, Script *sc) { in rsrUptimeNanos() argument
108 float rsrGetDt(Context *rsc, Script *sc) { in rsrGetDt() argument
109 int64_t l = sc->mEnviroment.mLastDtTime; in rsrGetDt()
110 sc->mEnviroment.mLastDtTime = systemTime(SYSTEM_TIME_MONOTONIC); in rsrGetDt()
111 return ((float)(sc->mEnviroment.mLastDtTime - l)) / 1.0e9; in rsrGetDt()
118 void rsrSetObject(const Context *rsc, const Script *sc, ObjectBase **dst, ObjectBase * src) { in rsrSetObject() argument
131 void rsrClearObject(const Context *rsc, const Script *sc, ObjectBase **dst) { in rsrClearObject() argument
[all …]
/frameworks/av/media/libstagefright/codecs/aacenc/src/
Dbit_cnt.c48 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/core/java/android/view/
DVolumePanel.java400 StreamControl sc = new StreamControl(); in createSliders() local
401 sc.streamType = streamType; in createSliders()
402 sc.group = (ViewGroup) inflater.inflate(R.layout.volume_adjust_item, null); in createSliders()
403 sc.group.setTag(sc); in createSliders()
404 sc.icon = (ImageView) sc.group.findViewById(R.id.stream_icon); in createSliders()
405 sc.icon.setTag(sc); in createSliders()
406 sc.icon.setContentDescription(res.getString(streamRes.descRes)); in createSliders()
407 sc.iconRes = streamRes.iconRes; in createSliders()
408 sc.iconMuteRes = streamRes.iconMuteRes; in createSliders()
409 sc.icon.setImageResource(sc.iconRes); in createSliders()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmMmiCode.java118 String sc; // Service Code field in GsmMmiCode
190 ret.sc = makeEmptyNull(m.group(MATCH_GROUP_SERVICE_CODE)); in newFromDialString()
279 scToCallForwardReason(String sc) { in scToCallForwardReason() argument
280 if (sc == null) { in scToCallForwardReason()
284 if (sc.equals(SC_CF_All)) { in scToCallForwardReason()
286 } else if (sc.equals(SC_CFU)) { in scToCallForwardReason()
288 } else if (sc.equals(SC_CFB)) { in scToCallForwardReason()
290 } else if (sc.equals(SC_CFNR)) { in scToCallForwardReason()
292 } else if (sc.equals(SC_CFNRy)) { in scToCallForwardReason()
294 } else if (sc.equals(SC_CF_All_Conditional)) { in scToCallForwardReason()
[all …]
/frameworks/support/renderscript/v8/rs_support/
DrsScriptC_Lib.cpp82 time_t rsrTime(Context *rsc, Script *sc, time_t *timer) { in rsrTime() argument
86 tm* rsrLocalTime(Context *rsc, Script *sc, tm *local, time_t *timer) { in rsrLocalTime() argument
100 int64_t rsrUptimeMillis(Context *rsc, Script *sc) { in rsrUptimeMillis() argument
104 int64_t rsrUptimeNanos(Context *rsc, Script *sc) { in rsrUptimeNanos() argument
108 float rsrGetDt(Context *rsc, Script *sc) { in rsrGetDt() argument
109 int64_t l = sc->mEnviroment.mLastDtTime; in rsrGetDt()
110 sc->mEnviroment.mLastDtTime = systemTime(SYSTEM_TIME_MONOTONIC); in rsrGetDt()
111 return ((float)(sc->mEnviroment.mLastDtTime - l)) / 1.0e9; in rsrGetDt()
118 void rsrSetObject(const Context *rsc, const Script *sc, ObjectBase **dst, ObjectBase * src) { in rsrSetObject() argument
131 void rsrClearObject(const Context *rsc, const Script *sc, ObjectBase **dst) { in rsrClearObject() argument
[all …]
/frameworks/base/graphics/java/android/renderscript/
DRenderScriptGL.java80 public SurfaceConfig(SurfaceConfig sc) { in SurfaceConfig() argument
81 mDepthMin = sc.mDepthMin; in SurfaceConfig()
82 mDepthPref = sc.mDepthPref; in SurfaceConfig()
83 mStencilMin = sc.mStencilMin; in SurfaceConfig()
84 mStencilPref = sc.mStencilPref; in SurfaceConfig()
85 mColorMin = sc.mColorMin; in SurfaceConfig()
86 mColorPref = sc.mColorPref; in SurfaceConfig()
87 mAlphaMin = sc.mAlphaMin; in SurfaceConfig()
88 mAlphaPref = sc.mAlphaPref; in SurfaceConfig()
89 mSamplesMin = sc.mSamplesMin; in SurfaceConfig()
[all …]
/frameworks/rs/driver/
DrsdRuntimeStubs.cpp42 ScriptC * sc = (ScriptC *) tls->mScript
80 rsrAllocationSyncAll(rsc, sc, a, source); in SC_AllocationSyncAll2()
85 rsrAllocationSyncAll(rsc, sc, a, RS_ALLOCATION_USAGE_SCRIPT); in SC_AllocationSyncAll()
133 rsrBindTexture(rsc, sc, pf, slot, a); in SC_BindTexture()
138 rsrBindConstant(rsc, sc, pv, slot, a); in SC_BindVertexConstant()
143 rsrBindConstant(rsc, sc, pf, slot, a); in SC_BindFragmentConstant()
148 rsrBindSampler(rsc, sc, pf, slot, s); in SC_BindSampler()
153 rsrBindProgramStore(rsc, sc, ps); in SC_BindProgramStore()
158 rsrBindProgramFragment(rsc, sc, pf); in SC_BindProgramFragment()
163 rsrBindProgramVertex(rsc, sc, pv); in SC_BindProgramVertex()
[all …]
DrsdBcc.cpp41 static Script * setTLS(Script *sc) { in setTLS() argument
45 tls->mScript = sc; in setTLS()
254 const RsScriptCall *sc, in rsdScriptInvokeForEachMtlsSetup() argument
274 if (!sc || (sc->xEnd == 0)) { in rsdScriptInvokeForEachMtlsSetup()
277 rsAssert(sc->xStart < mtls->fep.dimX); in rsdScriptInvokeForEachMtlsSetup()
278 rsAssert(sc->xEnd <= mtls->fep.dimX); in rsdScriptInvokeForEachMtlsSetup()
279 rsAssert(sc->xStart < sc->xEnd); in rsdScriptInvokeForEachMtlsSetup()
280 mtls->xStart = rsMin(mtls->fep.dimX, sc->xStart); in rsdScriptInvokeForEachMtlsSetup()
281 mtls->xEnd = rsMin(mtls->fep.dimX, sc->xEnd); in rsdScriptInvokeForEachMtlsSetup()
285 if (!sc || (sc->yEnd == 0)) { in rsdScriptInvokeForEachMtlsSetup()
[all …]
/frameworks/support/renderscript/v8/rs_support/driver/
DrsdRuntimeStubs.cpp40 ScriptC * sc = (ScriptC *) tls->mScript
78 rsrAllocationSyncAll(rsc, sc, a, source); in SC_AllocationSyncAll2()
83 rsrAllocationSyncAll(rsc, sc, a, RS_ALLOCATION_USAGE_SCRIPT); in SC_AllocationSyncAll()
119 rsrSetObject(rsc, sc, dst, src); in SC_SetObject()
124 rsrClearObject(rsc, sc, dst); in SC_ClearObject()
129 return rsrIsObject(rsc, sc, src); in SC_IsObject()
137 return rsdScriptGetAllocationForPointer(rsc, sc, ptr); in SC_GetAllocation()
144 rsrForEach(rsc, sc, target, in, out, NULL, 0, NULL); in SC_ForEach_SAA()
152 rsrForEach(rsc, sc, target, in, out, usr, 0, NULL); in SC_ForEach_SAAU()
161 rsrForEach(rsc, sc, target, in, out, usr, 0, call); in SC_ForEach_SAAUS()
[all …]
DrsdBcc.cpp53 static Script * setTLS(Script *sc) { in setTLS() argument
57 tls->mScript = sc; in setTLS()
427 const RsScriptCall *sc, in rsdScriptInvokeForEachMtlsSetup() argument
447 if (!sc || (sc->xEnd == 0)) { in rsdScriptInvokeForEachMtlsSetup()
450 rsAssert(sc->xStart < mtls->fep.dimX); in rsdScriptInvokeForEachMtlsSetup()
451 rsAssert(sc->xEnd <= mtls->fep.dimX); in rsdScriptInvokeForEachMtlsSetup()
452 rsAssert(sc->xStart < sc->xEnd); in rsdScriptInvokeForEachMtlsSetup()
453 mtls->xStart = rsMin(mtls->fep.dimX, sc->xStart); in rsdScriptInvokeForEachMtlsSetup()
454 mtls->xEnd = rsMin(mtls->fep.dimX, sc->xEnd); in rsdScriptInvokeForEachMtlsSetup()
458 if (!sc || (sc->yEnd == 0)) { in rsdScriptInvokeForEachMtlsSetup()
[all …]
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/
DSimpleAppView.java42 RenderScriptGL.SurfaceConfig sc = new RenderScriptGL.SurfaceConfig(); in surfaceChanged() local
43 sc.setDepth(16, 24); in surfaceChanged()
44 sc.setSamples(1, 2, 1); in surfaceChanged()
45 mRS = createRenderScriptGL(sc); in surfaceChanged()
DTestAppView.java60 RenderScriptGL.SurfaceConfig sc = new RenderScriptGL.SurfaceConfig(); in surfaceChanged() local
61 sc.setDepth(16, 24); in surfaceChanged()
62 sc.setSamples(1, 2, 1); in surfaceChanged()
63 mRS = createRenderScriptGL(sc); in surfaceChanged()
/frameworks/native/opengl/tests/hwc/
DhwcCommit.cpp269 } sc; member
503 measPtr->sc.minWidth = scMinWidth(format->format, measPtr->df.minDim); in main()
504 testPrintI(" scMinWidth: %u", measPtr->sc.minWidth); in main()
506 measPtr->sc.minHeight = scMinHeight(format->format, measPtr->df.minDim); in main()
507 testPrintI(" scMinHeight: %u", measPtr->sc.minHeight); in main()
509 measPtr->sc.maxWidth = scMaxWidth(format->format, measPtr->df.maxDim); in main()
510 testPrintI(" scMaxWidth: %s%u", (measPtr->sc.maxWidth in main()
512 measPtr->sc.maxWidth); in main()
514 measPtr->sc.maxHeight = scMaxHeight(format->format, measPtr->df.maxDim); in main()
515 testPrintI(" scMaxHeight: %s%u", (measPtr->sc.maxHeight in main()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGSMTestHandler.java40 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/tests/RenderScriptTests/MiscSamples/src/com/example/android/rs/miscsamples/
DRsRenderStatesView.java38 RenderScriptGL.SurfaceConfig sc = new RenderScriptGL.SurfaceConfig(); in ensureRenderScript() local
39 sc.setDepth(16, 24); in ensureRenderScript()
40 mRS = createRenderScriptGL(sc); in ensureRenderScript()
/frameworks/rs/tests/
Dcompute.cpp38 sp<ScriptC_mono> sc = new ScriptC_mono(rs, NULL, 0); in main() local
50 sc->forEach_root(ain, aout); in main()
55 sc.clear(); in main()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DLocalReceiver.java48 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/
DSceneGraphView.java56 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/PerfTest/src/com/android/perftest/
DRsBenchView.java56 RenderScriptGL.SurfaceConfig sc = new RenderScriptGL.SurfaceConfig(); in surfaceChanged() local
57 sc.setDepth(16, 24); in surfaceChanged()
58 mRS = createRenderScriptGL(sc); in surfaceChanged()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaMmiCode.java59 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/ShadersTest/src/com/android/shaderstest/
DShadersTestView.java44 RenderScriptGL.SurfaceConfig sc = new RenderScriptGL.SurfaceConfig(); in ensureRenderScript() local
45 sc.setDepth(16, 24); in ensureRenderScript()
46 mRS = createRenderScriptGL(sc); in ensureRenderScript()
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/
DFBOTestView.java46 RenderScriptGL.SurfaceConfig sc = new RenderScriptGL.SurfaceConfig(); in ensureRenderScript() local
47 sc.setDepth(16, 24); in ensureRenderScript()
48 mRS = createRenderScriptGL(sc); in ensureRenderScript()
DFBOSyncView.java46 RenderScriptGL.SurfaceConfig sc = new RenderScriptGL.SurfaceConfig(); in ensureRenderScript() local
47 sc.setDepth(16, 24); in ensureRenderScript()
48 mRS = createRenderScriptGL(sc); in ensureRenderScript()

123