Home
last modified time | relevance | path

Searched refs:canCreateResource (Results 1 – 3 of 3) sorted by relevance

/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/resources/
DResourceHelperTest.java149 assertTrue(ResourceHelper.canCreateResource("@layout/foo")); in testCanCreateResource()
150 assertTrue(ResourceHelper.canCreateResource("@string/foo")); in testCanCreateResource()
151 assertTrue(ResourceHelper.canCreateResource("@dimen/foo")); in testCanCreateResource()
152 assertTrue(ResourceHelper.canCreateResource("@color/foo")); in testCanCreateResource()
154 assertFalse(ResourceHelper.canCreateResource("@typo/foo")); // nonexistent type in testCanCreateResource()
155 assertFalse(ResourceHelper.canCreateResource("@layout/foo bar")); // space in testCanCreateResource()
156 assertFalse(ResourceHelper.canCreateResource("@layout/new")); // keyword in testCanCreateResource()
157 assertFalse(ResourceHelper.canCreateResource("@android:string/foo")); // framework in testCanCreateResource()
158 assertFalse(ResourceHelper.canCreateResource("@android:dimen/foo")); in testCanCreateResource()
159 assertFalse(ResourceHelper.canCreateResource("@android:color/foo")); in testCanCreateResource()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/
DAaptQuickFix.java127 if (ResourceHelper.canCreateResource(resource)) { in getResolutions()
188 if (ResourceHelper.canCreateResource(resource)) { in computeQuickAssistProposals()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/
DResourceHelper.java244 public static boolean canCreateResource(String resource) { in canCreateResource() method in ResourceHelper