/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | PaintDrawableTest.java | 106 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 …]
|
D | StateListDrawableTest.java | 24 import android.R.attr; 85 dr.addState(new int[] { attr.state_focused, - attr.state_selected }, new MockDrawable()); in testAddState() 102 mMockDrawable.addState(new int[] { attr.state_focused, - attr.state_selected }, in testOnStateChange() 114 mMockDrawable.setState(new int[] { attr.state_focused, - attr.state_selected }); in testOnStateChange() 122 mMockDrawable.onStateChange(new int[] { attr.state_focused, - attr.state_selected }); in testOnStateChange() 125 assertFalse(mMockDrawable.onStateChange(new int[] { attr.state_focused })); in testOnStateChange() 138 mMockDrawable.addState(new int[] { attr.state_focused, - attr.state_selected }, in testOnStateChangeWithWildCardAtFirst() 142 mMockDrawable.onStateChange(new int[] { attr.state_focused, - attr.state_selected }); in testOnStateChangeWithWildCardAtFirst() 246 mMockDrawable.setState(new int[]{ attr.state_focused, - attr.state_pressed }); in testInflate() 268 mMockDrawable.setState(new int[]{ - attr.state_pressed, attr.state_focused }); in testInflate()
|
D | CustomDrawableTest.java | 46 private static final int[] ATTRS = new int[] { android.R.attr.color };
|
D | AnimatedStateListDrawableTest.java | 22 import android.R.attr; 47 private static final int[] STATE_FOCUSED = new int[] { attr.state_focused };
|
D | ThemedDrawableTest.java | 53 final TypedArray t = mContext.obtainStyledAttributes(new int[]{R.attr.themeType}); in testAndroidTestCaseSetupProperly()
|
/cts/suite/audio_quality/lib/src/task/ |
D | ModelBuilder.cpp | 250 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/ |
D | StateSetTest.java | 46 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/ |
D | SpinnerTest.java | 55 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()
|
D | DigitalClockTest.java | 123 AttributeSet attr = Xml.asAttributeSet(parser); in getAttributeSet() local 124 assertNotNull(attr); in getAttributeSet() 125 return attr; in getAttributeSet()
|
D | ProgressBarTest.java | 54 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() 281 android.R.attr.progressBarStyleHorizontal); in testAccessMax() 468 android.R.attr.progressBarStyleHorizontal); in testOnSaveAndRestoreInstanceState()
|
D | DatePickerTest.java | 160 final AttributeSet attr = Xml.asAttributeSet(parser); in getAttributeSet() local 161 assertNotNull(attr); in getAttributeSet() 162 return attr; in getAttributeSet()
|
D | MultiAutoCompleteTextViewTest.java | 66 AttributeSet attr = Xml.asAttributeSet(parser); in testConstructor() local 69 new MultiAutoCompleteTextView(mActivity, attr); in testConstructor() 70 new MultiAutoCompleteTextView(mActivity, attr, 0); in testConstructor()
|
D | SwitchTest.java | 56 new Switch(mActivity, null, android.R.attr.switchStyle); in testConstructor()
|
D | SeekBarTest.java | 57 new SeekBar(mActivity, null, android.R.attr.seekBarStyle); in testConstructor()
|
D | TableRowTest.java | 136 AttributeSet attr = Xml.asAttributeSet(parser); in testGenerateLayoutParams() local 138 assertNotNull(tableRow.generateLayoutParams(attr)); in testGenerateLayoutParams()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContextTest.java | 197 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/view/src/android/view/cts/ |
D | WindowTest.java | 172 WindowManager.LayoutParams attr = mWindow.getAttributes(); in testAccessAttributes() local 173 assertEquals(WindowManager.LayoutParams.MATCH_PARENT, attr.width); in testAccessAttributes() 174 assertEquals(WindowManager.LayoutParams.MATCH_PARENT, attr.height); in testAccessAttributes() 175 assertEquals(WindowManager.LayoutParams.TYPE_APPLICATION, attr.type); in testAccessAttributes() 176 assertEquals(PixelFormat.OPAQUE, attr.format); in testAccessAttributes() 188 attr = mWindow.getAttributes(); in testAccessAttributes() 189 assertEquals(width, attr.width); in testAccessAttributes() 190 assertEquals(height, attr.height); in testAccessAttributes() 191 assertEquals(WindowManager.LayoutParams.TYPE_BASE_APPLICATION, attr.type); in testAccessAttributes() 192 assertEquals(PixelFormat.RGBA_8888, attr.format); in testAccessAttributes() [all …]
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | ScaleAnimationTest.java | 59 final AttributeSet attr = Xml.asAttributeSet(parser); in testConstructors() local 60 assertNotNull(attr); in testConstructors() 61 new ScaleAnimation(mActivity, attr); in testConstructors()
|
D | RotateAnimationTest.java | 61 final AttributeSet attr = Xml.asAttributeSet(parser); in testConstructors() local 62 assertNotNull(attr); in testConstructors() 64 new RotateAnimation(mActivity, attr); in testConstructors()
|
D | TranslateAnimationTest.java | 67 final AttributeSet attr = Xml.asAttributeSet(parser); in testConstructors() local 68 assertNotNull(attr); in testConstructors() 70 new TranslateAnimation(mActivity, attr); in testConstructors()
|
D | AnimationSetTest.java | 68 final AttributeSet attr = Xml.asAttributeSet(parser); in testConstructor() local 69 assertNotNull(attr); in testConstructor() 71 new AnimationSet(mActivity, attr); in testConstructor()
|
/cts/tests/tests/icu/tools/android/icu/cts/tools/ |
D | GenerateTestCaseXML.java | 125 Attr attr = elem.getOwnerDocument().createAttribute(name); in setAttribute() local 126 attr.setNodeValue(value); in setAttribute() 128 elem.getAttributes().setNamedItem(attr); in setAttribute()
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | Resources_ThemeTest.java | 127 TypedArray t = theme.obtainStyledAttributes(new int[] { R.attr.themeBoolean }); in testRebase() 139 t = theme.obtainStyledAttributes(new int[] { R.attr.themeBoolean }); in testRebase()
|
/cts/tools/utils/cts/ |
D | tools.py | 97 for (attr, value) in self.attributes.iteritems(): 98 package.setAttribute(attr, value)
|
/cts/tests/tests/security/jni/ |
D | android_security_cts_NativeCodeTest.cpp | 48 uint64_t attr[10] = { 0x4800000001, (uint32_t) -1, 0, 0, 0, 0x300 }; in android_security_cts_NativeCodeTest_doPerfEventTest() local 50 int fd = syscall(__NR_perf_event_open, attr, 0, -1, -1, 0); in android_security_cts_NativeCodeTest_doPerfEventTest()
|