150574 Commits

Author SHA1 Message Date
Adam Lesinski
65e76d1200 Output recent configs in am get-config command
Change-Id: Ic516e73d2e72ac0dc3136f7226cedd851fe22b85
2014-09-10 15:02:59 -07:00
Svetoslav
3ef8e203c8 Fix a crash in print spooler.
1. Leftover code was setting the state to configuring
   before initialization is complete.

2. We were not cancelling the print job if cancelled
   when initializing.

3. The remote print document was cancelled even if
   doing nothing.

bug:17451600

Change-Id: I79a80b723af8537da260012470748b4e8831fd9e
2014-09-10 15:00:11 -07:00
Dianne Hackborn
92a5b0d59f Fix issue #16794553: Duplicate ArrayMap entries in Bundle...
...can lead to launching of un-exported activities

We now validate the array map after unparcelling to make sure there
are no duplicate keys.

And to make up for the performance overhead this introduces, I switched
the parcelling/unparcelling code to write keys as explicit string
objects rather than generic values.  There was no reason to use generic
values since the write method itself only accepts an array map with
String keys.

Change-Id: I57bda9eb79ceaaa9c1b94ad49d9e462b52102149
(cherry picked from commit cee4cdad307071a8ff9a3e2189bf9e6fcc417222)
2014-09-10 21:55:27 +00:00
George Mount
05c4f7ad76 Merge "Fix ArrayIndexOutOfBoundsException." into lmp-dev 2014-09-10 21:47:58 +00:00
Tao Bai
bebc56209d Merge "Revise createIntent and parseResult API." into lmp-dev 2014-09-10 21:43:04 +00:00
John Spurlock
66c0d0cb8c Merge "QS: Fix NPE path inside cell tile." into lmp-dev 2014-09-10 21:40:43 +00:00
John Spurlock
f7f00ea9d3 QS: Fix NPE path inside cell tile.
Bug:17456632
Change-Id: Ifc859cf8c1620152fd333d3a92bcd1a47ac1d7e7
2014-09-10 17:34:56 -04:00
Craig Mautner
ebcd9189e3 Merge "Wait for animation complete before completing boot" into lmp-dev 2014-09-10 21:33:43 +00:00
Nancy Chen
23a7a394f5 Merge "Add docs to Conference object." into lmp-dev 2014-09-10 21:33:02 +00:00
George Mount
4245e161c6 Merge "Move capturing entering views until just before transition." into lmp-dev 2014-09-10 21:26:23 +00:00
Chet Haase
6f6578e81c Use constant state in AnimatedVectorDrawable
Complex animated vector drawables can be expensive to load due to
sub-optimal parsing of the String-based pathData. Suffering that penalty
every time the same drawable is loaded (such as material-themed
ProgressBars) is painful.

The new approach caches constant state of both the VectorDrawable (including
the pathData geometry) and the animators (which includes potentially expensive
path-based interpolators).

issue #17366831 Material ProgressBar taking 200+ms to inflate

Change-Id: Iba3b541e24cfce8c07f5aa9fe6aa7d7b92b2fe1c
2014-09-10 21:21:53 +00:00
vandwalle
9da6c90577 Merge "make autojoin configurable, clean up BSSID info that may be stake in WifiConfiguration" into lmp-dev 2014-09-10 21:16:58 +00:00
Alan Viverette
8683a4f819 Only force drawing in RippleDrawable when necessary
BUG: 17451761
Change-Id: Ibb9d1c64791ec54eb90608c957eeb5efb1712b4a
2014-09-10 14:05:15 -07:00
Jorim Jaggi
cfc18c7327 Fix inconsistent layout param in notification
Might increase the measure performance a bit.

Bug: 17040206
Change-Id: I2fff039cefdb4f21aff2674b6e7449549f5f8670
2014-09-10 23:04:43 +02:00
Mathieu Chartier
1b848d4894 Merge "Change EmptyArray System.identityHashCode to Object.hashCode." into lmp-dev 2014-09-10 21:02:26 +00:00
Jean-Michel Trivi
e1f07060b8 am e825f0ee: am 60f22fbf: Do not restore the media button event receiver
* commit 'e825f0eec571831ceb60e65ec7e2a6b1ed7be5bd':
  Do not restore the media button event receiver
2014-09-10 20:59:32 +00:00
Raph Levien
20dbc370e3 Merge "Remove auto spaceifying behavior on paste" into lmp-dev 2014-09-10 20:55:51 +00:00
vandwalle
e26bc8fda7 make autojoin configurable, clean up BSSID info that may be stake in WifiConfiguration
Change-Id: I5052f6a76bcd1f980ef558bff54ce1b172319743
2014-09-10 13:49:48 -07:00
Jorim Jaggi
e81d5c97e8 Merge "Fix PIN/PUK flow" into lmp-dev 2014-09-10 20:48:46 +00:00
Jean-Michel Trivi
e825f0eec5 am 60f22fbf: Do not restore the media button event receiver
* commit '60f22fbf67a69e8f3604afb46ccd7c3bd2819cb1':
  Do not restore the media button event receiver
2014-09-10 20:47:57 +00:00
Jorim Jaggi
ef764551c9 Merge "Fix invisible Keyguard" into lmp-dev 2014-09-10 20:43:51 +00:00
Jon Miranda
83e3ec9d4e Merge "Tries to resolve reference resource names instead of its data." into lmp-dev 2014-09-10 20:34:08 +00:00
Jorim Jaggi
5cbfe5476b Fix invisible Keyguard
Bug: 17439581
Change-Id: Ie649af4a3455a650ab46372f1e5500b530a24f34
2014-09-10 22:23:08 +02:00
Jae Seo
9127e4580c TIF: Enable inflating class android.media.tv.TvView on non-TV devices
Needed to pass the CTS for those devices.

Bug: 17455222
Change-Id: Ief9a76835418906d9e8e06d4e5ddc71a3370055d
2014-09-10 13:11:13 -07:00
Svetoslav
fc81bfe3fb Merge "RTL support for print UI." into lmp-dev 2014-09-10 20:06:18 +00:00
Svetoslav
0421754a21 Merge "Fix page spacing in preview list." into lmp-dev 2014-09-10 20:05:46 +00:00
Mathieu Chartier
b4e5061fd6 Change EmptyArray System.identityHashCode to Object.hashCode.
Equivalent behavior, improves performance since
Object.hashCode has a fast path in the java side that does not
require JNI.

According to traceview sampling profiler:
Calendar had 6.8% time in System.identityHashCode during launch.
0.4% time in System.identityHashCode after the change.

Bug: 16828525

Change-Id: I1ed1d1283a990f990b0d4352cc1f4822b1dadf7b
2014-09-10 12:57:29 -07:00
Eino-Ville Talvala
657d30e7f4 Merge "Camera2: Allow captures right after abort" into lmp-dev 2014-09-10 19:48:21 +00:00
Sailesh Nepal
fab395e9b9 Merge "Set remote connection state after setting handle" into lmp-dev 2014-09-10 19:45:04 +00:00
Robert Greenwalt
8c9e975c44 Merge "Don't accept score below 0." into lmp-dev 2014-09-10 19:30:22 +00:00
Svetoslav
e652b02d45 Accessibilty support for the print UI.
bug:15816751

Change-Id: I5dcdbdd0357843b870ddd47d7c41cfba114d194c
2014-09-10 11:54:37 -07:00
Robert Ly
3d13b16ae4 am 0adb8bb0: am 5debe44b: am 0743bca5: docs: add 64k method limit note
* commit '0adb8bb0a2a9bd240af55e5a1795d837a8c5f9db':
  docs: add 64k method limit note
2014-09-10 18:26:56 +00:00
Paul Jensen
c91b5348a5 Flush HTTP socket pools and DNS cache when binding process to a Network.
Future HTTP requests could use an old socket that's bound to a different Network
causing unexpected results.  DNS results could also not be appropriate.

bug:17283566
bug:17432215
Change-Id: I88b40b723c7b442000cafe8ce8b9d989d8995991
2014-09-10 18:26:25 +00:00
Jorim Jaggi
f18271cb30 Fix PIN/PUK flow
Bug: 17411293
Change-Id: Ib9e99ba5d982704fc0b8201aa90a664501a34b81
2014-09-10 20:21:14 +02:00
Robert Ly
0adb8bb0a2 am 5debe44b: am 0743bca5: docs: add 64k method limit note
* commit '5debe44b88e41b61ecbbc48c60a006cd6abd734d':
  docs: add 64k method limit note
2014-09-10 18:16:12 +00:00
Matthew Williams
f1dc6860ff Merge "Protect LOGIN_ACCOUNTS_CHANGED receiver in SyncManager" into lmp-dev 2014-09-10 18:04:17 +00:00
Robert Ly
5debe44b88 am 0743bca5: docs: add 64k method limit note
* commit '0743bca58961582078f4e8199fe9a6fa044036eb':
  docs: add 64k method limit note
2014-09-10 18:04:16 +00:00
Raph Levien
5a689ce78e Remove auto spaceifying behavior on paste
The paste action contained some logic to automatically insert or remove
spaces, basically to emulate the semantics of the text being a sequence
of space-separated words. This was never universally loved, and gives
particularly unexpected behavior with a hardware keyboard.

This patch simply removes the logic to automatically adjust spaces on
paste, so what gets pasted is simply the literal buffer contents.

Bug: 16900326
Bug: 3304489
Change-Id: I5cdf9c43d98a17aa708883b47245aa7929a124d2
2014-09-10 11:03:18 -07:00
Matthew Williams
86f0c21417 Protect LOGIN_ACCOUNTS_CHANGED receiver in SyncManager
BUG: 17359770
Reuse the Manifest.permission.ACCOUNT_MANAGER to protect this receiver,
because when this intent lands it kicks off a sync for every account/provider
on the device.
Semantically this means "if you can't talk to an authenticator to do things like
get a token or add an account, then you can't send an intent to the SyncManager
that the accounts on the device have changed in some drastic way"

Change-Id: I7eccc38e135cb00ebb0aafc69afc802fe1c4f219
2014-09-10 10:53:14 -07:00
Robert Ly
0743bca589 docs: add 64k method limit note
Change-Id: I6590fc996331c1f2024276d338c4035f2cb0f18d
2014-09-10 10:50:46 -07:00
Jeff Davidson
6cb95276c3 Merge "Update unclear Fragment Javadoc." into lmp-dev 2014-09-10 17:46:21 +00:00
Robert Greenwalt
35f7a94c84 Don't accept score below 0.
Network Factories are allowed to go below, but networks need to be
constrained.  Allowing the network to go below 0 meant that -1 could
sometimes leak through and foul the logic.

The core of 17361330 will be fixed when we stop sending scores for
listens to NetworkFactories, but it exposed this issue too.  Summary:

1 - add a network listener.  This isn't  a request so it's not sent
to networks.
2 - alter your score (ethernet sets score to -1 when the link goes
down) (16:07:39.782)
3 - a bug in ConnectivityService causes score changes to get sent for
all network requests and network listeners causing NetworkFactories
to no see 2 entities.  This bug will be fixed by a pending change
(https://googleplex-android-review.googlesource.com/#/c/540840/).
This causes the ethernet NetworkFactory to see two entities, both
served by networks of score -1.  (16:07:39.989)
4 - disconnect Ethernet - this only sends 0 scores for known
requests, not network listeners.  Had it been sent for both entities
they both would have evaluated that the networkfactory score (-1)
was lower than the request score (0) and both released their
refcount. (16:08:03.147)
5 - this means the listener is tracked by the EthernetNetworkFactory
with a score of -1 while the factory itself has a score of -1 so the
network release isn't called.

bug:17361330
Change-Id: Ife34ca0f9c233dd3c3df80f6fea580af43afcdeb
2014-09-10 10:39:37 -07:00
Craig Mautner
6e2f395a86 Wait for animation complete before completing boot
Defer the boot process in ActivityManagerService,
WindowManagerService and PowerManagerService until the boot
animation has completed.

Fixes bug 16309312.

Change-Id: Ic5e0d627ca4ded3e211c5d2afece89da40d34642
2014-09-10 10:29:39 -07:00
Jean-Michel Trivi
f35423bb4e Merge "Virtualizer: replace device type by virtualization mode" into lmp-dev 2014-09-10 17:29:20 +00:00
Eric Laurent
b94b5d33b2 Merge "Hide AudioDevice class" into lmp-dev 2014-09-10 17:28:56 +00:00
Jorim Jaggi
1145748e5e Merge "Remove some overdraw in Keyguard" into lmp-dev 2014-09-10 17:22:53 +00:00
Jorim Jaggi
ebd8589406 Merge "Fix QS interception on tablets" into lmp-dev 2014-09-10 17:22:42 +00:00
Alexandra Gherghina
03e1e83697 Bugfix: use the correct user for ContentResolver calls
Bug: 16860604
Change-Id: I2de228442b7bd824a115f56a24d682d346737976
2014-09-10 18:13:12 +01:00
Ruben Brunk
a3256cd3e7 Merge "camera2: Fix preview stretching in LEGACY mode." into lmp-dev 2014-09-10 17:11:21 +00:00
Jorim Jaggi
53251ed4ac Remove some overdraw in Keyguard
Bug: 17287256
Change-Id: I0bc4101713f83abc2738528c247ca8ce5748bff1
2014-09-10 19:00:22 +02:00