/frameworks/base/services/core/java/com/android/server/selinux/ |
D | QuotaLimiter.java | 43 QuotaLimiter(Clock clock, Duration windowSize, int maxPermits) { in QuotaLimiter() argument 45 mWindowSize = windowSize; in QuotaLimiter() 49 public QuotaLimiter(Duration windowSize, int maxPermits) { in QuotaLimiter() argument 50 this(Clock.SYSTEM_CLOCK, windowSize, maxPermits); in QuotaLimiter()
|
/frameworks/base/services/core/java/com/android/server/utils/quota/ |
D | MultiRateLimiter.java | 146 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/pip2/phone/ |
D | PipDismissTargetHandler.java | 258 final Point windowSize = new Point(); in getDismissTargetLayoutParams() local 259 mWindowManager.getDefaultDisplay().getRealSize(windowSize); in getDismissTargetLayoutParams() 260 int height = Math.min(windowSize.y, mDismissAreaHeight); in getDismissTargetLayoutParams() 264 0, windowSize.y - height, in getDismissTargetLayoutParams()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/ |
D | PipDismissTargetHandler.java | 258 final Point windowSize = new Point(); in getDismissTargetLayoutParams() local 259 mWindowManager.getDefaultDisplay().getRealSize(windowSize); in getDismissTargetLayoutParams() 260 int height = Math.min(windowSize.y, mDismissAreaHeight); in getDismissTargetLayoutParams() 264 0, windowSize.y - height, in getDismissTargetLayoutParams()
|
/frameworks/base/libs/hwui/renderthread/ |
D | VulkanSurface.cpp | 48 static SkMatrix GetPreTransformMatrix(SkISize windowSize, int transform) { in GetPreTransformMatrix() argument 49 const int width = windowSize.width(); in GetPreTransformMatrix() 50 const int height = windowSize.height(); in GetPreTransformMatrix() 67 static SkM44 GetPixelSnapMatrix(SkISize windowSize, int transform) { in GetPixelSnapMatrix() argument 71 SkMatrix preRotation = GetPreTransformMatrix(windowSize, transform); in GetPixelSnapMatrix()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskPositionerTests.java | 114 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/ |
D | QrCamera.java | 401 final Size windowSize = mScannerCallback.getViewSize(); in getBestPreviewSize() local 402 final double winRatio = getRatio(windowSize.getWidth(), windowSize.getHeight()); in getBestPreviewSize()
|
/frameworks/base/media/java/android/media/ |
D | ClosedCaptionRenderer.java | 814 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/base/services/core/java/com/android/server/wearable/ |
D | WearableSensingManagerService.java | 267 void setDataRequestRateLimitWindowSize(@NonNull Duration windowSize) { in setDataRequestRateLimitWindowSize() argument 273 windowSize)); in setDataRequestRateLimitWindowSize() 276 .addRateLimit(WearableSensingDataRequest.getRateLimit(), windowSize) in setDataRequestRateLimitWindowSize()
|
/frameworks/native/libs/gui/tests/ |
D | BLASTBufferQueue_test.cpp | 611 Rect windowSize(1000, 1000); in TEST_F() local 612 Rect bufferSize(windowSize); in TEST_F() 615 BLASTBufferQueueHelper adapter(mSurfaceControl, windowSize.getWidth(), windowSize.getHeight()); in TEST_F() 662 {0, 0, (int32_t)windowSize.getWidth(), in TEST_F() 663 (int32_t)windowSize.getHeight()}, in TEST_F() 668 Rect windowSize(1000, 1000); in TEST_F() local 672 BLASTBufferQueueHelper adapter(mSurfaceControl, windowSize.getWidth(), windowSize.getHeight()); in TEST_F() 718 {0, 0, (int32_t)windowSize.getWidth(), in TEST_F() 719 (int32_t)windowSize.getHeight()}, in TEST_F()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | AppBatteryTracker.java | 524 final long windowSize = bgPolicy.mBgCurrentDrainWindowMs; in updateBatteryUsageStatsOnce() local 552 if (curDuration >= windowSize) { in updateBatteryUsageStatsOnce() 555 copyUidBatteryUsage(buf, mUidBatteryUsageInWindow, windowSize * 1.0d / curDuration); in updateBatteryUsageStatsOnce() 592 if (needUpdateUidBatteryUsageInWindow && curDuration >= windowSize) { in updateBatteryUsageStatsOnce() 595 copyUidBatteryUsage(buf, mUidBatteryUsageInWindow, windowSize * 1.0d / curDuration); in updateBatteryUsageStatsOnce() 642 final long start = now - windowSize; in updateBatteryUsageStatsOnce()
|
D | AppFGSTracker.java | 405 final long windowSize = policy.getFgsLongRunningWindowSize(); in checkLongRunningFgs() local 406 final long trimTo = Math.max(0, now - windowSize); in checkLongRunningFgs() 424 + " over " + TimeUtils.formatDuration(windowSize)); in checkLongRunningFgs()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/ |
D | AlarmManagerService.java | 525 AppWakeupHistory(long windowSize) { in AppWakeupHistory() argument 526 mWindowSize = windowSize; in AppWakeupHistory()
|
/frameworks/base/core/java/android/view/ |
D | ViewRootImpl.java | 5049 private static int getRootMeasureSpec(int windowSize, int measurement, int privateFlags) { in getRootMeasureSpec() argument 5056 measureSpec = MeasureSpec.makeMeasureSpec(windowSize, MeasureSpec.EXACTLY); in getRootMeasureSpec() 5060 measureSpec = MeasureSpec.makeMeasureSpec(windowSize, MeasureSpec.AT_MOST); in getRootMeasureSpec()
|