/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/ |
D | AndroidContentAssistTest.java | 829 private void checkLayoutCompletion(String name, String caretLocation) throws Exception { in checkLayoutCompletion() argument 832 checkCompletion(name, file, caretLocation, in checkLayoutCompletion() 836 private void checkColorCompletion(String name, String caretLocation) throws Exception { in checkColorCompletion() argument 839 checkCompletion(name, file, caretLocation, new ColorContentAssist()); in checkColorCompletion() 842 private void checkAnimCompletion(String name, String caretLocation) throws Exception { in checkAnimCompletion() argument 845 checkCompletion(name, file, caretLocation, new AnimationContentAssist()); in checkAnimCompletion() 848 private void checkAnimatorCompletion(String name, String caretLocation) throws Exception { in checkAnimatorCompletion() argument 852 checkCompletion(name, file, caretLocation, new AnimationContentAssist()); in checkAnimatorCompletion() 855 private void checkDrawableCompletion(String name, String caretLocation) throws Exception { in checkDrawableCompletion() argument 859 checkCompletion(name, file, caretLocation, new DrawableContentAssist()); in checkDrawableCompletion() [all …]
|
D | HyperlinksTest.java | 200 String caretLocation) throws Exception { in checkXmlNavigation() argument 204 int offset = getCaretOffset(file, caretLocation); in checkXmlNavigation() 219 sb.append("Go To Declaration in " + basename + " for " + caretLocation + ":\n"); in checkXmlNavigation()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
D | AdtProjectTest.java | 332 protected int getCaretOffset(IFile file, String caretLocation) { in getCaretOffset() argument 333 assertTrue(caretLocation, caretLocation.contains("^")); in getCaretOffset() 336 return getCaretOffset(fileContent, caretLocation); in getCaretOffset() 346 protected int updateCaret(ISourceViewer viewer, String caretLocation) { in updateCaret() argument 347 assertTrue(caretLocation, caretLocation.contains("^")); //$NON-NLS-1$ in updateCaret() 349 int caretDelta = caretLocation.indexOf("^"); //$NON-NLS-1$ in updateCaret() 350 assertTrue(caretLocation, caretDelta != -1); in updateCaret() 358 if (caretLocation.contains("[^")) { //$NON-NLS-1$ in updateCaret() 360 assertTrue(caretLocation, caretLocation.startsWith("[^", caretDelta)); //$NON-NLS-1$ in updateCaret() 362 int caretRangeEnd = caretLocation.indexOf(']', caretDelta + 2); in updateCaret() [all …]
|
D | RefactoringAssistantTest.java | 55 private void checkFixes(String name, String caretLocation) in checkFixes() argument 62 int caretDelta = caretLocation.indexOf("^"); in checkFixes() 63 assertTrue(caretLocation, caretDelta != -1); in checkFixes() 64 String caretContext = caretLocation.substring(0, caretDelta) in checkFixes() 65 + caretLocation.substring(caretDelta + "^".length()); in checkFixes() 109 sb.append("Quick assistant in " + name + " for " + caretLocation + ":\n"); in checkFixes()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/formatting/ |
D | EclipseXmlPrettyPrinterTest.java | 103 protected int getCaretOffset(String fileContent, String caretLocation) { in getCaretOffset() argument 104 int caretDelta = caretLocation.indexOf("^"); //$NON-NLS-1$ in getCaretOffset() 105 assertTrue(caretLocation, caretDelta != -1); in getCaretOffset() 107 String caretContext = caretLocation.substring(0, caretDelta) in getCaretOffset() 108 + caretLocation.substring(caretDelta + 1); // +1: skip "^" in getCaretOffset()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/build/ |
D | AaptQuickFixTest.java | 83 private void checkResourceFix(String name, String caretLocation, String expectedNewPath) in checkResourceFix() argument 89 final int offset = getCaretOffset(file, caretLocation); in checkResourceFix() 206 private void checkNamespaceFix(String name, String caretLocation) in checkNamespaceFix() argument 212 final int offset = getCaretOffset(file, caretLocation); in checkNamespaceFix()
|