Home
last modified time | relevance | path

Searched refs:taskSize (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DDragResizeWindowGeometry.java66 DragResizeWindowGeometry(int taskCornerRadius, @NonNull Size taskSize, in DragResizeWindowGeometry() argument
69 mTaskSize = taskSize; in DragResizeWindowGeometry()
349 TaskCorners(@NonNull Size taskSize, int cornerSize) { in TaskCorners() argument
359 taskSize.getWidth() - cornerRadius, in TaskCorners()
361 taskSize.getWidth() + cornerRadius, in TaskCorners()
366 taskSize.getHeight() - cornerRadius, in TaskCorners()
368 taskSize.getHeight() + cornerRadius); in TaskCorners()
371 taskSize.getWidth() - cornerRadius, in TaskCorners()
372 taskSize.getHeight() - cornerRadius, in TaskCorners()
373 taskSize.getWidth() + cornerRadius, in TaskCorners()
[all …]
DDragResizeInputListener.java200 final Size taskSize = geometry.getTaskSize(); in setGeometry() local
202 .setWindowCrop(mInputSinkSurface, taskSize.getWidth(), taskSize.getHeight()) in setGeometry()
215 mTouchRegion.op(0, 0, taskSize.getWidth(), taskSize.getHeight(), Region.Op.DIFFERENCE); in setGeometry()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/
DThumbnailData.kt66 ?: Bitmap.createBitmap(snapshot.taskSize.x, snapshot.taskSize.y, ARGB_8888).apply { in <lambda>()
92 scale = thumbnail.width.toFloat() / snapshot.taskSize.x, in <lambda>()
DTask.java321 if (lastSnapshotData.taskSize == null || lastSnapshotData.contentInsets == null) { in getVisibleThumbnailRatio()
325 float availableWidth = lastSnapshotData.taskSize.x; in getVisibleThumbnailRatio()
326 float availableHeight = lastSnapshotData.taskSize.y; in getVisibleThumbnailRatio()
/frameworks/base/services/core/java/com/android/server/wm/
DAppSnapshotLoader.java190 Point taskSize; in loadTask() local
194 taskSize = new Point(taskWidth, taskHeight); in loadTask()
196 taskSize = new Point(proto.taskWidth, proto.taskHeight); in loadTask()
201 proto.orientation, proto.rotation, taskSize, in loadTask()
DAbsAppSnapshotController.java339 final Point taskSize = new Point(); in prepareTaskSnapshot() local
345 taskSize.set(changeInfo.mAbsoluteBounds.right, changeInfo.mAbsoluteBounds.bottom); in prepareTaskSnapshot()
354 taskSize.set(taskBounds.width(), taskBounds.height()); in prepareTaskSnapshot()
359 builder.setTaskSize(taskSize); in prepareTaskSnapshot()
DTask.java4014 if (mLastTaskSnapshotData.taskSize != null) {
4016 mLastTaskSnapshotData.taskSize.flattenToString());
4201 lastSnapshotData.taskSize = Point.unflattenFromString(attrValue);
DActivityRecord.java2746 final Point taskSize = snapshot.getTaskSize(); in isSnapshotOrientationCompatible() local
2754 return Math.abs(((float) taskSize.x / Math.max(taskSize.y, 1)) in isSnapshotOrientationCompatible()
/frameworks/base/core/java/android/app/
DHomeVisibilityListener.java110 for (int i = 0, taskSize = tasksTopToBottom.size(); i < taskSize; ++i) { in isHomeActivityVisible()
DActivityManager.java2613 public @Nullable Point taskSize; field in ActivityManager.RecentTaskInfo.PersistedTaskSnapshotData
2634 taskSize = other.taskSize; in set()
2645 taskSize = null; in set()
2651 taskSize = new Point(snapshot.getTaskSize()); in set()
2724 lastSnapshotData.taskSize = source.readTypedObject(Point.CREATOR); in readFromParcel()
2735 dest.writeTypedObject(lastSnapshotData.taskSize, flags); in writeToParcel()
2805 pw.print(" taskSize=" + lastSnapshotData.taskSize); in dump()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
DStartingSurfaceDrawer.java318 final int taskSize = mStartingWindowRecords.size(); in clearAllWindows() local
319 final int[] taskIds = new int[taskSize]; in clearAllWindows()
320 for (int i = taskSize - 1; i >= 0; --i) { in clearAllWindows()
323 for (int i = taskSize - 1; i >= 0; --i) { in clearAllWindows()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
DDragResizeWindowGeometryTests.java304 TestPoints(@NonNull Size taskSize, int cornerRadius) { in TestPoints() argument
310 mTopRightPoint = new Point(taskSize.getWidth() + cornerRadius - 1, -cornerRadius + 1); in TestPoints()
314 taskSize.getHeight() + cornerRadius - 1); in TestPoints()
317 mBottomRightPoint = new Point(taskSize.getWidth() + cornerRadius - 1, in TestPoints()
318 taskSize.getHeight() + cornerRadius - 1); in TestPoints()
/frameworks/base/core/tests/coretests/src/android/window/
DSnapshotDrawerUtilsTest.java73 Point taskSize = new Point(taskBounds.width(), taskBounds.height()); in setupSurface() local
75 final TaskSnapshot snapshot = createTaskSnapshot(width, height, taskSize, contentInsets); in setupSurface()
85 private TaskSnapshot createTaskSnapshot(int width, int height, Point taskSize, in createTaskSnapshot() argument
94 Surface.ROTATION_0, taskSize, contentInsets, new Rect() /* letterboxInsets */, in createTaskSnapshot()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskSnapshotPersisterTestBase.java213 Point taskSize = new Point((int) (mWidth / mScaleFraction), in build() local
224 mRotation, taskSize, TEST_CONTENT_INSETS, TEST_LETTERBOX_INSETS, in build()
DTaskSnapshotControllerTest.java172 final Point taskSize = new Point(9, 10); in testSnapshotBuilder() local
189 builder.setTaskSize(taskSize); in testSnapshotBuilder()
209 assertEquals(taskSize, snapshot.getTaskSize()); in testSnapshotBuilder()
DRecentTasksTest.java1292 assertTrue(lastSnapshotData.taskSize.equals(100, 100)); in testLastSnapshotData_snapshotSaved()
1306 assertTrue(lastSnapshotData.taskSize.equals(100, 100)); in testLastSnapshotData_noBuffer()
1318 assertNull(lastSnapshotData.taskSize); in testLastSnapshotData_notSet()
1376 private TaskSnapshot createSnapshot(Point taskSize, Point bufferSize) { in createSnapshot() argument
1385 Surface.ROTATION_0, taskSize, new Rect() /* contentInsets */, in createSnapshot()
/frameworks/base/core/java/android/window/
DTaskSnapshot.java95 @NonNull ColorSpace colorSpace, int orientation, int rotation, Point taskSize, in TaskSnapshot() argument
108 mTaskSize = new Point(taskSize); in TaskSnapshot()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/startingsurface/
DStartingSurfaceDrawerTests.java361 private TaskSnapshot createTaskSnapshot(int width, int height, Point taskSize, in createTaskSnapshot() argument
370 Surface.ROTATION_0, taskSize, contentInsets, new Rect() /* letterboxInsets */, in createTaskSnapshot()