summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* SensitivePhoneNumbers: Fix number comparisonstaging/lineage-15.1Paul Keith2018-01-271-2/+8
| | | | | | | | | | | | * Currently, we just compare the strings for equality, which results in incorrect detection of sensitive nums a lot of the time, because adding (or removing) the country code is enough to make the detection fail, meaning the call to that phone number is logged * Use Android's PhoneNumberUtils comparison method to fix this, since it takes these factors into account Change-Id: I26ac180f8a6552cf87a4bada1d370f0ebb884ee1
* SensitivePhoneNumbers: Handle lists of MCC codesPaul Keith2018-01-271-2/+5
| | | | | | | | * Some countries have multiple MCC codes, so handle it * In the sensitivePN network field, enter the list of MCCs like so: https://review.lineageos.org/178233 Change-Id: I34225473404b2be2640ea9ab05691dc985c49fa0
* (1/2) Make sensitive phone numbers not to be shown in call log history.Olaia Segovia2018-01-274-2/+262
| | | | | | | | | | | | | | | | | Considering sensitive phone numbers to be, hotlines dealing with violence against women. In the EU, these numbers do not show up in the phone bill. In order to avoid these phone numbers to be listed in the Call Log, we have implemented a new XML file which is parsed with phone numbers from different countries to be filtered. This file needs to be copied to device via desired Android.mk file in order to be able to process it. The comparison is made checking the network MCC the SIM is connected to in order to consider roaming and multisim scenarios. Test: CallLogManagerTest.testDontLogCallsToSensitivePhoneNumber PASS Change-Id: I4a59ff0577942ce56924f1a434ae0a3a38eacc62 Signed-off-by: Olaia Segovia <olaia.segovia@bq.com>
* Add back increasing ring feature (3/3).Danny Baumann2017-12-113-2/+48
| | | | Change-Id: I6c0582ff92fea06ee18df6d084790b420b1b58f6
* Telecomm: Squashed phone_type switch supportBruno Martins2017-12-053-4/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * This is still required for some legacy MSIM devices and instructs the audio HAL's MSIM voice extension which VOICE_CALL usecase should be used when placing phone calls. * Current change is based on the following commits, with some slight simplifications and the necessary changes to adapt to the new code. Author: Simon Shields <keepcalm444@gmail.com> Date: Fri Jan 27 22:12:40 2017 +1100 CallAudioModeStateMachineTest: fix compilation Change-Id: Ie58189ce192469762aedfede18db7ce417d86f5d Author: Gabriele M <moto.falcon.git@gmail.com> Date: Tue Jan 3 21:29:12 2017 +0100 Telecomm: Set MSIM audio params using the proper ID It is assumed that the ID of every PhoneAccountHandle is the string equivalent of an int, however, the ID can also includes hex chars or, in case of the emergency account handle, it's just "E". This causes issues when we try to get the sub ID using Integer.parseInt(), so don't do it. Change-Id: Iae6cfacaf65bb2791b6fa9ae491bb4ad6edbe936 Author: hawst1 <hawst1@gmail.com> Date: 2015-11-02 22:39:58 +0700 - Fix SIP soft-reboot on call Change-Id: Ic78c52bbbe6b93b78bfdb8fdef479ef93ce1bd9f Author: Bruno Martins <bgcngm@gmail.com> Date: 2015-08-20 19:38:07 +0100 Telecomm: Avoid NPE when invoking setAudioParameters * This exception would occur when preferred SIM for calls was set to "Ask every time" and if dialog was dismissed before starting the call Change-Id: Iee9968a7ad95fa16a085ecd7e765873904e0b88a Author: Bruno Martins <bgcngm@gmail.com> Date: 2015-08-06 23:26:41 +0100 Telecomm: Make phone_type switch generic Change-Id: I78129aaab82493c1107699932f7ae8d780006c8f Author: ljzyal <ljzyal@gmail.com> Date: Mon Jul 20 17:02:50 2015 +0800 Telecomm: Support Samsung Dual Sims Phone phone_type switch Change-Id: Id6a91a47a5d9ebbb39869a66c05eeec14e1366e2 Change-Id: I65c7137c40cc4200d571cc3e5d8a05e728c51ad7
* Snap for 4399693 from ab00ba951bf9bc7480bc62ea079d14ce90b37dda to oc-mr1-releaseandroid-build-team Robot2017-10-172-6/+6
|\ | | | | | | Change-Id: I953d5fc71640aa0af08562249a7cad93394591c0
| * Import translations. DO NOT MERGEBill Yi2017-10-170-0/+0
| |\ | | | | | | | | | | | | | | | am: b4fc70cf71 -s ours Change-Id: I0365334dd4e2ffc257071cc418b9d8d231a97dbd
| | * Import translations. DO NOT MERGEBill Yi2017-10-165-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import Bug: 64712476 Change-Id: I01678f48f6f6ccc625db4074f5009983470664cd
| * | Import translations. DO NOT MERGEBill Yi2017-10-162-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import Bug: 64712476 Change-Id: I1271631124263fee3d7c16080139c534b950fb9c
* | | Snap for 4388906 from 8768409002d7c0110ad231d2cbef5c7188d2e0e3 to oc-mr1-releaseandroid-build-team Robot2017-10-111-0/+6
|\| | | | | | | | | | | Change-Id: I9a16d1a66ad763bc17f7965c7f6352c622e905b1
| * | This is a partial cherrypick of ag/3005393mike dooley2017-10-091-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It just contains the fix to location permission granting for emergency calls for the case where an emergency call is added to an existing call. The other part of ag/3005393, to enable the feature will be done in ag/3034149 as a config overlay. Bug: 67104002 Test: manual Change-Id: I8c4f308a30b32335718e5909748d3fc84eac7259 Merged-In: I12b1362749ee265557d007a989917339468e9b0d
* | | Snap for 4383937 from f4cc3112101d48b546464bfb8766e6d8d6e6ae14 to oc-mr1-releaseandroid-build-team Robot2017-10-083-86/+171
|\| | | | | | | | | | | Change-Id: Ibf20a8ed5efcdfbb30d71b997bb32d886f05805c
| * | Fix NPE in TelecomManager#isOutgoingCallAllowedTyler Gunn2017-10-063-86/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a potential for a NPE if "excludeCall" is null. Adding null check and unit tests to verify operation of the isOutgoingCallAllowed API, as well as basic outgoing self-managed calls (which rely on this API). Test: Added unit tests. Change-Id: Ia5e92a7cb418af0d131daa2ca88b7cd4d36ab057 Fixes: 67495237
* | | release-request-787c7134-f106-4590-90f7-0fb685b91259-for-git_oc-mr1-release- ↵android-build-team Robot2017-09-263-16/+41
|\| | | | | | | | | | | | | | | | | 4360035 snap-temp-L24200000106060350 Change-Id: I6a835b48efef1d13f9d0cbefd6132f44f9808ac4
| * | Merge "Mark phone number in block dialog and toast as LTR" into oc-mr1-devTreeHugger Robot2017-09-252-13/+20
| |\ \
| | * | Mark phone number in block dialog and toast as LTRTa-wei Yen2017-09-182-13/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Screenshots: https://screenshot.googleplex.com/7o6Kg3F3wxw https://screenshot.googleplex.com/on5MYpCmVDQ https://screenshot.googleplex.com/zQ5voeokptq Change-Id: I39f738433b58135b7059953597e0e72dc9351c4b Fixes: 30130422 Test: manual
| * | | Merge "Prevent NewOutgoingCallBroadcast from being sent for self-managed ↵TreeHugger Robot2017-09-251-3/+21
| |\ \ \ | | | | | | | | | | | | | | | calls." into oc-mr1-dev
| | * | | Prevent NewOutgoingCallBroadcast from being sent for self-managed calls.Tyler Gunn2017-09-221-3/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When sending a self-managed call, prevent the new outgoing call broadcast from being sent. It realistically has no business being sent for self managed calls. Test: Used Duo and Voice APKs to reproduce issue. Verified this fix corrects it. Bug: 66671858 Change-Id: I7b5272f03bd174100cd2e12641524f4adfc1892f
* | | | | release-request-1f2fcfef-9736-44dc-8628-3ba96dac60db-for-git_oc-mr1-release- ↵android-build-team Robot2017-09-173-5/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4343541 snap-temp-L73700000103533431 Change-Id: I45b84a4dce6951a7710882676370dc08205dd160
| * | | | Import translations. DO NOT MERGEBill Yi2017-09-163-5/+5
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import Bug: 64712476 Change-Id: I11ad22a0680ac04b40bd445e96efcc78498fcfe9
* | | | release-request-fd631211-effa-4885-9314-559fcbd0a094-for-git_oc-mr1-release- ↵android-build-team Robot2017-08-311-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | 4308825 snap-temp-L52700000098265170 Change-Id: Ia9760a971dff81832ec7ca4a7d64311f191af8ab
| * | | Merge "Import translations. DO NOT MERGE" into oc-mr1-devTreeHugger Robot2017-08-301-1/+1
| |\ \ \
| | * | | Import translations. DO NOT MERGEBill Yi2017-08-301-1/+1
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import Bug: 64712476 Change-Id: I43646e11707ba867a76c1f0a8cefe3ba4eb2ab75
* | | | release-request-81b48854-d0e0-49af-bcf2-857273cbb8dc-for-git_oc-mr1-release- ↵android-build-team Robot2017-08-309-52/+194
|\| | | | | | | | | | | | | | | | | | | | | | | 4306444 snap-temp-L17300000097872583 Change-Id: I090a570348ea7524b42a2c60905c4fa4adf10960
| * | | Merge "Fix RTL numbers in BlockedNumbersActivity" into oc-mr1-devTa-wei Yen2017-08-291-2/+2
| |\ \ \
| | * | | Fix RTL numbers in BlockedNumbersActivityTa-wei Yen2017-08-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Phone numbers should always be LTR. Also removed layout_toStartOf since it is redundant in LTR, and will cause phone numbers to align to the left on RTL RTL: https://screenshot.googleplex.com/ZC7FpJp23ET LTR: https://screenshot.googleplex.com/hGoRSJjgyJ1 Before: https://screenshot.googleplex.com/mt1XLgUusFX Test: manual Change-Id: I3381ecb229600563df8ca3dca4f7c1810f6e330d Fixes: 30130422
| * | | | Change getAgeMillis to use elapsed system time instead of wall-clock time.Tyler Gunn2017-08-288-50/+192
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changing getAgeMillis to rely on SystemClock#elapsedRealtime() to determine the duration of a call. This ensures that changes to the device time zone, clock updates by the network and user initiated time changes to not impact the duration of calls in the call log. Test: Manual, unit Bug: 64068300 Merged-In: I62924dc7889c86a7457d05f8fbb20ab8189ece1a Change-Id: I62924dc7889c86a7457d05f8fbb20ab8189ece1a (cherry picked from commit 6c3a2dd68c9ac5584f48cf5f62fa01896fccdc7d)
* | | | release-request-c924aaac-f0a2-4215-8dc4-e314f22460d9-for-git_oc-mr1-release- ↵android-build-team Robot2017-08-283-14/+30
|\| | | | | | | | | | | | | | | | | | | | | | | 4301796 snap-temp-L23200000097143969 Change-Id: I9e9340c9b7eecea526f4943623b09beb1b08df3a
| * | | Merge "Include Bluetooth in baseline route calculations" into oc-mr1-devHall Liu2017-08-253-14/+30
| |\ \ \
| | * | | Include Bluetooth in baseline route calculationsHall Liu2017-08-223-14/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Include Bluetooth in baseline route calculations to handle the scenario where a wired headset is connected-and-disconnected while a call is on bluetooth. Change-Id: Ia4e4f499f1eef74e9f67c5c06e21e04befa9adfd Fixes: 62391035 Test: ran unit tests
* | | | | release-request-6c9f747d-7df5-465f-8bde-1149394b99b4-for-git_oc-mr1-release- ↵android-build-team Robot2017-08-241-0/+11
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4296189 snap-temp-L54400000096309002 Change-Id: I6871d87c28cd2d8da054aa09cfcf12de3fd40f29
| * | | | Merge "Disconnect calls from other CS when hanging over to a self-mgd CS." ↵TreeHugger Robot2017-08-231-0/+11
| |\ \ \ \ | | |/ / / | |/| | | | | | | | into oc-mr1-dev
| | * | | Disconnect calls from other CS when hanging over to a self-mgd CS.Tyler Gunn2017-08-231-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When handing over to a self-maanged ConnectionService, automatically disconnect the other ongoing calls in other ConnectionServices. Test: Manual Change-Id: I4d5d51b2ec288fc4fd9c99751654c54f6c8539d6 Fixes: 63154841
* | | | | release-request-cff6d9b6-a564-4d17-99cb-c2d0bb282758-for-git_oc-mr1-release- ↵android-build-team Robot2017-08-232-6/+66
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4293817 snap-temp-L12800000095933585 Change-Id: I48612457d29347d584a6cde3dd7d2e449ea37dd7
| * | | | Ensure that audio routes are properly loggedHall Liu2017-08-182-6/+66
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make sure that the first audio route is logged in analytics. Change-Id: I04820ba37ccf160490ed3bd87db4c34769b4aa05 Fixes: 64584823 Test: unit
* | | | release-request-369362fc-cc6c-4cb1-95c0-90b5ac7c52cb-for-git_oc-mr1-release- ↵android-build-team Robot2017-08-201-5/+1
|\| | | | | | | | | | | | | | | | | | | | | | | 4288633 snap-temp-L81700000095141745 Change-Id: I86506cc952c579c99f58822e34e342220c8ff6ba
| * | | Merge "Change testapps to account for API change" into oc-mr1-devHall Liu2017-08-171-5/+1
| |\ \ \
| | * | | Change testapps to account for API changeHall Liu2017-08-141-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: builds Bug: 63769529 Change-Id: I8f4dbc8443a33b6358062a6f299192c9d50ffd1e
* | | | | release-request-edd71ba9-6f93-47be-957d-774c9d43a2dc-for-git_oc-mr1-release- ↵android-build-team Robot2017-08-175-73/+186
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4281935 snap-temp-L68100000094184972 Change-Id: I8e26fd58f8d74e94782aa81ac7b2b9740132bbb6
| * | | | Merge "Handle Telecom binder death." into oc-mr1-devTreeHugger Robot2017-08-164-41/+86
| |\ \ \ \
| | * | | | Handle Telecom binder death.Tyler Gunn2017-08-144-41/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are instances where a ConnectionService dies, but we don't get the onServiceDisconnected callback. This is most common in catastrophic crashes of a ConnectionService. The result of this is that the calls associated with that CS get orphaned in Telecom and never cleaned up. Added a ServiceDeathRecipient implementation to ServiceBinder in Telecom so that death of a CS is always caught. Also made some logging changes to ensure we can more easily see when a CS dies unexpectedly and why its calls were disconnected. Fixed an issue where DtmfLocalTonePlayer was not finishing its subsession. Test: Manual Bug: 62912175 Change-Id: I5099592ec781af46c9d123ef2c53f48846b9ec19
| * | | | | Merge "Enforce MODIFY_PHONE_STATE for TelecomManager system APIs." into ↵Tyler Gunn2017-08-161-32/+100
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | oc-mr1-dev
| | * | | | | Enforce MODIFY_PHONE_STATE for TelecomManager system APIs.Tyler Gunn2017-08-141-32/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enforcing system-only permissions for TelecomManager APIs (see the bug for rationale as to why some methods do not have the permission enforced). Test: Manual / GTS Change-Id: I3f76602820c772b763f453a216d041454e3b94e6 Fixes: 62347125
* | | | | | | release-request-a0f7506a-1cd6-4a03-927b-8d29e0c545e6-for-git_oc-mr1-release- ↵android-build-team Robot2017-08-162-1/+87
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4277764 snap-temp-L23600000093606242 Change-Id: I141a4bc9a0032c1604f32d623dbd3d474d0739fd
| * | | | | | Import translations. DO NOT MERGEBill Yi2017-08-152-1/+87
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import Bug: 64712476 Change-Id: Ieec4030ec6242a7153b15913e211a3616c0ef18e
* | | | | | release-request-68cc9b2a-98ae-4fbf-8b56-3e535855f399-for-git_oc-mr1-release- ↵android-build-team Robot2017-08-131-1/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4269864 snap-temp-L25700000092502312 Change-Id: Ic37f330e159d14aba1b7287e10240a2f3bc09745
| * | | | | Merge "Avoid telecom crash" into oc-mr1-devTreeHugger Robot2017-08-101-1/+3
| |\ \ \ \ \
| | * | | | | Avoid telecom crashxulicheng2017-08-101-1/+3
| | | |/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mRingingCalls may not have call when startCallWaiting be invoked Test: Build Bug: https://issuetracker.google.com/issues/63908285 Bug: 64542222 Change-Id: I3e3c7a7c7286fddafda27913611e84adf55c908b Signed-off-by: xulicheng <xulicheng@xiaomi.com>
* | | | | | release-request-ddf09bbc-6509-421f-8fa6-f8ae07cdafea-for-git_oc-mr1-release- ↵android-build-team Robot2017-08-072-1/+87
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4250733 snap-temp-L31300000089845305 Change-Id: Ia4be103ada1d71f7acda1758e8b9daa1d5fb56b7
| * | | | | Import translations. DO NOT MERGEBill Yi2017-08-062-1/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I89960815f1190095593fdd1072f8eaf1e40f424b Auto-generated-cl: translation import Exempt-From-Owner-Approval: translation import