292366 Commits

Author SHA1 Message Date
sergeyv
e830f351e1 Turn off additional logging in text rendering am: 5bb5626599
am: 4778f6a43e

Change-Id: If031a1d480d8c2e75e9f6268d15c8ccc098a0268
2016-10-11 00:54:34 +00:00
Hugo Benichi
de310dba78 Better LocalLog
This patch fixes the following issues in LocalLog:
  - reverseDump() uses a descending iterator with linear complexity
    instead of a quadratic loop using get(index) on a linked list.
  - reverseDump() is added to ReadOnlyLocalLog.
  - synchronized section in log() is restricted to mutation of internal
    list.
  - formatting of the log message does not create an internal
    StringBuilder.
  - the instance variable mNow is removed: it was only used inside log()
    as a local variable.
  - remaining instance variables are qualified with final.
  - the linked list is replaced by a fixed capacity array-backed queue.

Test: added unit tests
Change-Id: I1a54f0ad26dd35448d3297ea24df1fd626d20ef3
2016-10-11 09:54:19 +09:00
Christopher Tate
762dfd1566 Ignore wallpaper relaunch timeout during shutdown
Because of course during system shutdown, the wallpaper service
won't actually get relaunched.  Sometimes shutdown can take long
enough that this timeout kicks, so we need to avoid clearing the
live wallpaper state spuriously.

For simplicity we just check at "would have timed out now" time
rather than try to distinguish between the shutdown case and a
genuine crash that raced with the shutdown broadcast.

Bug 32020355

Change-Id: I9335b2c0214b4c750ef950fed157d186aa670176
2016-10-10 17:50:31 -07:00
sergeyv
b67db49f87 Merge "Turn off additional logging in text rendering" into nyc-mr1-dev
am: 9fe5b1129e

Change-Id: I013fc2d7781c4f17beb9ac99c654bb65880adb6f
2016-10-11 00:43:37 +00:00
sergeyv
4778f6a43e Turn off additional logging in text rendering
am: 5bb5626599

Change-Id: Ic7f6c59ca2c3a92f81bf55a8916e20d99fcc01a7
2016-10-11 00:43:32 +00:00
TreeHugger Robot
9fe5b1129e Merge "Turn off additional logging in text rendering" into nyc-mr1-dev 2016-10-11 00:30:34 +00:00
Dianne Hackborn
331084dca6 Move the remaining am commands to ActivityManagerShellCommand.
The only thing not removed is the "instrument" command, which
really needs to run Java code in the shell.  We'll deal with
that later.

Test: manual
Change-Id: I9df0cdf831ac280cb0eb85c857d27166bc00604d
2016-10-10 16:58:12 -07:00
Jeff Sharkey
9cf75061b1 Merge "Set MIME type when building BROWSE intents." into nyc-mr1-dev am: 4a021fa541 am: 1da71d39b1
am: be75632371

Change-Id: Idd654de6ed5dfb352f1a77febc39dec98aca0dbf
2016-10-10 23:41:29 +00:00
Jeff Sharkey
46e2afec48 Set MIME type when building BROWSE intents. am: 42a4aaab44 am: ac184d3c46
am: 6f5f03b8c1

Change-Id: Iab359d3b375db98986adf9314b6bec7530326381
2016-10-10 23:40:21 +00:00
Jeff Sharkey
be75632371 Merge "Set MIME type when building BROWSE intents." into nyc-mr1-dev am: 4a021fa541
am: 1da71d39b1

Change-Id: I995fe7af9e79479aea35562fdc30a589ceaf9922
2016-10-10 23:35:23 +00:00
Jeff Sharkey
6f5f03b8c1 Set MIME type when building BROWSE intents. am: 42a4aaab44
am: ac184d3c46

Change-Id: I3fb6cc86357c6e19efe58a6e4d31d1f79758b332
2016-10-10 23:34:28 +00:00
Jeff Sharkey
1da71d39b1 Merge "Set MIME type when building BROWSE intents." into nyc-mr1-dev
am: 4a021fa541

Change-Id: Ifb15090b906e32305ba1f88aa73067fb791bf520
2016-10-10 23:29:31 +00:00
Jeff Sharkey
ac184d3c46 Set MIME type when building BROWSE intents.
am: 42a4aaab44

Change-Id: I9efdf0e7223b162988f9484b06c7e3665202738f
2016-10-10 23:29:28 +00:00
TreeHugger Robot
4a021fa541 Merge "Set MIME type when building BROWSE intents." into nyc-mr1-dev 2016-10-10 23:21:35 +00:00
Bill Yi
fe3c094b2a Import translations. DO NOT MERGE
Change-Id: Id340e2af0dc4c8471eb3dae943168dd2f4ea4fd6
Auto-generated-cl: translation import
2016-10-10 16:13:52 -07:00
TreeHugger Robot
7ce3831381 Merge "Make lockscreen user list closeable via keyboard." 2016-10-10 23:08:50 +00:00
Bill Yi
d80432d41e Import translations. DO NOT MERGE
Change-Id: Ic0fe806f62a1a00d3ccdbd765035596d14d4088d
Auto-generated-cl: translation import
2016-10-10 16:05:37 -07:00
Bert McMeen
5e43433eeb Docs: Remove a reference to a deprecated sample am: 3e01ab2b0e am: c48ad2580a am: e62f577153 am: b7fe96a4f6
am: ddd5867e9d

Change-Id: I4ae59b737773769f01927d8332be9e21db90e9e0
2016-10-10 22:49:14 +00:00
Junda Liu
cef95861b5 Merge "Remove incorrect non-roaming list for Telus." into nyc-mr1-dev am: 432157f8bc am: a4928f4e44
am: e06bdd0bc3

Change-Id: I215fb5b10d5cfa48a78a93764c927c7e4fcc2922
2016-10-10 22:48:10 +00:00
Junda Liu
60d7ef4914 Remove incorrect non-roaming list for Telus. am: 458537483d am: 727fd4b34f
am: f5049eea00

Change-Id: I1f903759c0b32de29634be47f216b816d301bdf2
2016-10-10 22:47:19 +00:00
Bert McMeen
ddd5867e9d Docs: Remove a reference to a deprecated sample am: 3e01ab2b0e am: c48ad2580a am: e62f577153
am: b7fe96a4f6

Change-Id: Iddd6a4a6e10e89af9d069668214c60b76a65ee98
2016-10-10 22:36:49 +00:00
Junda Liu
e06bdd0bc3 Merge "Remove incorrect non-roaming list for Telus." into nyc-mr1-dev am: 432157f8bc
am: a4928f4e44

Change-Id: I4b72744223a93dacfe44ba6bbcb8c6f955be842a
2016-10-10 22:35:52 +00:00
Junda Liu
f5049eea00 Remove incorrect non-roaming list for Telus. am: 458537483d
am: 727fd4b34f

Change-Id: Ida319e8da96a8a2bc3de0953d8ec43071186b882
2016-10-10 22:35:03 +00:00
George French
26ab4135ab Docs: Developer written case studies batch 3 (proj 31)
bug: b/31739418
Change-Id: Iec92348aca9c4753a7a54b48c75d80dd5062dff0
2016-10-10 15:33:10 -07:00
Sergei Vasilinetc
f10763d23d Merge "HWUI: prepare script for ryu Test: cpu adb shell cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq Test: gpu adb shell cat /sys/devices/57000000.gpu/pstate" 2016-10-10 22:29:34 +00:00
Bert McMeen
b7fe96a4f6 Docs: Remove a reference to a deprecated sample am: 3e01ab2b0e am: c48ad2580a
am: e62f577153

Change-Id: Ia43dd95a9ed8b3debcdbea35f9718493378f8929
2016-10-10 22:19:18 +00:00
TreeHugger Robot
698a61322f Merge "Add RIL_UNSOL_MODEM_RESTART message" 2016-10-10 22:17:57 +00:00
Junda Liu
a4928f4e44 Merge "Remove incorrect non-roaming list for Telus." into nyc-mr1-dev
am: 432157f8bc

Change-Id: Idb9fa2b3376eacabf58350105405219aa75a70b0
2016-10-10 22:15:24 +00:00
Junda Liu
727fd4b34f Remove incorrect non-roaming list for Telus.
am: 458537483d

Change-Id: I3b6af034ceff722311e9952be4f57e6030d1eb38
2016-10-10 22:15:16 +00:00
Bert McMeen
e62f577153 Docs: Remove a reference to a deprecated sample am: 3e01ab2b0e
am: c48ad2580a

Change-Id: Ic7f79fddf6696346b171e2bb2601e813dc82aa06
2016-10-10 22:10:20 +00:00
Bert McMeen
c48ad2580a Docs: Remove a reference to a deprecated sample
am: 3e01ab2b0e

Change-Id: Idd2ac6b2c6aa056c88033aa10cd7732d2b343b75
2016-10-10 22:05:20 +00:00
Junda Liu
432157f8bc Merge "Remove incorrect non-roaming list for Telus." into nyc-mr1-dev 2016-10-10 21:58:28 +00:00
TreeHugger Robot
ac347fb4ea Merge "Remove all hacks around ref counting in Bitmap Test: refactoring cl. bug:27762775" 2016-10-10 21:42:53 +00:00
Jeff Sharkey
42a4aaab44 Set MIME type when building BROWSE intents.
If we created a BROWSE PendingIntent early during boot (while the
device was still locked), we would resolve the MIME type as "null"
meaning the intent would fail to launch.

Since we always know what the MIME type will be, set it explicitly.

Test: boot device while USB device attached
Bug: 30742481
Change-Id: I23c523cbe2660ca63a3b7df1f41300ab803b314c
2016-10-10 21:28:40 +00:00
Jeff Sharkey
14f0196d23 Set MIME type when building BROWSE intents.
If we created a BROWSE PendingIntent early during boot (while the
device was still locked), we would resolve the MIME type as "null"
meaning the intent would fail to launch.

Since we always know what the MIME type will be, set it explicitly.

Test: boot device while USB device attached
Bug: 30742481
Change-Id: I23c523cbe2660ca63a3b7df1f41300ab803b314c
2016-10-10 15:26:34 -06:00
Bert McMeen
3e01ab2b0e Docs: Remove a reference to a deprecated sample
Bug: 31709180
Change-Id: Ieec19820b1154628236495541a28b50089c4e0cd
2016-10-10 14:21:00 -07:00
Selim Cinek
1791f50134 Fixed an issue where HUNS could have a background
Change-Id: I0537583321eed58461578259d038038a592889b6
Fixes: 32014780
2016-10-10 21:18:35 +00:00
Ruchi Kandoi
0d43404a07 power: PowerHAL support for HIDL interfaces.
Bug: 31177288
Change-Id: I3ce5a71958f47d26855513cf7523922e80dd25d2
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
2016-10-10 14:10:09 -07:00
TreeHugger Robot
46ce8a9670 Merge "Fix wallpaper transition cts test failures" 2016-10-10 21:02:57 +00:00
Naveen Kalla
9d48e7cc2f Add RIL_UNSOL_MODEM_RESTART message
RIL_UNSOL_MODEM_RESTART will be sent by vendor RILs when it detects
a modem restart along with the reason for restart which could be a
crash signature if the modem restarted due to a crash or a some
other string such as a user-initiated restart or AT command
initiated restart.

Change-Id: Idf08e20a49e82d40f6aa0854d23384c35c2efc3a
2016-10-10 20:27:27 +00:00
Chet Haase
49a513b571 Add API to query whether animators are enabled
Animators can be scaled to have zero duration globally in any device.
This can happen either via Developer Options (an uncommon path) or
Battery Saver mode (much more common for real users).
In general, this works fine; it just causes app animations to be jump-cuts
instead (which is the desired effect, either to make transitions faster
(Developer Options setting) or to optimize battery usage by rendering
fewer frames (Battery Saver mode).

But sometimes, choreographed animations can have undesired artifacts. For
example, an animation that calls an end listener to restart itself
will end up doing this almost constantly due to this effect. Other artifacts
can also occur, such as intermediate results in a complex choreography of
multiple animations can show several intermediate results in a way that is
confusing to the user.

For these cases, there is nothing that the platform can do to automatically
determine how to best handle the result. Instead, we surface this new
API to help developers discover this behavior and compensate accordingly.

Bug: 31052471 Animation playback is abnormally fast during Battery saver mode
Test: unit tests, CTS test upcoming

Change-Id: Id7ef1a9652ac5c6cdaca0c126756e82582d49b1c
2016-10-10 19:52:07 +00:00
Lifu Tang
f8fbbf8e35 Merge "Fixed the memory leak when receiving Nav messages" into nyc-mr1-dev am: 9e4733ed33 am: 2e7ae067cd
am: 48597a8f2b

Change-Id: I40299f05f107739572909f8accb182ea9ae61460
2016-10-10 19:35:38 +00:00
Lifu Tang
ad2d59d392 Fixed the memory leak when receiving Nav messages am: fe427f24e5 am: 8786a6b904
am: 7c0bd74ddc

Change-Id: I9f670df30ee956b1ac7542a6015bc3c248705cb5
2016-10-10 19:32:21 +00:00
sergeyv
5bb5626599 Turn off additional logging in text rendering
Change-Id: If5f11489c05e320e4436fb57680857b29228a755
b:30427106
2016-10-10 12:25:06 -07:00
Lifu Tang
48597a8f2b Merge "Fixed the memory leak when receiving Nav messages" into nyc-mr1-dev am: 9e4733ed33
am: 2e7ae067cd

Change-Id: Iec7b935356ce541e45dbd011f7ce6c14c40368cc
2016-10-10 19:22:14 +00:00
Lifu Tang
7c0bd74ddc Fixed the memory leak when receiving Nav messages am: fe427f24e5
am: 8786a6b904

Change-Id: Icf0f81dc2c9c9fa0801edb1e2f13a20460e470f0
2016-10-10 19:21:16 +00:00
Lifu Tang
2e7ae067cd Merge "Fixed the memory leak when receiving Nav messages" into nyc-mr1-dev
am: 9e4733ed33

Change-Id: I8f03a3d36e8836ffc14e9986114b1e3ccb40cc2d
2016-10-10 19:12:43 +00:00
Lifu Tang
8786a6b904 Fixed the memory leak when receiving Nav messages
am: fe427f24e5

Change-Id: Iaae06561c8247b2292a10ec24bf3d1a264850ad9
2016-10-10 19:12:38 +00:00
Lifu Tang
9e4733ed33 Merge "Fixed the memory leak when receiving Nav messages" into nyc-mr1-dev 2016-10-10 19:00:10 +00:00
Bill Yi
23c4362dac Import translations. DO NOT MERGE
Change-Id: I00d5ccf364c1b124e586148a139779a94cfafbf4
Auto-generated-cl: translation import
2016-10-10 11:30:39 -07:00