/frameworks/base/core/java/android/app/ |
H A D | RecoverableSecurityException.java | 116 public void showAsNotification(Context context) { argument 117 final NotificationManager nm = context.getSystemService(NotificationManager.class); 125 showAsNotification(context, channelId); 146 public void showAsNotification(Context context, String channelId) { argument 147 final NotificationManager nm = context.getSystemService(NotificationManager.class); 148 final Notification.Builder builder = new Notification.Builder(context, channelId)
|
H A D | SearchDialog.java | 105 public void onReceive(Context context, Intent intent) { 112 static int resolveDialogTheme(Context context) { argument 114 context.getTheme().resolveAttribute(com.android.internal.R.attr.searchDialogTheme, 122 * @param context Application Context we can use for system acess 124 public SearchDialog(Context context, SearchManager searchManager) { argument 125 super(context, resolveDialogTheme(context)); 376 static boolean isLandscapeMode(Context context) { argument 377 return context.getResources().getConfiguration().orientation 618 public SearchBar(Context context, AttributeSe argument 622 SearchBar(Context context) argument [all...] |
H A D | SearchManager.java | 518 * This means that context is voice, and therefore the SearchDialog should 548 /*package*/ SearchManager(Context context, Handler handler) throws ServiceNotFoundException { argument 549 mContext = context; 584 * context here, in order to improve quality or specificity of its own 726 * context here, in order to improve quality or specificity of its own
|
H A D | SearchableInfo.java | 246 * Get the context for the searchable activity. 248 * @param context You need to supply a context to start with 249 * @return Returns a context related to the searchable activity 252 public Context getActivityContext(Context context) { argument 253 return createActivityContext(context, mSearchActivity); 257 * Creates a context for another activity. 259 private static Context createActivityContext(Context context, ComponentName activity) { argument 262 theirContext = context.createPackageContext(activity.getPackageName(), 0); 266 Log.e(LOG_TAG, "Can't make context fo 281 getProviderContext(Context context, Context activityContext) argument 517 getActivityMetaData(Context context, ActivityInfo activityInfo, int userId) argument 564 getActivityMetaData(Context context, XmlPullParser xml, final ComponentName cName) argument [all...] |
H A D | Service.java | 758 Context context, 761 attachBaseContext(context); 757 attach( Context context, ActivityThread thread, String className, IBinder token, Application application, Object activityManager) argument
|
H A D | SharedElementCallback.java | 210 * @param context The Context used to create the snapshot View. 217 public View onCreateSnapshotView(Context context, Parcelable snapshot) { argument 225 ImageView imageView = new ImageView(context); 238 view = new View(context); 239 Resources resources = context.getResources();
|
H A D | StatusBarManager.java | 102 StatusBarManager(Context context) { argument 103 mContext = context;
|
H A D | SystemServiceRegistry.java | 261 public ConnectivityManager createService(Context context) throws ServiceNotFoundException { 264 return new ConnectivityManager(context, service); 876 * Gets a system service from a given context. 891 * Statically registers a system service with the context. 910 * ContextImpl and should be cached and retained by that context. 967 * creating the service for the first time, passes it the application context of the creating 981 // If the application context is null, we're either in the system process or 982 // it's the application context very early in app initialization. In both these
|
H A D | TaskStackBuilder.java | 75 * @param context The context that will launch the new task stack or generate a PendingIntent 78 public static TaskStackBuilder create(Context context) { argument 79 return new TaskStackBuilder(context);
|
H A D | TimePickerDialog.java | 72 * @param context the parent context 78 public TimePickerDialog(Context context, OnTimeSetListener listener, int hourOfDay, int minute, argument 80 this(context, 0, listener, hourOfDay, minute, is24HourView); 83 static int resolveDialogTheme(Context context, int resId) { argument 86 context.getTheme().resolveAttribute(R.attr.timePickerDialogTheme, outValue, true); 96 * The theme is overlaid on top of the theme of the parent {@code context}. 100 * attribute on the parent {@code context}'s theme. 102 * @param context the parent context 109 TimePickerDialog(Context context, int themeResId, OnTimeSetListener listener, int hourOfDay, int minute, boolean is24HourView) argument [all...] |
H A D | VoiceInteractor.java | 323 * include context information about how the action will be completed 884 VoiceInteractor(IVoiceInteractor interactor, Context context, Activity activity, argument 887 mContext = context; 889 mHandlerCaller = new HandlerCaller(context, looper, mHandlerCallerCallback, true);
|
H A D | WallpaperInfo.java | 83 * @param context The Context in which we are parsing the wallpaper. 87 public WallpaperInfo(Context context, ResolveInfo service) argument 92 PackageManager pm = context.getPackageManager(); 151 "Unable to create context for: " + si.packageName); 276 * Returns an URI that specifies a link for further context about this wallpaper. 298 * Retrieves a title of the URI that specifies a link for further context about this wallpaper.
|
H A D | WallpaperManager.java | 295 public Bitmap peekWallpaperBitmap(Context context, boolean returnDefault, argument 297 return peekWallpaperBitmap(context, returnDefault, which, context.getUserId()); 300 public Bitmap peekWallpaperBitmap(Context context, boolean returnDefault, argument 304 if (!mService.isWallpaperSupported(context.getOpPackageName())) { 330 defaultWallpaper = getDefaultWallpaper(context, which); 375 private Bitmap getDefaultWallpaper(Context context, @SetWallpaperFlags int which) { argument 376 InputStream is = openDefaultWallpaper(context, which); 402 /*package*/ WallpaperManager(Context context, Handler handler) { argument 403 mContext = context; 410 getInstance(Context context) argument 1622 openDefaultWallpaper(Context context, @SetWallpaperFlags int which) argument 1660 getDefaultWallpaperComponent(Context context) argument [all...] |
/frameworks/base/core/java/android/app/admin/ |
H A D | DeviceAdminInfo.java | 259 * @param context The Context in which we are parsing the device admin. 263 public DeviceAdminInfo(Context context, ResolveInfo resolveInfo) argument 265 this(context, resolveInfo.activityInfo); 270 * @param context The Context in which we are parsing the device admin. 276 public DeviceAdminInfo(Context context, ActivityInfo activityInfo) argument 280 PackageManager pm = context.getPackageManager(); 340 "Unable to create context for: " + mActivityInfo.packageName);
|
H A D | DeviceAdminReceiver.java | 449 public DevicePolicyManager getManager(Context context) { argument 453 mManager = (DevicePolicyManager)context.getSystemService( 463 public ComponentName getWho(Context context) { argument 467 mWho = new ComponentName(context, getClass()); 481 * @param context The running context as per {@link #onReceive}. 484 public void onEnabled(Context context, Intent intent) { argument 493 * @param context The running context as per {@link #onReceive}. 498 public CharSequence onDisableRequested(Context context, Inten argument 510 onDisabled(Context context, Intent intent) argument 525 onPasswordChanged(Context context, Intent intent) argument 539 onPasswordChanged(Context context, Intent intent, UserHandle user) argument 555 onPasswordFailed(Context context, Intent intent) argument 569 onPasswordFailed(Context context, Intent intent, UserHandle user) argument 585 onPasswordSucceeded(Context context, Intent intent) argument 599 onPasswordSucceeded(Context context, Intent intent, UserHandle user) argument 625 onPasswordExpiring(Context context, Intent intent) argument 649 onPasswordExpiring(Context context, Intent intent, UserHandle user) argument 675 onProfileProvisioningComplete(Context context, Intent intent) argument 688 onReadyForUserInitialization(Context context, Intent intent) argument 698 onLockTaskModeEntering(Context context, Intent intent, String pkg) argument 707 onLockTaskModeExiting(Context context, Intent intent) argument 723 onChoosePrivateKeyAlias(Context context, Intent intent, int uid, Uri uri, String alias) argument 748 onSystemUpdatePending(Context context, Intent intent, long receivedTime) argument 760 onBugreportSharingDeclined(Context context, Intent intent) argument 775 onBugreportShared(Context context, Intent intent, String bugreportHash) argument 790 onBugreportFailed(Context context, Intent intent, @BugreportFailureCode int failureCode) argument 809 onSecurityLogsAvailable(Context context, Intent intent) argument 830 onNetworkLogsAvailable(Context context, Intent intent, long batchToken, int networkLogsCount) argument 843 onUserAdded(Context context, Intent intent, UserHandle newUser) argument 855 onUserRemoved(Context context, Intent intent, UserHandle removedUser) argument 864 onReceive(Context context, Intent intent) argument [all...] |
H A D | DevicePolicyManager.java | 113 public DevicePolicyManager(Context context, IDevicePolicyManager service) { argument 114 this(context, service, false); 119 protected DevicePolicyManager(Context context, IDevicePolicyManager service, argument 121 mContext = context;
|
/frameworks/base/core/java/android/app/backup/ |
H A D | AbsoluteFileBackupHelper.java | 42 * @param context 45 public AbsoluteFileBackupHelper(Context context, String... files) { argument 46 super(context); 48 mContext = context;
|
H A D | BackupAgent.java | 311 // System apps have control over where their default storage context 527 // System apps have control over where their default storage context 888 public void attach(Context context) { argument 889 attachBaseContext(context);
|
H A D | BackupManager.java | 204 * @param context The {@link android.content.Context} that was provided when 208 public BackupManager(Context context) { argument 209 mContext = context; 666 BackupObserverWrapper(Context context, BackupObserver observer) { argument 667 mHandler = new Handler(context.getMainLooper()) { 716 SelectTransportListenerWrapper(Context context, SelectBackupTransportCallback listener) { argument 717 mHandler = new Handler(context.getMainLooper());
|
H A D | FileBackupHelper.java | 50 * @param context The backup agent's Context object 53 public FileBackupHelper(Context context, String... files) { argument 54 super(context); 56 mContext = context; 57 mFilesDir = context.getFilesDir();
|
H A D | FileBackupHelperBase.java | 36 FileBackupHelperBase(Context context) { argument 38 mContext = context;
|
H A D | FullBackup.java | 94 static synchronized BackupScheme getBackupScheme(Context context) { argument 96 kPackageBackupSchemeMap.get(context.getPackageName()); 98 backupSchemeForPackage = new BackupScheme(context); 99 kPackageBackupSchemeMap.put(context.getPackageName(), backupSchemeForPackage); 104 public static BackupScheme getBackupSchemeForTest(Context context) { argument 105 BackupScheme testing = new BackupScheme(context); 316 BackupScheme(Context context) { argument 317 mFullBackupContent = context.getApplicationInfo().fullBackupContent; 318 mStorageManager = (StorageManager) context.getSystemService(Context.STORAGE_SERVICE); 319 mPackageManager = context [all...] |
H A D | RestoreSession.java | 273 RestoreSession(Context context, IRestoreSession binder) { argument 274 mContext = context; 292 RestoreObserverWrapper(Context context, RestoreObserver appObserver) { argument 293 mHandler = new Handler(context.getMainLooper()) {
|
H A D | SharedPreferencesBackupHelper.java | 80 * @param context The application {@link android.content.Context} 84 public SharedPreferencesBackupHelper(Context context, String... prefGroups) { argument 85 super(context); 87 mContext = context; 96 Context context = mContext; 107 files[i] = context.getSharedPrefsFile(prefGroups[i]).getAbsolutePath(); 119 Context context = mContext; 125 File f = context.getSharedPrefsFile(key).getAbsoluteFile();
|
H A D | WallpaperBackupHelper.java | 93 * @param context 96 public WallpaperBackupHelper(Context context, String[] files, String[] keys) { argument 97 super(context); 99 mContext = context; 104 (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); 106 (WallpaperManager) context.getSystemService(Context.WALLPAPER_SERVICE);
|