summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2015-11-16 10:19:12 -0500
committerAlan Viverette <alanv@google.com>2015-11-16 10:19:12 -0500
commit4d07bc99f014dfa112f635148cc2fbb3d73e983e (patch)
treef3d7443bfbb9ff77fae924a23ec1209dbbb20730 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent746955c0d1ca496b34b2ad3f9c69d045db53e175 (diff)
Clean up usage of temporary TypedValue in Resources
Reduces the amount of time that a lock is held and reduces the scope of the lock to only manage the temporary TypedValue. Also ensures that the typed value is consistently returned to the (single item) pool. Additionally, performs some refactoring: - removes unused variables and constants - moves the NotFoundException cause into the constructor for consistency with other Exceptions - inlines sPreloadedDensity which was not used anywhere - fixes line wrapping and indentation in nearby code Aside from improvements to locking, there are no functional changes in this CL. Change-Id: I8c3059261e3cc2288a086e6637ab946e0b7d3741 Clean up usage of temporary TypedValue in Resources Reduces the amount of time that a lock is held and reduces the scope of the lock to only manage the temporary TypedValue. Also ensures that the typed value is consistently returned to the (single item) pool. Additionally, performs some refactoring: - removes unused variables and constants - moves the NotFoundException cause into the constructor for consistency with other Exceptions - inlines sPreloadedDensity which was not used anywhere - fixes line wrapping and indentation in nearby code Aside from improvements to locking, there are no functional changes in this CL. Change-Id: I8c3059261e3cc2288a086e6637ab946e0b7d3741
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions