Home
last modified time | relevance | path

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

12

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DPaintDrawableTest.java106 AttributeSet attr = getAtrributeSet(parser); in testInflateTag() local
107 assertNotNull(attr); in testInflateTag()
117 assertTrue(paintDrawable.inflateTag("padding", getContext().getResources(), parser, attr)); in testInflateTag()
122 attr = getAtrributeSet(parser); in testInflateTag()
123 assertNotNull(attr); in testInflateTag()
125 attr)); in testInflateTag()
130 new MyPaintDrawable().inflateTag(null, getContext().getResources(), parser, attr); in testInflateTag()
139 new MyPaintDrawable().inflateTag("padding", null, parser, attr); in testInflateTag()
147 attr = getAtrributeSet(parser); in testInflateTag()
148 assertNotNull(attr); in testInflateTag()
[all …]
DStateListDrawableTest.java24 import android.R.attr;
78 mStateListDrawable.addState(new int[] { attr.state_focused, - attr.state_selected }, in testAddState()
96 mStateListDrawable.addState(new int[] { attr.state_focused, - attr.state_selected }, in testOnStateChange()
108 mStateListDrawable.setState(new int[] { attr.state_focused, - attr.state_selected }); in testOnStateChange()
116 mStateListDrawable.onStateChange(new int[] { attr.state_focused, - attr.state_selected }); in testOnStateChange()
119 assertFalse(mStateListDrawable.onStateChange(new int[] { attr.state_focused })); in testOnStateChange()
132 mStateListDrawable.addState(new int[] { attr.state_focused, - attr.state_selected }, in testOnStateChangeWithWildCardAtFirst()
136 mStateListDrawable.onStateChange(new int[] { attr.state_focused, - attr.state_selected }); in testOnStateChangeWithWildCardAtFirst()
170 mStateListDrawable.setState(new int[]{ attr.state_focused, - attr.state_pressed }); in testInflate()
192 mStateListDrawable.setState(new int[]{ - attr.state_pressed, attr.state_focused }); in testInflate()
DThemedDrawableTest.java53 final TypedArray t = mContext.obtainStyledAttributes(new int[]{R.attr.themeType}); in testAndroidTestCaseSetupProperly()
/cts/tests/tests/content/src/android/content/cts/
DContextTest.java90 android.R.attr.windowNoTitle, in testAccessTheme()
91 android.R.attr.panelColorForeground, in testAccessTheme()
92 android.R.attr.panelColorBackground in testAccessTheme()
186 final int[] focusedState = {android.R.attr.state_focused}; in testGetColorStateList()
215 final AttributeSet attr = Xml.asAttributeSet(parser); in getAttributeSet() local
216 assertNotNull(attr); in getAttributeSet()
217 return attr; in getAttributeSet()
/cts/suite/audio_quality/lib/src/task/
DModelBuilder.cpp250 const TiXmlAttribute* attr = elem.FirstAttribute(); in parseAttributes() local
252 if (attr == NULL) { in parseAttributes()
255 android::String8 name(attr->Name()); in parseAttributes()
256 android::String8 value(attr->Value()); in parseAttributes()
259 attr->Name(), attr->Value(), task.getType()); in parseAttributes()
262 attr = attr->Next(); in parseAttributes()
/cts/tests/tests/util/src/android/util/cts/
DStateSetTest.java46 int[] stateSet = {R.attr.state_window_focused, in testDump()
47 R.attr.state_pressed, in testDump()
48 R.attr.state_selected, in testDump()
49 R.attr.state_focused, in testDump()
50 R.attr.state_enabled, in testDump()
/cts/tests/tests/widget/src/android/widget/cts/
DSpinnerTest.java55 new Spinner(mTargetContext, null, android.R.attr.spinnerStyle); in testConstructor()
59 new Spinner(mTargetContext, null, android.R.attr.spinnerStyle, in testConstructor()
62 new Spinner(mTargetContext, null, android.R.attr.spinnerStyle, 0, in testConstructor()
65 new Spinner(mTargetContext, null, android.R.attr.spinnerStyle, 0, in testConstructor()
176 android.R.attr.spinnerStyle, 0, Spinner.MODE_DIALOG, theme); in testGetPopupContext()
DDigitalClockTest.java123 AttributeSet attr = Xml.asAttributeSet(parser); in getAttributeSet() local
124 assertNotNull(attr); in getAttributeSet()
125 return attr; in getAttributeSet()
DProgressBarTest.java54 new ProgressBar(mContext, null, android.R.attr.progressBarStyle); in testConstructor()
68 progressBar = new ProgressBar(mContext, null, android.R.attr.progressBarStyleHorizontal); in testSetIndeterminate()
97 android.R.attr.progressBarStyleHorizontal); in testAccessProgressDrawable()
115 android.R.attr.progressBarStyleHorizontal); in testAccessProgress()
142 android.R.attr.progressBarStyleHorizontal); in testAccessSecondaryProgress()
169 android.R.attr.progressBarStyleHorizontal); in testIncrementProgressBy()
194 android.R.attr.progressBarStyleHorizontal); in testIncrementSecondaryProgressBy()
231 android.R.attr.progressBarStyleHorizontal); in testSetVisibility()
291 android.R.attr.progressBarStyleHorizontal); in testAccessMax()
478 android.R.attr.progressBarStyleHorizontal); in testOnSaveAndRestoreInstanceState()
DDatePickerTest.java160 final AttributeSet attr = Xml.asAttributeSet(parser); in getAttributeSet() local
161 assertNotNull(attr); in getAttributeSet()
162 return attr; in getAttributeSet()
DMultiAutoCompleteTextViewTest.java66 AttributeSet attr = Xml.asAttributeSet(parser); in testConstructor() local
69 new MultiAutoCompleteTextView(mActivity, attr); in testConstructor()
70 new MultiAutoCompleteTextView(mActivity, attr, 0); in testConstructor()
DSeekBarTest.java57 new SeekBar(mActivity, null, android.R.attr.seekBarStyle); in testConstructor()
DTableRowTest.java136 AttributeSet attr = Xml.asAttributeSet(parser); in testGenerateLayoutParams() local
138 assertNotNull(tableRow.generateLayoutParams(attr)); in testGenerateLayoutParams()
DRatingBarTest.java47 new RatingBar(mContext, null, android.R.attr.ratingBarStyle); in testConstructor()
/cts/tests/tests/nativeopengl/standalone/jni/tests/
DEGLCleanup_test.cpp136 pthread_attr_t attr; in startThread_l() local
137 pthread_attr_init(&attr); in startThread_l()
138 pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); in startThread_l()
141 int err = pthread_create(&newThread, &attr, ChainedThread::func, in startThread_l()
/cts/suite/cts/deviceTests/browserbench/assets/octane/js/
Dbootstrap-collapse.js149 , target = $this.attr('data-target')
151 || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7
/cts/tests/tests/view/src/android/view/animation/cts/
DScaleAnimationTest.java59 final AttributeSet attr = Xml.asAttributeSet(parser); in testConstructors() local
60 assertNotNull(attr); in testConstructors()
61 new ScaleAnimation(mActivity, attr); in testConstructors()
DRotateAnimationTest.java61 final AttributeSet attr = Xml.asAttributeSet(parser); in testConstructors() local
62 assertNotNull(attr); in testConstructors()
64 new RotateAnimation(mActivity, attr); in testConstructors()
DTranslateAnimationTest.java67 final AttributeSet attr = Xml.asAttributeSet(parser); in testConstructors() local
68 assertNotNull(attr); in testConstructors()
70 new TranslateAnimation(mActivity, attr); in testConstructors()
DAnimationSetTest.java68 final AttributeSet attr = Xml.asAttributeSet(parser); in testConstructor() local
69 assertNotNull(attr); in testConstructor()
71 new AnimationSet(mActivity, attr); in testConstructor()
/cts/tests/tests/view/src/android/view/cts/
DWindowTest.java169 WindowManager.LayoutParams attr = mWindow.getAttributes(); in testAccessAttributes() local
170 assertEquals(WindowManager.LayoutParams.MATCH_PARENT, attr.width); in testAccessAttributes()
171 assertEquals(WindowManager.LayoutParams.MATCH_PARENT, attr.height); in testAccessAttributes()
172 assertEquals(WindowManager.LayoutParams.TYPE_APPLICATION, attr.type); in testAccessAttributes()
173 assertEquals(PixelFormat.OPAQUE, attr.format); in testAccessAttributes()
185 attr = mWindow.getAttributes(); in testAccessAttributes()
186 assertEquals(width, attr.width); in testAccessAttributes()
187 assertEquals(height, attr.height); in testAccessAttributes()
188 assertEquals(WindowManager.LayoutParams.TYPE_BASE_APPLICATION, attr.type); in testAccessAttributes()
189 assertEquals(PixelFormat.RGBA_8888, attr.format); in testAccessAttributes()
[all …]
/cts/tests/tests/security/jni/
Dandroid_security_cts_NativeCodeTest.cpp46 uint64_t attr[10] = { 0x4800000001, (uint32_t) -1, 0, 0, 0, 0x300 }; in android_security_cts_NativeCodeTest_doPerfEventTest() local
48 int fd = syscall(__NR_perf_event_open, attr, 0, -1, -1, 0); in android_security_cts_NativeCodeTest_doPerfEventTest()
/cts/tests/tests/content/src/android/content/res/cts/
DResources_ThemeTest.java117 TypedArray t = theme.obtainStyledAttributes(new int[] { R.attr.themeBoolean }); in testRebase()
129 t = theme.obtainStyledAttributes(new int[] { R.attr.themeBoolean }); in testRebase()
/cts/tools/utils/cts/
Dtools.py97 for (attr, value) in self.attributes.iteritems():
98 package.setAttribute(attr, value)
/cts/tools/utils/
DDescriptionGenerator.java463 Attr attr = mDoc.createAttribute(name); in setAttribute() local
464 attr.setNodeValue(value); in setAttribute()
466 elem.getAttributes().setNamedItem(attr); in setAttribute()

12