Searched refs:maybeBalance (Results 1 – 2 of 2) sorted by relevance
34 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 …]
197 public static @Nullable String maybeBalance(@Nullable String sql) { in maybeBalance() method in DatabaseUtils374 selection = maybeBalance(selection); in recoverAbusiveSelection()375 groupBy = maybeBalance(groupBy); in recoverAbusiveSelection()