Home
last modified time | relevance | path

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

123456

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DStubTransaction.java47 public SurfaceControl.Transaction setVisibility(SurfaceControl sc, boolean visible) { in setVisibility() argument
52 public SurfaceControl.Transaction show(SurfaceControl sc) { in show() argument
57 public SurfaceControl.Transaction hide(SurfaceControl sc) { in hide() argument
62 public SurfaceControl.Transaction setPosition(SurfaceControl sc, float x, float y) { in setPosition() argument
67 public SurfaceControl.Transaction setBufferSize(SurfaceControl sc, in setBufferSize() argument
73 public SurfaceControl.Transaction setLayer(SurfaceControl sc, int z) { in setLayer() argument
78 public SurfaceControl.Transaction setRelativeLayer(SurfaceControl sc, SurfaceControl relativeTo, in setRelativeLayer() argument
84 public SurfaceControl.Transaction setTransparentRegionHint(SurfaceControl sc, in setTransparentRegionHint() argument
90 public SurfaceControl.Transaction setAlpha(SurfaceControl sc, float alpha) { in setAlpha() argument
95 public SurfaceControl.Transaction setInputWindowInfo(SurfaceControl sc, in setInputWindowInfo() argument
[all …]
DZOrderingTests.java76 public SurfaceControl.Transaction setLayer(SurfaceControl sc, int layer) { in setLayer() argument
77 mRelativeLayersForControl.remove(sc); in setLayer()
78 mLayersForControl.put(sc, layer); in setLayer()
83 public SurfaceControl.Transaction setRelativeLayer(SurfaceControl sc, in setRelativeLayer() argument
86 mRelativeLayersForControl.put(sc, relativeTo); in setRelativeLayer()
87 mLayersForControl.put(sc, layer); in setRelativeLayer()
91 private int getLayer(SurfaceControl sc) { in getLayer() argument
92 return mLayersForControl.getOrDefault(sc, 0); in getLayer()
95 private SurfaceControl getRelativeLayer(SurfaceControl sc) { in getRelativeLayer() argument
96 return mRelativeLayersForControl.get(sc); in getRelativeLayer()
[all …]
/frameworks/native/services/surfaceflinger/tests/
DSetGeometry_test.cpp37 ScreenCapture::captureScreen(&sc); in SetUp()
38 sc->expectColor(Rect(0, 0, mLayerWidth, mLayerHeight), Color::RED); in SetUp()
39 sc->expectBorder(Rect(0, 0, mLayerWidth, mLayerHeight), Color::BLACK); in SetUp()
45 sc = 0; in TearDown()
49 std::unique_ptr<ScreenCapture> sc; member in android::SetGeometryTest
62 ScreenCapture::captureScreen(&sc); in TEST_F()
63 sc->expectColor(dest, Color::RED); in TEST_F()
64 sc->expectBorder(dest, Color::BLACK); in TEST_F()
75 ScreenCapture::captureScreen(&sc); in TEST_F()
76 sc->expectColor(dest, Color::RED); in TEST_F()
[all …]
DRelativeZ_test.cpp65 std::unique_ptr<ScreenCapture> sc; in TEST_F() local
80 ScreenCapture::captureScreen(&sc); in TEST_F()
81 sc->checkPixel(1, 1, Color::BLUE.r, Color::BLUE.g, Color::BLUE.b); in TEST_F()
95 ScreenCapture::captureScreen(&sc); in TEST_F()
96 sc->checkPixel(1, 1, Color::GREEN.r, Color::GREEN.g, Color::GREEN.b); in TEST_F()
103 std::unique_ptr<ScreenCapture> sc; in TEST_F() local
129 ScreenCapture::captureScreen(&sc); in TEST_F()
130 sc->checkPixel(1, 1, Color::GREEN.r, Color::GREEN.g, Color::GREEN.b); in TEST_F()
147 ScreenCapture::captureScreen(&sc); in TEST_F()
148 sc->checkPixel(1, 1, Color::GREEN.r, Color::GREEN.g, Color::GREEN.b); in TEST_F()
[all …]
DMultiDisplayLayerBounds_test.cpp99 std::unique_ptr<ScreenCapture> sc; in TEST_F() local
100 ScreenCapture::captureScreen(&sc, mMainDisplay); in TEST_F()
101 sc->expectColor(Rect(10, 10, 40, 50), {0, 0, 0, 255}); in TEST_F()
102 sc->expectColor(Rect(0, 0, 9, 9), {0, 0, 0, 255}); in TEST_F()
105 ScreenCapture::captureScreen(&sc, mVirtualDisplay); in TEST_F()
106 sc->expectColor(Rect(10, 10, 40, 50), mExpectedColor); in TEST_F()
107 sc->expectColor(Rect(1, 1, 9, 9), {0, 0, 0, 255}); in TEST_F()
123 std::unique_ptr<ScreenCapture> sc; in TEST_F() local
124 ScreenCapture::captureScreen(&sc, mMainDisplay); in TEST_F()
125 sc->expectColor(Rect(10, 10, 40, 50), mExpectedColor); in TEST_F()
[all …]
DLayerUpdate_test.cpp107 std::unique_ptr<ScreenCapture> sc; in TEST_F() local
120 ScreenCapture::captureScreen(&sc); in TEST_F()
121 sc->checkPixel(64, 64, 10, 10, 10); in TEST_F()
127 ScreenCapture::captureScreen(&sc); in TEST_F()
128 sc->checkPixel(64, 64, 10, 10, 10); in TEST_F()
136 ScreenCapture::captureScreen(&sc); in TEST_F()
137 sc->expectFGColor(64, 64); in TEST_F()
145 ScreenCapture::captureScreen(&sc); in EXPECT_INITIAL_STATE()
147 sc->expectFGColor(127, 127); in EXPECT_INITIAL_STATE()
148 sc->expectBGColor(128, 128); in EXPECT_INITIAL_STATE()
[all …]
/frameworks/base/core/java/android/view/
DSurfaceControl.java2227 SurfaceControl sc = new SurfaceControl(); in mirrorSurface() local
2228 sc.assignNativeObject(nativeObj, "mirrorSurface"); in mirrorSurface()
2229 return sc; in mirrorSurface()
2293 protected void checkPreconditions(SurfaceControl sc) { in checkPreconditions() argument
2294 sc.checkNotReleased(); in checkPreconditions()
2379 public Transaction setVisibility(@NonNull SurfaceControl sc, boolean visible) { in setVisibility() argument
2380 checkPreconditions(sc); in setVisibility()
2382 return show(sc); in setVisibility()
2384 return hide(sc); in setVisibility()
2395 public Transaction setFrameRateSelectionPriority(@NonNull SurfaceControl sc, int priority) { in setFrameRateSelectionPriority() argument
[all …]
/frameworks/native/libs/gui/include/gui/
DSurfaceComposerClient.h55 SurfaceControlStats(const sp<SurfaceControl>& sc, nsecs_t latchTime, nsecs_t acquireTime, in SurfaceControlStats()
58 : surfaceControl(sc), in SurfaceControlStats()
315 std::size_t operator()(const sp<SurfaceControl>& sc) const { in operator()
316 return std::hash<SurfaceControl *>{}(sc.get()); in operator()
374 layer_state_t* getLayerState(const sp<SurfaceControl>& sc) { in getLayerState() argument
375 return getLayerState(sc->getHandle()); in getLayerState()
380 void registerSurfaceControlForCallback(const sp<SurfaceControl>& sc);
400 Transaction& show(const sp<SurfaceControl>& sc);
401 Transaction& hide(const sp<SurfaceControl>& sc);
402 Transaction& setPosition(const sp<SurfaceControl>& sc,
[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/native/libs/gui/
DSurfaceComposerClient.cpp777 const sp<SurfaceControl>& sc) { in registerSurfaceControlForCallback() argument
779 callbackInfo.surfaceControls.insert(sc); in registerSurfaceControlForCallback()
782 ->addSurfaceControlToCallbacks(sc, callbackInfo.callbackIds); in registerSurfaceControlForCallback()
786 const sp<SurfaceControl>& sc, float x, float y) { in setPosition() argument
787 layer_state_t* s = getLayerState(sc); in setPosition()
796 registerSurfaceControlForCallback(sc); in setPosition()
801 const sp<SurfaceControl>& sc) { in show() argument
802 return setFlags(sc, 0, layer_state_t::eLayerHidden); in show()
806 const sp<SurfaceControl>& sc) { in hide() argument
807 return setFlags(sc, layer_state_t::eLayerHidden, layer_state_t::eLayerHidden); in hide()
[all …]
/frameworks/base/rs/java/android/renderscript/
DRenderScriptGL.java76 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 …]
DScript.java180 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/
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/libs/gui/tests/
DEndToEndNativeInputTest.cpp68 InputSurface(const sp<SurfaceControl> &sc, int width, int height) { in InputSurface() argument
69 mSurfaceControl = sc; in InputSurface()
312 surface2->doTransaction([](auto &t, auto &sc) { in TEST_F() argument
313 t.setPosition(sc, 100, 100); in TEST_F()
315 surface->doTransaction([](auto &t, auto &sc) { in TEST_F() argument
316 t.setPosition(sc, 200, 200); in TEST_F()
336 surface->doTransaction([](auto &t, auto &sc) { in TEST_F() argument
337 t.setLayer(sc, LAYER_BASE + 1); in TEST_F()
345 surface2->doTransaction([](auto &t, auto &sc) { in TEST_F() argument
346 t.setLayer(sc, LAYER_BASE + 1); in TEST_F()
[all …]
/frameworks/native/opengl/tests/lib/
DWindowSurface.cpp68 sp<SurfaceControl> sc = surfaceComposerClient->createSurface( in WindowSurface() local
71 if (sc == nullptr || !sc->isValid()) { in WindowSurface()
77 .setLayer(sc, 0x7FFFFFFF) in WindowSurface()
78 .show(sc) in WindowSurface()
81 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);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneMmiCode.java382 String sc = makeEmptyNull(m.group(MATCH_GROUP_SERVICE_CODE)); in isScMatchesSuppServType() local
383 if (sc.equals(SC_CFUT)) { in isScMatchesSuppServType()
385 } else if(sc.equals(SC_BS_MT)) { in isScMatchesSuppServType()
400 scToCallForwardReason(String sc) { in scToCallForwardReason() argument
401 if (sc == null) { in scToCallForwardReason()
405 if (sc.equals(SC_CF_All)) { in scToCallForwardReason()
407 } else if (sc.equals(SC_CFU)) { in scToCallForwardReason()
409 } else if (sc.equals(SC_CFB)) { in scToCallForwardReason()
411 } else if (sc.equals(SC_CFNR)) { in scToCallForwardReason()
413 } else if (sc.equals(SC_CFNRy)) { in scToCallForwardReason()
[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/native/services/surfaceflinger/tests/utils/
DScreenshotUtils.h30 static void captureScreen(std::unique_ptr<ScreenCapture>* sc) { in captureScreen() argument
31 captureScreen(sc, SurfaceComposerClient::getInternalDisplayToken()); in captureScreen()
34 static void captureScreen(std::unique_ptr<ScreenCapture>* sc, sp<IBinder> displayToken) { in captureScreen() argument
40 *sc = std::make_unique<ScreenCapture>(outBuffer); in captureScreen()
43 static void captureLayers(std::unique_ptr<ScreenCapture>* sc, sp<IBinder>& parentHandle,
50 *sc = std::make_unique<ScreenCapture>(outBuffer);
53 static void captureChildLayers(std::unique_ptr<ScreenCapture>* sc, sp<IBinder>& parentHandle,
60 *sc = std::make_unique<ScreenCapture>(outBuffer);
64 std::unique_ptr<ScreenCapture>* sc, sp<IBinder>& parentHandle, in captureChildLayersExcluding() argument
74 *sc = std::make_unique<ScreenCapture>(outBuffer); in captureChildLayersExcluding()
/frameworks/base/graphics/java/android/graphics/
DBLASTBufferQueue.java37 public BLASTBufferQueue(SurfaceControl sc, int width, int height, in BLASTBufferQueue() argument
39 mNativeObject = nativeCreate(sc.mNativeObject, width, height, tripleBufferingEnabled); in BLASTBufferQueue()
54 public void update(SurfaceControl sc, int width, int height) { in update() argument
55 nativeUpdate(mNativeObject, sc.mNativeObject, width, height); in update()
/frameworks/base/tests/SystemMemoryTest/host/src/com/android/tests/sysmem/host/
DMetrics.java98 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/
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()

123456