102 Commits

Author SHA1 Message Date
Ying Wang
0f91c63602 Better aidl generated dependency
Previously if an imported aidl file has been deleted or moved,
the generated dependency file still contains the stale file name,
and make will fail with "No rule to make target <the deleted/moved
file>".
This change uses technique described in section "Automatic Dependency
Generation", Chapter 8 of "Managing Projects with GNU Make (3d
Edition)".
The same technique is used by the Android platform build system to
generate C/C++ header dependencies.

Bug: 10459179
Change-Id: Ib0c01a4234ef1af994487fdc846cdf8d13a675f6
2013-08-23 17:19:17 -07:00
Laurent Tu
7c93839d7b Revert "Tentative fix for aidl import issue"
Fix build.

This reverts commit 4f115e08cb68aaf77693f3f4598f0eb5f7634777.

Change-Id: Ic4f51e3492f54afec5f0eeb48e08491eb47f3c04
2013-02-15 16:07:56 -08:00
Laurent Tu
4f115e08cb Tentative fix for aidl import issue
Fix issue when aidl generation doesn't use the right type when
it is a suffix of a pre-declared type.

eg. android.location.Location and foo.android.location.Location. The
aidl generation will never use foo.android.location.Location.

The tentative fix reverses the order in which Namespace.Search iterates
through the known types.

A better fix would be to annotate the types that are declared in the
aidl import statements to be prioritary in Namespace.Search. Lmk if I
you agree with this approach and think that this is worth the work.
Thanks!

Change-Id: I97dd1a1d417075accf1d61f9aba5aba3dea175c6
2013-02-14 16:12:54 -08:00
Kenny Root
7b172a49a9 am 58ed5d74: am 768d9e1a: Merge "Correct executable bit for source files"
* commit '58ed5d748c0b9b64845975ef5844ad313de7c3f6':
  Correct executable bit for source files
2012-11-07 13:08:25 -08:00
Kenny Root
58ed5d748c am 768d9e1a: Merge "Correct executable bit for source files"
* commit '768d9e1a72ceee7d4a5f608776b87b62d6ce4a04':
  Correct executable bit for source files
2012-11-07 11:52:12 -08:00
Kenny Root
3a084af2e9 Correct executable bit for source files
Many media files and source code files were marked as executable in Git.
Remove those.

Also a shell script and python script were not marked as executable.

Change-Id: Ieb51bafb46c895a21d2e83696f5a901ba752b2c5
2012-11-07 10:27:31 -08:00
Maurice Chu
02822d0590 Enhance AIDL to take an explicit id for methods
This adds an annotation to methods in AIDL of the form
"void myMethod() = 3;" to explicitly set the onTransact
id for the method.  Either all methods must have explicitly
annotated id's or none of them should be explicitly annotated.
There is error checking in the AIDL compiler
for duplicate id's and id's outside of the valid range.

Bug: 7353910
Change-Id: I868045e3f112c9a279c573cea368a621116cbf77
2012-10-18 14:47:13 -07:00
Adam Powell
50a94b8630 Allow multiple 'parcelable' declarations in aidl files
This solves a problem with declaring multiple Parcelable static inner
classes.

Change-Id: I5e42b412d6d937df19a388988be5aa58a8dbc3e4
2012-08-16 14:54:26 -07:00
Elliott Hughes
b14c215eb2 am 4b4b4438: am 33c5670b: Merge "Fewer warnings in aidl generated code."
* commit '4b4b44381b133e9ab7418806c046774b7fd31393':
  Fewer warnings in aidl generated code.
2012-08-07 13:20:50 -07:00
Elliott Hughes
b327c41e12 Fewer warnings in aidl generated code.
Bug: http://code.google.com/p/android/issues/detail?id=19196
Change-Id: If054e60c19dc73fe32f55d0fa1054309565a6de6
2012-08-07 10:34:02 -07:00
Manuel Roman
bb5a8fd908 am 9d98a089: Check result handler is not null
* commit '9d98a089756b692eefeae7f92cca15e121196e0c':
  Check result handler is not null
2012-05-23 16:00:37 -07:00
Manuel Roman
9d98a08975 Check result handler is not null
If caller passes a null result handler to the proxy methods, we need
to check it when getting the result. Otherwise we try to invoke a method
on a null object

Change-Id: Ic2f456c36cb542b782b6a6d0d4d607ccf0987496
2012-05-23 14:25:31 -07:00
Mike Lockwood
17a452f00c Revert "Revert "The com.android.athome api classes are moving android.support.place.""
This reverts commit 9dede89795a88268ab735a1b28e628f2a77922fe.
2012-02-17 10:38:00 -08:00
Mike Lockwood
9dede89795 Revert "The com.android.athome api classes are moving android.support.place."
to fix the build

This reverts commit 1aeecce8e9fe2749d1ad7ec86e40fe5a892f8f05
2012-02-17 09:53:17 -08:00
Joe Onorato
1aeecce8e9 The com.android.athome api classes are moving android.support.place.
Change-Id: Ibb9b8cfc8e7d0676df43359f5abaaed5e9e1112d
2012-02-16 17:59:30 -08:00
Manuel Roman
01060b08fb Modified the constructor of EndpointBase
We introduced changes to the Endpoint lifecycle.
Modified the AIDL compiler to take into account the
changes. Just affected the constructor, which needs
now an extra parameter: placeInfo
2012-02-10 14:44:07 -08:00
Jason Simmons
7dc2973951 Add a getEndpointInfo accessor to AIDL-generated RPC proxy classes 2012-02-10 14:44:07 -08:00
Joe Onorato
c3a7bb6563 Use the new get/putFlattenable methods on RpcData.
They handle null correctly.
2012-02-10 14:44:05 -08:00
Joe Onorato
0a7eaecf64 Don't try to unmarshal void return types when there are out parameters being returned. 2012-02-10 14:44:05 -08:00
Joe Onorato
fcb310f936 For events, require that the parameters be marked in.
(because they won't work otherwise)
2012-02-10 14:44:04 -08:00
Joe Onorato
79824179b8 Support putting Flattenables in Lists. 2012-02-10 14:44:04 -08:00
Joe Onorato
6e0f981e86 Was generating code that uses the wrong RpcData. 2012-02-10 14:44:04 -08:00
Joe Onorato
28087c63d8 Update aidl for new Broker API. 2012-02-10 10:51:23 -08:00
Joe Onorato
a1c6d909c2 aidl: All flattenable types now must also be parcelable.
This is more a limitation of the grammar than anything else triggering laziness on my part.
2012-02-10 10:51:23 -08:00
Joe Onorato
95a766ddcd Update aidl to new APIs. 2012-02-10 10:51:23 -08:00
Joe Onorato
6c0236c53a Suport RpcData as a parcelable type. 2012-02-10 10:51:22 -08:00
Manuel Roman
b71287f42e Modified AIDL to support authentication
We need to pass an RpcContext with information
such as the caller's certificate. I also modified
the compiler so it does not use Container anymore
and uses Context
2012-02-10 10:51:22 -08:00
Tim Kilbourn
22a7cb8d49 Fix PresenterClass by adding a _listener field 2012-02-10 10:51:22 -08:00
Joe Onorato
e24dbeafe6 add presenters to aidl. 2012-02-10 10:51:22 -08:00
Joe Onorato
21d524ea8a Generate fallthrough for unhandled actions in RPC methods. 2012-02-10 10:51:21 -08:00
Joe Onorato
7db766c3fe Support custom flattenable types for RPC. 2012-02-10 10:51:21 -08:00
Joe Onorato
1eb720446d Add RpcData as a built-in marshallable type. 2012-02-10 10:51:20 -08:00
Joe Onorato
05ffbe7c02 Add the full suite of RpcData types. 2012-02-10 10:51:20 -08:00
Joe Onorato
fdfe2ff8c6 Checkpoint adding @home RPC support to aidl 2012-02-10 10:51:20 -08:00
Jason Simmons
6e5d9dfc5f Merge "Add a getEndpointInfo accessor to AIDL-generated RPC proxy classes" into ics-aah 2012-01-11 12:51:52 -08:00
Manuel Roman
a8744b7cdf Modified the constructor of EndpointBase
We introduced changes to the Endpoint lifecycle.
Modified the AIDL compiler to take into account the
changes. Just affected the constructor, which needs
now an extra parameter: placeInfo

Change-Id: I936e8e0ee512a1f7015a029be48042b7b98b7ffb
2012-01-03 22:03:37 -08:00
Jason Simmons
20e0cef180 Add a getEndpointInfo accessor to AIDL-generated RPC proxy classes
Change-Id: I1de957db3eceebc466d8ce23e2a80a0fcf4c917c
2011-12-16 16:14:17 -08:00
Joe Onorato
0c86196fe1 The com.android.athome api classes are moving android.support.place.
Change-Id: Ibb9b8cfc8e7d0676df43359f5abaaed5e9e1112d
2011-12-11 20:42:33 -08:00
Joe Onorato
c286560534 Use the new get/putFlattenable methods on RpcData.
They handle null correctly.

Change-Id: I8eebf43e1791ea0f99f3d4ee1beb74aa4c977115
2011-12-04 21:13:23 -08:00
Joe Onorato
6980de4ef9 Don't try to unmarshal void return types when there are out parameters being returned.
Change-Id: Ib7d2a5609167a076dd7ee8e10e8a55056789517e
2011-11-17 16:13:49 -08:00
Joe Onorato
2037c2585c For events, require that the parameters be marked in.
(because they won't work otherwise)

Change-Id: I77f370ca1bc381ea07fc2854d2a90d8138ca1796
2011-11-08 17:35:09 -08:00
Joe Onorato
44c620da02 Support putting Flattenables in Lists.
Change-Id: I683ec1823286d7f2ac03683a1cdad6413d2445b1
2011-11-07 18:12:22 -08:00
Joe Onorato
ab26b50134 Was generating code that uses the wrong RpcData.
Change-Id: I7984ac8306d7e293c6e4ccb75c5f03c508e465af
2011-11-06 18:14:40 -08:00
Joe Onorato
f1d897d996 Merge "This should fix the build for now." into ics-aah 2011-11-03 17:06:32 -07:00
Joe Onorato
6e5cb4b38a This should fix the build for now.
I can't reproduce the real problem.

Change-Id: I851d42eed6f5eb5e9b2b53859e97b43438676cc8
2011-11-03 17:05:10 -07:00
Joe Onorato
fc0bd56e72 Merge "Add some extra debug information because this error is only happening on the build server." into ics-aah 2011-11-03 14:46:13 -07:00
Joe Onorato
0ee2431b27 Add some extra debug information because this error is only happening on the build server.
Change-Id: I0703fffbe9701bf6614030e948a8e6cbfc3647be
2011-11-03 14:44:13 -07:00
Joe Onorato
8f3580e9da Revert "Treat parcelables as flattenables for now, until the sdk contains a newer aidl."
Change-Id: I8f588d160888550ee79564afe6935fd0f78bc1f7
2011-10-28 10:14:52 -04:00
Joe Onorato
47f2f8340f Treat parcelables as flattenables for now, until the sdk contains a newer aidl.
Change-Id: Ic673aaa41fc9f430fdb7bda8963297452c9471da
2011-10-28 10:14:52 -04:00
Joe Onorato
adfe8d28bf Update aidl for new Broker API.
Change-Id: Ibb92fb85eea5e9c9aeaf8ef1d2a5ef19fbf68021
2011-10-28 10:14:51 -04:00