/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | StubTransaction.java | 46 public SurfaceControl.Transaction setVisibility(SurfaceControl sc, boolean visible) { in setVisibility() argument 51 public SurfaceControl.Transaction show(SurfaceControl sc) { in show() argument 56 public SurfaceControl.Transaction hide(SurfaceControl sc) { in hide() argument 61 public SurfaceControl.Transaction setPosition(SurfaceControl sc, float x, float y) { in setPosition() argument 66 public SurfaceControl.Transaction setBufferSize(SurfaceControl sc, in setBufferSize() argument 72 public SurfaceControl.Transaction setLayer(SurfaceControl sc, int z) { in setLayer() argument 77 public SurfaceControl.Transaction setRelativeLayer(SurfaceControl sc, SurfaceControl relativeTo, in setRelativeLayer() argument 83 public SurfaceControl.Transaction setTransparentRegionHint(SurfaceControl sc, in setTransparentRegionHint() argument 89 public SurfaceControl.Transaction setAlpha(SurfaceControl sc, float alpha) { in setAlpha() argument 94 public SurfaceControl.Transaction setInputWindowInfo(SurfaceControl sc, in setInputWindowInfo() argument [all …]
|
D | ZOrderingTests.java | 73 public SurfaceControl.Transaction setLayer(SurfaceControl sc, int layer) { in setLayer() argument 74 mRelativeLayersForControl.remove(sc); in setLayer() 75 mLayersForControl.put(sc, layer); in setLayer() 80 public SurfaceControl.Transaction setRelativeLayer(SurfaceControl sc, in setRelativeLayer() argument 83 mRelativeLayersForControl.put(sc, relativeTo); in setRelativeLayer() 84 mLayersForControl.put(sc, layer); in setRelativeLayer() 88 private int getLayer(SurfaceControl sc) { in getLayer() argument 89 return mLayersForControl.getOrDefault(sc, 0); in getLayer() 92 private SurfaceControl getRelativeLayer(SurfaceControl sc) { in getRelativeLayer() argument 93 return mRelativeLayersForControl.get(sc); in getRelativeLayer() [all …]
|
/frameworks/rs/tests/cpp_api/cppbasic/ |
D | compute.cpp | 35 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/ |
D | compute.cpp | 35 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/native/libs/gui/include/gui/ |
D | SurfaceComposerClient.h | 60 SurfaceControlStats(const sp<SurfaceControl>& sc, nsecs_t time, in SurfaceControlStats() 62 : surfaceControl(sc), acquireTime(time), previousReleaseFence(prevReleaseFence) {} in SurfaceControlStats() 268 std::size_t operator()(const sp<SurfaceControl>& sc) const { in operator() 269 return std::hash<SurfaceControl *>{}(sc.get()); in operator() 317 layer_state_t* getLayerState(const sp<SurfaceControl>& sc); 321 void registerSurfaceControlForCallback(const sp<SurfaceControl>& sc); 332 Transaction& show(const sp<SurfaceControl>& sc); 333 Transaction& hide(const sp<SurfaceControl>& sc); 334 Transaction& setPosition(const sp<SurfaceControl>& sc, 336 Transaction& setSize(const sp<SurfaceControl>& sc, [all …]
|
/frameworks/native/libs/gui/ |
D | SurfaceComposerClient.cpp | 408 for (auto& [sc, cs] : mComposerStates) { in cacheBuffers() 409 layer_state_t* s = getLayerState(sc); in cacheBuffers() 548 layer_state_t* SurfaceComposerClient::Transaction::getLayerState(const sp<SurfaceControl>& sc) { in getLayerState() argument 549 if (mComposerStates.count(sc) == 0) { in getLayerState() 552 s.client = sc->getClient()->mClient; in getLayerState() 553 s.state.surface = sc->getHandle(); in getLayerState() 554 mComposerStates[sc] = s; in getLayerState() 557 return &(mComposerStates[sc].state); in getLayerState() 561 const sp<SurfaceControl>& sc) { in registerSurfaceControlForCallback() argument 563 callbackInfo.surfaceControls.insert(sc); in registerSurfaceControlForCallback() [all …]
|
/frameworks/base/core/java/android/view/ |
D | SurfaceControl.java | 2124 public Transaction setVisibility(@NonNull SurfaceControl sc, boolean visible) { in setVisibility() argument 2125 sc.checkNotReleased(); in setVisibility() 2127 return show(sc); in setVisibility() 2129 return hide(sc); in setVisibility() 2141 public Transaction show(SurfaceControl sc) { in show() argument 2142 sc.checkNotReleased(); in show() 2143 nativeSetFlags(mNativeObject, sc.mNativeObject, 0, SURFACE_HIDDEN); in show() 2155 public Transaction hide(SurfaceControl sc) { in hide() argument 2156 sc.checkNotReleased(); in hide() 2157 nativeSetFlags(mNativeObject, sc.mNativeObject, SURFACE_HIDDEN, SURFACE_HIDDEN); in hide() [all …]
|
/frameworks/base/rs/java/android/renderscript/ |
D | RenderScriptGL.java | 76 public SurfaceConfig(SurfaceConfig sc) { in SurfaceConfig() argument 77 mDepthMin = sc.mDepthMin; in SurfaceConfig() 78 mDepthPref = sc.mDepthPref; in SurfaceConfig() 79 mStencilMin = sc.mStencilMin; in SurfaceConfig() 80 mStencilPref = sc.mStencilPref; in SurfaceConfig() 81 mColorMin = sc.mColorMin; in SurfaceConfig() 82 mColorPref = sc.mColorPref; in SurfaceConfig() 83 mAlphaMin = sc.mAlphaMin; in SurfaceConfig() 84 mAlphaPref = sc.mAlphaPref; in SurfaceConfig() 85 mSamplesMin = sc.mSamplesMin; in SurfaceConfig() [all …]
|
D | Script.java | 180 FieldPacker v, LaunchOptions sc) { in forEach() argument 186 if (ain == null && aout == null && sc == null) { in forEach() 208 if (sc != null) { in forEach() 211 limits[0] = sc.xstart; in forEach() 212 limits[1] = sc.xend; in forEach() 213 limits[2] = sc.ystart; in forEach() 214 limits[3] = sc.yend; in forEach() 215 limits[4] = sc.zstart; in forEach() 216 limits[5] = sc.zend; in forEach() 236 FieldPacker v, LaunchOptions sc) { in forEach() argument [all …]
|
/frameworks/rs/support/java/src/androidx/renderscript/ |
D | Script.java | 282 …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/libs/gui/tests/ |
D | EndToEndNativeInputTest.cpp | 68 InputSurface(const sp<SurfaceControl> &sc, int width, int height) { in InputSurface() argument 69 mSurfaceControl = sc; in InputSurface() 282 surface2->doTransaction([](auto &t, auto &sc) { in TEST_F() argument 283 t.setPosition(sc, 100, 100); in TEST_F() 285 surface->doTransaction([](auto &t, auto &sc) { in TEST_F() argument 286 t.setPosition(sc, 200, 200); in TEST_F() 303 surface->doTransaction([](auto &t, auto &sc) { in TEST_F() argument 304 t.setLayer(sc, LAYER_BASE + 1); in TEST_F() 310 surface2->doTransaction([](auto &t, auto &sc) { in TEST_F() argument 311 t.setLayer(sc, LAYER_BASE + 1); in TEST_F() [all …]
|
/frameworks/native/opengl/tests/lib/ |
D | WindowSurface.cpp | 61 sp<SurfaceControl> sc = surfaceComposerClient->createSurface( in WindowSurface() local 64 if (sc == nullptr || !sc->isValid()) { in WindowSurface() 70 .setLayer(sc, 0x7FFFFFFF) in WindowSurface() 71 .show(sc) in WindowSurface() 74 mSurfaceControl = sc; in WindowSurface()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
D | ImsPhoneMmiCode.java | 380 String sc = makeEmptyNull(m.group(MATCH_GROUP_SERVICE_CODE)); in isScMatchesSuppServType() local 381 if (sc.equals(SC_CFUT)) { in isScMatchesSuppServType() 383 } else if(sc.equals(SC_BS_MT)) { in isScMatchesSuppServType() 398 scToCallForwardReason(String sc) { in scToCallForwardReason() argument 399 if (sc == null) { in scToCallForwardReason() 403 if (sc.equals(SC_CF_All)) { in scToCallForwardReason() 405 } else if (sc.equals(SC_CFU)) { in scToCallForwardReason() 407 } else if (sc.equals(SC_CFB)) { in scToCallForwardReason() 409 } else if (sc.equals(SC_CFNR)) { in scToCallForwardReason() 411 } else if (sc.equals(SC_CFNRy)) { in scToCallForwardReason() [all …]
|
/frameworks/compile/slang/tests/P_reduce_general_accumulator/ |
D | ScriptC_reduce_general_accumulator.java.expect | 105 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/rs/cpu_ref/ |
D | rsCpuIntrinsic.cpp | 79 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()
|
D | rsCpuScript.h | 51 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);
|
D | rsCpuIntrinsic.h | 38 const RsBlasCall *sc; member 55 const RsScriptCall *sc) override; 63 uint32_t usrLen, const RsScriptCall * sc) override; 67 const RsScriptCall * sc) override;
|
D | rsCpuScript.cpp | 525 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_input/ |
D | ScriptC_reduce_general_input.java.expect | 173 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/base/tests/SystemMemoryTest/host/src/com/android/tests/sysmem/host/ |
D | Metrics.java | 98 Scanner sc = new Scanner(showmap.substring(pos)); in sample() local 99 sc.next(); in sample() 100 long vss = sc.nextLong(); in sample() 101 long rss = sc.nextLong(); in sample() 102 long pss = sc.nextLong(); in sample()
|
/frameworks/rs/driver/ |
D | rsdBcc.cpp | 75 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/ |
D | android_renderscript_RenderScript.cpp | 1584 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/ |
D | hwcCommit.cpp | 269 } sc; member 502 measPtr->sc.minWidth = scMinWidth(format->format, measPtr->df.minDim); in main() 503 testPrintI(" scMinWidth: %u", measPtr->sc.minWidth); in main() 505 measPtr->sc.minHeight = scMinHeight(format->format, measPtr->df.minDim); in main() 506 testPrintI(" scMinHeight: %u", measPtr->sc.minHeight); in main() 508 measPtr->sc.maxWidth = scMaxWidth(format->format, measPtr->df.maxDim); in main() 509 testPrintI(" scMaxWidth: %s%u", (measPtr->sc.maxWidth in main() 511 measPtr->sc.maxWidth); in main() 513 measPtr->sc.maxHeight = scMaxHeight(format->format, measPtr->df.maxDim); in main() 514 testPrintI(" scMaxHeight: %s%u", (measPtr->sc.maxHeight in main() [all …]
|
/frameworks/rs/ |
D | rsHidlAdaptation.cpp | 755 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/latency/ |
D | latency.cpp | 73 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()
|