95 Commits

Author SHA1 Message Date
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
Joe Onorato
94ca1b9978 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.

Change-Id: I5ad949c6d8378870e40a15cf6e975e318cfeece5
2011-10-28 10:14:51 -04:00
Joe Onorato
abd8c07091 Update aidl to new APIs.
Change-Id: If7a39bec6478ee2a2c1493c744fa5afe9757c88d
2011-10-28 10:14:51 -04:00
Joe Onorato
11987cdbb3 Suport RpcData as a parcelable type.
Change-Id: I5721fe5b33f52edfb06f4c9cd4f8c97d234e9fc7
2011-10-28 10:14:51 -04:00
Manuel Roman
9e2df97488 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

Change-Id: Ib54b774f9c7b5cb3e0a014ce91548b817efcb72b
2011-10-28 10:14:51 -04:00
Tim Kilbourn
923a41816c Fix PresenterClass by adding a _listener field
Change-Id: I22578bba4d66d032f67ceec3e7232de13be4f175
2011-10-28 10:14:51 -04:00
Joe Onorato
827af24a3e add presenters to aidl.
Change-Id: I23c0bb085f3bfd27ca3b7f53e26cb704f8ddac1a
2011-10-28 10:14:50 -04:00
Joe Onorato
acff08262d Support custom flattenable types for RPC.
Change-Id: I5c29043baba792ce99d2e9d48bc96d4837b2a808
2011-10-28 10:14:50 -04:00