Home
last modified time | relevance | path

Searched refs:attr (Results 1 – 25 of 67) sorted by relevance

123

/cts/tests/tests/print/src/android/print/pdf/cts/
DPrintedPdfDocumentTest.java55 PrintAttributes attr = new PrintAttributes.Builder().setMinMargins(ZERO_MARGINS).build(); in createWithNullMediaSize() local
56 assertException(() -> new PrintedPdfDocument(sContext, attr), NullPointerException.class); in createWithNullMediaSize()
61 PrintAttributes attr = new PrintAttributes.Builder() in createWithNullMargins() local
63 assertException(() -> new PrintedPdfDocument(sContext, attr), in createWithNullMargins()
69 PrintAttributes attr = new PrintAttributes.Builder().setMinMargins(ZERO_MARGINS) in createWithNullContext() local
73 PrintedPdfDocument doc = new PrintedPdfDocument(null, attr); in createWithNullContext()
79 PrintAttributes attr = new PrintAttributes.Builder().setMinMargins(ZERO_MARGINS) in startPage() local
82 PrintedPdfDocument doc = new PrintedPdfDocument(sContext, attr); in startPage()
90 PrintAttributes attr = new PrintAttributes.Builder().setMinMargins(ZERO_MARGINS) in oneMilPageSize() local
93 PrintedPdfDocument doc = new PrintedPdfDocument(sContext, attr); in oneMilPageSize()
[all …]
/cts/hostsidetests/security/securityPatch/CVE-2017-0403/
Dpoc.c134 struct perf_event_attr attr; in thr() local
140 memset(&attr,0,sizeof(struct perf_event_attr)); in thr()
141 attr.type = 1; in thr()
142 attr.size = sizeof(struct perf_event_attr); in thr()
143 attr.config = 1; in thr()
145 group_fd[0] = syscall(__NR_perf_event_open, &attr, 0x0ul, -1, in thr()
153 memset(&attr,0,sizeof(struct perf_event_attr)); in thr()
154 attr.type = 1; in thr()
155 attr.size = sizeof(struct perf_event_attr); in thr()
156 attr.config = 5; in thr()
[all …]
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DPaintDrawableTest.java128 AttributeSet attr = getAttributeSet(parser); in testInflateTag() local
129 assertNotNull(attr); in testInflateTag()
139 assertTrue(paintDrawable.inflateTag("padding", mResources, parser, attr)); in testInflateTag()
144 attr = getAttributeSet(parser); in testInflateTag()
145 assertNotNull(attr); in testInflateTag()
146 assertFalse(new MyPaintDrawable().inflateTag("", mResources, parser, attr)); in testInflateTag()
151 new MyPaintDrawable().inflateTag(null, mResources, parser, attr); in testInflateTag()
160 new MyPaintDrawable().inflateTag("padding", null, parser, attr); in testInflateTag()
168 attr = getAttributeSet(parser); in testInflateTag()
169 assertNotNull(attr); in testInflateTag()
[all …]
DStateListDrawableTest.java97 new int[] { android.R.attr.state_focused, - android.R.attr.state_selected }, in testAddState()
118 new int[] { android.R.attr.state_focused, - android.R.attr.state_selected }, in testOnStateChange()
131 new int[] { android.R.attr.state_focused, - android.R.attr.state_selected }); in testOnStateChange()
140 new int[] { android.R.attr.state_focused, - android.R.attr.state_selected }); in testOnStateChange()
143 assertFalse(mMockDrawable.onStateChange(new int[] { android.R.attr.state_focused })); in testOnStateChange()
158 new int[] { android.R.attr.state_focused, - android.R.attr.state_selected }, in testOnStateChangeWithWildCardAtFirst()
163 new int[] { android.R.attr.state_focused, - android.R.attr.state_selected }); in testOnStateChangeWithWildCardAtFirst()
274 new int[]{ android.R.attr.state_focused, - android.R.attr.state_pressed }); in testInflate()
297 new int[]{ - android.R.attr.state_pressed, android.R.attr.state_focused }); in testInflate()
DDefaultFocusHighlightTest.java70 private static final int[] NO_STATE_FOCUSED = new int[] { android.R.attr.state_enabled };
71 private static final int[] ONLY_STATE_FOCUSED = new int[] { android.R.attr.state_focused };
73 new int[] { android.R.attr.state_focused, android.R.attr.state_hovered };
75 new int[] { android.R.attr.state_focused, -android.R.attr.state_hovered };
77 new int[] { android.R.attr.state_focused, android.R.attr.state_enabled };
80 new int[] { android.R.attr.state_focused, android.R.attr.state_enabled };
DCustomDrawableTest.java55 private static final int[] ATTRS = new int[] { android.R.attr.color };
/cts/suite/audio_quality/lib/src/task/
DModelBuilder.cpp253 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/util/src/android/util/cts/
DStateSetTest.java51 int[] stateSet = {android.R.attr.state_window_focused, in testDump()
52 android.R.attr.state_pressed, in testDump()
53 android.R.attr.state_selected, in testDump()
54 android.R.attr.state_focused, in testDump()
55 android.R.attr.state_enabled, in testDump()
/cts/tests/tests/content/src/android/content/res/cts/
DResources_ThemeTest.java88 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/content/src/android/content/cts/
DContextTest.java197 android.R.attr.windowNoTitle, in testAccessTheme()
198 android.R.attr.panelColorForeground, in testAccessTheme()
199 android.R.attr.panelColorBackground in testAccessTheme()
293 final int[] focusedState = {android.R.attr.state_focused}; in testGetColorStateList()
360 final AttributeSet attr = Xml.asAttributeSet(parser); in getAttributeSet() local
361 assertNotNull(attr); in getAttributeSet()
362 return attr; in getAttributeSet()
/cts/tests/tests/widget/src/android/widget/cts/
DDigitalClockTest.java130 AttributeSet attr = Xml.asAttributeSet(parser); in getAttributeSet() local
131 assertNotNull(attr); in getAttributeSet()
132 return attr; in getAttributeSet()
DProgressBarTest.java83 new ProgressBar(mActivity, null, android.R.attr.progressBarStyle); in testConstructor()
85 new ProgressBar(mActivity, null, android.R.attr.progressBarStyleHorizontal); in testConstructor()
87 new ProgressBar(mActivity, null, android.R.attr.progressBarStyleInverse); in testConstructor()
89 new ProgressBar(mActivity, null, android.R.attr.progressBarStyleLarge); in testConstructor()
91 new ProgressBar(mActivity, null, android.R.attr.progressBarStyleLargeInverse); in testConstructor()
93 new ProgressBar(mActivity, null, android.R.attr.progressBarStyleSmall); in testConstructor()
95 new ProgressBar(mActivity, null, android.R.attr.progressBarStyleSmallInverse); in testConstructor()
97 new ProgressBar(mActivity, null, android.R.attr.progressBarStyleSmallTitle); in testConstructor()
DSpinnerTest.java87 new Spinner(mActivity, null, android.R.attr.spinnerStyle); in testConstructor()
93 new Spinner(mActivity, null, android.R.attr.spinnerStyle, Spinner.MODE_DIALOG); in testConstructor()
95 new Spinner(mActivity, null, android.R.attr.spinnerStyle, Spinner.MODE_DROPDOWN); in testConstructor()
136 new Spinner(mActivity, null, android.R.attr.spinnerStyle, 0, Spinner.MODE_DIALOG, in testConstructor()
139 new Spinner(mActivity, null, android.R.attr.spinnerStyle, 0, Spinner.MODE_DROPDOWN, in testConstructor()
273 android.R.attr.spinnerStyle, 0, Spinner.MODE_DIALOG, theme); in testGetPopupContext()
DToggleButtonTest.java66 new ToggleButton(mActivity, null, android.R.attr.buttonStyleToggle); in testConstructor()
130 drawable.addState(new int[] { android.R.attr.state_pressed }, in testDrawableStateChanged()
DImageButtonTest.java54 new ImageButton(mActivity, null, android.R.attr.imageButtonStyle); in testConstructor()
/cts/apps/CameraITS/tools/
Dhardware.py126 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/cts/
DWindowTest.java199 WindowManager.LayoutParams attr = mWindow.getAttributes(); in testAccessAttributes() local
200 assertEquals(WindowManager.LayoutParams.MATCH_PARENT, attr.width); in testAccessAttributes()
201 assertEquals(WindowManager.LayoutParams.MATCH_PARENT, attr.height); in testAccessAttributes()
202 assertEquals(WindowManager.LayoutParams.TYPE_APPLICATION, attr.type); in testAccessAttributes()
203 assertEquals(PixelFormat.OPAQUE, attr.format); in testAccessAttributes()
214 attr = mWindow.getAttributes(); in testAccessAttributes()
215 assertEquals(width, attr.width); in testAccessAttributes()
216 assertEquals(height, attr.height); in testAccessAttributes()
217 assertEquals(WindowManager.LayoutParams.TYPE_BASE_APPLICATION, attr.type); in testAccessAttributes()
218 assertEquals(PixelFormat.RGBA_8888, attr.format); in testAccessAttributes()
[all …]
DDragDropTest.java590 android.R.attr.state_drag_can_accept)); in testDrawableState()
598 android.R.attr.state_drag_hovered)); in testDrawableState()
601 android.R.attr.state_drag_can_accept)); in testDrawableState()
609 android.R.attr.state_drag_hovered)); in testDrawableState()
617 android.R.attr.state_drag_hovered)); in testDrawableState()
625 android.R.attr.state_drag_hovered)); in testDrawableState()
633 android.R.attr.state_drag_hovered)); in testDrawableState()
/cts/tests/tests/view/src/android/view/animation/cts/
DScaleAnimationTest.java75 final AttributeSet attr = Xml.asAttributeSet(parser); in testConstructors() local
76 assertNotNull(attr); in testConstructors()
77 new ScaleAnimation(mActivity, attr); in testConstructors()
DRotateAnimationTest.java74 final AttributeSet attr = Xml.asAttributeSet(parser); in testConstructors() local
75 assertNotNull(attr); in testConstructors()
77 new RotateAnimation(mActivity, attr); in testConstructors()
DTranslateAnimationTest.java81 final AttributeSet attr = Xml.asAttributeSet(parser); in testConstructors() local
82 Assert.assertNotNull(attr); in testConstructors()
84 new TranslateAnimation(mActivity, attr); in testConstructors()
/cts/hostsidetests/services/activityandwindowmanager/activitymanager/app/src/android/server/cts/
DFontScaleActivity.java49 new int[] { android.R.attr.textSize }, 0, 0); in dumpFontSize()
/cts/tools/utils/cts/
Dtools.py97 for (attr, value) in self.attributes.iteritems():
98 package.setAttribute(attr, value)
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DAutofillHighlightTests.java46 new int[]{android.R.attr.autofilledHighlight}); in testHighlightedFrameLayout()
/cts/tests/tests/security/jni/
Dandroid_security_cts_NativeCodeTest.cpp47 uint64_t attr[10] = { 0x4800000001, (uint32_t) -1, 0, 0, 0, 0x300 }; in android_security_cts_NativeCodeTest_doPerfEventTest() local
49 int fd = syscall(__NR_perf_event_open, attr, 0, -1, -1, 0); in android_security_cts_NativeCodeTest_doPerfEventTest()

123