Home
last modified time | relevance | path

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

12345678910>>...39

/frameworks/av/media/libstagefright/xmlparser/
DMediaCodecsXmlParser.cpp342 static void StartElementHandlerWrapper(void *me, const char *name, const char **attrs);
345 void startElementHandler(const char *name, const char **attrs);
352 status_t addAlias(const char **attrs);
353 status_t addFeature(const char **attrs);
354 status_t addLimit(const char **attrs);
355 status_t addMapping(const char **attrs);
356 status_t addTuning(const char **attrs);
357 status_t addQuirk(const char **attrs, const char *prefix = nullptr);
358 status_t addSetting(const char **attrs, const char *prefix = nullptr);
359 status_t enterMediaCodec(const char **attrs, bool encoder);
[all …]
/frameworks/base/core/java/android/view/
DWindowLayout.java65 public void computeFrames(WindowManager.LayoutParams attrs, InsetsState state, in computeFrames() argument
69 final int type = attrs.type; in computeFrames()
70 final int fl = attrs.flags; in computeFrames()
71 final int pfl = attrs.privateFlags; in computeFrames()
79 final Insets insets = state.calculateInsets(windowBounds, attrs.getFitInsetsTypes(), in computeFrames()
80 attrs.isFitInsetsIgnoringVisibility()); in computeFrames()
81 final @WindowInsets.Side.InsetsSide int sides = attrs.getFitInsetsSides(); in computeFrames()
103 final int cutoutMode = attrs.layoutInDisplayCutoutMode; in computeFrames()
121 final boolean layoutInsetDecor = (attrs.flags & FLAG_LAYOUT_INSET_DECOR) != 0; in computeFrames()
150 final boolean floatingInScreenWindow = !attrs.isFullscreen() && layoutInScreen in computeFrames()
[all …]
DLayoutInflater.java177 @NonNull AttributeSet attrs); in onCreateView() argument
197 @NonNull Context context, @NonNull AttributeSet attrs); in onCreateView() argument
213 @NonNull AttributeSet attrs) { in onCreateView() argument
214 View v = mF1.onCreateView(name, context, attrs); in onCreateView()
216 return mF2.onCreateView(name, context, attrs); in onCreateView()
221 @NonNull Context context, @NonNull AttributeSet attrs) { in onCreateView() argument
222 View v = mF12 != null ? mF12.onCreateView(parent, name, context, attrs) in onCreateView()
223 : mF1.onCreateView(name, context, attrs); in onCreateView()
225 return mF22 != null ? mF22.onCreateView(parent, name, context, attrs) in onCreateView()
226 : mF2.onCreateView(name, context, attrs); in onCreateView()
[all …]
DWindowlessWindowLayout.java39 public void computeFrames(WindowManager.LayoutParams attrs, InsetsState state, in computeFrames() argument
44 frames.frame.set(0, 0, attrs.width, attrs.height); in computeFrames()
50 final int height = calculateLength(attrs.height, requestedHeight, in computeFrames()
52 final int width = calculateLength(attrs.width, requestedWidth, in computeFrames()
54 Gravity.apply(attrs.gravity, width, height, frames.attachedFrame, in computeFrames()
55 (int) (attrs.x + attrs.horizontalMargin), in computeFrames()
56 (int) (attrs.y + attrs.verticalMargin), in computeFrames()
/frameworks/av/media/libstagefright/renderfright/gl/
DGLImage.cpp33 std::vector<EGLint> attrs; in buildAttributeList() local
34 attrs.reserve(16); in buildAttributeList()
36 attrs.push_back(EGL_IMAGE_PRESERVED_KHR); in buildAttributeList()
37 attrs.push_back(EGL_TRUE); in buildAttributeList()
40 attrs.push_back(EGL_PROTECTED_CONTENT_EXT); in buildAttributeList()
41 attrs.push_back(EGL_TRUE); in buildAttributeList()
44 attrs.push_back(EGL_NONE); in buildAttributeList()
46 return attrs; in buildAttributeList()
65 std::vector<EGLint> attrs = buildAttributeList(isProtected); in setNativeWindowBuffer() local
67 static_cast<EGLClientBuffer>(buffer), attrs.data()); in setNativeWindowBuffer()
/frameworks/native/libs/vibrator/
DExternalVibration.cpp25 void writeAudioAttributes(const audio_attributes_t& attrs, android::Parcel* out) { in writeAudioAttributes() argument
26 out->writeInt32(attrs.usage); in writeAudioAttributes()
27 out->writeInt32(attrs.content_type); in writeAudioAttributes()
28 out->writeInt32(attrs.source); in writeAudioAttributes()
29 out->writeInt32(attrs.flags); in writeAudioAttributes()
32 void readAudioAttributes(audio_attributes_t* attrs, const android::Parcel* in) { in readAudioAttributes() argument
33 attrs->usage = static_cast<audio_usage_t>(in->readInt32()); in readAudioAttributes()
34 attrs->content_type = static_cast<audio_content_type_t>(in->readInt32()); in readAudioAttributes()
35 attrs->source = static_cast<audio_source_t>(in->readInt32()); in readAudioAttributes()
36 attrs->flags = static_cast<audio_flags_mask_t>(in->readInt32()); in readAudioAttributes()
[all …]
/frameworks/base/core/java/android/preference/
DGenericInflater.java89 public T onCreateItem(String name, Context context, AttributeSet attrs); in onCreateItem() argument
100 public T onCreateItem(String name, Context context, AttributeSet attrs) { in onCreateItem() argument
101 T v = mF1.onCreateItem(name, context, attrs); in onCreateItem()
103 return mF2.onCreateItem(name, context, attrs); in onCreateItem()
301 final AttributeSet attrs = Xml.asAttributeSet(parser); in inflate() local
326 attrs); in inflate()
334 rInflate(parser, result, attrs); in inflate()
375 public final T createItem(String name, String prefix, AttributeSet attrs) in createItem() argument
391 args[1] = attrs; in createItem()
395 InflateException ie = new InflateException(attrs in createItem()
[all …]
DPreferenceFrameLayout.java50 public PreferenceFrameLayout(Context context, AttributeSet attrs) { in PreferenceFrameLayout() argument
51 this(context, attrs, com.android.internal.R.attr.preferenceFrameLayoutStyle); in PreferenceFrameLayout()
54 public PreferenceFrameLayout(Context context, AttributeSet attrs, int defStyleAttr) { in PreferenceFrameLayout() argument
55 this(context, attrs, defStyleAttr, 0); in PreferenceFrameLayout()
59 Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in PreferenceFrameLayout() argument
60 super(context, attrs, defStyleAttr, defStyleRes); in PreferenceFrameLayout()
61 final TypedArray a = context.obtainStyledAttributes(attrs, in PreferenceFrameLayout()
90 public LayoutParams generateLayoutParams(AttributeSet attrs) { in generateLayoutParams() argument
91 return new LayoutParams(getContext(), attrs); in generateLayoutParams()
142 public LayoutParams(Context c, AttributeSet attrs) { in LayoutParams() argument
[all …]
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
DSimpleInflater.java86 final AttributeSet attrs = Xml.asAttributeSet(parser); in inflate() local
101 createdItem = createItemFromTag(parser.getName(), attrs); in inflate()
103 rInflate(parser, createdItem, attrs); in inflate()
121 protected abstract T onCreateItem(String tagName, AttributeSet attrs); in onCreateItem() argument
123 private T createItemFromTag(String name, AttributeSet attrs) { in createItemFromTag() argument
125 T item = onCreateItem(name, attrs); in createItemFromTag()
134 attrs.getPositionDescription() + ": Error inflating class " + name, e); in createItemFromTag()
142 private void rInflate(XmlPullParser parser, T parent, final AttributeSet attrs) in rInflate() argument
154 if (onInterceptCreateItem(parser, parent, attrs)) { in rInflate()
159 T item = createItemFromTag(name, attrs); in rInflate()
[all …]
/frameworks/base/core/java/android/transition/
DTransitionInflater.java128 AttributeSet attrs, Transition parent) in createTransitionFromXml() argument
149 transition = new Fade(mContext, attrs); in createTransitionFromXml()
151 transition = new ChangeBounds(mContext, attrs); in createTransitionFromXml()
153 transition = new Slide(mContext, attrs); in createTransitionFromXml()
155 transition = new Explode(mContext, attrs); in createTransitionFromXml()
157 transition = new ChangeImageTransform(mContext, attrs); in createTransitionFromXml()
159 transition = new ChangeTransform(mContext, attrs); in createTransitionFromXml()
161 transition = new ChangeClipBounds(mContext, attrs); in createTransitionFromXml()
163 transition = new AutoTransition(mContext, attrs); in createTransitionFromXml()
165 transition = new Recolor(mContext, attrs); in createTransitionFromXml()
[all …]
/frameworks/base/tools/aapt2/integration-tests/NamespaceTest/LibTwo/src/com/android/aapt/namespace/libtwo/
DTextView.java30 public TextView(Context context, AttributeSet attrs) { in TextView() argument
31 this(context, attrs, 0); in TextView()
34 public TextView(Context context, AttributeSet attrs, int defStyleAttr) { in TextView() argument
35 this(context, attrs, defStyleAttr, 0); in TextView()
38 public TextView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in TextView() argument
39 super(context, attrs, defStyleAttr, defStyleRes); in TextView()
41 final TypedArray ta = context.getTheme().obtainStyledAttributes(attrs, R.styleable.TextView, in TextView()
/frameworks/base/packages/SettingsLib/MainSwitchPreference/src/com/android/settingslib/widget/
DMainSwitchPreference.java49 public MainSwitchPreference(Context context, AttributeSet attrs) { in MainSwitchPreference() argument
50 super(context, attrs); in MainSwitchPreference()
51 init(context, attrs); in MainSwitchPreference()
54 public MainSwitchPreference(Context context, AttributeSet attrs, int defStyleAttr) { in MainSwitchPreference() argument
55 super(context, attrs, defStyleAttr); in MainSwitchPreference()
56 init(context, attrs); in MainSwitchPreference()
59 public MainSwitchPreference(Context context, AttributeSet attrs, int defStyleAttr, in MainSwitchPreference() argument
61 super(context, attrs, defStyleAttr, defStyleRes); in MainSwitchPreference()
62 init(context, attrs); in MainSwitchPreference()
81 private void init(Context context, AttributeSet attrs) { in init() argument
[all …]
/frameworks/base/core/java/android/widget/
DTwoLineListItem.java52 public TwoLineListItem(Context context, AttributeSet attrs) { in TwoLineListItem() argument
53 this(context, attrs, 0); in TwoLineListItem()
56 public TwoLineListItem(Context context, AttributeSet attrs, int defStyleAttr) { in TwoLineListItem() argument
57 this(context, attrs, defStyleAttr, 0); in TwoLineListItem()
60 public TwoLineListItem(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in TwoLineListItem() argument
61 super(context, attrs, defStyleAttr, defStyleRes); in TwoLineListItem()
64 attrs, com.android.internal.R.styleable.TwoLineListItem, defStyleAttr, defStyleRes); in TwoLineListItem()
66 attrs, a, defStyleAttr, defStyleRes); in TwoLineListItem()
DCheckBox.java62 public CheckBox(Context context, AttributeSet attrs) { in CheckBox() argument
63 this(context, attrs, com.android.internal.R.attr.checkboxStyle); in CheckBox()
66 public CheckBox(Context context, AttributeSet attrs, int defStyleAttr) { in CheckBox() argument
67 this(context, attrs, defStyleAttr, 0); in CheckBox()
70 public CheckBox(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in CheckBox() argument
71 super(context, attrs, defStyleAttr, defStyleRes); in CheckBox()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DAlphaOptimizedLinearLayout.java33 public AlphaOptimizedLinearLayout(Context context, AttributeSet attrs) { in AlphaOptimizedLinearLayout() argument
34 super(context, attrs); in AlphaOptimizedLinearLayout()
37 public AlphaOptimizedLinearLayout(Context context, AttributeSet attrs, int defStyleAttr) { in AlphaOptimizedLinearLayout() argument
38 super(context, attrs, defStyleAttr); in AlphaOptimizedLinearLayout()
41 public AlphaOptimizedLinearLayout(Context context, AttributeSet attrs, int defStyleAttr, in AlphaOptimizedLinearLayout() argument
43 super(context, attrs, defStyleAttr, defStyleRes); in AlphaOptimizedLinearLayout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DAlphaOptimizedView.java33 public AlphaOptimizedView(Context context, AttributeSet attrs) { in AlphaOptimizedView() argument
34 super(context, attrs); in AlphaOptimizedView()
37 public AlphaOptimizedView(Context context, AttributeSet attrs, int defStyleAttr) { in AlphaOptimizedView() argument
38 super(context, attrs, defStyleAttr); in AlphaOptimizedView()
41 public AlphaOptimizedView(Context context, AttributeSet attrs, int defStyleAttr, in AlphaOptimizedView() argument
43 super(context, attrs, defStyleAttr, defStyleRes); in AlphaOptimizedView()
DAlphaOptimizedImageView.java33 public AlphaOptimizedImageView(Context context, AttributeSet attrs) { in AlphaOptimizedImageView() argument
34 this(context, attrs, 0 /* defStyleAttr */); in AlphaOptimizedImageView()
37 public AlphaOptimizedImageView(Context context, AttributeSet attrs, int defStyleAttr) { in AlphaOptimizedImageView() argument
38 this(context, attrs, defStyleAttr, 0 /* defStyleRes */); in AlphaOptimizedImageView()
41 public AlphaOptimizedImageView(Context context, AttributeSet attrs, int defStyleAttr, in AlphaOptimizedImageView() argument
43 super(context, attrs, defStyleAttr, defStyleRes); in AlphaOptimizedImageView()
DAlphaOptimizedTextView.java32 public AlphaOptimizedTextView(Context context, AttributeSet attrs) { in AlphaOptimizedTextView() argument
33 super(context, attrs); in AlphaOptimizedTextView()
36 public AlphaOptimizedTextView(Context context, AttributeSet attrs, int defStyleAttr) { in AlphaOptimizedTextView() argument
37 super(context, attrs, defStyleAttr); in AlphaOptimizedTextView()
40 public AlphaOptimizedTextView(Context context, AttributeSet attrs, int defStyleAttr, in AlphaOptimizedTextView() argument
42 super(context, attrs, defStyleAttr, defStyleRes); in AlphaOptimizedTextView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/
DDreamOverlayContainerView.java32 public DreamOverlayContainerView(Context context, AttributeSet attrs) { in DreamOverlayContainerView() argument
33 this(context, attrs, 0); in DreamOverlayContainerView()
36 public DreamOverlayContainerView(Context context, AttributeSet attrs, int defStyleAttr) { in DreamOverlayContainerView() argument
37 this(context, attrs, defStyleAttr, 0); in DreamOverlayContainerView()
41 Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in DreamOverlayContainerView() argument
42 super(context, attrs, defStyleAttr, defStyleRes); in DreamOverlayContainerView()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DAlphaOptimizedButton.java33 public AlphaOptimizedButton(Context context, AttributeSet attrs) { in AlphaOptimizedButton() argument
34 super(context, attrs); in AlphaOptimizedButton()
37 public AlphaOptimizedButton(Context context, AttributeSet attrs, int defStyleAttr) { in AlphaOptimizedButton() argument
38 super(context, attrs, defStyleAttr); in AlphaOptimizedButton()
41 public AlphaOptimizedButton(Context context, AttributeSet attrs, int defStyleAttr, in AlphaOptimizedButton() argument
43 super(context, attrs, defStyleAttr, defStyleRes); in AlphaOptimizedButton()
/frameworks/base/core/tests/coretests/src/android/view/
DViewAttachView.java34 public ViewAttachView(Context context, AttributeSet attrs, int defStyle) { in ViewAttachView() argument
35 super(context, attrs, defStyle); in ViewAttachView()
36 init(attrs, defStyle); in ViewAttachView()
39 public ViewAttachView(Context context, AttributeSet attrs) { in ViewAttachView() argument
40 super(context, attrs); in ViewAttachView()
41 init(attrs, 0); in ViewAttachView()
49 private void init(AttributeSet attrs, int defStyle) { in init() argument
/frameworks/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/myapplication.widgets/
DCustomCalendar.java29 public CustomCalendar(Context context, AttributeSet attrs) { in CustomCalendar() argument
30 super(context, attrs); in CustomCalendar()
34 public CustomCalendar(Context context, AttributeSet attrs, int defStyleAttr) { in CustomCalendar() argument
35 super(context, attrs, defStyleAttr); in CustomCalendar()
39 public CustomCalendar(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in CustomCalendar() argument
40 super(context, attrs, defStyleAttr, defStyleRes); in CustomCalendar()
DCustomDate.java29 public CustomDate(Context context, AttributeSet attrs) { in CustomDate() argument
30 super(context, attrs); in CustomDate()
34 public CustomDate(Context context, AttributeSet attrs, int defStyleAttr) { in CustomDate() argument
35 super(context, attrs, defStyleAttr); in CustomDate()
39 public CustomDate(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in CustomDate() argument
40 super(context, attrs, defStyleAttr, defStyleRes); in CustomDate()
/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 defStyleAttr) { in ExtractButton() argument
36 this(context, attrs, defStyleAttr, 0); in ExtractButton()
39 public ExtractButton(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in ExtractButton() argument
40 super(context, attrs, defStyleAttr, defStyleRes); in ExtractButton()
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/
DCarSetupWizardCompatLayout.java33 public CarSetupWizardCompatLayout(Context context, @Nullable AttributeSet attrs) { in CarSetupWizardCompatLayout() argument
34 this(context, attrs, 0); in CarSetupWizardCompatLayout()
37 public CarSetupWizardCompatLayout(Context context, @Nullable AttributeSet attrs, in CarSetupWizardCompatLayout() argument
39 this(context, attrs, defStyleAttr, 0); in CarSetupWizardCompatLayout()
42 public CarSetupWizardCompatLayout(Context context, @Nullable AttributeSet attrs, in CarSetupWizardCompatLayout() argument
44 super(context, attrs, defStyleAttr, defStyleRes); in CarSetupWizardCompatLayout()

12345678910>>...39