summaryrefslogtreecommitdiff
path: root/core/java/android/webkit/TracingController.java
Commit message (Collapse)AuthorAgeFilesLines
* WebView: deprecate accidentally-exposed constructorsNate Fischer2018-09-251-0/+7
| | | | | | | | | | | | | | This deprecates public-exposed constructors. These constructors were exposed by accident. These classes shouldn't be instantiated by applications, but should only be instantiated by WebView. In some cases, the app should get a singleton instance using a #getInstance method. In these cases, we document this explicitly in the deprecation note. Bug: 110807530 Test: make docs, manually verify docs look good. Change-Id: Ibe73b3399c9ced0cf4fbb01e1df13564476df252
* WebView: fix TracingController example usageNate Fischer2018-09-201-1/+1
| | | | | | | | | | This fixes a minor mistake in the TracingController class usage. The example previously used a bare `CATEGORIES_WEB_DEVELOPER` instead of `TracingConfig.CATEGORIES_WEB_DEVELOPER`. Bug: 116227333 Test: make docs Change-Id: I648dd0d5e61666e61adb27303c185013bd80b0ea
* [WebView Tracing API] documentation fixes.Tim Volodine2018-04-111-11/+18
| | | | | | | | | | | | | | Some fixes to the WebView Tracing API related documentation. In particular this patch makes sure that: - the defaults are correct, - the examples are correct, - the formatting is ok, - the text for parameters etc.. is formatted consistently, - the documentation is spellchecked and typos corrected. BUG: 63750258 Test: manual inspection of the generated html documentation Change-Id: I53ac1a1d003e519739464b8d8554f3d8262c46e4
* WebView Tracing API: remove LARGE_BUFFER, make RECORD_CONTINUOUSLY the ↵Tim Volodine2018-03-211-3/+2
| | | | | | | | | | | | | | | | | | | default mode This patch: - remove the RECORD_UNTIL_FULL_LARGE_BUFFER tracing option, because this does not appear really useful in the production setting as the buffer size limit exceeds the device memory and can grow uncontrollably large. - make RECORD_CONTINUOUSLY the default mode for tracing, to make sure the least memory is used by default (typically 4x less than the previous default RECORD_UNTIL_FULL). - add some missing IntDef values (to make them match with the constants) BUG: 63750258 Test: CTS Change-Id: Ib3698273dee776ebc7a8388fc1bd8c80255e3b63
* WebView Tracing API: address comments from the API council.Tim Volodine2018-02-151-55/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Address comments from the API council regarding the WebView Tracing API. android.webkit.TracingController: * start() throws IllegalStateException if the system is already tracing (this is instead of returning false) * stop uses Executor instead of Handler * removed stop() (the method w/o arguments) * renamed stopAndFlush to stop * use OutputStream instead of a custom callback interface TracingOutputStream * dropped requirement for UI threading * updated documentation android.webkit.TracingFileOutputStream: * removed the TracingFileOutputStream file completely (functionality replaced by the existing FileOutputStream) android.webkit.TracingConfig: * removed example with CATEGORIES_NONE and “-input,-gpu”. * customCategories are List<String> instead of String * updated documentation * added two more predefined categories: CATEGORIES_ALL, CATEGORIES_ANDROID_WEBVIEW * some refactoring, added a Builder class * ensure that only include category patterns can be specified * uniform addCategories interface for construction * predefined category sets are a bitmask now BUG: 71584598,71584599,63750258 Test: CTS Change-Id: I615ef5f43d26968329182b09e7c26178f1f85ecc
* Add WebView Tracing API.Tim Volodine2017-12-131-0/+126
Add classes/interfaces necessary for the support of tracing API in WebView. In particular: - TracingController: singleton class for starting and stopping tracing and inspecting tracing status. - TracingConfig: holds tracing configuration, such as categories to filter and the tracing mode. - TracingOutputStream: interface for capturing tracing data. - TracingFileOutputStream: supporting class for capturing tracing data to a file. BUG: 63750258 Test: in progress Change-Id: I7decd486788766fc8dfa766ae027c02f9d4c6f80