diff options
| author | Xavier Ducrohet <xav@android.com> | 2009-09-24 17:41:13 -0700 |
|---|---|---|
| committer | Xavier Ducrohet <xav@android.com> | 2009-09-25 11:57:44 -0700 |
| commit | 23b4faf69437b732d681d9bee5c9a84379d5ccad (patch) | |
| tree | b2f7ef4edda01b216aa7ed2137e7296b9e080f50 /opengl/tests/gl_basic/gl_basic.cpp | |
| parent | a0cad2f5d19d95cfe496ebb82f3227dd4ed7c169 (diff) | |
Use reflection to figure out a readable string from install error code.
Instead of a switch that needs to be maintained, the code now
look for public static final int fields in PackageManager
whose names start with INSTALL_FAILED or INSTALL_PARSE_FAILED.
If their int value match the error code, the name of the field
is used as a human readable error string.
Change-Id: If58ddc4d9ccc40a9a8aaec9de4cc7e4931db0292
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions
