Home
last modified time | relevance | path

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

12345678910>>...31

/frameworks/base/core/tests/coretests/src/android/view/
DViewRootImplTest.java71 final WindowManager.LayoutParams attrs = new WindowManager.LayoutParams(TYPE_APPLICATION); in adjustLayoutParamsForCompatibility_layoutFullscreen() local
72 attrs.systemUiVisibility = SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN; in adjustLayoutParamsForCompatibility_layoutFullscreen()
73 ViewRootImpl.adjustLayoutParamsForCompatibility(attrs); in adjustLayoutParamsForCompatibility_layoutFullscreen()
76 assertEquals(0, attrs.getFitInsetsTypes() & Type.statusBars()); in adjustLayoutParamsForCompatibility_layoutFullscreen()
81 final WindowManager.LayoutParams attrs = new WindowManager.LayoutParams(TYPE_APPLICATION); in adjustLayoutParamsForCompatibility_layoutInScreen() local
82 attrs.flags = FLAG_LAYOUT_IN_SCREEN; in adjustLayoutParamsForCompatibility_layoutInScreen()
83 ViewRootImpl.adjustLayoutParamsForCompatibility(attrs); in adjustLayoutParamsForCompatibility_layoutInScreen()
86 assertEquals(0, attrs.getFitInsetsTypes() & Type.statusBars()); in adjustLayoutParamsForCompatibility_layoutInScreen()
91 final WindowManager.LayoutParams attrs = new WindowManager.LayoutParams(TYPE_APPLICATION); in adjustLayoutParamsForCompatibility_layoutHideNavigation() local
92 attrs.systemUiVisibility = SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION; in adjustLayoutParamsForCompatibility_layoutHideNavigation()
[all …]
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/av/media/libstagefright/xmlparser/
DMediaCodecsXmlParser.cpp336 static void StartElementHandlerWrapper(void *me, const char *name, const char **attrs);
339 void startElementHandler(const char *name, const char **attrs);
346 status_t addAlias(const char **attrs);
347 status_t addFeature(const char **attrs);
348 status_t addLimit(const char **attrs);
349 status_t addQuirk(const char **attrs, const char *prefix = nullptr);
350 status_t addSetting(const char **attrs, const char *prefix = nullptr);
351 status_t enterMediaCodec(const char **attrs, bool encoder);
352 status_t enterType(const char **attrs);
353 status_t includeXmlFile(const char **attrs);
[all …]
/frameworks/base/core/java/android/view/
DLayoutInflater.java192 @NonNull AttributeSet attrs); in onCreateView() argument
212 @NonNull Context context, @NonNull AttributeSet attrs); in onCreateView() argument
228 @NonNull AttributeSet attrs) { in onCreateView() argument
229 View v = mF1.onCreateView(name, context, attrs); in onCreateView()
231 return mF2.onCreateView(name, context, attrs); in onCreateView()
236 @NonNull Context context, @NonNull AttributeSet attrs) { in onCreateView() argument
237 View v = mF12 != null ? mF12.onCreateView(parent, name, context, attrs) in onCreateView()
238 : mF1.onCreateView(name, context, attrs); in onCreateView()
240 return mF22 != null ? mF22.onCreateView(parent, name, context, attrs) in onCreateView()
241 : mF2.onCreateView(name, context, attrs); in onCreateView()
[all …]
DWindowlessWindowManager.java130 public int addToDisplay(IWindow window, int seq, WindowManager.LayoutParams attrs, in addToDisplay() argument
137 .setFormat(attrs.format) in addToDisplay()
138 .setBufferSize(getSurfaceWidth(attrs), getSurfaceHeight(attrs)) in addToDisplay()
139 .setName(attrs.getTitle().toString()) in addToDisplay()
143 if (((attrs.inputFeatures & in addToDisplay()
146 mRealWm.grantInputChannel(displayId, sc, window, mHostInputToken, attrs.flags, in addToDisplay()
147 attrs.type, outInputChannel); in addToDisplay()
153 final State state = new State(sc, attrs, displayId, in addToDisplay()
166 public int addToDisplayAsUser(IWindow window, int seq, WindowManager.LayoutParams attrs, in addToDisplayAsUser() argument
171 return addToDisplay(window, seq, attrs, viewVisibility, displayId, in addToDisplayAsUser()
[all …]
/frameworks/native/libs/vibrator/
DExternalVibration.cpp23 void writeAudioAttributes(const audio_attributes_t& attrs, android::Parcel* out) { in writeAudioAttributes() argument
24 out->writeInt32(attrs.usage); in writeAudioAttributes()
25 out->writeInt32(attrs.content_type); in writeAudioAttributes()
26 out->writeInt32(attrs.source); in writeAudioAttributes()
27 out->writeInt32(attrs.flags); in writeAudioAttributes()
30 void readAudioAttributes(audio_attributes_t* attrs, const android::Parcel* in) { in readAudioAttributes() argument
31 attrs->usage = static_cast<audio_usage_t>(in->readInt32()); in readAudioAttributes()
32 attrs->content_type = static_cast<audio_content_type_t>(in->readInt32()); in readAudioAttributes()
33 attrs->source = static_cast<audio_source_t>(in->readInt32()); in readAudioAttributes()
34 attrs->flags = static_cast<audio_flags_mask_t>(in->readInt32()); in readAudioAttributes()
[all …]
/frameworks/native/libs/renderengine/gl/
DGLImage.cpp34 std::vector<EGLint> attrs; in buildAttributeList() local
35 attrs.reserve(16); in buildAttributeList()
37 attrs.push_back(EGL_IMAGE_PRESERVED_KHR); in buildAttributeList()
38 attrs.push_back(EGL_TRUE); in buildAttributeList()
41 attrs.push_back(EGL_PROTECTED_CONTENT_EXT); in buildAttributeList()
42 attrs.push_back(EGL_TRUE); in buildAttributeList()
45 attrs.push_back(EGL_NONE); in buildAttributeList()
47 return attrs; in buildAttributeList()
67 std::vector<EGLint> attrs = buildAttributeList(isProtected); in setNativeWindowBuffer() local
69 static_cast<EGLClientBuffer>(buffer), attrs.data()); in setNativeWindowBuffer()
/frameworks/base/core/java/android/content/pm/parsing/
DApkLiteParseUtils.java268 final AttributeSet attrs = parser; in parseApkLiteInner() local
269 return parseApkLite(input, apkPath, parser, attrs, signingDetails); in parseApkLiteInner()
287 String codePath, XmlPullParser parser, AttributeSet attrs, in parseApkLite() argument
290 ParseResult<Pair<String, String>> result = parsePackageSplitNames(input, parser, attrs); in parseApkLite()
322 for (int i = 0; i < attrs.getAttributeCount(); i++) { in parseApkLite()
323 final String attr = attrs.getAttributeName(i); in parseApkLite()
326 installLocation = attrs.getAttributeIntValue(i, in parseApkLite()
330 versionCode = attrs.getAttributeIntValue(i, 0); in parseApkLite()
333 versionCodeMajor = attrs.getAttributeIntValue(i, 0); in parseApkLite()
336 revisionCode = attrs.getAttributeIntValue(i, 0); in parseApkLite()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DPolicyControl.java67 static int getSystemUiVisibility(WindowState win, LayoutParams attrs) { in getSystemUiVisibility() argument
68 attrs = attrs != null ? attrs : win.getAttrs(); in getSystemUiVisibility()
70 : (attrs.systemUiVisibility | attrs.subtreeSystemUiVisibility); in getSystemUiVisibility()
71 if (sImmersiveStatusFilter != null && sImmersiveStatusFilter.matches(attrs)) { in getSystemUiVisibility()
74 if (attrs.isFullscreen()) { in getSystemUiVisibility()
80 if (sImmersiveNavigationFilter != null && sImmersiveNavigationFilter.matches(attrs)) { in getSystemUiVisibility()
83 if (attrs.isFullscreen()) { in getSystemUiVisibility()
92 static int getWindowFlags(WindowState win, LayoutParams attrs) { in getWindowFlags() argument
93 attrs = attrs != null ? attrs : win.getAttrs(); in getWindowFlags()
94 int flags = attrs.flags; in getWindowFlags()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayPolicyTests.java79 final WindowManager.LayoutParams attrs = win.mAttrs; in createOpaqueFullscreen() local
80 attrs.width = MATCH_PARENT; in createOpaqueFullscreen()
81 attrs.height = MATCH_PARENT; in createOpaqueFullscreen()
82 attrs.flags = in createOpaqueFullscreen()
84 attrs.format = PixelFormat.OPAQUE; in createOpaqueFullscreen()
85 attrs.systemUiVisibility = attrs.subtreeSystemUiVisibility = win.mSystemUiVisibility = in createOpaqueFullscreen()
92 final WindowManager.LayoutParams attrs = win.mAttrs; in createDimmingDialogWindow() local
93 attrs.width = WRAP_CONTENT; in createDimmingDialogWindow()
94 attrs.height = WRAP_CONTENT; in createDimmingDialogWindow()
95 attrs.flags = FLAG_DIM_BEHIND | (canBeImTarget ? 0 : FLAG_ALT_FOCUSABLE_IM); in createDimmingDialogWindow()
[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/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/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/layoutlib/bridge/src/android/view/
DBridgeInflater.java121 public View onCreateView(String name, AttributeSet attrs) throws ClassNotFoundException { in onCreateView() argument
122 View view = createViewFromCustomInflater(name, attrs); in onCreateView()
129 view = createView(name, prefix, attrs); in onCreateView()
142 view = super.onCreateView(name, attrs); in onCreateView()
150 view = loadCustomView(name, attrs); in onCreateView()
162 setupViewInContext(view, attrs); in onCreateView()
243 private View createViewFromCustomInflater(@NotNull String name, @NotNull AttributeSet attrs) { in createViewFromCustomInflater() argument
285 return mCustomInflater.apply(name, attrs); in createViewFromCustomInflater()
289 public View createViewFromTag(View parent, String name, Context context, AttributeSet attrs, in createViewFromTag() argument
295 name = attrs.getAttributeValue(null, "class"); in createViewFromTag()
[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/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.java60 public CheckBox(Context context, AttributeSet attrs) { in CheckBox() argument
61 this(context, attrs, com.android.internal.R.attr.checkboxStyle); in CheckBox()
64 public CheckBox(Context context, AttributeSet attrs, int defStyleAttr) { in CheckBox() argument
65 this(context, attrs, defStyleAttr, 0); in CheckBox()
68 public CheckBox(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in CheckBox() argument
69 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/
DAlphaOptimizedFrameLayout.java33 public AlphaOptimizedFrameLayout(Context context, AttributeSet attrs) { in AlphaOptimizedFrameLayout() argument
34 super(context, attrs); in AlphaOptimizedFrameLayout()
37 public AlphaOptimizedFrameLayout(Context context, AttributeSet attrs, int defStyleAttr) { in AlphaOptimizedFrameLayout() argument
38 super(context, attrs, defStyleAttr); in AlphaOptimizedFrameLayout()
41 public AlphaOptimizedFrameLayout(Context context, AttributeSet attrs, int defStyleAttr, in AlphaOptimizedFrameLayout() argument
43 super(context, attrs, defStyleAttr, defStyleRes); in AlphaOptimizedFrameLayout()
DAlphaOptimizedButton.java31 public AlphaOptimizedButton(Context context, AttributeSet attrs) { in AlphaOptimizedButton() argument
32 super(context, attrs); in AlphaOptimizedButton()
35 public AlphaOptimizedButton(Context context, AttributeSet attrs, int defStyleAttr) { in AlphaOptimizedButton() argument
36 super(context, attrs, defStyleAttr); in AlphaOptimizedButton()
39 public AlphaOptimizedButton(Context context, AttributeSet attrs, int defStyleAttr, in AlphaOptimizedButton() argument
41 super(context, attrs, defStyleAttr, defStyleRes); in AlphaOptimizedButton()
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()
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()
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()
/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>>...31