Dianne Hackborn
f5ac9e6483
Merge "New infrastructure to switch remaining commands to "cmd" calls."
2016-09-29 19:57:05 +00:00
Dianne Hackborn
354736e196
New infrastructure to switch remaining commands to "cmd" calls.
...
This introduces a new feature of the IBinder command protocol
to allow the shell command implementation to call back into
its caller to ask it to open files in the calling context. This
is needed so that commands that have arguments specifying files
can open those files as the calling shell, not the system (or
whatever) process.
To test this all out, move the "am start" implementation over
to ActivityManagerShellCommand, in particular along with its
option to specify a file in which to write profiling data.
Test: Manual
Change-Id: I0c1e3857defefbd19a2ac29413aafbb34b1e48a3
2016-09-29 10:58:44 -07:00
Tony Mantler
8a03a064e4
AsyncTask terminating with exception calls onCancelled am: 5eb91a437c am: 3e51bb267d
...
am: 37c51f614c
Change-Id: Id37ed8aa1249837f4607749b40cf843393c37586
2016-09-29 02:52:54 +00:00
Tony Mantler
37c51f614c
AsyncTask terminating with exception calls onCancelled am: 5eb91a437c
...
am: 3e51bb267d
Change-Id: I5d8766c0157541720118dd3d264875df58562907
2016-09-28 23:38:58 +00:00
Tony Mantler
5eb91a437c
AsyncTask terminating with exception calls onCancelled
...
Test: cts/tests/tests/os/src/android/os/cts/AsyncTaskTest.java
b/30304893
Change-Id: Icb50cda8026ddd70d457b5e62eb29c81313ee47d
2016-09-28 21:16:56 +00:00
Tianjie Xu
0939ddf6f3
Merge "Log the error when uncrypt timeouts" am: c1973ecbd2 am: c68e6d6708 am: 3aeade44a9
...
am: 96ce9d16ed
Change-Id: Ideb0ba7ea8d251dae5a23c8fda7e777bbea784ac
2016-09-28 20:10:46 +00:00
Tianjie Xu
96ce9d16ed
Merge "Log the error when uncrypt timeouts" am: c1973ecbd2 am: c68e6d6708
...
am: 3aeade44a9
Change-Id: I913474dbf87b30683267d8f6a458927b7d331c4c
2016-09-28 20:05:15 +00:00
Tianjie Xu
3aeade44a9
Merge "Log the error when uncrypt timeouts" am: c1973ecbd2
...
am: c68e6d6708
Change-Id: I23ee644fb2f73fc3cece4faf59eb63417cfe3ea6
2016-09-28 19:59:12 +00:00
Tianjie Xu
c68e6d6708
Merge "Log the error when uncrypt timeouts"
...
am: c1973ecbd2
Change-Id: I5bec3110f9a46cbc1f44bc07d86eea409667983e
2016-09-28 19:53:37 +00:00
Treehugger Robot
c1973ecbd2
Merge "Log the error when uncrypt timeouts"
2016-09-28 19:42:29 +00:00
Andreas Huber
9105ca5559
Merge "Adds static methods HwBlob.WrapArray(<scalar-type>[] scalarArray)" am: 90acbd86ac am: 2849ee8b75 am: 0f7eb16fad
...
am: d321db4481
Change-Id: Idfc104b383a5e35573084d99486e6e70a37170b8
2016-09-28 17:47:48 +00:00
Andreas Huber
d321db4481
Merge "Adds static methods HwBlob.WrapArray(<scalar-type>[] scalarArray)" am: 90acbd86ac am: 2849ee8b75
...
am: 0f7eb16fad
Change-Id: I43c563eaba14573e94ced381791eb6ba787d3e51
2016-09-28 17:42:02 +00:00
Andreas Huber
0f7eb16fad
Merge "Adds static methods HwBlob.WrapArray(<scalar-type>[] scalarArray)" am: 90acbd86ac
...
am: 2849ee8b75
Change-Id: I00d47819095dd8b52dae52f3d55d6b3bc9998aaf
2016-09-28 17:36:31 +00:00
Andreas Huber
2849ee8b75
Merge "Adds static methods HwBlob.WrapArray(<scalar-type>[] scalarArray)"
...
am: 90acbd86ac
Change-Id: Ia3013237296ccca46e3f4e0bc702b4ae90a7ea3a
2016-09-28 17:30:23 +00:00
Christopher Tate
f11313f763
Don't leak wakelock instances am: 4b17e984b6 am: cea6cc9d33
...
am: 5f00f298bf
Change-Id: I0ffb39930e7a989cc54c43f4defe96b2026bec50
2016-09-28 00:06:50 +00:00
Christopher Tate
5f00f298bf
Don't leak wakelock instances am: 4b17e984b6
...
am: cea6cc9d33
Change-Id: I908ad297251b1abd8b8502059a53363cf3be9af2
2016-09-27 23:50:20 +00:00
Christopher Tate
4b17e984b6
Don't leak wakelock instances
...
Bug 31247436
Change-Id: I7c2ad956c43233b37e53856e9321cb87b01c35da
2016-09-27 15:00:48 -07:00
Tianjie Xu
036d08638e
Log the error when uncrypt timeouts
...
Log the error code to uncrypt_status if uncrypt gets killed because
of timeout.
Test: We log the error code correctly in uncrypt_status when uncrypt timeouts.
Bug: 31603820
Change-Id: Ia623c333714295e68f4269257fbb4297a867e42b
2016-09-27 13:34:58 -07:00
Andreas Huber
906a679aa8
Adds static methods HwBlob.WrapArray(<scalar-type>[] scalarArray)
...
that convert a one-dimensional array of scalars into the corresponding
one-dimensional array of the associated "wrapped" type, i.e. byte[] -> Byte[].
Change-Id: I712b2bb5330bd660816d0ff536a55913904203b6
Bug: 31682327
Test: hidl_test_java
2016-09-27 11:20:44 -07:00
Vadim Tryshev
75ce3c4a1b
Adding compatibility note for drag/drop in N. am: 06b9b60c6d am: 360031a944
...
am: 68f8fe590f
Change-Id: Ie6c383dfa97521ca8ce3884cde41d2bcd489eeea
2016-09-26 09:28:38 +00:00
Vadim Tryshev
68f8fe590f
Adding compatibility note for drag/drop in N. am: 06b9b60c6d
...
am: 360031a944
Change-Id: Iaaaf125e0e58be896115eb94113170402627d4ef
2016-09-24 01:24:53 +00:00
Vadim Tryshev
06b9b60c6d
Adding compatibility note for drag/drop in N.
...
Bug: 31702571
Change-Id: Ib4b839eec21ea8e1c2b3686595a45642eb8285ba
2016-09-23 15:32:33 -07:00
John Reck
be12cb08b0
Merge "Fix a bunch of repeated reads of a ro.* property"
2016-09-22 15:15:08 +00:00
Jeff Sharkey
15b0cc92cf
Rename should behave like create: avoid conflict. am: 2c89a4c170
...
am: 0e033491ca
Change-Id: I071e31e47dd662d5a7816bc1c3326fe964a6daf8
2016-09-22 04:58:43 +00:00
John Reck
aa67f684ff
Fix a bunch of repeated reads of a ro.* property
...
SystemProperties.get() is not particularly fast,
especially if a string is returned. Since ro.* values
are unable to be changed, there's no need to
continously re-query them. Cache the value at
static init time to trivially fix this.
Test: refactoring CL.
Change-Id: Iccb021d3cb2ba3a4a1d0048ddec6811bb7409eec
2016-09-21 16:10:54 -07:00
Jeff Sharkey
2c89a4c170
Rename should behave like create: avoid conflict.
...
When we create a file that already exists, we try attaching a suffix
like "(1)" to the filename to avoid the conflict. The newly added
rename method should do the same, since developers may not have
access to delete the conflicting file.
Test: boots, rename via UI, new unit tests
Bug: 31545404
Change-Id: Ie397eebb0fbf98cf079eee3bbbb6c6b7ca627d91
2016-09-21 23:01:25 +00:00
Jeff Sharkey
aa44476f64
Rename should behave like create: avoid conflict.
...
When we create a file that already exists, we try attaching a suffix
like "(1)" to the filename to avoid the conflict. The newly added
rename method should do the same, since developers may not have
access to delete the conflicting file.
Test: boots, rename via UI, new unit tests
Bug: 31545404
Change-Id: Ie397eebb0fbf98cf079eee3bbbb6c6b7ca627d91
2016-09-21 16:59:24 -06:00
Andreas Huber
91889131c7
Merge "Removed legacy code used to read/write java arrays from HwBinder parcels." am: eda7bc5c84 am: 618e39a3be am: 60c722812c
...
am: dde39b9ce9
Change-Id: I58fc3e5c78b8b0a47464a7fb8535c9f71b0577af
2016-09-21 06:56:03 +00:00
Adrian Roos
8cbd52be80
Hold WakeLock while DreamService starts am: 7445c0bb86 am: 5e18c826f3
...
am: f71c33a6ae
Change-Id: I4e404bbf3fd1995c0899883a6d9cf12210329a1c
2016-09-21 04:12:48 +00:00
Svetoslav Ganov
8b6456bc88
Merge "Move device serial behing a permission"
2016-09-21 03:32:47 +00:00
Andreas Huber
dde39b9ce9
Merge "Removed legacy code used to read/write java arrays from HwBinder parcels." am: eda7bc5c84 am: 618e39a3be
...
am: 60c722812c
Change-Id: Iede50464cb80c75e224e4b0aff8b41ab2cc9f403
2016-09-20 21:58:10 +00:00
Andreas Huber
60c722812c
Merge "Removed legacy code used to read/write java arrays from HwBinder parcels." am: eda7bc5c84
...
am: 618e39a3be
Change-Id: If1d020f2d62980992ce82359922c1ebfde4c19f8
2016-09-20 20:59:31 +00:00
Andreas Huber
618e39a3be
Merge "Removed legacy code used to read/write java arrays from HwBinder parcels."
...
am: eda7bc5c84
Change-Id: If256977b368ec830f1c01f86c3845d9313c38767
2016-09-20 20:48:53 +00:00
Dianne Hackborn
3da7e4e563
A little more on issue #30766518 : Document what targeting N does
...
am: da6be5b871
Change-Id: Ie1fdb2b07ff8fa016a82a1405336db0dac119fef
2016-09-20 17:07:15 +00:00
Dianne Hackborn
bae14052a0
Cherrypick so we can publish N version code description ASAP
...
am: 491bc2b8d6
Change-Id: I27da25afcaca61ac0159699c0cfc8fbf2338aa2c
2016-09-20 17:05:09 +00:00
Adrian Roos
f71c33a6ae
Hold WakeLock while DreamService starts am: 7445c0bb86
...
am: 5e18c826f3
Change-Id: I4c8d223c8968f554ceabd9dd80bb55e19a5b7e34
2016-09-20 05:24:03 +00:00
Adrian Roos
5e18c826f3
Hold WakeLock while DreamService starts
...
am: 7445c0bb86
Change-Id: Ifbb5a3d392bf7222718eab306dc435ec569a3ae9
2016-09-20 04:25:38 +00:00
Adrian Roos
f940aa3ea1
Merge "Hold WakeLock while DreamService starts" into nyc-mr1-dev
2016-09-19 22:47:30 +00:00
Andreas Huber
74c3b8edfe
Removed legacy code used to read/write java arrays from HwBinder parcels.
...
More generalized functionality is now available through HwBlob.
Change-Id: Id6c713fb01af7593ea3ff8405f3a9e5325877412
Bug: 31438033
Test: run updated "hidl_test" and "hidl_test_java"
2016-09-19 14:09:14 -07:00
Dianne Hackborn
da6be5b871
A little more on issue #30766518 : Document what targeting N does
...
(cherry picked from commit 5f1649e852 )
Change-Id: Ieaad1f3ddfa7ef3444e3b513181555f87ecb8c3f
2016-09-19 20:05:07 +00:00
Dianne Hackborn
491bc2b8d6
Cherrypick so we can publish N version code description ASAP
...
Fix issue #30766518 : Document what targeting N does
Also small documentation cleanup in a few other places.
(cherry picked from commit b34cbedb4e )
Change-Id: I9560b29faa4f2674277349272af8193122a1f95e
2016-09-19 19:31:19 +00:00
Tianjie Xu
492450c88a
Collect status on uncrypt time cost
...
Read and report time cost of uncrypt (in seconds) from last_install.
Bug: 31383361
Change-Id: I283970c33b2a0324f2f51cde328e3e527eff7c58
(cherry picked from commit 3477efce30 )
2016-09-16 12:13:49 -07:00
Tianjie Xu
cd15fdfb4f
Merge "Collect status on uncrypt time cost" am: bc19e00d35 am: 79d27bdeac am: 1579ce8a1d
...
am: 4392153753
Change-Id: Ic7ff4b820255d1cd305909ad6b920f9e0a1b5ac9
2016-09-16 18:52:28 +00:00
Tianjie Xu
4392153753
Merge "Collect status on uncrypt time cost" am: bc19e00d35 am: 79d27bdeac
...
am: 1579ce8a1d
Change-Id: I17fe7d518a0bc5876d91373b643dd95779be2c54
2016-09-16 18:40:45 +00:00
Tianjie Xu
1579ce8a1d
Merge "Collect status on uncrypt time cost" am: bc19e00d35
...
am: 79d27bdeac
Change-Id: I64f13dbe40845eecb584c0f45a169e0c948275ab
2016-09-16 18:36:20 +00:00
Tianjie Xu
79d27bdeac
Merge "Collect status on uncrypt time cost"
...
am: bc19e00d35
Change-Id: I867821b7575ee2e45bb86c46222e6cf34971689d
2016-09-16 18:30:38 +00:00
Tianjie Xu
bc19e00d35
Merge "Collect status on uncrypt time cost"
2016-09-16 18:19:23 +00:00
Makoto Onuki
8b2ee3d611
Fix system crash due to mismatching begin/finishBroadcast() am: 7bdb9ce978 am: f3c4729947
...
am: 47fc09457d
Change-Id: Ied3686b611a73b78d50d5737ec65522bfef6f63f
2016-09-16 17:43:25 +00:00
Makoto Onuki
47fc09457d
Fix system crash due to mismatching begin/finishBroadcast() am: 7bdb9ce978
...
am: f3c4729947
Change-Id: Icbbc6521164e376501ec2473f40babf9aeb13462
2016-09-16 17:32:05 +00:00
Makoto Onuki
f3c4729947
Fix system crash due to mismatching begin/finishBroadcast()
...
am: 7bdb9ce978
Change-Id: I032370f8bdf9f6c0f7e75253b7f3950795f359ab
2016-09-16 17:24:52 +00:00