Home
last modified time | relevance | path

Searched refs:dimLayer (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DDimmerTests.java130 SurfaceControl dimLayer = getDimLayer(); in testDimAboveNoChildCreatesSurface() local
132 assertNotNull("Dimmer should have created a surface", dimLayer); in testDimAboveNoChildCreatesSurface()
134 verify(mTransaction).setAlpha(dimLayer, alpha); in testDimAboveNoChildCreatesSurface()
135 verify(mTransaction).setLayer(dimLayer, Integer.MAX_VALUE); in testDimAboveNoChildCreatesSurface()
167 SurfaceControl dimLayer = getDimLayer(); in testDimAboveNoChildNotReset() local
172 verify(dimLayer, never()).destroy(); in testDimAboveNoChildNotReset()
182 SurfaceControl dimLayer = getDimLayer(); in testDimAboveWithChildCreatesSurfaceAboveChild() local
184 assertNotNull("Dimmer should have created a surface", dimLayer); in testDimAboveWithChildCreatesSurfaceAboveChild()
186 verify(mTransaction).setAlpha(dimLayer, alpha); in testDimAboveWithChildCreatesSurfaceAboveChild()
187 verify(mTransaction).setRelativeLayer(dimLayer, child.mControl, 1); in testDimAboveWithChildCreatesSurfaceAboveChild()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DDimmer.java46 private DimAnimatable(SurfaceControl dimLayer) { in DimAnimatable() argument
47 mDimLayer = dimLayer; in DimAnimatable()
126 DimState(SurfaceControl dimLayer) { in DimState() argument
127 mDimLayer = dimLayer; in DimState()
129 mSurfaceAnimator = new SurfaceAnimator(new DimAnimatable(dimLayer), () -> { in DimState()