Home
last modified time | relevance | path

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

1234567

/cts/tests/tests/preference/src/android/preference/cts/
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()
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()
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()
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()
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.java70 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.twolinelistitem); in testConstructor() local
71 assertNotNull(attrs); in testConstructor()
74 new TwoLineListItem(mActivity, attrs); in testConstructor()
76 new TwoLineListItem(mActivity, attrs, 0); in testConstructor()
78 new TwoLineListItem(mActivity, attrs, Integer.MAX_VALUE); in testConstructor()
79 new TwoLineListItem(mActivity, attrs, Integer.MIN_VALUE); in testConstructor()
89 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.twolinelistitem); in testConstructorWithNullContext2() local
90 new TwoLineListItem(null, attrs); in testConstructorWithNullContext2()
95 AttributeSet attrs = mActivity.getResources().getLayout(R.layout.twolinelistitem); in testConstructorWithNullContext3() local
96 new TwoLineListItem(null, attrs, 0); in testConstructorWithNullContext3()
/cts/tests/tests/text/src/android/text/method/cts/
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()
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()
/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()
DWebviewCanvasRRectClip.java32 public WebviewCanvasRRectClip(Context context, AttributeSet attrs) { in WebviewCanvasRRectClip() argument
33 this(context, attrs, 0); in WebviewCanvasRRectClip()
36 public WebviewCanvasRRectClip(Context context, AttributeSet attrs, int defStyleAttr) { in WebviewCanvasRRectClip() argument
37 this(context, attrs, defStyleAttr, 0); in WebviewCanvasRRectClip()
41 Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in WebviewCanvasRRectClip() argument
42 super(context, attrs, defStyleAttr, defStyleRes); in WebviewCanvasRRectClip()
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/accessibilityservice/src/android/accessibilityservice/cts/utils/
DProviderCustomView.java38 @Nullable AttributeSet attrs) { in ProviderCustomView() argument
39 super(context, attrs); in ProviderCustomView()
42 public ProviderCustomView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) { in ProviderCustomView() argument
43 super(context, attrs, defStyleAttr); in ProviderCustomView()
46 public ProviderCustomView(Context context, @Nullable AttributeSet attrs, int defStyleAttr, in ProviderCustomView() argument
48 super(context, attrs, defStyleAttr, defStyleRes); in ProviderCustomView()
/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/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/view/src/android/view/cts/
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()
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()
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/hostsidetests/car/src/android/car/cts/powerpolicy/
DSilentModeInfo.java78 boolean[] attrs = new boolean[ATTR_HEADERS.length]; in parse()
98 attrs[hdrIdx] = Boolean.parseBoolean(val.trim()); in parse()
101 return new SilentModeInfo(attrs[0], attrs[1], attrs[2], attrs[3]); in parse()
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/
DMoveAnimationTests.java102 WindowManager.LayoutParams attrs = getWindow().getAttributes(); in setContentSquare() local
103 attrs.gravity = Gravity.RIGHT | Gravity.BOTTOM; in setContentSquare()
104 getWindow().setAttributes(attrs); in setContentSquare()
132 WindowManager.LayoutParams attrs = window.getAttributes(); in testCanOverrideTheme() local
133 attrs.setCanPlayMoveAnimation(true); in testCanOverrideTheme()
134 window.setAttributes(attrs); in testCanOverrideTheme()
150 WindowManager.LayoutParams attrs = window.getAttributes(); in testThemeCanDisable() local
151 attrs.setCanPlayMoveAnimation(false); in testThemeCanDisable()
152 window.setAttributes(attrs); in testThemeCanDisable()

1234567