• Home
  • Raw
  • Download

Lines Matching refs:context

92     public static void setServicesEnabledAsync(final Context context) {  in setServicesEnabledAsync()  argument
96 setServicesEnabledSync(context); in setServicesEnabledAsync()
111 public static boolean setServicesEnabledSync(Context context) { in setServicesEnabledSync() argument
114 c = context.getContentResolver().query( in setServicesEnabledSync()
119 setServicesEnabled(context, enable); in setServicesEnabledSync()
128 private static void setServicesEnabled(Context context, boolean enabled) { in setServicesEnabled() argument
129 PackageManager pm = context.getPackageManager(); in setServicesEnabled()
131 new ComponentName(context, MailService.class)) == in setServicesEnabled()
137 MailService.actionReschedule(context); in setServicesEnabled()
140 new ComponentName(context, MessageCompose.class), in setServicesEnabled()
145 new ComponentName(context, ShortcutPicker.class), in setServicesEnabled()
150 new ComponentName(context, MailService.class), in setServicesEnabled()
155 new ComponentName(context, AttachmentDownloadService.class), in setServicesEnabled()
160 new ComponentName(context, MailService.class)) == in setServicesEnabled()
166 MailService.actionReschedule(context); in setServicesEnabled()
169 pm.setComponentEnabledSetting(new ComponentName(context, WidgetConfiguration.class), in setServicesEnabled()
172 startOrStopService(enabled, context, new Intent(context, AttachmentDownloadService.class)); in setServicesEnabled()
173 NotificationController.getInstance(context).watchForMessages(enabled); in setServicesEnabled()
182 private static void startOrStopService(boolean enabled, Context context, Intent intent) { in startOrStopService() argument
184 context.startService(intent); in startOrStopService()
186 context.stopService(intent); in startOrStopService()
219 public static void updateLoggingFlags(Context context) { in updateLoggingFlags() argument
220 Preferences prefs = Preferences.getPreferences(context); in updateLoggingFlags()
229 Controller.getInstance(context).serviceLogging(debugBits); in updateLoggingFlags()