Commit 145ce84
fix(codegen): resolve accessor name collisions for multi-interface services
TimeManager wraps both ITimeDetectorService and ITimeZoneDetectorService
under @SystemService(TIME_MANAGER_SERVICE). The binder usage scanner's
Strategy 2 heuristic picked one arbitrarily, producing a false
service-to-descriptor mapping that caused duplicate Go function names.
Fix selectBestInterfaceForClass to reject ambiguous ties below the
strong-match threshold (score < 3). Also harden generateAccessorFiles
to skip accessors when the constant-based fallback name still collides.
Regenerated all accessor files and README stats.1 parent f8803eb commit 145ce84
File tree
28 files changed
+533
-8
lines changed- android
- app
- backup
- timedetector
- timezonedetector
- trust
- content/pm
- hardware
- os
- service/textclassifier
- telephony/ims/aidl
- view
- accessibility
- com/android/internal_
- app
- compat
- statusbar
- telecom
- telephony
- textservice
- view
- specs/servicemanager
- tools
- cmd/spec2go
- pkg/servicemap
28 files changed
+533
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2073 | 2073 | | |
2074 | 2074 | | |
2075 | 2075 | | |
2076 | | - | |
| 2076 | + | |
2077 | 2077 | | |
2078 | 2078 | | |
2079 | 2079 | | |
| |||
2367 | 2367 | | |
2368 | 2368 | | |
2369 | 2369 | | |
2370 | | - | |
| 2370 | + | |
2371 | 2371 | | |
2372 | 2372 | | |
2373 | 2373 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments