Hi Jon,
What, you have a problem with my 1000 line function?? :)
Actually there are much biggest aspects to WindowManagerService that I would like to refactor to ease maintenance -- the first being turning this nearly 12,000 line file with multiple inner classes into a bunch of separate classes in their own package.
I have been wanting to do this for over a year. The problem is finding a good time to do it that won't cause huge merge headaches -- we often tend to have multiple development branches running in parallel, so if you do this at the wrong time you suddenly have painful merges between them. I think we have an opportunity coming up for this post-HC, but we'll see.
What that means for AOSP contributions, though, is that refactoring code like this is fairly problematic to accept as a contribution, because of the merge pain that will arise from that. Even changes that do things like just "fix" a bunch of whitespace are difficult to deal with.
--
Dianne Hackborn
Android framework engineer
hac...@android.comNote: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them.