/cts/tests/tests/print/src/android/print/pdf/cts/ |
D | PrintedPdfDocumentTest.java | 58 PrintAttributes attr = new PrintAttributes.Builder().setMinMargins(ZERO_MARGINS).build(); in createWithNullMediaSize() local 59 assertException(() -> new PrintedPdfDocument(sContext, attr), NullPointerException.class); in createWithNullMediaSize() 64 PrintAttributes attr = new PrintAttributes.Builder() in createWithNullMargins() local 66 assertException(() -> new PrintedPdfDocument(sContext, attr), in createWithNullMargins() 72 PrintAttributes attr = new PrintAttributes.Builder().setMinMargins(ZERO_MARGINS) in createWithNullContext() local 76 PrintedPdfDocument doc = new PrintedPdfDocument(null, attr); in createWithNullContext() 82 PrintAttributes attr = new PrintAttributes.Builder().setMinMargins(ZERO_MARGINS) in startPage() local 85 PrintedPdfDocument doc = new PrintedPdfDocument(sContext, attr); in startPage() 93 PrintAttributes attr = new PrintAttributes.Builder().setMinMargins(ZERO_MARGINS) in oneMilPageSize() local 96 PrintedPdfDocument doc = new PrintedPdfDocument(sContext, attr); in oneMilPageSize() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | WidgetAttributeTest.kt | 73 toolbar1.getAttributeResolutionStack(android.R.attr.padding) in testGetAttributeResolutionStack() 79 toolbar1.getAttributeResolutionStack(android.R.attr.titleMarginEnd) in testGetAttributeResolutionStack() 89 toolbar2.getAttributeResolutionStack(android.R.attr.padding) in testGetAttributeResolutionStack() 97 toolbar2.getAttributeResolutionStack(android.R.attr.titleMarginEnd) in testGetAttributeResolutionStack() 107 textview1.getAttributeResolutionStack(android.R.attr.textColor) in testGetAttributeResolutionStack() 110 textview1.getAttributeResolutionStack(android.R.attr.textSize) in testGetAttributeResolutionStack() 117 textview1.getAttributeResolutionStack(android.R.attr.textColorHighlight) in testGetAttributeResolutionStack() 135 attributeMapProgressBar[android.R.attr.minWidth]!!.toInt()) in testGetAttributeSourceResourceMap() 137 attributeMapProgressBar[android.R.attr.maxWidth]!!.toInt()) in testGetAttributeSourceResourceMap() 139 attributeMapProgressBar[android.R.attr.progressTint]!!.toInt()) in testGetAttributeSourceResourceMap() [all …]
|
D | DigitalClockTest.java | 131 AttributeSet attr = Xml.asAttributeSet(parser); in getAttributeSet() local 132 assertNotNull(attr); in getAttributeSet() 133 return attr; in getAttributeSet()
|
D | SpinnerTest.java | 89 new Spinner(mActivity, null, android.R.attr.spinnerStyle); in testConstructor() 95 new Spinner(mActivity, null, android.R.attr.spinnerStyle, Spinner.MODE_DIALOG); in testConstructor() 97 new Spinner(mActivity, null, android.R.attr.spinnerStyle, Spinner.MODE_DROPDOWN); in testConstructor() 138 new Spinner(mActivity, null, android.R.attr.spinnerStyle, 0, Spinner.MODE_DIALOG, in testConstructor() 141 new Spinner(mActivity, null, android.R.attr.spinnerStyle, 0, Spinner.MODE_DROPDOWN, in testConstructor() 275 android.R.attr.spinnerStyle, 0, Spinner.MODE_DIALOG, theme); in testGetPopupContext()
|
D | ProgressBarTest.java | 88 new ProgressBar(mActivity, null, android.R.attr.progressBarStyle); in testConstructor() 90 new ProgressBar(mActivity, null, android.R.attr.progressBarStyleHorizontal); in testConstructor() 92 new ProgressBar(mActivity, null, android.R.attr.progressBarStyleInverse); in testConstructor() 94 new ProgressBar(mActivity, null, android.R.attr.progressBarStyleLarge); in testConstructor() 96 new ProgressBar(mActivity, null, android.R.attr.progressBarStyleLargeInverse); in testConstructor() 98 new ProgressBar(mActivity, null, android.R.attr.progressBarStyleSmall); in testConstructor() 100 new ProgressBar(mActivity, null, android.R.attr.progressBarStyleSmallInverse); in testConstructor() 102 new ProgressBar(mActivity, null, android.R.attr.progressBarStyleSmallTitle); in testConstructor()
|
D | ToggleButtonTest.java | 67 new ToggleButton(mActivity, null, android.R.attr.buttonStyleToggle); in testConstructor() 131 drawable.addState(new int[] { android.R.attr.state_pressed }, in testDrawableStateChanged()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | PaintDrawableTest.java | 129 AttributeSet attr = getAttributeSet(parser); in testInflateTag() local 130 assertNotNull(attr); in testInflateTag() 140 assertTrue(paintDrawable.inflateTag("padding", mResources, parser, attr)); in testInflateTag() 145 attr = getAttributeSet(parser); in testInflateTag() 146 assertNotNull(attr); in testInflateTag() 147 assertFalse(new MyPaintDrawable().inflateTag("", mResources, parser, attr)); in testInflateTag() 152 new MyPaintDrawable().inflateTag(null, mResources, parser, attr); in testInflateTag() 161 new MyPaintDrawable().inflateTag("padding", null, parser, attr); in testInflateTag() 169 attr = getAttributeSet(parser); in testInflateTag() 170 assertNotNull(attr); in testInflateTag() [all …]
|
D | StateListDrawableTest.java | 99 new int[] { android.R.attr.state_focused, - android.R.attr.state_selected }, in testAddState() 120 new int[] { android.R.attr.state_focused, - android.R.attr.state_selected }, in testOnStateChange() 133 new int[] { android.R.attr.state_focused, - android.R.attr.state_selected }); in testOnStateChange() 142 new int[] { android.R.attr.state_focused, - android.R.attr.state_selected }); in testOnStateChange() 145 assertFalse(mMockDrawable.onStateChange(new int[] { android.R.attr.state_focused })); in testOnStateChange() 160 new int[] { android.R.attr.state_focused, - android.R.attr.state_selected }, in testOnStateChangeWithWildCardAtFirst() 165 new int[] { android.R.attr.state_focused, - android.R.attr.state_selected }); in testOnStateChangeWithWildCardAtFirst() 279 new int[]{ android.R.attr.state_focused, - android.R.attr.state_pressed }); in testInflate() 302 new int[]{ - android.R.attr.state_pressed, android.R.attr.state_focused }); in testInflate()
|
D | DefaultFocusHighlightTest.java | 71 private static final int[] NO_STATE_FOCUSED = new int[] { android.R.attr.state_enabled }; 72 private static final int[] ONLY_STATE_FOCUSED = new int[] { android.R.attr.state_focused }; 74 new int[] { android.R.attr.state_focused, android.R.attr.state_hovered }; 76 new int[] { android.R.attr.state_focused, -android.R.attr.state_hovered }; 78 new int[] { android.R.attr.state_focused, android.R.attr.state_enabled }; 81 new int[] { android.R.attr.state_focused, android.R.attr.state_enabled };
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-13232/ |
D | poc.cpp | 80 audio_attributes_t attr; in getOutputForAttr() local 81 memset(&attr, 0xff, sizeof(attr)); in getOutputForAttr() 82 attr.flags = 0; in getOutputForAttr() 83 memset(attr.tags, 0x41, AUDIO_ATTRIBUTES_TAGS_MAX_SIZE); in getOutputForAttr() 84 data.write(&attr, sizeof(attr)); in getOutputForAttr()
|
/cts/tests/tests/theme/src/android/theme/cts/ |
D | WatchPercentageScreenDimenTest.java | 65 android.R.attr.listPreferredItemPaddingEnd in test_10() 86 android.R.attr.dialogPreferredPadding, in test_15() 87 android.R.attr.listPreferredItemPaddingLeft, in test_15() 88 android.R.attr.listPreferredItemPaddingRight, in test_15() 89 android.R.attr.listPreferredItemPaddingStart in test_15()
|
/cts/suite/audio_quality/lib/src/task/ |
D | ModelBuilder.cpp | 253 const XMLAttribute* attr = elem.FirstAttribute(); in parseAttributes() local 255 if (attr == NULL) { in parseAttributes() 258 android::String8 name(attr->Name()); in parseAttributes() 259 android::String8 value(attr->Value()); in parseAttributes() 262 attr->Name(), attr->Value(), task.getType()); in parseAttributes() 265 attr = attr->Next(); in parseAttributes()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewAttributeTest.java | 94 int[] stackRootView = rootView.getAttributeResolutionStack(android.R.attr.padding); in testGetAttributeResolutionStack() 99 int[] stackView1 = view1.getAttributeResolutionStack(android.R.attr.padding); in testGetAttributeResolutionStack() 113 (attributeMapRootView.get(android.R.attr.orientation)).intValue()); in testGetAttributeSourceResourceMap() 119 (attributeMapView1.get(android.R.attr.padding)).intValue()); in testGetAttributeSourceResourceMap() 121 (attributeMapView1.get(android.R.attr.paddingLeft)).intValue()); in testGetAttributeSourceResourceMap() 123 (attributeMapView1.get(android.R.attr.paddingTop)).intValue()); in testGetAttributeSourceResourceMap()
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | Resources_ThemeTest.java | 88 final TypedArray ta = mResTheme.obtainStyledAttributes(new int[] { R.attr.testString }); in testObtainStyledAttributesWithInlineStringInTheme() 137 TypedArray t = theme.obtainStyledAttributes(new int[] { R.attr.themeBoolean }); in testRebase() 149 t = theme.obtainStyledAttributes(new int[] { R.attr.themeBoolean }); in testRebase() 179 assertTrue(theme.resolveAttribute(R.attr.type1, tv, false)); in testEmptyDoesNotGetOverriden() 185 assertTrue(theme.resolveAttribute(R.attr.type1, tv, false)); in testEmptyDoesNotGetOverriden() 191 assertTrue(theme.resolveAttribute(R.attr.type1, tv, false)); in testEmptyDoesNotGetOverriden()
|
/cts/tests/tests/util/src/android/util/cts/ |
D | StateSetTest.java | 52 int[] stateSet = {android.R.attr.state_window_focused, in testDump() 53 android.R.attr.state_pressed, in testDump() 54 android.R.attr.state_selected, in testDump() 55 android.R.attr.state_focused, in testDump() 56 android.R.attr.state_enabled, in testDump()
|
/cts/tests/tests/graphics/assets/ |
D | passthrough_vsh.glsl | 5 layout (location = 1) in vec2 attr; 8 texcoord = attr;
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | WindowTest.java | 218 WindowManager.LayoutParams attr = mWindow.getAttributes(); in testAccessAttributes() local 219 assertEquals(WindowManager.LayoutParams.MATCH_PARENT, attr.width); in testAccessAttributes() 220 assertEquals(WindowManager.LayoutParams.MATCH_PARENT, attr.height); in testAccessAttributes() 221 assertEquals(WindowManager.LayoutParams.TYPE_APPLICATION, attr.type); in testAccessAttributes() 222 assertEquals(PixelFormat.OPAQUE, attr.format); in testAccessAttributes() 233 attr = mWindow.getAttributes(); in testAccessAttributes() 234 assertEquals(width, attr.width); in testAccessAttributes() 235 assertEquals(height, attr.height); in testAccessAttributes() 236 assertEquals(WindowManager.LayoutParams.TYPE_BASE_APPLICATION, attr.type); in testAccessAttributes() 237 assertEquals(PixelFormat.RGBA_8888, attr.format); in testAccessAttributes() [all …]
|
D | DragDropTest.java | 638 private boolean drawableStateContains(int resourceId, int attr) { in drawableStateContains() argument 640 .anyMatch(x -> x == attr); in drawableStateContains() 658 assertFalse(drawableStateContains(R.id.inner, android.R.attr.state_drag_can_accept)); in testDrawableState() 664 assertFalse(drawableStateContains(R.id.inner, android.R.attr.state_drag_hovered)); in testDrawableState() 665 assertTrue(drawableStateContains(R.id.inner, android.R.attr.state_drag_can_accept)); in testDrawableState() 671 assertTrue(drawableStateContains(R.id.inner, android.R.attr.state_drag_hovered)); in testDrawableState() 677 assertFalse(drawableStateContains(R.id.inner, android.R.attr.state_drag_hovered)); in testDrawableState() 683 assertTrue(drawableStateContains(R.id.inner, android.R.attr.state_drag_hovered)); in testDrawableState() 689 assertFalse(drawableStateContains(R.id.inner, android.R.attr.state_drag_hovered)); in testDrawableState()
|
/cts/apps/CameraITS/tools/ |
D | hardware.py | 126 def _read_sys_attr(self, root, attr): argument 137 path = os.path.join(root, attr) 143 def _read_sys_hex_attr(self, root, attr): argument 154 path = os.path.join(root, attr)
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | ScaleAnimationTest.java | 76 final AttributeSet attr = Xml.asAttributeSet(parser); in testConstructors() local 77 assertNotNull(attr); in testConstructors() 78 new ScaleAnimation(mActivity, attr); in testConstructors()
|
D | RotateAnimationTest.java | 75 final AttributeSet attr = Xml.asAttributeSet(parser); in testConstructors() local 76 assertNotNull(attr); in testConstructors() 78 new RotateAnimation(mActivity, attr); in testConstructors()
|
D | TranslateAnimationTest.java | 82 final AttributeSet attr = Xml.asAttributeSet(parser); in testConstructors() local 83 Assert.assertNotNull(attr); in testConstructors() 85 new TranslateAnimation(mActivity, attr); in testConstructors()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | ShadowTests.java | 82 android.R.attr.spotShadowAlpha, in testShadowResources() 83 android.R.attr.ambientShadowAlpha, in testShadowResources()
|
/cts/tools/utils/cts/ |
D | tools.py | 97 for (attr, value) in self.attributes.iteritems(): 98 package.setAttribute(attr, value)
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
D | NdkApiXmlReport.java | 292 Attr attr = doc.createAttribute(name); in setAttribute() local 293 attr.setNodeValue(value); in setAttribute() 294 elem.getAttributes().setNamedItem(attr); in setAttribute()
|