Home
last modified time | relevance | path

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

12345678910>>...16

/frameworks/base/core/java/android/view/
DLayoutInflater.java130 public View onCreateView(String name, Context context, AttributeSet attrs); in onCreateView() argument
148 public View onCreateView(View parent, String name, Context context, AttributeSet attrs); in onCreateView() argument
162 public View onCreateView(String name, Context context, AttributeSet attrs) { in onCreateView() argument
163 View v = mF1.onCreateView(name, context, attrs); in onCreateView()
165 return mF2.onCreateView(name, context, attrs); in onCreateView()
168 public View onCreateView(View parent, String name, Context context, AttributeSet attrs) { in onCreateView() argument
169 View v = mF12 != null ? mF12.onCreateView(parent, name, context, attrs) in onCreateView()
170 : mF1.onCreateView(name, context, attrs); in onCreateView()
172 return mF22 != null ? mF22.onCreateView(parent, name, context, attrs) in onCreateView()
173 : mF2.onCreateView(name, context, attrs); in onCreateView()
[all …]
DWindow.java307 public void onWindowAttributesChanged(WindowManager.LayoutParams attrs); in onWindowAttributesChanged() argument
600 final WindowManager.LayoutParams attrs = getAttributes(); in setLayout() local
601 attrs.width = width; in setLayout()
602 attrs.height = height; in setLayout()
604 mCallback.onWindowAttributesChanged(attrs); in setLayout()
620 final WindowManager.LayoutParams attrs = getAttributes(); in setGravity() local
621 attrs.gravity = gravity; in setGravity()
623 mCallback.onWindowAttributesChanged(attrs); in setGravity()
634 final WindowManager.LayoutParams attrs = getAttributes(); in setType() local
635 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.java38 public PreferenceCategory(Context context, AttributeSet attrs, int defStyle) { in PreferenceCategory() argument
39 super(context, attrs, defStyle); in PreferenceCategory()
42 public PreferenceCategory(Context context, AttributeSet attrs) { in PreferenceCategory() argument
43 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/av/media/libstagefright/
DMediaCodecList.cpp163 void *me, const char *name, const char **attrs) { in StartElementHandlerWrapper() argument
164 static_cast<MediaCodecList *>(me)->startElementHandler(name, attrs); in StartElementHandlerWrapper()
173 const char *name, const char **attrs) { in startElementHandler() argument
193 addMediaCodecFromAttributes(false /* encoder */, attrs); in startElementHandler()
204 addMediaCodecFromAttributes(true /* encoder */, attrs); in startElementHandler()
215 mInitCheck = addQuirk(attrs); in startElementHandler()
217 mInitCheck = addTypeFromAttributes(attrs); in startElementHandler()
275 bool encoder, const char **attrs) { in addMediaCodecFromAttributes() argument
280 while (attrs[i] != NULL) { in addMediaCodecFromAttributes()
281 if (!strcmp(attrs[i], "name")) { in addMediaCodecFromAttributes()
[all …]
/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()
173 XmlPullParser parser, AttributeSet attrs) throws XmlPullParserException, IOException { in createLayoutAnimationFromXml() argument
190 controller = new LayoutAnimationController(c, attrs); in createLayoutAnimationFromXml()
192 controller = new GridLayoutAnimationController(c, attrs); in createLayoutAnimationFromXml()
[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/native/opengl/tests/include/
DEGLUtils.h41 EGLint const* attrs,
47 EGLint const* attrs,
78 EGLint const* attrs, in selectConfigForPixelFormat() argument
84 if (!attrs) in selectConfigForPixelFormat()
95 if (eglChooseConfig(dpy, attrs, configs, numConfigs, &n) == EGL_FALSE) { in selectConfigForPixelFormat()
123 EGLint const* attrs, in selectConfigForNativeWindow() argument
137 return selectConfigForPixelFormat(dpy, attrs, format, outConfig); in selectConfigForNativeWindow()
/frameworks/base/core/java/android/transition/
DTransitionInflater.java118 AttributeSet attrs, TransitionSet transitionSet) in createTransitionFromXml() argument
138 TypedArray a = mContext.obtainStyledAttributes(attrs, in createTransitionFromXml()
158 TypedArray a = mContext.obtainStyledAttributes(attrs, in createTransitionFromXml()
164 createTransitionFromXml(parser, attrs, ((TransitionSet) transition)); in createTransitionFromXml()
170 getTargetIds(parser, attrs, transition); in createTransitionFromXml()
173 getTargetIds(parser, attrs, transitionSet); in createTransitionFromXml()
178 loadTransition(transition, attrs); in createTransitionFromXml()
192 AttributeSet attrs, Transition transition) throws XmlPullParserException, IOException { in getTargetIds() argument
208 TypedArray a = mContext.obtainStyledAttributes(attrs, in getTargetIds()
227 private Transition loadTransition(Transition transition, AttributeSet attrs) in loadTransition() argument
[all …]
/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.java55 public TwoLineListItem(Context context, AttributeSet attrs) { in TwoLineListItem() argument
56 this(context, attrs, 0); in TwoLineListItem()
59 public TwoLineListItem(Context context, AttributeSet attrs, int defStyle) { in TwoLineListItem() argument
60 super(context, attrs, defStyle); in TwoLineListItem()
62 TypedArray a = context.obtainStyledAttributes(attrs, in TwoLineListItem()
/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/packages/Keyguard/src/com/android/keyguard/
DKeyguardLinearLayout.java33 public KeyguardLinearLayout(Context context, AttributeSet attrs) { in KeyguardLinearLayout() argument
34 this(context, attrs, 0); in KeyguardLinearLayout()
37 public KeyguardLinearLayout(Context context, AttributeSet attrs, int defStyle) { in KeyguardLinearLayout() argument
38 super(context, attrs, defStyle); in KeyguardLinearLayout()
/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/support/v7/appcompat/src/android/support/v7/internal/widget/
DCompatTextView.java39 public CompatTextView(Context context, AttributeSet attrs) { in CompatTextView() argument
40 this(context, attrs, 0); in CompatTextView()
43 public CompatTextView(Context context, AttributeSet attrs, int defStyle) { in CompatTextView() argument
44 super(context, attrs, defStyle); in CompatTextView()
49 .obtainStyledAttributes(attrs, R.styleable.CompatTextView, defStyle, 0); in CompatTextView()
/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/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/av/include/media/stagefright/
DMediaCodecList.h89 void *me, const char *name, const char **attrs);
93 void startElementHandler(const char *name, const char **attrs);
96 status_t addMediaCodecFromAttributes(bool encoder, const char **attrs);
99 status_t addQuirk(const char **attrs);
100 status_t addTypeFromAttributes(const char **attrs);
/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/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>>...16