Home
last modified time | relevance | path

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

123

/aosp14/frameworks/base/core/java/android/view/
H A DInsetsState.java86 private final SparseArray<InsetsSource> mSources;
435 InsetsSource source = mSources.get(id); in getOrCreateSource()
439 source = new InsetsSource(id, type); in getOrCreateSource()
463 public InsetsSource sourceAt(int index) { in sourceAt()
483 final InsetsSource source = mSources.get(id); in isSourceOrDefaultVisible()
625 ? new InsetsSource(otherSource) in set()
661 public void addSource(InsetsSource source) { in addSource()
692 final InsetsSource source = mSources.get(InsetsSource.ID_IME); in dumpDebug()
828 final SparseArray<InsetsSource> sources;
837 final InsetsSource source = in.readTypedObject(InsetsSource.CREATOR);
[all …]
H A DInsetsSource.java47 public class InsetsSource implements Parcelable { class
112 public InsetsSource(InsetsSource other) { in InsetsSource() method in InsetsSource
123 public void set(InsetsSource other) { in set()
137 public InsetsSource setFrame(Rect frame) { in setFrame()
147 public InsetsSource setVisible(boolean visible) { in setVisible()
152 public InsetsSource setFlags(@Flags int flags) { in setFlags()
394 InsetsSource that = (InsetsSource) o; in equals()
410 public InsetsSource(Parcel in) { in InsetsSource() method in InsetsSource
456 return new InsetsSource(in);
459 public InsetsSource[] newArray(int size) {
[all …]
H A DInsetsSourceConsumer.java150 final InsetsSource localSource = mState.peekSource(mId); in setControl()
151 final InsetsSource serverSource = mController.getLastDispatchedState().peekSource(mId); in setControl()
233 final InsetsSource source = mState.peekSource(mId); in onAnimationStateChanged()
289 final InsetsSource source = mState.peekSource(mId); in applyLocalVisibilityOverride()
351 public void updateSource(InsetsSource newSource, @AnimationType int animationType) { in updateSource()
352 InsetsSource source = mState.peekSource(mId); in updateSource()
363 newSource = new InsetsSource(newSource); in updateSource()
H A DInsetsFrameProvider.java26 import android.view.InsetsSource.Flags;
125 mId = InsetsSource.createId(owner, index, type); in InsetsFrameProvider()
139 return InsetsSource.getIndex(mId); in getIndex()
146 return InsetsSource.getType(mId); in getType()
220 sb.append(", flags=[").append(InsetsSource.flagsToString(mFlags)).append("]"); in toString()
H A DInsetsResizeAnimationRunner.java146 public void onIdMatch(InsetsSource fromSource, InsetsSource toSource) { in applyChangeInsets()
154 final InsetsSource source = in applyChangeInsets()
155 new InsetsSource(fromSource.getId(), fromSource.getType()); in applyChangeInsets()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A DInsetsSourceTest.java53 private final InsetsSource mSource = new InsetsSource(0 /* id */, navigationBars());
54 private final InsetsSource mImeSource = new InsetsSource(1 /* id */, ime());
55 private final InsetsSource mCaptionSource = new InsetsSource(2 /* id */, captionBar());
218 final SparseArray<InsetsSource> sources = new SparseArray<>(numTotalSources); in testCreateId()
222 final int id = InsetsSource.createId(owner, index, type); in testCreateId()
224 sources.append(id, new InsetsSource(id, type)); in testCreateId()
236 final int id = InsetsSource.createId(owner, index, type); in testGetIndex()
237 final int indexFromId = InsetsSource.getIndex(id); in testGetIndex()
254 final int id = InsetsSource.createId(owner, index, type); in testGetType()
255 final int typeFromId = InsetsSource.getType(id); in testGetType()
H A 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()
H A DInsetsStateTest.java21 import static android.view.InsetsSource.FLAG_FORCE_CONSUMING;
22 import static android.view.InsetsSource.ID_IME;
79 private static final int ID_STATUS_BAR = InsetsSource.createId(
81 private static final int ID_NAVIGATION_BAR = InsetsSource.createId(
83 private static final int ID_CAPTION_BAR = InsetsSource.createId(
85 private static final int ID_CLIMATE_BAR = InsetsSource.createId(
89 private static final int ID_BOTTOM_GESTURES = InsetsSource.createId(
327 state1.addSource(new InsetsSource(ID_STATUS_BAR, statusBars())); in testEquals()
367 final InsetsSource imeSource1 = new InsetsSource(ID_IME, ime()).setVisible(true); in testEquals_excludesInvisibleIme()
380 final InsetsSource imeSource2 = new InsetsSource(ID_IME, ime()).setFrame(0, 0, 0, 10); in testEquals_excludesInvisibleIme()
[all …]
H A 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()
H A DInsetsControllerTest.java25 import static android.view.InsetsSource.ID_IME;
101 private static final int ID_STATUS_BAR = InsetsSource.createId(
103 private static final int ID_NAVIGATION_BAR = InsetsSource.createId(
106 private InsetsSource mStatusSource;
107 private InsetsSource mNavSource;
108 private InsetsSource mImeSource;
158 mStatusSource = new InsetsSource(ID_STATUS_BAR, statusBars()); in setup()
160 mNavSource = new InsetsSource(ID_NAVIGATION_BAR, navigationBars()); in setup()
162 mImeSource = new InsetsSource(ID_IME, ime()); in setup()
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DInsetsPolicy.java24 import static android.view.InsetsSource.ID_IME;
40 import android.view.InsetsSource;
142 final InsetsSource source = state.sourceAt(i); in hasHiddenSources()
157 final InsetsSource source = rawState.sourceAt(i); in showTransient()
241 final InsetsSource source = outInsetsState.sourceAt(i); in getInsetsForWindowMetrics()
313 final InsetsSource override = new InsetsSource(otherProvider.getSource()); in enforceInsetsPolicyForTarget()
340 final InsetsSource source = state.sourceAt(i); in adjustVisibilityForFakeControllingSources()
362 final InsetsSource outSource = new InsetsSource(source); in adjustVisibilityForFakeControllingSource()
376 final InsetsSource source = originalState.sourceAt(i); in adjustVisibilityForIme()
383 final InsetsSource navSource = new InsetsSource(source); in adjustVisibilityForIme()
[all …]
H A DInsetsSourceProvider.java42 import android.view.InsetsSource;
43 import android.view.InsetsSource.Flags;
65 protected final @NonNull InsetsSource mSource;
122 InsetsSourceProvider(InsetsSource source, InsetsStateController stateController, in InsetsSourceProvider()
134 InsetsSource getSource() { in getSource()
313 InsetsSource createSimulatedSource(DisplayFrames displayFrames, Rect frame) { in createSimulatedSource()
314 final InsetsSource source = new InsetsSource(mSource); in createSimulatedSource()
H A DImeInsetsSourceProvider.java20 import static android.view.InsetsSource.ID_IME;
35 import android.view.InsetsSource;
60 private final InsetsSource mLastSource = new InsetsSource(ID_IME, WindowInsets.Type.ime());
68 ImeInsetsSourceProvider(InsetsSource source, in ImeInsetsSourceProvider()
H A 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()
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DImeInsetsSourceProviderTest.java19 import static android.view.InsetsSource.ID_IME;
29 import android.view.InsetsSource;
42 private InsetsSource mImeSource = new InsetsSource(ID_IME, ime());
H A DDisplayPolicyTests.java21 import static android.view.InsetsSource.ID_IME;
62 import android.view.InsetsSource;
239 final InsetsSource navSource = new InsetsSource( in testUpdateLightNavigationBarLw()
240 InsetsSource.createId(null, 0, navigationBars()), navigationBars()); in testUpdateLightNavigationBarLw()
310 final InsetsSource navSource = new InsetsSource( in testOverlappingWithNavBar()
311 InsetsSource.createId(null, 0, navigationBars()), navigationBars()); in testOverlappingWithNavBar()
318 final InsetsSource navSource = new InsetsSource( in testOverlappingWithExtraNavBar()
324 private void testOverlappingWithNavBarType(InsetsSource navSource) { in testOverlappingWithNavBarType()
455 final InsetsSource imeSource = state.peekSource(ID_IME); in testImeMinimalSourceFrame()
456 final InsetsSource navBarSource = state.peekSource( in testImeMinimalSourceFrame()
[all …]
H A DInsetsSourceProviderTest.java19 import static android.view.InsetsSource.ID_IME;
34 import android.view.InsetsSource;
47 private InsetsSource mSource = new InsetsSource(
48 InsetsSource.createId(null, 0, statusBars()), statusBars());
50 private InsetsSource mImeSource = new InsetsSource(ID_IME, ime());
H A DLetterboxUiControllerTest.java45 import static android.view.InsetsSource.FLAG_INSETS_ROUNDED_CORNER;
83 import android.view.InsetsSource;
470 final InsetsSource taskbar = new InsetsSource(/*id=*/ 0, in testGetCropBoundsIfNeeded_handleCropForTransparentActivityBasedOnOpaqueBounds()
493 final InsetsSource taskbar = new InsetsSource(/*id=*/ 0, in testGetCropBoundsIfNeeded_noCrop()
514 final InsetsSource taskbar = new InsetsSource(/*id=*/ 0, in testGetCropBoundsIfNeeded_appliesCrop()
537 final InsetsSource taskbar = new InsetsSource(/*id=*/ 0, in testGetCropBoundsIfNeeded_appliesCropWithSizeCompatScaling()
629 private WindowState mockForGetCropBoundsAndRoundedCorners(@Nullable InsetsSource taskbar) { in mockForGetCropBoundsAndRoundedCorners()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/unfold/animation/
H A 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()
H A 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()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
H A DDisplayImeController.java40 import android.view.InsetsSource;
144 final InsetsSource imeSource = pd.mInsetsState.peekSource(InsetsSource.ID_IME); in isImeShowing()
248 updateImeVisibility(insetsState.isSourceOrDefaultVisible(InsetsSource.ID_IME, in insetsChanged()
251 final InsetsSource newSource = insetsState.peekSource(InsetsSource.ID_IME); in insetsChanged()
254 final InsetsSource oldSource = mInsetsState.peekSource(InsetsSource.ID_IME); in insetsChanged()
357 mInsetsState.setSourceVisible(InsetsSource.ID_IME, visible); in setVisibleDirectly()
372 private boolean calcIsFloating(InsetsSource imeSource) { in calcIsFloating()
388 final InsetsSource imeSource = mInsetsState.peekSource(InsetsSource.ID_IME); in startAnimation()
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/
H A DDisplayImeControllerTest.java20 import static android.view.InsetsSource.ID_IME;
37 import android.view.InsetsSource;
148 state.addSource(new InsetsSource(ID_IME, ime())); in insetsStateWithIme()
/aosp14/frameworks/base/core/tests/benchmarks/src/android/os/
H A DParcelableBenchmark.java23 import android.view.InsetsSource;
64 insetsState.addSource(new InsetsSource(i, 1 << i)); in timeReadWriteInsetsState()
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/compatui/
H A DUserAspectRatioSettingsWindowManagerTest.java42 import android.view.InsetsSource;
268 InsetsSource insetsSource = new InsetsSource( in testUpdateDisplayLayoutInsets()
269 InsetsSource.createId(null, 0, navigationBars()), navigationBars()); in testUpdateDisplayLayoutInsets()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/
H A DDividerView.java37 import android.view.InsetsSource;
227 if (!insetsState.isSourceOrDefaultVisible(InsetsSource.ID_IME, WindowInsets.Type.ime())) { in onInsetsChanged()
229 final InsetsSource source = insetsState.sourceAt(i); in onInsetsChanged()
231 && source.hasFlags(InsetsSource.FLAG_INSETS_ROUNDED_CORNER)) { in onInsetsChanged()

123