summaryrefslogtreecommitdiffstats
path: root/java/com/android/dialer/calldetails
Commit message (Collapse)AuthorAgeFilesLines
* Refactor call recording to use MediaProvider.Danny Baumann2020-06-041-5/+6
| | | | Change-Id: Id53d43d8bf10715a1597ff754f6c38a992302190
* Automatic translation importMichael Bestas2020-04-2344-42/+44
| | | | Change-Id: I0597dbb5ea12511c347c1bd08c2a12db5d57bd81
* Automatic translation importMichael Bestas2020-03-302-2/+0
| | | | Change-Id: Ifbdc6aebc704856135923f66d6e2d3235655785b
* Automatic translation importMichael Bestas2020-01-2744-0/+1081
| | | | Change-Id: I27570067fb094bbcc5b4bb6d72755fcd6ff9cf0b
* Allow per-call account selection.Danny Baumann2019-12-111-1/+20
| | | | Change-Id: Ieac27294f4069b2cff17bb39a0954f74320ad943
* Re-add call recording.Danny Baumann2019-12-1110-15/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Author: Danny Baumann <dannybaumann@web.de> Date: Mon Jul 9 11:19:24 2018 +0200 Re-add call recording. Change-Id: I53fadf5754b5b6cc3e9920d57480e470e2305ac0 Author: Markus Gruber <gruberma@outlook.at> Date: Sat Oct 13 09:17:01 2018 +0200 Allow call recording for Austria * Call recording is legal in Austria, so it should be available in the UI Change-Id: Iaae0b222d2a1108572832732471e7e063f84dd1f Author: Alexandre Pary <alexandre.pary@gmail.com> Date: Wed Oct 17 11:33:35 2018 +0200 Allow call recording for Belgium * Call recording is legal in Belgium, so it should be available in the UI Change-Id: I0d18c5c31aa5fbde08a849932ac0c8088508dbd8 Author: Arekusu Rin <alexmatteotv@gmail.com> Date: Thu Oct 18 10:20:42 2018 +0200 Allow call recording for Bulgaria. * Call recording is legal, subject to certain restrictions, in Bulgaria. Call recording without notification or one side's consent is not a criminal offense, and only affects the admissibility of said call recording as evidence. Change-Id: Ie35f23056914fb2e7639ea509675e21e7fdfab26 (cherry picked from commit 4cec325c31dbe5894ab576b6161065ad0458612d) Author: Bruno Martins <bgcngm@gmail.com> Date: Tue Oct 23 21:03:47 2018 +0100 res: Fix malformed XML * The legal precedent source URL includes double dashes and breaks aapt2 compilation. Replace it by a shortened one. Change-Id: Ic1cb1b6af16d27649e36478ca7597b78b93b1338 Author: Arekusu Rin <alexmatteotv@gmail.com> Date: Thu Oct 25 12:50:57 2018 +0200 Enable or disable call recording for numerous countries via MCC. * This change handles call recording within the Dialer. Changes were made to the template of all of the XML files, and all links were changed to https, where possible. Quotes of the precedents and/or laws can be found within each country's XML file. Countries' whose status was not changed are not explicitly mentioned below, despite any changes to their files. * Call recording is disabled for: Andorra, Iceland, Indonesia, Monaco, Switzerland, the United States of America and some of its territories - Guam, Northern Mariana Islands, Puerto Rico and the United States Virgin Islands. * Call recording is enabled for: Albania, American Samoa, Argentina, Armenia, Aruba, Belarus, Bonaire, Bosnia and Herzegovina, Brazil, Canada, Chile, Croatia, Curaçao, Cyprus, Estonia, Faroe Islands, French Guiana, French Polynesia, Georgia, Greece, Greenland, Guadeloupe, Hungary, India, Ireland, Israel, Japan, Kosovo, Latvia, Liechtenstein, Lithuania, Luxembourg, Malta, Martinique, Mayotte, Moldova, Montenegro, Morocco, New Caledonia, New Zealand, North Macedonia, Peru, Russia, Réunion, Saba, Saint Barthélemy, Saint-Martin, Saint-Pierre-et-Miquelon, Serbia, Singapore, Sint Eustatius, Sint Maarten, Slovakia, Slovenia, South Africa, South Korea, Turkey, Ukraine and Wallis-et-Futuna. Change-Id: Iba5b7028d26cac281099f81bf3d5c21e2ee4d1a9 Author: Arekusu Rin <alexmatteotv@gmail.com> Date: Wed Jun 12 09:58:05 2019 +0200 Enable Call Recording for Sri Lanka and Costa Rica. * Call recording is enabled for: Sri Lanka (413) and Costa Rica (712). * Fixes: Removed newline from Belgium (206) and space from Russia (250). Change-Id: I4c9ecf41e9fd472b97fff5cd03800414737be87a Change-Id: Ie9e0af8ccadb1bab1c52a5d905344d0c8fcab92c
* Apply application theme to call details.Eric Erfanian2018-08-081-0/+2
| | | | | | Bug: 111437430 Test: make Change-Id: Ib6658962f5339c33a28e326fb0478d2f4df786bd
* Update translation strings.Eric Erfanian2018-07-1082-2460/+1394
| | | | | Test: make Change-Id: Ib75f4f25e91067311de244d7f1fb95bc898aec22
* Move contacts.commons.R to dialer.contacts.resourcestwyen2018-06-261-1/+1
| | | | | | | | | | | This reduces dependency on contacts.common which is full of things that should not be there. Ideally resources inside dialer.contacts.resources should be individually moved to appropriate locations, but the resources are too large to work with. TEST=TAP Test: TAP PiperOrigin-RevId: 202029832 Change-Id: I95bfcb59799b9c3640de03ad0680624fc1b2c3a3
* Solve BiDi problem when phone number is concatenated with RTL-stringlinyuh2018-06-012-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Solves BiDi problem that might cause phone number to be displayed incorrectly in the dialer. Issue might occur when a phone number is concatenated with a custom number label containing an RTL-string. Solved by changing affected labels from TextView to BidiTextView. Removed function spanDisplayNumber in BottomRow which are now obsolete. Updates the DialerBidiFormatter to prevent whitespace to be misplaced within a BidiTextView. BUG=78464687 TEST=Manual Public-Origin-Change-Id: I789a6f76a5ca805c03a437813ce627eef7a0bf2e Signed-off-by: Linyu He <linyuh@google.com> Author: Torbjorn Eklund <torbjorn.eklund@sony.com> Bug: 78464687 Test: Manual PiperOrigin-RevId: 198823629 Change-Id: Id35c3ebf514609b4a1fe10a7ae5a297bde7c7456
* UI fixes for emergency numbers in the old call log.linyuh2018-06-011-13/+20
| | | | | | | Bug: 80426301,80426768 Test: Manual PiperOrigin-RevId: 198783744 Change-Id: Ib704a710680b3cf18e4c3c91cd48e7b8491671ff
* Accommodate long call time text in call details.linyuh2018-06-011-1/+2
| | | | | | | Bug: 80408178 Test: Manual PiperOrigin-RevId: 198485864 Change-Id: I72fa8bdbf9e600daad9be8c6466e2ae6bf2f42f6
* Converted ThemeUtil into a DaggerModule.calderwoodra2018-05-291-1/+2
| | | | | | | | | This enables us to have Google-Sans font in GoogleDialer and Roboto in AOSP. Bug: 79883035 Test: tap PiperOrigin-RevId: 197774497 Change-Id: I1d490ab196a444c62e439444627d659fc42973ea
* Delete AppCompatConstantslinyuh2018-05-291-8/+7
| | | | | | Test: Existing tests PiperOrigin-RevId: 197681266 Change-Id: I27fdda1d5c252993795b6eb860663c8cab0d363c
* Began implementation of Dialer dark theme.calderwoodra2018-05-298-28/+26
| | | | | | | | | | | | - README on how to properly theme Dialer going forward. - Migrated all widgets to use global colors. - Removed all activity and application themes where it wasn't necessary. - Added themeing test rule for Espresso tests. Bug: 79883035 Test: tap PiperOrigin-RevId: 197634256 Change-Id: I4b7d94d45aeeb59d484b0069fdd1e200a654910b
* Implement a global theme to be easily configured in Dialer.calderwoodra2018-05-216-16/+31
| | | | | | | | | | | | | | | deleted several colors and unified them across the app migrated several alert dialogs to support alert dialogs added many todos migrated several tests from GoogleRobolectricTestRunner to RobolectricTestRunner Because of the test migration: - moved dialpad theme attributes into dialpad/theme - moved incall ui theme attributes into incallui/theme Bug: 79883035 Test: tap PiperOrigin-RevId: 197246477 Change-Id: Ifc534793bc32757bbbf2007a7c40287c8d0817ad
* Place Duo calls with PreCalltwyen2018-05-091-19/+5
| | | | | | | | | | This CL consolidates common duo calling operations into precall, including checking reachability, falling back to carrier video call, placing the call to duo with startActivityForResult. TEST=TAP Bug: 78783816 Test: TAP PiperOrigin-RevId: 195742478 Change-Id: I9fea1e4999f604e1f3a153b28079cd0db77b7393
* Show calls to/from emergency numbers as "Emergency number" in call log & ↵linyuh2018-05-091-1/+7
| | | | | | | | | call details Bug: 71719349 Test: CallLogEntryText PiperOrigin-RevId: 195444242 Change-Id: I62268c02ef7ad277364869e713a1d58ab1928e7e
* Remove TODOs for showing SIM info in the bottom sheet & call details.linyuh2018-05-042-4/+0
| | | | | | | Bug: 74522027 Test: None PiperOrigin-RevId: 195439124 Change-Id: Ibab0bc7e58bd1b23255d9af476c5b98ed89f13fa
* Merge changes I481fbbc7,I57e48b5d,Ieb52489b,I2763ddd9android-build-prod (mdb)2018-05-041-4/+4
|\ | | | | | | | | | | | | | | * changes: Translation tweaks. Migrated context menu to be a PopupMenu instead. Add column for call mapping id to AnnotatedCallLog database. Don't force open keyboard when RTT is active.
| * Add column for call mapping id to AnnotatedCallLog database.wangqi2018-05-041-4/+4
| | | | | | | | | | | | | | | | | | | | | | This will ensure call mapping used by RTT etc. won't break when migrating to new way to generate the call mapping id since they are stored in the database already. Bug: 77717594 Test: unit tests PiperOrigin-RevId: 195132562 Change-Id: Ieb52489b19b37ac2701967eb570a96457ceed4c0
* | Replace DuoConstants with interface.twyen2018-05-043-12/+10
|/ | | | | | | | | | They are not constant across different Duo implementations. TEST=TAP Bug: 76430187,78783816 Test: TAP PiperOrigin-RevId: 195001650 Change-Id: I4356d04c9eeac50fefd41e1142f3123591e93bc0
* Fix bug that transcript button is visible for voice call.wangqi2018-04-301-0/+2
| | | | | | | Bug: 78653623 Test: manual PiperOrigin-RevId: 194851988 Change-Id: I55f75dc35ffc4fb0638dfc1727a1cd554fa67cdb
* Change RttTransciptUtil methods to return ListenableFuture.wangqi2018-04-191-26/+13
| | | | | | | Bug: 70177426 Test: RttTranscriptUtilTest PiperOrigin-RevId: 193549902 Change-Id: Icb10e44edf32ef7913783628b38861465d0f6c93
* Add RTT transcript screen.wangqi2018-04-179-4/+127
| | | | | | | Bug: 67596257 Test: CallDetailsCursorLoaderTest PiperOrigin-RevId: 193259769 Change-Id: I8c6a8eb9a6bf06e9c1c25c45fc035f8db8ae5a65
* Fix bug that new call details is empty.wangqi2018-04-163-2/+7
| | | | | | | | RTT transcript needs to be loaded after call details is loaded. Test: OldCallDetailsActivityTest,CallDetailsActivityTest PiperOrigin-RevId: 193113115 Change-Id: I86e64ac00b17549864ed0778f79ec3aee58b7a1a
* Add RTT transcript to call details.wangqi2018-04-128-15/+112
| | | | | | | | | | 1. Save RTT transcript when call is destroyed 2. Show RTT transcript link when it's available Bug: 67596257,77717594 Test: manual PiperOrigin-RevId: 192673172 Change-Id: If541ad9137c965166548d2fb449e835b95566727
* Add RTT icon to RTT call log.wangqi2018-04-101-0/+4
| | | | | | | | | | This is for old call log UI. This change also improves scaling for vector drawable icons. Bug: 67596257 Test: manual PiperOrigin-RevId: 192359601 Change-Id: I3322fe08b668f01c1e3a7ce3264c2988e2703aae
* Correctly display phone numbers containing whitespaces in RTL context.linyuh2018-03-262-2/+3
| | | | | | | Bug: 74421656 Test: DialerBidiFormatterTest PiperOrigin-RevId: 190154072 Change-Id: Ic7cb3be702dd28b07b6e5e1e6d89f75f0bb12655
* Restore delete call log item logging in call details.calderwoodra2018-03-151-0/+1
| | | | | | | | | | This was accidentally removed in cl/176677167. This change restores the logging in call details and also adds it to the call log menu. Bug: 73774284 Test: OldCallDetailsActivityIntegrationTest, CallLogActivityIntegrationTest PiperOrigin-RevId: 189279107 Change-Id: Iadda16d7f1e4d720f828b5a72f210bcb8029f939
* Introduce GlidePhotoManager to CallDetailsActivitylinyuh2018-03-154-15/+72
| | | | | | | Bug: 74202944 Test: ModulesTest, CallDetailsActivityTest PiperOrigin-RevId: 189204143 Change-Id: I917bac76009522c6a99fdb63299556ec2a454dfa
* Split CallDetailsActivitylinyuh2018-03-1412-576/+895
| | | | | | | Bug: 74202944 Test: Existing tests PiperOrigin-RevId: 189095432 Change-Id: I13015ee6c5767edd95b78c3fb2e7338495e9e1d7
* Move assisted dialing out of P.erfanian2018-03-021-8/+0
| | | | | | | Bug: 73727182 Test: tested PiperOrigin-RevId: 187673539 Change-Id: I9c790e912990fb8dc46da1c1057339c979ac9501
* Allow delete of Restricted number entriesroldenburg2018-01-301-3/+2
| | | | | | | Bug: 72639087 Test: CallDetailsActivityTest PiperOrigin-RevId: 183872706 Change-Id: I2c3241b3b9059fe4ed82d79902a474df3d5975a4
* Reworked the internals of DialerPhoneNumber.zachh2018-01-261-6/+13
| | | | | | | | | It turns out the storing the libphonenumber representation of the number is not particularly useful because even formatting these objects cannot be done on the main thread. Rather than propagate the requirement of using PhoneNumberUtil (and background threads by extension) in the call log UI, we now just store a dialer-normalized version of the number which contains all information required by the UI in a way that allows us to avoid any background work in the UI code. Bug: 72563861 Test: existing PiperOrigin-RevId: 183463907 Change-Id: I4bdadaccb7a84033b3c72c54fe3833064f587ee3
* Link to the correct Assisted Dialing settings depending on platform version.erfanian2018-01-241-2/+10
| | | | | | | Bug: 72162646 Test: unit tests PiperOrigin-RevId: 183134859 Change-Id: I73d3349f0ff33188cfe0a121b7737a57155683c7
* Correctly show the contact's photo in CallDetailsActivity when launched from ↵linyuh2018-01-171-2/+2
| | | | | | | | | the new call log. Bug: 70218437,71867391 Test: ModulesTest & Manual PiperOrigin-RevId: 182233967 Change-Id: I6eb4bf236230eee6bbecc99b128fef5afddfd1e9
* Fix the crash when deleting call details if CallDetailsActivity is launched ↵linyuh2018-01-041-0/+13
| | | | | | | | | from the new call log. Bug: 70218437 Test: Manual PiperOrigin-RevId: 180843892 Change-Id: Id4c582457bae90327f41b1c6431eff1385bdfd35
* Support assisted dialing in CallDetailsActivity when launched from the new ↵linyuh2018-01-021-1/+1
| | | | | | | | | call log UI. Bug: 70218437 Test: ModulesTest PiperOrigin-RevId: 180577770 Change-Id: Idbfe48ea22d422c90d970d633a952a7200f49f82
* Integrate CallDetailsActivity with the new call log UI.linyuh2017-12-133-10/+240
| | | | | | | Bug: 70218437 Test: CallDetailsActivityTest, CallDetailsCursorLoaderTest, ModulesTest PiperOrigin-RevId: 178918820 Change-Id: Ib8034190550e8ca8e6e7fd9ce521bfadc73e834f
* Add Assisted Dialing Call Details Implementation.erfanian2017-12-076-36/+207
| | | | | | | | | | | | | | | | This includes all of the work specified in the UX layouts, with the exception of the parenthetical country code. Because the canonical mapping of dial prefixes to country codes is not contained in this package, some thought needs to be given on the best way to implement this part of the spec. This change also introduces a fallback error text, in case the client experiences bad data from the call log. Test: new unit tests PiperOrigin-RevId: 178038123 Change-Id: I88eec72a73820e092f24c5f53ee9520a42486ada
* Grouping each listener's logic in an inner class in CallDetailsActivity.linyuh2017-12-071-120/+190
| | | | | | | Bug: 70218437 Test: Existing tests PiperOrigin-RevId: 178029820 Change-Id: I60afe7c6d61a61ce4aa2fd2e30fbd5d869072930
* Allow deleting a call log entry in the call log UI and the call details UI.linyuh2017-11-226-59/+92
| | | | | | | | | | | | | | | In the call log UI, an entry can be deleted by selecting "delete" in its context menu. In the call details UI, a "delete" button is added at the bottom. The "delete" icon at the top right of the call details UI is removed. Public-Origin-Change-Id: Iabe1310fb9a97a277cf482a3fd61ffccbec125fe Signed-off-by: Linyu He <linyuh@google.com> Author: Masafumi Miya <masafumi.miya@sony.com> Bug: 38188896 Test: CallLogActivityIntegrationTest, CallDetailsActivityIntegrationTest PiperOrigin-RevId: 176677167 Change-Id: I2e31cd112efdfb83393f5e68ce016dcf36ac4858
* Hook up pre-call actionstwyen2017-11-111-5/+4
| | | | | | | | | This CL replaces all instance of CallIntentBuilder.build() with PreCall.getIntent(), which when run as an activity, will finish building the intent with user interaction. Bug: 64216442 Test: manual PiperOrigin-RevId: 174924323 Change-Id: If41868df4c7ed078d03bd3431fa85b8947056a01
* Make CallIntentBuilder parcelabletwyen2017-11-111-6/+1
| | | | | | | | | | | | | Multi-SIM and several other new features requires additional user input (ie. select the phone account to call with) or processing (ie. rewrite phone number for assisted dialing) before the call is actually made. The plan is to use a chain of pre-call actions to complete the dialing infomation,with the CallIntentBuilder holding the intermediate steps. For example, a pre-call action can examine the CallIntentBuilder and figure that the PhoneAccountHandle cannot be inferred, and show a dialog for the user the select it. Only after pre-call actions are completed, the intent is built and sent to telecom. Since pre-call actions involves dialogs and the process can be interrupted, the CallIntentBuilder must be persistable so the state can be restored. This CL made it parcelable so it can be stored with onSaveInstanceState(). The AssistedDialingMediator in CallIntentBuilder is temporarily removed as it would be called using a pre-call action in a future CL. Bug: 64216442 Test: CallIntentBuilderTest PiperOrigin-RevId: 174902775 Change-Id: Icf2f8fae620868d1a2f5acf0d08ae0a6bec4fb76
* Show HD icon in call logs.wangqi2017-11-031-1/+2
| | | | | | | | | | | | | | | | | | This change removes restriction of showing HD icon only for some Motorola devices. After this change, any devices writing android.provider.CallLog.Calls.FEATURES_HD_CALL into call logs' feature will be able to show HD icon. To be able to write HD features into call logs, both CarrierConfigManager#KEY_DISPLAY_HD_AUDIO_PROPERTY_BOOL and CarrierConfigManager#KEY_IDENTIFY_HIGH_DEFINITION_CALLS_IN_CALL_LOG_BOOL must be enabled. It's part of upstream change to enable HD icon in call logs: https://android-review.googlesource.com/#/q/topic:hd_icon_call_log Bug: 68108125 Test: none PiperOrigin-RevId: 174091763 Change-Id: I17c62153ebbc866c91acdaa7a7fcbd124594772b
* Rename the new bubble package name from "bubble" to "newbubble".Eric Erfanian2017-10-241-1/+1
| | | | | | | | It fixes AOSP for package name conflict. Test: manual PiperOrigin-RevId: 173298696 Change-Id: Id10ebe0bcf029e61f65cf6580c7198abd8395081
* Rename Lightbringer to Duoroldenburg2017-10-165-20/+17
| | | | | | | | | | | Now that our Duo integration is public, we no longer need a code name. To avoid any disruption, logging and config related names were not changed. Bug: 63753964 Test: manual, existing tests PiperOrigin-RevId: 172172738 Change-Id: Ib9d3d80761944d850c8c4886def9fef9a28539a4
* Added basic bottom sheet to new call log.Zachary Heidepriem2017-10-112-4/+4
| | | | | | | | | | | | | | | | | Also added ability to click on row to call. Required plumbing through the original phone number and phone account info through AnnotatedCallLog and CoalescedAnnotatedCallLog, so that clicking to dial doesn't require an additional lookup. Required some refactoring: -created autovalue for CoalescedRow. -created autovalue for ContactPrimaryActionInfo and use it in ContactActionBottomSheet -moved logic for building primary and secondary text into CallLogUtils so it can be shared between call log list and bottom sheets -moved clipboard logic to own package for copying numbers Bug: 34672501 Test: unit PiperOrigin-RevId: 171760252 Change-Id: I645d89974460b611c1d9668c3ca3e50a716c7f8f
* Set an appropriate icon for the call detail UI's callback button.linyuh2017-10-113-27/+145
| | | | | | | | | cl/170943038 groups calls in the call log according to their corresponding actions (Lightbringer, IMS, and voice). This way calls in the call detail UI are in the same category and an appropriate icon can be set. Bug: 66026167 Test: CallDetailsActivityTest.callbackButtonLoggedForLightbringerCall, CallDetailsActivityTest.callbackButtonLoggedForVideoCall, CallDetailsActivityTest.callbackButtonLoggedForVoiceCall PiperOrigin-RevId: 171703514 Change-Id: I534e1d22f1355f261105a6bde74285403fc9ed87