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/
DMediaProviderTest.java24 import static com.android.providers.media.MediaProvider.maybeBalance;
347 assertEquals(null, maybeBalance(null)); in testMaybeBalance()
348 assertEquals("", maybeBalance("")); in testMaybeBalance()
350 assertEquals("()", maybeBalance(")")); in testMaybeBalance()
351 assertEquals("()", maybeBalance("(")); in testMaybeBalance()
352 assertEquals("()", maybeBalance("()")); in testMaybeBalance()
354 assertEquals("(1==1)", maybeBalance("1==1)")); in testMaybeBalance()
355 assertEquals("((foo)bar)baz", maybeBalance("foo)bar)baz")); in testMaybeBalance()
356 assertEquals("foo(bar(baz))", maybeBalance("foo(bar(baz")); in testMaybeBalance()
358 assertEquals("IN '('", maybeBalance("IN '('")); in testMaybeBalance()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java6402 static @Nullable String maybeBalance(@Nullable String sql) { in maybeBalance() method in MediaProvider
6464 selection = maybeBalance(selection); in recoverAbusiveGroupBy()
6465 groupBy = maybeBalance(groupBy); in recoverAbusiveGroupBy()