Lines Matching defs:container

174     private DimState getDimState(WindowContainer container) {
183 if (container == null) {
191 mLastRequestedDimContainer = container;
195 private void dim(SurfaceControl.Transaction t, WindowContainer container, int relativeLayer,
197 final DimState d = getDimState(container);
203 if (container != null) {
207 t.setRelativeLayer(d.mDimLayer, container.getSurfaceControl(), relativeLayer);
230 * Place a Dim above the entire host container. The caller is responsible for calling stopDim to
243 * Place a dim above the given container, which should be a child of the host container.
248 * @param container The container which to dim above. Should be a child of our host.
251 void dimAbove(SurfaceControl.Transaction t, WindowContainer container, float alpha) {
252 dim(t, container, 1, alpha);
256 * Like {@link #dimAbove} but places the dim below the given container.
259 * @param container The container which to dim below. Should be a child of our host.
263 void dimBelow(SurfaceControl.Transaction t, WindowContainer container, float alpha) {
264 dim(t, container, -1, alpha);
270 * This is intended for us by the host container, to be called at the beginning of
271 * {@link WindowContainer#prepareSurfaces}. After calling this, the container should
321 private void startDimEnter(WindowContainer container, SurfaceAnimator animator,
323 startAnim(container, animator, t, 0 /* startAlpha */, 1 /* endAlpha */);
326 private void startDimExit(WindowContainer container, SurfaceAnimator animator,
328 startAnim(container, animator, t, 1 /* startAlpha */, 0 /* endAlpha */);
331 private void startAnim(WindowContainer container, SurfaceAnimator animator,
334 new AlphaAnimationSpec(startAlpha, endAlpha, getDimDuration(container)),
338 private long getDimDuration(WindowContainer container) {
339 // If there's no container, then there isn't an animation occurring while dimming. Set the
341 if (container == null) {
346 AnimationAdapter animationAdapter = container.mSurfaceAnimator.getAnimation();