Home
last modified time | relevance | path

Searched refs:getSize (Results 1 – 25 of 146) sorted by relevance

123456

/packages/apps/Email/tests/src/com/android/email/service/
DAttachmentServiceTests.java50 assertEquals(0, dq.getSize()); in testDownloadQueueEmptyQueue()
60 assertEquals(1, dq.getSize()); in testDownloadQueueAddRequest()
73 assertEquals(0, dq.getSize()); in testDownloadQueueAddRequestNull()
83 assertEquals(1, dq.getSize()); in testDownloadQueueAddRequestExisting()
89 assertEquals(1, dq.getSize()); in testDownloadQueueAddRequestExisting()
99 assertEquals(1, dq.getSize()); in testDownloadQueueRemoveRequest()
107 assertEquals(0, dq.getSize()); in testDownloadQueueRemoveRequest()
117 assertEquals(dq.getSize(), 1); in testDownloadQueueRemoveRequestNull()
125 assertEquals(1, dq.getSize()); in testDownloadQueueRemoveRequestNull()
135 assertEquals(1, dq.getSize()); in testDownloadQueueRemoveRequestDoesNotExist()
[all …]
/packages/apps/TV/src/com/android/tv/tuner/exoplayer/buffer/
DBufferManager.java73 mBufferSize += chunk.getSize();
78 mBufferSize -= chunk.getSize();
323 mSize += chunk.getSize(); in add()
333 mSize -= chunk.getSize(); in poll()
340 private long getSize() { in getSize() method in BufferManager.EvictChunkQueueMap
491 long pendingDelete = mPendingDelete.getSize(); in maybeEvictChunk()
523 mBufferSize, pendingDelete, earliestChunk.getSize(), earliestChunkId, in maybeEvictChunk()
531 pendingDelete = mPendingDelete.getSize(); in maybeEvictChunk()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/
Ddic_nodes_cache.h68 AKLOGI("Advance active %d nodes.", mNextActiveDicNodes->getSize()); in advanceActiveDicNodes()
77 int activeSize() const { return mActiveDicNodes->getSize(); } in activeSize()
78 int terminalSize() const { return mTerminalDicNodes->getSize(); } in terminalSize()
114 && mCachedDicNodesForContinuousSuggestion->getSize() > 0; in hasCachedDicNodesForContinuousSuggestion()
136 mCachedDicNodesForContinuousSuggestion->getSize(), mLastCachedInputIndex); in restoreActiveDicNodesFromCache()
Ddic_node_priority_queue.h40 AK_FORCE_INLINE int getSize() const { in getSize() function
69 if (getSize() < mMaxSize) { in copyPush()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DSwipeHelper.java141 private float getSize(View v) { in getSize() method in SwipeHelper
147 float viewSize = getSize(view); in getAlphaForOffset()
161 float viewSize = getSize(view); in getTextAlphaForOffset()
311 newPos = -getSize(animView); in determinePos()
313 newPos = getSize(animView); in determinePos()
379 float size = getSize(mCurrAnimView); in onTouchEvent()
413 float currAnimViewSize = getSize(mCurrAnimView); in onTouchEvent()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DRecycleBitmapPool.java61 public static int getSize(Bitmap bitmap) { in getSize() method in RecycleBitmapPool
77 private static int getSize(int width, int height) { in getSize() method in RecycleBitmapPool
92 int key = getSize(bitmap); in addRecycledBitmap()
111 int key = getSize(width, height); in getRecycledBitmap()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DIndicatorControlWheelContainer.java134 measuredWidth = Math.min(desiredWidth, MeasureSpec.getSize(widthSpec)); in onMeasure()
136 measuredWidth = MeasureSpec.getSize(widthSpec); in onMeasure()
141 measuredHeight = Math.min(desiredHeight, MeasureSpec.getSize(heightSpec)); in onMeasure()
143 measuredHeight = MeasureSpec.getSize(heightSpec); in onMeasure()
DControlPanelLayout.java41 int widthSpecSize = MeasureSpec.getSize(widthSpec); in onMeasure()
42 int heightSpecSize = MeasureSpec.getSize(heightSpec); in onMeasure()
/packages/apps/ExactCalculator/src/com/android/calculator2/
DCalculatorScrollView.java46 final int size = Math.max(0, MeasureSpec.getSize(spec) - padding); in getChildMeasureSpecCompat()
57 MeasureSpec.getSize(parentWidthMeasureSpec), UNSPECIFIED); in measureChild()
73 MeasureSpec.getSize(parentWidthMeasureSpec), UNSPECIFIED); in measureChildWithMargins()
/packages/apps/Gallery2/src/com/android/photos/views/
DSquareImageView.java43 int width = MeasureSpec.getSize(widthMeasureSpec); in onMeasure()
46 height = Math.min(height, MeasureSpec.getSize(heightMeasureSpec)); in onMeasure()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DScrollAdapterView.java584 if (hasScrollPosition(centerMain, getSize(view), scrollCenter)
1156 int widthSize = MeasureSpec.getSize(widthMeasureSpec);
1157 int heightSize = MeasureSpec.getSize(heightMeasureSpec);
1829 info.mainPos = (float)(scrollCenter - center) / getSize(view);
1842 info.mainPos = (float) (scrollCenter - center) / getSize(view);
1928 deltaMain = (int) (getSize(view) * scrollPosition);
2093 private int getSize(View v) {
2610 nextCenter = center + (getSize(view) + getSize(nextView)) / 2;
2613 nextCenter = center + getSize(view);
2616 nextCenter = center + getSize(nextView);
/packages/apps/DeskClock/src/com/android/deskclock/
DTimerCircleFrameLayout.java58 final int width = MeasureSpec.getSize(widthMeasureSpec) - paddingLeft - paddingRight; in onMeasure()
59 final int height = MeasureSpec.getSize(heightMeasureSpec) - paddingTop - paddingBottom; in onMeasure()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/
DCenteredLinearLayout.java39 int parentWidth = MeasureSpec.getSize(widthMeasureSpec); in onMeasure()
40 int parentHeight = MeasureSpec.getSize(heightMeasureSpec); in onMeasure()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DTintedDrawableSpan.java41 public int getSize(Paint paint, CharSequence text, int start, int end, FontMetricsInt fm) { in getSize() method in TintedDrawableSpan
45 return super.getSize(paint, text, start, end, fm); in getSize()
/packages/apps/LegacyCamera/src/com/android/camera/
DPreviewFrameLayout.java64 int previewWidth = MeasureSpec.getSize(widthSpec); in onMeasure()
65 int previewHeight = MeasureSpec.getSize(heightSpec); in onMeasure()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/
DManualLayoutFrame.java43 newWidth = Math.min(mWidth, MeasureSpec.getSize(widthMeasureSpec)); in onMeasure()
46 newWidth = MeasureSpec.getSize(widthMeasureSpec); in onMeasure()
DPreferenceImageView.java49 final int widthSize = MeasureSpec.getSize(widthMeasureSpec); in onMeasure()
59 final int heightSize = MeasureSpec.getSize(heightMeasureSpec); in onMeasure()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/
DFixedAspectSurfaceView.java69 int width = MeasureSpec.getSize(widthMeasureSpec); in onMeasure()
70 int height = MeasureSpec.getSize(heightMeasureSpec); in onMeasure()
/packages/apps/Email/tests/src/com/android/email/mail/store/
DPop3StoreUnitTests.java538 assertEquals(PER_MESSAGE_SIZE, messages[0].getSize()); in testCatchClosed2()
586 assertEquals(PER_MESSAGE_SIZE, messages[0].getSize()); in testCatchClosed2a()
633 assertEquals(PER_MESSAGE_SIZE, messages[0].getSize()); in testCatchClosed3()
795 assertEquals(PER_MESSAGE_SIZE, messages[0].getSize()); in checkOneUnread()
/packages/apps/DeskClock/src/com/android/deskclock/widget/
DEllipsizeLayout.java71 final int parentWidth = MeasureSpec.getSize(widthMeasureSpec); in onMeasure()
73 makeMeasureSpec(MeasureSpec.getSize(widthMeasureSpec), MeasureSpec.UNSPECIFIED); in onMeasure()
DTextSizeHelper.java58 widthConstraint = View.MeasureSpec.getSize(widthMeasureSpec) in onMeasure()
64 heightConstraint = View.MeasureSpec.getSize(heightMeasureSpec) in onMeasure()
/packages/apps/Gallery2/src/com/android/photos/data/
DGalleryBitmapPool.java113 public int getSize() { in getSize() method in GalleryBitmapPool
119 total += p.getSize(); in getSize()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DCameraPreview.java71 final int width = View.MeasureSpec.getSize(widthMeasureSpec); in getWidthMeasureSpec()
81 final int width = View.MeasureSpec.getSize(widthMeasureSpec); in getHeightMeasureSpec()
/packages/apps/Settings/src/com/android/settings/widget/
DDotsPageIndicator.java285 height = MeasureSpec.getSize(heightMeasureSpec); in onMeasure()
288 height = Math.min(desiredHeight, MeasureSpec.getSize(heightMeasureSpec)); in onMeasure()
298 width = MeasureSpec.getSize(widthMeasureSpec); in onMeasure()
301 width = Math.min(desiredWidth, MeasureSpec.getSize(widthMeasureSpec)); in onMeasure()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/
DCameraPreview.java94 final int width = View.MeasureSpec.getSize(widthMeasureSpec); in getWidthMeasureSpec()
104 final int width = View.MeasureSpec.getSize(widthMeasureSpec); in getHeightMeasureSpec()

123456