Jin Qian
94b64ef332
storaged: remove protos from storaged class
...
protobuf is only needed when serializing/deserializing data. Instead of
maintaining a permanent buffer in storaged object, move the container to
stack so that the buffer is released when we don't need it. In addition,
we don't need to clear the buffer before updating it.
Also added a function to clear user io history when the user is removed.
Bug: 63740245
Change-Id: Ia5d19b9a0c3f92a93b061a56be89bb0b958a2a29
2017-11-09 17:24:58 -08:00
TreeHugger Robot
c7bd7fefd6
Merge "Added get descriptors length function to enable direct access to raw descriptors."
2017-11-07 21:25:07 +00:00
Miodrag Dinic
10f71df97e
Merge "MIPS[64]: codeflinger: Fix build due to unused variable warnings" am: 1e0b9672de
am: 50c1ad48cd
...
am: 173f91c9c8
Change-Id: I46ea28e440be983bd2da9f9a6d90176f08882d7a
2017-11-07 20:47:09 +00:00
Christopher Ferris
072095a46d
Merge "Fix nullptr dereference." am: 8e1ac14f40
am: 209841d764
...
am: 9a0ea3ee7a
Change-Id: Id6f9de2a965021360661c00c167db939e0a04ece
2017-11-07 20:46:06 +00:00
Miodrag Dinic
173f91c9c8
Merge "MIPS[64]: codeflinger: Fix build due to unused variable warnings" am: 1e0b9672de
...
am: 50c1ad48cd
Change-Id: I642b1ce78a8966de10a839c3023259f645d2cb0f
2017-11-07 20:42:37 +00:00
Christopher Ferris
9a0ea3ee7a
Merge "Fix nullptr dereference." am: 8e1ac14f40
...
am: 209841d764
Change-Id: Ifef7ecdcda2d52abe15113fcfdc148e3208e9d9d
2017-11-07 20:41:49 +00:00
Miodrag Dinic
50c1ad48cd
Merge "MIPS[64]: codeflinger: Fix build due to unused variable warnings"
...
am: 1e0b9672de
Change-Id: Iaa3c0c2a7dc56a55a0544e43f6ff963af4c05d6d
2017-11-07 20:39:22 +00:00
Christopher Ferris
209841d764
Merge "Fix nullptr dereference."
...
am: 8e1ac14f40
Change-Id: I87d9a8c5fd09a717a119273c8a3f8d3a463e8e6c
2017-11-07 20:38:47 +00:00
Treehugger Robot
1e0b9672de
Merge "MIPS[64]: codeflinger: Fix build due to unused variable warnings"
2017-11-07 20:34:34 +00:00
Christopher Ferris
8e1ac14f40
Merge "Fix nullptr dereference."
2017-11-07 20:30:42 +00:00
Elliott Hughes
96b2532c57
Merge "Don't include the build number in the adbd binary." am: d9984743e6
am: e8873379bc
...
am: c330fcdf17
Change-Id: I22d309891b2293bbc1ed9e7f4354d8875629c496
2017-11-07 20:19:35 +00:00
Elliott Hughes
c330fcdf17
Merge "Don't include the build number in the adbd binary." am: d9984743e6
...
am: e8873379bc
Change-Id: Ib2890bf418820cdc7709b52bf33a7d7340cdac63
2017-11-07 20:16:20 +00:00
Elliott Hughes
e8873379bc
Merge "Don't include the build number in the adbd binary."
...
am: d9984743e6
Change-Id: Ifae8f8f4bd633aca5bb2096e0447b10c2accf1f5
2017-11-07 20:13:52 +00:00
Treehugger Robot
d9984743e6
Merge "Don't include the build number in the adbd binary."
2017-11-07 20:04:40 +00:00
Elliott Hughes
6b970212fd
Don't include the build number in the adbd binary.
...
We want repeatable builds for minimal OTAs.
(cherrypick of 2e93eda69cf20d9c04d56ea6bf1e2ea62ad62eb4.)
Bug: http://b/64634017
Bug: 64709603 (presubmit balking at the line above)
Test: repeated builds after `touch daemon/main.cpp` keep same md5sum
Change-Id: Iedeb44377ea45bbf20e2212760802198a57dc14a
2017-11-07 10:57:36 -08:00
Jin Qian
0700f3b863
Merge "storaged: fix regression found in unit-test"
2017-11-07 07:54:16 +00:00
Yifan Hong
e3526facb5
Merge changes from topic "health2-health1"
...
* changes:
storaged: update for using 1.0::HealthInfo.
Health@2.0: uses @1.0::HealthInfo
2017-11-07 06:42:13 +00:00
Yifan Hong
a8a67ca103
Merge "do not getTransport before getting IHealth service."
2017-11-07 06:41:18 +00:00
Yifan Hong
348bc20bf8
storaged: update for using 1.0::HealthInfo.
...
Test: boots
Bug: 63702641
Change-Id: I97e322af97347c603f10b5b5b82cd3ae52c58b8f
2017-11-06 13:14:18 -08:00
Yifan Hong
1106e83c54
Health@2.0: uses @1.0::HealthInfo
...
Revert "Update for expanding @2.0::HealthInfo."
BatteryService does not use these fields for posting
sticky intents.
This reverts commit be17a4f235
.
Test: boots
Bug: 63702641
Change-Id: I4df61645ab38a8e205ee21efc86bbef3e39674ab
2017-11-06 13:13:15 -08:00
Paul McLean
baea1bd815
Added get descriptors length function to enable direct access to raw descriptors.
...
Bug: 68936964
Test: manual
Peripherals - Skylab, Mir, HTC dongle, Microsoft LX-3000 (headset), Rosewill (gaming) headset
Peripherals - PreSonus AudioBox 22VSL
Change-Id: Icbfd64c3ac29acab6a4c731d604cb0e620e41dc6
2017-11-06 13:32:52 -07:00
Jin Qian
65d8c03d35
storaged: fix regression found in unit-test
...
Should use reference instead of copy to clear storaged proto
Bug: 63740245
Change-Id: Ibb933a0bac12508467fc104b37e7cc490dfbe948
2017-11-06 19:07:09 +00:00
Miodrag Dinic
cc599273b4
MIPS[64]: codeflinger: Fix build due to unused variable warnings
...
Change-Id: Ie31d44ee74a218c83774df855be496ca862af8c5
Signed-off-by: Miodrag Dinic <miodrag.dinic@mips.com>
2017-11-06 16:38:49 +01:00
Christopher Ferris
13b86658b9
Fix nullptr dereference.
...
If an entry is found in .eh_frame_hdr, but it's not properly in .eh_frame,
then the code would crash. The assumption that the header always points
to valid fde data is not guaranteed.
Bug: 68813077
Test: Passes new unit test that crashed before the change.
Change-Id: I914d9bda0d442cd232e2a056ae490301a8850105
2017-11-05 14:01:43 -08:00
Connor O'Brien
4b7f0fdccb
Merge "fastboot: handle small flash block sizes correctly" am: ebcfa44937
am: 5aff24e01d
...
am: e09baa0f20
Change-Id: I8e7b05e53626c0b78b0e741d4369e6b324074ba1
2017-11-03 21:45:06 +00:00
Connor O'Brien
e09baa0f20
Merge "fastboot: handle small flash block sizes correctly" am: ebcfa44937
...
am: 5aff24e01d
Change-Id: I55f894d3393abf29504237fea973650ae1a0abc0
2017-11-03 21:33:05 +00:00
Connor O'Brien
5aff24e01d
Merge "fastboot: handle small flash block sizes correctly"
...
am: ebcfa44937
Change-Id: I683e1722756d09b09c18d506f9e08e269b6e1921
2017-11-03 21:22:56 +00:00
Connor O'Brien
ebcfa44937
Merge "fastboot: handle small flash block sizes correctly"
2017-11-03 21:15:34 +00:00
Yifan Hong
3cf55ef056
do not getTransport before getting IHealth service.
...
getService already has getTransport logic.
Test: storaged unit tests
Bug: 63702641
Change-Id: I29be15e5713ac276fbbeda88224d8aef514319c6
2017-11-03 13:20:10 -07:00
Jin Qian
36ebcf8eb6
Merge "fastboot: remove reference of deprecated make_ext4 code" am: 525205508f
am: 2089237ee8
...
am: a241632bcc
Change-Id: I6e489f364bd30d15bc6a56fe9bfcabf9ce143741
2017-11-03 18:59:44 +00:00
Jin Qian
a241632bcc
Merge "fastboot: remove reference of deprecated make_ext4 code" am: 525205508f
...
am: 2089237ee8
Change-Id: Ib6db9a825a0ff0419e93821ac7022cdfbee87edc
2017-11-03 18:05:10 +00:00
Jin Qian
2089237ee8
Merge "fastboot: remove reference of deprecated make_ext4 code"
...
am: 525205508f
Change-Id: I3cb5a79fc9990e6fd613201592f1ae75bf477f4a
2017-11-03 17:41:09 +00:00
Jin Qian
525205508f
Merge "fastboot: remove reference of deprecated make_ext4 code"
2017-11-03 17:28:26 +00:00
Chih-hung Hsieh
f6a36111bc
Merge "Use -Werror in system/core/libpixelflinger" am: e3db2ab732
am: 9aedaa88e8
...
am: 4d8089a86f
Change-Id: I57bb64571474691809972d9b358aa69fc10e6890
2017-11-03 06:11:16 +00:00
Chih-hung Hsieh
4d8089a86f
Merge "Use -Werror in system/core/libpixelflinger" am: e3db2ab732
...
am: 9aedaa88e8
Change-Id: I0cb714e36470e618dcdb867461f64f823bba0ef3
2017-11-03 06:08:39 +00:00
Chih-hung Hsieh
9aedaa88e8
Merge "Use -Werror in system/core/libpixelflinger"
...
am: e3db2ab732
Change-Id: I9bd537c39f282d1f56c4054a9e9ac78ff5e8a538
2017-11-03 06:06:33 +00:00
Chih-hung Hsieh
e3db2ab732
Merge "Use -Werror in system/core/libpixelflinger"
2017-11-03 06:03:20 +00:00
Chris Fries
39f4794f48
Merge "Revert "delete toolbox/r.c"" am: 2f0c95a489
am: 3c8d352067
...
am: 3588ea7e2d
Change-Id: If9b9ee3fd3f42296a86cbbd20f0c1a3f48989a89
2017-11-03 04:51:37 +00:00
Chris Fries
3588ea7e2d
Merge "Revert "delete toolbox/r.c"" am: 2f0c95a489
...
am: 3c8d352067
Change-Id: If0ec0d7f032f40961117509fca8c06cbc20cffe7
2017-11-03 04:49:37 +00:00
Chris Fries
3c8d352067
Merge "Revert "delete toolbox/r.c""
...
am: 2f0c95a489
Change-Id: Ief95542d970a070d3877a6a660fea7c5e14dea00
2017-11-03 04:46:25 +00:00
Treehugger Robot
2f0c95a489
Merge "Revert "delete toolbox/r.c""
2017-11-03 04:42:27 +00:00
Tao Bao
1e4fb195a6
Merge "fastboot: Don't give parsing error for unsupported 'getvar erase-block-size'." am: e5ff9b988c
am: 5cea27baad
...
am: 9cd5e53128
Change-Id: I04d086e71579811285918574d288044716098a4a
2017-11-03 03:42:31 +00:00
Tao Bao
9cd5e53128
Merge "fastboot: Don't give parsing error for unsupported 'getvar erase-block-size'." am: e5ff9b988c
...
am: 5cea27baad
Change-Id: Ia4626f4f1df1be9b3fc403f7f45e5398fae8e269
2017-11-03 03:39:47 +00:00
Tao Bao
5cea27baad
Merge "fastboot: Don't give parsing error for unsupported 'getvar erase-block-size'."
...
am: e5ff9b988c
Change-Id: I037d5d1d9c09ab91fbbd770dfab038aaf3bcc300
2017-11-03 03:35:20 +00:00
Tao Bao
e5ff9b988c
Merge "fastboot: Don't give parsing error for unsupported 'getvar erase-block-size'."
2017-11-03 03:27:34 +00:00
Christopher Ferris
9153340775
Merge "Only skip frames for local unwinds." am: 3eccc5f50e
am: 58e9c6a6b8
...
am: 7ed0b9cc45
Change-Id: I03f973caf618e12ac8b304f59ec9ad1455337c43
2017-11-03 02:20:27 +00:00
Christopher Ferris
7ed0b9cc45
Merge "Only skip frames for local unwinds." am: 3eccc5f50e
...
am: 58e9c6a6b8
Change-Id: I5a36060a91b11f93b2a3d8101e509f2b366aa3f5
2017-11-03 02:07:04 +00:00
Christopher Ferris
58e9c6a6b8
Merge "Only skip frames for local unwinds."
...
am: 3eccc5f50e
Change-Id: I3ca928cc49a8bab00811b138669243e1649a5af6
2017-11-03 01:43:44 +00:00
Christopher Ferris
3eccc5f50e
Merge "Only skip frames for local unwinds."
2017-11-03 01:36:28 +00:00
Christopher Ferris
c56a499422
Only skip frames for local unwinds.
...
When doing a remote unwind, and there is a crash in the unwind stack
code or in libbacktrace, the old version would skip those frames.
This makes debugging crashes in those libraries a bit difficult.
Bug: 68820611
Test: Ran unit tests.
Test: kill -3 a zygote process and verify no frames in
Test: libunwindstack.so/libbacktrace.so.
Test: Forced a crash in libunwindstack.so and verified the tombstone
Test: contains the full crash.
Change-Id: I297e5b3775c87c0dddf57ebb423bd72ba1baf193
2017-11-02 16:22:52 -07:00