Searched refs:context (Results 276 - 300 of 2662) sorted by last modified time

<<11121314151617181920>>

/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DButtonBarLayout.java44 public ButtonBarLayout(Context context, AttributeSet attrs) { argument
45 super(context, attrs);
49 final TypedArray ta = context.obtainStyledAttributes(attrs, R.styleable.ButtonBarLayout);
H A DContentFrameLayout.java52 public ContentFrameLayout(Context context) { argument
53 this(context, null);
56 public ContentFrameLayout(Context context, AttributeSet attrs) { argument
57 this(context, attrs, 0);
60 public ContentFrameLayout(Context context, AttributeSet attrs, int defStyleAttr) { argument
61 super(context, attrs, defStyleAttr);
H A DDialogTitle.java35 public DialogTitle(Context context, AttributeSet attrs, int defStyleAttr) { argument
36 super(context, attrs, defStyleAttr);
39 public DialogTitle(Context context, AttributeSet attrs) { argument
40 super(context, attrs);
43 public DialogTitle(Context context) { argument
44 super(context);
H A DDropDownListView.java83 * @param context this view's context
85 public DropDownListView(Context context, boolean hijackFocus) { argument
86 super(context, null, R.attr.dropDownListViewStyle);
H A DFitWindowsFrameLayout.java31 public FitWindowsFrameLayout(Context context) { argument
32 super(context);
35 public FitWindowsFrameLayout(Context context, AttributeSet attrs) { argument
36 super(context, attrs);
H A DFitWindowsLinearLayout.java31 public FitWindowsLinearLayout(Context context) { argument
32 super(context);
35 public FitWindowsLinearLayout(Context context, AttributeSet attrs) { argument
36 super(context, attrs);
H A DLinearLayoutCompat.java139 public LinearLayoutCompat(Context context) { argument
140 this(context, null);
143 public LinearLayoutCompat(Context context, AttributeSet attrs) { argument
144 this(context, attrs, 0);
147 public LinearLayoutCompat(Context context, AttributeSet attrs, int defStyleAttr) { argument
148 super(context, attrs, defStyleAttr);
150 final TintTypedArray a = TintTypedArray.obtainStyledAttributes(context, attrs,
H A DListPopupWindow.java211 * @param context Context used for contained views.
213 public ListPopupWindow(@NonNull Context context) { argument
214 this(context, null, R.attr.listPopupWindowStyle);
221 * @param context Context used for contained views.
224 public ListPopupWindow(@NonNull Context context, @Nullable AttributeSet attrs) { argument
225 this(context, attrs, R.attr.listPopupWindowStyle);
232 * @param context Context used for contained views.
236 public ListPopupWindow(@NonNull Context context, @Nullable AttributeSet attrs, argument
238 this(context, attrs, defStyleAttr, 0);
245 * @param context Contex
250 ListPopupWindow(@onNull Context context, @Nullable AttributeSet attrs, @AttrRes int defStyleAttr, @StyleRes int defStyleRes) argument
912 createDropDownListView(Context context, boolean hijackFocus) argument
[all...]
H A DListViewCompat.java60 public ListViewCompat(Context context) { argument
61 this(context, null);
64 public ListViewCompat(Context context, AttributeSet attrs) { argument
65 this(context, attrs, 0);
68 public ListViewCompat(Context context, AttributeSet attrs, int defStyleAttr) { argument
69 super(context, attrs, defStyleAttr);
H A DMenuPopupWindow.java67 public MenuPopupWindow(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { argument
68 super(context, attrs, defStyleAttr, defStyleRes);
72 DropDownListView createDropDownListView(Context context, boolean hijackFocus) { argument
73 MenuDropDownListView view = new MenuDropDownListView(context, hijackFocus);
134 public MenuDropDownListView(Context context, boolean hijackFocus) { argument
135 super(context, hijackFocus);
137 final Resources res = context.getResources();
H A DPopupMenu.java57 * @param context Context the popup menu is running in, through which it
62 public PopupMenu(@NonNull Context context, @NonNull View anchor) { argument
63 this(context, anchor, Gravity.NO_GRAVITY);
70 * @param context Context the popup menu is running in, through which it
77 public PopupMenu(@NonNull Context context, @NonNull View anchor, int gravity) { argument
78 this(context, anchor, gravity, R.attr.popupMenuStyle, 0);
84 * @param context Context the popup menu is running in, through which it
98 public PopupMenu(@NonNull Context context, @NonNull View anchor, int gravity, argument
100 mContext = context;
103 mMenu = new MenuBuilder(context);
[all...]
H A DScrollingTabContainerView.java77 public ScrollingTabContainerView(Context context) { argument
78 super(context);
82 ActionBarPolicy abp = ActionBarPolicy.get(context);
386 public TabView(Context context, ActionBar.Tab tab, boolean forList) { argument
387 super(context, null, R.attr.actionBarTabStyle);
390 TintTypedArray a = TintTypedArray.obtainStyledAttributes(context, null, BG_ATTRS,
524 final Context context = getContext();
527 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels;
529 Toast cheatSheet = Toast.makeText(context, mTab.getContentDescription(),
H A DSearchView.java285 public SearchView(Context context) { argument
286 this(context, null);
289 public SearchView(Context context, AttributeSet attrs) { argument
290 this(context, attrs, R.attr.searchViewStyle);
293 public SearchView(Context context, AttributeSet attrs, int defStyleAttr) { argument
294 super(context, attrs, defStyleAttr);
298 final TintTypedArray a = TintTypedArray.obtainStyledAttributes(context,
301 final LayoutInflater inflater = LayoutInflater.from(context);
1751 static boolean isLandscapeMode(Context context) { argument
1752 return context
1876 SearchAutoComplete(Context context) argument
1880 SearchAutoComplete(Context context, AttributeSet attrs) argument
1884 SearchAutoComplete(Context context, AttributeSet attrs, int defStyle) argument
[all...]
H A DShareActionProvider.java192 * @param context Context for accessing resources.
194 public ShareActionProvider(Context context) { argument
195 super(context);
196 mContext = context;
H A DSuggestionsAdapter.java93 public SuggestionsAdapter(Context context, SearchView searchView, SearchableInfo searchable, argument
95 super(context, searchView.getSuggestionRowLayout(), null /* no initial cursor */,
103 mProviderContext = context;
243 public View newView(Context context, Cursor cursor, ViewGroup parent) { argument
244 final View v = super.newView(context, cursor, parent);
274 public void bindView(View view, Context context, Cursor cursor) { argument
472 * All resources and URIs are read using the suggestion provider's context.
H A DSwitchCompat.java177 * @param context The Context that will determine this widget's theming.
179 public SwitchCompat(Context context) { argument
180 this(context, null);
187 * @param context The Context that will determine this widget's theming.
190 public SwitchCompat(Context context, AttributeSet attrs) { argument
191 this(context, attrs, R.attr.switchStyle);
198 * @param context The Context that will determine this widget's theming.
204 public SwitchCompat(Context context, AttributeSet attrs, int defStyleAttr) { argument
205 super(context, attrs, defStyleAttr);
212 final TintTypedArray a = TintTypedArray.obtainStyledAttributes(context,
288 setSwitchTextAppearance(Context context, int resid) argument
[all...]
H A DThemeUtils.java61 public static int getThemeAttrColor(Context context, int attr) { argument
63 TintTypedArray a = TintTypedArray.obtainStyledAttributes(context, null, TEMP_ARRAY);
71 public static ColorStateList getThemeAttrColorStateList(Context context, int attr) { argument
73 TintTypedArray a = TintTypedArray.obtainStyledAttributes(context, null, TEMP_ARRAY);
81 public static int getDisabledThemeAttrColor(Context context, int attr) { argument
82 final ColorStateList csl = getThemeAttrColorStateList(context, attr);
91 context.getTheme().resolveAttribute(android.R.attr.disabledAlpha, tv, true);
94 return getThemeAttrColor(context, attr, disabledAlpha);
107 static int getThemeAttrColor(Context context, int attr, float alpha) { argument
108 final int color = getThemeAttrColor(context, att
[all...]
H A DThemedSpinnerAdapter.java47 * @param theme the context against which to inflate drop-down views, or
73 * public CheeseAdapter(Context context) {
74 * mDropDownHelper = new ThemedSpinnerAdapter.Helper(context);
110 public Helper(@NonNull Context context) { argument
111 mContext = context;
112 mInflater = LayoutInflater.from(context);
128 final Context context = new ContextThemeWrapper(mContext, theme);
129 mDropDownInflater = LayoutInflater.from(context);
H A DTintContextWrapper.java40 public static Context wrap(@NonNull final Context context) { argument
41 if (shouldWrap(context)) {
46 if (wrapper != null && wrapper.getBaseContext() == context) {
52 final TintContextWrapper wrapper = new TintContextWrapper(context);
57 return context;
60 private static boolean shouldWrap(@NonNull final Context context) { argument
61 if (context instanceof TintContextWrapper
62 || context.getResources() instanceof TintResources
63 || context.getResources() instanceof VectorEnabledTintResources) {
H A DTintResources.java33 public TintResources(@NonNull Context context, @NonNull final Resources res) { argument
35 mContextRef = new WeakReference<>(context);
46 Context context = mContextRef.get();
47 if (d != null && context != null) {
48 AppCompatDrawableManager.get().tintDrawableUsingColorFilter(context, id, d);
H A DTintTypedArray.java43 public static TintTypedArray obtainStyledAttributes(Context context, AttributeSet set, argument
45 return new TintTypedArray(context, context.obtainStyledAttributes(set, attrs));
48 public static TintTypedArray obtainStyledAttributes(Context context, AttributeSet set, argument
50 return new TintTypedArray(context,
51 context.obtainStyledAttributes(set, attrs, defStyleAttr, defStyleRes));
54 public static TintTypedArray obtainStyledAttributes(Context context, int resid, int[] attrs) { argument
55 return new TintTypedArray(context, context.obtainStyledAttributes(resid, attrs));
58 private TintTypedArray(Context context, TypedArra argument
[all...]
H A DToolbar.java84 * its signified content or otherwise leave the current context signified by the Toolbar.
224 public Toolbar(Context context) { argument
225 this(context, null);
228 public Toolbar(Context context, @Nullable AttributeSet attrs) { argument
229 this(context, attrs, R.attr.toolbarStyle);
232 public Toolbar(Context context, @Nullable AttributeSet attrs, int defStyleAttr) { argument
233 super(context, attrs, defStyleAttr);
235 // Need to use getContext() here so that we use the themed context
311 // Set the default context, since setPopupTheme() may be a no-op.
749 final Context context
831 setTitleTextAppearance(Context context, @StyleRes int resId) argument
842 setSubtitleTextAppearance(Context context, @StyleRes int resId) argument
2280 initForMenu(Context context, MenuBuilder menu) argument
[all...]
H A DViewStubCompat.java46 public ViewStubCompat(Context context, AttributeSet attrs) { argument
47 this(context, attrs, 0);
50 public ViewStubCompat(Context context, AttributeSet attrs, int defStyle) { argument
51 super(context, attrs, defStyle);
53 TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ViewStubCompat,
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
H A DAlertDialogTest.java108 final Context context = mActivityTestRule.getActivity();
109 final AlertDialog dialog = new AlertDialog.Builder(context, R.style.Theme_TextColors)
122 final Context context = mActivityTestRule.getActivity();
123 AlertDialog.Builder builder = new AlertDialog.Builder(context)
131 final String expectedTitle = context.getString(R.string.alert_dialog_title);
132 final String expectedMessage = context.getString(R.string.alert_dialog_content);
197 final Context context = mActivityTestRule.getActivity();
200 final String title = context.getString(R.string.alert_dialog_title);
201 final String expectedCustomTitle = context.getString(R.string.alert_dialog_custom_title);
202 final String expectedMessage = context
[all...]
/frameworks/support/v7/appcompat/tests/src/android/support/v7/custom/
H A DCustomDrawerLayout.java29 public CustomDrawerLayout(Context context) { argument
30 super(context);
33 public CustomDrawerLayout(Context context, AttributeSet attrs) { argument
34 super(context, attrs);
37 public CustomDrawerLayout(Context context, AttributeSet attrs, int defStyle) { argument
38 super(context, attrs, defStyle);

Completed in 6347 milliseconds

<<11121314151617181920>>