Home
last modified time | relevance | path

Searched refs:WIDTH (Results 1 – 25 of 53) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/android/text/
DDynamicLayoutTest.java43 private static final int WIDTH = 10000; field in DynamicLayoutTest
48 final DynamicLayout layout = new DynamicLayout(builder, new TextPaint(), WIDTH, in testGetBlocksAlwaysNeedToBeRedrawn_en()
74 final DynamicLayout layout = new DynamicLayout(builder, new TextPaint(), WIDTH, in testGetBlocksAlwaysNeedToBeRedrawn_replacementSpan()
103 final DynamicLayout layout = new DynamicLayout(builder, new TextPaint(), WIDTH, in testGetBlocksAlwaysNeedToBeRedrawn_thai()
128 text.length(), textPaint, WIDTH) in testGetLineExtra_withoutLinespacing()
136 WIDTH, in testGetLineExtra_withoutLinespacing()
158 text.length(), textPaint, WIDTH) in testGetLineExtra_withLinespacing()
167 WIDTH, in testGetLineExtra_withLinespacing()
202 final DynamicLayout layout = new DynamicLayout(spannable, new TextPaint(), WIDTH, in testReflow_afterSpannableEdit()
291 .obtain("", new TextPaint(), WIDTH); in testBuilder_defaultTextDirection()
[all …]
DDynamicLayoutOffsetMappingTest.java36 private static final int WIDTH = 10000; field in DynamicLayoutOffsetMappingTest
45 final DynamicLayout layout = DynamicLayout.Builder.obtain(spannable, sTextPaint, WIDTH) in textWithOffsetMapping()
62 final DynamicLayout layout = DynamicLayout.Builder.obtain(spannable, sTextPaint, WIDTH) in textWithOffsetMapping_deletion()
90 final DynamicLayout layout = DynamicLayout.Builder.obtain(spannable, sTextPaint, WIDTH) in textWithOffsetMapping_insertion()
111 final DynamicLayout layout = DynamicLayout.Builder.obtain(spannable, sTextPaint, WIDTH) in textWithOffsetMapping_replace()
129 final DynamicLayout layout = DynamicLayout.Builder.obtain(spannable, sTextPaint, WIDTH) in textWithOffsetMapping_blockBeforeTextChanged_deletion()
152 final DynamicLayout layout = DynamicLayout.Builder.obtain(spannable, sTextPaint, WIDTH) in textWithOffsetMapping_blockBeforeTextChanged_insertion()
173 final DynamicLayout layout = DynamicLayout.Builder.obtain(spannable, sTextPaint, WIDTH) in textWithOffsetMapping_blockBeforeTextChanged_replace()
190 DynamicLayout.Builder.obtain(spannable, sTextPaint, WIDTH) in textWithOffsetMapping_onlyCallOnTextChanged_notCrash()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDisplayDeviceTest.java53 private static final int WIDTH = 500; field in DisplayDeviceTest
55 private static final Point PORTRAIT_SIZE = new Point(WIDTH, HEIGHT);
56 private static final Point PORTRAIT_DOUBLE_WIDTH = new Point(2 * WIDTH, HEIGHT);
57 private static final Point LANDSCAPE_SIZE = new Point(HEIGHT, WIDTH);
58 private static final Point LANDSCAPE_DOUBLE_HEIGHT = new Point(HEIGHT, 2 * WIDTH);
69 mDisplayDeviceInfo.width = WIDTH; in setup()
/frameworks/base/tests/Input/src/android/hardware/input/
DKeyboardLayoutPreviewTests.kt45 const val WIDTH = 100 constant
55 return inputManager.getKeyboardLayoutPreview(null, WIDTH, HEIGHT) in createDrawable()
62 assertEquals(WIDTH, drawable.intrinsicWidth) in testKeyboardLayoutDrawable_hasCorrectDimensions()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/graph/
DBatteryMeterDrawableBaseTest.java42 private static final int WIDTH = 40; field in BatteryMeterDrawableBaseTest
60 mBatteryMeterDrawableBase.setBounds(0, 0, WIDTH + 2 * PADDING, HEIGHT + 2 * PADDING); in testDraw_hasPaddingAndBounds_drawWarningInCorrectPosition()
73 mBatteryMeterDrawableBase.setBounds(0, 0, WIDTH + 2 * PADDING, HEIGHT + 2 * PADDING); in testDraw_hasPaddingAndBounds_drawBatteryLevelInCorrectPosition()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/clamper/
DHdrClamperTest.java65 private static final int WIDTH = 600; field in HdrClamperTest
111 mHdrClamper.resetHdrConfig(TEST_HDR_DATA, WIDTH, HEIGHT, MIN_HDR_PERCENT, otherBinder); in testRegisterOtherHdrListenerWhenCalledWithOtherToken()
119 mHdrClamper.resetHdrConfig(TEST_HDR_DATA, WIDTH, HEIGHT, MIN_HDR_PERCENT, mMockBinder); in testRegisterHdrListenerOnceWhenCalledWithSameToken()
128 mHdrClamper.resetHdrConfig(TEST_HDR_DATA, WIDTH, HEIGHT, in testRegisterHdrListener_ZeroMinHdrPercent()
138 mHdrClamper.resetHdrConfig(TEST_HDR_DATA, WIDTH, HEIGHT, -1, otherBinder); in testRegisterNotCalledIfHbmConfigIsMissing()
251 mHdrClamper.resetHdrConfig(TEST_HDR_DATA, WIDTH, HEIGHT, MIN_HDR_PERCENT, mMockBinder); in configureClamper()
/frameworks/base/core/tests/coretests/src/android/hardware/display/
DVirtualDisplayConfigTest.java46 private static final int WIDTH = 720; field in VirtualDisplayConfigTest
88 return new VirtualDisplayConfig.Builder(name, WIDTH, HEIGHT, DENSITY) in buildGenericVirtualDisplay()
100 assertThat(config.getWidth()).isEqualTo(WIDTH); in validateConstantFields()
DVirtualDisplayTest.java64 private static final int WIDTH = 720; field in VirtualDisplayTest
94 mImageReader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBA_8888, 2); in setUp()
122 WIDTH, HEIGHT, DENSITY, mSurface, 0); in testPrivateVirtualDisplay()
143 WIDTH, HEIGHT, DENSITY, mSurface, DisplayManager.VIRTUAL_DISPLAY_FLAG_PRESENTATION); in testPrivatePresentationVirtualDisplay()
168 WIDTH, HEIGHT, DENSITY, mSurface, in testPublicPresentationVirtualDisplay()
214 WIDTH, HEIGHT, DENSITY, mSurface, in testSecurePublicPresentationVirtualDisplay()
247 WIDTH, HEIGHT, DENSITY, mSurface, in testTrustedVirtualDisplay()
269 assertEquals("display width must match supplied width", WIDTH, size.x); in assertDisplayRegistered()
/frameworks/native/services/inputflinger/reader/include/
DEventHub.h413 static constexpr size_t WIDTH = sizeof(Element) * CHAR_BIT; variable
415 static constexpr size_t COUNT = (BITS + WIDTH - 1) / WIDTH;
425 return (bit < BITS) && mData[bit / WIDTH].test(bit % WIDTH); in test()
434 mData[bit / WIDTH].set(bit % WIDTH, value); in set()
448 size_t se = startIndex / WIDTH; // Start of element in any()
449 size_t ee = endIndex / WIDTH; // End of element in any()
450 size_t si = startIndex % WIDTH; // Start index in start element in any()
451 size_t ei = endIndex % WIDTH; // End index in end element in any()
454 size_t nBits = se == ee ? ei - si : WIDTH - si; in any()
480 mData[i] = std::bitset<WIDTH>(buffer[i]); in loadFromBuffer()
[all …]
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/
DSizeVoteTest.kt27 private const val WIDTH = 800 constant
38 sizeVote = SizeVote(WIDTH, HEIGHT, MIN_WIDTH, MIN_HEIGHT) in setUp()
51 assertThat(summary.width).isEqualTo(WIDTH) in updates size if width and height not set and display resolution voting disabled()
96 assertThat(summary.width).isEqualTo(WIDTH) in updates width if summary has more and display resolution voting enabled()
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DMultiProducerActivity.java41 private final int WIDTH = 900; field in MultiProducerActivity
62 LayoutParams frameLP = new LayoutParams(WIDTH, HEIGHT, 0, 0); in onCreate()
70 WIDTH - 2 * BORDER_WIDTH, HEIGHT - 2 * BORDER_WIDTH, in onCreate()
81 LayoutParams contentLP = new LayoutParams(WIDTH - 2 * BORDER_WIDTH - CONTENT_GAP, in onCreate()
151 mFrameContent = new ColorPulse(0xFF101010, 0xFF707070, new Rect(0, 0, WIDTH, HEIGHT)); in FakeFrame()
DColorBitmapActivity.java60 private static final int WIDTH = 512; field in ColorBitmapActivity
114 WIDTH, HEIGHT, PixelFormat.RGBA_8888, 1, in getGradientBuffer()
197 linearLayout.addView(mImageView, new LinearLayout.LayoutParams(WIDTH, HEIGHT)); in onCreate()
201 linearLayout.addView(mTextureView, new LinearLayout.LayoutParams(WIDTH, HEIGHT)); in onCreate()
205 linearLayout.addView(mSurfaceView, new LinearLayout.LayoutParams(WIDTH, HEIGHT)); in onCreate()
/frameworks/compile/mclinker/include/mcld/ADT/
DSizeTraits.h152 template <size_t WIDTH>
154 uint64_t mask = (~((uint64_t)0)) >> (64 - WIDTH); in signExtend()
155 uint64_t sign_bit = 1 << (WIDTH - 1); in signExtend()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/additionalviewcontainer/
DAdditionalSystemViewContainerTest.kt75 WIDTH, in testReleaseView_ViewRemoved()
86 private const val WIDTH = 400 constant
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DBottomScrollViewTest.java88 private static final int WIDTH = 10; field in BottomScrollViewTest.TestChildView
98 setMeasuredDimension(WIDTH, mHeight); in onMeasure()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
DThemedBatteryDrawable.kt158 intrinsicWidth = (Companion.WIDTH * density).toInt() in <lambda>()
367 scaleMatrix.setScale((b.right / WIDTH), (b.bottom / HEIGHT)) in <lambda>()
380 Math.max(b.right / WIDTH * PROTECTION_STROKE_WIDTH, PROTECTION_MIN_STROKE_WIDTH) in <lambda>()
416 const val WIDTH = 12f in <lambda>() constant
/frameworks/native/services/surfaceflinger/tests/unittests/
DDisplayTransactionTestHelpers.h245 static constexpr int WIDTH = width;
247 static constexpr ui::Size RESOLUTION{WIDTH, HEIGHT};
289 .WillRepeatedly(DoAll(SetArgPointee<1>(WIDTH), Return(0)));
310 .WillRepeatedly(DoAll(SetArgPointee<1>(WIDTH), Return(0)));
328 EXPECT_CALL(*test->mConsumer, setDefaultBufferSize(WIDTH, HEIGHT))
425 IComposerClient::Attribute::WIDTH, _))
427 DoAll(SetArgPointee<3>(DisplayVariant::WIDTH), Return(Error::NONE)));
651 EXPECT_CALL(*test->mComposer, createVirtualDisplay(Base::WIDTH, Base::HEIGHT, _, _))
DLayerTestUtils.h42 static constexpr uint32_t WIDTH = 100;
DCompositionTest.cpp452 static constexpr uint32_t WIDTH = 100; member
469 renderengine::mock::FakeExternalTexture>(LayerProperties::WIDTH, in setupLatchedBuffer()
477 layerDrawingState.crop = Rect(0, 0, LayerProperties::HEIGHT, LayerProperties::WIDTH); in setupLatchedBuffer()
482 Region(Rect(LayerProperties::HEIGHT, LayerProperties::WIDTH))); in setupLatchedBuffer()
502 IComposerClient::Rect({0, 0, LayerProperties::WIDTH, in setupHwcSetGeometryCallExpectations()
525 IComposerClient::FRect({0.f, 0.f, LayerProperties::WIDTH, in setupHwcSetSourceCropBufferCallExpectations()
546 {0, 0, LayerProperties::WIDTH, in setupHwcSetPerFrameCallExpectations()
680 Rect(0, 0, SidebandLayerProperties::HEIGHT, SidebandLayerProperties::WIDTH); in setupLayerState()
846 layerDrawingState.crop = Rect(0, 0, LayerProperties::HEIGHT, LayerProperties::WIDTH); in createLayer()
DTunnelModeEnabledReporterTest.cpp57 static constexpr uint32_t WIDTH = 100; member in android::TunnelModeEnabledReporterTest
/frameworks/base/packages/SystemUI/src/com/android/systemui/battery/
DBatterySpecs.kt23 const val BATTERY_WIDTH = ThemedBatteryDrawable.WIDTH
/frameworks/base/services/core/java/com/android/server/wm/
DWindowContainerThumbnail.java26 import static com.android.server.wm.WindowContainerThumbnailProto.WIDTH;
160 proto.write(WIDTH, mWidth); in dumpDebug()
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/
DMediaStoreSaver.java138 values.put(Images.Thumbnails.WIDTH, thumb.getWidth()); in storeThumbnail()
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
DMediaStoreSaver.java138 values.put(Images.Thumbnails.WIDTH, thumb.getWidth()); in storeThumbnail()
/frameworks/native/services/inputflinger/tests/
DFakeWindows.cpp264 mInfo.frame = Rect(0, 0, WIDTH, HEIGHT); in FakeWindowHandle()
268 mInfo.addTouchableRegion(Rect(0, 0, WIDTH, HEIGHT)); in FakeWindowHandle()

123