Home
last modified time | relevance | path

Searched refs:windowSize (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/services/core/java/com/android/server/utils/quota/
DMultiRateLimiter.java146 public Builder addRateLimit(int limit, Duration windowSize) { in addRateLimit() argument
153 countQuotaTracker.setCountLimit(mCategory, limit, windowSize.toMillis()); in addRateLimit()
189 private RateLimit(int limit, Duration windowSize) { in RateLimit() argument
191 this.mWindowSize = windowSize; in RateLimit()
198 public static RateLimit create(int limit, Duration windowSize) { in create() argument
199 return new RateLimit(limit, windowSize); in create()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipDismissTargetHandler.java253 final Point windowSize = new Point(); in getDismissTargetLayoutParams() local
254 mWindowManager.getDefaultDisplay().getRealSize(windowSize); in getDismissTargetLayoutParams()
255 int height = Math.min(windowSize.y, mDismissAreaHeight); in getDismissTargetLayoutParams()
259 0, windowSize.y - height, in getDismissTargetLayoutParams()
/frameworks/base/libs/hwui/renderthread/
DVulkanSurface.cpp47 static SkMatrix GetPreTransformMatrix(SkISize windowSize, int transform) { in GetPreTransformMatrix() argument
48 const int width = windowSize.width(); in GetPreTransformMatrix()
49 const int height = windowSize.height(); in GetPreTransformMatrix()
66 static SkM44 GetPixelSnapMatrix(SkISize windowSize, int transform) { in GetPixelSnapMatrix() argument
70 SkMatrix preRotation = GetPreTransformMatrix(windowSize, transform); in GetPixelSnapMatrix()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskPositionerTests.java114 final int windowSize = Math.min(displayBounds.width(), displayBounds.height()) / 2; in testMoveWindow() local
115 final int left = displayBounds.centerX() - windowSize / 2; in testMoveWindow()
116 final int top = displayBounds.centerY() - windowSize / 2; in testMoveWindow()
117 final Rect r = new Rect(left, top, left + windowSize, top + windowSize); in testMoveWindow()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/qrcode/
DQrCamera.java389 final Size windowSize = mScannerCallback.getViewSize(); in getBestPreviewSize() local
390 final double winRatio = getRatio(windowSize.getWidth(), windowSize.getHeight()); in getBestPreviewSize()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DWindowMagnificationController.java215 final Size windowSize = getDefaultWindowSizeWithWindowBounds(mWindowBounds); in WindowMagnificationController() local
216 setMagnificationFrame(windowSize.getWidth(), windowSize.getHeight(), in WindowMagnificationController()
427 final Size windowSize = getDefaultWindowSizeWithWindowBounds(mWindowBounds); in handleScreenSizeChanged() local
431 setMagnificationFrame(windowSize.getWidth(), windowSize.getHeight(), (int) newCenterX, in handleScreenSizeChanged()
/frameworks/base/media/java/android/media/
DClosedCaptionRenderer.java814 void rollUp(int windowSize) { in rollUp() argument
816 for (i = 0; i <= mRow - windowSize; i++) { in rollUp()
819 int startRow = mRow - windowSize + 1; in rollUp()
881 private void moveBaselineTo(int baseRow, int windowSize) { in moveBaselineTo() argument
885 int actualWindowSize = windowSize; in moveBaselineTo()
906 for (i = 0; i <= baseRow - windowSize; i++) { in moveBaselineTo()
/frameworks/native/libs/gui/tests/
DBLASTBufferQueue_test.cpp619 Rect windowSize(1000, 1000); in TEST_F() local
620 Rect bufferSize(windowSize); in TEST_F()
623 BLASTBufferQueueHelper adapter(mSurfaceControl, windowSize.getWidth(), windowSize.getHeight()); in TEST_F()
669 {0, 0, (int32_t)windowSize.getWidth(), in TEST_F()
670 (int32_t)windowSize.getHeight()}, in TEST_F()
686 Rect windowSize(1000, 1000); in TEST_F() local
690 BLASTBufferQueueHelper adapter(mSurfaceControl, windowSize.getWidth(), windowSize.getHeight()); in TEST_F()
735 {0, 0, (int32_t)windowSize.getWidth(), in TEST_F()
736 (int32_t)windowSize.getHeight()}, in TEST_F()
/frameworks/base/services/core/java/com/android/server/am/
DAppBatteryTracker.java522 final long windowSize = bgPolicy.mBgCurrentDrainWindowMs; in updateBatteryUsageStatsOnce() local
550 if (curDuration >= windowSize) { in updateBatteryUsageStatsOnce()
553 copyUidBatteryUsage(buf, mUidBatteryUsageInWindow, windowSize * 1.0d / curDuration); in updateBatteryUsageStatsOnce()
576 if (needUpdateUidBatteryUsageInWindow && curDuration >= windowSize) { in updateBatteryUsageStatsOnce()
579 copyUidBatteryUsage(buf, mUidBatteryUsageInWindow, windowSize * 1.0d / curDuration); in updateBatteryUsageStatsOnce()
626 final long start = now - windowSize; in updateBatteryUsageStatsOnce()
DAppFGSTracker.java400 final long windowSize = policy.getFgsLongRunningWindowSize(); in checkLongRunningFgs() local
401 final long trimTo = Math.max(0, now - windowSize); in checkLongRunningFgs()
419 + " over " + TimeUtils.formatDuration(windowSize)); in checkLongRunningFgs()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/
DAlarmManagerService.java508 AppWakeupHistory(long windowSize) { in AppWakeupHistory() argument
509 mWindowSize = windowSize; in AppWakeupHistory()
/frameworks/base/core/java/android/view/
DViewRootImpl.java4268 private static int getRootMeasureSpec(int windowSize, int measurement, int privateFlags) { in getRootMeasureSpec() argument
4275 measureSpec = MeasureSpec.makeMeasureSpec(windowSize, MeasureSpec.EXACTLY); in getRootMeasureSpec()
4279 measureSpec = MeasureSpec.makeMeasureSpec(windowSize, MeasureSpec.AT_MOST); in getRootMeasureSpec()