Home
last modified time | relevance | path

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

12345

/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/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/base/core/java/android/view/
DSurfaceControl.java1381 public Transaction show(SurfaceControl sc) { in show() argument
1382 sc.checkNotReleased(); in show()
1383 nativeSetFlags(mNativeObject, sc.mNativeObject, 0, SURFACE_HIDDEN); in show()
1387 public Transaction hide(SurfaceControl sc) { in hide() argument
1388 sc.checkNotReleased(); in hide()
1389 nativeSetFlags(mNativeObject, sc.mNativeObject, SURFACE_HIDDEN, SURFACE_HIDDEN); in hide()
1393 public Transaction setPosition(SurfaceControl sc, float x, float y) { in setPosition() argument
1394 sc.checkNotReleased(); in setPosition()
1395 nativeSetPosition(mNativeObject, sc.mNativeObject, x, y); in setPosition()
1399 public Transaction setSize(SurfaceControl sc, int w, int h) { in setSize() argument
[all …]
/frameworks/native/libs/gui/include/gui/
DSurfaceComposerClient.h146 std::size_t operator()(const sp<SurfaceControl>& sc) const { in operator()
147 return std::hash<SurfaceControl *>{}(sc.get()); in operator()
161 layer_state_t* getLayerState(const sp<SurfaceControl>& sc);
173 Transaction& show(const sp<SurfaceControl>& sc);
174 Transaction& hide(const sp<SurfaceControl>& sc);
175 Transaction& setPosition(const sp<SurfaceControl>& sc,
177 Transaction& setSize(const sp<SurfaceControl>& sc,
179 Transaction& setLayer(const sp<SurfaceControl>& sc,
193 Transaction& setRelativeLayer(const sp<SurfaceControl>& sc,
195 Transaction& setFlags(const sp<SurfaceControl>& sc,
[all …]
/frameworks/native/libs/gui/
DSurfaceComposerClient.cpp197 layer_state_t* SurfaceComposerClient::Transaction::getLayerState(const sp<SurfaceControl>& sc) { in getLayerState() argument
198 if (mComposerStates.count(sc) == 0) { in getLayerState()
201 s.client = sc->getClient()->mClient; in getLayerState()
202 s.state.surface = sc->getHandle(); in getLayerState()
203 mComposerStates[sc] = s; in getLayerState()
206 return &(mComposerStates[sc].state); in getLayerState()
210 const sp<SurfaceControl>& sc, float x, float y) { in setPosition() argument
211 layer_state_t* s = getLayerState(sc); in setPosition()
223 const sp<SurfaceControl>& sc) { in show() argument
224 return setFlags(sc, 0, layer_state_t::eLayerHidden); in show()
[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/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/base/services/tests/servicestests/src/com/android/server/wm/
DZOrderingTests.java67 public SurfaceControl.Transaction setLayer(SurfaceControl sc, int layer) { in setLayer() argument
68 mRelativeLayersForControl.remove(sc); in setLayer()
69 mLayersForControl.put(sc, layer); in setLayer()
70 return super.setLayer(sc, layer); in setLayer()
74 public SurfaceControl.Transaction setRelativeLayer(SurfaceControl sc, in setRelativeLayer() argument
77 mRelativeLayersForControl.put(sc, relativeTo); in setRelativeLayer()
78 mLayersForControl.put(sc, layer); in setRelativeLayer()
79 return super.setRelativeLayer(sc, relativeTo, layer); in setRelativeLayer()
82 private int getLayer(SurfaceControl sc) { in getLayer() argument
83 return mLayersForControl.getOrDefault(sc, 0); in getLayer()
[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 .setLayer(sc, 0x7FFFFFFF) in WindowSurface()
67 .show(sc) in WindowSurface()
70 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.cpp525 const RsScriptCall *sc) { in setUpMtlsDimensions() argument
529 if (!sc || (sc->SC_FIELD##End == 0)) { \ in setUpMtlsDimensions()
533 rsMin(baseDim.DIM_FIELD, sc->SC_FIELD##Start); \ in setUpMtlsDimensions()
535 rsMin(baseDim.DIM_FIELD, sc->SC_FIELD##End); \ in setUpMtlsDimensions()
558 const RsScriptCall *sc, in reduceMtlsSetup() argument
594 if (!setUpMtlsDimensions(mtls, mtls->redp.dim, sc)) { in reduceMtlsSetup()
630 const RsScriptCall *sc, in forEachMtlsSetup() argument
684 } else if (sc != nullptr) { in forEachMtlsSetup()
685 mtls->fep.dim.x = sc->xEnd; in forEachMtlsSetup()
686 mtls->fep.dim.y = sc->yEnd; in forEachMtlsSetup()
[all …]
/frameworks/compile/slang/tests/P_reduce_general_accumulator/
DScriptC_reduce_general_accumulator.java.expect105 public result_int reduce_my_half(Allocation ain1, Script.LaunchOptions sc) {
112 reduce(mExportReduceIdx_my_half, new Allocation[]{ain1}, aout, sc);
138 public result_int reduce_my_half2(Allocation ain1, Script.LaunchOptions sc) {
145 reduce(mExportReduceIdx_my_half2, new Allocation[]{ain1}, aout, sc);
171 public result_int reduce_my_half4(Allocation ain1, Script.LaunchOptions sc) {
178 reduce(mExportReduceIdx_my_half4, new Allocation[]{ain1}, aout, sc);
204 public result_int reduce_my_array_half(Allocation ain1, Script.LaunchOptions sc) {
211 reduce(mExportReduceIdx_my_array_half, new Allocation[]{ain1}, aout, sc);
237 public result_int reduce_my_array_half2(Allocation ain1, Script.LaunchOptions sc) {
244 reduce(mExportReduceIdx_my_array_half2, new Allocation[]{ain1}, aout, sc);
[all …]
/frameworks/compile/slang/tests/P_reduce_general_input/
DScriptC_reduce_general_input.java.expect173 public result_int reduce_my_half_0(Allocation ain1, Script.LaunchOptions sc) {
180 reduce(mExportReduceIdx_my_half_0, new Allocation[]{ain1}, aout, sc);
206 public result_int reduce_my_half_1(Allocation ain1, Script.LaunchOptions sc) {
213 reduce(mExportReduceIdx_my_half_1, new Allocation[]{ain1}, aout, sc);
239 public result_int reduce_my_half_2(Allocation ain1, Script.LaunchOptions sc) {
246 reduce(mExportReduceIdx_my_half_2, new Allocation[]{ain1}, aout, sc);
272 public result_int reduce_my_half_3(Allocation ain1, Script.LaunchOptions sc) {
279 reduce(mExportReduceIdx_my_half_3, new Allocation[]{ain1}, aout, sc);
305 public result_int reduce_my_half_4(Allocation ain1, Script.LaunchOptions sc) {
312 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.cpp1584 RsScriptCall sc; in nScriptForEachClipped() local
1585 sc.xStart = xstart; in nScriptForEachClipped()
1586 sc.xEnd = xend; in nScriptForEachClipped()
1587 sc.yStart = ystart; in nScriptForEachClipped()
1588 sc.yEnd = yend; in nScriptForEachClipped()
1589 sc.zStart = zstart; in nScriptForEachClipped()
1590 sc.zEnd = zend; in nScriptForEachClipped()
1591 sc.strategy = RS_FOR_EACH_STRATEGY_DONT_CARE; in nScriptForEachClipped()
1592 sc.arrayStart = 0; in nScriptForEachClipped()
1593 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/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/native/services/surfaceflinger/tests/
DTransaction_test.cpp147 static void fillSurfaceRGBA8(const sp<SurfaceControl>& sc, uint8_t r, uint8_t g, uint8_t b, in fillSurfaceRGBA8() argument
150 sp<Surface> s = sc->getSurface(); in fillSurfaceRGBA8()
172 static void captureScreen(sp<ScreenCapture>* sc, int32_t minLayerZ = 0, in captureScreen() argument
182 *sc = new ScreenCapture(outBuffer); in captureScreen()
185 static void captureLayers(std::unique_ptr<ScreenCapture>* sc, sp<IBinder>& parentHandle, in captureLayers() argument
192 *sc = std::make_unique<ScreenCapture>(outBuffer); in captureLayers()
195 static void captureChildLayers(std::unique_ptr<ScreenCapture>* sc, sp<IBinder>& parentHandle, in captureChildLayers() argument
202 *sc = std::make_unique<ScreenCapture>(outBuffer); in captureChildLayers()
1591 sp<ScreenCapture> sc; in TEST_F() local
1605 ScreenCapture::captureScreen(&sc); in TEST_F()
[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/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/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/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneMmiCode.java366 String sc = makeEmptyNull(m.group(MATCH_GROUP_SERVICE_CODE)); in isScMatchesSuppServType() local
367 if (sc.equals(SC_CFUT)) { in isScMatchesSuppServType()
369 } else if(sc.equals(SC_BS_MT)) { in isScMatchesSuppServType()
383 scToCallForwardReason(String sc) { in scToCallForwardReason() argument
384 if (sc == null) { in scToCallForwardReason()
388 if (sc.equals(SC_CF_All)) { in scToCallForwardReason()
390 } else if (sc.equals(SC_CFU)) { in scToCallForwardReason()
392 } else if (sc.equals(SC_CFB)) { in scToCallForwardReason()
394 } else if (sc.equals(SC_CFNR)) { in scToCallForwardReason()
396 } else if (sc.equals(SC_CFNRy)) { in scToCallForwardReason()
[all …]

12345