Commit Graph

12 Commits

Author SHA1 Message Date
Adnan Begovic 70d3b76d2a cmsdk: Add binder transaction id tests for api 5 interfaces.
Change-Id: I693f09266dab763141e3957392fb82c4fb7344a0
2016-06-04 11:56:52 -07:00
Adnan Begovic eafcdbd229 cmsdk: Create Concierge parcel handler concept.
Simply, Concierge handles your parcels and makes sure they
  get marshalled and unmarshalled correctly when cross IPC
  boundaries even when there is a version mismatch between the client
  sdk level and the framework implementation.

 On incoming parcel (to be unmarshalled):
     ParcelInfo incomingParcelInfo = Concierge.receiveParcel(incomingParcel);
     int parcelableVersion = incomingParcelInfo.getParcelVersion();

     // Do unmarshalling steps here iterating over every plausible version

     // Complete the process
     incomingParcelInfo.complete();

 On outgoing parcel (to be marshalled):
     ParcelInfo outgoingParcelInfo = Concierge.prepareParcel(incomingParcel);

     // Do marshalling steps here iterating over every plausible version

     // Complete the process
     outgoingParcelInfo.complete();

Change-Id: I0096851e08ce25908e19e39e6bc4af344e85725e
2016-03-31 17:58:11 -07:00
Adnan Begovic 9c902f898e cmsdk: Update binder transaction tests for new interfaces.
Change-Id: I79352dc36a4934f9821c5b487df0fb19a7ebc693
2016-02-22 14:39:15 -08:00
Adnan Begovic eb17396831 cmsdk: Add concept of parameterized BinderIdTransactionTest.
To avoid any future release having offset binder transaction
  call ids, create a means to validate binder transaction ids
  within a parameterized environment based off of prior releases.

  This requires utilizing the new android testing support library
  for junit4 support.

Change-Id: Iefe3c183de2bdfa127ea53dcf21c8223f0355c34
2016-02-05 13:52:31 -08:00
Adnan Begovic 80001bff72 cmsdk: Fix BuildTests. Bump parcelable version.
Change-Id: I3084acfa25ca6bd6f5a058995906a050e243a4c9
2016-01-19 13:43:16 -08:00
Adnan Begovic 241e559538 cmsdk: Remove systemserverclasspath test.
The jars all have oat files now, so iterating them and seeing
  if they're "clean" is pointless since they're not part of the
  processes runtime libraries on zygote fork.

Change-Id: I8c0e0ce16a84c423e68f8c1749f3676c3bd2931f
2015-10-29 17:37:32 -07:00
Adnan Begovic 4e53461e71 cmsdk: API level 4 for M release.
Change-Id: Ieed8ebf256e91515b6921186487b83462910bca9
2015-10-07 11:32:41 -07:00
Adnan Begovic 38e8b11ea7 cmsdk: Create api level 3, cantaloupe.
Change-Id: I5cefacf1196261b071ce2c3561f18ebaf74de604
2015-09-29 11:40:29 -07:00
Adnan Begovic 8fc6affd38 cmsdk: Add classpathtests.
Change-Id: I78f21934046a8a8917dc59f5423986a7077f4531
2015-09-25 01:08:16 -07:00
Adnan Begovic 06fc4498e4 cmsdk: Return UNKNOWN for impossible sdk ints.
Change-Id: I77a44abba0db223b031d6714c4fd8beb03a43cdc
2015-07-16 16:03:36 -07:00
Adnan Begovic acc870807d cmsdk: Add unit tests for versioning with os.Build
Change-Id: I0efbd7a3d23dc3b29b06219ecbf3887f17fe6801
2015-07-15 11:23:13 -07:00
Adnan Begovic 757d564a12 CMSDK: Update for versioning tests.
Change-Id: I0dfd4a9a158b08fc556ddf9c20e0167f99827d17
2015-06-08 16:20:06 -07:00