/frameworks/base/core/tests/coretests/src/android/window/ |
D | SnapshotDrawerUtilsTest.java | 64 private void setupSurface(int width, int height, Rect contentInsets, in setupSurface() argument 75 final TaskSnapshot snapshot = createTaskSnapshot(width, height, taskSize, contentInsets); in setupSurface() 86 Rect contentInsets) { in createTaskSnapshot() argument 94 Surface.ROTATION_0, taskSize, contentInsets, new Rect() /* letterboxInsets */, in createTaskSnapshot() 161 final Rect contentInsets = new Rect(0, 10, 0, 10); in testCalculateSnapshotCrop() local 162 setupSurface(100, 100, contentInsets, 0, new Rect(0, 0, 100, 100)); in testCalculateSnapshotCrop() 164 mSnapshotSurface.calculateSnapshotCrop(contentInsets)); in testCalculateSnapshotCrop() 169 final Rect contentInsets = new Rect(0, 10, 0, 10); in testCalculateSnapshotCrop_taskNotOnTop() local 171 setupSurface(100, 100, contentInsets, 0, bounds); in testCalculateSnapshotCrop_taskNotOnTop() 172 mSnapshotSurface.setFrames(bounds, contentInsets); in testCalculateSnapshotCrop_taskNotOnTop() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/events/ |
D | PrivacyDotViewController.kt | 279 var contentInsets = state.contentRectForRotation(rot) in <lambda>() variable 282 topMargin = contentInsets.top in <lambda>() 283 height = contentInsets.height() in <lambda>() 285 width = contentInsets.left in <lambda>() 287 width = displayHeight - contentInsets.right in <lambda>() 292 contentInsets = state.contentRectForRotation(rot) in <lambda>() 295 topMargin = contentInsets.top in <lambda>() 296 height = contentInsets.height() in <lambda>() 298 width = contentInsets.left in <lambda>() 300 width = displayWidth - contentInsets.right in <lambda>() [all …]
|
/frameworks/base/core/java/android/view/ |
D | RemoteAnimationTarget.java | 129 public final Rect contentInsets; field in RemoteAnimationTarget 254 Rect clipRect, Rect contentInsets, int prefixOrderIndex, Point position, in RemoteAnimationTarget() argument 260 this(taskId, mode, leash, isTranslucent, clipRect, contentInsets, prefixOrderIndex, in RemoteAnimationTarget() 266 Rect clipRect, Rect contentInsets, int prefixOrderIndex, Point position, in RemoteAnimationTarget() argument 277 this.contentInsets = new Rect(contentInsets); in RemoteAnimationTarget() 304 contentInsets = in.readTypedObject(Rect.CREATOR); in RemoteAnimationTarget() 359 dest.writeTypedObject(contentInsets, 0 /* flags */); in writeToParcel() 384 pw.print(" contentInsets="); contentInsets.printShortString(pw); in dump() 409 contentInsets.dumpDebug(proto, CONTENT_INSETS); in dumpDebug()
|
D | ViewTreeObserver.java | 248 public final Rect contentInsets = new Rect(); field in ViewTreeObserver.InternalInsetsInfo 304 contentInsets.setEmpty(); in reset() 311 return contentInsets.isEmpty() in isEmpty() 319 int result = contentInsets.hashCode(); in hashCode() 333 contentInsets.equals(other.contentInsets) && in equals() 340 contentInsets.set(other.contentInsets); in set()
|
D | IWindowSession.aidl | 150 oneway void setInsets(IWindow window, int touchableInsets, in Rect contentInsets, in setInsets() argument
|
D | WindowlessWindowManager.java | 492 android.graphics.Rect contentInsets, android.graphics.Rect visibleInsets, in setInsets() argument
|
D | ViewRootImpl.java | 4109 Rect contentInsets = null; in performTraversals() local 4130 contentInsets = mTranslator.getTranslatedContentInsets(insets.contentInsets); in performTraversals() 4134 contentInsets = insets.contentInsets; in performTraversals() 4159 if (contentInsets == null) contentInsets = new Rect(0,0,0,0); in performTraversals() 4168 contentInsets, visibleInsets, touchableRegion); in performTraversals()
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | TransitionAnimation.java | 412 public Animation createRelaunchAnimation(Rect containingFrame, Rect contentInsets, in createRelaunchAnimation() argument 427 float toHeight = mTmpToClipRect.height() - contentInsets.top - contentInsets.bottom; in createRelaunchAnimation() 441 translateAdjustment = (int) (contentInsets.top * fromHeight / toHeight); in createRelaunchAnimation() 726 boolean scaleUp, int orientation, int transit, Rect containingFrame, Rect contentInsets, in createAspectScaledThumbnailEnterExitAnimationLocked() argument 737 final int thumbStartX = mTmpRect.left - containingFrame.left - contentInsets.left; in createAspectScaledThumbnailEnterExitAnimationLocked() 763 mTmpFromClipRect.inset(contentInsets); in createAspectScaledThumbnailEnterExitAnimationLocked() 768 thumbWidth / (appWidth - contentInsets.left - contentInsets.right); in createAspectScaledThumbnailEnterExitAnimationLocked() 776 containingFrame.height() / 2f + contentInsets.top); in createAspectScaledThumbnailEnterExitAnimationLocked() 786 if (mLowRamRecentsEnabled && contentInsets.top == 0 && scaleUp) { in createAspectScaledThumbnailEnterExitAnimationLocked() 796 ? createCurvedMotion(startX, 0, startY - contentInsets.top, 0) in createAspectScaledThumbnailEnterExitAnimationLocked() [all …]
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/ |
D | Task.java | 321 if (lastSnapshotData.taskSize == null || lastSnapshotData.contentInsets == null) { in getVisibleThumbnailRatio() 329 (lastSnapshotData.contentInsets.left + lastSnapshotData.contentInsets.right); in getVisibleThumbnailRatio() 331 (lastSnapshotData.contentInsets.top + lastSnapshotData.contentInsets.bottom); in getVisibleThumbnailRatio()
|
D | ThumbnailData.kt | 85 insets = Rect(snapshot.contentInsets), in <lambda>()
|
/frameworks/base/core/java/android/window/ |
D | TaskSnapshot.java | 96 Rect contentInsets, Rect letterboxInsets, boolean isLowResolution, in TaskSnapshot() argument 109 mContentInsets = new Rect(contentInsets); in TaskSnapshot() 417 public Builder setContentInsets(Rect contentInsets) { 418 mContentInsets = contentInsets;
|
D | SnapshotDrawerUtils.java | 223 final Rect contentInsets = mSnapshot.getContentInsets(); in drawSizeMismatchSnapshot() local 224 crop = calculateSnapshotCrop(contentInsets); in drawSizeMismatchSnapshot() 225 offsetX = contentInsets.left; in drawSizeMismatchSnapshot() 226 offsetY = contentInsets.top; in drawSizeMismatchSnapshot()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | InsetDrawable.java | 248 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()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | AbsAppSnapshotController.java | 311 final Rect contentInsets = getSystemBarInsets(mainWindow.getFrame(), in prepareTaskSnapshot() local 314 InsetUtils.addInsets(contentInsets, letterboxInsets); in prepareTaskSnapshot() 317 builder.setContentInsets(contentInsets); in prepareTaskSnapshot() 446 final Rect contentInsets = new Rect(systemBarInsets); in drawAppThemeSnapshot() local 448 InsetUtils.addInsets(contentInsets, letterboxInsets); in drawAppThemeSnapshot() 457 contentInsets, letterboxInsets, false /* isLowResolution */, in drawAppThemeSnapshot()
|
D | RecentsAnimationController.java | 553 final Rect contentInsets; in startAnimation() local 556 contentInsets = targetAppMainWindow in startAnimation() 563 contentInsets = mTmpRect; in startAnimation() 565 mRunner.onAnimationStart(mController, appTargets, wallpaperTargets, contentInsets, in startAnimation()
|
D | Session.java | 333 Rect contentInsets, Rect visibleInsets, Region touchableArea) { in setInsets() argument 334 mService.setInsetsWindow(this, window, touchableInsets, contentInsets, in setInsets()
|
D | AppTransition.java | 667 Animation createThumbnailAspectScaleAnimationLocked(Rect appRect, @Nullable Rect contentInsets, in createThumbnailAspectScaleAnimationLocked() argument 672 contentInsets, thumbnailHeader, orientation, spec != null ? spec.rect : null, in createThumbnailAspectScaleAnimationLocked()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskSnapshotControllerTest.java | 170 final Rect contentInsets = new Rect(1, 2, 3, 4); in testSnapshotBuilder() local 183 builder.setContentInsets(contentInsets); in testSnapshotBuilder() 204 assertEquals(contentInsets, snapshot.getContentInsets()); in testSnapshotBuilder()
|
/frameworks/base/core/java/android/service/voice/ |
D | VoiceInteractionSession.java | 1048 public final Rect contentInsets = new Rect(); field in VoiceInteractionSession.Insets 1090 info.contentInsets.set(mTmpInsets.contentInsets); 1091 info.visibleInsets.set(mTmpInsets.contentInsets); 2079 outInsets.contentInsets.left = 0; in onComputeInsets() 2080 outInsets.contentInsets.bottom = 0; in onComputeInsets() 2081 outInsets.contentInsets.right = 0; in onComputeInsets() 2083 outInsets.contentInsets.top = decor.getHeight(); in onComputeInsets()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/startingsurface/ |
D | StartingSurfaceDrawerTests.java | 362 Rect contentInsets, boolean hasImeSurface) { in createTaskSnapshot() argument 370 Surface.ROTATION_0, taskSize, contentInsets, new Rect() /* letterboxInsets */, in createTaskSnapshot()
|
/frameworks/base/core/java/android/content/res/ |
D | CompatibilityInfo.java | 531 public Rect getTranslatedContentInsets(Rect contentInsets) { in getTranslatedContentInsets() argument 533 mContentInsetsBuffer.set(contentInsets); in getTranslatedContentInsets()
|
/frameworks/base/core/java/android/app/ |
D | ActivityManager.java | 2620 public @Nullable Rect contentInsets; field in ActivityManager.RecentTaskInfo.PersistedTaskSnapshotData 2635 contentInsets = other.contentInsets; in set() 2646 contentInsets = null; in set() 2652 contentInsets = new Rect(snapshot.getContentInsets()); in set() 2725 lastSnapshotData.contentInsets = source.readTypedObject(Rect.CREATOR); in readFromParcel() 2736 dest.writeTypedObject(lastSnapshotData.contentInsets, flags); in writeToParcel() 2806 pw.print(" contentInsets=" + lastSnapshotData.contentInsets); in dump()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/back/ |
D | CrossTaskBackAnimation.java | 155 mStartTaskRect.inset(0, 0, 0, mClosingTarget.contentInsets.bottom); in startBackAnimation()
|
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/ |
D | MainInteractionSession.java | 345 outInsets.contentInsets.top = mBottomContent.getTop(); in onComputeInsets()
|
/frameworks/base/core/java/android/service/wallpaper/ |
D | WallpaperService.java | 1382 final Rect contentInsets = windowInsets.getSystemWindowInsets().toRect(); in updateSurface() local 1386 insetsChanged |= !mDispatchedContentInsets.equals(contentInsets); in updateSurface() 1451 mDispatchedContentInsets.set(contentInsets); in updateSurface()
|