summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/Log.java
Commit message (Collapse)AuthorAgeFilesLines
* fix log spewing coming from Telecom#LogUtilsThomas Stuart2022-04-301-0/+19
| | | | | | | | | | | | LogUtils was causing a ~7k line log spew in the utomation tests. new var created in Telecom Log Frameworks file that can gate ceratin lines causing log spew. bug: 224667124 Test: manual, looked through test logs and log spew lines removed Change-Id: I5aac180832c0c26af201d1286727cc3e9c67d207
* CallDiagnosticService APITyler Gunn2021-02-251-1/+1
| | | | | | | | | | | | | | | | 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
* Add maxTargetSdk restriction to unused APIs.Mathew Inwood2020-11-041-2/+2
| | | | | | | | | | | 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
* Improve connection manager logging.Tyler Gunn2020-05-051-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Use new UnsupportedAppUsage annotation.Artur Satayev2020-01-081-1/+1
| | | | | | | | | | 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
* Revert "Use new UnsupportedAppUsage annotation."Austin Wang2019-12-191-1/+1
| | | | | | | | 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
* Use new UnsupportedAppUsage annotation.Artur Satayev2019-12-181-1/+1
| | | | | | | | | 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
* Add @UnsupportedAppUsage annotationsAndrei Onea2019-03-221-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add support for Telecom logging to obfuscate string phone numbers.Tyler Gunn2019-02-131-13/+29
| | | | | | Test: Manual Bug: 117472746 Change-Id: I48e29fd9a6ab1d41fdefb55393c7c326ec72a87f
* Add ability to log last 2 digits of dialed numbers in userdebug builds.Tyler Gunn2018-04-231-1/+27
| | | | | | | | | | | | | | 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
* Remove hashing for PII in Telecom LoggingBrad Ebinger2017-12-221-51/+2
| | | | | | | | | Replaces the MD5 hash for logging PII in Telecom with "***" instead. Test: Manual Bug: 67823981 Change-Id: Ieb089fe806663062a551ce7b9071e8b8f5fa9af7
* Only require that system UIDs tag their sockets.Jeff Sharkey2017-06-271-1/+1
| | | | | | | | | | | | | 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
* Increases TC Logging Visibility for testingBrad Ebinger2017-06-081-1/+2
| | | | | Test: Run Telecom unit tests. Change-Id: Ie7a61c60f0a7a9bbc024741c668299efafa5e18d
* Add ability to dump events in a timeline view.Tyler Gunn2017-05-191-0/+17
| | | | | | | | | Adding new event dump which shows the events for all call, sorted by time of event. Test: Manual Bug: 38450166 Change-Id: I9fd4ce92bdf62ef48d6940f03db1f2388003e9fc
* Disable a phone number log for user buildyouhei.x.miyoshi2017-03-061-1/+9
| | | | | | | | | 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
* Readability improvements in LoggingBrad Ebinger2016-11-161-5/+10
| | | | | | | | | | | | 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
* Modify AIDLs to include Session.InfoBrad Ebinger2016-10-271-4/+8
| | | | | | | | | | 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
* Add support for starting external SessionsBrad Ebinger2016-10-251-0/+9
| | | | | | | | | | 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
* Merge "Switch on android.telecom.Log in Telecom"Brad Ebinger2016-10-201-2/+7
|\
| * Switch on android.telecom.Log in TelecomBrad Ebinger2016-10-111-2/+7
| | | | | | | | | | | | | | | | | | | | 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
* | Adds registerSessionListener API to LogBrad Ebinger2016-10-191-0/+4
|/ | | | | | | | | | 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
* Transplant the Logging system from TelecomBrad Ebinger2016-09-301-79/+279
| | | | | | | | | | | 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
* Prevent multi-threaded access to digest objectHall Liu2016-03-171-8/+13
| | | | | Bug: 27717431 Change-Id: I3ebd1dda7386c35078c0624df1446e64c3fb0aa0
* Adding toStrings() to the API.Santos Cordon2016-02-251-0/+30
| | | | | Bug: 16979045 Change-Id: Ibbe1bcea6ab7981f62e7fb4bbe35f71e881166bd
* Initialize MD5 in logging in backgroundHall Liu2016-02-111-8/+27
| | | | | | | | Use a background task to call MessageDigest.getInstance in order to avoid a possible disk read on initialization. Bug: 26069217 Change-Id: I0091ce012bcd811dfca0e85c21a12c54913ed919
* Renaming Telecomm to Telecom.Tyler Gunn2014-09-121-0/+181
- 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