summaryrefslogtreecommitdiffstats
path: root/res/values
Commit message (Collapse)AuthorAgeFilesLines
* Support playing the alert and vibrate until dismissedDeepak Kundra2016-05-242-0/+4
| | | | | | Issue-id:FEIJ-507 Change-Id: I647c21ef17c6e41f8b1a74144fa4b19226d21080
* Themes: Expose hardcoded styles and colors for themesBryan Owens2015-12-292-0/+42
| | | | | Change-Id: I7c83e6c5c728708f8c3bd445529342f8ddbe0f0c Signed-off-by: Bryan Owens <djbryan3540@gmail.com>
* Switch CellBroadcastSettings to Theme.Material.SettingsJason Monk2015-05-201-5/+1
| | | | | Bug: 21077386 Change-Id: I04931dc4cf7f09f4d9a9a9e53bb2dbe6ece3394a
* Configure "Cell Broadcast Receiver" Material styles.Andrew Lee2014-09-292-1/+10
| | | | | Bug: 17679475 Change-Id: I80884e007187df7f160da6383ce7e60f979883e1
* Fix text colors in the CellBroadcast list.Daniel Sandler2014-08-291-0/+1
| | | | | | | | | Also make sure the notification form is visible on lockscreens, and other L improvements. Bug: 17311748 Bug: 17333464 Change-Id: I23231a767d298f7a10d6c484d0beca075799382e
* Settings user restriction changes: cell broadcastsJulia Reynolds2014-05-191-0/+3
| | | | | Bug: 14081992 Change-Id: Ibfdecf85c981174c6992b8a14341f52d31c9f40f
* Add CMAS reminder alert feature.Jake Hamby2013-03-041-0/+21
| | | | | | | | | | | | | | | | Carrier requirement: add "alert reminder" feature for CMAS alerts. If the alert is not dismissed, a reminder sound is played based on user preference. The user can select one of the following behaviors: - "Once" = one alert reminder after 2 minutes - "Every 2 minutes" - "Every 15 minutes" - "Off" = no alert reminders The notification sound is the user's preferred notification sound, or the user's preferred alarm sound as a fallback. Bug: 7045215 Change-Id: Id7858a11dd9b2227aea8ea4a826ed0e78c1ffcb6
* Multiple fixes to CMAS app.Jake Hamby2012-10-121-0/+12
| | | | | | | | | | | | | | | | | | | | | | * Allow screen to turn off after 30 seconds for emergency alerts. * When multiple alerts are received, show them in reverse order. * After showing the first CMAS alert received on device (other than Presidential Alert), show opt-out dialog to allow user to opt-in or out of the various levels of CMAS alert. * Start/stop animating warning icon in activity pause/resume. * When multiple non-emergency alerts are received, show them all (most recent displayed first) when user selects the notification. * For emergency alerts, start the dialog activity directly instead of creating a PendingIntent and full screen notification. * Correctly save/restore the list of alerts in the alert dialog in onSaveInstanceState() when recreated after screen rotation. * Fix test app to increment the message ID and to send the correct alerts when multiple alerts are selected with 5 second delay. Bug: 6993660 Bug: 7041847 Bug: 7045506 Change-Id: Ic3ec08f0ebd693244891a4bf3a29479b832c2a3e
* Fix behavior of CMAS audio alert and vibration.Jake Hamby2012-08-271-0/+5
| | | | | | | | | | | | | | | | Fix bugs in CMAS audio alert and vibration behavior: * Use audio duration of 10.5 seconds for all CMAS alerts. * Fix vibration cadence to match CMAS tone cadence. * Mute audio when volume or camera keys are pressed. * Don't play audio or vibration in silent mode. * Don't play audio in vibrate mode. * Use notification volume rather than alarm volume. * Catch IllegalStateExceptions when stopping audio/TTS (sometimes throws "Unable to retrieve AudioTrack pointer for stop()"). * Add Vibrate setting to CMAS settings for disabling vibration. Bug: 7045214 Change-Id: Id98ea4f42f326b9a253407b9bbe67ca6acc6a20c
* Add "View details" context menu to CMAS alert list view.Jake Hamby2012-08-241-20/+26
| | | | | | | | | | | | | | | | | | | | | For CMAS cell broadcasts, show the CMAS details (alert category, response type, severity, urgency, certainty) in a context menu accessed by long-pressing the alert and selecting "View details". The CMAS alert details are no longer shown in the alert dialog when a broadcast is received or short-pressed in the list view. Also changed the CMAS detail headings and values to match the strings in TIA-1149-0-1 (CMAS over CDMA systems) and removed the trailing spaces from the heading string resources because they are stripped out by aapt. Instead, we append a space between the headings and the values. For i18n purposes, we may want to consider switching to using a format string for the headings so that the values can be placed before, after, or in the middle of the heading. Bug: 7041437 Change-Id: I18c40b14d8dcb811611c1da81e1cd2f6f51a5aa4
* Enable ETWS setting via Setting and MMS apps.Junichi Monma2012-06-291-3/+3
| | | | | | | | | | | | | | | | | | | | Move general alert settings from developer preference category to emergency preference category, and enable for ETWS builds and when developer options is enabled. CMAS settings are moved to the emergency alert category, and removed individually for non-CMAS builds. The general alert settings are removed individually for CMAS builds, unless developer options are enabled. This satisfies requirements for ETWS carriers (who do want those options available) and CMAS carriers (who don't want those options and don't want a separate preference category for CMAS). Also disabled ETWS settings in the default config.xml (used for CMAS). ETWS is enabled in the DoCoMo overlay. Bug: 6758807 Change-Id: I2dea0a372ab239b1a9e3d7d28aae7f9772b9273d
* Add ContentProvider for received cell broadcasts.Jake Hamby2012-04-261-2/+0
| | | | | | | | | | | | | | | | | | | | | | | Enable apps with android.permission.READ_CELL_BROADCASTS to access the database of received cell broadcasts via a ContentProvider at URI "content://cellbroadcasts/". The ContentProvider is read-only, but provides internal methods for the app to insert and delete broadcasts, and to mark broadcasts as read. These methods are not exposed to other applications. Other changes: * Added static log() methods for simpler debug logging. * Moved CellBroadcastDatabase.DatabaseHelper to new top-level CellBroadcastDatabaseHelper class after refactoring the original CellBroadcastDatabase class out of existence. * Removed the "Delete" dialog title per Android UI guidelines, and changed from a custom view to a built-in dialog type. Bug: 5752924 Change-Id: I1ad6a4d5248f851c53a638c2cb7e85a57ba6b811
* Add CMAS over CDMA support to CellBroadcastReceiver app.Jake Hamby2012-03-133-11/+147
| | | | | | | | | | | | | | | Add support for CMAS warning notifications over CDMA to CellBroadcastReceiver app. The framework code now sends cell broadcasts in a radio-technology independent form by passing the new Parcelable android.telephony.SmsCbMessage class as the "message" intent of the SMS_CB_RECEIVED_ACTION or SMS_EMERGENCY_CB_RECEIVED_ACTION, instead of as a GSM/UMTS "pdu" byte array. The database version has also been upgraded to encompass metadata for ETWS and CMAS emergency broadcasts, as well as CDMA format broadcasts. Bug: 5856308 Change-Id: I1b10d35d8aa6f0134260116980e4c326f86d2fe7
* String edits to meet UI text standards.Claudia de Veaux2011-11-041-22/+22
| | | | | | Bug: 5163232 Change-Id: Ic3e2b8a8326aa9a244064a7ffc8697799d46b6c0
* Initial checkin of Cell Broadcast display application.Jake Hamby2011-06-063-0/+189
Simple Cell Broadcast application. Supports ETWS and CMAS emergency messages, and can be extended to support other types of PWS (Public Warning System) emergency warnings. User preferences for configuration of each supported national system (ETWS, CMAS, and channel 50 broadcasts for Brazil) are displayed/hidden based on the values in res/values/config.xml. For emergency alerts, a flashing warning icon and special alert sound is played. If there is a text-to-speech engine installed for the language of the broadcast, then the contents of the broadcast message will be spoken after the alert sound is played. The user can disable the text-to-speech feature in settings, as well as adjusting the length of the alert sound and enabling/disabling delivery of several emergency broadcast channels. The CellBroadcastReceiverTests apk includes a launcher activity with buttons for sending each type of test message. This APK must be signed with the system certificate in order to acquire the BROADCAST_SMS permission required to send test broadcasts to the app. Change-Id: If9b61e02c246de5783b3e39cd100ea707ea80084