Home
last modified time | relevance | path

Searched refs:attrs (Results 1 – 25 of 133) sorted by relevance

123456

/cts/tests/tests/transition/src/android/transition/cts/
DTransitionInflaterTest.java235 public CustomTransition(Context context, AttributeSet attrs) { in CustomTransition() argument
236 super(context, attrs); in CustomTransition()
253 public CustomPathMotion(Context context, AttributeSet attrs) { in CustomPathMotion() argument
254 super(context, attrs); in CustomPathMotion()
264 public InflationFade(Context context, AttributeSet attrs) { in InflationFade() argument
265 super(context, attrs); in InflationFade()
270 public InflationChangeBounds(Context context, AttributeSet attrs) { in InflationChangeBounds() argument
271 super(context, attrs); in InflationChangeBounds()
276 public InflationSlide(Context context, AttributeSet attrs) { in InflationSlide() argument
277 super(context, attrs); in InflationSlide()
[all …]
/cts/tests/tests/preference/src/android/preference/cts/
DCustomDialogPreference.java28 public CustomDialogPreference(Context context, AttributeSet attrs) { in CustomDialogPreference() argument
29 super(context, attrs); in CustomDialogPreference()
30 init(attrs); in CustomDialogPreference()
35 public CustomDialogPreference(Context context, AttributeSet attrs, int defStyle) { in CustomDialogPreference() argument
36 super(context, attrs, defStyle); in CustomDialogPreference()
37 init(attrs); in CustomDialogPreference()
42 private void init(AttributeSet attrs) { in init() argument
43 TypedArray a = getContext().obtainStyledAttributes(attrs, R.styleable.CustPref); in init()
DCustomPreferenceGroup.java27 public CustomPreferenceGroup(Context context, AttributeSet attrs) { in CustomPreferenceGroup() argument
28 super(context, attrs); in CustomPreferenceGroup()
29 init(attrs); in CustomPreferenceGroup()
36 public CustomPreferenceGroup(Context context, AttributeSet attrs, int defStyle) { in CustomPreferenceGroup() argument
37 super(context, attrs, defStyle); in CustomPreferenceGroup()
38 init(attrs); in CustomPreferenceGroup()
41 private void init(AttributeSet attrs) { in init() argument
42 TypedArray a = getContext().obtainStyledAttributes(attrs, R.styleable.CustPref); in init()
DCustomSwitchPreference.java28 public CustomSwitchPreference(Context context, AttributeSet attrs) { in CustomSwitchPreference() argument
29 super(context, attrs); in CustomSwitchPreference()
30 init(attrs); in CustomSwitchPreference()
39 public CustomSwitchPreference(Context context, AttributeSet attrs, int defStyle) { in CustomSwitchPreference() argument
40 super(context, attrs, defStyle); in CustomSwitchPreference()
41 init(attrs); in CustomSwitchPreference()
46 private void init(AttributeSet attrs) { in init() argument
47 TypedArray a = getContext().obtainStyledAttributes(attrs, R.styleable.CustPref); in init()
DCustomEditTextPreference.java28 public CustomEditTextPreference(Context context, AttributeSet attrs) { in CustomEditTextPreference() argument
29 super(context, attrs); in CustomEditTextPreference()
30 init(attrs); in CustomEditTextPreference()
39 public CustomEditTextPreference(Context context, AttributeSet attrs, int defStyle) { in CustomEditTextPreference() argument
40 super(context, attrs, defStyle); in CustomEditTextPreference()
41 init(attrs); in CustomEditTextPreference()
46 private void init(AttributeSet attrs) { in init() argument
47 TypedArray a = getContext().obtainStyledAttributes(attrs, R.styleable.CustPref); in init()
DCustomCheckBoxPreference.java28 public CustomCheckBoxPreference(Context context, AttributeSet attrs) { in CustomCheckBoxPreference() argument
29 super(context, attrs); in CustomCheckBoxPreference()
30 init(attrs); in CustomCheckBoxPreference()
39 public CustomCheckBoxPreference(Context context, AttributeSet attrs, int defStyle) { in CustomCheckBoxPreference() argument
40 super(context, attrs, defStyle); in CustomCheckBoxPreference()
41 init(attrs); in CustomCheckBoxPreference()
46 private void init(AttributeSet attrs) { in init() argument
47 TypedArray a = getContext().obtainStyledAttributes(attrs, R.styleable.CustPref); in init()
DRecycleCheckPreference.java43 public RecycleCheckPreference(Context context, AttributeSet attrs, in RecycleCheckPreference() argument
45 super(context, attrs, defStyleAttr); in RecycleCheckPreference()
48 public RecycleCheckPreference(Context context, AttributeSet attrs, int defStyleAttr, in RecycleCheckPreference() argument
50 super(context, attrs, defStyleAttr, defStyleRes); in RecycleCheckPreference()
53 public RecycleCheckPreference(Context context, AttributeSet attrs) { in RecycleCheckPreference() argument
54 super(context, attrs); in RecycleCheckPreference()
DCustomPreference.java30 public CustomPreference(Context context, AttributeSet attrs) { in CustomPreference() argument
31 super(context, attrs); in CustomPreference()
32 init(attrs); in CustomPreference()
39 public CustomPreference(Context context, AttributeSet attrs, int defStyle) { in CustomPreference() argument
40 super(context, attrs, defStyle); in CustomPreference()
41 init(attrs); in CustomPreference()
44 private void init(AttributeSet attrs) { in init() argument
45 TypedArray a = getContext().obtainStyledAttributes(attrs, R.styleable.CustPref); in init()
/cts/tests/tests/widget/src/android/widget/cts/
DAutoCompleteTextViewNoIme.java35 public AutoCompleteTextViewNoIme(Context context, AttributeSet attrs) { in AutoCompleteTextViewNoIme() argument
36 super(context, attrs); in AutoCompleteTextViewNoIme()
39 public AutoCompleteTextViewNoIme(Context context, AttributeSet attrs, int defStyleAttr) { in AutoCompleteTextViewNoIme() argument
40 super(context, attrs, defStyleAttr); in AutoCompleteTextViewNoIme()
43 public AutoCompleteTextViewNoIme(Context context, AttributeSet attrs, int defStyleAttr, in AutoCompleteTextViewNoIme() argument
45 super(context, attrs, defStyleAttr, defStyleRes); in AutoCompleteTextViewNoIme()
48 public AutoCompleteTextViewNoIme(Context context, AttributeSet attrs, int defStyleAttr, in AutoCompleteTextViewNoIme() argument
50 super(context, attrs, defStyleAttr, defStyleRes, popupTheme); in AutoCompleteTextViewNoIme()
DTwoLineListItemTest.java61 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.twolinelistitem); in testConstructor() local
62 assertNotNull(attrs); in testConstructor()
65 new TwoLineListItem(mActivity, attrs); in testConstructor()
67 new TwoLineListItem(mActivity, attrs, 0); in testConstructor()
69 new TwoLineListItem(mActivity, attrs, Integer.MAX_VALUE); in testConstructor()
70 new TwoLineListItem(mActivity, attrs, Integer.MIN_VALUE); in testConstructor()
80 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.twolinelistitem); in testConstructorWithNullContext2() local
81 new TwoLineListItem(null, attrs); in testConstructorWithNullContext2()
86 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.twolinelistitem); in testConstructorWithNullContext3() local
87 new TwoLineListItem(null, attrs, 0); in testConstructorWithNullContext3()
/cts/tests/tests/theme/src/android/theme/cts/
DWatchPercentageScreenDimenTest.java64 TypedArray attrs = mContext.obtainStyledAttributes(new int[] { in test_10() local
67 assertEquals("invalid number of attributes", 1, attrs.length()); in test_10()
69 for (int i = 0; i < attrs.length(); ++i) { in test_10()
70 float actual = attrs.getDimension(i, -1); in test_10()
85 TypedArray attrs = mContext.obtainStyledAttributes(new int[] { in test_15() local
91 assertEquals("invalid number of attributes", 4, attrs.length()); in test_15()
93 for (int i = 0; i < attrs.length(); ++i) { in test_15()
94 float actual = attrs.getDimension(i, -1); in test_15()
/cts/tests/tests/text/src/android/text/method/cts/
DTextViewNoIme.java34 public TextViewNoIme(Context context, AttributeSet attrs) { in TextViewNoIme() argument
35 super(context, attrs); in TextViewNoIme()
38 public TextViewNoIme(Context context, AttributeSet attrs, int defStyleAttr) { in TextViewNoIme() argument
39 super(context, attrs, defStyleAttr); in TextViewNoIme()
42 public TextViewNoIme(Context context, AttributeSet attrs, int defStyleAttr, in TextViewNoIme() argument
44 super(context, attrs, defStyleAttr, defStyleRes); in TextViewNoIme()
DEditTextNoIme.java34 public EditTextNoIme(Context context, AttributeSet attrs) { in EditTextNoIme() argument
35 super(context, attrs); in EditTextNoIme()
38 public EditTextNoIme(Context context, AttributeSet attrs, int defStyleAttr) { in EditTextNoIme() argument
39 super(context, attrs, defStyleAttr); in EditTextNoIme()
42 public EditTextNoIme(Context context, AttributeSet attrs, int defStyleAttr, in EditTextNoIme() argument
44 super(context, attrs, defStyleAttr, defStyleRes); in EditTextNoIme()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/view/
DUnclippedBlueView.java30 public UnclippedBlueView(Context context, AttributeSet attrs) { in UnclippedBlueView() argument
31 this(context, attrs, 0); in UnclippedBlueView()
34 public UnclippedBlueView(Context context, AttributeSet attrs, int defStyleAttr) { in UnclippedBlueView() argument
35 this(context, attrs, defStyleAttr, 0); in UnclippedBlueView()
38 public UnclippedBlueView(Context context, AttributeSet attrs, in UnclippedBlueView() argument
40 super(context, attrs, defStyleAttr, defStyleRes); in UnclippedBlueView()
DCircleClipFrameLayout.java31 public CircleClipFrameLayout(Context context, AttributeSet attrs) { in CircleClipFrameLayout() argument
32 this(context, attrs, 0); in CircleClipFrameLayout()
35 public CircleClipFrameLayout(Context context, AttributeSet attrs, int defStyleAttr) { in CircleClipFrameLayout() argument
36 this(context, attrs, defStyleAttr, 0); in CircleClipFrameLayout()
39 …public CircleClipFrameLayout(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRe… in CircleClipFrameLayout() argument
40 super(context, attrs, defStyleAttr, defStyleRes); in CircleClipFrameLayout()
DBitmapView.java31 public BitmapView(Context context, AttributeSet attrs) { in BitmapView() argument
32 super(context, attrs); in BitmapView()
35 public BitmapView(Context context, AttributeSet attrs, int defStyleAttr) { in BitmapView() argument
36 super(context, attrs, defStyleAttr); in BitmapView()
39 public BitmapView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in BitmapView() argument
40 super(context, attrs, defStyleAttr, defStyleRes); in BitmapView()
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DLifecycleLogView.java32 public LifecycleLogView(Context context, AttributeSet attrs) { in LifecycleLogView() argument
33 this(context, attrs, 0); in LifecycleLogView()
36 public LifecycleLogView(Context context, AttributeSet attrs, int defStyleAttr) { in LifecycleLogView() argument
37 this(context, attrs, defStyleAttr, 0); in LifecycleLogView()
40 public LifecycleLogView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) in LifecycleLogView() argument
42 super(context, attrs, defStyleAttr, defStyleRes); in LifecycleLogView()
/cts/tests/tests/view/src/android/view/cts/
DPointerCaptureView.java35 public PointerCaptureView(Context context, @Nullable AttributeSet attrs) { in PointerCaptureView() argument
36 super(context, attrs); in PointerCaptureView()
39 public PointerCaptureView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) { in PointerCaptureView() argument
40 super(context, attrs, defStyleAttr); in PointerCaptureView()
43 public PointerCaptureView(Context context, @Nullable AttributeSet attrs, int defStyleAttr, in PointerCaptureView() argument
45 super(context, attrs, defStyleAttr, defStyleRes); in PointerCaptureView()
DPointerCaptureGroup.java35 public PointerCaptureGroup(Context context, @Nullable AttributeSet attrs) { in PointerCaptureGroup() argument
36 super(context, attrs); in PointerCaptureGroup()
39 public PointerCaptureGroup(Context context, @Nullable AttributeSet attrs, int defStyleAttr) { in PointerCaptureGroup() argument
40 super(context, attrs, defStyleAttr); in PointerCaptureGroup()
43 public PointerCaptureGroup(Context context, @Nullable AttributeSet attrs, int defStyleAttr, in PointerCaptureGroup() argument
45 super(context, attrs, defStyleAttr, defStyleRes); in PointerCaptureGroup()
DMockViewStub.java28 public MockViewStub(Context context, AttributeSet attrs) { in MockViewStub() argument
29 super(context, attrs); in MockViewStub()
32 public MockViewStub(Context context, AttributeSet attrs, int defStyle) { in MockViewStub() argument
33 super(context, attrs, defStyle); in MockViewStub()
DTestButton.java29 public TestButton(Context context, AttributeSet attrs) { in TestButton() argument
30 super(context, attrs); in TestButton()
33 public TestButton(Context context, AttributeSet attrs, int defStyle) { in TestButton() argument
34 super(context, attrs, defStyle); in TestButton()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DImeAwareEditText.java35 public ImeAwareEditText(Context context, AttributeSet attrs) { in ImeAwareEditText() argument
36 super(context, attrs); in ImeAwareEditText()
39 public ImeAwareEditText(Context context, AttributeSet attrs, int defStyleAttr) { in ImeAwareEditText() argument
40 super(context, attrs, defStyleAttr); in ImeAwareEditText()
43 public ImeAwareEditText(Context context, AttributeSet attrs, int defStyleAttr, in ImeAwareEditText() argument
45 super(context, attrs, defStyleAttr, defStyleRes); in ImeAwareEditText()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DImeAwareEditText.java35 public ImeAwareEditText(Context context, AttributeSet attrs) { in ImeAwareEditText() argument
36 super(context, attrs); in ImeAwareEditText()
39 public ImeAwareEditText(Context context, AttributeSet attrs, int defStyleAttr) { in ImeAwareEditText() argument
40 super(context, attrs, defStyleAttr); in ImeAwareEditText()
43 public ImeAwareEditText(Context context, AttributeSet attrs, int defStyleAttr, in ImeAwareEditText() argument
45 super(context, attrs, defStyleAttr, defStyleRes); in ImeAwareEditText()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTimerProgressBar.java36 public TimerProgressBar(Context context, AttributeSet attrs) { in TimerProgressBar() argument
37 super(context, attrs); in TimerProgressBar()
41 public TimerProgressBar(Context context, AttributeSet attrs, int defStyleAttr) { in TimerProgressBar() argument
42 super(context, attrs, defStyleAttr); in TimerProgressBar()
47 public TimerProgressBar(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in TimerProgressBar() argument
48 super(context, attrs, defStyleAttr, defStyleRes); in TimerProgressBar()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowTest.java150 final WindowManager.LayoutParams attrs = mWindow.getAttributes(); in testOpFlags() local
151 assertEquals(0, attrs.flags); in testOpFlags()
154 assertEquals(WindowManager.LayoutParams.FLAG_FULLSCREEN, attrs.flags); in testOpFlags()
158 | WindowManager.LayoutParams.FLAG_DITHER, attrs.flags); in testOpFlags()
161 assertEquals(WindowManager.LayoutParams.FLAG_DITHER, attrs.flags); in testOpFlags()
163 assertEquals(0, attrs.flags); in testOpFlags()
170 assertEquals(WindowManager.LayoutParams.FLAG_FULLSCREEN, attrs.flags); in testOpFlags()
173 verify(mWindowCallback, times(1)).onWindowAttributesChanged(attrs); in testOpFlags()
550 WindowManager.LayoutParams attrs = mWindow.getAttributes(); in testSetGravity() local
551 assertEquals(0, attrs.gravity); in testSetGravity()
[all …]

123456