Home
last modified time | relevance | path

Searched refs:context (Results 1 – 25 of 387) sorted by relevance

12345678910>>...16

/packages/apps/Settings/src/com/android/settings/widget/
DSettingsAppWidgetProvider.java72 public void onUpdate(Context context, AppWidgetManager appWidgetManager, in onUpdate() argument
75 RemoteViews view = buildUpdate(context, -1); in onUpdate()
83 public void onEnabled(Context context) { in onEnabled() argument
84 PackageManager pm = context.getPackageManager(); in onEnabled()
92 public void onDisabled(Context context) { in onDisabled() argument
94 PackageManager pm = context.getPackageManager(); in onDisabled()
104 static RemoteViews buildUpdate(Context context, int appWidgetId) { in buildUpdate() argument
105 RemoteViews views = new RemoteViews(context.getPackageName(), in buildUpdate()
107 views.setOnClickPendingIntent(R.id.btn_wifi, getLaunchPendingIntent(context, appWidgetId, in buildUpdate()
110 getLaunchPendingIntent(context, in buildUpdate()
[all …]
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarAppWidgetProvider.java71 public void onReceive(Context context, Intent intent) { in onReceive() argument
76 performUpdate(context, null /* all widgets */, in onReceive()
79 super.onReceive(context, intent); in onReceive()
87 public void onEnabled(Context context) { in onEnabled() argument
89 PackageManager pm = context.getPackageManager(); in onEnabled()
91 new ComponentName(context, TimeChangeReceiver.class), in onEnabled()
100 public void onDisabled(Context context) { in onDisabled() argument
102 AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in onDisabled()
103 PendingIntent pendingUpdate = getUpdateIntent(context); in onDisabled()
107 PackageManager pm = context.getPackageManager(); in onDisabled()
[all …]
/packages/apps/Mms/src/com/android/mms/transaction/
DMessagingNotification.java118 public static void updateNewMessageIndicator(Context context) { in updateNewMessageIndicator() argument
119 updateNewMessageIndicator(context, false); in updateNewMessageIndicator()
129 public static void updateNewMessageIndicator(Context context, boolean isNew) { in updateNewMessageIndicator() argument
136 accumulator, getMmsNewMessageNotificationInfo(context, threads)); in updateNewMessageIndicator()
138 accumulator, getSmsNewMessageNotificationInfo(context, threads)); in updateNewMessageIndicator()
140 cancelNotification(context, NOTIFICATION_ID); in updateNewMessageIndicator()
142 accumulator.first().deliver(context, isNew, count, threads.size()); in updateNewMessageIndicator()
151 public static void updateAllNotifications(final Context context) { in updateAllNotifications() argument
154 updateNewMessageIndicator(context); in updateAllNotifications()
155 updateSendFailedNotification(context); in updateAllNotifications()
[all …]
DSimFullReceiver.java38 public void onReceive(Context context, Intent intent) { in onReceive() argument
39 if (Settings.Secure.getInt(context.getContentResolver(), in onReceive()
44 context.getSystemService(Context.NOTIFICATION_SERVICE); in onReceive()
46 Intent viewSimIntent = new Intent(context, ManageSimMessages.class); in onReceive()
50 context, 0, viewSimIntent, 0); in onReceive()
54 notification.tickerText = context.getString(R.string.sim_full_title); in onReceive()
58 context, context.getString(R.string.sim_full_title), in onReceive()
59 context.getString(R.string.sim_full_body), in onReceive()
DSmsReceiver.java36 public void onReceive(Context context, Intent intent) { in onReceive() argument
37 onReceiveWithPrivilege(context, intent, false); in onReceive()
40 protected void onReceiveWithPrivilege(Context context, Intent intent, boolean privileged) { in onReceiveWithPrivilege() argument
49 intent.setClass(context, SmsReceiverService.class); in onReceiveWithPrivilege()
51 beginStartingService(context, intent); in onReceiveWithPrivilege()
64 public static void beginStartingService(Context context, Intent intent) { in beginStartingService() argument
68 (PowerManager)context.getSystemService(Context.POWER_SERVICE); in beginStartingService()
74 context.startService(intent); in beginStartingService()
DMessageStatusReceiver.java43 public void onReceive(Context context, Intent intent) { in onReceive() argument
44 mContext = context; in onReceive()
50 updateMessageStatus(context, messageUri, pdu); in onReceive()
51 MessagingNotification.updateNewMessageIndicator(context, true); in onReceive()
55 private void updateMessageStatus(Context context, Uri messageUri, byte[] pdu) { in updateMessageStatus() argument
58 Cursor cursor = SqliteWrapper.query(context, context.getContentResolver(), in updateMessageStatus()
71 SqliteWrapper.update(context, context.getContentResolver(), in updateMessageStatus()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiStatus.java26 public static String getStatus(Context context, String ssid, in getStatus() argument
30 return getPrintableFragment(context, detailedState, ssid); in getStatus()
32 return getPrintable(context, detailedState); in getStatus()
43 public static String getPrintable(Context context, in getPrintable() argument
48 return context.getString(R.string.status_authenticating); in getPrintable()
50 return context.getString(R.string.status_connected); in getPrintable()
52 return context.getString(R.string.status_connecting); in getPrintable()
54 return context.getString(R.string.status_disconnected); in getPrintable()
56 return context.getString(R.string.status_disconnecting); in getPrintable()
58 return context.getString(R.string.status_failed); in getPrintable()
[all …]
/packages/apps/AlarmClock/src/com/android/alarmclock/
DAlarms.java98 public String toString(Context context, boolean showNever) { in toString() argument
102 if (mDays == 0) return showNever ? context.getText( in toString()
107 return context.getText(R.string.every_day).toString(); in toString()
129 context.getText(R.string.day_concat)); in toString()
318 Context context, int alarmId) { in deleteAlarm() argument
320 ContentResolver contentResolver = context.getContentResolver(); in deleteAlarm()
322 int snoozeId = getSnoozeAlarmId(context); in deleteAlarm()
323 if (snoozeId == alarmId) disableSnoozeAlert(context); in deleteAlarm()
328 setNextAlert(context); in deleteAlarm()
409 Context context, int id, boolean enabled, int hour, int minutes, in setAlarm() argument
[all …]
/packages/apps/IM/libwbxml/src/
Dwbxml_jni.cpp102 JniWbxmlContentHandler(WbxmlParsingContext * context):mContext(context) in JniWbxmlContentHandler() argument
218 WbxmlParsingContext * context = NULL; in parserCreate() local
222 context = new WbxmlParsingContext(); in parserCreate()
223 if (!context) { in parserCreate()
232 handler = new JniWbxmlContentHandler(context); in parserCreate()
238 context->parser = parser; in parserCreate()
239 context->contentHandler = handler; in parserCreate()
240 context->env = env; in parserCreate()
241 context->object = thisObj; in parserCreate()
243 return (jint)context; in parserCreate()
[all …]
/packages/apps/Phone/src/com/android/phone/
DSpecialCharSequenceMgr.java44 static boolean handleChars(Context context, String input) { in handleChars() argument
45 return handleChars(context, input, false, null); in handleChars()
61 static boolean handleChars(Context context, String input, Activity pukInputActivity) { in handleChars() argument
62 return handleChars(context, input, false, pukInputActivity); in handleChars()
65 static boolean handleChars(Context context, String input, boolean useSystemWindow) { in handleChars() argument
66 return handleChars(context, input, useSystemWindow, null); in handleChars()
82 static boolean handleChars(Context context, in handleChars() argument
90 if (handleIMEIDisplay(context, dialString, useSystemWindow) in handleChars()
91 || handlePinEntry(context, dialString, pukInputActivity) in handleChars()
92 || handleAdnEntry(context, dialString) in handleChars()
[all …]
/packages/apps/Contacts/src/com/android/contacts/
DSpecialCharSequenceMgr.java53 static boolean handleChars(Context context, String input, EditText textField) { in handleChars() argument
54 return handleChars(context, input, false, textField); in handleChars()
57 static boolean handleChars(Context context, String input) { in handleChars() argument
58 return handleChars(context, input, false, null); in handleChars()
61 static boolean handleChars(Context context, String input, boolean useSystemWindow, in handleChars() argument
67 if (handleIMEIDisplay(context, dialString, useSystemWindow) in handleChars()
68 || handlePinEntry(context, dialString) in handleChars()
69 || handleAdnEntry(context, dialString, textField) in handleChars()
70 || handleSecretCode(context, dialString)) { in handleChars()
86 static boolean handleSecretCode(Context context, String input) { in handleSecretCode() argument
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DAlertReceiver.java60 public void onReceive(Context context, Intent intent) { in onReceive() argument
67 Intent serviceIntent = new Intent(context, DismissAllAlarmsService.class); in onReceive()
68 context.startService(serviceIntent); in onReceive()
71 i.setClass(context, AlertService.class); in onReceive()
80 beginStartingService(context, i); in onReceive()
88 public static void beginStartingService(Context context, Intent intent) { in beginStartingService() argument
92 (PowerManager)context.getSystemService(Context.POWER_SERVICE); in beginStartingService()
98 context.startService(intent); in beginStartingService()
116 public static void updateAlertNotification(Context context) { in updateAlertNotification() argument
120 ContentResolver cr = context.getContentResolver(); in updateAlertNotification()
[all …]
/packages/apps/Mms/src/com/android/mms/ui/
DMessageUtils.java104 public static String getMessageDetails(Context context, Cursor cursor, int size) { in getMessageDetails() argument
113 return getNotificationIndDetails(context, cursor); in getMessageDetails()
116 return getMultimediaMessageDetails(context, cursor, size); in getMessageDetails()
122 return getTextMessageDetails(context, cursor); in getMessageDetails()
126 private static String getNotificationIndDetails(Context context, Cursor cursor) { in getNotificationIndDetails() argument
128 Resources res = context.getResources(); in getNotificationIndDetails()
136 context).load(uri); in getNotificationIndDetails()
139 return context.getResources().getString(R.string.cannot_get_details); in getNotificationIndDetails()
147 String from = extractEncStr(context, nInd.getFrom()); in getNotificationIndDetails()
158 context, nInd.getExpiry() * 1000L, true))); in getNotificationIndDetails()
[all …]
DAttachmentTypeSelectorAdapter.java42 public AttachmentTypeSelectorAdapter(Context context, int mode) { in AttachmentTypeSelectorAdapter() argument
43 super(context, getData(mode, context)); in AttachmentTypeSelectorAdapter()
46 protected static List<IconListItem> getData(int mode, Context context) { in getData() argument
48 addItem(data, context.getString(R.string.attach_image), in getData()
51 addItem(data, context.getString(R.string.attach_take_photo), in getData()
54 addItem(data, context.getString(R.string.attach_video), in getData()
57 addItem(data, context.getString(R.string.attach_record_video), in getData()
60 addItem(data, context.getString(R.string.attach_sound), in getData()
63 addItem(data, context.getString(R.string.attach_record_sound), in getData()
67 addItem(data, context.getString(R.string.attach_slideshow), in getData()
DDeliveryReportListItem.java38 DeliveryReportListItem(Context context) { in DeliveryReportListItem() argument
39 super(context); in DeliveryReportListItem()
51 public DeliveryReportListItem(Context context, AttributeSet attrs) { in DeliveryReportListItem() argument
52 super(context, attrs); in DeliveryReportListItem()
57 Context context = getContext(); in bind() local
59 mRecipientView.setText(cache.getContactName(context, recipient)); in bind()
62 mStatusView.setText(cache.getContactName(context, status)); in bind()
65 String receivedStr = context.getString(R.string.status_received); in bind()
66 String failedStr = context.getString(R.string.status_failed); in bind()
67 String pendingStr = context.getString(R.string.status_pending); in bind()
[all …]
/packages/apps/Email/src/com/android/email/
DEmail.java128 public static void setServicesEnabled(Context context) { in setServicesEnabled() argument
129 setServicesEnabled(context, Preferences.getPreferences(context).getAccounts().length > 0); in setServicesEnabled()
132 public static void setServicesEnabled(Context context, boolean enabled) { in setServicesEnabled() argument
133 PackageManager pm = context.getPackageManager(); in setServicesEnabled()
134 … if (!enabled && pm.getComponentEnabledSetting(new ComponentName(context, MailService.class)) == in setServicesEnabled()
140 MailService.actionReschedule(context); in setServicesEnabled()
143 new ComponentName(context, MessageCompose.class), in setServicesEnabled()
148 new ComponentName(context, AccountShortcutPicker.class), in setServicesEnabled()
153 new ComponentName(context, BootReceiver.class), in setServicesEnabled()
158 new ComponentName(context, MailService.class), in setServicesEnabled()
[all …]
/packages/apps/Music/src/com/android/music/
DMusicUtils.java88 …public static String makeAlbumsLabel(Context context, int numalbums, int numsongs, boolean isUnkno… in makeAlbumsLabel() argument
95 Resources r = context.getResources(); in makeAlbumsLabel()
98 songs_albums.append(context.getString(R.string.onesong)); in makeAlbumsLabel()
110 songs_albums.append(context.getString(R.string.albumsongseparator)); in makeAlbumsLabel()
118 …public static String makeAlbumsSongsLabel(Context context, int numalbums, int numsongs, boolean is… in makeAlbumsSongsLabel() argument
129 songs_albums.append(context.getString(R.string.onesong)); in makeAlbumsSongsLabel()
131 Resources r = context.getResources(); in makeAlbumsSongsLabel()
137 songs_albums.append(context.getString(R.string.albumsongseparator)); in makeAlbumsSongsLabel()
150 public static boolean bindToService(Context context) { in bindToService() argument
151 return bindToService(context, null); in bindToService()
[all …]
DMediaAppWidgetProvider.java53 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { in onUpdate() argument
54 defaultAppWidget(context, appWidgetIds); in onUpdate()
63 context.sendBroadcast(updateIntent); in onUpdate()
70 private void defaultAppWidget(Context context, int[] appWidgetIds) { in defaultAppWidget() argument
71 final Resources res = context.getResources(); in defaultAppWidget()
72 … final RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.album_appwidget); in defaultAppWidget()
77 linkButtons(context, views, false /* not playing */); in defaultAppWidget()
78 pushUpdate(context, appWidgetIds, views); in defaultAppWidget()
81 private void pushUpdate(Context context, int[] appWidgetIds, RemoteViews views) { in pushUpdate() argument
83 final AppWidgetManager gm = AppWidgetManager.getInstance(context); in pushUpdate()
[all …]
/packages/apps/Browser/src/com/android/browser/
DBrowserYesNoPreference.java27 public BrowserYesNoPreference(Context context, AttributeSet attrs) { in BrowserYesNoPreference() argument
28 super(context, attrs); in BrowserYesNoPreference()
38 Context context = getContext(); in onDialogClosed() local
40 BrowserSettings.getInstance().clearCache(context); in onDialogClosed()
42 BrowserSettings.getInstance().clearCookies(context); in onDialogClosed()
44 BrowserSettings.getInstance().clearHistory(context); in onDialogClosed()
46 BrowserSettings.getInstance().clearFormData(context); in onDialogClosed()
48 BrowserSettings.getInstance().clearPasswords(context); in onDialogClosed()
51 BrowserSettings.getInstance().resetDefaultPreferences(context); in onDialogClosed()
/packages/apps/Launcher/src/com/android/launcher/
DInstallShortcutReceiver.java32 public void onReceive(Context context, Intent data) { in onReceive() argument
39 if (!installShortcut(context, data, screen)) { in onReceive()
42 if (i != screen && installShortcut(context, data, i)) break; in onReceive()
47 private boolean installShortcut(Context context, Intent data, int screen) { in installShortcut() argument
50 if (findEmptyCell(context, mCoordinates, screen)) { in installShortcut()
65 if (duplicate || !LauncherModel.shortcutExists(context, name, intent)) { in installShortcut()
66 Launcher.addShortcut(context, data, cell, true); in installShortcut()
67 Toast.makeText(context, context.getString(R.string.shortcut_installed, name), in installShortcut()
70 Toast.makeText(context, context.getString(R.string.shortcut_duplicate, name), in installShortcut()
76 Toast.makeText(context, context.getString(R.string.out_of_space), in installShortcut()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaScannerReceiver.java35 public void onReceive(Context context, Intent intent) { in onReceive() argument
42 scan(context, MediaProvider.INTERNAL_VOLUME); in onReceive()
49 scan(context, MediaProvider.EXTERNAL_VOLUME); in onReceive()
52 scanFile(context, path); in onReceive()
58 private void scan(Context context, String volume) { in scan() argument
61 context.startService( in scan()
62 new Intent(context, MediaScannerService.class).putExtras(args)); in scan()
65 private void scanFile(Context context, String path) { in scanFile() argument
68 context.startService( in scanFile()
69 new Intent(context, MediaScannerService.class).putExtras(args)); in scanFile()
/packages/apps/Mms/src/com/android/mms/model/
DMediaModelFactory.java41 public static MediaModel getMediaModel(Context context, in getMediaModel() argument
50 context, tag, src, (SMILRegionMediaElement) sme, layouts, part); in getMediaModel()
53 context, tag, src, sme, part, null); in getMediaModel()
81 private static MediaModel getRegionMediaModel(Context context, in getRegionMediaModel() argument
88 return getGenericMediaModel(context, tag, src, srme, part, region); in getRegionMediaModel()
101 return getGenericMediaModel(context, tag, src, srme, part, region); in getRegionMediaModel()
108 private static MediaModel getGenericMediaModel(Context context, in getGenericMediaModel() argument
123 media = new TextModel(context, contentType, src, in getGenericMediaModel()
126 media = new ImageModel(context, contentType, src, in getGenericMediaModel()
129 media = new VideoModel(context, contentType, src, in getGenericMediaModel()
[all …]
/packages/apps/Stk/src/com/android/stk/
DStkCmdReceiver.java33 public void onReceive(Context context, Intent intent) { in onReceive() argument
37 handleCommandMessage(context, intent); in onReceive()
39 handleSessionEnd(context, intent); in onReceive()
43 private void handleCommandMessage(Context context, Intent intent) { in handleCommandMessage() argument
48 context.startService(new Intent(context, StkAppService.class) in handleCommandMessage()
52 private void handleSessionEnd(Context context, Intent intent) { in handleSessionEnd() argument
55 context.startService(new Intent(context, StkAppService.class) in handleSessionEnd()
DStkAppInstaller.java32 static void install(Context context) { in install() argument
33 setAppState(context, true); in install()
36 static void unInstall(Context context) { in unInstall() argument
37 setAppState(context, false); in unInstall()
40 private static void setAppState(Context context, boolean install) { in setAppState() argument
41 if (context == null) { in setAppState()
44 PackageManager pm = context.getPackageManager(); in setAppState()
/packages/apps/Mms/src/com/android/mms/util/
DContactInfoCache.java158 private ContactInfoCache(Context context) { in ContactInfoCache() argument
159 mContext = context; in ContactInfoCache()
161 ContentResolver resolver = context.getContentResolver(); in ContactInfoCache()
211 public static void init(Context context) { in init() argument
212 sInstance = new ContactInfoCache(context); in init()
240 public CacheEntry getContactInfo(Context context, String numberOrEmail) { in getContactInfo() argument
242 return getContactInfoForEmailAddress(context, numberOrEmail, true /* allow query */); in getContactInfo()
244 return getContactInfoForPhoneNumber(context, numberOrEmail, true /* allow query */); in getContactInfo()
257 public CacheEntry getContactInfoForPhoneNumber(Context context, String number, in getContactInfoForPhoneNumber() argument
277 CacheEntry entry = queryContactInfoByNumber(context, number); in getContactInfoForPhoneNumber()
[all …]

12345678910>>...16