History log of /packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/CellBroadcastAlertFullScreen.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c4ef6116a83db3b93f93d32be29a36bf54622d9d 14-Jul-2015 Sanket Padawe <sanketpadawe@google.com> Make CellBroadCast MSIM aware

Bug: 22360525
Change-Id: Ie5306b47628e4f9a547a4f8fde7fa842a77e65a7
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/CellBroadcastAlertFullScreen.java
4589e8a8dde484424a96d4644772d793043ad029 27-Feb-2013 Jake Hamby <jhamby@google.com> Add CMAS reminder alert feature.

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
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/CellBroadcastAlertFullScreen.java
57273ebfa13f96bf5aba9902b70e2b179fec9e4c 09-Oct-2012 Jake Hamby <jhamby@google.com> Multiple fixes to CMAS app.

* 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
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/CellBroadcastAlertFullScreen.java
68dc486fc39a727c43199c2df72dcf658367a63f 10-Sep-2012 Jake Hamby <jhamby@google.com> Fix ETWS earthquake alert to vibrate when in silent mode.

A recent change to emergency alert behavior for CMAS is incompatible with
the required behavior for ETWS alerts:
- CMAS alerts should not vibrate when the device is in silent mode.
- CMAS alert audio/vibration should stop when a key is pressed.
- ETWS alerts should always vibrate, even if the device is in silent mode.
- ETWS alert audio/vibration should not stop if a key is pressed.
This change restores the correct behavior for ETWS alerts. Other alerts
will use the CMAS behavior.

Bug: 7116590
Change-Id: I1e1598ee5fb489be50138faf5cb56dabe8e802ed
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/CellBroadcastAlertFullScreen.java
bf70b6f871ac58439b5e98a305478a773e872b68 25-Aug-2012 Jake Hamby <jhamby@google.com> Fix behavior of CMAS audio alert and vibration.

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
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/CellBroadcastAlertFullScreen.java
a93243d13ef0c0b29d871d483642e39c01db7c26 24-Aug-2012 Jake Hamby <jhamby@google.com> Add "View details" context menu to CMAS alert list view.

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
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/CellBroadcastAlertFullScreen.java
da5c415f6d0999131e93384b5fb90422ada8e4da 18-Apr-2012 Jake Hamby <jhamby@google.com> Add ContentProvider for received cell broadcasts.

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
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/CellBroadcastAlertFullScreen.java
00b87064abfb9d254fbbf72110643d2e626365e6 14-Feb-2012 Jake Hamby <jhamby@google.com> Add CMAS over CDMA support to CellBroadcastReceiver app.

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
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/CellBroadcastAlertFullScreen.java