/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | StubTransaction.java | 49 public SurfaceControl.Transaction setVisibility(SurfaceControl sc, boolean visible) { in setVisibility() argument 54 public SurfaceControl.Transaction show(SurfaceControl sc) { in show() argument 59 public SurfaceControl.Transaction hide(SurfaceControl sc) { in hide() argument 64 public SurfaceControl.Transaction setPosition(SurfaceControl sc, float x, float y) { in setPosition() argument 69 public SurfaceControl.Transaction setBufferSize(SurfaceControl sc, in setBufferSize() argument 75 public SurfaceControl.Transaction setLayer(SurfaceControl sc, int z) { in setLayer() argument 80 public SurfaceControl.Transaction setRelativeLayer(SurfaceControl sc, SurfaceControl relativeTo, in setRelativeLayer() argument 86 public SurfaceControl.Transaction setTransparentRegionHint(SurfaceControl sc, in setTransparentRegionHint() argument 92 public SurfaceControl.Transaction setAlpha(SurfaceControl sc, float alpha) { in setAlpha() argument 97 public SurfaceControl.Transaction setInputWindowInfo(SurfaceControl sc, in setInputWindowInfo() argument [all …]
|
D | ZOrderingTests.java | 85 public SurfaceControl.Transaction setLayer(SurfaceControl sc, int layer) { in setLayer() argument 86 mRelativeLayersForControl.remove(sc); in setLayer() 87 mLayersForControl.put(sc, layer); in setLayer() 92 public SurfaceControl.Transaction setRelativeLayer(SurfaceControl sc, in setRelativeLayer() argument 95 mRelativeLayersForControl.put(sc, relativeTo); in setRelativeLayer() 96 mLayersForControl.put(sc, layer); in setRelativeLayer() 100 private int getLayer(SurfaceControl sc) { in getLayer() argument 101 return mLayersForControl.getOrDefault(sc, 0); in getLayer() 104 private SurfaceControl getRelativeLayer(SurfaceControl sc) { in getRelativeLayer() argument 105 return mRelativeLayersForControl.get(sc); in getRelativeLayer() [all …]
|
/frameworks/native/services/surfaceflinger/tests/ |
D | SetGeometry_test.cpp | 37 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 …]
|
D | RelativeZ_test.cpp | 65 std::unique_ptr<ScreenCapture> sc; in TEST_F() local 77 ScreenCapture::captureScreen(&sc); in TEST_F() 78 sc->checkPixel(1, 1, Color::BLUE.r, Color::BLUE.g, Color::BLUE.b); in TEST_F() 92 ScreenCapture::captureScreen(&sc); in TEST_F() 93 sc->checkPixel(1, 1, Color::GREEN.r, Color::GREEN.g, Color::GREEN.b); in TEST_F() 100 std::unique_ptr<ScreenCapture> sc; in TEST_F() local 126 ScreenCapture::captureScreen(&sc); in TEST_F() 127 sc->checkPixel(1, 1, Color::GREEN.r, Color::GREEN.g, Color::GREEN.b); in TEST_F() 144 ScreenCapture::captureScreen(&sc); in TEST_F() 145 sc->checkPixel(1, 1, Color::GREEN.r, Color::GREEN.g, Color::GREEN.b); in TEST_F() [all …]
|
D | MultiDisplayLayerBounds_test.cpp | 99 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 …]
|
D | LayerUpdate_test.cpp | 110 ScreenCapture::captureScreen(&sc); in EXPECT_INITIAL_STATE() 112 sc->expectFGColor(127, 127); in EXPECT_INITIAL_STATE() 113 sc->expectBGColor(128, 128); in EXPECT_INITIAL_STATE() 131 std::unique_ptr<ScreenCapture> sc; member in android::GeometryLatchingTest 138 ScreenCapture::captureScreen(&sc); in EXPECT_CROPPED_STATE() 140 sc->expectFGColor(126, 126); in EXPECT_CROPPED_STATE() 141 sc->expectBGColor(127, 127); in EXPECT_CROPPED_STATE() 142 sc->expectBGColor(128, 128); in EXPECT_CROPPED_STATE() 147 ScreenCapture::captureScreen(&sc); in EXPECT_RESIZE_STATE() 149 sc->expectFGColor(64, 64); in EXPECT_RESIZE_STATE() [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/base/core/java/android/view/ |
D | SurfaceControl.java | 2506 SurfaceControl sc = new SurfaceControl(); in mirrorSurface() local 2507 sc.assignNativeObject(nativeObj, "mirrorSurface"); in mirrorSurface() 2508 return sc; in mirrorSurface() 2596 protected void checkPreconditions(SurfaceControl sc) { in checkPreconditions() argument 2597 sc.checkNotReleased(); in checkPreconditions() 2700 public Transaction setVisibility(@NonNull SurfaceControl sc, boolean visible) { in setVisibility() argument 2701 checkPreconditions(sc); in setVisibility() 2703 return show(sc); in setVisibility() 2705 return hide(sc); in setVisibility() 2716 public Transaction setFrameRateSelectionPriority(@NonNull SurfaceControl sc, int priority) { in setFrameRateSelectionPriority() argument [all …]
|
/frameworks/native/libs/gui/include/gui/ |
D | SurfaceComposerClient.h | 57 SurfaceControlStats(const sp<SurfaceControl>& sc, nsecs_t latchTime, nsecs_t acquireTime, in SurfaceControlStats() 60 : surfaceControl(sc), in SurfaceControlStats() 321 std::size_t operator()(const sp<SurfaceControl>& sc) const { in operator() 322 return std::hash<SurfaceControl *>{}(sc.get()); in operator() 395 layer_state_t* getLayerState(const sp<SurfaceControl>& sc); 399 void registerSurfaceControlForCallback(const sp<SurfaceControl>& sc); 422 Transaction& show(const sp<SurfaceControl>& sc); 423 Transaction& hide(const sp<SurfaceControl>& sc); 424 Transaction& setPosition(const sp<SurfaceControl>& sc, 426 Transaction& setSize(const sp<SurfaceControl>& sc, [all …]
|
/frameworks/native/libs/gui/tests/ |
D | EndToEndNativeInputTest.cpp | 71 InputSurface(const sp<SurfaceControl> &sc, int width, int height) { in InputSurface() argument 72 mSurfaceControl = sc; in InputSurface() 260 BlastInputSurface(const sp<SurfaceControl> &sc, const sp<SurfaceControl> &parentSc, int width, in BlastInputSurface() argument 262 : InputSurface(sc, width, height) { in BlastInputSurface() 389 surface2->doTransaction([](auto &t, auto &sc) { in TEST_F() argument 390 t.setPosition(sc, 100, 100); in TEST_F() 392 surface->doTransaction([](auto &t, auto &sc) { in TEST_F() argument 393 t.setPosition(sc, 200, 200); in TEST_F() 410 surface->doTransaction([](auto &t, auto &sc) { in TEST_F() argument 411 t.setLayer(sc, LAYER_BASE + 1); in TEST_F() [all …]
|
/frameworks/base/rs/java/android/renderscript/ |
D | RenderScriptGL.java | 77 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 …]
|
D | Script.java | 185 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/rs/support/java/src/androidx/renderscript/ |
D | Script.java | 287 …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/native/libs/gui/ |
D | SurfaceComposerClient.cpp | 940 layer_state_t* SurfaceComposerClient::Transaction::getLayerState(const sp<SurfaceControl>& sc) { in getLayerState() argument 941 auto handle = sc->getLayerStateHandle(); in getLayerState() 948 s.state.layerId = sc->getLayerId(); in getLayerState() 957 const sp<SurfaceControl>& sc) { in registerSurfaceControlForCallback() argument 959 callbackInfo.surfaceControls.insert(sc); in registerSurfaceControlForCallback() 962 ->addSurfaceControlToCallbacks(sc, callbackInfo.callbackIds); in registerSurfaceControlForCallback() 966 const sp<SurfaceControl>& sc, float x, float y) { in setPosition() argument 967 layer_state_t* s = getLayerState(sc); in setPosition() 976 registerSurfaceControlForCallback(sc); in setPosition() 981 const sp<SurfaceControl>& sc) { in show() argument [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/ |
D | ScreenshotUtils.java | 38 public static void captureLayer(SurfaceControl sc, Rect crop, in captureLayer() argument 41 new SurfaceControl.LayerCaptureArgs.Builder(sc) in captureLayer() 55 BufferConsumer(SurfaceControl.Transaction t, SurfaceControl sc, int layer) { in BufferConsumer() argument 57 mSurfaceControl = sc; in BufferConsumer() 95 public static SurfaceControl takeScreenshot(SurfaceControl.Transaction t, SurfaceControl sc, in takeScreenshot() argument 97 BufferConsumer consumer = new BufferConsumer(t, sc, layer); in takeScreenshot() 98 captureLayer(sc, crop, consumer); in takeScreenshot()
|
/frameworks/native/opengl/tests/lib/ |
D | WindowSurface.cpp | 68 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/ |
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);
|
/frameworks/base/graphics/java/android/graphics/ |
D | BLASTBufferQueue.java | 55 public BLASTBufferQueue(String name, SurfaceControl sc, int width, int height, in BLASTBufferQueue() argument 57 mNativeObject = nativeCreate(name, sc.mNativeObject, width, height, format); in BLASTBufferQueue() 97 public void update(SurfaceControl sc, int width, int height, @PixelFormat.Format int format, in update() argument 99 nativeUpdate(mNativeObject, sc.mNativeObject, width, height, format, t.mNativeObject); in update() 102 public void update(SurfaceControl sc, int width, int height, @PixelFormat.Format int format) { in update() argument 103 nativeUpdate(mNativeObject, sc.mNativeObject, width, height, format, 0); in update()
|
/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/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/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
D | ImsPhoneMmiCode.java | 396 String sc = makeEmptyNull(m.group(MATCH_GROUP_SERVICE_CODE)); in isScMatchesSuppServType() local 397 if (sc.equals(SC_CFUT)) { in isScMatchesSuppServType() 399 } else if(sc.equals(SC_BS_MT)) { in isScMatchesSuppServType() 414 scToCallForwardReason(String sc) { in scToCallForwardReason() argument 415 if (sc == null) { in scToCallForwardReason() 419 if (sc.equals(SC_CF_All)) { in scToCallForwardReason() 421 } else if (sc.equals(SC_CFU)) { in scToCallForwardReason() 423 } else if (sc.equals(SC_CFB)) { in scToCallForwardReason() 425 } else if (sc.equals(SC_CFNR)) { in scToCallForwardReason() 427 } else if (sc.equals(SC_CFNRy)) { in scToCallForwardReason() [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()
|