Home
last modified time | relevance | path

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

12345678910>>...12

/frameworks/base/core/java/android/view/
DLayoutInflater.java129 public View onCreateView(String name, Context context, AttributeSet attrs); in onCreateView() argument
147 public View onCreateView(View parent, String name, Context context, AttributeSet attrs); in onCreateView() argument
161 public View onCreateView(String name, Context context, AttributeSet attrs) { in onCreateView() argument
162 View v = mF1.onCreateView(name, context, attrs); in onCreateView()
164 return mF2.onCreateView(name, context, attrs); in onCreateView()
167 public View onCreateView(View parent, String name, Context context, AttributeSet attrs) { in onCreateView() argument
168 View v = mF12 != null ? mF12.onCreateView(parent, name, context, attrs) in onCreateView()
169 : mF1.onCreateView(name, context, attrs); in onCreateView()
171 return mF22 != null ? mF22.onCreateView(parent, name, context, attrs) in onCreateView()
172 : mF2.onCreateView(name, context, attrs); in onCreateView()
[all …]
DWindow.java290 public void onWindowAttributesChanged(WindowManager.LayoutParams attrs); in onWindowAttributesChanged() argument
605 final WindowManager.LayoutParams attrs = getAttributes(); in setLayout() local
606 attrs.width = width; in setLayout()
607 attrs.height = height; in setLayout()
609 mCallback.onWindowAttributesChanged(attrs); in setLayout()
625 final WindowManager.LayoutParams attrs = getAttributes(); in setGravity() local
626 attrs.gravity = gravity; in setGravity()
628 mCallback.onWindowAttributesChanged(attrs); in setGravity()
639 final WindowManager.LayoutParams attrs = getAttributes(); in setType() local
640 attrs.type = type; in setType()
[all …]
/frameworks/base/core/java/android/preference/
DGenericInflater.java81 public T onCreateItem(String name, Context context, AttributeSet attrs); in onCreateItem() argument
92 public T onCreateItem(String name, Context context, AttributeSet attrs) { in onCreateItem() argument
93 T v = mF1.onCreateItem(name, context, attrs); in onCreateItem()
95 return mF2.onCreateItem(name, context, attrs); in onCreateItem()
293 final AttributeSet attrs = Xml.asAttributeSet(parser); in inflate() local
318 attrs); in inflate()
326 rInflate(parser, result, attrs); in inflate()
367 public final T createItem(String name, String prefix, AttributeSet attrs) in createItem() argument
382 args[1] = attrs; in createItem()
386 InflateException ie = new InflateException(attrs in createItem()
[all …]
DPreferenceFrameLayout.java44 public PreferenceFrameLayout(Context context, AttributeSet attrs) { in PreferenceFrameLayout() argument
45 this(context, attrs, com.android.internal.R.attr.preferenceFrameLayoutStyle); in PreferenceFrameLayout()
48 public PreferenceFrameLayout(Context context, AttributeSet attrs, int defStyle) { in PreferenceFrameLayout() argument
49 super(context, attrs, defStyle); in PreferenceFrameLayout()
50 TypedArray a = context.obtainStyledAttributes(attrs, in PreferenceFrameLayout()
79 public LayoutParams generateLayoutParams(AttributeSet attrs) { in generateLayoutParams() argument
80 return new LayoutParams(getContext(), attrs); in generateLayoutParams()
131 public LayoutParams(Context c, AttributeSet attrs) { in LayoutParams() argument
132 super(c, attrs); in LayoutParams()
134 TypedArray a = c.obtainStyledAttributes(attrs, in LayoutParams()
DPreferenceCategory.java31 public PreferenceCategory(Context context, AttributeSet attrs, int defStyle) { in PreferenceCategory() argument
32 super(context, attrs, defStyle); in PreferenceCategory()
35 public PreferenceCategory(Context context, AttributeSet attrs) { in PreferenceCategory() argument
36 this(context, attrs, com.android.internal.R.attr.preferenceCategoryStyle); in PreferenceCategory()
DCheckBoxPreference.java37 public CheckBoxPreference(Context context, AttributeSet attrs, int defStyle) { in CheckBoxPreference() argument
38 super(context, attrs, defStyle); in CheckBoxPreference()
40 TypedArray a = context.obtainStyledAttributes(attrs, in CheckBoxPreference()
49 public CheckBoxPreference(Context context, AttributeSet attrs) { in CheckBoxPreference() argument
50 this(context, attrs, com.android.internal.R.attr.checkBoxPreferenceStyle); in CheckBoxPreference()
/frameworks/base/core/java/android/view/animation/
DAnimationUtils.java95 AnimationSet parent, AttributeSet attrs) throws XmlPullParserException, IOException { in createAnimationFromXml() argument
113 anim = new AnimationSet(c, attrs); in createAnimationFromXml()
114 createAnimationFromXml(c, parser, (AnimationSet)anim, attrs); in createAnimationFromXml()
116 anim = new AlphaAnimation(c, attrs); in createAnimationFromXml()
118 anim = new ScaleAnimation(c, attrs); in createAnimationFromXml()
120 anim = new RotateAnimation(c, attrs); in createAnimationFromXml()
122 anim = new TranslateAnimation(c, attrs); in createAnimationFromXml()
165 XmlPullParser parser, AttributeSet attrs) throws XmlPullParserException, IOException { in createLayoutAnimationFromXml() argument
182 controller = new LayoutAnimationController(c, attrs); in createLayoutAnimationFromXml()
184 controller = new GridLayoutAnimationController(c, attrs); in createLayoutAnimationFromXml()
[all …]
/frameworks/base/tools/localize/
Dxmb.cpp40 vector<XMLAttribute>& attrs = node->EditAttributes(); in rename_id_attribute() local
41 const size_t I = attrs.size(); in rename_id_attribute()
43 XMLAttribute attr = attrs[i]; in rename_id_attribute()
46 attrs.erase(attrs.begin()+i); in rename_id_attribute()
47 attrs.push_back(attr); in rename_id_attribute()
85 vector<XMLAttribute> attrs; in resource_to_xmb_msg() local
89 attrs.push_back(XMLAttribute("", "name", name)); in resource_to_xmb_msg()
90 attrs.push_back(XMLAttribute("", "desc", strip_newlines(res.comment))); in resource_to_xmb_msg()
91 attrs.push_back(XMLAttribute(XMLNS_XMLNS, "space", "preserve")); in resource_to_xmb_msg()
92 XMLNode* msg = XMLNode::NewElement(res.pos, "", "msg", attrs, XMLNode::EXACT); in resource_to_xmb_msg()
[all …]
DValuesFile.cpp32 const vector<XMLAttribute>& attrs, XMLHandler** next);
57 const vector<XMLAttribute>& attrs, XMLHandler** next) in OnStartElement() argument
60 XMLNode* node = XMLNode::NewElement(pos, ns, name, attrs, XMLNode::EXACT); in OnStartElement()
94 const vector<XMLAttribute>& attrs, XMLHandler** next);
114 const vector<XMLAttribute>& attrs, XMLHandler** next) in OnStartElement() argument
117 string id = XMLAttribute::Find(attrs, "", "name", ""); in OnStartElement()
118 XMLNode* node = XMLNode::NewElement(pos, ns, name, attrs, XMLNode::EXACT); in OnStartElement()
125 string id = XMLAttribute::Find(attrs, "", "name", ""); in OnStartElement()
217 vector<XMLAttribute> attrs; in ToXMLNode() local
218 ANDROID_NAMESPACES.AddToAttributes(&attrs); in ToXMLNode()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/view/
DBridgeInflater.java79 public View onCreateView(String name, AttributeSet attrs) throws ClassNotFoundException { in onCreateView() argument
86 view = createView(name, prefix, attrs); in onCreateView()
99 view = super.onCreateView(name, attrs); in onCreateView()
108 view = loadCustomView(name, attrs); in onCreateView()
122 setupViewInContext(view, attrs); in onCreateView()
128 public View createViewFromTag(View parent, String name, AttributeSet attrs) { in createViewFromTag() argument
131 view = super.createViewFromTag(parent, name, attrs); in createViewFromTag()
135 view = loadCustomView(name, attrs); in createViewFromTag()
149 setupViewInContext(view, attrs); in createViewFromTag()
197 private View loadCustomView(String name, AttributeSet attrs) throws ClassNotFoundException, in loadCustomView() argument
[all …]
DLayoutInflater_Delegate.java52 XmlPullParser parser, View parent, final AttributeSet attrs, in rInflate() argument
64 thisInflater.rInflate_Original(parser, parent, attrs, finishInflate); in rInflate()
79 XmlPullParser parser, View parent, AttributeSet attrs) in parseInclude() argument
85 final int layout = attrs.getAttributeResourceValue(null, "layout", 0); in parseInclude()
87 final String value = attrs.getAttributeValue(null, "layout"); in parseInclude()
135 params = group.generateLayoutParams(attrs); in parseInclude()
158 TypedArray a = thisInflater.mContext.obtainStyledAttributes(attrs, in parseInclude()
/frameworks/base/core/tests/coretests/src/android/view/
DViewAttachView.java35 public ViewAttachView(Context context, AttributeSet attrs, int defStyle) { in ViewAttachView() argument
36 super(context, attrs, defStyle); in ViewAttachView()
37 init(attrs, defStyle); in ViewAttachView()
40 public ViewAttachView(Context context, AttributeSet attrs) { in ViewAttachView() argument
41 super(context, attrs); in ViewAttachView()
42 init(attrs, 0); in ViewAttachView()
50 private void init(AttributeSet attrs, int defStyle) { in init() argument
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
DResources_Theme_Delegate.java39 int[] attrs) { in obtainStyledAttributes() argument
40 return RenderSessionImpl.getCurrentContext().obtainStyledAttributes(attrs); in obtainStyledAttributes()
46 int resid, int[] attrs) in obtainStyledAttributes() argument
48 return RenderSessionImpl.getCurrentContext().obtainStyledAttributes(resid, attrs); in obtainStyledAttributes()
54 AttributeSet set, int[] attrs, int defStyleAttr, int defStyleRes) { in obtainStyledAttributes() argument
56 set, attrs, defStyleAttr, defStyleRes); in obtainStyledAttributes()
/frameworks/base/core/java/android/widget/
DAbsoluteLayout.java46 public AbsoluteLayout(Context context, AttributeSet attrs) { in AbsoluteLayout() argument
47 super(context, attrs); in AbsoluteLayout()
50 public AbsoluteLayout(Context context, AttributeSet attrs, in AbsoluteLayout() argument
52 super(context, attrs, defStyle); in AbsoluteLayout()
129 public ViewGroup.LayoutParams generateLayoutParams(AttributeSet attrs) { in generateLayoutParams() argument
130 return new AbsoluteLayout.LayoutParams(getContext(), attrs); in generateLayoutParams()
198 public LayoutParams(Context c, AttributeSet attrs) { in LayoutParams() argument
199 super(c, attrs); in LayoutParams()
200 TypedArray a = c.obtainStyledAttributes(attrs, in LayoutParams()
DTwoLineListItem.java53 public TwoLineListItem(Context context, AttributeSet attrs) { in TwoLineListItem() argument
54 this(context, attrs, 0); in TwoLineListItem()
57 public TwoLineListItem(Context context, AttributeSet attrs, int defStyle) { in TwoLineListItem() argument
58 super(context, attrs, defStyle); in TwoLineListItem()
60 TypedArray a = context.obtainStyledAttributes(attrs, in TwoLineListItem()
DButton.java103 public Button(Context context, AttributeSet attrs) { in Button() argument
104 this(context, attrs, com.android.internal.R.attr.buttonStyle); in Button()
107 public Button(Context context, AttributeSet attrs, int defStyle) { in Button() argument
108 super(context, attrs, defStyle); in Button()
DImageButton.java80 public ImageButton(Context context, AttributeSet attrs) { in ImageButton() argument
81 this(context, attrs, com.android.internal.R.attr.imageButtonStyle); in ImageButton()
84 public ImageButton(Context context, AttributeSet attrs, int defStyle) { in ImageButton() argument
85 super(context, attrs, defStyle); in ImageButton()
DCheckBox.java64 public CheckBox(Context context, AttributeSet attrs) { in CheckBox() argument
65 this(context, attrs, com.android.internal.R.attr.checkboxStyle); in CheckBox()
68 public CheckBox(Context context, AttributeSet attrs, int defStyle) { in CheckBox() argument
69 super(context, attrs, defStyle); in CheckBox()
/frameworks/base/core/java/android/inputmethodservice/
DExtractButton.java31 public ExtractButton(Context context, AttributeSet attrs) { in ExtractButton() argument
32 super(context, attrs, com.android.internal.R.attr.buttonStyle); in ExtractButton()
35 public ExtractButton(Context context, AttributeSet attrs, int defStyle) { in ExtractButton() argument
36 super(context, attrs, defStyle); in ExtractButton()
/frameworks/base/core/java/com/android/internal/widget/
DPasswordEntryKeyboardView.java31 public PasswordEntryKeyboardView(Context context, AttributeSet attrs) { in PasswordEntryKeyboardView() argument
32 super(context, attrs); in PasswordEntryKeyboardView()
35 public PasswordEntryKeyboardView(Context context, AttributeSet attrs, int defStyle) { in PasswordEntryKeyboardView() argument
36 super(context, attrs, defStyle); in PasswordEntryKeyboardView()
/frameworks/base/core/java/android/content/res/
DColorStateList.java118 AttributeSet attrs = Xml.asAttributeSet(parser); in createFromXml() local
129 return createFromXmlInner(r, parser, attrs); in createFromXml()
137 AttributeSet attrs) throws XmlPullParserException, IOException { in createFromXmlInner() argument
150 colorStateList.inflate(r, parser, attrs); in createFromXmlInner()
173 private void inflate(Resources r, XmlPullParser parser, AttributeSet attrs) in inflate() argument
203 final int numAttrs = attrs.getAttributeCount(); in inflate()
206 final int stateResId = attrs.getAttributeNameResource(i); in inflate()
209 colorRes = attrs.getAttributeResourceValue(i, 0); in inflate()
212 color = attrs.getAttributeIntValue(i, color); in inflate()
216 stateSpec[j++] = attrs.getAttributeBooleanValue(i, false) in inflate()
/frameworks/ex/carousel/test/src/com/android/carouseltest/
DMyCarouselView.java32 public MyCarouselView(Context context, AttributeSet attrs) { in MyCarouselView() argument
33 this(context, attrs, new CarouselController()); in MyCarouselView()
36 public MyCarouselView(Context context, AttributeSet attrs, CarouselController controller) { in MyCarouselView() argument
37 super(context, attrs, controller); in MyCarouselView()
/frameworks/base/libs/ui/
DEGLUtils.cpp57 EGLint const* attrs, in selectConfigForPixelFormat() argument
63 if (!attrs) in selectConfigForPixelFormat()
74 if (eglChooseConfig(dpy, attrs, configs, numConfigs, &n) == EGL_FALSE) { in selectConfigForPixelFormat()
102 EGLint const* attrs, in selectConfigForNativeWindow() argument
116 return selectConfigForPixelFormat(dpy, attrs, format, outConfig); in selectConfigForNativeWindow()
/frameworks/base/tests/BiDiTests/src/com/android/bidi/
DBiDiTestViewDrawText.java37 public BiDiTestViewDrawText(Context context, AttributeSet attrs) { in BiDiTestViewDrawText() argument
38 this(context, attrs, 0); in BiDiTestViewDrawText()
41 public BiDiTestViewDrawText(Context context, AttributeSet attrs, int defStyle) { in BiDiTestViewDrawText() argument
42 super(context, attrs, defStyle); in BiDiTestViewDrawText()
44 final TypedArray a = context.obtainStyledAttributes(attrs, in BiDiTestViewDrawText()
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
DExceptionTextView.java40 public ExceptionTextView(Context context, AttributeSet attrs) { in ExceptionTextView() argument
41 super(context, attrs); in ExceptionTextView()
44 public ExceptionTextView(Context context, AttributeSet attrs, int defStyle) { in ExceptionTextView() argument
45 super(context, attrs, defStyle); in ExceptionTextView()

12345678910>>...12