Home
last modified time | relevance | path

Searched refs:padding (Results 1 – 25 of 28) sorted by relevance

12

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DShapeDrawableTest.java161 Rect padding = new Rect(); in testAccessPadding() local
162 assertFalse(shapeDrawable.getPadding(padding)); in testAccessPadding()
163 assertEquals(0, padding.left); in testAccessPadding()
164 assertEquals(0, padding.top); in testAccessPadding()
165 assertEquals(0, padding.right); in testAccessPadding()
166 assertEquals(0, padding.bottom); in testAccessPadding()
169 assertTrue(shapeDrawable.getPadding(padding)); in testAccessPadding()
170 assertEquals(10, padding.left); in testAccessPadding()
171 assertEquals(10, padding.top); in testAccessPadding()
172 assertEquals(100, padding.right); in testAccessPadding()
[all …]
DThemedDrawableTest.java119 Rect padding = new Rect(); in testGradientDrawable() local
120 assertTrue(d.getPadding(padding)); in testGradientDrawable()
121 assertEquals(1, padding.left); in testGradientDrawable()
122 assertEquals(1, padding.top); in testGradientDrawable()
123 assertEquals(1, padding.bottom); in testGradientDrawable()
124 assertEquals(1, padding.right); in testGradientDrawable()
DPaintDrawableTest.java132 Rect padding = new Rect(0, 0, 10, 10); in testInflateTag() local
135 paintDrawable.setPadding(padding); in testInflateTag()
136 assertTrue(paintDrawable.getPadding(padding)); in testInflateTag()
141 assertFalse(paintDrawable.getPadding(padding)); in testInflateTag()
DClipDrawableTest.java190 Rect padding = new Rect(10, 10, 100, 100); in testGetPadding() local
191 assertFalse(clipDrawable.getPadding(padding)); in testGetPadding()
192 assertEquals(0, padding.left); in testGetPadding()
193 assertEquals(0, padding.top); in testGetPadding()
194 assertEquals(0, padding.bottom); in testGetPadding()
195 assertEquals(0, padding.right); in testGetPadding()
DLayerDrawableTest.java474 Rect padding = new Rect(); in testAccessPaddingMode() local
483 assertTrue(layerDrawable.getPadding(padding)); in testAccessPaddingMode()
484 assertEquals(new Rect(10, 10, 10, 10), padding); in testAccessPaddingMode()
490 assertTrue(layerDrawable.getPadding(padding)); in testAccessPaddingMode()
491 assertEquals(new Rect(9, 8, 7, 6), padding); in testAccessPaddingMode()
1577 Rect padding = new Rect(); in increasePadding() local
1578 getPadding(padding); in increasePadding()
1579 padding.left++; in increasePadding()
1580 padding.top++; in increasePadding()
1581 padding.right++; in increasePadding()
[all …]
DGradientDrawableTest.java470 Rect padding = new Rect(); in testGradientPadding() local
471 drawable.getPadding(padding); in testGradientPadding()
473 assertEquals(1, padding.left); in testGradientPadding()
474 assertEquals(2, padding.top); in testGradientPadding()
475 assertEquals(3, padding.right); in testGradientPadding()
476 assertEquals(4, padding.bottom); in testGradientPadding()
/cts/apps/CtsVerifier/assets/report/
Dcompatibility_result.css21 padding: 10;
29 padding: 5px;
44 padding: .5em;
50 padding: .5em;
64 padding: .5em;
69 padding: .5em;
89 padding: .2em;
94 padding: .2em;
132 padding: 1;
141 padding: 1;
/cts/tests/tests/text/src/android/text/style/cts/
DDynamicDrawableSpanTest.java102 final int padding = 10; in testCenterAligned() local
104 final int bottom = top + DRAWABLE_SIZE + padding; in testCenterAligned()
113 for (int i = 0; i < top + padding / 2; i++) { in testCenterAligned()
118 assertThat(bitmap.getColor(0, top + i + padding / 2).toArgb()).isNotEqualTo(Color.RED); in testCenterAligned()
121 for (int i = 0; i < padding / 2; i++) { in testCenterAligned()
122 assertThat(bitmap.getColor(0, top + i + DRAWABLE_SIZE + padding / 2).toArgb()) in testCenterAligned()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/
DBufferDebug.java96 int padding = 0; in writeRow() local
98 padding = WIDTH - (end % WIDTH); in writeRow()
109 for (int i = 0; i < padding; i++) { in writeRow()
112 if (padding >= HALF_WIDTH) { in writeRow()
/cts/apps/CameraITS/utils/
Dlow_light_utils.py253 padding = min(w, h) * _BOX_PADDING_RATIO
254 left = int(x + padding)
255 top = int(y + padding)
256 right = int(x + w - padding)
257 bottom = int(y + h - padding)
274 padding = min(w, h) * _BOX_PADDING_RATIO
275 left = int(x + padding)
276 top = int(y + padding)
277 right = int(x + w - padding)
278 bottom = int(y + h - padding)
/cts/tests/tests/view/src/android/view/cts/
DViewAttributeTest.java112 int[] stackRootView = rootView.getAttributeResolutionStack(android.R.attr.padding); in testGetAttributeResolutionStack()
117 int[] stackView1 = view1.getAttributeResolutionStack(android.R.attr.padding); in testGetAttributeResolutionStack()
137 (attributeMapView1.get(android.R.attr.padding)).intValue()); in testGetAttributeSourceResourceMap()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioTrackOffloadTest.java406 AudioFormat audioFormat, int delay, int padding, int durationMs) throws Exception { in testGaplessAudioTrackOffload() argument
431 (int) Math.ceil(significantSampleNumber / ((float) delay + padding)) + 1; in testGaplessAudioTrackOffload()
435 offloadTrack.setOffloadDelayPadding(delay, padding); in testGaplessAudioTrackOffload()
527 int padding = track.getOffloadPadding(); in testOffloadPadding() local
528 assertThat(padding).isEqualTo(0); in testOffloadPadding()
535 padding = track.getOffloadPadding(); in testOffloadPadding()
536 assertThat(padding).isEqualTo(TEST_PADDING); in testOffloadPadding()
/cts/tests/tests/transition/src/android/transition/cts/
DChangeImageTransformTest.java348 int padding = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 8, in enterImageViewScene() local
350 mImageView.setPadding(padding, padding, padding, padding); in enterImageViewScene()
/cts/hostsidetests/securitybulletin/utils/mali_gpu_utils/include/
Dmali_gpu_utils.h66 __u32 padding; member
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2023-4272/
Dpoc.c31 __u32 padding; member
/cts/tests/tests/widget/src/android/widget/cts/
DWidgetAttributeTest.kt74 toolbar1!!.getAttributeResolutionStack(android.R.attr.padding) in testGetAttributeResolutionStack()
90 toolbar2!!.getAttributeResolutionStack(android.R.attr.padding) in testGetAttributeResolutionStack()
151 attributeMapProgressBar[android.R.attr.padding]!!.toInt() in testGetAttributeSourceResourceMap()
DTextViewTest.java4173 int padding = 3; in testCompound() local
4181 mTextView.setCompoundDrawablePadding(padding); in testCompound()
4182 assertEquals(padding, mTextView.getCompoundDrawablePadding()); in testCompound()
4219 assertEquals(mTextView.getPaddingLeft() + padding + left.getIntrinsicWidth(), in testCompound()
4221 assertEquals(mTextView.getPaddingTop() + padding + top.getIntrinsicHeight(), in testCompound()
4223 assertEquals(mTextView.getPaddingRight() + padding + right.getIntrinsicWidth(), in testCompound()
4245 assertEquals(mTextView.getPaddingLeft() + padding + left.getBounds().width(), in testCompound()
4247 assertEquals(mTextView.getPaddingTop() + padding + top.getBounds().height(), in testCompound()
4249 assertEquals(mTextView.getPaddingRight() + padding + right.getBounds().width(), in testCompound()
4962 final int padding = 100; in testSetFirstBaselineToTopHeight() local
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8430/
Dpoc.c45 __u32 padding; member
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8482/
Dpoc.c56 __u32 padding; member
/cts/tests/tests/keystore/src/android/keystore/cts/
DImportWrappedKeyTest.java552 DERTaggedObject padding = in makeSymKeyAuthList() local
564 allItems.add(padding); in makeSymKeyAuthList()
614 DERTaggedObject padding = in makeRsaAuthList() local
626 allItems.add(padding); in makeRsaAuthList()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0069/
Dpoc.c71 uint8_t padding[0x2f0 - 0x58]; member
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dstruct_field.rscript40 long l; // to induce padding
/cts/tests/tests/keystore/src/android/keystore/cts/util/
DTestUtils.java1137 String padding = getSignatureAlgorithmPadding(signatureAlgorithm); in getMinimalWorkingImportParametersForSigningingWith() local
1140 .setSignaturePaddings(padding) in getMinimalWorkingImportParametersForSigningingWith()
1158 String padding = getSignatureAlgorithmPadding(signatureAlgorithm); in getMinimalWorkingImportParametersWithLimitedUsageForSigningingWith() local
1161 .setSignaturePaddings(padding) in getMinimalWorkingImportParametersWithLimitedUsageForSigningingWith()
/cts/tests/tests/graphics/src/android/graphics/cts/
DYuvImageTest.java461 final int padding = 20; in testCompressYuvToJpegRWithStrides() local
462 final int width = stride - padding; in testCompressYuvToJpegRWithStrides()
/cts/tests/tests/text/src/android/text/method/cts/
DScrollingMovementMethodTest.java750 final int padding = mTextView.getTotalPaddingTop() + mTextView.getTotalPaddingBottom(); in verifyVisibleLineInTextView() local
752 assertTrue(layout.getLineForVertical(scrollY + mTextView.getHeight() - padding) >= line); in verifyVisibleLineInTextView()

12