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;
342 assertEquals(null, maybeBalance(null)); in testMaybeBalance()
343 assertEquals("", maybeBalance("")); in testMaybeBalance()
345 assertEquals("()", maybeBalance(")")); in testMaybeBalance()
346 assertEquals("()", maybeBalance("(")); in testMaybeBalance()
347 assertEquals("()", maybeBalance("()")); in testMaybeBalance()
349 assertEquals("(1==1)", maybeBalance("1==1)")); in testMaybeBalance()
350 assertEquals("((foo)bar)baz", maybeBalance("foo)bar)baz")); in testMaybeBalance()
351 assertEquals("foo(bar(baz))", maybeBalance("foo(bar(baz")); in testMaybeBalance()
353 assertEquals("IN '('", maybeBalance("IN '('")); in testMaybeBalance()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DDatabaseUtils.java197 public static @Nullable String maybeBalance(@Nullable String sql) { in maybeBalance() method in DatabaseUtils
374 selection = maybeBalance(selection); in recoverAbusiveSelection()
375 groupBy = maybeBalance(groupBy); in recoverAbusiveSelection()