summaryrefslogtreecommitdiffstats
path: root/src/com/android
Commit message (Collapse)AuthorAgeFilesLines
* KR public safety toggle part 3Chen Xu2021-07-291-4/+3
| | | | | | | | | | | When users turns off full-screen messages, the notification displayed show switch from importance low to importance high (headsup notification). Bug: 175045929 Test: Manaul Change-Id: If6a286347ac6068c4c2286d5b1d6f825b5e575be
* support Ecuador emergency alertChen Xu2021-07-281-15/+4
| | | | | | | | | | | support Ecuador emergency alert refactor timestamp support Bug: 181791547 Test: Manual Change-Id: Ib80fe1bc0e467cc50bb2aeb81266c17923ab3eac (cherry picked from commit 5bc4c0a34dace311ea83c4135c15be755bb4f488) Merged-in: Ib80fe1bc0e467cc50bb2aeb81266c17923ab3eac
* use customize layout in CollapsingToolbarBaseActivity for R SDKChen Xu2021-07-262-0/+29
| | | | | | | | | | | | | | We introduced the collapsing toolbar on S. To enable this feature needs to correspondingly adjust the theme that the activity uses. However these changes might cause some mainline module apps get crashed when running on R. A customize layout is allowed to use for some cases that need to roll back to the layout used in R. Bug: 192395187 Test: visual verified Change-Id: Ifd0153dcc94324102d9ac07c20b03afcc720a9a7 (cherry picked from commit 6ea1ee7abbc1a17ba264ba5bc6a3b6dbdd5bfe4d) Merged-in: Ifd0153dcc94324102d9ac07c20b03afcc720a9a7
* check sim state to avoid cachining the wrong resources before sim loadedChen Xu2021-07-221-1/+8
| | | | | | | | | | based on the latest design, subId can be valid earlier than mcc mnc is known to telephon. check if sim is loaded to avoid caching the wrong resources. Bug: 183480331 Test: Manual Change-Id: Id696bfd820a31ad666a91e0ebf0ace2d5d41e833
* Merge "apply settings new widget lib for the main feature switch" into sc-devChen Xu2021-07-012-9/+14
|\
| * apply settings new widget lib for the main feature switchChen Xu2021-06-032-9/+14
| | | | | | | | | | | | | | | | apply settings new widget lib for the main feature switch Bug: 183574149 Test: Manual test Change-Id: Ic36a94ea14019fc24227e974bf7e9f2e6e8f49f1
* | improvements of CBR on compainion devicesChen Xu2021-06-231-1/+31
| | | | | | | | | | | | | | | | | | | | improve cbr on companion devices by display notification only when there is an active bluetooth connections. Bug: 181773113 Test: Manual test Change-Id: Ie106e67ea8691fc3be55d2ca22f503d60054af4f
* | TalkBack spoke "Labels available" on the "List" of Emergency alert history pageChen Xu2021-06-021-0/+3
|/ | | | | | | | | TalkBack spoke "Labels available" on the "List" of Emergency alert history page. Set specific label to improve accessibity experience. Bug: 189572404 Test: Manaul test with talkback mode enabled Change-Id: I388e513da59c77384c8320ccaba994c3e1cd00b4
* Merge "Support multiple selection UI for deleting alerts" into sc-devChen Xu2021-05-172-26/+165
|\
| * Support multiple selection UI for deleting alertsHsiaoan Hsu2021-05-172-26/+165
| | | | | | | | | | | | | | | | | | 1. pop out an action bar when long pressing one message 2. each message item includes a checkbox to be selected for deleting Bug: 173086365 Test: Manual Change-Id: I2018f879faee67723062b91a2e453831489720bd
* | Merge "Clear broadcast channel range list when remove or insert SIM" into ↵TreeHugger Robot2021-05-172-6/+30
|\ \ | |/ |/| | | | | | | | | | | mainline-prod am: e81bea308c Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/CellBroadcastReceiver/+/14538446 Change-Id: I29fb63f5cac35afa64803a56be569ef8bb220031
| * Merge "Clear broadcast channel range list when remove or insert SIM" into ↵TreeHugger Robot2021-05-172-6/+30
| |\ | | | | | | | | | mainline-prod
| | * Clear broadcast channel range list when remove or insert SIMMars Lin2021-05-162-6/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The alarm sound of the channel may be incorrect after remove or insert SIM, This problem is caused by the list cache didn't update after remove or insert SIM. Therefore clear the list cache when remove or insert SIM to solve this issue. Bug: 187334636 Test: Check cache after remove or insert SIM Change-Id: Ib4659eaad3438f5bb28967b861cd08adf9ab37c7
| * | DO NOT MERGE: Support multiple selection UI for deleting alertsHsiaoan Hsu2021-05-122-45/+152
| |/ | | | | | | | | | | | | | | | | 1. pop out an action bar when long pressing one message 2. each message item includes a checkbox to be selected for deleting Bug: 173086365 Test: Manual Change-Id: I14437c51cfb8276b9987d1ef14ef7d1c998f8277
* | Merge "provide alram on/off function of public safety messages" into ↵Chen Xu2021-05-062-2/+52
|\| | | | | | | | | | | | | | | mainline-prod am: 6aedd074b7 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/CellBroadcastReceiver/+/14343713 Change-Id: Idd0332e130b129d7e2b2405dd83df12bf298947f
| * Merge "provide alram on/off function of public safety messages" into ↵Chen Xu2021-05-062-2/+52
| |\ | | | | | | | | | mainline-prod
| | * provide alram on/off function of public safety messagesChen Xu2021-05-052-2/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | per KR goverment requirement, have a separate toggle to allow users to hide full-screen messages (no alarm) but shown the message to sms inbox and message history menu. This is to improve user experience while driving to be less interruptive. Bug: 175045929 Test: Manual test Change-Id: I3a62895e1cefb8aebc689a250bb70e03bc7424a1
* | | Merge "improve vibration toggle visibility" into mainline-prod am: af7ce2a9f1Chen Xu2021-05-051-1/+4
|\| | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/CellBroadcastReceiver/+/14391245 Change-Id: I31567aa2909c6695d605c2328f8abc02ada348f4
| * | Merge "improve vibration toggle visibility" into mainline-prodChen Xu2021-05-051-1/+4
| |\ \
| | * | improve vibration toggle visibilityChen Xu2021-05-031-1/+4
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | instead of using RRO config to control whether to show visibility toggles (e.g, tablet does not support vibration), using Vibration API. This is earier for OEMs as it's hard to control RRO apks per model features. Bug: 185739197 Test: Manaul Change-Id: I7f6934d73cbf88f09477415ccae41538f5af7fe9
* | | Merge "New Zealand requirement" into mainline-prod am: c456858fe6TreeHugger Robot2021-05-051-0/+4
|\| | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/CellBroadcastReceiver/+/14424759 Change-Id: Ic52f6b1dfd593a1939fb9102ed46479487693d37
| * | Merge "New Zealand requirement" into mainline-prodTreeHugger Robot2021-05-051-1/+4
| |\ \
| | * | New Zealand requirementHsiaoan Hsu2021-05-051-1/+4
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | Day of the week should be included in the timestamp format in the message dialog Bug: 186008806 Test: manually verified Change-Id: I3d93885935c73bccd45862d00926e12469a48c57
* | | Merge "Fix test on R base" into mainline-prod am: dcba83f0f5Jordan Liu2021-05-041-2/+16
|\| | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/CellBroadcastReceiver/+/14415696 Change-Id: If6d36514368b5bd88b4ddead413ea20dcb49cbf3
| * | Fix test on R baseJordan Liu2021-05-031-2/+16
| |/ | | | | | | | | | | | | | | | | | | IContentProvider API is hidden and has changed between R and S, so we create a wrapper method so we can mock the ContentProviderClient directly, since this API is stable. Bug: 184795491 Test: atest Change-Id: I1b6c2f26825360bc4919843bc6c2498dd2ba5824
* | Merge "handle API backward compatibility" into sc-devJordan Liu2021-04-201-1/+14
|\ \
| * | handle API backward compatibilityChen Xu2021-04-151-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add API level check before calling new API added in S. This caused MTS failure when built module & MTS from S but running on R baseline. It will cause symbol not found crash. Bug: 184795491 Test: mts Change-Id: Iac032c69f6c04a79e8751e663a9838b2e8cbc4d2
* | | Merge "Check resource to disable search indexing" into mainline-prod am: ↵TreeHugger Robot2021-04-161-0/+25
|\ \ \ | |/ / |/| / | |/ | | | | | | | | 08f11c2922 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/CellBroadcastReceiver/+/14210685 Change-Id: I288fcbbe221e5de254345dd4147ebf3d2b7c7df5
| * Merge "Check resource to disable search indexing" into mainline-prodTreeHugger Robot2021-04-161-0/+25
| |\
| | * Check resource to disable search indexingMars Lin2021-04-161-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | Check value of resource "config_disable_all_cb_messages", and disable search indexing if value is true. Bug: 181729297 Test: Change the value of resource and check search_index.db Change-Id: I42baecd3ab65f3c2aba30b34fecf7b72471ebac8
* | | Use Intent.FLAG_ACTIVITY_NO_USER_ACTION am: 31d61f8b08Jordan Liu2021-04-141-0/+1
|\| | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/CellBroadcastReceiver/+/14174071 Change-Id: I3caef3974a3f276f0040a63a8a6615def8f4c813
| * | Use Intent.FLAG_ACTIVITY_NO_USER_ACTIONJordan Liu2021-04-131-0/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | This flag indicates that the activity was not started due to a user's direct action. We include it when CBAlertDialog is opened due to a CB message so that other apps can handle our openening better. (e.g. Google Maps will not minimize itself into picture-in-picture mode this way). Bug: 178554527 Test: manual Change-Id: I86c7506d420bbb35f15e5a79db491a3a6087333a
* | Merge "notify areaInfo update when main toggle state was changed" into ↵Chen Xu2021-03-241-6/+11
|\| | | | | | | | | | | | | | | mainline-prod am: b347401b55 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/CellBroadcastReceiver/+/13878623 Change-Id: I23d2e706b87292906454942b388033bd8ee8efa3
| * Merge "notify areaInfo update when main toggle state was changed" into ↵Chen Xu2021-03-231-6/+11
| |\ | | | | | | | | | mainline-prod
| | * notify areaInfo update when main toggle state was changedChen Xu2021-03-161-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | The 50 channel CB msg is shown when the "allow alerts" option is disabled Bug: 182530460 Test: Manual test Change-Id: I366259739a75c2d63418fd4e9805e4862d3ac0be
* | | Merge "allow hiding vibration toggle for devices does not support vibration" ↵TreeHugger Robot2021-03-191-3/+3
|\| | | | | | | | | | | | | | | | | | | | | | | into mainline-prod am: 69f333c1fa Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/CellBroadcastReceiver/+/13878609 Change-Id: Iaa395070da7cf042d3bce43bc9f73785c75a209f
| * | Merge "allow hiding vibration toggle for devices does not support vibration" ↵TreeHugger Robot2021-03-191-3/+3
| |\ \ | | | | | | | | | | | | into mainline-prod
| | * | allow hiding vibration toggle for devices does not support vibrationChen Xu2021-03-161-3/+3
| | |/ | | | | | | | | | | | | | | | Bug: 180864739 Test: Manual Change-Id: Id5a491e8aa689aa673e9118487d5038b0a25771f
* | | Merge "seprate notification channels" into mainline-prod am: 093a940d7aChen Xu2021-03-181-20/+19
|\| | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/CellBroadcastReceiver/+/13900061 Change-Id: If616748f444d97d11ccbf47022acfe7efcaf99f2
| * | Merge "seprate notification channels" into mainline-prodChen Xu2021-03-181-20/+19
| |\ \
| | * | seprate notification channelsChen Xu2021-03-171-20/+19
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | notification for unacknowledged alerts should be high priority notification for alerts diaplyed accompanied by alert dialog (used to display alerts on companion devices) should remains to be low priority. Thus have separate channels. Bug: 171959758 Test: Manual Change-Id: Ic3a2de7085c7224c59bf2c93e50ff42fcc6e98a1
* | | Fix exception when destroy CellBroadcastAlertDialog activity am: 6ab115a758Mars Lin2021-03-151-1/+5
|\| | | | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/CellBroadcastReceiver/+/13874845 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I041f3da6a7aba563853fb812bee0e4886cac7b25
| * | Fix exception when destroy CellBroadcastAlertDialog activityMars Lin2021-03-151-1/+5
| |/ | | | | | | | | | | | | | | | | unregisterReceiver may be called twice for some cases, Therefore use try...catch... to avoid throwing exception. Bug: 182399772 Test: Send broadcast then destroy dialog Change-Id: Ia9f1f60c0ad8c65752f9a920e4595b18802d5296
* | Merge "settings page is not loading correctly with msim" into mainline-prod ↵Chen Xu2021-03-121-2/+2
|\| | | | | | | | | | | | | | | | | | | am: 92a0b96160 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/CellBroadcastReceiver/+/13835190 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Id0154e35ae449da803f398960cca2e118607523b
| * Merge "settings page is not loading correctly with msim" into mainline-prodChen Xu2021-03-121-2/+2
| |\
| | * settings page is not loading correctly with msimChen Xu2021-03-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Settings page not always loading correctly with msim. Settings should read config based on the default subscription ID. however, we are passing DEFAULT_SUBSCRIPTION_ID which will eventally call context.getResource(). This API returns the resources from the last inserted SIM rather than the default subscription. Bug: 178153057 Test: Build Change-Id: Ib5a67a1c2e8c4f28ed5e589626e5de652f8f3bd4
| * | Remove the ALERTING and SPEAKING condition when Calling stop()Willy Hu2021-03-081-25/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - We will stop audio/vibration/tts when enter stop() if they already called the start/speak Bug: 181074838 Test: 1. build pass 2. It can stop audio and vibration when dialog exit. Change-Id: I9d14b4d94f9ed7f4875b8970fb621e1561474b25 Merged-in: I9d14b4d94f9ed7f4875b8970fb621e1561474b25
| * | DO NOT MERGE: Add new AlertAudioService state STATE_STOPPINGMars Lin2021-02-221-16/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The AlertAudioService will be destroyed after call stopSelf(), it will cause the new alert audio to be stopped. We have added a new state STATUS_STOPPING, and use synchronization method to get/set status, the new alert intent will be resent if AlertAudioService state is STATE_STOPPING. Bug: 176048955 Test: Send ETWS after AlertAudioService call stopSelf() Change-Id: I9f87753d66c08f9c2733c4bdcd2cbfa0009dcd28
* | | Merge "Wireless emergency alerts Widget library changes" into sc-devChen Xu2021-03-112-20/+11
|\ \ \
| * | | Wireless emergency alerts Widget library changesChen Xu2021-03-092-20/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | apply new widget lib for CBR settings page: 1. update section header 2. remove unused divider 3. new action bar (which is backward compatible on R device) Bug: 177638076 Change-Id: Ie74989fe7f8b300ebc08cb9a887624b879a264b8