Home
last modified time | relevance | path

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

12345

/frameworks/native/services/surfaceflinger/tests/
DTransaction_test.cpp35 static void fillSurfaceRGBA8(const sp<SurfaceControl>& sc, in fillSurfaceRGBA8() argument
38 sp<Surface> s = sc->getSurface(); in fillSurfaceRGBA8()
60 static void captureScreen(sp<ScreenCapture>* sc) { in captureScreen() argument
72 *sc = new ScreenCapture(cpuConsumer); in captureScreen()
198 sp<ScreenCapture> sc; in TEST_F() local
201 ScreenCapture::captureScreen(&sc); in TEST_F()
202 sc->expectBGColor(0, 12); in TEST_F()
203 sc->expectFGColor(75, 75); in TEST_F()
204 sc->expectBGColor(145, 145); in TEST_F()
213 ScreenCapture::captureScreen(&sc); in TEST_F()
[all …]
/frameworks/rs/tests/cpp_api/cppbasic-shared/
Dcompute.cpp35 sp<ScriptC_mono> sc = new ScriptC_mono(rs); in test_compute() local
38 sc->set_alloc(a1); in test_compute()
39 sc->set_elem(e); in test_compute()
40 sc->set_type(t); in test_compute()
41 sc->set_script(sc); in test_compute()
42 sc->set_script(nullptr); in test_compute()
44 sc->set_sampler(samp); in test_compute()
54 sc->bind_failed(failed_alloc); in test_compute()
63 sc->forEach_root(ain, aout); in test_compute()
65 sc->invoke_foo(99, 3.1f); in test_compute()
[all …]
/frameworks/rs/tests/cpp_api/cppbasic/
Dcompute.cpp35 sp<ScriptC_mono> sc = new ScriptC_mono(rs); in test_compute() local
38 sc->set_alloc(a1); in test_compute()
39 sc->set_elem(e); in test_compute()
40 sc->set_type(t); in test_compute()
41 sc->set_script(sc); in test_compute()
42 sc->set_script(nullptr); in test_compute()
44 sc->set_sampler(samp); in test_compute()
54 sc->bind_failed(failed_alloc); in test_compute()
63 sc->forEach_root(ain, aout); in test_compute()
65 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.java181 FieldPacker v, LaunchOptions sc) { in forEach() argument
187 if (ain == null && aout == null && sc == null) { in forEach()
209 if (sc != null) { in forEach()
212 limits[0] = sc.xstart; in forEach()
213 limits[1] = sc.xend; in forEach()
214 limits[2] = sc.ystart; in forEach()
215 limits[3] = sc.yend; in forEach()
216 limits[4] = sc.zstart; in forEach()
217 limits[5] = sc.zend; in forEach()
237 FieldPacker v, LaunchOptions sc) { in forEach() argument
[all …]
/frameworks/rs/support/java/src/android/support/v8/renderscript/
DScript.java282 …rotected void forEach(int slot, Allocation ain, Allocation aout, FieldPacker v, LaunchOptions sc) { in forEach() argument
288 if (sc == null) { in forEach()
308 …lipped(getID(mRS), slot, ainInc, aoutInc, params, sc.xstart, sc.xend, sc.ystart, sc.yend, sc.zstar… in forEach()
310 …hClipped(getID(mRS), slot, in_id, out_id, params, sc.xstart, sc.xend, sc.ystart, sc.yend, sc.zstar… in forEach()
335 FieldPacker v, LaunchOptions sc) { in forEach() argument
371 if (sc != null) { in forEach()
374 limits[0] = sc.xstart; in forEach()
375 limits[1] = sc.xend; in forEach()
376 limits[2] = sc.ystart; in forEach()
377 limits[3] = sc.yend; in forEach()
[all …]
/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/rs/cpu_ref/
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->launchForEach(ains, inLen, aout, sc, &mtls); in invokeForEach()
112 postLaunch(slot, ains, inLen, aout, usr, usrLen, sc); in invokeForEach()
DrsCpuScript.h51 uint32_t usrLen, const RsScriptCall *sc);
55 const RsScriptCall *sc);
63 const RsScriptCall* sc) override;
68 const RsScriptCall* sc) override;
90 const RsScriptCall *sc, MTLaunchStructForEach *mtls);
96 const RsScriptCall *sc, MTLaunchStructReduce *mtls);
140 const RsScriptCall *sc);
DrsCpuIntrinsic.h38 const RsBlasCall *sc; member
55 const RsScriptCall *sc) override;
63 uint32_t usrLen, const RsScriptCall * sc) override;
67 const RsScriptCall * sc) override;
DrsCpuScript.cpp514 const RsScriptCall *sc) { in setUpMtlsDimensions() argument
518 if (!sc || (sc->SC_FIELD##End == 0)) { \ in setUpMtlsDimensions()
522 rsMin(baseDim.DIM_FIELD, sc->SC_FIELD##Start); \ in setUpMtlsDimensions()
524 rsMin(baseDim.DIM_FIELD, sc->SC_FIELD##End); \ in setUpMtlsDimensions()
547 const RsScriptCall *sc, in reduceMtlsSetup() argument
583 if (!setUpMtlsDimensions(mtls, mtls->redp.dim, sc)) { in reduceMtlsSetup()
619 const RsScriptCall *sc, in forEachMtlsSetup() argument
673 } else if (sc != nullptr) { in forEachMtlsSetup()
674 mtls->fep.dim.x = sc->xEnd; in forEachMtlsSetup()
675 mtls->fep.dim.y = sc->yEnd; in forEachMtlsSetup()
[all …]
/frameworks/compile/slang/tests/P_reduce_general_accumulator/
DScriptC_reduce_general_accumulator.java.expect102 public result_int reduce_my_half(Allocation ain1, Script.LaunchOptions sc) {
109 reduce(mExportReduceIdx_my_half, new Allocation[]{ain1}, aout, sc);
135 public result_int reduce_my_half2(Allocation ain1, Script.LaunchOptions sc) {
142 reduce(mExportReduceIdx_my_half2, new Allocation[]{ain1}, aout, sc);
168 public result_int reduce_my_half4(Allocation ain1, Script.LaunchOptions sc) {
175 reduce(mExportReduceIdx_my_half4, new Allocation[]{ain1}, aout, sc);
201 public result_int reduce_my_array_half(Allocation ain1, Script.LaunchOptions sc) {
208 reduce(mExportReduceIdx_my_array_half, new Allocation[]{ain1}, aout, sc);
234 public result_int reduce_my_array_half2(Allocation ain1, Script.LaunchOptions sc) {
241 reduce(mExportReduceIdx_my_array_half2, new Allocation[]{ain1}, aout, sc);
[all …]
/frameworks/compile/slang/tests/P_reduce_general_input/
DScriptC_reduce_general_input.java.expect170 public result_int reduce_my_half_0(Allocation ain1, Script.LaunchOptions sc) {
177 reduce(mExportReduceIdx_my_half_0, new Allocation[]{ain1}, aout, sc);
203 public result_int reduce_my_half_1(Allocation ain1, Script.LaunchOptions sc) {
210 reduce(mExportReduceIdx_my_half_1, new Allocation[]{ain1}, aout, sc);
236 public result_int reduce_my_half_2(Allocation ain1, Script.LaunchOptions sc) {
243 reduce(mExportReduceIdx_my_half_2, new Allocation[]{ain1}, aout, sc);
269 public result_int reduce_my_half_3(Allocation ain1, Script.LaunchOptions sc) {
276 reduce(mExportReduceIdx_my_half_3, new Allocation[]{ain1}, aout, sc);
302 public result_int reduce_my_half_4(Allocation ain1, Script.LaunchOptions sc) {
309 reduce(mExportReduceIdx_my_half_4, new Allocation[]{ain1}, aout, sc);
[all …]
/frameworks/rs/driver/
DrsdBcc.cpp75 const RsScriptCall *sc) { in rsdScriptInvokeForEach() argument
79 sc); in rsdScriptInvokeForEach()
84 sc); in rsdScriptInvokeForEach()
96 const RsScriptCall *sc) { in rsdScriptInvokeForEachMulti() argument
99 cs->invokeForEach(slot, ains, inLen, aout, usr, usrLen, sc); in rsdScriptInvokeForEachMulti()
130 const RsScriptCall *sc) { in rsdScriptInvokeReduce() argument
132 cs->invokeReduce(slot, ains, inLen, aout, sc); in rsdScriptInvokeReduce()
174 const android::renderscript::Script *sc, in rsdScriptGetAllocationForPointer() argument
176 RsdCpuReference::CpuScript *cs = (RsdCpuReference::CpuScript *)sc->mHal.drv; in rsdScriptGetAllocationForPointer()
/frameworks/rs/support/jni/
Dandroid_renderscript_RenderScript.cpp1582 RsScriptCall sc; in nScriptForEachClipped() local
1583 sc.xStart = xstart; in nScriptForEachClipped()
1584 sc.xEnd = xend; in nScriptForEachClipped()
1585 sc.yStart = ystart; in nScriptForEachClipped()
1586 sc.yEnd = yend; in nScriptForEachClipped()
1587 sc.zStart = zstart; in nScriptForEachClipped()
1588 sc.zEnd = zend; in nScriptForEachClipped()
1589 sc.strategy = RS_FOR_EACH_STRATEGY_DONT_CARE; in nScriptForEachClipped()
1590 sc.arrayStart = 0; in nScriptForEachClipped()
1591 sc.arrayEnd = 0; in nScriptForEachClipped()
[all …]
/frameworks/native/opengl/tests/hwc/
DhwcCommit.cpp267 } sc; member
500 measPtr->sc.minWidth = scMinWidth(format->format, measPtr->df.minDim); in main()
501 testPrintI(" scMinWidth: %u", measPtr->sc.minWidth); in main()
503 measPtr->sc.minHeight = scMinHeight(format->format, measPtr->df.minDim); in main()
504 testPrintI(" scMinHeight: %u", measPtr->sc.minHeight); in main()
506 measPtr->sc.maxWidth = scMaxWidth(format->format, measPtr->df.maxDim); in main()
507 testPrintI(" scMaxWidth: %s%u", (measPtr->sc.maxWidth in main()
509 measPtr->sc.maxWidth); in main()
511 measPtr->sc.maxHeight = scMaxHeight(format->format, measPtr->df.maxDim); in main()
512 testPrintI(" scMaxHeight: %s%u", (measPtr->sc.maxHeight in main()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneMmiCode.java338 String sc = makeEmptyNull(m.group(MATCH_GROUP_SERVICE_CODE)); in isScMatchesSuppServType() local
339 if (sc.equals(SC_CFUT)) { in isScMatchesSuppServType()
341 } else if(sc.equals(SC_BS_MT)) { in isScMatchesSuppServType()
355 scToCallForwardReason(String sc) { in scToCallForwardReason() argument
356 if (sc == null) { in scToCallForwardReason()
360 if (sc.equals(SC_CF_All)) { in scToCallForwardReason()
362 } else if (sc.equals(SC_CFU)) { in scToCallForwardReason()
364 } else if (sc.equals(SC_CFB)) { in scToCallForwardReason()
366 } else if (sc.equals(SC_CFNR)) { in scToCallForwardReason()
368 } else if (sc.equals(SC_CFNRy)) { in scToCallForwardReason()
[all …]
/frameworks/rs/tests/cpp_api/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/rs/
DrsHidlAdaptation.cpp755 const RsScriptCall *sc, size_t scLen) in ScriptForEach() argument
763 ScriptForEachMulti(context, script, slot, vains, inLen, vaout, params, paramLen, sc, scLen); in ScriptForEach()
769 size_t paramLen, const RsScriptCall *sc, in ScriptForEachMulti() argument
786 if (sc) { in ScriptForEachMulti()
787 _sc.strategy = static_cast<ForEachStrategy>(sc->strategy); in ScriptForEachMulti()
788 _sc.xStart = sc->xStart; in ScriptForEachMulti()
789 _sc.xEnd = sc->xEnd; in ScriptForEachMulti()
790 _sc.yStart = sc->yStart; in ScriptForEachMulti()
791 _sc.yEnd = sc->yEnd; in ScriptForEachMulti()
792 _sc.zStart = sc->zStart; in ScriptForEachMulti()
[all …]
/frameworks/rs/tests/cpp_api/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/rs/tests/cpp_api/cpp-globalguard/
Dcompute.cpp28 sp<ScriptC_multiply> sc; variable
59 sc = new ScriptC_multiply(rs); in main()
68 sc->forEach_multiply(ain, aout); in main()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmMmiCode.java423 scToCallForwardReason(String sc) { in scToCallForwardReason() argument
424 if (sc == null) { in scToCallForwardReason()
428 if (sc.equals(SC_CF_All)) { in scToCallForwardReason()
430 } else if (sc.equals(SC_CFU)) { in scToCallForwardReason()
432 } else if (sc.equals(SC_CFB)) { in scToCallForwardReason()
434 } else if (sc.equals(SC_CFNR)) { in scToCallForwardReason()
436 } else if (sc.equals(SC_CFNRy)) { in scToCallForwardReason()
438 } else if (sc.equals(SC_CF_All_Conditional)) { in scToCallForwardReason()
495 isServiceCodeCallForwarding(String sc) { in isServiceCodeCallForwarding() argument
496 return sc != null && in isServiceCodeCallForwarding()
[all …]
/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/tests/cpp_api/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()

12345