Home
last modified time | relevance | path

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

123

/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 …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/resources/platform/
DAttributeInfoTest.java52 assertTrue(info.isValid("", null, null)); in testSimple()
53 assertTrue(info.isValid("a b c", null, null)); in testSimple()
54 assertTrue(info.isValid("@android foo bar", null, null)); in testSimple()
59 assertTrue(info.isValid("", null, null)); in testIsValidString()
60 assertTrue(info.isValid("a b c", null, null)); in testIsValidString()
61 assertTrue(info.isValid("@android foo bar", null, null)); in testIsValidString()
66 assertTrue(info.isValid("true", null, null)); in testIsValidBoolean()
67 assertTrue(info.isValid("false", null, null)); in testIsValidBoolean()
68 assertFalse(info.isValid("", null, null)); in testIsValidBoolean()
69 assertFalse(info.isValid("TRUE", null, null)); in testIsValidBoolean()
[all …]
/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()
233 assertTrue(r.isValid()); in testEqualsObject_Invalid()
236 assertFalse(i1.isValid()); in testEqualsObject_Invalid()
[all …]
/sdk/rule_api/src/com/android/ide/common/api/
DRect.java78 public boolean isValid() { in isValid() method in Rect
84 return isValid() && in contains()
193 if (isValid() != rhs.isValid()) { in equals()
197 if (!isValid() && !rhs.isValid()) { in equals()
/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()
/sdk/sdk_common/src/com/android/ide/common/resources/configuration/
DSmallestScreenWidthQualifier.java69 public boolean isValid() { in isValid() method in SmallestScreenWidthQualifier
142 if (isValid()) { in getShortDisplayValue()
151 if (isValid()) { in getLongDisplayValue()
DScreenHeightQualifier.java69 public boolean isValid() { in isValid() method in ScreenHeightQualifier
142 if (isValid()) { in getShortDisplayValue()
151 if (isValid()) { in getLongDisplayValue()
DScreenWidthQualifier.java69 public boolean isValid() { in isValid() method in ScreenWidthQualifier
142 if (isValid()) { in getShortDisplayValue()
151 if (isValid()) { in getLongDisplayValue()
DScreenDimensionQualifier.java84 public boolean isValid() { in isValid() method in ScreenDimensionQualifier
157 if (isValid()) { in getShortDisplayValue()
166 if (isValid()) { in getLongDisplayValue()
DResourceQualifier.java52 public abstract boolean isValid(); in isValid() method in ResourceQualifier
DEnumBasedResourceQualifier.java30 public boolean isValid() { in isValid() method in EnumBasedResourceQualifier
DCountryCodeQualifier.java102 public boolean isValid() { in isValid() method in CountryCodeQualifier
DLanguageQualifier.java95 public boolean isValid() { in isValid() method in LanguageQualifier
DNetworkCodeQualifier.java102 public boolean isValid() { in isValid() method in NetworkCodeQualifier
DRegionQualifier.java100 public boolean isValid() { in isValid() method in RegionQualifier
DVersionQualifier.java103 public boolean isValid() { in isValid() method in VersionQualifier
/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()
/sdk/ddms/libs/ddmlib/src/com/android/ddmlib/
DHeapSegment.java279 public boolean isValid() { in isValid() method in HeapSegment
291 return isValid() && other.isValid() && mHeapId == other.mHeapId && in canAppend()
/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()
/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/lint/libs/lint_checks/src/com/android/tools/lint/checks/
DObsoleteLayoutParamsDetector.java350 boolean isValid = false; in afterCheckProject()
354 isValid = true; in afterCheckProject()
356 } else if (!isValid && name.equals(ATTR_LAYOUT_COLUMN) in afterCheckProject()
358 isValid = true; in afterCheckProject()
363 if (!isValid) { in afterCheckProject()
/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

123