Searched refs:getWidth (Results 276 - 300 of 907) sorted by relevance

<<11121314151617181920>>

/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/
H A DDividerItemDecorationTest.java183 assertEquals("Width should be the same", expected.getWidth(), actual.getWidth());
185 for (int x = 0; x < expected.getWidth(); x++) {
/frameworks/support/transition/src/main/java/androidx/transition/
H A DExplode.java64 int right = left + view.getWidth();
136 focalX = sceneRootX + (sceneRoot.getWidth() / 2)
167 int maxX = Math.max(focalX, sceneRoot.getWidth() - focalX);
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
H A DTooltipPopup.java109 if (anchorView.getWidth() >= tooltipPreciseAnchorThreshold) {
114 offsetX = anchorView.getWidth() / 2; // Center on the view horizontally.
163 outParams.x = mTmpAnchorPos[0] + offsetX - appView.getWidth() / 2;
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DGridLayoutManagerSnappingTest.java185 return mRecyclerView.findChildViewUnder(mRecyclerView.getWidth() / 2, 0);
204 mRecyclerView.getWidth() / 2,
217 return Math.abs(mRecyclerView.getWidth() / 2 - mGlm.getViewBounds(view).centerX());
H A DLinearLayoutManagerSnappingTest.java204 return mRecyclerView.findChildViewUnder(mRecyclerView.getWidth() / 2, 0);
222 assertEquals(mRecyclerView.getWidth() / 2,
232 return Math.abs(mRecyclerView.getWidth() / 2 -
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DOrientationHelper.java261 return mLayoutManager.getWidth() - mLayoutManager.getPaddingRight();
266 return mLayoutManager.getWidth();
323 return mLayoutManager.getWidth() - mLayoutManager.getPaddingLeft()
/frameworks/base/libs/hwui/
H A DBakedOpDispatcher.cpp102 op.bitmap->width(), op.bitmap->height(), op.unmappedBounds.getWidth(),
123 op.bitmap->width(), op.bitmap->height(), op.unmappedBounds.getWidth(),
149 renderer.dirtyRenderTarget(Rect(tx, ty, tx + op.unmappedBounds.getWidth(),
158 Rect(x, y, x + quadBounds.getWidth(), y + quadBounds.getHeight()));
392 op.unmappedBounds.getWidth(), op.unmappedBounds.getHeight(), op.startAngle,
514 const bool tryToSnap = MathUtils::areEqual(op.src.getWidth(), op.unmappedBounds.getWidth()) &&
562 op.unmappedBounds.getWidth(), op.unmappedBounds.getHeight(), op.paint);
592 op.unmappedBounds.getWidth(),
606 Rect(op.unmappedBounds.getWidth(), o
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DSwipeDismissLayout.java61 * layout. This is equivalent to progress * layout.getWidth().
284 this, progressToAlpha(deltaX / getWidth()), deltaX);
359 float distanceThreshold = getWidth() * Math.max(
455 currentTranslation / getWidth(),
464 currentTranslation / getWidth(),
488 setProgress(value * getWidth());
/frameworks/base/libs/hwui/renderthread/
H A DOpenGLPipeline.cpp214 layerPool.get(renderState, node->getWidth(), node->getHeight(), wideColorGamut));
216 } else if (!layerMatchesWH(node->getLayer(), node->getWidth(), node->getHeight())) {
220 node->setLayer(layerPool.resize(node->getLayer(), node->getWidth(), node->getHeight()));
240 if (node->getWidth() > maxTextureSize || node->getHeight() > maxTextureSize) {
241 err << ", size " << node->getWidth() << "x" << node->getHeight()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DCameraTestUtils.java178 reader = ImageReader.newInstance(size.getWidth(), size.getHeight(), format,
262 validateImage(image, mSize.getWidth(), mSize.getHeight(), mFormat, null);
790 assertEquals("Width doesn't match", width, image.getWidth());
809 int width = image.getWidth();
1017 .compareSizes(lhs.getWidth(), lhs.getHeight(), rhs.getWidth(), rhs.getHeight());
1042 if (sz.getWidth() <= bound.getWidth() && sz.getHeight() <= bound.getHeight()) {
1130 if (sz.getWidth() <= bound.getWidth()
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DScrimView.java145 canvas.clipRect(0, 0, getWidth(), mExcludedRect.top);
156 if (mExcludedRect.right < getWidth()) {
158 canvas.clipRect(mExcludedRect.right, mExcludedRect.top, getWidth(),
165 canvas.clipRect(0, mExcludedRect.bottom, getWidth(), getHeight());
333 int right = Math.min(area.right, getWidth());
H A DNotificationMenuRow.java317 mSwipeHelper.swipedFarEnough(mTranslation, mParent.getWidth());
343 final float targetRight = mParent.getWidth() * SWIPED_FAR_ENOUGH_SIZE_FRACTION;
468 final float fadeThreshold = mParent.getWidth() * 0.3f;
476 desiredAlpha = 1 - ((absTrans - fadeThreshold) / (mParent.getWidth() - fadeThreshold));
517 final float right = mParent.getWidth() - (mHorizSpaceForIcon * (i + 1));
553 final float notiThreshold = mParent.getWidth() * 0.4f;
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
H A DViewfinderProcessor.java64 yuvTypeBuilder.setX(dimensions.getWidth());
67 Log.d(TAG, ">>>>>>>>>>>> " + dimensions.getWidth() + "x" + dimensions.getHeight());
72 rgbTypeBuilder.setX(dimensions.getWidth());
78 buffTypeBuilder.setX(dimensions.getWidth());
263 int width = image.getWidth();
/frameworks/support/drawerlayout/src/main/java/androidx/drawerlayout/widget/
H A DDrawerLayout.java970 final int width = drawerView.getWidth();
1395 mStatusBarBackground.setBounds(0, 0, getWidth(), inset);
1405 int clipLeft = 0, clipRight = getWidth();
1453 final int showing = getWidth() - childLeft;
1653 final int childWidth = child.getWidth();
1660 getWidth(), child.getTop());
1706 mRightDragger.smoothSlideViewTo(drawerView, getWidth() - drawerView.getWidth(),
1771 mLeftDragger.smoothSlideViewTo(drawerView, -drawerView.getWidth(),
1774 mRightDragger.smoothSlideViewTo(drawerView, getWidth(), drawerVie
[all...]
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DRequestThreadManager.java329 mPreviewTexture.setDefaultBufferSize(mIntermediateBufferSize.getWidth(),
463 long largestOutputArea = largestOutput.getHeight() * (long) largestOutput.getWidth();
466 long currArea = s.getWidth() * s.getHeight();
467 long bestArea = bestPreviewDimen.getWidth() * bestPreviewDimen.getHeight();
475 mParams.setPreviewSize(mIntermediateBufferSize.getWidth(),
497 smallestSupportedJpegSize.getWidth(), smallestSupportedJpegSize.getHeight());
604 maxConfiguredJpegWidth = jpegSize.getWidth() > maxConfiguredJpegWidth ?
605 jpegSize.getWidth() : maxConfiguredJpegWidth;
620 if (supportedJpegSize.getWidth() >= maxConfiguredJpegWidth &&
650 float aAspect = a.getWidth() / (floa
[all...]
/frameworks/base/core/java/android/hardware/camera2/params/
H A DStreamConfigurationMap.java146 configurationDuration.getWidth() == config.getSize().getWidth() &&
420 (config.getSize().getWidth() <= LegacyCameraDevice.MAX_DIMEN_FOR_ROUNDING)) {
1307 d.getWidth() == config.getSize().getWidth() &&
1369 configurationDuration.getWidth() == size.getWidth() &&
1493 "stall:%d], ", size.getWidth(), size.getHeight(), formatToString(format),
1514 "stall:%d], ", size.getWidth(), size.getHeight(), formatToString(format),
1531 sb.append(String.format("[w:%d, h:%d, format:%s(%d)], ", size.getWidth(),
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
H A DCamera2ReprocessCaptureTest.java360 cameraId, inputSize.getWidth(), inputSize.getHeight(), inputFormat,
361 reprocessOutputSize.getWidth(), reprocessOutputSize.getHeight(),
419 cameraId, inputSize.getWidth(), inputSize.getHeight(), inputFormat,
420 reprocessOutputSize.getWidth(), reprocessOutputSize.getHeight(),
480 cameraId, inputSize.getWidth(), inputSize.getHeight(), inputFormat,
481 reprocessOutputSize.getWidth(), reprocessOutputSize.getHeight(),
887 InputConfiguration inputConfig = new InputConfiguration(mFirstImageReader.getWidth(),
894 inputConfig.getWidth(), inputConfig.getHeight(), inputConfig.getFormat(),
895 mFirstImageReader.getWidth(), mFirstImageReader.getHeight(),
897 inputConfig.getWidth()
[all...]
H A DCamera2SwitchPreviewTest.java357 (videoSz.getWidth() > maxPreviewSize.getWidth() ||
494 if (videoSize.getWidth() > maxPreviewSize.getWidth() ||
505 s.getWidth() <= videoSize.getWidth() &&
/frameworks/base/core/java/android/widget/
H A DSlidingDrawer.java366 mHandleWidth = handle.getWidth();
532 (position > (mVertical ? getHeight() : getWidth()) / 2 &&
566 (mVertical ? getHeight() - mHandleHeight : getWidth() - mHandleWidth);
611 region.union(0, frame.bottom - deltaY, getWidth(),
642 frame.right - deltaX + mContent.getWidth(), getHeight());
666 final int childWidth = mHandle.getWidth();
700 if (mAnimationPosition >= mBottomOffset + (mVertical ? getHeight() : getWidth()) - 1) {
/frameworks/base/test-runner/src/android/test/
H A DTouchUtils.java230 final int viewWidth = v.getWidth();
250 final int viewWidth = v.getWidth();
290 final int viewWidth = v.getWidth();
325 final int viewWidth = v.getWidth();
386 final int viewWidth = v.getWidth();
473 final int viewWidth = v.getWidth();
495 final int viewWidth = v.getWidth();
/frameworks/base/core/java/android/view/
H A DNotificationHeaderView.java78 outline.setRect(0, 0, getWidth(), getHeight());
219 layoutLeft = getWidth() - layoutRight;
220 layoutRight = getWidth() - ltrLeft;
253 mBackground.setBounds(0, 0, getWidth(), getHeight());
407 r.right = getWidth();
419 float width = Math.max(size, view.getWidth());
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DNotificationPanelView.java414 setIsFullWidth(mNotificationStackScroller.getWidth() == getWidth());
417 mKeyguardStatusView.setPivotX(getWidth() / 2);
796 && stackScrollerX < x && x < stackScrollerX + mNotificationStackScroller.getWidth();
940 && x <= mQsFrame.getX() + mQsFrame.getWidth())
1513 && x <= mQsFrame.getX() + mQsFrame.getWidth()
2077 return (float) Math.hypot(getWidth(), getHeight());
2340 canvas.drawRect(0, 0, canvas.getWidth(), canvas.getHeight(), mAlphaPaint);
2377 canvas.drawLine(0, getMaxPanelHeight(), getWidth(), getMaxPanelHeight(), p);
2379 canvas.drawLine(0, getExpandedHeight(), getWidth(), getExpandedHeigh
[all...]
H A DStatusBarWindowView.java278 mFalsingManager.onTouchEvent(ev, getWidth(), getHeight());
353 int paddedRight = getWidth() - getPaddingRight();
355 canvas.drawRect(0, 0, getWidth(), getPaddingTop(), mTransparentSrcPaint);
358 canvas.drawRect(0, paddedBottom, getWidth(), getHeight(), mTransparentSrcPaint);
365 canvas.drawRect(paddedRight, getPaddingTop(), getWidth(), paddedBottom,
374 canvas.drawRect(0, 0, canvas.getWidth(), canvas.getHeight(), pt);
/frameworks/av/packages/MediaComponents/src/com/android/media/
H A DMediaMetadata2Impl.java254 if (bmp.getHeight() > maxBitmapSize || bmp.getWidth() > maxBitmapSize) {
364 float widthScale = maxSizeF / bmp.getWidth();
368 int width = (int) (bmp.getWidth() * scale);
/frameworks/base/core/tests/coretests/src/android/graphics/
H A DBitmapTest.java36 assertEquals("width", 100, bm1.getWidth());
37 assertEquals("width", 100, bm2.getWidth());
38 assertEquals("width", 100, bm3.getWidth());

Completed in 812 milliseconds

<<11121314151617181920>>