Searched refs:context (Results 101 - 125 of 3259) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/widget/
H A DResourceCursorTreeAdapter.java39 * @param context The context where the ListView associated with this
51 public ResourceCursorTreeAdapter(Context context, Cursor cursor, int collapsedGroupLayout, argument
53 super(cursor, context);
60 mInflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
66 * @param context The context where the ListView associated with this
76 public ResourceCursorTreeAdapter(Context context, Cursor cursor, int collapsedGroupLayout, argument
78 this(context, cursor, collapsedGroupLayout, expandedGroupLayout, childLayout, childLayout);
84 * @param context Th
92 ResourceCursorTreeAdapter(Context context, Cursor cursor, int groupLayout, int childLayout) argument
98 newChildView(Context context, Cursor cursor, boolean isLastChild, ViewGroup parent) argument
104 newGroupView(Context context, Cursor cursor, boolean isExpanded, ViewGroup parent) argument
[all...]
H A DTwoLineListItem.java48 public TwoLineListItem(Context context) { argument
49 this(context, null, 0);
52 public TwoLineListItem(Context context, AttributeSet attrs) { argument
53 this(context, attrs, 0);
56 public TwoLineListItem(Context context, AttributeSet attrs, int defStyleAttr) { argument
57 this(context, attrs, defStyleAttr, 0);
60 public TwoLineListItem(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { argument
61 super(context, attrs, defStyleAttr, defStyleRes);
63 final TypedArray a = context.obtainStyledAttributes(
H A DButton.java96 * @param context The Context the Button is running in, through which it can
101 public Button(Context context) { argument
102 this(context, null);
115 * @param context The Context the view is running in, through which it can
122 public Button(Context context, AttributeSet attrs) { argument
123 this(context, attrs, com.android.internal.R.attr.buttonStyle);
136 * @param context The Context the Button is running in, through which it can
146 public Button(Context context, AttributeSet attrs, int defStyleAttr) { argument
147 this(context, attrs, defStyleAttr, 0);
156 * @param context Th
171 Button(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) argument
[all...]
H A DImageButton.java73 public ImageButton(Context context) { argument
74 this(context, null);
77 public ImageButton(Context context, AttributeSet attrs) { argument
78 this(context, attrs, com.android.internal.R.attr.imageButtonStyle);
81 public ImageButton(Context context, AttributeSet attrs, int defStyleAttr) { argument
82 this(context, attrs, defStyleAttr, 0);
85 public ImageButton(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { argument
86 super(context, attrs, defStyleAttr, defStyleRes);
H A DSeekBar.java74 public SeekBar(Context context) { argument
75 this(context, null);
78 public SeekBar(Context context, AttributeSet attrs) { argument
79 this(context, attrs, com.android.internal.R.attr.seekBarStyle);
82 public SeekBar(Context context, AttributeSet attrs, int defStyleAttr) { argument
83 this(context, attrs, defStyleAttr, 0);
86 public SeekBar(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { argument
87 super(context, attrs, defStyleAttr, defStyleRes);
H A DSpace.java32 public Space(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { argument
33 super(context, attrs, defStyleAttr, defStyleRes);
42 public Space(Context context, AttributeSet attrs, int defStyleAttr) { argument
43 this(context, attrs, defStyleAttr, 0);
49 public Space(Context context, AttributeSet attrs) { argument
50 this(context, attrs, 0);
56 public Space(Context context) { argument
58 this(context, null);
H A DZoomButton.java53 public ZoomButton(Context context) { argument
54 this(context, null);
57 public ZoomButton(Context context, AttributeSet attrs) { argument
58 this(context, attrs, 0);
61 public ZoomButton(Context context, AttributeSet attrs, int defStyleAttr) { argument
62 this(context, attrs, defStyleAttr, 0);
65 public ZoomButton(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { argument
66 super(context, attrs, defStyleAttr, defStyleRes);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/grid/
H A DGridTaskView.java30 public GridTaskView(Context context) { argument
31 this(context, null);
34 public GridTaskView(Context context, AttributeSet attrs) { argument
35 this(context, attrs, 0);
38 public GridTaskView(Context context, AttributeSet attrs, int defStyleAttr) { argument
39 this(context, attrs, defStyleAttr, 0);
42 public GridTaskView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { argument
43 super(context, attrs, defStyleAttr, defStyleRes);
44 mHeaderHeight = context.getResources().getDimensionPixelSize(
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DAppCompatCheckedTextView.java39 public AppCompatCheckedTextView(Context context) { argument
40 this(context, null);
43 public AppCompatCheckedTextView(Context context, AttributeSet attrs) { argument
44 this(context, attrs, android.R.attr.checkedTextViewStyle);
47 public AppCompatCheckedTextView(Context context, AttributeSet attrs, int defStyleAttr) { argument
48 super(TintContextWrapper.wrap(context), attrs, defStyleAttr);
66 public void setTextAppearance(Context context, int resId) { argument
67 super.setTextAppearance(context, resId);
69 mTextHelper.onSetTextAppearance(context, resId);
/frameworks/support/v7/preference/src/android/support/v7/preference/
H A DPreferenceCategory.java40 Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
41 super(context, attrs, defStyleAttr, defStyleRes);
44 public PreferenceCategory(Context context, AttributeSet attrs, int defStyleAttr) { argument
45 this(context, attrs, defStyleAttr, 0);
48 public PreferenceCategory(Context context, AttributeSet attrs) { argument
49 this(context, attrs, TypedArrayUtils.getAttr(context, R.attr.preferenceCategoryStyle,
53 public PreferenceCategory(Context context) { argument
54 this(context, null);
39 PreferenceCategory( Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) argument
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DAppCompatViewInflater.java80 public final View createView(View parent, final String name, @NonNull Context context, argument
83 final Context originalContext = context;
86 // by using the parent's context
88 context = parent.getContext();
91 // We then apply the theme on the context, if specified
92 context = themifyContext(context, attrs, readAndroidTheme, readAppTheme);
95 context = TintContextWrapper.wrap(context);
103 view = new AppCompatTextView(context, attr
157 createViewFromTag(Context context, String name, AttributeSet attrs) argument
212 createView(Context context, String name, String prefix) argument
237 themifyContext(Context context, AttributeSet attrs, boolean useAndroidTheme, boolean useAppTheme) argument
299 resolveMethod(@ullable Context context, @NonNull String name) argument
[all...]
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
H A DCarrierActionUtils.java53 public static void applyCarrierAction(int actionIdx, Intent intent, Context context) { argument
56 onEnableAllMeteredApns(intent, context);
59 onDisableAllMeteredApns(intent, context);
62 onDisableRadio(intent, context);
65 onEnableRadio(intent, context);
68 onShowCaptivePortalNotification(intent, context);
71 onShowNoDataServiceNotification(context);
74 onCancelAllNotifications(context);
81 private static void onDisableAllMeteredApns(Intent intent, Context context) { argument
85 final TelephonyManager telephonyMgr = context
89 onEnableAllMeteredApns(Intent intent, Context context) argument
97 onDisableRadio(Intent intent, Context context) argument
105 onEnableRadio(Intent intent, Context context) argument
113 onShowCaptivePortalNotification(Intent intent, Context context) argument
131 onShowNoDataServiceNotification(Context context) argument
143 onCancelAllNotifications(Context context) argument
148 getNotification(Context context, int titleId, int textId, PendingIntent pendingIntent) argument
182 createNotificationChannels(Context context) argument
[all...]
/frameworks/base/core/java/com/android/internal/notification/
H A DSystemNotificationChannels.java51 public static void createAll(Context context) { argument
52 final NotificationManager nm = context.getSystemService(NotificationManager.class);
56 context.getString(R.string.notification_channel_virtual_keyboard),
61 context.getString(R.string.notification_channel_physical_keyboard),
69 context.getString(R.string.notification_channel_security),
74 context.getString(R.string.notification_channel_car_mode),
77 channelsList.add(newAccountChannel(context));
81 context.getString(R.string.notification_channel_developer),
86 context.getString(R.string.notification_channel_updates),
91 context
143 createAccountChannelForPackage(String pkg, int uid, Context context) argument
153 newAccountChannel(Context context) argument
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DFrameworkFacade.java46 public boolean setIntegerSetting(Context context, String name, int def) { argument
47 return Settings.Global.putInt(context.getContentResolver(), name, def);
50 public int getIntegerSetting(Context context, String name, int def) { argument
51 return Settings.Global.getInt(context.getContentResolver(), name, def);
54 public long getLongSetting(Context context, String name, long def) { argument
55 return Settings.Global.getLong(context.getContentResolver(), name, def);
58 public boolean setStringSetting(Context context, String name, String def) { argument
59 return Settings.Global.putString(context.getContentResolver(), name, def);
62 public String getStringSetting(Context context, String name) { argument
63 return Settings.Global.getString(context
75 registerContentObserver(Context context, Uri uri, boolean notifyForDescendants, ContentObserver contentObserver) argument
93 getBroadcast(Context context, int requestCode, Intent intent, int flags) argument
97 makeSupplicantStateTracker(Context context, WifiConfigManager configManager, Handler handler) argument
102 getConfigWiFiDisableInECBM(Context context) argument
119 makeApConfigStore(Context context, BackupManagerProxy backupManagerProxy) argument
132 makeIpManager( Context context, String iface, IpManager.Callback callback) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
H A DNotificationChannelController.java51 private static void createAll(Context context) { argument
54 context.getText(R.string.notification_channel_network_alert),
59 context.getSystemService(NotificationManager.class)
62 context.getText(R.string.notification_channel_call_forward),
65 context.getText(R.string.notification_channel_mobile_data_alert),
68 context.getText(R.string.notification_channel_sms),
71 context.getText(R.string.notification_channel_wfc),
75 if (getChannel(CHANNEL_ID_VOICE_MAIL, context) != null) {
76 migrateVoicemailNotificationSettings(context);
80 public NotificationChannelController(Context context) { argument
88 getChannel(String channelId, Context context) argument
101 migrateVoicemailNotificationSettings(Context context) argument
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DPlaybackControlsRow.java216 * @param context Context used for loading resources.
218 public PlayPauseAction(Context context) { argument
221 drawables[INDEX_PLAY] = getStyledDrawable(context,
223 drawables[INDEX_PAUSE] = getStyledDrawable(context,
228 labels[INDEX_PLAY] = context.getString(R.string.lb_playback_controls_play);
229 labels[INDEX_PAUSE] = context.getString(R.string.lb_playback_controls_pause);
243 * @param context Context used for loading resources.
245 public FastForwardAction(Context context) { argument
246 this(context, 1);
251 * @param context Contex
254 FastForwardAction(Context context, int numSpeeds) argument
292 RewindAction(Context context) argument
301 RewindAction(Context context, int numSpeeds) argument
339 SkipNextAction(Context context) argument
356 SkipPreviousAction(Context context) argument
373 PictureInPictureAction(Context context) argument
390 MoreActions(Context context) argument
429 ThumbsAction(int id, Context context, int solidIconIndex, int outlineIconIndex) argument
442 ThumbsUpAction(Context context) argument
458 ThumbsDownAction(Context context) argument
514 RepeatAction(Context context) argument
523 RepeatAction(Context context, int highlightColor) argument
533 RepeatAction(Context context, int repeatAllColor, int repeatOneColor) argument
590 ShuffleAction(Context context) argument
599 ShuffleAction(Context context, int highlightColor) argument
648 HighQualityAction(Context context) argument
657 HighQualityAction(Context context, int highlightColor) argument
709 ClosedCaptioningAction(Context context) argument
718 ClosedCaptioningAction(Context context, int highlightColor) argument
746 getIconHighlightColor(Context context) argument
755 getStyledDrawable(Context context, int index) argument
819 setImageBitmap(Context context, Bitmap bm) argument
[all...]
/frameworks/opt/telephony/src/java/com/google/android/mms/util/
H A DSqliteWrapper.java41 private static boolean isLowMemory(Context context) { argument
42 if (null == context) {
47 context.getSystemService(Context.ACTIVITY_SERVICE);
59 public static void checkSQLiteException(Context context, SQLiteException e) { argument
61 Toast.makeText(context, com.android.internal.R.string.low_memory,
68 public static Cursor query(Context context, ContentResolver resolver, Uri uri, argument
74 checkSQLiteException(context, e);
79 public static boolean requery(Context context, Cursor cursor) { argument
84 checkSQLiteException(context, e);
88 public static int update(Context context, ContentResolve argument
99 delete(Context context, ContentResolver resolver, Uri uri, String where, String[] selectionArgs) argument
110 insert(Context context, ContentResolver resolver, Uri uri, ContentValues values) argument
[all...]
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
H A DTestUtils.java34 public static void assertConnectionFails(SSLContext context, String host, int port) argument
37 Socket s = context.getSocketFactory().createSocket(host, port);
44 public static void assertConnectionSucceeds(SSLContext context, String host, int port) argument
46 Socket s = context.getSocketFactory().createSocket(host, port);
50 public static void assertUrlConnectionFails(SSLContext context, String host, int port) argument
54 connection.setSSLSocketFactory(context.getSocketFactory());
63 public static void assertUrlConnectionSucceeds(SSLContext context, String host, int port) argument
67 connection.setSSLSocketFactory(context.getSocketFactory());
76 SSLContext context = SSLContext.getInstance("TLS");
77 context
[all...]
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
H A DIntrinsicSizeFrameLayout.java41 public IntrinsicSizeFrameLayout(Context context) { argument
42 super(context);
43 init(context, null, 0);
46 public IntrinsicSizeFrameLayout(Context context, AttributeSet attrs) { argument
47 super(context, attrs);
48 init(context, attrs, 0);
52 public IntrinsicSizeFrameLayout(Context context, AttributeSet attrs, int defStyleAttr) { argument
53 super(context, attrs, defStyleAttr);
54 init(context, attrs, defStyleAttr);
57 private void init(Context context, AttributeSe argument
[all...]
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
H A DMediaRouteExpandCollapseButton.java41 public MediaRouteExpandCollapseButton(Context context) { argument
42 this(context, null);
45 public MediaRouteExpandCollapseButton(Context context, AttributeSet attrs) { argument
46 this(context, attrs, 0);
49 public MediaRouteExpandCollapseButton(Context context, AttributeSet attrs, int defStyleAttr) { argument
50 super(context, attrs, defStyleAttr);
52 context, R.drawable.mr_group_expand);
54 context, R.drawable.mr_group_collapse);
57 MediaRouterThemeHelper.getControllerColor(context, defStyleAttr),
62 mExpandGroupDescription = context
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/content/res/
H A DAppCompatResources.java59 * @param context context to inflate against
62 public static ColorStateList getColorStateList(@NonNull Context context, @ColorRes int resId) { argument
65 return context.getColorStateList(resId);
69 ColorStateList csl = getCachedColorStateList(context, resId);
74 csl = inflateColorStateList(context, resId);
77 addColorStateListToCache(context, resId, csl);
82 return ContextCompat.getColorStateList(context, resId);
91 * @param context context t
99 getDrawable(@onNull Context context, @DrawableRes int resId) argument
107 inflateColorStateList(Context context, int resId) argument
124 getCachedColorStateList(@onNull Context context, @ColorRes int resId) argument
144 addColorStateListToCache(@onNull Context context, @ColorRes int resId, @NonNull ColorStateList value) argument
157 isColorInt(@onNull Context context, @ColorRes int resId) argument
[all...]
/frameworks/base/core/java/android/preference/
H A DSeekBarDialogPreference.java35 Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
36 super(context, attrs, defStyleAttr, defStyleRes);
46 public SeekBarDialogPreference(Context context, AttributeSet attrs, int defStyleAttr) { argument
47 this(context, attrs, defStyleAttr, 0);
50 public SeekBarDialogPreference(Context context, AttributeSet attrs) { argument
51 this(context, attrs, R.attr.seekBarDialogPreferenceStyle);
54 public SeekBarDialogPreference(Context context) { argument
55 this(context, null);
34 SeekBarDialogPreference( Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) argument
/frameworks/base/core/java/com/android/internal/util/
H A DEmergencyAffordanceManager.java46 public EmergencyAffordanceManager(Context context) { argument
47 mContext = context;
57 private static Uri getPhoneUri(Context context) { argument
58 String number = context.getResources().getString(
62 context.getContentResolver(), EMERGENCY_CALL_NUMBER_SETTING);
70 private static void performEmergencyCall(Context context) { argument
72 intent.setData(getPhoneUri(context));
74 context.startActivityAsUser(intent, UserHandle.CURRENT);
/frameworks/base/core/java/com/android/internal/widget/
H A DDialogTitle.java32 public DialogTitle(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { argument
33 super(context, attrs, defStyleAttr, defStyleRes);
36 public DialogTitle(Context context, AttributeSet attrs, int defStyleAttr) { argument
37 super(context, attrs, defStyleAttr);
40 public DialogTitle(Context context, AttributeSet attrs) { argument
41 super(context, attrs);
44 public DialogTitle(Context context) { argument
45 super(context);
H A DPreferenceImageView.java28 public PreferenceImageView(Context context) { argument
29 this(context, null);
32 public PreferenceImageView(Context context, AttributeSet attrs) { argument
33 this(context, attrs, 0);
36 public PreferenceImageView(Context context, AttributeSet attrs, int defStyleAttr) { argument
37 this(context, attrs, defStyleAttr, 0);
40 public PreferenceImageView(Context context, AttributeSet attrs, int defStyleAttr, argument
42 super(context, attrs, defStyleAttr, defStyleRes);

Completed in 966 milliseconds

1234567891011>>