Searched refs:context (Results 126 - 150 of 3259) sorted by path

1234567891011>>

/frameworks/base/core/java/android/bluetooth/
H A DBluetoothSap.java125 /*package*/ BluetoothSap(Context context, ServiceListener l) { argument
127 mContext = context;
/frameworks/base/core/java/android/companion/
H A DCompanionDeviceManager.java98 @Nullable ICompanionDeviceManager service, @NonNull Context context) {
100 mContext = context;
97 CompanionDeviceManager( @ullable ICompanionDeviceManager service, @NonNull Context context) argument
/frameworks/base/core/java/android/content/
H A DAbstractThreadedSyncAdapter.java118 * @param context the {@link android.content.Context} that this is running within.
125 public AbstractThreadedSyncAdapter(Context context, boolean autoInitialize) { argument
126 this(context, autoInitialize, false /* allowParallelSyncs */);
131 * @param context the {@link android.content.Context} that this is running within.
141 public AbstractThreadedSyncAdapter(Context context, argument
143 mContext = context;
H A DAsyncTaskLoader.java136 public AsyncTaskLoader(Context context) { argument
137 this(context, AsyncTask.THREAD_POOL_EXECUTOR);
141 public AsyncTaskLoader(Context context, Executor executor) { argument
142 super(context);
H A DBroadcastReceiver.java324 * @param context The Context in which the receiver is running.
327 public abstract void onReceive(Context context, Intent intent); argument
H A DClipData.java123 * object that any recipient can interpret best for their context. If the clip
323 * @param context The caller's Context, from which its ContentResolver
328 public CharSequence coerceToText(Context context) { argument
345 AssetFileDescriptor descr = context.getContentResolver()
407 * @param context The caller's Context, from which its ContentResolver
411 public CharSequence coerceToStyledText(Context context) { argument
431 return coerceToHtmlOrStyledText(context, true);
457 * @param context The caller's Context, from which its ContentResolver
461 public String coerceToHtmlText(Context context) { argument
477 text = coerceToHtmlOrStyledText(context, fals
481 coerceToHtmlOrStyledText(Context context, boolean styled) argument
[all...]
H A DClipboardManager.java90 public ClipboardManager(Context context, Handler handler) throws ServiceNotFoundException { argument
91 mContext = context;
H A DContentProvider.java149 * @param context A Context object which should be some mock instance (like the
160 Context context,
164 mContext = context;
530 boolean checkUser(int pid, int uid, Context context) { argument
531 return UserHandle.getUserId(uid) == context.getUserId()
533 || context.checkPermission(INTERACT_ACROSS_USERS, pid, uid)
559 final Context context = getContext();
569 if (mExported && checkUser(pid, uid, context)) {
614 if (context.checkUriPermission(userUri, pid, uid, Intent.FLAG_GRANT_READ_URI_PERMISSION,
641 final Context context
159 ContentProvider( Context context, String readPermission, String writePermission, PathPermission[] pathPermissions) argument
1882 attachInfoForTesting(Context context, ProviderInfo info) argument
1893 attachInfo(Context context, ProviderInfo info) argument
1897 attachInfo(Context context, ProviderInfo info, boolean testing) argument
[all...]
H A DContentResolver.java515 public ContentResolver(Context context) { argument
516 mContext = context != null ? context : ActivityThread.currentApplication();
H A DCursorLoader.java122 public CursorLoader(Context context) { argument
123 super(context);
133 public CursorLoader(Context context, Uri uri, String[] projection, String selection, argument
135 super(context);
H A DIntent.java831 * Creates a new ShortcutIconResource for the specified context and resource
834 * @param context The context of the application.
836 * @return A new ShortcutIconResource with the specified's context package name
839 public static ShortcutIconResource fromContext(Context context, @AnyRes int resourceId) { argument
841 icon.packageName = context.getPackageName();
842 icon.resourceName = context.getResources().getResourceName(resourceId);
6729 public @Nullable String resolveType(@NonNull Context context) { argument
6730 return resolveType(context.getContentResolver());
8792 * <code>setClassName(context, cl
9717 prepareToLeaveProcess(Context context) argument
[all...]
H A DIntentSender.java137 * @param context The Context of the caller. This may be null if
153 public void sendIntent(Context context, int code, Intent intent, argument
155 sendIntent(context, code, intent, onFinished, handler, null);
163 * @param context The Context of the caller. This may be null if
184 public void sendIntent(Context context, int code, Intent intent, argument
189 intent.resolveTypeIfNeeded(context.getContentResolver())
H A DLoader.java122 * Stores away the application context associated with context.
124 * store the context directly; always use {@link #getContext()} to retrieve
129 * @param context used to retrieve the application context.
131 public Loader(Context context) { argument
132 mContext = context.getApplicationContext();
161 * @return an application context retrieved from the Context passed to the constructor.
H A DRestrictionEntry.java350 * @param context the application context for retrieving the resources.
354 public void setChoiceValues(Context context, @ArrayRes int stringArrayResId) { argument
355 mChoiceValues = context.getResources().getStringArray(stringArrayResId);
397 * @param context the application context, used for retrieving the resources.
400 public void setChoiceEntries(Context context, @ArrayRes int stringArrayResId) { argument
401 mChoiceEntries = context.getResources().getStringArray(stringArrayResId);
H A DRestrictionsManager.java410 public RestrictionsManager(Context context, IRestrictionsManager service) { argument
411 mContext = context;
H A DSearchRecentSuggestionsProvider.java131 public DatabaseHelper(Context context, int newVersion) { argument
132 super(context, sDatabaseName, null, newVersion);
H A DSyncAdaptersCache.java53 public SyncAdaptersCache(Context context) { argument
54 super(context, SERVICE_INTERFACE, SERVICE_META_DATA, ATTRIBUTES_NAME, sSerializer);
/frameworks/base/core/java/android/content/pm/
H A DApplicationInfo.java707 * construct. This value is useful in setting an SELinux security context on
985 public static CharSequence getCategoryTitle(Context context, @Category int category) { argument
988 return context.getText(com.android.internal.R.string.app_category_game);
990 return context.getText(com.android.internal.R.string.app_category_audio);
992 return context.getText(com.android.internal.R.string.app_category_video);
994 return context.getText(com.android.internal.R.string.app_category_image);
996 return context.getText(com.android.internal.R.string.app_category_social);
998 return context.getText(com.android.internal.R.string.app_category_news);
1000 return context.getText(com.android.internal.R.string.app_category_maps);
1002 return context
[all...]
H A DLauncherActivityInfo.java45 * @param context The context for fetching resources.
49 LauncherActivityInfo(Context context, ActivityInfo info, UserHandle user) { argument
50 this(context);
56 LauncherActivityInfo(Context context) { argument
57 mPm = context.getPackageManager();
H A DLauncherApps.java398 public LauncherApps(Context context, ILauncherApps service) { argument
399 mContext = context;
401 mPm = context.getPackageManager();
402 mUserManager = context.getSystemService(UserManager.class);
407 public LauncherApps(Context context) { argument
408 this(context, ILauncherApps.Stub.asInterface(
1378 public AppWidgetProviderInfo getAppWidgetProviderInfo(Context context) { argument
1384 info.updateDimensions(context.getResources().getDisplayMetrics());
H A DRegisteredServicesCache.java144 public RegisteredServicesCache(Context context, String interfaceName, String metaDataName, argument
146 mContext = context;
206 public void onReceive(Context context, Intent intent) {
216 public void onReceive(Context context, Intent intent) {
224 public void onReceive(Context context, Intent intent) {
H A DShortcutInfo.java762 public Builder(Context context) { argument
763 mContext = context;
780 * @param context Client context.
783 public Builder(Context context, String id) { argument
784 mContext = context;
H A DShortcutManager.java266 * .setIcon(Icon.createWithResource(context, R.drawable.icon_website))
301 * context.getSystemService(ShortcutManager.class);
320 * Intent pinnedShortcutCallbackIntent = new Intent(context, MyReceiver.class);
324 * PendingIntent successCallback = PendingIntent.createBroadcast(context, 0,
592 public ShortcutManager(Context context, IShortcutService service) { argument
593 mContext = context;
601 public ShortcutManager(Context context) { argument
602 this(context, IShortcutService.Stub.asInterface(
/frameworks/base/core/java/android/content/pm/permission/
H A DRuntimePermissionPresenter.java87 * @param context Context for accessing resources.
90 public static RuntimePermissionPresenter getInstance(@NonNull Context context) { argument
93 sInstance = new RuntimePermissionPresenter(context.getApplicationContext());
99 private RuntimePermissionPresenter(Context context) { argument
100 mRemoteService = new RemoteService(context);
142 public RemoteService(Context context) { argument
143 super(context.getMainLooper(), null, false);
144 mContext = context;
/frameworks/base/core/java/android/content/res/
H A DCompatResources.java40 public void setContext(Context context) { argument
41 mContext = new WeakReference<>(context);

Completed in 198 milliseconds

1234567891011>>