History log of /system/tools/aidl/io_delegate.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8decf95ffeffcc8aa14aa743ae398bc38d54b0ac 03-Jun-2016 Christopher Wiley <wiley@google.com> Always build absolute paths the same way

Fix a bug where output paths like:

C:\foo\bar

triggered bad logic to detect relative paths and turned the path into

.\C:\foo\bar

Fix this by moving absolute path detection logic into a common helper
function and calling it consistently.

Bug: 29091703
Test: unittests, angler-eng builds with this change, manual testing on
windows demonstrates issue is fixed

Change-Id: I8bc83a3e3943931d95db3e4147d4f8b1b07e907a
/system/tools/aidl/io_delegate.cpp
d669de90be1ba7e601fcd83092a0e9ca5effa178 15-Apr-2016 Dan Albert <danalbert@google.com> Include the failed directory name if _mkdir fails.

( cherry-picked from 767d301911e31216e0f7c2659e79cf8f3763575e )

http://b.android.com/202972 shows a failure here, but we lack the
information to know what the bad input was. My guess is that it's
caused by POSIX path separators, but we should add more details to
the error message for the future.

Bug: http://b.android.com/202972
Bug: 29091703
Change-Id: I6fa131604e0268c6ddbea5c9d1499897754f197d
/system/tools/aidl/io_delegate.cpp
0a62067f35e957493bc37c4b42dfdcfc16353831 04-Dec-2015 Elliott Hughes <enh@google.com> Track base/ -> android-base/ change.

Change-Id: I02b64b42c17d248c5fb2c4de4b0778a441e018e3
/system/tools/aidl/io_delegate.cpp
9d6e0b29add607669e440085f1fc60cd434dc987 13-Nov-2015 Christopher Wiley <wiley@google.com> Remove generated code on IO errors

Bug: 25026025
Test: unit tests

Change-Id: Ice5d823102c742d546386f1ad71ef63a48c90820
/system/tools/aidl/io_delegate.cpp
3badcdead366eb89cadd28e84f06e37067e62c99 06-Nov-2015 Christopher Wiley <wiley@google.com> Fix directory creation on OSX

There are cases when mkdir(2) returns EISDIR on OSX expect and tolerate
this.

Bug: 25559586
Test: compiles, unittests pass

Change-Id: I72a467c7057d67c430c5a0d37774c93ad6c20576
/system/tools/aidl/io_delegate.cpp
ef1409302aa97b1807e55c63588ac0a428f41a06 03-Nov-2015 Christopher Wiley <wiley@google.com> Allow mocking of preprocessed file read

Bug: 17415692
Test: Clean build of AOSP succeeds.

Change-Id: I723031e9847b589909825736f1094e6bba039f7a
/system/tools/aidl/io_delegate.cpp
6453351b3ee9ce9b91650a8175464a6e339130c7 24-Oct-2015 Casey Dahlin <sadmac@google.com> Use IO delegates to create path in compile_aidl_to_java

Change-Id: I654e97d4149b0eb247fb683f9fefc2a7121f3507
Test: Unit tests pass
Signed-off-by: Casey Dahlin <sadmac@google.com>
/system/tools/aidl/io_delegate.cpp
054afbd3037addb4f2e245ecbc36f31d3040f877 17-Oct-2015 Christopher Wiley <wiley@google.com> Change C++ output to match make expectations

- generate a single C++ output file
- put headers into an output directory
- create the output directory structure using an IoDelegate

Bug: 23599697
Test: Unittests pass

Change-Id: I0f7b821678cd5adc00b2fdba06b52b235c724467
/system/tools/aidl/io_delegate.cpp
72877acd3b57462fcd452bff4a9d7ff936936a8e 06-Oct-2015 Christopher Wiley <wiley@google.com> Add ImportResolver class

This class delegates to an IoDelegate for file I/O.
This replaces the search_path.* files.

Bug: 24703046
Test: Unittests pass

Change-Id: I261f6066cef514926b45174988863b745a37e87c
/system/tools/aidl/io_delegate.cpp
4a2884b0e9414ed9dfee4e141e8bd462c07b442b 07-Oct-2015 Christopher Wiley <wiley@google.com> Read all files through IoDelegate

This allows us to easily fake out file IO in tests.

Bug: 24703046
Change-Id: I33a59c8e43489b03f27f99fb2949e58cc0311eb1
Test: unittests still pass, clean build of android passes
/system/tools/aidl/io_delegate.cpp