Home
last modified time | relevance | path

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

1234

/frameworks/native/services/surfaceflinger/tests/
DTransaction_test.cpp34 static void fillSurfaceRGBA8(const sp<SurfaceControl>& sc, in fillSurfaceRGBA8() argument
37 sp<Surface> s = sc->getSurface(); in fillSurfaceRGBA8()
57 static void captureScreen(sp<ScreenCapture>* sc) { in captureScreen() argument
68 *sc = new ScreenCapture(cpuConsumer); in captureScreen()
180 sp<ScreenCapture> sc; in TEST_F() local
183 ScreenCapture::captureScreen(&sc); in TEST_F()
184 sc->checkPixel( 0, 12, 63, 63, 195); in TEST_F()
185 sc->checkPixel( 75, 75, 195, 63, 63); in TEST_F()
186 sc->checkPixel(145, 145, 63, 63, 195); in TEST_F()
195 ScreenCapture::captureScreen(&sc); in TEST_F()
[all …]
/frameworks/rs/tests/cppbasic/
Dcompute.cpp38 sp<ScriptC_mono> sc = new ScriptC_mono(rs); in test_compute() local
41 sc->set_alloc(a1); in test_compute()
42 sc->set_elem(e); in test_compute()
43 sc->set_type(t); in test_compute()
44 sc->set_script(sc); in test_compute()
45 sc->set_script(nullptr); in test_compute()
47 sc->set_sampler(samp); in test_compute()
57 sc->bind_failed(failed_alloc); in test_compute()
66 sc->forEach_root(ain, aout); in test_compute()
68 sc->invoke_foo(99, 3.1f); in test_compute()
[all …]
/frameworks/rs/tests/cppbasic-shared/
Dcompute.cpp38 sp<ScriptC_mono> sc = new ScriptC_mono(rs); in test_compute() local
41 sc->set_alloc(a1); in test_compute()
42 sc->set_elem(e); in test_compute()
43 sc->set_type(t); in test_compute()
44 sc->set_script(sc); in test_compute()
45 sc->set_script(nullptr); in test_compute()
47 sc->set_sampler(samp); in test_compute()
57 sc->bind_failed(failed_alloc); in test_compute()
66 sc->forEach_root(ain, aout); in test_compute()
68 sc->invoke_foo(99, 3.1f); in test_compute()
[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/rs/java/android/renderscript/
DRenderScriptGL.java74 public SurfaceConfig(SurfaceConfig sc) { in SurfaceConfig() argument
75 mDepthMin = sc.mDepthMin; in SurfaceConfig()
76 mDepthPref = sc.mDepthPref; in SurfaceConfig()
77 mStencilMin = sc.mStencilMin; in SurfaceConfig()
78 mStencilPref = sc.mStencilPref; in SurfaceConfig()
79 mColorMin = sc.mColorMin; in SurfaceConfig()
80 mColorPref = sc.mColorPref; in SurfaceConfig()
81 mAlphaMin = sc.mAlphaMin; in SurfaceConfig()
82 mAlphaPref = sc.mAlphaPref; in SurfaceConfig()
83 mSamplesMin = sc.mSamplesMin; in SurfaceConfig()
[all …]
DScript.java179 FieldPacker v, LaunchOptions sc) { in forEach() argument
185 if (ain == null && aout == null && sc == null) { in forEach()
207 if (sc != null) { in forEach()
210 limits[0] = sc.xstart; in forEach()
211 limits[1] = sc.xend; in forEach()
212 limits[2] = sc.ystart; in forEach()
213 limits[3] = sc.yend; in forEach()
214 limits[4] = sc.zstart; in forEach()
215 limits[5] = sc.zend; in forEach()
235 FieldPacker v, LaunchOptions sc) { in forEach() argument
[all …]
/frameworks/rs/cpu_ref/
DrsCpuScript.cpp519 const RsScriptCall *sc, in forEachMtlsSetup() argument
570 } else if (sc != nullptr) { in forEachMtlsSetup()
571 mtls->fep.dim.x = sc->xEnd; in forEachMtlsSetup()
572 mtls->fep.dim.y = sc->yEnd; in forEachMtlsSetup()
589 if (!sc || (sc->xEnd == 0)) { in forEachMtlsSetup()
592 mtls->start.x = rsMin(mtls->fep.dim.x, sc->xStart); in forEachMtlsSetup()
593 mtls->end.x = rsMin(mtls->fep.dim.x, sc->xEnd); in forEachMtlsSetup()
601 if (!sc || (sc->yEnd == 0)) { in forEachMtlsSetup()
604 mtls->start.y = rsMin(mtls->fep.dim.y, sc->yStart); in forEachMtlsSetup()
605 mtls->end.y = rsMin(mtls->fep.dim.y, sc->yEnd); in forEachMtlsSetup()
[all …]
DrsCpuIntrinsic.cpp79 const RsScriptCall *sc) { in preLaunch() argument
85 const RsScriptCall *sc) { in postLaunch() argument
94 const RsScriptCall *sc) { in invokeForEach() argument
98 preLaunch(slot, ains, inLen, aout, usr, usrLen, sc); in invokeForEach()
100 if (forEachMtlsSetup(ains, inLen, aout, usr, usrLen, sc, &mtls)) { in invokeForEach()
108 mCtx->launchThreads(ains, inLen, aout, sc, &mtls); in invokeForEach()
112 postLaunch(slot, ains, inLen, aout, usr, usrLen, sc); in invokeForEach()
DrsCpuIntrinsic.h40 const RsScriptCall *sc) override;
48 uint32_t usrLen, const RsScriptCall * sc) override;
52 const RsScriptCall * sc) override;
/frameworks/native/opengl/tests/lib/
DWindowSurface.cpp57 sp<SurfaceControl> sc = surfaceComposerClient->createSurface( in WindowSurface() local
60 if (sc == NULL || !sc->isValid()) { in WindowSurface()
66 err = sc->setLayer(0x7FFFFFFF); // always on top in WindowSurface()
72 err = sc->show(); in WindowSurface()
79 mSurfaceControl = sc; in WindowSurface()
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DScript.java280 …rotected void forEach(int slot, Allocation ain, Allocation aout, FieldPacker v, LaunchOptions sc) { in forEach() argument
286 if (sc == null) { in forEach()
306 …lipped(getID(mRS), slot, ainInc, aoutInc, params, sc.xstart, sc.xend, sc.ystart, sc.yend, sc.zstar… in forEach()
308 …hClipped(getID(mRS), slot, in_id, out_id, params, sc.xstart, sc.xend, sc.ystart, sc.yend, sc.zstar… in forEach()
/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.cpp268 } sc; member
501 measPtr->sc.minWidth = scMinWidth(format->format, measPtr->df.minDim); in main()
502 testPrintI(" scMinWidth: %u", measPtr->sc.minWidth); in main()
504 measPtr->sc.minHeight = scMinHeight(format->format, measPtr->df.minDim); in main()
505 testPrintI(" scMinHeight: %u", measPtr->sc.minHeight); in main()
507 measPtr->sc.maxWidth = scMaxWidth(format->format, measPtr->df.maxDim); in main()
508 testPrintI(" scMaxWidth: %s%u", (measPtr->sc.maxWidth in main()
510 measPtr->sc.maxWidth); in main()
512 measPtr->sc.maxHeight = scMaxHeight(format->format, measPtr->df.maxDim); in main()
513 testPrintI(" scMaxHeight: %s%u", (measPtr->sc.maxHeight in main()
[all …]
/frameworks/rs/driver/
DrsdBcc.cpp76 const RsScriptCall *sc) { in rsdScriptInvokeForEach() argument
80 sc); in rsdScriptInvokeForEach()
85 sc); in rsdScriptInvokeForEach()
97 const RsScriptCall *sc) { in rsdScriptInvokeForEachMulti() argument
100 cs->invokeForEach(slot, ains, inLen, aout, usr, usrLen, sc); in rsdScriptInvokeForEachMulti()
166 const android::renderscript::Script *sc, in rsdScriptGetAllocationForPointer() argument
168 RsdCpuReference::CpuScript *cs = (RsdCpuReference::CpuScript *)sc->mHal.drv; in rsdScriptGetAllocationForPointer()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmMmiCode.java418 scToCallForwardReason(String sc) { in scToCallForwardReason() argument
419 if (sc == null) { in scToCallForwardReason()
423 if (sc.equals(SC_CF_All)) { in scToCallForwardReason()
425 } else if (sc.equals(SC_CFU)) { in scToCallForwardReason()
427 } else if (sc.equals(SC_CFB)) { in scToCallForwardReason()
429 } else if (sc.equals(SC_CFNR)) { in scToCallForwardReason()
431 } else if (sc.equals(SC_CFNRy)) { in scToCallForwardReason()
433 } else if (sc.equals(SC_CF_All_Conditional)) { in scToCallForwardReason()
490 isServiceCodeCallForwarding(String sc) { in isServiceCodeCallForwarding() argument
491 return sc != null && in isServiceCodeCallForwarding()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneMmiCode.java330 scToCallForwardReason(String sc) { in scToCallForwardReason() argument
331 if (sc == null) { in scToCallForwardReason()
335 if (sc.equals(SC_CF_All)) { in scToCallForwardReason()
337 } else if (sc.equals(SC_CFU)) { in scToCallForwardReason()
339 } else if (sc.equals(SC_CFB)) { in scToCallForwardReason()
341 } else if (sc.equals(SC_CFNR)) { in scToCallForwardReason()
343 } else if (sc.equals(SC_CFNRy)) { in scToCallForwardReason()
345 } else if (sc.equals(SC_CF_All_Conditional)) { in scToCallForwardReason()
396 isServiceCodeCallForwarding(String sc) { in isServiceCodeCallForwarding() argument
397 return sc != null && in isServiceCodeCallForwarding()
[all …]
/frameworks/rs/tests/latency/
Dlatency.cpp73 sp<ScriptC_latency> sc = new ScriptC_latency(rs); in main() local
80 sc->forEach_root(ain, aout); in main()
95 sc->forEach_root(ain, aout); in main()
106 sc.clear(); in main()
/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/cppallocation/
Dcompute.cpp36 sp<ScriptC_multiply> sc = new ScriptC_multiply(rs); in main() local
45 sc->forEach_multiply(ain, aout); in main()
58 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/rs/java/tests/RsTest/src/com/android/rs/test/
DUT_foreach_bounds.java54 Script.LaunchOptions sc = new Script.LaunchOptions(); in initializeGlobals() local
55 sc.setX(xStart, xEnd).setY(yStart, yEnd); in initializeGlobals()
56 s.forEach_root(A, sc); in initializeGlobals()
/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/rs/tests/cppstrided/
Dcompute.cpp38 sp<ScriptC_multiply> sc = new ScriptC_multiply(rs); in main() local
54 sc->forEach_multiply(ain, aout); in main()
69 sc.clear(); in main()
/frameworks/rs/
DrsScriptC.cpp53 ScriptC * sc = (ScriptC *) tls->mScript
194 const RsScriptCall *sc) { in runForEach() argument
198 if (sc != nullptr && getApiLevel() < 23) { in runForEach()
200 memcpy(&sc_copy, sc, 7*4); in runForEach()
201 sc = &sc_copy; in runForEach()
225 aout, usr, usrBytes, sc); in runForEach()
229 usr, usrBytes, sc); in runForEach()

1234