Home
last modified time | relevance | path

Searched refs:isValid (Results 1 – 25 of 56) sorted by relevance

123

/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/resources/platform/
DAttributeInfoTest.java56 assertTrue(info.isValid("", null, null)); in testSimple()
57 assertTrue(info.isValid("a b c", null, null)); in testSimple()
58 assertTrue(info.isValid("@android foo bar", null, null)); in testSimple()
63 assertTrue(info.isValid("", null, null)); in testIsValidString()
64 assertTrue(info.isValid("a b c", null, null)); in testIsValidString()
65 assertTrue(info.isValid("@android foo bar", null, null)); in testIsValidString()
70 assertTrue(info.isValid("true", null, null)); in testIsValidBoolean()
71 assertTrue(info.isValid("false", null, null)); in testIsValidBoolean()
72 assertFalse(info.isValid("", null, null)); in testIsValidBoolean()
73 assertTrue(info.isValid("TRUE", null, null)); in testIsValidBoolean()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/resources/
DResourceNameValidatorTest.java36 assertTrue(validator.isValid("foo") == null); in testValidator()
37 assertTrue(validator.isValid("foo.xml") == null); in testValidator()
38 assertTrue(validator.isValid("Foo123_$") == null); in testValidator()
39 assertTrue(validator.isValid("foo.xm") == null); // For non-file types, . => _ in testValidator()
42 assertTrue(validator.isValid("") != null); in testValidator()
43 assertTrue(validator.isValid(" ") != null); in testValidator()
44 assertTrue(validator.isValid("foo bar") != null); in testValidator()
45 assertTrue(validator.isValid("1foo") != null); in testValidator()
46 assertTrue(validator.isValid("foo%bar") != null); in testValidator()
48 ResourceType.STRING).isValid("foo") != null); in testValidator()
[all …]
DResourceHelperTest.java86 public boolean isValid() { in isValid() method in ResourceHelperTest.FakeQualifierClass
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/api/
DRectTest.java86 assertFalse(r.isValid()); in testIsValid()
89 assertTrue(r.isValid()); in testIsValid()
93 assertFalse(r.isValid()); in testIsValid()
95 assertFalse(r.isValid()); in testIsValid()
99 assertFalse(r.isValid()); in testIsValid()
101 assertFalse(r.isValid()); in testIsValid()
104 assertFalse(r.isValid()); in testIsValid()
106 assertFalse(r.isValid()); in testIsValid()
262 assertTrue(r.isValid()); in testEqualsObject_Invalid()
265 assertFalse(i1.isValid()); in testEqualsObject_Invalid()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/uimodel/
DUiAbstractTextAttributeNode.java61 public abstract boolean isValid(); in isValid() method in UiAbstractTextAttributeNode
86 if (isValid() && !getTextWidgetValue().equals(mCurrentValue)) { in updateValue()
104 if (parent != null && isValid() && isDirty()) { in commit()
DUiTextValueNode.java67 if (isValid() && !getTextWidgetValue().equals(getCurrentValue())) { in updateValue()
85 if (parent != null && isValid() && isDirty()) { in commit()
DUiTextAttributeNode.java102 public boolean isValid() { in isValid() method in UiTextAttributeNode
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/draw9patch/graphics/
DNinePatchedImage.java221 boolean isValid = true; in ensurePixel()
225 isValid = false; in ensurePixel()
230 isValid = false; in ensurePixel()
235 return isValid; in ensurePixel()
250 boolean isValid = true; in ensure9Patch()
262 isValid = false; in ensure9Patch()
266 isValid = false; in ensure9Patch()
273 isValid = false; in ensure9Patch()
277 isValid = false; in ensure9Patch()
283 return isValid; in ensure9Patch()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/
DAbsoluteLayoutRule.java87 if (!b.isValid()) { in drawFeedback()
107 if (be.isValid()) { in drawFeedback()
154 if (!b.isValid()) { in onDropped()
187 if (be.isValid()) { in onDropped()
190 } else if (offset != null && be.isValid()) { in onDropped()
195 y += be.isValid() ? be.h : 10; in onDropped()
DFrameLayoutRule.java76 if (!b.isValid()) {
93 if (be.isValid()) {
99 if (currBounds.isValid()) {
136 if (!b.isValid()) {
DAdapterViewRule.java41 if (b.isValid()) { in onDropEnter()
DLinearLayoutRule.java286 if (!bn.isValid()) { in onDropEnter()
302 if (bc.isValid()) { in onDropEnter()
369 if (!b.isValid()) {
428 if (be.isValid()) {
448 if (bounds.isValid() && (bounds.w > b.w || bounds.h > b.h) &&
483 if (!b.isValid()) {
DScrollViewRule.java88 if (b.isValid()) { in drawFeedback()
DHorizontalScrollViewRule.java88 if (b.isValid()) { in drawFeedback()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DSimpleElement.java193 if (mBounds != null && mBounds.isValid()) { in toString()
196 if (mParentBounds != null && mParentBounds.isValid()) { in toString()
356 if (mBounds != null && mBounds.isValid()) { in hashCode()
359 if (mParentBounds != null && mParentBounds.isValid()) { in hashCode()
DSelectionHandles.java76 if (!r.isValid()) { in createHandles()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/
DCyclicDependencyValidator.java36 public String isValid(String newText) { in isValid() method in CyclicDependencyValidator
/sdk/eclipse/plugins/com.android.ide.eclipse.monitor/src/com/android/ide/eclipse/monitor/
DSdkToolsLocator.java102 public boolean isValid() { in isValid() method in SdkToolsLocator.SdkInstallStatus
DSdkLocationChooserDialog.java103 if (status.isValid()) { in validateInstall()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/
DConvertToDpFix.java98 public String isValid(String input) { in isValid() method in ConvertToDpFix
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
DExtractIncludeWizard.java105 String message = validator.isValid(text); in validatePage()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gre/
DNodeFactoryTest.java86 assertFalse(inode.getBounds().isValid()); in testCreateUiViewElementNode()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/
DCreateFileChange.java68 public RefactoringStatus isValid(IProgressMonitor pm) in isValid() method in CreateFileChange
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/core/
DRenameResourceProcessor.java147 String error = mValidator.isValid(name); in checkNewName()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/renamepackage/
DRenamePackageAction.java131 public String isValid(String newText) { in promptNewName()

123