History log of /system/tools/aidl/generate_java.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
12e894a3b69f045f104a9026765ecbc60ec5967e 29-Jan-2016 Christopher Wiley <wiley@google.com> Remove last using directives from global header scope

Bug: None
Test: Compiles, unittests pass

Change-Id: I66dee2504b28049ecb74526a08345e999d57db8d
/system/tools/aidl/generate_java.h
3a9da170c8e8ab91841339cd0ee9b5edd12a80c6 29-Jan-2016 Christopher Wiley <wiley@google.com> Update style in generate_java.*

- Add license notices
- Adopt Google style conventions
- remove string append(char* a, char* b)
- remove using std::* declarations from headers
- do not sprintf into a char buffer any longer

Bug: None
Change-Id: I42d95d25a6a88e87150bd9c7f1b79e26b9076c11
Test: compiles, unittests continue to pass
/system/tools/aidl/generate_java.h
a30a45e7b7cdd3c4b5b7c5dcc6ce005abfe7c90f 17-Oct-2015 Christopher Wiley <wiley@google.com> Mock IO in all unit tests

Bug: 24816077
Test: unittests pass

Change-Id: I3e269106727370173a45a3443602a33eb4d7e9f8
/system/tools/aidl/generate_java.h
1ae2bc56d20fe0e19262f2721abc338662fa6e30 08-Oct-2015 Casey Dahlin <sadmac@google.com> Convert document item structs to classes

This is the least-complete first run for any of these structs, but this
shift is going to be particularly gnarly, so we need to be
extra-incremental about it.

Change-Id: I7295add8b9a1291f229743f8c36d941569a16ab6
Test: unit tests
Bug: 24410295
Signed-off-by: Casey Dahlin <sadmac@google.com>
/system/tools/aidl/generate_java.h
f2d23f7f05252fa1a06a8f95bd9475fa9d414c0c 03-Oct-2015 Casey Dahlin <sadmac@google.com> Kill comments token in AidlMethod

Change-Id: I3df6629eaa5b56093d2453269d4b138987bee7ce
Test: unit tests
Bug: 24410295
Signed-off-by: Casey Dahlin <sadmac@google.com>
/system/tools/aidl/generate_java.h
db154a5f543ff697248df649a14f2ac4a70cbf0e 29-Sep-2015 Christopher Wiley <wiley@google.com> Move Java related code into a java namespace

This lets us use names like Type instead of CppType for generated
code specific to C++. C++ code will similarly go in its own namespace.

Bug: 24472672
Test: Compiles, unittests pass

Change-Id: I10fc8ce6436e297eb36c7b63e0c6d78a45bf2a19
/system/tools/aidl/generate_java.h
84c1eacc7f09377d7724f0783187b0477fe7c2ba 23-Sep-2015 Christopher Wiley <wiley@google.com> Use TypeNamespace instances in aidl.cpp

Refactor much of the logic around types into an instance of
TypeNamespace. This class defines an interface to type reasoning
logic that aidl.cpp can use to register binder and parcelable types
it loads during parsing. Code generation can use a language specific
subclass of the type namespace to reason about types more specifically.

For now, leave NAMES and the global type constants intact. We'll
refactor those in a separate change if necessary.

Bug: 24303749
Test: Compiles, unittests pass

Change-Id: Ie56a89159c956c587a1ff3e45d38d1850b04a9f2
/system/tools/aidl/generate_java.h
214c916028246ac6ede992877adfd8def175c8dd 24-Sep-2015 Christopher Wiley <wiley@google.com> Revert "Use TypeNamespace instances in aidl.cpp"

This fixes a build break while we investigate.

This reverts commit d03b54f61d1a0fb1a2791ee96d476180a5d38c85.

Change-Id: I200e7a6c84274e71ea661f8d952807e8266c5e54
/system/tools/aidl/generate_java.h
d03b54f61d1a0fb1a2791ee96d476180a5d38c85 23-Sep-2015 Christopher Wiley <wiley@google.com> Use TypeNamespace instances in aidl.cpp

Refactor much of the logic around types into an instance of
TypeNamespace. This class defines an interface to type reasoning
logic that aidl.cpp can use to register binder and parcelable types
it loads during parsing. Code generation can use a language specific
subclass of the type namespace to reason about types more specifically.

For now, leave NAMES and the global type constants intact. We'll
refactor those in a separate change if necessary.

Bug: 24303749
Test: Compiles, unittests pass

Change-Id: Ie961dcef4f10bc23932ce45c39a1b190d272ab72
/system/tools/aidl/generate_java.h
8f6816ea1fb532cff9ce0ecc1449926553b4e1da 23-Sep-2015 Christopher Wiley <wiley@google.com> Don't allow non-const pointers to Type instances

This makes the namespace into a read only datastructure of types
with a few methods to load types during parsing.

Bug: 24303749
Test: compiles, unittests

Change-Id: I0873e520d771b348a1a8ec9515b6e7b9a8a29298
/system/tools/aidl/generate_java.h
fdeb0f4b96b6c39b1b9ed3358634f180f9e6df06 12-Sep-2015 Christopher Wiley <wiley@google.com> Abstract away file IO when writing generated code

This allows us to write unittests of Java/Cpp AST elements without
doing file I/O each time. Introduce a CodeWriter class which
may write to either a string or a file dependening on the contect.

While here, mark the write methods as const.

Test: Compiles, unittests pass, added new unittest demonstrating usage.
Bug: 23598995

Change-Id: I240ede41f0f9c04c0d14d1a3680ce5ab332babbc
/system/tools/aidl/generate_java.h
038485e9c8a4d7c0d47720e5bb1b1086b7550de7 12-Sep-2015 Christopher Wiley <wiley@google.com> Rename AST.{h,cpp} files to ast_java.{h,cpp}

Soon we will grow equivalent ast_cpp.{h,cpp} files.

Bug: 23598995
Change-Id: Ief017596a1a19d679a66c183f3956f069e8a989a
Test: Compiles, unittests pass
/system/tools/aidl/generate_java.h
88868fc6566d371bf04180c429964bc699effb55 01-Sep-2015 Casey Dahlin <sadmac@google.com> Remove RPC interface Type

AIDL previously supported "rpc" and "flatten" types, which are not used
anywhere in the Android tree. This patch removes them, which significantly cuts
down code and complexity.

Bug: 23517584
Test: Rebuilt AOSP tree against new version
Change-Id: I6cf38d43c1ce109ffca987cc14520945aa22431f
Signed-off-by: Casey Dahlin <sadmac@google.com>
/system/tools/aidl/generate_java.h
89e3586afa180230fa999d4287df90df9d066cef 30-Aug-2015 Christopher Wiley <wiley@google.com> aidl: Pull main() into dedicated file

This separates the main() entry point from the functionality we're
hoping to test. While here, redo the header guards to be consistent
accross the codebae.

Bug: 23516947
Change-Id: I61666126bdba0941f14bd0f031caaa30367b864a
Test: Compiles
/system/tools/aidl/generate_java.h
9f4c7ae970a27bcf081d838671b4f4d7505861b3 24-Aug-2015 Christopher Wiley <wiley@google.com> Do not merge namespaces

It is good practice to not include the whole std:: namespace into
the global namespace. This is doubly true in headers.

TEST=aidl compiles

Change-Id: I910ca8082f61cce4f23f8564b8a12c2828b75b3c
/system/tools/aidl/generate_java.h
ffa1686a7a8964d1f6e08ee2ab3e5eb42eb5f0b3 24-Jan-2014 Adam Lesinski <adamlesinski@google.com> Revert "Move frameworks/base/tools/ to frameworks/tools/"

This reverts commit 9f6a119c8aa276432ece4fe2118bd8a3c9b1067e.
/system/tools/aidl/generate_java.h
be354814711cbbb3bcf7467fc69d53fcf9363093 28-Aug-2013 Mike Lockwood <lockwood@google.com> Move frameworks/base/tools/ to frameworks/tools/

Change-Id: I3ffafdab27cc4aca256c3a5806b630795b75d5c8
/system/tools/aidl/generate_java.h
c596cfe6ebccd8f0bcced0922fbc6029c3b750ef 31-Aug-2011 Joe Onorato <joeo@google.com> Checkpoint adding @home RPC support to aidl
/system/tools/aidl/generate_java.h
46c012c3806a4b5c5c46539ea5070cc56e1bdb4b 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/system/tools/aidl/generate_java.h