Currently, Android's battery usage screen ( Settings > Battery ) tells you how much battery an app used, but not why or how efficiently it used it. An app might use 1% battery, but if it did so by waking the device up 500 times in the background for no reason, it is behaving poorly. Users and developers lack a quick "efficiency" metric.
xref-server --db ./xref_db --port 8080
When performing an xref lookup in AOSP, developers typically follow a specific workflow: xref aosp
: You can click on any variable, function, or class to jump directly to its definition or see every place it is used across the entire Android repository. Full-Base Navigation
To maximize your efficiency with AOSP xref tools, consider these advanced strategies: Currently, Android's battery usage screen ( Settings >
The Kythe index (the backend of cs.android.com) handles C++ very well. For a template function std::vector<T>::push_back :
This comprehensive guide explores everything you need to know about XRef for AOSP: from understanding what XRef means, to comparing available platforms, mastering advanced search techniques, and even building your own private AOSP code server. xref-server --db
: A modern, fast alternative that often mirrors newer versions quickly.