Home
last modified time | relevance | path

Searched refs:maybeBalance (Results 1 – 2 of 2) sorted by relevance

/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DDatabaseUtilsTest.java34 import static com.android.providers.media.util.DatabaseUtils.maybeBalance;
352 assertEquals(null, maybeBalance(null)); in testMaybeBalance()
353 assertEquals("", maybeBalance("")); in testMaybeBalance()
355 assertEquals("()", maybeBalance(")")); in testMaybeBalance()
356 assertEquals("()", maybeBalance("(")); in testMaybeBalance()
357 assertEquals("()", maybeBalance("()")); in testMaybeBalance()
359 assertEquals("(1==1)", maybeBalance("1==1)")); in testMaybeBalance()
360 assertEquals("((foo)bar)baz", maybeBalance("foo)bar)baz")); in testMaybeBalance()
361 assertEquals("foo(bar(baz))", maybeBalance("foo(bar(baz")); in testMaybeBalance()
363 assertEquals("IN '('", maybeBalance("IN '('")); in testMaybeBalance()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DDatabaseUtils.java228 public static @Nullable String maybeBalance(@Nullable String sql) { in maybeBalance() method in DatabaseUtils
405 selection = maybeBalance(selection); in recoverAbusiveSelection()
406 groupBy = maybeBalance(groupBy); in recoverAbusiveSelection()