Home
last modified time | relevance | path

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

123456789

/frameworks/base/services/tests/servicestests/utils/com/android/server/testutils/
DStubTransaction.java61 public SurfaceControl.Transaction setVisibility(SurfaceControl sc, boolean visible) { in setVisibility() argument
66 public SurfaceControl.Transaction show(SurfaceControl sc) { in show() argument
71 public SurfaceControl.Transaction hide(SurfaceControl sc) { in hide() argument
76 public SurfaceControl.Transaction setPosition(SurfaceControl sc, float x, float y) { in setPosition() argument
81 public SurfaceControl.Transaction setBufferSize(SurfaceControl sc, in setBufferSize() argument
87 public SurfaceControl.Transaction setLayer(SurfaceControl sc, int z) { in setLayer() argument
92 public SurfaceControl.Transaction setRelativeLayer(SurfaceControl sc, SurfaceControl relativeTo, in setRelativeLayer() argument
98 public SurfaceControl.Transaction setTransparentRegionHint(SurfaceControl sc, in setTransparentRegionHint() argument
104 public SurfaceControl.Transaction setAlpha(SurfaceControl sc, float alpha) { in setAlpha() argument
109 public SurfaceControl.Transaction setInputWindowInfo(SurfaceControl sc, in setInputWindowInfo() argument
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/util/
DStubTransaction.java63 public SurfaceControl.Transaction setVisibility(SurfaceControl sc, boolean visible) { in setVisibility() argument
68 public SurfaceControl.Transaction show(SurfaceControl sc) { in show() argument
73 public SurfaceControl.Transaction hide(SurfaceControl sc) { in hide() argument
78 public SurfaceControl.Transaction setPosition(SurfaceControl sc, float x, float y) { in setPosition() argument
83 public SurfaceControl.Transaction setBufferSize(SurfaceControl sc, in setBufferSize() argument
89 public SurfaceControl.Transaction setLayer(SurfaceControl sc, int z) { in setLayer() argument
94 public SurfaceControl.Transaction setRelativeLayer(SurfaceControl sc, SurfaceControl relativeTo, in setRelativeLayer() argument
100 public SurfaceControl.Transaction setTransparentRegionHint(SurfaceControl sc, in setTransparentRegionHint() argument
106 public SurfaceControl.Transaction setAlpha(SurfaceControl sc, float alpha) { in setAlpha() argument
111 public SurfaceControl.Transaction setInputWindowInfo(SurfaceControl sc, in setInputWindowInfo() argument
[all …]
/frameworks/base/core/java/android/view/
DSurfaceControl.java2576 SurfaceControl sc = new SurfaceControl(); in mirrorSurface() local
2577 sc.mName = mirrorOf.mName + " (mirror)"; in mirrorSurface()
2578 sc.assignNativeObject(nativeObj, "mirrorSurface"); in mirrorSurface()
2579 return sc; in mirrorSurface()
2822 protected void checkPreconditions(SurfaceControl sc) { in checkPreconditions() argument
2823 sc.checkNotReleased(); in checkPreconditions()
2969 public Transaction setVisibility(@NonNull SurfaceControl sc, boolean visible) { in setVisibility() argument
2970 checkPreconditions(sc); in setVisibility()
2972 return show(sc); in setVisibility()
2974 return hide(sc); in setVisibility()
[all …]
DSurfaceControlRegistry.java82 final SurfaceControl sc = entry.getKey(); in onMaxLayersExceeded() local
83 if (sc == null) { in onMaxLayersExceeded()
90 pw.print(sc.getName()); in onMaxLayersExceeded()
91 pw.print(" (" + sc.getCallsite() + ")"); in onMaxLayersExceeded()
235 void add(SurfaceControl sc) { in add() argument
237 mSurfaceControls.put(sc, SystemClock.elapsedRealtime()); in add()
252 void remove(SurfaceControl sc) { in remove() argument
254 mSurfaceControls.remove(sc); in remove()
317 @Nullable SurfaceControl.Transaction tx, @Nullable SurfaceControl sc, in checkCallStackDebugging() argument
322 if (!matchesForCallStackDebugging(sc != null ? sc.getName() : null, call)) { in checkCallStackDebugging()
[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.cpp67 std::unique_ptr<ScreenCapture> sc; in TEST_F() local
79 ScreenCapture::captureScreen(&sc); in TEST_F()
80 sc->checkPixel(1, 1, Color::BLUE.r, Color::BLUE.g, Color::BLUE.b); in TEST_F()
94 ScreenCapture::captureScreen(&sc); in TEST_F()
95 sc->checkPixel(1, 1, Color::GREEN.r, Color::GREEN.g, Color::GREEN.b); in TEST_F()
102 std::unique_ptr<ScreenCapture> sc; in TEST_F() local
128 ScreenCapture::captureScreen(&sc); in TEST_F()
129 sc->checkPixel(1, 1, Color::GREEN.r, Color::GREEN.g, Color::GREEN.b); in TEST_F()
146 ScreenCapture::captureScreen(&sc); in TEST_F()
147 sc->checkPixel(1, 1, Color::GREEN.r, Color::GREEN.g, Color::GREEN.b); in TEST_F()
[all …]
DMultiDisplayLayerBounds_test.cpp108 std::unique_ptr<ScreenCapture> sc; in TEST_F() local
109 ScreenCapture::captureScreen(&sc, mMainDisplay); in TEST_F()
110 sc->expectColor(Rect(10, 10, 40, 50), {0, 0, 0, 255}); in TEST_F()
111 sc->expectColor(Rect(0, 0, 9, 9), {0, 0, 0, 255}); in TEST_F()
114 ScreenCapture::captureScreen(&sc, mVirtualDisplay); in TEST_F()
115 sc->expectColor(Rect(10, 10, 40, 50), mExpectedColor); in TEST_F()
116 sc->expectColor(Rect(1, 1, 9, 9), {0, 0, 0, 255}); in TEST_F()
135 std::unique_ptr<ScreenCapture> sc; in TEST_F() local
136 ScreenCapture::captureScreen(&sc, mMainDisplay); in TEST_F()
137 sc->expectColor(Rect(10, 10, 40, 50), mExpectedColor); in TEST_F()
[all …]
DLayerUpdate_test.cpp112 ScreenCapture::captureScreen(&sc); in EXPECT_INITIAL_STATE()
114 sc->expectFGColor(127, 127); in EXPECT_INITIAL_STATE()
115 sc->expectBGColor(128, 128); in EXPECT_INITIAL_STATE()
133 std::unique_ptr<ScreenCapture> sc; member in android::GeometryLatchingTest
140 ScreenCapture::captureScreen(&sc); in EXPECT_CROPPED_STATE()
142 sc->expectFGColor(126, 126); in EXPECT_CROPPED_STATE()
143 sc->expectBGColor(127, 127); in EXPECT_CROPPED_STATE()
144 sc->expectBGColor(128, 128); in EXPECT_CROPPED_STATE()
149 ScreenCapture::captureScreen(&sc); in EXPECT_RESIZE_STATE()
151 sc->expectFGColor(64, 64); in EXPECT_RESIZE_STATE()
[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/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/tests/ChoreographerTests/src/main/java/android/view/choreographertests/
DAttachedChoreographerTest.java151 SurfaceControl sc = mSurfaceView.getSurfaceControl(); in testCreateChoreographer()
152 mChoreographer = sc.getChoreographer(); in testCreateChoreographer()
154 SurfaceControl sc1 = new SurfaceControl(sc, "AttachedChoreographerTests"); in testCreateChoreographer()
164 SurfaceControl sc2 = new SurfaceControl(sc, "AttachedChoreographerTests"); in testCreateChoreographer()
174 SurfaceControl sc3 = new SurfaceControl(sc, "AttachedChoreographerTests"); in testCreateChoreographer()
208 SurfaceControl sc = mSurfaceView.getSurfaceControl(); in testCopySurfaceControl()
210 sc.getChoreographer(); in testCopySurfaceControl()
211 assertTrue(sc.hasChoreographer()); in testCopySurfaceControl()
214 SurfaceControl copyConstructorSc = new SurfaceControl(sc, "AttachedChoreographerTests"); in testCopySurfaceControl()
223 copyFromSc.copyFrom(sc, "AttachedChoreographerTests"); in testCopySurfaceControl()
[all …]
/frameworks/native/libs/gui/include/gui/
DSurfaceComposerClient.h71 SurfaceControlStats(const sp<SurfaceControl>& sc, nsecs_t latchTime, in SurfaceControlStats()
76 : surfaceControl(sc), in SurfaceControlStats()
394 std::size_t operator()(const sp<SurfaceControl>& sc) const { in operator()
395 return std::hash<SurfaceControl *>{}(sc.get()); in operator()
486 layer_state_t* getLayerState(const sp<SurfaceControl>& sc);
490 void registerSurfaceControlForCallback(const sp<SurfaceControl>& sc);
517 Transaction& show(const sp<SurfaceControl>& sc);
518 Transaction& hide(const sp<SurfaceControl>& sc);
519 Transaction& setPosition(const sp<SurfaceControl>& sc, float x, float y);
522 Transaction& setLayer(const sp<SurfaceControl>& sc,
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DScreenshotUtils.java38 public static void captureLayer(SurfaceControl sc, Rect crop, in captureLayer() argument
41 new ScreenCapture.LayerCaptureArgs.Builder(sc) in captureLayer()
56 BufferConsumer(SurfaceControl.Transaction t, SurfaceControl sc, SurfaceControl parentSc, in BufferConsumer() argument
59 mSurfaceControl = sc; in BufferConsumer()
96 public static SurfaceControl takeScreenshot(SurfaceControl.Transaction t, SurfaceControl sc, in takeScreenshot() argument
98 return takeScreenshot(t, sc, sc /* parentSc */, crop, layer); in takeScreenshot()
112 public static SurfaceControl takeScreenshot(SurfaceControl.Transaction t, SurfaceControl sc, in takeScreenshot() argument
114 BufferConsumer consumer = new BufferConsumer(t, sc, parentSc, layer); in takeScreenshot()
115 captureLayer(sc, crop, consumer); in takeScreenshot()
/frameworks/base/rs/java/android/renderscript/
DRenderScriptGL.java77 public SurfaceConfig(SurfaceConfig sc) { in SurfaceConfig() argument
78 mDepthMin = sc.mDepthMin; in SurfaceConfig()
79 mDepthPref = sc.mDepthPref; in SurfaceConfig()
80 mStencilMin = sc.mStencilMin; in SurfaceConfig()
81 mStencilPref = sc.mStencilPref; in SurfaceConfig()
82 mColorMin = sc.mColorMin; in SurfaceConfig()
83 mColorPref = sc.mColorPref; in SurfaceConfig()
84 mAlphaMin = sc.mAlphaMin; in SurfaceConfig()
85 mAlphaPref = sc.mAlphaPref; in SurfaceConfig()
86 mSamplesMin = sc.mSamplesMin; in SurfaceConfig()
[all …]
DScript.java185 FieldPacker v, LaunchOptions sc) { in forEach() argument
191 if (ain == null && aout == null && sc == null) { in forEach()
213 if (sc != null) { in forEach()
216 limits[0] = sc.xstart; in forEach()
217 limits[1] = sc.xend; in forEach()
218 limits[2] = sc.ystart; in forEach()
219 limits[3] = sc.yend; in forEach()
220 limits[4] = sc.zstart; in forEach()
221 limits[5] = sc.zend; in forEach()
241 FieldPacker v, LaunchOptions sc) { in forEach() argument
[all …]
/frameworks/native/libs/gui/tests/
DEndToEndNativeInputTest.cpp110 InputSurface(const sp<SurfaceControl>& sc, int width, int height, bool noInputChannel = false) { in InputSurface() argument
111 mSurfaceControl = sc; in InputSurface()
338 BlastInputSurface(const sp<SurfaceControl>& sc, const sp<SurfaceControl>& parentSc, int width, in BlastInputSurface() argument
340 : InputSurface(sc, width, height) { in BlastInputSurface()
483 surface2->doTransaction([](auto& t, auto& sc) { t.setPosition(sc, 100, 100); }); in TEST_F() argument
484 surface->doTransaction([](auto& t, auto& sc) { t.setPosition(sc, 200, 200); }); in TEST_F() argument
500 surface->doTransaction([](auto& t, auto& sc) { t.setLayer(sc, LAYER_BASE + 1); }); in TEST_F() argument
505 surface2->doTransaction([](auto& t, auto& sc) { t.setLayer(sc, LAYER_BASE + 1); }); in TEST_F() argument
510 surface2->doTransaction([](auto& t, auto& sc) { t.hide(sc); }); in TEST_F() argument
559 childSurface->doTransaction([&](auto& t, auto& sc) { in TEST_F() argument
[all …]
/frameworks/rs/support/java/src/androidx/renderscript/
DScript.java287 …rotected void forEach(int slot, Allocation ain, Allocation aout, FieldPacker v, LaunchOptions sc) { in forEach() argument
293 if (sc == null) { in forEach()
313 …lipped(getID(mRS), slot, ainInc, aoutInc, params, sc.xstart, sc.xend, sc.ystart, sc.yend, sc.zstar… in forEach()
315 …hClipped(getID(mRS), slot, in_id, out_id, params, sc.xstart, sc.xend, sc.ystart, sc.yend, sc.zstar… in forEach()
340 FieldPacker v, LaunchOptions sc) { in forEach() argument
376 if (sc != null) { in forEach()
379 limits[0] = sc.xstart; in forEach()
380 limits[1] = sc.xend; in forEach()
381 limits[2] = sc.ystart; in forEach()
382 limits[3] = sc.yend; in forEach()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSurfaceControlTests.java62 SurfaceControl sc = buildTestSurface(); in testUseValidSurface() local
64 t.setVisibility(sc, false); in testUseValidSurface()
65 sc.release(); in testUseValidSurface()
71 SurfaceControl sc = buildTestSurface(); in testUseInvalidSurface() local
73 sc.release(); in testUseInvalidSurface()
75 t.setVisibility(sc, false); in testUseInvalidSurface()
85 SurfaceControl sc = buildTestSurface(); in testUseInvalidSurface_debugEnabled() local
89 sc.release(); in testUseInvalidSurface_debugEnabled()
91 t.setVisibility(sc, false); in testUseInvalidSurface_debugEnabled()
106 SurfaceControl sc = buildTestSurface(); in testWriteInvalidSurface_debugEnabled() local
[all …]
/frameworks/native/libs/gui/
DSurfaceComposerClient.cpp470 sp<SurfaceControl> sc = in onTransactionCompleted() local
472 if (sc != nullptr) { in onTransactionCompleted()
473 layerId = sc->getLayerId(); in onTransactionCompleted()
1270 const sp<SurfaceControl>& sc) { in sendSurfaceFlushJankDataTransaction() argument
1272 layer_state_t* s = t.getLayerState(sc); in sendSurfaceFlushJankDataTransaction()
1278 t.registerSurfaceControlForCallback(sc); in sendSurfaceFlushJankDataTransaction()
1343 layer_state_t* SurfaceComposerClient::Transaction::getLayerState(const sp<SurfaceControl>& sc) { in getLayerState() argument
1344 auto handle = sc->getLayerStateHandle(); in getLayerState()
1351 s.state.layerId = sc->getLayerId(); in getLayerState()
1360 const sp<SurfaceControl>& sc) { in registerSurfaceControlForCallback() argument
[all …]
/frameworks/native/opengl/tests/lib/
DWindowSurface.cpp75 sp<SurfaceControl> sc = surfaceComposerClient->createSurface( in WindowSurface() local
78 if (sc == nullptr || !sc->isValid()) { in WindowSurface()
84 .setLayer(sc, 0x7FFFFFFF) in WindowSurface()
85 .show(sc) in WindowSurface()
88 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()
/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/base/graphics/java/android/graphics/
DBLASTBufferQueue.java56 public BLASTBufferQueue(String name, SurfaceControl sc, int width, int height, in BLASTBufferQueue() argument
59 update(sc, width, height, format); in BLASTBufferQueue()
137 public void update(SurfaceControl sc, int width, int height, @PixelFormat.Format int format) { in update() argument
138 nativeUpdate(mNativeObject, sc.mNativeObject, width, height, format); in update()
187 public boolean isSameSurfaceControl(SurfaceControl sc) { in isSameSurfaceControl() argument
188 return nativeIsSameSurfaceControl(mNativeObject, sc.mNativeObject); in isSameSurfaceControl()
/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/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneMmiCode.java397 String sc = makeEmptyNull(m.group(MATCH_GROUP_SERVICE_CODE)); in isScMatchesSuppServType() local
398 if (sc.equals(SC_CFUT)) { in isScMatchesSuppServType()
400 } else if(sc.equals(SC_BS_MT)) { in isScMatchesSuppServType()
415 scToCallForwardReason(String sc) { in scToCallForwardReason() argument
416 if (sc == null) { in scToCallForwardReason()
420 if (sc.equals(SC_CF_All)) { in scToCallForwardReason()
422 } else if (sc.equals(SC_CFU)) { in scToCallForwardReason()
424 } else if (sc.equals(SC_CFB)) { in scToCallForwardReason()
426 } else if (sc.equals(SC_CFNR)) { in scToCallForwardReason()
428 } else if (sc.equals(SC_CFNRy)) { in scToCallForwardReason()
[all …]

123456789