Searched refs:endsWith (Results 1 - 25 of 132) sorted by relevance

123456

/sdk/common/tests/src/com/android/utils/
H A DSdkUtilsTest.java57 assertTrue(SdkUtils.endsWith("foo", "foo"));
58 assertTrue(SdkUtils.endsWith("foobar", "obar"));
59 assertTrue(SdkUtils.endsWith("foobar", "bar"));
60 assertTrue(SdkUtils.endsWith("foobar", "ar"));
61 assertTrue(SdkUtils.endsWith("foobar", "r"));
62 assertTrue(SdkUtils.endsWith("foobar", ""));
64 assertTrue(SdkUtils.endsWith(new StringBuilder("foobar"), "bar"));
65 assertTrue(SdkUtils.endsWith(new StringBuilder("foobar"), new StringBuffer("obar")));
66 assertTrue(SdkUtils.endsWith("foobar", new StringBuffer("obar")));
68 assertFalse(SdkUtils.endsWith("fo
[all...]
/sdk/draw9patch/src/com/android/draw9patch/ui/
H A DPngFileFilter.java25 return f.isDirectory() || f.getName().toLowerCase().endsWith(".png");
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/util/
H A DPngFileFilter.java25 return f.isDirectory() || f.getName().toLowerCase().endsWith(".png");
H A DPsdFileFilter.java25 return f.isDirectory() || f.getName().toLowerCase().endsWith(".psd");
/sdk/common/src/com/android/utils/
H A DSdkUtils.java43 public static boolean endsWith(CharSequence sequence, CharSequence suffix) { method in class:SdkUtils
44 return endsWith(sequence, sequence.length(), suffix);
56 public static boolean endsWith(CharSequence sequence, int endOffset, CharSequence suffix) { method in class:SdkUtils
H A DStdLogger.java164 !msg.endsWith("\r\n") &&
165 msg.endsWith("\n")) {
172 if (!msg.endsWith("\n")) {
/sdk/lint/libs/lint_checks/src/com/android/tools/lint/checks/
H A DViewConstructorDetector.java102 && !((superName.endsWith("Adapter") //$NON-NLS-1$
103 || superName.endsWith("Controller") //$NON-NLS-1$
104 || superName.endsWith("Service") //$NON-NLS-1$
105 || superName.endsWith("Provider") //$NON-NLS-1$
106 || superName.endsWith("Filter")))) { //$NON-NLS-1$
H A DPrivateKeyDetector.java60 (!LintUtils.endsWith(file.getPath(), "pem") && //NON-NLS-1$
61 !LintUtils.endsWith(file.getPath(), "key"))) { //NON-NLS-1$
H A DIconDetector.java35 import static com.android.tools.lint.detector.api.LintUtils.endsWith;
336 // endsWith(name, DOT_PNG) is also true for endsWith(name, DOT_9PNG)
337 return endsWith(name, DOT_PNG)|| endsWith(name, DOT_JPG) || endsWith(name, DOT_GIF) ||
338 endsWith(name, DOT_XML);
947 if (name.endsWith(DOT_XML)) {
949 } else if (endsWith(name, DOT_PNG)
950 || endsWith(nam
[all...]
H A DPxUsageDetector.java128 if (value.endsWith(UNIT_PX) && value.matches("\\d+px")) { //$NON-NLS-1$
138 && (value.endsWith(UNIT_DP) || value.endsWith(UNIT_DIP))
H A DOverdrawDetector.java36 import static com.android.tools.lint.detector.api.LintUtils.endsWith;
163 return LintUtils.isXmlFile(file) || LintUtils.endsWith(file.getName(), DOT_JAVA);
211 if (endsWith(layoutName, DOT_XML)) {
326 if (endsWith(context.file.getName(), DOT_XML)) {
360 if (endsWith(resource, DOT_XML)) {
486 if (mActivities != null && mActivities.contains(mClassFqn) || name.endsWith(ACTIVITY)
488 node.astExtending().getDescription().endsWith(ACTIVITY)) {
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/
H A DLintDeltaProcessor.java78 if (mActiveFile == null || !mActiveFile.getName().endsWith(DOT_JAVA)) {
98 if (mActiveFile == null || !mActiveFile.getName().endsWith(DOT_JAVA)) {
116 if (name.endsWith(DOT_JAVA)) {
120 } else if (name.endsWith(DOT_CLASS)) {
H A DAddSuppressAttribute.java115 if (!fileName.endsWith(DOT_XML)) {
164 if (!fileName.endsWith(DOT_XML)) {
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/manifest/
H A DManifestContentAssist.java54 if (attributeName.endsWith(ATTRIBUTE_MIN_SDK_VERSION)
55 || attributeName.endsWith(ATTRIBUTE_TARGET_SDK_VERSION)) {
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/launch/
H A DJUnitLaunchConfigDelegate.java85 if (bootpath[i][0].endsWith(SdkConstants.FN_FRAMEWORK_LIBRARY)) {
106 if (classpath[i].endsWith(JUNIT_JAR)) {
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/tests/
H A DAdtTestData.java96 if (!mOsRootDataPath.endsWith(File.separator) && !mOsRootDataPath.endsWith(DIR_SEP_STR)) {
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/
H A DFmActivityToLayoutMethod.java56 assert !activityName.endsWith(ACTIVITY_NAME_SUFFIX) : activityName;
H A DFmClassNameToResourceMethod.java63 assert !name.endsWith(suffix) : name;
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/launch/
H A DJUnitLaunchConfigDelegateTest.java28 assertTrue(JUnitLaunchConfigDelegate.getJunitJarLocation().endsWith("junit.jar"));
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/internal/repository/
H A DAdbWrapper.java47 if (!osSdkPath.endsWith(File.separator)) {
/sdk/lint/libs/lint_checks/tests/src/com/android/tools/lint/detector/api/
H A DLintUtilsTest.java59 assertTrue(LintUtils.endsWith("Foo", ""));
60 assertTrue(LintUtils.endsWith("Foo", "o"));
61 assertTrue(LintUtils.endsWith("Foo", "oo"));
62 assertTrue(LintUtils.endsWith("Foo", "Foo"));
63 assertTrue(LintUtils.endsWith("Foo", "FOO"));
64 assertTrue(LintUtils.endsWith("Foo", "fOO"));
66 assertFalse(LintUtils.endsWith("Foo", "f"));
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
H A DExportScreenshotAction.java54 if (!path.endsWith(DOT_PNG)) {
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/animator/
H A DAnimationContentAssist.java79 if (attributeName.endsWith(INTERPOLATOR_PROPERTY_NAME)) {
88 if (name.endsWith(INTERPOLATOR_NAME_SUFFIX)) {
101 && attributeName.endsWith(PROPERTY_NAME)) {
/sdk/lint/cli/src/com/android/tools/lint/
H A DReporter.java21 import static com.android.tools.lint.detector.api.LintUtils.endsWith;
202 if (!endsWith(name, DOT_PNG) || endsWith(name, DOT_9PNG)) {
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/
H A DDeviceMenuListener.java259 if (name.endsWith(" One")) { //$NON-NLS-1$
262 if (name.endsWith(" S")) { //$NON-NLS-1$
268 if (name.endsWith(" 7")) { //$NON-NLS-1$

Completed in 101 milliseconds

123456