Brian Duff
c390fe3eb3
am 95d99df4: Merge "Don\'t return NULL from {Boxed}PrimitiveTypeName."
...
* commit '95d99df4574c28debcf9646056a0350ff44bc7c9':
Don't return NULL from {Boxed}PrimitiveTypeName.
11 years ago
Brian Duff
23c5978a76
Merge "Don't return NULL from {Boxed}PrimitiveTypeName."
11 years ago
Brian Duff
7acc0f831f
Don't return NULL from {Boxed}PrimitiveTypeName.
...
The behavior of the string ctor is undefined when you pass NULL. This
is checked strictly in C++11, so fails to compile.
Change-Id: Id5e0984ad1d37f2d504f7c42ac23e52ed4a58903
11 years ago
Max Cai
a481ed8269
am 11607eb1: Merge "Add a hasExtension method to ExtendableMessageNano."
...
* commit '11607eb10bcf3a46e92257966949d48b28bb7bf3':
Add a hasExtension method to ExtendableMessageNano.
11 years ago
Max Cai
2a5f3f97a0
Merge "Add a hasExtension method to ExtendableMessageNano."
11 years ago
Juan Silveira
c052b50388
Add a hasExtension method to ExtendableMessageNano.
...
It allows checking for the presence of an extension without having to
deserialize the field.
Change-Id: Id542d20274b2435b7bc2b322740e9984cb8639a1
11 years ago
Max Cai
2e91cf4f68
am a88808d4: Merge "Fix access around unknownFieldData."
...
* commit 'a88808d414308b5b567d3afaab56fc338ad80667':
Fix access around unknownFieldData.
11 years ago
Max Cai
9c2d63c8d3
am daf63839: Merge "Keep pointers to extension values."
...
* commit 'daf638399bd42122306786e8062f392ddace4363':
Keep pointers to extension values.
11 years ago
Max Cai
30b1454d8b
Merge "Keep pointers to extension values."
11 years ago
Max Cai
7a83d3482a
Merge "Fix access around unknownFieldData."
11 years ago
Max Cai
d1a8a8f6f1
Fix access around unknownFieldData.
...
Instead of publishing its class I chose to encapsulate the troublesome
references in equals()/hashCode() in the generated code into superclass
methods in ExtendableMessageNano.
Changed a couple of java packages in the test suite to catch this issue
easier in the future.
Change-Id: I43f88411f63bb6f3ffc8d63361f2f77bebf6220a
11 years ago
Juan Silveira
79f19eb9f1
Keep pointers to extension values.
...
The current implementation of getExtension deserialises the field from bytes
and returns a new object every time. This means that changes to those objects
are reflected when the messages is serialised unless setExtension is called. It
also means that every call to getExtension and setExtension is expensive.
This change introduces a FieldData class that contains everything that's known
about the field at the time. This can be all the tag/byte[] pairs associated
with a given field or an Extension and a value object. This is so that two
messages with a repeated extension can be compared even if the extension
has been deserialised in one of them but not the other.
This change also adds FieldArray class based on SparseArray from the Android
compatibility library. This is used in ExtendableMessageNano to make lookup
of FieldDatas by their field number faster.
Implications:
* calling getExtension multiple times deserialises the field only once and
returns the same object.
* calling setExtension doesn't cause the object to be serialised immediately,
that only happens when the container message is serialised.
* getExtension is no longer a read-only thread-safe operation. README.txt has
been updated to relfect that.
* comparison using equals and hashCode continues to work.
Bug: 10863158
Change-Id: I81c7cb0c73cc0611a1f7c1eabf5eed259738e8bc
11 years ago
Max Cai
9ceb3d4acc
Fix how getRepeatedFieldArrayLength works
...
Change-Id: I01921eff008a8e3f7b1fbeb653d15ff8038d3220
11 years ago
Ying Wang
30cd2a4a98
am 403cc927: am 8eed3705: You CANNOT change the global WITH_DEXPREOPT
...
* commit '403cc9277c5540cf14b6e53a4fedf3ae5499f4cf':
You CANNOT change the global WITH_DEXPREOPT
11 years ago
Baligh Uddin
c7213e1c39
am 39467629: am 6c915d3a: keep history after reset to 1fd235cbb5975e117909c73e5e3a579ae4c28dce
...
* commit '39467629a7fb35da9fdfab4dd7603b9bfd7d9095':
11 years ago
Ying Wang
b18d5c1d43
am 8eed3705: You CANNOT change the global WITH_DEXPREOPT
...
* commit '8eed37054e8f7dd18aa3ec3070d638e3a1c03eaf':
You CANNOT change the global WITH_DEXPREOPT
11 years ago
Baligh Uddin
f5759da88c
am 6c915d3a: keep history after reset to 1fd235cbb5975e117909c73e5e3a579ae4c28dce
...
* commit '6c915d3a1e820702dca08d02a40fb86aa2de0bdd':
11 years ago
Ying Wang
82461de508
You CANNOT change the global WITH_DEXPREOPT
...
Bug: 14380196
Change-Id: I2b9e6db081558687afd5c20c7084824dfe1bb26e
11 years ago
Baligh Uddin
709cb7348e
keep history after reset to 1fd235cbb5975e117909c73e5e3a579ae4c28dce
11 years ago
Qiwen Zhao
1d50c6b47c
reset with history at sha1 d5219df3ce036d4f43262bbda1016097a59a0c81
11 years ago
Wink Saville
9db6d437df
am 2b549b79: Merge "Revert "Merge commit \'e887563a\' into fix-merge-conclict"" into klp-modular-dev-plus-aosp
...
* commit '2b549b793713eb10b0212f1c5d6c90d9fdeead85':
Revert "Merge commit 'e887563a' into fix-merge-conclict"
11 years ago
Wink Saville
3b0952fb80
Revert "Merge commit 'e887563a' into fix-merge-conclict"
...
This reverts commit f65ee55561e2a5f53be6db2ce03e518e249c9e80.
Change-Id: Ia6fed4d96fb4c076b2b51e1d758f3e15d37bffc0
11 years ago
Wink Saville
d9b892d45b
Merge "Revert "Merge commit 'e887563a' into fix-merge-conclict"" into klp-modular-dev-plus-aosp
11 years ago
Wink Saville
fadc11055e
Revert "Merge commit 'e887563a' into fix-merge-conclict"
...
This reverts commit f65ee55561e2a5f53be6db2ce03e518e249c9e80.
Change-Id: Ia6fed4d96fb4c076b2b51e1d758f3e15d37bffc0
11 years ago
Jan-Willem Maarse
9a58c6f56c
am 399cf8d6: am 1fd235cb: am 70eec2ca: am 58eb8e98: am d20f0a42: Merge "Fix NPE when clearing an extension in nano protos"
...
* commit '399cf8d641c0bad4cff016f3b1a02c63fb353a21':
11 years ago
Bill Yi
ef5fd0e053
am 8b5d62a4: am f4af48ae: am 9dde6a6d: am ddeaf256: Merge commit \'ba89934bdae7f4256c94a0a24992903a114e764f\' into HEAD
...
* commit '8b5d62a4e819cb5114b294fc6754de63d50792b1':
11 years ago
Jeff Davidson
be8aadfd3b
am 7b4e8c78: am 8113c186: resolved conflicts for merge of 592b6078 to master
...
* commit '7b4e8c78004c479ffc99ec7c677e206cfdf8b73c':
11 years ago
Max Cai
8b6445a019
am e69eaa22: am 99c98018: am 43365182: am 829f6c01: Merge "Adds --ignore_service nano proto compiler flag"
...
* commit 'e69eaa2230952424fd410f3378445e78fcf58242':
11 years ago
Max Cai
8624f47bab
am 888cafe4: am dd38a37e: am 0391f00b: am ea68d73c: Merge "Don\'t reset cachedSize to 0 in getSerializedSize"
...
* commit '888cafe432fd2da8ae1b36429b5e8f822db11ce0':
11 years ago
Wink Saville
b67c3fa484
am 13fb32b1: am 3f1679bb: am 8a9fc09c: am ce2f5991: Merge "Revert "Don\'t reset cachedSize to 0 in getSerializedSize""
...
* commit '13fb32b15d428e4633674b9bb8bb7d4750e7e909':
11 years ago
Wink Saville
642f7003a7
Merge commit 'f65ee555' into fix-merge-conflict
...
* commit 'f65ee555':
Change-Id: Ic1216c50b608f1609fd8a1a1a50209c4486f30a4
11 years ago
Jan-Willem Maarse
9ad944e2d6
am 1fd235cb: am 70eec2ca: am 58eb8e98: am d20f0a42: Merge "Fix NPE when clearing an extension in nano protos"
...
* commit '1fd235cbb5975e117909c73e5e3a579ae4c28dce':
11 years ago
Bill Yi
e76c2cefee
am f4af48ae: am 9dde6a6d: am ddeaf256: Merge commit \'ba89934bdae7f4256c94a0a24992903a114e764f\' into HEAD
...
* commit 'f4af48aeb5293a6c8583749e1a6f7a20508324f3':
11 years ago
Jeff Davidson
a3d1a03fc1
am 8113c186: resolved conflicts for merge of 592b6078 to master
...
* commit '8113c1862afb4ff3b7ab4ba0044c5cb191c1e454':
11 years ago
Max Cai
ba0ea9552f
am 99c98018: am 43365182: am 829f6c01: Merge "Adds --ignore_service nano proto compiler flag"
...
* commit '99c9801813fdc2eccd5db391c00d0250c327e344':
11 years ago
Max Cai
78e5e83012
am dd38a37e: am 0391f00b: am ea68d73c: Merge "Don\'t reset cachedSize to 0 in getSerializedSize"
...
* commit 'dd38a37eae035fe0f724438624694f1cf77a0ade':
11 years ago
Wink Saville
b05e2ffe0c
am 3f1679bb: am 8a9fc09c: am ce2f5991: Merge "Revert "Don\'t reset cachedSize to 0 in getSerializedSize""
...
* commit '3f1679bb03e1d08f08e7b4ca2d024345201d7f01':
11 years ago
Wink Saville
2666d4df51
Merge commit 'e887563a' into fix-merge-conclict
...
* commit 'e887563a':
Revert "am 5b931dc7: am ec0b12c3: Merge "Don\'t reset cachedSize to 0 in getSerializedSize""
Change-Id: I1222ae20e6caef67c5a00ac481e10fe7b7d2a91c
11 years ago
Wink Saville
f812e7f2ca
am d89b3060: am f213b0c6: am 5b931dc7: am ec0b12c3: Merge "Don\'t reset cachedSize to 0 in getSerializedSize"
...
* commit 'd89b3060b40d8485d02e48d11056750495ecb577':
11 years ago
Wink Saville
bf2bb67903
am 27243737: am 1a4b1d52: am 00310299: am 51ef8f39: Merge "Fix compile error on mac 10.9"
...
* commit '27243737cc739c25c8905cbe9b3040f500af127d':
11 years ago
Max Cai
42c481a7f5
am e8f7a71c: am 9141054b: am 214997ce: am afc1553a: Merge "Extension overhaul."
...
* commit 'e8f7a71c113c692102115cf56071e7c24cf09c88':
11 years ago
Max Cai
83ed21fcb0
am 286f5705: am 5c3544dd: am 5d33d23d: am 447f664a: Merge changes I9fecff3c,I2c1eb07f
...
* commit '286f57055b99aa2c3c107f4cd8f49eeace8db5b5':
11 years ago
Jie Dai
1e6f98066a
am c7a7b2ac: resolved conflicts for merge of 6965d891 to klp-modular-dev-plus-aosp
...
* commit 'c7a7b2acc57bea137e4f8066802d4b9264ea3275':
11 years ago
Wink Saville
63bb1894f7
am f213b0c6: am 5b931dc7: am ec0b12c3: Merge "Don\'t reset cachedSize to 0 in getSerializedSize"
...
* commit 'f213b0c6a86503ad752139f04f343578df45db07':
11 years ago
Wink Saville
e4f1a3457f
am 1a4b1d52: am 00310299: am 51ef8f39: Merge "Fix compile error on mac 10.9"
...
* commit '1a4b1d52e44104f2e10d0cdc585dde88602843d2':
11 years ago
Max Cai
915cddaa8a
am 9141054b: am 214997ce: am afc1553a: Merge "Extension overhaul."
...
* commit '9141054bc24597968ddb94fb466c07cd2a933706':
11 years ago
Max Cai
4def4b4501
am 5c3544dd: am 5d33d23d: am 447f664a: Merge changes I9fecff3c,I2c1eb07f
...
* commit '5c3544dd69160dc00a7786977da220265a7c43c4':
11 years ago
Jie Dai
9f4dda6d11
resolved conflicts for merge of 6965d891 to klp-modular-dev-plus-aosp
...
Change-Id: Ifa90d0c9bf3119607ce19c942fbfb0e4cffe6b38
11 years ago
Max Cai
89197d0fdc
am fa7bf363: am 6a1f70ab: am d5219df3: am a8af729b: Merge "Allow whitespace in nano codegen options."
...
* commit 'fa7bf363b9b46a933c3c3c81ff7f75684760fba8':
11 years ago
Max Cai
1f0c9cdba5
am 2c210bb9: am 6adb3df8: am 1be96c57: am 4b5874fa: Merge "Correctness: floating point equality using bits instead of ==."
...
* commit '2c210bb92ce2001e943b107710ba098295a55761':
11 years ago