diff options
author | mukesh agrawal <quiche@google.com> | 2017-04-17 14:26:40 -0700 |
---|---|---|
committer | Mukesh Agrawal <quiche@google.com> | 2017-04-26 00:49:34 +0000 |
commit | c2a56b279eb418cf48bdb96da21c75ea7b25a741 (patch) | |
tree | 0ff7954eae35908bbf99a46cf5c4adc1dc59270e /rs/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | 9a029b52625c3852f2b7628c208d57cf4f64b34e (diff) |
Log: increase visibility of Log.TerribleFailure
The Log.setWtfHandler() provides a way to override
the default TerribleFailureHandler, so that we can
test that a piece of code reports as terrible
failure as expected.
Unfortunately, we can't actual use setWtfHandler()
at the moment. The problem is as follows:
1. The Log.setWtfHandler() method requires a
Log.TerribleFailureHandler instance.
2. The Log.TerribleFailureHandler interface requires
subclasses to implement a onTerribleFailure()
method. The method requires a Log.TerribleFailure
argument.
3. Log.TerribleFailure is a private inner class.
Given the above, classes outside of Log can't create
an appropriate argument to pass to Log.setWtfHandler().
To resolve this, we update the visibility of
Log.TerribleFailure to be the same as that of
Log.setWtfHandler(), and Log.TerribleFailureHandler.
Test: m -j32
Bug: 37425059
Change-Id: Ie646b931869582398d61495e367e0d36e767a3e3
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions