Home
last modified time | relevance | path

Searched refs:contentInsets (Results 1 – 25 of 34) sorted by relevance

12

/aosp12/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
H A DViewTreeObserverWrapper.java47 inOutInfo.contentInsets.set(internalInOutInfo.contentInsets); in addOnComputeInsetsListener()
51 internalInOutInfo.contentInsets.set(inOutInfo.contentInsets); in addOnComputeInsetsListener()
104 public final Rect contentInsets = new Rect(); field in ViewTreeObserverWrapper.InsetsInfo
160 int result = contentInsets.hashCode(); in hashCode()
174 contentInsets.equals(other.contentInsets) && in equals()
H A DRemoteAnimationTargetCompat.java69 public final Rect contentInsets; field in RemoteAnimationTargetCompat
93 contentInsets = app.contentInsets; in RemoteAnimationTargetCompat()
120 taskId, mode, leash.getSurfaceControl(), isTranslucent, clipRect, contentInsets, in unwrap()
224 contentInsets = new Rect(0, 0, 0, 0); in RemoteAnimationTargetCompat()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/events/
H A DPrivacyDotViewController.kt252 height = contentInsets.height()
254 width = contentInsets.left
261 contentInsets = state.contentRectForRotation(rot)
264 height = contentInsets.height()
266 width = contentInsets.left
273 contentInsets = state.contentRectForRotation(rot)
276 height = contentInsets.height()
278 width = contentInsets.left
285 contentInsets = state.contentRectForRotation(rot)
288 height = contentInsets.height()
[all …]
/aosp12/frameworks/base/core/java/android/view/
H A DRemoteAnimationTarget.java126 public final Rect contentInsets; field in RemoteAnimationTarget
225 Rect clipRect, Rect contentInsets, int prefixOrderIndex, Point position, in RemoteAnimationTarget() argument
230 this(taskId, mode, leash, isTranslucent, clipRect, contentInsets, prefixOrderIndex, in RemoteAnimationTarget()
236 Rect clipRect, Rect contentInsets, int prefixOrderIndex, Point position, in RemoteAnimationTarget() argument
247 this.contentInsets = new Rect(contentInsets); in RemoteAnimationTarget()
268 contentInsets = in.readTypedObject(Rect.CREATOR); in RemoteAnimationTarget()
296 dest.writeTypedObject(contentInsets, 0 /* flags */); in writeToParcel()
317 pw.print(" contentInsets="); contentInsets.printShortString(pw); in dump()
339 contentInsets.dumpDebug(proto, CONTENT_INSETS); in dumpDebug()
H A DViewTreeObserver.java231 public final Rect contentInsets = new Rect(); field in ViewTreeObserver.InternalInsetsInfo
287 contentInsets.setEmpty(); in reset()
294 return contentInsets.isEmpty() in isEmpty()
302 int result = contentInsets.hashCode(); in hashCode()
316 contentInsets.equals(other.contentInsets) && in equals()
323 contentInsets.set(other.contentInsets); in set()
H A DIWindowSession.aidl136 oneway void setInsets(IWindow window, int touchableInsets, in Rect contentInsets, in setInsets() argument
H A DWindowlessWindowManager.java331 android.graphics.Rect contentInsets, android.graphics.Rect visibleInsets, in setInsets() argument
/aosp12/frameworks/base/core/java/com/android/internal/policy/
H A DTransitionAnimation.java355 float toHeight = mTmpToClipRect.height() - contentInsets.top - contentInsets.bottom; in createRelaunchAnimation()
369 translateAdjustment = (int) (contentInsets.top * fromHeight / toHeight); in createRelaunchAnimation()
691 mTmpFromClipRect.inset(contentInsets); in createAspectScaledThumbnailEnterExitAnimationLocked()
696 thumbWidth / (appWidth - contentInsets.left - contentInsets.right); in createAspectScaledThumbnailEnterExitAnimationLocked()
743 thumbStartY - contentInsets.top, 0) in createAspectScaledThumbnailEnterExitAnimationLocked()
745 thumbStartY - contentInsets.top); in createAspectScaledThumbnailEnterExitAnimationLocked()
851 if (contentInsets != null) { in createThumbnailAspectScaleAnimationLocked()
852 mTmpToClipRect.inset((int) (-contentInsets.left * scaleW), in createThumbnailAspectScaleAnimationLocked()
853 (int) (-contentInsets.top * scaleW), in createThumbnailAspectScaleAnimationLocked()
854 (int) (-contentInsets.right * scaleW), in createThumbnailAspectScaleAnimationLocked()
[all …]
/aosp12/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/
H A DTask.java293 if (lastSnapshotData.taskSize == null || lastSnapshotData.contentInsets == null) { in getVisibleThumbnailRatio()
301 (lastSnapshotData.contentInsets.left + lastSnapshotData.contentInsets.right); in getVisibleThumbnailRatio()
303 (lastSnapshotData.contentInsets.top + lastSnapshotData.contentInsets.bottom); in getVisibleThumbnailRatio()
/aosp12/frameworks/base/core/java/android/window/
H A DTaskSnapshot.java71 Rect contentInsets, Rect letterboxInsets, boolean isLowResolution, in TaskSnapshot() argument
83 mContentInsets = new Rect(contentInsets); in TaskSnapshot()
353 public Builder setContentInsets(Rect contentInsets) {
354 mContentInsets = contentInsets;
/aosp12/frameworks/base/graphics/java/android/graphics/drawable/
H A DInsetDrawable.java248 final Insets contentInsets = super.getOpticalInsets(); in getOpticalInsets() local
251 contentInsets.left + mTmpInsetRect.left, in getOpticalInsets()
252 contentInsets.top + mTmpInsetRect.top, in getOpticalInsets()
253 contentInsets.right + mTmpInsetRect.right, in getOpticalInsets()
254 contentInsets.bottom + mTmpInsetRect.bottom); in getOpticalInsets()
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/startingsurface/
H A DTaskSnapshotWindowTest.java70 private void setupSurface(int width, int height, Rect contentInsets, int sysuiVis, in setupSurface() argument
81 final TaskSnapshot snapshot = createTaskSnapshot(width, height, taskSize, contentInsets); in setupSurface()
90 Rect contentInsets) { in createTaskSnapshot() argument
97 Surface.ROTATION_0, taskSize, contentInsets, new Rect() /* letterboxInsets */, in createTaskSnapshot()
H A DStartingSurfaceDrawerTests.java322 Rect contentInsets, boolean hasImeSurface) { in createTaskSnapshot() argument
329 Surface.ROTATION_0, taskSize, contentInsets, new Rect() /* letterboxInsets */, in createTaskSnapshot()
/aosp12/frameworks/base/services/core/java/com/android/server/wm/
H A DTaskSnapshotController.java291 final Rect contentInsets = getSystemBarInsets(task.getBounds(),
294 InsetUtils.addInsets(contentInsets, letterboxInsets);
298 builder.setContentInsets(contentInsets);
579 final Rect contentInsets = new Rect(systemBarInsets);
581 InsetUtils.addInsets(contentInsets, letterboxInsets);
590 contentInsets, letterboxInsets, false /* isLowResolution */,
H A DRecentsAnimationController.java576 final Rect contentInsets; in startAnimation() local
579 contentInsets = targetAppMainWindow in startAnimation()
586 contentInsets = mTmpRect; in startAnimation()
588 mRunner.onAnimationStart(mController, appTargets, wallpaperTargets, contentInsets, in startAnimation()
H A DSession.java252 Rect contentInsets, Rect visibleInsets, Region touchableArea) { in setInsets() argument
253 mService.setInsetsWindow(this, window, touchableInsets, contentInsets, in setInsets()
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DTaskSnapshotSurfaceTest.java77 private void setupSurface(int width, int height, Rect contentInsets, int sysuiVis, in setupSurface() argument
88 final TaskSnapshot snapshot = createTaskSnapshot(width, height, taskSize, contentInsets); in setupSurface()
96 Point taskSize, Rect contentInsets) { in createTaskSnapshot() argument
103 Surface.ROTATION_0, taskSize, contentInsets, new Rect() /* letterboxInsets*/, false, in createTaskSnapshot()
H A DTaskSnapshotControllerTest.java146 final Rect contentInsets = new Rect(1, 2, 3, 4); in testSnapshotBuilder() local
159 builder.setContentInsets(contentInsets); in testSnapshotBuilder()
180 assertEquals(contentInsets, snapshot.getContentInsets()); in testSnapshotBuilder()
/aosp12/frameworks/base/core/java/android/service/voice/
H A DVoiceInteractionSession.java994 public final Rect contentInsets = new Rect(); field in VoiceInteractionSession.Insets
1036 info.contentInsets.set(mTmpInsets.contentInsets);
1037 info.visibleInsets.set(mTmpInsets.contentInsets);
1935 outInsets.contentInsets.left = 0; in onComputeInsets()
1936 outInsets.contentInsets.bottom = 0; in onComputeInsets()
1937 outInsets.contentInsets.right = 0; in onComputeInsets()
1939 outInsets.contentInsets.top = decor.getHeight(); in onComputeInsets()
/aosp12/frameworks/base/core/java/android/content/res/
H A DCompatibilityInfo.java483 public Rect getTranslatedContentInsets(Rect contentInsets) { in getTranslatedContentInsets() argument
485 mContentInsetsBuffer.set(contentInsets); in getTranslatedContentInsets()
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
H A DTaskbarDragLayer.java109 mControllerCallbacks.updateContentInsets(insetsInfo.contentInsets); in onComputeTaskbarInsets()
/aosp12/frameworks/base/core/java/android/app/
H A DActivityManager.java1803 public @Nullable Rect contentInsets; field in ActivityManager.RecentTaskInfo.PersistedTaskSnapshotData
1818 contentInsets = other.contentInsets; in set()
1829 contentInsets = null; in set()
1835 contentInsets = new Rect(snapshot.getContentInsets()); in set()
1908 lastSnapshotData.contentInsets = source.readTypedObject(Rect.CREATOR); in readFromParcel()
1919 dest.writeTypedObject(lastSnapshotData.contentInsets, flags); in writeToParcel()
1990 pw.print(" contentInsets=" + lastSnapshotData.contentInsets); in dump()
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
H A DTaskViewSimulator.java173 setPreviewBounds(runningTarget.screenSpaceBounds, runningTarget.contentInsets); in setPreview()
/aosp12/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
H A DMainInteractionSession.java343 outInsets.contentInsets.top = mBottomContent.getTop(); in onComputeInsets()
/aosp12/frameworks/base/core/java/android/service/wallpaper/
H A DWallpaperService.java1143 final Rect contentInsets = windowInsets.getSystemWindowInsets().toRect(); in updateSurface() local
1147 insetsChanged |= !mDispatchedContentInsets.equals(contentInsets); in updateSurface()
1208 mDispatchedContentInsets.set(contentInsets); in updateSurface()

12