Home
last modified time | relevance | path

Searched refs:InsetsSource (Results 1 – 25 of 61) sorted by relevance

123

/frameworks/base/core/java/android/view/
DInsetsState.java20 import static android.view.InsetsSource.FLAG_FORCE_CONSUMING;
21 import static android.view.InsetsSource.FLAG_INSETS_ROUNDED_CORNER;
50 import android.view.InsetsSource.InternalInsetsSide;
67 private final SparseArray<InsetsSource> mSources;
134 final InsetsSource source = mSources.valueAt(i); in calculateInsets()
137 if ((source.getFlags() & InsetsSource.FLAG_FORCE_CONSUMING) != 0) { in calculateInsets()
141 if ((source.getFlags() & InsetsSource.FLAG_SUPPRESS_SCRIM) != 0) { in calculateInsets()
151 InsetsSource ignoringVisibilitySource = ignoringVisibilityState != null in calculateInsets()
213 final InsetsSource source = mSources.valueAt(i); in calculateRelativeRoundedCorners()
259 final InsetsSource source = mSources.valueAt(i); in calculateInsets()
[all …]
DInsetsSource.java50 public class InsetsSource implements Parcelable { class
75 InsetsSource.createId(null /* owner */, 1 /* index */, captionBar());
147 public InsetsSource(int id, @InsetsType int type) { in InsetsSource() method in InsetsSource
154 public InsetsSource(InsetsSource other) { in InsetsSource() method in InsetsSource
169 public void set(InsetsSource other) { in set()
182 public InsetsSource setFrame(int left, int top, int right, int bottom) { in setFrame()
187 public InsetsSource setFrame(Rect frame) { in setFrame()
192 public InsetsSource setVisibleFrame(@Nullable Rect visibleFrame) { in setVisibleFrame()
197 public InsetsSource setVisible(boolean visible) { in setVisible()
202 public InsetsSource setFlags(@Flags int flags) { in setFlags()
[all …]
DInsetsSourceConsumer.java153 final InsetsSource localSource = mState.peekSource(mId); in setControl()
154 final InsetsSource serverSource = mController.getLastDispatchedState().peekSource(mId); in setControl()
236 final InsetsSource source = mState.peekSource(mId); in onAnimationStateChanged()
298 final InsetsSource source = mState.peekSource(mId); in applyLocalVisibilityOverride()
317 } else if (mId != InsetsSource.ID_IME_CAPTION_BAR in applyLocalVisibilityOverride()
401 public void updateSource(InsetsSource newSource, @AnimationType int animationType) { in updateSource()
402 InsetsSource source = mState.peekSource(mId); in updateSource()
413 newSource = new InsetsSource(newSource); in updateSource()
DInsetsAnimationControlImpl.java36 import static android.view.InsetsSource.ID_IME;
37 import static android.view.InsetsSource.SIDE_BOTTOM;
38 import static android.view.InsetsSource.SIDE_NONE;
39 import static android.view.InsetsSource.SIDE_LEFT;
40 import static android.view.InsetsSource.SIDE_RIGHT;
41 import static android.view.InsetsSource.SIDE_TOP;
62 import android.view.InsetsSource.InternalInsetsSide;
470 final InsetsSource source = mInitialInsetsState.peekSource(control.getId()); in updateLeashesForSide()
486 outState.addSource(new InsetsSource(source) in updateLeashesForSide()
552 @InternalInsetsSide int side = InsetsSource.getInsetSide(control.getInsetsHint()); in buildSideControlsMap()
DInsetsFrameProvider.java27 import android.view.InsetsSource.Flags;
132 mId = InsetsSource.createId(owner, index, type); in InsetsFrameProvider()
146 return InsetsSource.getIndex(mId); in getIndex()
153 return InsetsSource.getType(mId); in getType()
243 sb.append(", flags=[").append(InsetsSource.flagsToString(mFlags)).append("]"); in toString()
DInsetsResizeAnimationRunner.java149 public void onIdMatch(InsetsSource fromSource, InsetsSource toSource) { in applyChangeInsets()
157 final InsetsSource source = in applyChangeInsets()
158 new InsetsSource(fromSource.getId(), fromSource.getType()); in applyChangeInsets()
/frameworks/base/core/tests/coretests/src/android/view/
DInsetsSourceTest.java19 import static android.view.InsetsSource.ID_IME_CAPTION_BAR;
54 private final InsetsSource mSource = new InsetsSource(0 /* id */, navigationBars());
55 private final InsetsSource mImeSource = new InsetsSource(1 /* id */, ime());
56 private final InsetsSource mImeCaptionSource = new InsetsSource(
58 private final InsetsSource mCaptionSource = new InsetsSource(2 /* id */, captionBar());
234 final SparseArray<InsetsSource> sources = new SparseArray<>(numTotalSources); in testCreateId()
238 final int id = InsetsSource.createId(owner, index, type); in testCreateId()
240 sources.append(id, new InsetsSource(id, type)); in testCreateId()
252 final int id = InsetsSource.createId(owner, index, type); in testGetIndex()
253 final int indexFromId = InsetsSource.getIndex(id); in testGetIndex()
[all …]
DInsetsSourceConsumerTest.java21 import static android.view.InsetsSource.ID_IME;
71 private static final int ID_STATUS_BAR = InsetsSource.createId(
79 private InsetsSource mSpyInsetsSource;
102 mSpyInsetsSource = Mockito.spy(new InsetsSource(ID_STATUS_BAR, statusBars())); in setup()
154 InsetsSource source = new InsetsSource(ID_IME, ime()); in testPendingStates()
156 consumer.updateSource(new InsetsSource(source), ANIMATION_TYPE_NONE); in testPendingStates()
160 consumer.updateSource(new InsetsSource(source), ANIMATION_TYPE_USER); in testPendingStates()
169 consumer.updateSource(new InsetsSource(source), ANIMATION_TYPE_USER); in testPendingStates()
175 consumer.updateSource(new InsetsSource(source), ANIMATION_TYPE_USER); in testPendingStates()
DInsetsStateTest.java21 import static android.view.InsetsSource.FLAG_FORCE_CONSUMING;
22 import static android.view.InsetsSource.ID_IME;
23 import static android.view.InsetsSource.SIDE_BOTTOM;
24 import static android.view.InsetsSource.SIDE_TOP;
81 private static final int ID_STATUS_BAR = InsetsSource.createId(
83 private static final int ID_NAVIGATION_BAR = InsetsSource.createId(
85 private static final int ID_CAPTION_BAR = InsetsSource.createId(
87 private static final int ID_CLIMATE_BAR = InsetsSource.createId(
89 private static final int ID_EXTRA_NAVIGATION_BAR = InsetsSource.createId(
91 private static final int ID_BOTTOM_GESTURES = InsetsSource.createId(
[all …]
DWindowLayoutTests.java19 import static android.view.InsetsSource.ID_IME;
66 private static final int ID_STATUS_BAR = InsetsSource.createId(
68 private static final int ID_NAVIGATION_BAR = InsetsSource.createId(
118 mState.getOrCreateSource(InsetsSource.createId(null, 0, displayCutout()), displayCutout()) in addDisplayCutout()
120 mState.getOrCreateSource(InsetsSource.createId(null, 1, displayCutout()), displayCutout()) in addDisplayCutout()
122 mState.getOrCreateSource(InsetsSource.createId(null, 2, displayCutout()), displayCutout()) in addDisplayCutout()
124 mState.getOrCreateSource(InsetsSource.createId(null, 3, displayCutout()), displayCutout()) in addDisplayCutout()
/frameworks/base/services/core/java/com/android/server/wm/
DInsetsPolicy.java24 import static android.view.InsetsSource.ID_IME;
40 import android.view.InsetsSource;
140 final InsetsSource source = state.sourceAt(i); in hasHiddenSources()
155 final InsetsSource source = rawState.sourceAt(i); in showTransient()
239 final InsetsSource source = outInsetsState.sourceAt(i); in getInsetsForWindowMetrics()
311 final InsetsSource override = new InsetsSource(otherProvider.getSource()); in enforceInsetsPolicyForTarget()
338 final InsetsSource source = state.sourceAt(i); in adjustVisibilityForFakeControllingSources()
348 @InsetsType int type, InsetsSource source, InsetsControlTarget target) { in adjustVisibilityForFakeControllingSource()
360 final InsetsSource outSource = new InsetsSource(source); in adjustVisibilityForFakeControllingSource()
374 final InsetsSource source = originalState.sourceAt(i); in adjustVisibilityForIme()
[all …]
DInsetsSourceProvider.java43 import android.view.InsetsSource;
44 import android.view.InsetsSource.Flags;
67 protected final @NonNull InsetsSource mSource;
117 InsetsSourceProvider(@NonNull InsetsSource source, in InsetsSourceProvider()
145 InsetsSource getSource() { in getSource()
327 InsetsSource createSimulatedSource(DisplayFrames displayFrames, Rect frame) { in createSimulatedSource()
328 final InsetsSource source = new InsetsSource(mSource); in createSimulatedSource()
DInsetsStateController.java20 import static android.view.InsetsSource.FLAG_FORCE_CONSUMING;
21 import static android.view.InsetsSource.ID_IME;
38 import android.view.InsetsSource;
124 final InsetsSource source = mState.getOrCreateSource(id, type); in getOrCreateSourceProvider()
190 final SparseArray<InsetsSource> localInsetsSourcesFromParent = new SparseArray<>(); in updateAboveInsetsState()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/unfold/animation/
DFullscreenUnfoldTaskAnimator.java34 import android.view.InsetsSource;
75 private InsetsSource mExpandedTaskbarInsetsSource;
109 private static InsetsSource getExpandedTaskbarSource(InsetsState state) { in getExpandedTaskbarSource()
111 final InsetsSource source = state.sourceAt(i); in getExpandedTaskbarSource()
113 && source.hasFlags(InsetsSource.FLAG_INSETS_ROUNDED_CORNER)) { in getExpandedTaskbarSource()
223 private AnimationContext(SurfaceControl leash, InsetsSource taskBarInsetsSource, in AnimationContext()
229 private void update(InsetsSource taskBarInsetsSource, TaskInfo taskInfo) { in update()
DSplitTaskUnfoldAnimator.java36 import android.view.InsetsSource;
89 private InsetsSource mExpandedTaskbarInsetsSource;
148 private static InsetsSource getExpandedTaskbarSource(InsetsState state) { in getExpandedTaskbarSource()
150 final InsetsSource source = state.sourceAt(i); in getExpandedTaskbarSource()
152 && source.hasFlags(InsetsSource.FLAG_INSETS_ROUNDED_CORNER)) { in getExpandedTaskbarSource()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DLaunchParamsModifierTestsBase.java28 import android.view.InsetsSource;
86 state.getOrCreateSource(InsetsSource.createId(null, 0, statusBarType), statusBarType) in configInsetsState()
90 state.getOrCreateSource(InsetsSource.createId(null, 1, statusBarType), statusBarType) in configInsetsState()
94 state.getOrCreateSource(InsetsSource.createId(null, 0, navBarType), navBarType) in configInsetsState()
98 state.getOrCreateSource(InsetsSource.createId(null, 1, navBarType), navBarType) in configInsetsState()
DDisplayPolicyTests.java21 import static android.view.InsetsSource.ID_IME;
63 import android.view.InsetsSource;
242 final InsetsSource navSource = new InsetsSource( in testUpdateLightNavigationBarLw()
243 InsetsSource.createId(null, 0, navigationBars()), navigationBars()); in testUpdateLightNavigationBarLw()
333 final InsetsSource navSource = new InsetsSource( in testOverlappingWithNavBar()
334 InsetsSource.createId(null, 0, navigationBars()), navigationBars()); in testOverlappingWithNavBar()
341 final InsetsSource navSource = new InsetsSource( in testOverlappingWithExtraNavBar()
342 InsetsSource.createId(null, 1, navigationBars()), navigationBars()); in testOverlappingWithExtraNavBar()
347 private void testOverlappingWithNavBarType(InsetsSource navSource) { in testOverlappingWithNavBarType()
516 final InsetsSource imeSource = state.peekSource(ID_IME); in testImeMinimalSourceFrame()
[all …]
DInsetsSourceProviderTest.java19 import static android.view.InsetsSource.ID_IME;
35 import android.view.InsetsSource;
48 private InsetsSource mSource = new InsetsSource(
49 InsetsSource.createId(null, 0, statusBars()), statusBars());
51 private InsetsSource mImeSource = new InsetsSource(ID_IME, ime());
DInsetsPolicyTest.java22 import static android.view.InsetsSource.ID_IME;
47 import android.view.InsetsSource;
327 final InsetsSource statusBarSource = in testAbortTransientBars_bothCanBeAborted_appGetsBothRealControls()
329 final InsetsSource navBarSource = in testAbortTransientBars_bothCanBeAborted_appGetsBothRealControls()
402 final InsetsSource statusBarSource = statusBarProvider.getSource(); in testFakeControlTarget_overrideVisibilityReceivedByWindows()
446 final InsetsSource imeSource = new InsetsSource(ID_IME, ime()); in testConsumeImeInsets()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DDisplayImeController.java40 import android.view.InsetsSource;
146 final InsetsSource imeSource = pd.mInsetsState.peekSource(InsetsSource.ID_IME); in isImeShowing()
253 updateImeVisibility(insetsState.isSourceOrDefaultVisible(InsetsSource.ID_IME, in insetsChanged()
257 final InsetsSource newSource = insetsState.peekSource(InsetsSource.ID_IME); in insetsChanged()
260 final InsetsSource oldSource = mInsetsState.peekSource(InsetsSource.ID_IME); in insetsChanged()
410 mInsetsState.setSourceVisible(InsetsSource.ID_IME, visible); in setVisibleDirectly()
425 private boolean calcIsFloating(InsetsSource imeSource) { in calcIsFloating()
441 final var imeSource = mInsetsState.peekSource(InsetsSource.ID_IME); in startAnimation()
460 final InsetsSource imeSource = mInsetsState.peekSource(InsetsSource.ID_IME); in startAnimation()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/compatui/
DCompatUIWindowManagerTest.java49 import android.view.InsetsSource;
117 final InsetsSource insetsSource = new InsetsSource( in setUp()
118 InsetsSource.createId(null, 0, navigationBars()), navigationBars()); in setUp()
383 final InsetsSource insetsSource = new InsetsSource( in testUpdateDisplayLayoutInsets()
384 InsetsSource.createId(null, 0, navigationBars()), navigationBars()); in testUpdateDisplayLayoutInsets()
530 final InsetsSource insetsSource = new InsetsSource( in testShouldShowSizeCompatRestartButton()
531 InsetsSource.createId(null, 0, navigationBars()), navigationBars()); in testShouldShowSizeCompatRestartButton()
DUserAspectRatioSettingsWindowManagerTest.java46 import android.view.InsetsSource;
125 InsetsSource insetsSource = new InsetsSource( in setUp()
126 InsetsSource.createId(null, 0, navigationBars()), navigationBars()); in setUp()
346 InsetsSource insetsSource = new InsetsSource( in testUpdateDisplayLayoutInsets()
347 InsetsSource.createId(null, 0, navigationBars()), navigationBars()); in testUpdateDisplayLayoutInsets()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/
DDisplayImeControllerTest.java20 import static android.view.InsetsSource.ID_IME;
37 import android.view.InsetsSource;
155 state.addSource(new InsetsSource(ID_IME, ime())); in insetsStateWithIme()
/frameworks/base/core/tests/benchmarks/src/android/os/
DParcelableBenchmark.java23 import android.view.InsetsSource;
64 insetsState.addSource(new InsetsSource(i, 1 << i)); in timeReadWriteInsetsState()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/sysui/
DShellController.java36 import android.view.InsetsSource;
95 InsetsSource oldSource = mInsetsState.peekSource(InsetsSource.ID_IME);
99 InsetsSource newSource = insetsState.peekSource(InsetsSource.ID_IME);

123