summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Messaging: Notification channel string fixeslineage-17.0Michael Bestas2019-11-0179-80/+80
| | | | | | | * Convert AOSP translations for renamed string * Move new string so we can translate it Change-Id: I4da7137e77f8a88196c94b2b98107ead1efabd65
* Messaging: Implement per conversation channelsLuca Stefani2019-10-3066-942/+243
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: manual - Tested the messaging UI. Ran the following CTS tests on Emulator. $ make -j $ make messagingtests -j $ find out -name "messaging*.apk" -print -exec ls -l {} \; out/target/product/generic_x86/system/product/app/messaging/messaging.apk -rw-r--r-- 1 luca users 10253068 Sep 10 16:05 out/target/product/generic_x86/system/product/app/messaging/messaging.apk out/target/product/generic_x86/testcases/messaging/messaging.apk -rw-r--r-- 1 luca users 10253068 Sep 10 12:57 out/target/product/generic_x86/testcases/messaging/messaging.apk $ adb install -r -d out/target/product/generic_x86/system/product/app/messaging/messaging.apk $ adb install -r -d out/target/product/generic_x86/testcases/messagingtests/x86/messagingtests.apk $ adb shell am instrument -w com.android.messaging.test Time: 12.766 OK (113 tests) CTS tests for Mesaging app --------------------------- $ ./development/testrunner/runtest.py --path cts/tests/app/src/android/app/cts/NotificationTest.java adb shell am instrument -e class 'android.app.cts.NotificationTest' -w 'android.app.cts/androidx.test.runner.AndroidJUnitRunner' android.app.cts.NotificationTest:........................... Time: 0.2 OK (27 tests) atest ----- $ cd packages/apps/Messaging $ atest Summary ------- messagingtests: Passed: 113, Failed: 0, Ignored: 0 Signed-off-by: Luca Stefani <luca.stefani.ge1@gmail.com> Signed-off-by: Joey <joey@lineageos.org> Signed-off-by: Danny Baumann <dannybaumann@web.de> Signed-off-by: Arne Coucheron <arco68@gmail.com> Change-Id: Idb39ca32751d40b3376934775d2119dd6cc7e297
* Don't build with platform certificateLuca Stefani2019-10-291-2/+0
| | | | Change-Id: Iec6798c9139ab62e054efbf714aa07d154f93852
* Messaging: use white nav barJoey2019-10-292-0/+27
| | | | | Change-Id: I0ac3ca705efe208a76eb4fe40f22e7cd8456515a Signed-off-by: Joey <joey@lineageos.org>
* Allow intent shared subject or title to be mms subjectMarco Sirabella2019-10-292-4/+14
| | | | | | | | Fix some styling issues Thanks to LuK1337 on the irc channel for helpful pointers Change-Id: Ibb5eba030320467774cdac1d502ec36c98abcb43
* Messaging: Add "Mark as read" quick action for message notificationsPaul Keith2019-10-298-4/+86
| | | | Change-Id: I7194dca022e5062926fa35709de282721ca64320
* Messaging: Fix crash of blocked participant list activityDanny Baumann2019-10-291-7/+0
| | | | | | | | This activity was asserting that *only* the blocked participant list fragment is attached to it, but the lifecycle libraries also inject a fragment for their internal purposes. Change-Id: Iafd798337a38fc83cf45174b20a8b6a76bf20546
* Messaging: Don't crash on unsupported shared content typeLuca Stefani2019-10-291-2/+10
| | | | Change-Id: Ibbd164ecf73ed5b7d4af0cdc0ca670085e96633c
* MediaPicker: Check for NPEAnkit Gupta2019-10-291-0/+4
| | | | | | | | make sure view has been created before asking for its visibility. Change-Id: I0f0c36f8edf83c518bf07ef05399eda5d6b0f78a Issue-id: FEIJ-1135
* Messaging: fix bad recycle on sending two mms in a rowRoman Birg2019-10-291-0/+1
| | | | | | | | | | | When we are handling the add animation ourself, we need to call the dispatchAdd() to finish the operation so the recycler view can propely handle it. Ticket: CYNGNOS-3253 Change-Id: Ia8755a1b10ac678c304ac7e1208336e11fbe7b77 Signed-off-by: Roman Birg <roman@cyngn.com>
* Messaging app crashes after a few MMStnmy-cyngn2019-10-291-1/+2
| | | | | | | | | | In some scenarios, data not bound when SIM state change local broadcasts are received. See stacktrace for more info. Protect against/skip call to update() in such scenarios. Change-Id: Iee7775a74d22808cb262e8973ca70e5e1f0acfc9 Bug-Id: CYNGNOS-3062, KIPPER-718
* Fixed storage permission issue for attachmentsGary Kipnis2019-10-293-3/+9
| | | | | | | | | | | | When Storage Permissions were being requested and granted, they were applied to either the Gallery (image & video) or Audio tab. This patch makes sure that the permissions are propagated to both. Change-Id: Ic8a3316616fad6fdf1cbc771aba360a031db88ad TicketId: Kipper-587 TicketId: Crackling-937 TicketId: Feij-143 TicketId: Porridge-64
* Added support for video and audio mms attachmentsGary Kipnis2019-10-2926-12/+1238
| | | | | Change-Id: I690f941ac80a861e57494028f676a7db658bdce1 Ticket-Id: FEIJ-128, FEIJ-143
* Play an audible notification on receiving a class zero message.Arun Valiaparambil2019-10-292-0/+12
| | | | | | | | Changes ported from http://review.cyanogenmod.org/#/c/125457/ PAELLA-123 Change-Id: I1289790d32a3b69bf7892025bac5fa3bd74eeefc
* Messaging: Implement saved video attachments in MMSMartin Brabham2019-10-295-12/+91
| | | | | Change-Id: I184a8d84f019d916fd07d8b90fb96b80408c6768 Ticket-Id: CRACKLING-937
* Messaging: bring back accent colorjrizzoli2019-10-293-9/+31
| | | | | | | | | | | Change-Id: I217da3339dcfbe87388b5ee06b156e37c205df4f Messaging: make some more elements use accent instead of primary Change-Id: I5fb55c50b049effc7ffed8d30208dcffb8182c42 Signed-off-by: Joey Rizzoli <joey@cyanogenmoditalia.it> Change-Id: I217da3339dcfbe87388b5ee06b156e37c205df4f
* Fix menu item highlight color.Danny Baumann2019-10-291-1/+1
| | | | Change-Id: Ia5852a4de95ff355c6f2cd8275002d3c5cfb8370
* Messaging: Toggable keyboard emoticons accessAdrianDC2019-10-299-2/+52
| | | | | | | * Allows keyboards to always display the line return key Change-Id: I9ecb19733f707d35771255018afebf0b5cda5e6d Signed-off-by: AdrianDC <radian.dc@gmail.com>
* MessageQueue: Process pending messages per subscriptionDiogo Ferreira2019-09-151-48/+122
| | | | | | | | | | | | | | The message dispatcher will only queue one message at a time for both sending and downloading. On multi-sim scenarios this causes failures in a subscription to delay all messages added after the one that fails. This patch changes the pending messages processor to queue one message per subscription for both sending and received, instead of one globally. Change-Id: Ia54906089dccbbe694aab7bf995ac08480d3e4f8 Ticket: CRACKLING-877
* Messaging: change Avatar fontFamily to sans-serif-mediumAltaf-Mahdi2019-09-151-1/+1
| | | | | | Match the changes in ContactsCommon Change-Id: Ica94f00e6121c550ea0bc1dfe73a52162dccda71
* Messaging: Implement option for swipe right to delete.Adnan Begovic2019-09-1512-9/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of the following: Author: Adnan Begovic <adnan@cyngn.com> Date: Thu Jan 14 17:20:43 2016 -0800 Messaging: Implement option for swipe to delete. No one wants to swipe to archive, that's stupid. Change-Id: Ia8f0fc675582ef343311e60b755e284322f25102 Author: chengzhi.hou <chengzhi.hou@ck-telecom.com> Date: Wed Feb 24 20:01:17 2016 +0800 Messaging: Swipe right to delete conversation Change "swipe delete" to "swipe right delete", so SwipeArchive and SwipeDelete can exist at the same time. Change-Id: Id66167c2e749f8ab0ee917e0138027c7404b8c90 Author: Michael Bestas <mikeioannina@cyanogenmod.org> Date: Tue Mar 1 02:27:16 2016 +0200 Improve swipe to delete strings Change-Id: I180d09a6680084d9fd87c6dafd56db18ca5a580a Author: Joey Rizzoli <joey@cyanogenmoditalia.it> Date: Mon Oct 17 16:32:25 2016 +0200 Messaging: show snackbar instead of toast when deleting conversation more consistency with archive action Change-Id: I06129850860a2a51c10ade65fb87c9f37a0c2bfa Signed-off-by: Joey Rizzoli <joey@cyanogenmoditalia.it> Change-Id: Ia8f0fc675582ef343311e60b755e284322f25102
* Messaging: adaptive iconAsher Simonds2019-09-1518-2/+22
| | | | | Change-Id: I6d619acfe1682117ae6a9cc91ff1fab5638d352b Signed-off-by: Joey <joey@lineageos.org>
* Messaging: define app categoryJoey2019-09-151-0/+1
| | | | | Change-Id: I045f394cd2dfa9018cb5d9463c35371bc8814690 Signed-off-by: Joey <joey@lineageos.org>
* Move libgiftranscode.so to /productPo-Chien Hsueh2019-09-152-0/+4
| | | | | | | | | | libgiftranscode.so is a jni lib for Messaging app, which is usually overridden by proprietary apps on shipping devices. We have moved Messaging to /product. Now this CL move libgiftranscode.so too. Bug: 138282284 Test: Open gif files with Messaging on aosp_crosshatch Change-Id: Ic104ba8ec5c2258a28c8d19151a00f6c601b5f80
* Move Messaging to /productPo-Chien Hsueh2019-09-152-1/+44
| | | | | | | | | Move Messaging to /product as we usually override it by proprietary apps on shipping devices. Bug: 138283161 Test: Run this app on aosp_crosshatch Change-Id: I30e1f291f249e15b0d9131cfa72cc9e9f4a37234
* Fix FATAL EXCEPTION on SmsStorageLowWarningActivityTaesu Lee2019-09-152-1/+10
| | | | | | | | | Added new "Translucent" style for SmsStorageLowWarningActivity instead. Test: am start com.android.messaging/.ui.SmsStorageLowWarningActivity Change-Id: Ie8b0df64ac046343c93ca8b4ffa93c5e49cc73ad Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Ignore unexpected ACTION_DOWN for SIM avatar iconsTaesu Lee2019-09-151-0/+9
| | | | | | | | | | | Unexpected ACTION_DOWN raises setColorFilter() for SIM avatar icons in the SIM switcher. However, other actions to clear the filter cannot be received due to no clickable attribute. Test: Click SIM icon in SimSelectorView. Change-Id: Ic5972522a3442e3087c474b65add38a6d00511a5 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Sort ParticipantsData in order of the slot idTaesu Lee2019-09-151-0/+11
| | | | | | | | | | | getSelfParticipants() returns the ParticipantData list arranged in ascending order of the slot id to show SIM UIs from lowest to highest id consistently. Test: Verify SettingsFragment and SimSelector order in multi-sim device Change-Id: I0f5f27c6467cb21a6d11271d1a0a6beef36630a6 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Fix GetOrCreateConversationActionTest failureTaesu Lee2019-09-151-2/+3
| | | | | | | Test: atest messagingtests Change-Id: I62a30f50a64a6e6e3f7ce21c0919cb2873654bc2 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Replace no error code '0' for SMS with '-1'Taesu Lee2019-09-152-2/+3
| | | | | | | | | | Use '-1' for no error instead of '0' since the '0' has been one of the valid error codes in 3GPP2. Test: Manual Change-Id: I02ba391a5cd178491868565c10bb3a35ba88e19a Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Apply new duplication detection logic for M-Notification.indTaesu Lee2019-09-154-59/+43
| | | | | | | | | | | | | | | | | | | | | The X-Mms-Transaction-ID of the M-Notification.ind identifies each M-Notification.ind message. New duplication detection logic compares the new X-Mms-Transaction-ID with the stored value to identify the Network duplicate M-Notification.ind message when it receives a new M-Notification.ind message. Following SQL WHERE clause is used to query from the DB. ((m_type=NOTIFICATION_IND) OR (m_type=RETRIEVE_CONF)) AND (exp>NOW)) AND (t_id=xxxxxx) For this, when the M-Retrieve.conf is received, updates the t_id and the exp from the corresponding M-Notification.ind so that new logic would work even after the M-Notification.ind is deleted. Test: Manual Change-Id: I86e1eee62ea612d96ca16e5384b044cb6541ff6a Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Fix wrong PreferenceCategory for SMS delivery reportTaesu Lee2019-09-151-1/+1
| | | | | | | Test: Manual Change-Id: I3008c596e5559e51613ed2da43793187c79381f5 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Fix assertion failures caused by different instance typeTaesu Lee2019-09-151-5/+7
| | | | | | | | | | | onAttachFragment() with ReportFragment instance is called first since Support Library 26.1.0 has been applied. Remove assert() and check instance to fix crash caused by the ReportFragement. Test: Manual Change-Id: I5a4d6bdd00ac94c5892527f5fe784b8f19701214 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Fix MMS Config issues in Debug menuTaesu Lee2019-09-153-2/+22
| | | | | | | | | | | | | Fix - Wrong order of args for update(). - Wrong and missing configs in keyType map. And remove MMS config keys from the key list if the keyType map doesn't include them. Test: Manual Change-Id: Ib1876072625187baf15ce6e64f90785ed0ba3df8 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Use correct format info for SMSTaesu Lee2019-09-153-4/+10
| | | | | | | | | | | | Use correct format to - Parse SMS delivery report. - Dump/Load SMS to/from the dump file. TODO: Update message text state during composing. Test: Manual Change-Id: I7e53bed86130484a634c9305b276e2586db31796 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Fix SMS status handlingTaesu Lee2019-09-152-6/+30
| | | | | | | | | | | Simple matching up CDMA status with GSM TP-Status for common handling. And fix bugleStatusForSMS() for all the permanent error cases. Note: Need to check SC operation for ERROR_TEMPORARY. Test: Manual Change-Id: Ic8136d273dc0c25a4f0690f951d4d8aca20579ff Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* Fix X-Mms-Transaction-ID of M-Acknowledge.indTaesu Lee2019-09-151-6/+15
| | | | | | | | | | | | X-Mms-Transaction-ID of M-Acknowledge.ind should be set as the corresponding M-Retrieve.conf's transaction ID instead of M-Notification.ind's one. (OMA-TS-MMS_ENC-V1_3-20110913-A) Test: Manual Change-Id: I250f32b93cdfbed815206543df5486efa4df18eb Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
* AOSP/Messaging - Fix many improperly formatted resource strings in Messaging.Raman Tenneti2019-09-151-14/+14
| | | | | | | | TODO: Need to run translation to fix across all languages. Bug: 135617299 Test: manual - Did a "make -j40" and verified that there are no warnings in strings.xml. Change-Id: I3f993fcea42c041d609e0f714cf3b0a2a6383816
* AOSP/Messaging - Moved LOCAL_COMPATIBILITY_SUITE to tests/Android.mk.Raman Tenneti2019-09-157-4/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + Deleted the unnecessary blankId check. Updated the TODO comment for NUM_TEST_CONVERSATIONS+4. + Added AndroidTest.xml + Added "LOCAL_PROGUARD_ENABLED := disabled" for tests to pass on cf. Bug: 126516784 Test: make messagingtests and tested the messaging UI manually. Ran the following CTS tests on Pixel phone. $ make -j 40 -rw-r--r-- 1 rtenneti primarygroup 8529760 Mar 8 16:46 out/target/product/marlin/system/app/messaging/messaging.apk $ make messagingtests -j -rw-r--r-- 1 rtenneti primarygroup 729713 Mar 13 14:22 out/target/product/marlin/testcases/messagingtests/messagingtests.apk $ adb install -r -d out/target/product/marlin/system/app/messaging/messaging.apk $ adb install -r -d out/target/product/marlin/testcases/messagingtests/messagingtests.apk atest ----- $ cd .../packages/apps/Messaging $ atest ... Results from tests that require device: Summary ------- messagingtests: Passed: 113, Failed: 0, Ignored: 0 All tests passed! acloud test ----------- $ lunch aosp_cf_x86_phone-userdebug $ make -j 40 -rw-r--r-- 1 rtenneti primarygroup 10585182 Mar 15 15:19 ./target/product/vsoc_x86/system/app/messaging/messaging.apk $ make messagingtests -j -rw-r--r-- 1 rtenneti primarygroup 643697 Mar 15 15:57 ./target/product/vsoc_x86/system/app/messagingtests/messagingtests.apk $ acloud reconnect $ adb devices List of devices attached 127.0.0.1:52761 device $ adb install -r -d out/target/product/vsoc_x86/system/app/messaging/messaging.apk $ adb install -r -d out/target/product/vsoc_x86/system/app/messagingtests/messagingtests.apk $ cd packages/apps/Messaging $ atest messagingtests -- --abi x86 --serial 127.0.0.1:52761 Change-Id: I6b1143db6c596805f3c48f310323e0e02d344d00
* AOSP/Messaging - Remove TEST_MAPPING because presubmit tests fail on ↵Raman Tenneti2019-09-151-7/+0
| | | | | | | | | build_target: aosp_cf_x86_phone-userdebug BUG: 126516784 Test: No impact. TEST_MAPPING wasn't enabled before, thus removing the file shouldn't have an impact. Change-Id: Ib206cb6d921b59a032e6557352c6961310b08272
* AOSP/Messaging - Update the Messaging version to 24 until notification ↵Raman Tenneti2019-09-153-8/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | related logic changes are made. Fixes the error "Developer warning for package com.android. messaging failed to post notification on channel null". Bug: 130046636 Test: manual - Tested the messaging UI. Ran the following CTS tests on Pixel phone. $ make -j 40 $ make messagingtests -j $ find out -name "messaging*.apk" -print -exec ls -l {} \; -rw-r--r-- 1 rtenneti primarygroup 8529760 Apr 5 18:50 out/target/product/marlin/system/app/messaging/messaging.apk -rw-r--r-- 1 rtenneti primarygroup 729713 Apr 5 18:54 out/target/product/marlin/testcases/messagingtests/arm64/messagingtests.apk $ adb install -r -d out/target/product/marlin/system/app/messaging/messaging.apk $ adb install -r -d out/target/product/marlin/testcases/messagingtests/arm64/messagingtests.apk $ adb shell am instrument -w com.android.messaging.test Time: 12.766 OK (113 tests) CTS tests for Mesaging app --------------------------- $ ./development/testrunner/runtest.py --path cts/tests/app/src/android/app/cts/NotificationTest.java adb shell am instrument -e class 'android.app.cts.NotificationTest' -w 'android.app.cts/androidx.test.runner.AndroidJUnitRunner' android.app.cts.NotificationTest:........................... Time: 0.2 OK (27 tests) atest ----- $ cd packages/apps/Messaging $ atest Summary ------- messagingtests: Passed: 113, Failed: 0, Ignored: 0 Change-Id: Ic263e2c63d675c40a2cfa1ca0a8776c8e2b510b9
* Messaging: Fix generating id in android namespaceMichael Bestas2019-09-152-3/+3
| | | | | | | | | | Fixes: res/layout/apn_preference_layout.xml:40: warn: generated id 'android:id/title' for external package 'android'. res/layout/apn_preference_layout.xml:48: warn: generated id 'android:id/summary' for external package 'android'. Change-Id: Ia096fa2e072ba4391e3adad52d3f9c9abed0e976
* Snap for 5434517 from 30ca4742926f8f7e2468ee451b4c71df918b6877 to qt-releaseandroid-build-team Robot2019-04-040-0/+0
|\ | | | | | | Change-Id: Icdc61e55c5e2a87e3bea7a4e0704ccc57d6146e9
| * Merge master@5406228 into git_qt-dev-plus-aosp.Bill Rassieur2019-04-030-0/+0
| |\ | | | | | | | | | | | | | | | am: d8430343b6 Change-Id: Ibad0bf0ffdf576321a3762e067dd877e5f4d603f
| | * Merge master@5406228 into git_qt-dev-plus-aosp.Bill Rassieur2019-03-292-5/+0
| | |\ | | |/ | |/| | | | | | | Change-Id: I67f4b680887fa8fc373113d02cb9a1234b2a7353 BUG: 129345239
* | | Snap for 5401728 from 271e79a7cb2cdaa5b6c0b6a60caeb501cc757c92 to qt-releaseandroid-build-team Robot2019-03-232-5/+0
|\| | | | | | | | | | | Change-Id: Idf90d6829fc3c1e772cfc02a9c393aad829d1741
| * | Revert "AOSP/Messaging - Added LOCAL_COMPATIBILITY_SUITE := device-tests to ↵Raman Tenneti2019-03-222-5/+0
| |\ \ | | |/ | |/| | | | | | | | | | | | | | | | fix "Missing test_suite setting for test"." am: 7d08344e9b am: 4909a68c63 am: a75208c630 Change-Id: I4ffb150a38350e47c687771518477df2b2403526
| | * Revert "AOSP/Messaging - Added LOCAL_COMPATIBILITY_SUITE := device-tests to ↵Raman Tenneti2019-03-222-5/+0
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix "Missing test_suite setting for test"." am: 7d08344e9b am: 4909a68c63 Change-Id: Idf4bf179cb51decc6d319252c23236b3be5a0776
| | | * Revert "AOSP/Messaging - Added LOCAL_COMPATIBILITY_SUITE := device-tests to ↵Raman Tenneti2019-03-222-5/+0
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix "Missing test_suite setting for test"." am: 7d08344e9b Change-Id: I718abce9535d773fb02bf23e63b555e47a31c410
| | | | * Revert "AOSP/Messaging - Added LOCAL_COMPATIBILITY_SUITE := device-tests to ↵Raman Tenneti2019-03-222-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix "Missing test_suite setting for test"." This reverts commit bada9f9b46ecd526e478d343eeb80f97962fb0eb. Reason for revert: <INSERT REASONING HERE> Change-Id: I17281de5c14e7c285d263729167f208cbea4f7d5