Commit Graph

7 Commits

Author SHA1 Message Date
Bob Badour d4d38d5e2e [LSC] Add LOCAL_LICENSE_KINDS to packages/services/Telecomm
Added SPDX-license-identifier-Apache-2.0 to:
  Android.bp
  testapps/Android.bp
  testapps/carmodedialer/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: Ie5d06aea794e895202885be54a3e65d71641a74d
2021-02-12 15:08:24 -08:00
Hall Liu 481641d26d Improve implementation of call recording tone
Instead of using a 15-second audio file to play the call recording tone,
clip out the silence in the audio and play it once every 15 seconds.

Also start using mockito-target-extended in Telecom's unit tests so we
can mock out MediaPlayer.

Test: atest CallRecordingTonePlayerTest
Bug: 157948346
Change-Id: I7c3429733bbc7d48e29be12a72c7f15b38699ae6
2020-06-11 12:51:16 -07:00
Muhammad Qureshi faadb975d9 Migrate to TelecomStatsLog from StatsLog
As part of statsd becoming a Mainline module in R, autogenerated
StatsLog.write() calls are going away and replaced by *StatsLog.java
that is autogenerated for each module.
This CL adds autogenerated TelecomStatsLog and replaces usages
of StatsLog with TelecomStatsLog.

Bug: 145952197
Test: m
Test: atest TelecomUnitTests
Change-Id: Idd9ed343a596336b7c56b705cb521c14a7ff2716
2020-01-25 07:51:53 -08:00
Hall Liu 8b141185df Stop linking telephony-common from Telecom
For mainline decoupling, don't link telephony-common anymore. None of
its APIs are being used in Telecom either.

Fixes: 141576016
Test: compiles
Change-Id: I97039ce6aea666f35d83db8dc3cd6ac4ef087bc6
2019-12-02 16:38:51 -08:00
Brad Ebinger 81e8a25abc Restrict calling in favor of emergency calling - Incoming Cases
The first series of CLs (1/2) that allow for better interactions
between emergency calls and incoming call types. This includes:
1) Disconnecting incoming calls and marking them as MISSED if an
outgoing emergency call is placed before the call is set to active.
2) Not allowing the pulling of external calls while an emergency
call is active and showing a Toast.
3) If a call is in AUDIO_PROCESSING state, hang it up in favor of
a new outgoing emergency call (and mark disconnected call as
MISSED if this is during an initial call screen).
4) If a call is in SIMULATED_RINGING state, hang it up in favor of
a new outgoing emergency call.

Bug: 138741228
Test: manual; atest TelecomUnitTests; atest CtsTelecomTestCases
Change-Id: I74d2b174121fb9c6402caf806d20eb6c5226873a
2019-11-12 16:34:15 -08:00
koushik panuganti 5fb849935b Migrate packages/services/Telecomm to androidx.test
See go/jetpack-test-android-migration

Test: mmma packages/services/Telecomm
Change-Id: I7b9049dc66c959de033d42f0b5c2dbd6bdd7bf62
2019-03-20 06:19:46 +00:00
Sasha Smundak 4bef6158e7 Convert Android.mk file to Android.bp
See build/soong/README.md for more information.

Change-Id: I62d300fc7392e49325cb7c209cc0cccd93184a71
Merged-In: I16795323c51914fffcb4be86445da00adfa62fbf
Fixes: 122332723
Test: treehugger
2019-03-13 10:59:12 -07:00