OSDN Git Service

Handle leading number before an object in parcel
authorNingyuan Wang <nywang@google.com>
Tue, 24 Jan 2017 19:23:54 +0000 (11:23 -0800)
committerNingyuan Wang <nywang@google.com>
Tue, 24 Jan 2017 20:54:53 +0000 (12:54 -0800)
commit08882f8250a87732734a12991963cc91316102ca
tree1ef4e4cde2ced228d5b0300cc6732d803dc74f6b
parent28a1923d15b36474e0e50ff5224259df4eb7837f
Handle leading number before an object in parcel

Java writeTypedList() implementation uses a leading number
with either 0 or 1 before an object in parcel.
0 means this object is null.
1 means this object is not null.
C++ code should handle it accordingly.

Bug: 34359499
Change-Id: I2e107ffa00573d4ffa31041a14dbec581e09a23a
Test: compile, unit tests, manual tests.
scanning/pno_settings.cpp
scanning/single_scan_settings.cpp