summaryrefslogtreecommitdiff
path: root/core/java/android/util/DebugUtils.java
Commit message (Collapse)AuthorAgeFilesLines
* [pm] change internal flags to longSongchun Fan2021-11-241-13/+27
| | | | | | | | | | Changes IPackageManager.aidl methods to use long flags instead of int. Public API change to be followed. BUG: 204432643 BUG: 204433659 Test: manual Change-Id: Ib5c42fef998f0116e312c71d620e1a15329e26e0
* Added support to more @DevicePolicyOperation operations.Felipe Leme2020-12-011-0/+20
| | | | | | | | | | | Also removed wrong permission check on lockNow()- it was only allowing non-admin apps with the LOCK_NOW permission when the device doesn't support the feature. Test: manual verification trying to switch user when car is moving Bug: 172376923 Change-Id: Icd1bde3a6f27e08c00d8851d16c1a072f7441f32
* Use new UnsupportedAppUsage annotation.Artur Satayev2020-01-071-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 Change-Id: I288969b0c22fa3a63bc2e71bb5009fe4a927e154
* Fix NetworkPolicyManager unit tests.Sudheer Shanka2019-10-121-1/+1
| | | | | | | Bug: 137859686 Test: atest core/tests/coretests/src/android/net/NetworkPolicyManagerTest.java Test: atest services/tests/servicestests/src/com/android/server/net/NetworkPolicyManagerServiceTest.java Change-Id: I38a935c71bfb1f78739d508b400e43dc1b52bef5
* ServiceConnector impl + migration of RemoteFillServiceEugene Susla2019-04-241-0/+20
| | | | | | | | | | | Original CL ag/5907902 has many merge conflicts so re-posting a trimmed down version of it. Initially migrating just the RemoteFillService, with the intention to migrate others in separate CLs. Fixes: 122480607 Test: atest CtsAutoFillServiceTestCases Change-Id: Ibae8b0aa32a7c8283b0fb6eb3c288769b730149a
* Mirgate default SMS app handling to RoleManagerEugene Susla2019-01-101-1/+2
| | | | | | | | | This includes laying down some groundwork to make the remaining migrations more straightforward Bug: 110557011 Test: atest RoleManagerTest && atest SmsManagerTest Change-Id: Ie96abd73751d10f521756c9dcdab2a5710ca2045
* Limit access to suspected false positives.Mathew Inwood2018-12-281-1/+2
| | | | | | | | | | | | | | | | | | | | | Members modified herein are suspected to be false positives: i.e. things that were added to the greylist in P, but subsequent data analysis suggests that they are not, in fact, used after all. Add a maxTargetSdk=P to these APIs. This is lower-risk that simply removing these things from the greylist, as none of out data sources are perfect nor complete. For APIs that are not supported yet by annotations, move them to hiddenapi-greylist-max-p.txt instead which has the same effect. Exempted-From-Owner-Approval: Automatic changes to the codebase affecting only @UnsupportedAppUsage annotations, themselves added without requiring owners approval earlier. Bug: 115609023 Test: m Change-Id: I020a9c09672ebcae64c5357abc4993e07e744687
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-141-0/+2
| | | | | | | | | | | | | | | | | | | For packages: android.util.proto android.util.jar android.util.apk android.util 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 Change-Id: Ia0f48c244b0fbe33d40d797702a82303648196ed
* Eliminate duplicate layers in A11yService#getWindows()Eugene Susla2018-03-161-2/+10
| | | | | | Fixes: 73904014 Test: using TestBack, ensure the attached bug is fixed Change-Id: I097ca47563420d658cea083a3b6f8d5e7d02991c
* Progress towards dynamic storage support.Jeff Sharkey2015-03-301-1/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Storage devices are no longer hard-coded, and instead bubble up from whatever Disk and VolumeBase that vold uncovered, turning into sibling Java objects in MountService. We now treat vold events as the source-of-truth for state, and synchronize our state by asking vold to "reset" whenever we reconnect. We've now moved to a model where all storage devices are mounted in the root mount namespace (user boundaries protected with GIDs), so we no longer need app-to-vold path translation. This also means that zygote only needs to bind mount the user-specific /mnt/user/n/ path onto /storage/self/ to make legacy paths like /sdcard work. This grealy simplifies a lot of system code. Many parts of the platform depend on a primary storage device always being present, so we hack together a stub StorageVolume when vold doesn't have a volume ready yet. StorageVolume isn't really a volume anymore; it's the user-specific view onto a volume, so MountService now filters and builds them based on the calling user. StorageVolume is now immutable, making it easier to reason about. Environment now builds all of its paths dynamically based on active volumes. Adds utility methods to turn int types and flags into user-readable strings for debugging purposes. Remove UMS sharing support for now, since no current devices support it; MTP is the recommended solution going forward because it offers better multi-user support. Simplify unmount logic, since vold will now gladly trigger EJECTING broadcast and kill stubborn processes. Bug: 19993667 Change-Id: I9842280e61974c91bae15d764e386969aedcd338
* Add new debug feature to automatically create heap dumps.Dianne Hackborn2015-03-061-0/+80
| | | | | | | | | | | | | | | | | Not yet working, unless you turn off SELinux enforcing. We need to update SElinux to allow the system process to give apps access to /data/system/heapdump/javaheap.bin. Currently watching can only be enabled through the shell, such as: adb shell am set-watch-heap com.android.systemui 1024 The last number is the process pss size in bytes, so this is asking us to warn if it goes about 1K which will be all the time. Change-Id: I2089e5db2927afca0bf01a363c6247ee5dcb26e8
* If frameworks wants ASCII casing, it should explicity ask for it.Elliott Hughes2013-08-021-1/+2
| | | | | | | http://elliotth.blogspot.com/2012/01/beware-convenience-methods.html Bug: https://code.google.com/p/android/issues/detail?id=58359 Change-Id: Iaab02e718a7be7bda22e626dca05d79bfd2a8fc4
* Remove default constructors from static utility classes.Jesse Wilson2011-02-241-1/+3
| | | | | Change-Id: Id8dc55a30a03e1da87500b66c429de9268033b9e http://b/3344646
* More cleanup of Loader APIs.Dianne Hackborn2010-12-201-0/+19
| | | | | | | | - Remove old method names. - Introduce onXxx() hooks to Loader. - Improve debugging. Change-Id: I3fba072a05c7023aa7d2c3eb4e126feb514ab6d8
* util/DebugUtils: Remove references to android.util.ConfigDave Bort2009-04-131-2/+2
| | | | | | | The semantics of Config.DEBUG will be changing soon, and all other Config.* fields will become deprecated/hidden. BUG=1780938
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+104
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-104/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+104