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