Home
last modified time | relevance | path

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

/lint-checks/src/test/java/androidx/build/lint/
DRestrictToDetectorTest.kt19 import androidx.build.lint.RestrictToDetector.Companion.sameLibraryGroupPrefix
925 assertTrue(sameLibraryGroupPrefix("foo", "foo")) in testLibraryGroupPrefixMatches()
926 assertFalse(sameLibraryGroupPrefix("foo", "bar")) in testLibraryGroupPrefixMatches()
927 assertTrue(sameLibraryGroupPrefix("foo.bar", "foo.bar")) in testLibraryGroupPrefixMatches()
928 assertFalse(sameLibraryGroupPrefix("foo.bar", "bar")) in testLibraryGroupPrefixMatches()
929 assertFalse(sameLibraryGroupPrefix("foo.bar", "foo")) in testLibraryGroupPrefixMatches()
931 assertTrue(sameLibraryGroupPrefix("foo.bar", "foo.baz")) in testLibraryGroupPrefixMatches()
932 assertTrue(sameLibraryGroupPrefix("com.foo.bar", "com.foo.baz")) in testLibraryGroupPrefixMatches()
933 assertFalse(sameLibraryGroupPrefix("com.foo.bar", "com.bar.qux")) in testLibraryGroupPrefixMatches()
937 assertTrue(sameLibraryGroupPrefix("androidx.foo.foo", "androidx.bar.bar")) in testLibraryGroupPrefixMatches()
/lint-checks/src/main/java/androidx/build/lint/
DRestrictToDetector.kt200 (thisGroup == null || !sameLibraryGroupPrefix(thisGroup, methodGroup)) in checkRestrictTo()
456 fun sameLibraryGroupPrefix(group1: String, group2: String): Boolean { in sameLibraryGroupPrefix() method