Home
last modified time | relevance | path

Searched refs:ScopedException (Results 1 – 10 of 10) sorted by relevance

/frameworks/data-binding/compilationTests/src/test/java/android/databinding/compilationTest/
DCompilationResult.java20 import android.databinding.tool.processing.ScopedException;
45 public ScopedException getBindingException() { in getBindingException()
46 List<ScopedException> errors = ScopedException.extractErrors(error); in getBindingException()
54 public List<ScopedException> getBindingExceptions() { in getBindingExceptions()
55 return ScopedException.extractErrors(error); in getBindingExceptions()
DSimpleCompilationTest.java28 import android.databinding.tool.processing.ScopedException;
94 private ScopedException singleFileErrorTest(String resource, String targetFile, in singleFileErrorTest()
101 ScopedException scopedException = result.getBindingException(); in singleFileErrorTest()
131 List<ScopedException> bindingExceptions = result.getBindingExceptions(); in testMultipleExceptionsInDifferentFiles()
135 for (ScopedException exception : bindingExceptions) { in testMultipleExceptionsInDifferentFiles()
183 ScopedException ex = singleFileErrorTest("/layout/undefined_variable_binding.xml", in testUndefinedVariable()
192 ScopedException ex = singleFileErrorTest("/layout/invalid_setter_binding.xml", in testInvalidSetterBinding()
214 ScopedException ex = singleFileErrorTest("/layout/invalid_variable_type.xml", in testInvalidVariableType()
271 List<ScopedException> errors = ScopedException.extractErrors(result.error); in testIncludeInMerge()
273 final ScopedException ex = errors.get(0); in testIncludeInMerge()
DMultiLayoutVerificationTest.java23 import android.databinding.tool.processing.ScopedException;
50 List<ScopedException> exceptions = result.getBindingExceptions(); in testMultipleLayoutFilesWithNameMismatch()
54 for (ScopedException exception : exceptions) { in testMultipleLayoutFilesWithNameMismatch()
106 List<ScopedException> exceptions = result.getBindingExceptions(); in testMultipleLayoutFilesVariableMismatch()
110 for (ScopedException exception : exceptions) { in testMultipleLayoutFilesVariableMismatch()
159 List<ScopedException> exceptions = result.getBindingExceptions(); in testMultipleLayoutFilesImportMismatch()
163 for (ScopedException exception : exceptions) { in testMultipleLayoutFilesImportMismatch()
210 List<ScopedException> exceptions = result.getBindingExceptions(); in testSameIdInIncludeAndView()
215 for (ScopedException exception : exceptions) { in testSameIdInIncludeAndView()
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/processing/
DScopedException.java36 public class ScopedException extends RuntimeException { class
46 public ScopedException(String message, Object... args) { in ScopedException() method in ScopedException
53 ScopedException(String message, ScopedErrorReport scopedErrorReport) { in ScopedException() method in ScopedException
103 public static ScopedException createFromOutput(String output) { in createFromOutput()
140 return new ScopedException(message.trim(), in createFromOutput()
144 public static List<ScopedException> extractErrors(String output) { in extractErrors()
145 List<ScopedException> errors = new ArrayList<ScopedException>(); in extractErrors()
DScope.java37 static List<ScopedException> sDeferredExceptions = new ArrayList<ScopedException>();
59 public static void defer(ScopedException exception) { in defer()
66 defer(new ScopedException(msg)); in registerErrorInternal()
102 for (ScopedException ex : sDeferredExceptions) { in assertNoError()
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/
DL.java19 import android.databinding.tool.processing.ScopedException;
84 if (t instanceof ScopedException) { in tryToThrowScoped()
85 ScopedException ex = (ScopedException) t; in tryToThrowScoped()
90 ScopedException ex = new ScopedException(fullMessage); in tryToThrowScoped()
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/
DDataBinder.java20 import android.databinding.tool.processing.ScopedException;
50 } catch (ScopedException ex) { in DataBinder()
81 } catch (ScopedException ex){ in writerBaseClasses()
98 } catch (ScopedException ex) { in writeBinders()
/frameworks/data-binding/compiler/src/main/java/android/databinding/annotationprocessor/
DBuildInfoUtil.java20 import android.databinding.tool.processing.ScopedException;
36 ScopedException.encodeOutput(sCached.printEncodedError()); in load()
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/
DDataBindingBuilder.java22 import android.databinding.tool.processing.ScopedException;
64 ScopedException.encodeOutput(machineReadableOutput); in setPrintMachineReadableOutput()
68 return ScopedException.issEncodeOutput(); in getPrintMachineReadableOutput()
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/store/
DResourceBundle.java18 import android.databinding.tool.processing.ScopedException;
220 } catch (ScopedException ex) { in validateMultiResLayouts()
267 } catch (ScopedException ex) { in validateMultiResLayouts()