summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/Log.java
AgeCommit message (Collapse)Author
2021-02-25CallDiagnosticService APITyler Gunn
The CallDiagnosticService API is an OEM-backed API which allows an OEM provided app to monitor the state of ongoing telephony calls on the device and to help the user navigate connectivity or audio issues related to these calls. It also provides a means for the app to send and receive device to device messages between devices during an ongoing call (where supported) in order to facilitate a better calling experience. Test: Added new CTS test suite for API. Test: Manual test of CDS behavior using telecom command line option to override the active CDS to the telecom test app implementation. Bug: 163085177 Change-Id: I1f37408d2aa6c630f0f9e3d6b6eb8a390d804d7e
2020-11-04Add maxTargetSdk restriction to unused APIs.Mathew Inwood
These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. Bug: 170729553 Test: Treehugger Merged-In: I626caf7c1fe46c5ab1f39c2895b42a34319f771a Change-Id: I54e5ecd11e76ca1de3c5893e3a98b0108e735413
2020-05-05Improve connection manager logging.Tyler Gunn
1. In ConnectionService, upping the incoming log level to info from debug; this ensures we can better trace whether methods are actually called. 2. Added the ability in the logging class to get a new external session which supplies the owner info which will be passed in to the recipient of the external session. This allows Telecom or a connection manager to pass in a package abbreviation which will form the calling owner info when the receiver continues the external session. 3. Add owner info to the Session.Info class so it can be passed about. 4. Ensure owner info is copied when getting Session.Info; subsessions were not showing the owner info in the past; this corrects that. 5. When retrieving the external session info, creating a "package call stack" with the owner info. This lets us see the hierarchy of where calls originated. Example: cad/cast/ccme Shows that com.android.dialer send a message to com.android.server.telecom which relayed a message to com.connection.manager.example. 6. Start sessions in RemoteConnection API methods and pass along external session info. This bridges session tracing across a connection manager so we can now trace a method call all the way from dialer, through telecom, through the connection manager, and finally into telephony. Test: Manual call testing with connection manager to verify log behavior. Bug: 153899641 Change-Id: I4518a50550203818374b4e0b52eccb84ffd561dc
2020-01-08Use new UnsupportedAppUsage annotation.Artur Satayev
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv \ git diff HEAD^ HEAD | grep '^[+-][^+-]' | grep -v '.import' Change-Id: I853372f3c6fef905553bb31be4f1bb48df735f7a
2019-12-19Revert "Use new UnsupportedAppUsage annotation."Austin Wang
This reverts commit a5264903e22bc741add895133474ea13a370de4c. Reason for revert: Droidcop-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=git_master&target=sdk_phone_armv7-sdk&lkgb=6083299&lkbb=6085371&fkbb=6083313, bug b/146533269 Change-Id: Ie5b031d7b277cf0e09b0a9776b26bf74f5f69e70
2019-12-18Use new UnsupportedAppUsage annotation.Artur Satayev
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv \ git diff HEAD^ HEAD | grep '^[+-][^+-]' | grep -v '.import' Change-Id: I087bb1cecbe59f1cf0c2e770c735d7a433722c6f
2019-03-22Add @UnsupportedAppUsage annotationsAndrei Onea
For packages: android.companion android.filterfw android.hardware.camera2.utils android.inputmethodservice android.net.nsd android.os android.preference android.security.keymaster android.service.dreams android.telecom android.telephony.ims.compat.feature android.telephony android.util android.view.accessibility android.media.effect This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Merged-In: I9c2f8347952f3cc65759472b0e1a2717b285e44e Change-Id: I14793863cf815fa3383fec6c6bf5a9365c2e17eb
2019-02-13Add support for Telecom logging to obfuscate string phone numbers.Tyler Gunn
Test: Manual Bug: 117472746 Change-Id: I48e29fd9a6ab1d41fdefb55393c7c326ec72a87f
2018-04-23Add ability to log last 2 digits of dialed numbers in userdebug builds.Tyler Gunn
Filers of bugs often refer to specific phone numbers. Bug reports by default obscure dialed phone numbers from the Telecom logs. This makes it difficult to relate events in the bug report to what the bug filer refers to. To ease this, in userdebug builds we will now leave the last 2 digits of dialed phone numbers un-obfuscated. User builds will remain obfuscated. Test: Added unit tests to cover this case. Bug: 78457192 Change-Id: I52704cf57ed11b1fa53a55bc883d7d090af661f4
2017-12-22Remove hashing for PII in Telecom LoggingBrad Ebinger
Replaces the MD5 hash for logging PII in Telecom with "***" instead. Test: Manual Bug: 67823981 Change-Id: Ieb089fe806663062a551ce7b9071e8b8f5fa9af7
2017-06-27Only require that system UIDs tag their sockets.Jeff Sharkey
Apps with a normal UID are typically isolated enough to not require socket tagging; we're mostly interested in tracking down internal UIDs that have lots of code sharing the same UID. Also fix up everyone doing manual string checks of Build.TYPE, since we now have first-class fields for those. Bug: 38126076 Test: builds, boots Change-Id: I3a40348196bd8459289f2b9355d9783a07f1e7dd
2017-06-08Increases TC Logging Visibility for testingBrad Ebinger
Test: Run Telecom unit tests. Change-Id: Ie7a61c60f0a7a9bbc024741c668299efafa5e18d
2017-05-19Add ability to dump events in a timeline view.Tyler Gunn
Adding new event dump which shows the events for all call, sorted by time of event. Test: Manual Bug: 38450166 Change-Id: I9fd4ce92bdf62ef48d6940f03db1f2388003e9fc
2017-03-06Disable a phone number log for user buildyouhei.x.miyoshi
A phone number is privacy data. Therefore, it should be prevented from logging in user build. Test: manual - checked log Bug: 34582911 Change-Id: Id040653dbfd236250e7eb07c9c2e9587ded3d63f
2016-11-16Readability improvements in LoggingBrad Ebinger
We now truncate Session method paths and IDs based on the Logging level to improve Session Logging readability in logcat. If another external session is started off of an existing external Session, the preceding histories are replaced with "..." so that the Session information is not overwhelming. Bug: 26571395 Test: Unit Tests and manual tests pass Change-Id: I9ffda3d64f1072fa6228a82a86116a5e47d18c96
2016-10-27Modify AIDLs to include Session.InfoBrad Ebinger
Modifies the IConnectionService.aidl file to include Session.Info information to pass from Telecom to Telephony, which is used to start external Sessions in Telephony from Telecom. Test: Manual testing and Unit Tests pass Bug: 26571395 Change-Id: Ia09a0abfa13d5167542d4c67465ea9aa1930b58b
2016-10-25Add support for starting external SessionsBrad Ebinger
This change adds support for parceling Session Information to be transmitted over AIDLs and starting an external session in the external process. Test: Telecom Unit tests and new SessionManager Tests. Bug: 26571395 Change-Id: Ie27ed88d4a8c344b34568025ddcf150fdcb38d62
2016-10-20Merge "Switch on android.telecom.Log in Telecom"Brad Ebinger
2016-10-19Adds registerSessionListener API to LogBrad Ebinger
Adds the registerSessionListener API to android.telecom.Log to allow callbacks to occur when a session has been fully completed. CP from internal branch. Test: Manual Testing Bug: 26571395 Change-Id: I70ebd6f432768a5d7bd8f3a0997b8e0ef335bb35
2016-10-11Switch on android.telecom.Log in TelecomBrad Ebinger
Move over the Runnable Class into android.telecom and turn on the framework's usage in Telecom. Test: All Telecom unit tests pass. Manual Log testing has also been confirmed to be working as it did before. Bug: 26571395 Change-Id: If7e2036c746c5a953f3a77e2d625a423ce5bf8f3
2016-09-30Transplant the Logging system from TelecomBrad Ebinger
This change is the preliminary transplant of the functionality from Telecom into android.telecom. It is currently not being used anywhere and is not hooked into Telecom yet. It will be after this change is committed. Test: Refactoring CL. Existing tests still pass Bug: 26571395 Change-Id: I406975e686c6eaab7e31b1efa426b3406c8e90cf
2016-03-17Prevent multi-threaded access to digest objectHall Liu
Bug: 27717431 Change-Id: I3ebd1dda7386c35078c0624df1446e64c3fb0aa0
2016-02-25Adding toStrings() to the API.Santos Cordon
Bug: 16979045 Change-Id: Ibbe1bcea6ab7981f62e7fb4bbe35f71e881166bd
2016-02-11Initialize MD5 in logging in backgroundHall Liu
Use a background task to call MessageDigest.getInstance in order to avoid a possible disk read on initialization. Bug: 26069217 Change-Id: I0091ce012bcd811dfca0e85c21a12c54913ed919
2014-09-12Renaming Telecomm to Telecom.Tyler Gunn
- Changing package from android.telecomm to android.telecom - Changing package from com.android.telecomm to com.android.server.telecomm. - Renaming TelecommManager to TelecomManager. Bug: 17364651 Change-Id: I192cb5d189f55db012ea72ee82ccc5aedbc21638