Fixed View.getContentCaptureSession(ContentCaptureManager).
This method was meant to optimize the ContentCaptureManager lookup, but it was not recursively callign itself.... With this change and using System.out / System.nanotime() to measure: $ adb shell am start android.contentcaptureservice.cts/.BlankWithTitleActivity 16 calls, taking 260.051us before and 30.311us after $ adb shell am start android.contentcaptureservice.cts/.LoginActivity 24 calls, taking 290.261us before and 41.403us after Bug: 123307965 Bug: 121039624 Test: atest ContentCaptureSession Test: manual verification using system.out for timing Change-Id: Ida5015ed117cae8ab4484a55f74cbc20fdc6df7f
Loading
Please register or sign in to comment