Adam Metcalf
51d87cc588
am 380d1b5a: Fix the merge conflict leftovers.
...
* commit '380d1b5a78de07a081b36c890321ac61a0fced1a':
Fix the merge conflict leftovers.
11 years ago
Wink Saville
5486adb7d2
am adfb09a0: am 7632e0ad: Merge commit \'11c3b27d\' into fix-mc
...
* commit 'adfb09a08d450f356a69c74c0a80a3e4573e20b8':
11 years ago
Wink Saville
fb594ee1ec
am df9a6dff: am 48ee66d2: am ece98e5f: Merge "Fix checkbuild targets, remove unittest_enum_mulitplejava_nano.proto."
...
* commit 'df9a6dffee90f5ff657265b415ee5eb9fb5e3960':
11 years ago
Wink Saville
990a4753dc
am ba363f13: am a38aedb3: am e7b778b9: Merge "Fix outer classname for javamicro/javanano."
...
* commit 'ba363f1380e9b99e6606462b21febd2e4027e340':
11 years ago
Wink Saville
5534cede6e
am 4d7f9ad7: am ece98e5f: Merge "Fix checkbuild targets, remove unittest_enum_mulitplejava_nano.proto."
...
* commit '4d7f9ad71771fff628e88d463af94b44457b7934':
11 years ago
Wink Saville
5a2be75cb2
am f105476a: am e7b778b9: Merge "Fix outer classname for javamicro/javanano."
...
* commit 'f105476adedac50be509ed36cbb187b92fca54d9':
11 years ago
Ying Wang
efd4ae404f
am 94f522f9: am 49512cb0: Merge "You CANNOT change the global WITH_DEXPREOPT"
...
* commit '94f522f907e3f34f70d9e7816b947e62fddbb267':
You CANNOT change the global WITH_DEXPREOPT
11 years ago
Ying Wang
70ef74aaa6
am 49512cb0: Merge "You CANNOT change the global WITH_DEXPREOPT"
...
* commit '49512cb01065b41c0113248c2c02800de1156d50':
You CANNOT change the global WITH_DEXPREOPT
11 years ago
Ying Wang
b54018a23c
Merge "You CANNOT change the global WITH_DEXPREOPT"
11 years ago
Ying Wang
d75027090c
You CANNOT change the global WITH_DEXPREOPT
...
Bug: 14380196
Change-Id: I2b9e6db081558687afd5c20c7084824dfe1bb26e
11 years ago
Jan-Willem Maarse
00120917a1
am 58eb8e98: am d20f0a42: Merge "Fix NPE when clearing an extension in nano protos"
...
* commit '58eb8e98d17971273548930a7e8d45e69995a2c8':
Fix NPE when clearing an extension in nano protos
11 years ago
Jan-Willem Maarse
3e46c9b5da
am d20f0a42: Merge "Fix NPE when clearing an extension in nano protos"
...
* commit 'd20f0a4260763531acf5de677e4830afe0bfc53e':
Fix NPE when clearing an extension in nano protos
11 years ago
Jan-Willem Maarse
4aecb2b6d5
Merge "Fix NPE when clearing an extension in nano protos"
11 years ago
Jan-Willem Maarse
b24fdd476f
Fix NPE when clearing an extension in nano protos
...
If ExtendableMessageNano doesn't have any unknown fields, trying to
clear an extension by setting it to null would throw an NPE.
Change-Id: I6abcdfcc0193de44f97b21dd6cc2f40604938a1a
11 years ago
Bill Yi
12214c58ec
am ddeaf256: Merge commit \'ba89934bdae7f4256c94a0a24992903a114e764f\' into HEAD
...
* commit 'ddeaf25683a5aa4d6e7ef784c7380c9332cdb3ce':
11 years ago
Bill Yi
af802cd274
Merge commit 'ba89934bdae7f4256c94a0a24992903a114e764f' into HEAD
11 years ago
Jeff Davidson
3eafa87ab8
am 33a6680a: Merge "Support generation of Parcelable nano messages."
...
* commit '33a6680ab98977cd5b9b7b03f4875b9265cfec3b':
Support generation of Parcelable nano messages.
11 years ago
Jeff Davidson
a2724e7cf3
Merge "Support generation of Parcelable nano messages."
11 years ago
Jeff Davidson
ec4b1ce0b6
Support generation of Parcelable nano messages.
...
This CL adds the "parcelable_messages" option. When enabled, all
generated message classes will conform to the Android Parcelable
contract. This is achieved by introducing a new parent class for
generated classes which implements the required functionality.
Since the store_unknown_fields option also makes use of a superclass,
ExtendableMessageNano, we have two versions of the new Parcelable
superclass: one extending MessageNano, and one extending
ExtendableMessageNano. These classes are otherwise identical.
As these classes depend on Android framework jars, they are not
included in the host .jar build of the nanoproto library.
Finally, add a test suite for running tests of Android-specific
functionality, as this cannot be done on a desktop JVM.
Change-Id: Icc2a257f03317e947f7078dbb9857c3286857497
11 years ago
Max Cai
5cc8a31ea1
am 829f6c01: Merge "Adds --ignore_service nano proto compiler flag"
...
* commit '829f6c014ce69d04593d30652c8acc2f7a793851':
Adds --ignore_service nano proto compiler flag
11 years ago
Max Cai
f1019531a6
Merge "Adds --ignore_service nano proto compiler flag"
11 years ago
Jie Dai
d9425a6218
Adds --ignore_service nano proto compiler flag
...
Nano proto compiler normally throws an error if any service is
defined. If --ignore-services=true is set, no error is thrown and the
service is simply skipped.
Change-Id: Id82583555085cc55550d03a485d3f0189885240b
11 years ago
Max Cai
09f640ef43
am ea68d73c: Merge "Don\'t reset cachedSize to 0 in getSerializedSize"
...
* commit 'ea68d73c08b3b9319faef8ef9cd283e773a6ef20':
Don't reset cachedSize to 0 in getSerializedSize
11 years ago
Max Cai
56cba8eeae
Merge "Don't reset cachedSize to 0 in getSerializedSize"
11 years ago
Dave Hawkey
598087ef53
Don't reset cachedSize to 0 in getSerializedSize
...
This avoids a race-condition when cachedSize is momentarily set to 0
for non-empty messages if multiple threads call getSerializedSize
(e.g. during serialization).
This is a retry of https://android-review.googlesource.com/#/c/88570/ .
getSerializedSize() has been kept non-final so that messages generated
with a previous version of the compiler will not break.
Change-Id: I8d8154a10938cde579ae19c55eae55b1e70e0bda
11 years ago
Wink Saville
6ba01e2439
am ce2f5991: Merge "Revert "Don\'t reset cachedSize to 0 in getSerializedSize""
...
* commit 'ce2f59915e0b41c935e3f72a2b7b71b6c19b6860':
Revert "Don't reset cachedSize to 0 in getSerializedSize"
11 years ago
Wink Saville
1e92850c47
am ce2f5991: Merge "Revert "Don\'t reset cachedSize to 0 in getSerializedSize""
...
* commit 'ce2f59915e0b41c935e3f72a2b7b71b6c19b6860':
Revert "Don't reset cachedSize to 0 in getSerializedSize"
11 years ago
Wink Saville
dc2ab87569
Merge "Revert "Don't reset cachedSize to 0 in getSerializedSize""
11 years ago
Wink Saville
b7dd7d9294
Revert "Don't reset cachedSize to 0 in getSerializedSize"
...
This reverts commit c6e12c6702ca764486f952654ba1568f00efe813.
11 years ago
Wink Saville
d76d44f529
am ec0b12c3: Merge "Don\'t reset cachedSize to 0 in getSerializedSize"
...
* commit 'ec0b12c34a6329d2f98003e9102fe2d75726c797':
Don't reset cachedSize to 0 in getSerializedSize
11 years ago
Wink Saville
9d89464330
am ec0b12c3: Merge "Don\'t reset cachedSize to 0 in getSerializedSize"
...
* commit 'ec0b12c34a6329d2f98003e9102fe2d75726c797':
Don't reset cachedSize to 0 in getSerializedSize
11 years ago
Wink Saville
ddc98d6dd0
Merge "Don't reset cachedSize to 0 in getSerializedSize"
11 years ago
Dave Hawkey
5090f19ea7
Don't reset cachedSize to 0 in getSerializedSize
...
This avoids a race-condition when cachedSize is momentarily set to 0
for non-empty messages if multiple threads call getSerializedSize
(e.g. during serialization).
Change-Id: I15a8ded92edbf41bf1c8d787960c5bbbc8a323c5
11 years ago
Wink Saville
66ec7d4151
am 51ef8f39: Merge "Fix compile error on mac 10.9"
...
* commit '51ef8f39de376fe71ce5d2c682abe4f974cf8074':
Fix compile error on mac 10.9
11 years ago
Max Cai
e73c4a02a9
am afc1553a: Merge "Extension overhaul."
...
* commit 'afc1553a9eb56eff742828c9c819eafa363cdcc9':
Extension overhaul.
11 years ago
Max Cai
b97d258c9f
am 447f664a: Merge changes I9fecff3c,I2c1eb07f
...
* commit '447f664aef6694bb9fb3db85d6166d908cde8a8d':
Fix repeated packed field merging code for non-packed data.
Add validation when parsing enum fields.
11 years ago
Wink Saville
a9c3868123
am 51ef8f39: Merge "Fix compile error on mac 10.9"
...
* commit '51ef8f39de376fe71ce5d2c682abe4f974cf8074':
Fix compile error on mac 10.9
11 years ago
Max Cai
0ad269ef2f
am afc1553a: Merge "Extension overhaul."
...
* commit 'afc1553a9eb56eff742828c9c819eafa363cdcc9':
Extension overhaul.
11 years ago
Max Cai
3a2109246f
Merge "Extension overhaul."
11 years ago
Max Cai
6d7dfd31c2
am 447f664a: Merge changes I9fecff3c,I2c1eb07f
...
* commit '447f664aef6694bb9fb3db85d6166d908cde8a8d':
Fix repeated packed field merging code for non-packed data.
Add validation when parsing enum fields.
11 years ago
Max Cai
a2d72a5853
Merge changes I9fecff3c,I2c1eb07f
...
* changes:
Fix repeated packed field merging code for non-packed data.
Add validation when parsing enum fields.
11 years ago
Max Cai
74959d4796
Fix repeated packed field merging code for non-packed data.
...
Enum fix is already included in the previous commit.
Bug: https://code.google.com/p/android/issues/detail?id=64893
Change-Id: I9fecff3c8822918a019028eb57fa39b361a2c960
11 years ago
Max Cai
e005be6554
Add validation when parsing enum fields.
...
Invalid values from the wire are silently ignored.
Unlike full/lite, the invalid values are not stored into the
unknown fields, because there's no way to get them out from
Nano's unknown fields without a matching Extension.
Edited README and slightly moved it towards a standalone
section for Nano, independent of the Micro section.
Change-Id: I2c1eb07f4d6d8f3aea242b8ddd95b9c966f3f177
11 years ago
Max Cai
14ae5639b3
am a8af729b: Merge "Allow whitespace in nano codegen options."
...
* commit 'a8af729b5ef822971f025a7e8ff197545986910d':
Allow whitespace in nano codegen options.
11 years ago
Max Cai
a793c09b6f
Merge "Allow whitespace in nano codegen options."
11 years ago
Max Cai
bc8eec3d2b
Allow whitespace in nano codegen options.
...
So we don't need to keep all option in a single line in the .mk files.
Change-Id: I786b879b334cac4cd13b32fabcb76efe53b4ac80
11 years ago
Max Cai
d44a519d8f
am 4b5874fa: Merge "Correctness: floating point equality using bits instead of ==."
...
* commit '4b5874fad099faefb469c632e4c7b854cea733ae':
Correctness: floating point equality using bits instead of ==.
11 years ago
Max Cai
eeda36e47c
am d6aeae14: Merge "Don\'t serialize required fields whose \'has\' flags are unset."
...
* commit 'd6aeae143cde31b79a2d57a3ee0e41d9083d232d':
Don't serialize required fields whose 'has' flags are unset.
11 years ago
Max Cai
0eecf0b83f
Merge "Correctness: floating point equality using bits instead of ==."
11 years ago
Max Cai
2fb3cdf9bb
Merge "Don't serialize required fields whose 'has' flags are unset."
11 years ago