summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2018-07-26 14:36:59 -0600
committerJeff Sharkey <jsharkey@google.com>2018-12-01 17:23:05 -0700
commit0da04839b7b796c32c01f15bcf34ecb9097addac (patch)
treed4550eec0c564d79f83cb8ddf0299ae8ecbddbdb /tools/aapt2/java/JavaClassGenerator_test.cpp
parent8a634372b343b3e09ac44544199b27fc9f58c300 (diff)
Support for appending "standalone" WHERE chunks.
The existing appendWhere() methods aren't very friendly for developers, since they require manual tracking of state to decide if subsequent standalone chunks should be prefixed with "AND". While it's tempting to offer direct argument binding on the builder class, we can't really deliver on that API in a secure way, so instead add separate bindSelection() method which explicitly burns arguments into a standalone selection string, which can then be appended to the builder. This was the last piece of new functionality being used by SQLiteStatementBuilder, so we can delete that class and migrate users back to SQLiteQueryBuilder. Bug: 111268862 Test: atest frameworks/base/core/tests/coretests/src/android/database/DatabaseUtilsTest.java Test: atest frameworks/base/core/tests/utiltests/src/com/android/internal/util/ArrayUtilsTest.java Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore* Test: atest cts/tests/tests/database/src/android/database/sqlite/cts/SQLiteQueryBuilderTest.java Merged-In: I418f24338c90bae8a9dad473fa76329cea00a8c5 Change-Id: I418f24338c90bae8a9dad473fa76329cea00a8c5
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions