Searched refs:context (Results 51 - 75 of 3259) sorted by path

1234567891011>>

/frameworks/base/core/java/android/app/
H A DAppOpsManager.java1349 AppOpsManager(Context context, IAppOpsService service) { argument
1350 mContext = context;
H A DApplication.java41 * context (for example to register broadcast receivers), include
74 * {@link Intent#ACTION_ASSIST} Intent with all of the context of the current
188 /* package */ final void attach(Context context) { argument
189 attachBaseContext(context);
190 mLoadedApk = ContextImpl.getImpl(context).mPackageInfo;
H A DApplicationErrorReport.java160 public static ComponentName getErrorReportReceiver(Context context, argument
163 int enabled = Settings.Global.getInt(context.getContentResolver(),
169 PackageManager pm = context.getPackageManager();
H A DApplicationPackageManager.java1458 protected ApplicationPackageManager(ContextImpl context, argument
1460 mContext = context;
1950 protected boolean isForceAllowOnExternal(Context context) { argument
1952 context.getContentResolver(), Settings.Global.FORCE_ALLOW_ON_EXTERNAL, 0) != 0;
1956 protected boolean isAllow3rdPartyOnInternal(Context context) { argument
1957 return context.getResources().getBoolean(
1962 ContextImpl context, ApplicationInfo app, VolumeInfo vol, IPackageManager pm) {
1963 final boolean forceAllowOnExternal = isForceAllowOnExternal(context);
1966 return app.isSystemApp() || isAllow3rdPartyOnInternal(context);
1961 isPackageCandidateVolume( ContextImpl context, ApplicationInfo app, VolumeInfo vol, IPackageManager pm) argument
H A DContextImpl.java140 * context object for Activity and other application components.
207 static ContextImpl getImpl(Context context) { argument
209 while ((context instanceof ContextWrapper) &&
210 (nextContext=((ContextWrapper)context).getBaseContext()) != null) {
211 context = nextContext;
213 return (ContextImpl)context;
328 throw new RuntimeException("Not supported in system context");
336 throw new RuntimeException("Not supported in system context");
344 throw new RuntimeException("Not supported in system context");
859 + " context require
1396 registerReceiverInternal(BroadcastReceiver receiver, int userId, IntentFilter filter, String broadcastPermission, Handler scheduler, Context context, int flags) argument
2376 setOuterContext(Context context) argument
2470 ApplicationContentResolver( Context context, ActivityThread mainThread, UserHandle user) argument
2478 acquireProvider(Context context, String auth) argument
2485 acquireExistingProvider(Context context, String auth) argument
[all...]
H A DDatePickerDialog.java56 * context's default date picker dialog theme.
58 * @param context the parent context
60 public DatePickerDialog(@NonNull Context context) { argument
61 this(context, 0, null, Calendar.getInstance(), -1, -1, -1);
67 * @param context the parent context
70 * {@code context}'s default alert dialog theme
72 public DatePickerDialog(@NonNull Context context, @StyleRes int themeResId) { argument
73 this(context, themeResI
88 DatePickerDialog(@onNull Context context, @Nullable OnDateSetListener listener, int year, int month, int dayOfMonth) argument
107 DatePickerDialog(@onNull Context context, @StyleRes int themeResId, @Nullable OnDateSetListener listener, int year, int monthOfYear, int dayOfMonth) argument
112 DatePickerDialog(@onNull Context context, @StyleRes int themeResId, @Nullable OnDateSetListener listener, @Nullable Calendar calendar, int year, int monthOfYear, int dayOfMonth) argument
139 resolveDialogTheme(@onNull Context context, @StyleRes int themeResId) argument
[all...]
H A DDialog.java142 * The supplied {@code context} is used to obtain the window manager and
145 * @param context the context in which the dialog should run
148 public Dialog(@NonNull Context context) { argument
149 this(context, 0, true);
155 * The supplied {@code context} is used to obtain the window manager and
158 * The supplied {@code theme} is applied on top of the context's theme. See
163 * @param context the context in which the dialog should run
167 public Dialog(@NonNull Context context, argument
171 Dialog(@onNull Context context, @StyleRes int themeResId, boolean createContextThemeWrapper) argument
205 Dialog(@onNull Context context, boolean cancelable, @Nullable Message cancelCallback) argument
213 Dialog(@onNull Context context, boolean cancelable, @Nullable OnCancelListener cancelListener) argument
[all...]
H A DDialogFragment.java364 public void onAttach(Context context) { argument
365 super.onAttach(context);
H A DDownloadManager.java502 * @param context the {@link Context} to use in determining the external
512 public Request setDestinationInExternalFilesDir(Context context, String dirType, argument
514 final File file = context.getExternalFilesDir(dirType);
1004 public DownloadManager(Context context) { argument
1005 mResolver = context.getContentResolver();
1006 mPackageName = context.getPackageName();
1010 mAccessFilename = context.getApplicationInfo().targetSdkVersion < Build.VERSION_CODES.N;
1206 * @param context the {@link Context} to use for accessing the {@link ContentResolver}
1210 public static Long getMaxBytesOverMobile(Context context) { argument
1212 return Settings.Global.getLong(context
1228 rename(Context context, long id, String displayName) argument
1306 getRecommendedMaxBytesOverMobile(Context context) argument
1316 isActiveNetworkExpensive(Context context) argument
1322 getActiveNetworkWarningBytes(Context context) argument
[all...]
H A DFragment.java109 final Context context = host.getContext();
111 mArguments.setClassLoader(context.getClassLoader());
115 mInstance = container.instantiate(context, mClassName, mArguments);
117 mInstance = Fragment.instantiate(context, mClassName, mArguments);
121 mSavedFragmentState.setClassLoader(context.getClassLoader());
584 * its context. Some applications may also want to implement {@link #onInflate} to retrieve
594 public static Fragment instantiate(Context context, String fname) { argument
595 return instantiate(context, fname, null);
602 * @param context The calling context bein
612 instantiate(Context context, String fname, @Nullable Bundle args) argument
1486 onInflate(Context context, AttributeSet attrs, Bundle savedInstanceState) argument
1563 onAttach(Context context) argument
2917 loadTransition(Context context, TypedArray typedArray, Transition currentValue, Transition defaultValue, int id) argument
[all...]
H A DFragmentBreadCrumbs.java84 public FragmentBreadCrumbs(Context context) { argument
85 this(context, null);
88 public FragmentBreadCrumbs(Context context, AttributeSet attrs) { argument
89 this(context, attrs, com.android.internal.R.attr.fragmentBreadCrumbsStyle);
92 public FragmentBreadCrumbs(Context context, AttributeSet attrs, int defStyleAttr) { argument
93 this(context, attrs, defStyleAttr, 0);
100 Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
101 super(context, attrs, defStyleAttr, defStyleRes);
103 final TypedArray a = context.obtainStyledAttributes(attrs,
99 FragmentBreadCrumbs( Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) argument
H A DFragmentContainer.java48 public Fragment instantiate(Context context, String className, Bundle arguments) { argument
49 return Fragment.instantiate(context, className, arguments);
H A DFragmentController.java92 * @param context The context the view is being created in.
97 public View onCreateView(View parent, String name, Context context, AttributeSet attrs) { argument
98 return mHost.mFragmentManager.onCreateView(parent, name, context, attrs);
371 * Sends a context item selection event to the Fragments managed by the
376 * @return {@code true} if the context menu selection event was consumed
H A DFragmentHostCallback.java57 public FragmentHostCallback(Context context, Handler handler, int windowAnimations) { argument
58 this((context instanceof Activity) ? (Activity)context : null, context,
59 chooseHandler(context, handler), windowAnimations);
63 this(activity, activity /*context*/, activity.mHandler, 0 /*windowAnimations*/);
66 FragmentHostCallback(Activity activity, Context context, Handler handler, argument
69 mContext = context;
78 private static Handler chooseHandler(Context context, Handler handler) { argument
79 if (handler == null && context instanceo
[all...]
H A DFragmentManager.java440 * @param context Context that the Fragment is being attached to
442 public void onFragmentPreAttached(FragmentManager fm, Fragment f, Context context) {} argument
450 * @param context Context that the Fragment was attached to
452 public void onFragmentAttached(FragmentManager fm, Fragment f, Context context) {} argument
2961 Context context = mHost.getContext();
2962 if (context != null) {
2963 ApplicationInfo info = context.getApplicationInfo();
3261 void dispatchOnFragmentPreAttached(Fragment f, Context context, boolean onlyRecursive) { argument
3266 .dispatchOnFragmentPreAttached(f, context, true);
3274 p.first.onFragmentPreAttached(this, f, context);
3279 dispatchOnFragmentAttached(Fragment f, Context context, boolean onlyRecursive) argument
3565 onCreateView(View parent, String name, Context context, AttributeSet attrs) argument
3656 onCreateView(String name, Context context, AttributeSet attrs) argument
[all...]
H A DInstrumentation.java121 // Check if we have an instrumentation context, as init should only get called by
279 * @return The instrumentation's package context.
885 * Show the context menu for the currently focused view and executes a
886 * particular context menu item.
889 * @param id The identifier associated with the context menu item.
897 // Bring up context menu for current focus.
916 // Wait for context menu to appear
1079 * @param context The context to initialize the application with
1083 public Application newApplication(ClassLoader cl, String className, Context context) argument
1098 newApplication(Class<?> clazz, Context context) argument
1142 newActivity(Class<?> clazz, Context context, IBinder token, Application application, Intent intent, ActivityInfo info, CharSequence title, Activity parent, String id, Object lastNonConfigurationInstance) argument
[all...]
H A DKeyguardManager.java241 KeyguardManager(Context context) throws ServiceNotFoundException { argument
242 mContext = context;
H A DLoadedApk.java763 * the Java context ClassLoader to the
765 * contain multiple packages, we intead set the Java context
767 * context ClassLoaders and then fall through to use the
772 * context class loaders are typically set to the
776 * their own logical ClassLoaders while the Java context
779 * context ClassLoader to an arbitrary but instead warn the
834 "specify a context class loader. For example: " +
1042 public void removeContextRegistrations(Context context, argument
1047 mReceivers.remove(context);
1069 mUnregisteredReceivers.remove(context);
1101 getReceiverDispatcher(BroadcastReceiver r, Context context, Handler handler, Instrumentation instrumentation, boolean registered) argument
1131 forgetReceiverDispatcher(Context context, BroadcastReceiver r) argument
1319 ReceiverDispatcher(BroadcastReceiver receiver, Context context, Handler activityThread, Instrumentation instrumentation, boolean registered) argument
1336 validate(Context context, Handler activityThread) argument
1396 getServiceDispatcher(ServiceConnection c, Context context, Handler handler, int flags) argument
1420 forgetServiceDispatcher(Context context, ServiceConnection c) argument
1507 ServiceDispatcher(ServiceConnection conn, Context context, Handler activityThread, int flags) argument
1518 validate(Context context, Handler activityThread) argument
[all...]
H A DMediaRouteActionProvider.java56 public MediaRouteActionProvider(Context context) { argument
57 super(context);
59 mContext = context;
60 mRouter = (MediaRouter) context.getSystemService(Context.MEDIA_ROUTER_SERVICE);
H A DMediaRouteButton.java62 public MediaRouteButton(Context context) { argument
63 this(context, null);
66 public MediaRouteButton(Context context, AttributeSet attrs) { argument
67 this(context, attrs, com.android.internal.R.attr.mediaRouteButtonStyle);
70 public MediaRouteButton(Context context, AttributeSet attrs, int defStyleAttr) { argument
71 this(context, attrs, defStyleAttr, 0);
75 Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
76 super(context, attrs, defStyleAttr, defStyleRes);
78 mRouter = (MediaRouter)context.getSystemService(Context.MEDIA_ROUTER_SERVICE);
81 final TypedArray a = context
74 MediaRouteButton( Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) argument
[all...]
H A DNativeActivity.java113 public NativeContentView(Context context) { argument
114 super(context);
117 public NativeContentView(Context context, AttributeSet attrs) { argument
118 super(context, attrs);
H A DNotification.java672 * can be read even in an "insecure" context (that is, above a secure lockscreen).
1790 * in an insecure context such as atop a secure keyguard. See {@link #visibility}
1809 public Notification(Context context, int icon, CharSequence tickerText, long when, argument
1812 new Builder(context)
1818 .setContentIntent(PendingIntent.getActivity(context, 0, contentIntent, 0))
2375 * @param context The context for your application / activity.
2389 public void setLatestEventInfo(Context context, argument
2391 if (context.getApplicationInfo().targetSdkVersion > Build.VERSION_CODES.LOLLIPOP_MR1){
2396 if (context
2418 addFieldsFromContext(Context context, Notification notification) argument
2762 Builder(Context context, String channelId) argument
2772 Builder(Context context) argument
2779 Builder(Context context, Notification toAdopt) argument
4828 recoverBuilder(Context context, Notification n) argument
[all...]
H A DNotificationManager.java251 /*package*/ NotificationManager(Context context, Handler handler) argument
253 mContext = context;
257 public static NotificationManager from(Context context) { argument
258 return (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
H A DPendingIntent.java278 * Note that the activity will be started outside of the context of an
287 * @param context The Context in which this PendingIntent should start
301 public static PendingIntent getActivity(Context context, int requestCode, argument
303 return getActivity(context, requestCode, intent, flags, null);
309 * Note that the activity will be started outside of the context of an
318 * @param context The Context in which this PendingIntent should start
334 public static PendingIntent getActivity(Context context, int requestCode, argument
336 String packageName = context.getPackageName();
338 context.getContentResolver()) : null;
341 intent.prepareToLeaveProcess(context);
359 getActivityAsUser(Context context, int requestCode, @NonNull Intent intent, int flags, Bundle options, UserHandle user) argument
424 getActivities(Context context, int requestCode, @NonNull Intent[] intents, @Flags int flags) argument
474 getActivities(Context context, int requestCode, @NonNull Intent[] intents, @Flags int flags, @Nullable Bundle options) argument
500 getActivitiesAsUser(Context context, int requestCode, @NonNull Intent[] intents, int flags, Bundle options, UserHandle user) argument
544 getBroadcast(Context context, int requestCode, Intent intent, @Flags int flags) argument
555 getBroadcastAsUser(Context context, int requestCode, Intent intent, int flags, UserHandle userHandle) argument
598 getService(Context context, int requestCode, @NonNull Intent intent, @Flags int flags) argument
628 getForegroundService(Context context, int requestCode, @NonNull Intent intent, @Flags int flags) argument
634 buildServicePendingIntent(Context context, int requestCode, Intent intent, int flags, int serviceKind) argument
716 send(Context context, int code, @Nullable Intent intent) argument
775 send(Context context, int code, @Nullable Intent intent, @Nullable OnFinished onFinished, @Nullable Handler handler) argument
818 send(Context context, int code, @Nullable Intent intent, @Nullable OnFinished onFinished, @Nullable Handler handler, @Nullable String requiredPermission) argument
865 send(Context context, int code, @Nullable Intent intent, @Nullable OnFinished onFinished, @Nullable Handler handler, @Nullable String requiredPermission, @Nullable Bundle options) argument
[all...]
H A DProgressDialog.java87 * @param context the parent context
89 public ProgressDialog(Context context) { argument
90 super(context);
97 * @param context the parent context
100 * {@code context}'s default alert dialog theme
102 public ProgressDialog(Context context, int theme) { argument
103 super(context, theme);
116 * @param context th
121 show(Context context, CharSequence title, CharSequence message) argument
136 show(Context context, CharSequence title, CharSequence message, boolean indeterminate) argument
153 show(Context context, CharSequence title, CharSequence message, boolean indeterminate, boolean cancelable) argument
172 show(Context context, CharSequence title, CharSequence message, boolean indeterminate, boolean cancelable, OnCancelListener cancelListener) argument
[all...]

Completed in 199 milliseconds

1234567891011>>