Commit Graph

253881 Commits

Author SHA1 Message Date
Raph Levien
2f39bc777c Merge "Patch out part of the emoji tests." into nyc-mr1-dev 2016-07-14 22:24:14 +00:00
Victor Chang
c4ef7669a1 Merge \"Disallow shell to mutate always-on vpn when DISALLOW_CONFIG_VPN user restriction is set\" into nyc-dev
am: 488042fe3b

Change-Id: I4d542c19e057b044544a2ed4f07b9c2cc5866f0f
2016-07-14 22:09:59 +00:00
Alan Leung
d6e67e6a16 Fix thread priority after boosting.
The previous CL wrongly restores all priority to nice 0.

This CL changes two things:

1. It remembers and restores the previous priority.
2. If the thread has priority of < -2. Do not set it to -2.

BUG: 29930920
Change-Id: I927e060d789c9bbf92f6a166f44317d9db0f5205
2016-07-14 22:06:05 +00:00
Victor Chang
488042fe3b Merge "Disallow shell to mutate always-on vpn when DISALLOW_CONFIG_VPN user restriction is set" into nyc-dev 2016-07-14 22:04:11 +00:00
Chris Craik
0658435096 Fix rotated clip regions
bug: 26562461
fixes: 30109912

SeekBar clips out the area of the thumb when drawing its track. This
creates a clip region, since a rect has been subtracted.

This changes region transform support in computing final clip to
properly support any rect-to-rect transform (such as 90 degree rotation)
when applying a clip region.

Change-Id: Ib3bbc52637e59e00b3a7e7d5c4c40555e26c578b
2016-07-14 14:37:08 -07:00
Kevin Hufnagle
0da25a69f3 docs: Added note about limited support for hardware key attestation
Most devices running Android N support only software-based key
attestation, so added several notes to the pages describing this
tool to help developers understand how to tell whether a device
supports only software-based key attestation and the associated
effects of this support level.

Bug: 28851641
Change-Id: I16c8ad7702814eba1e4b8b3ee7e9a569d08c3ff4
2016-07-14 14:35:13 -07:00
Selim Cinek
76e813c155 Fixed the heads up disspearing bug for real
When children become unisolated, they could be stuck in heads up mode.

Change-Id: I18227ae6743abec8fd6dc75916c67549f9e0aac4
Fixes: 30120962
2016-07-14 14:06:42 -07:00
Selim Cinek
94c2d82f4f Fixed a bug where the header was positioned wrong
Also cleaned up some logic about the translation

Change-Id: I6bfcb36ac27d8d6280e8ffea62b597d3bc705121
Fixes: 29880654
2016-07-14 14:06:39 -07:00
Bill Yi
87df5f6ded Merge \"Import translations. DO NOT MERGE\" into nyc-dev
am: 9cdfb9d781  -s ours

Change-Id: I861d47e86d5695382ecf2e3093e567f710273c1c
2016-07-14 20:47:18 +00:00
TreeHugger Robot
9cdfb9d781 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-07-14 20:39:49 +00:00
TreeHugger Robot
a035048d35 Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev 2016-07-14 20:27:17 +00:00
TreeHugger Robot
5768a5dd30 Merge "Add LTE+ and update 4G+ icons" into nyc-mr1-dev 2016-07-14 20:09:00 +00:00
TreeHugger Robot
97639a1310 Merge "Require permission for FLAG_WILL_BE_FOREGROUND." into nyc-mr1-dev 2016-07-14 20:05:39 +00:00
Makoto Onuki
6771d73703 Don't accept resource references in string fields
Detect it when a developer accidentally uses @string/... in string fields
and log an error rather than publishing shortcuts with wrong values.

Bug 30140672

Change-Id: I98a60afd7f52282019a94a7a8c30a85ea4c7806b
2016-07-14 12:58:40 -07:00
TreeHugger Robot
5ac1b52aaa Merge "Allow no longer waiting for visible activity to be stopped." into nyc-mr1-dev 2016-07-14 19:55:13 +00:00
Carlos Valdivia
327c7e4c06 Merge "Only broadcast LOGIN_ACCOUNTS_CHANGED when changes occur." into nyc-mr1-dev 2016-07-14 19:11:03 +00:00
Justin Klaassen
94673f0b7c Merge "Refactor display color transforms" into nyc-mr1-dev 2016-07-14 18:55:31 +00:00
Sergio Giro
7c19aa73f7 Add bound checks to utf16_to_utf8 am: bce11021b2 am: 008120497b am: bab3334226 am: ff58d7c918 -s ours
am: 437776ac65

Change-Id: Ic88ad611257693f8f5691e48493ed0ac46a1a45a
2016-07-14 18:48:55 +00:00
Nicolas Prevot
58926243e0 Don't append userIds for the current user's clipData uris.
If the primary user has a managed profile:
When setting the clipboard in the primary user:
The uris of the primary user's clipboard must not have an
embedded userId.

BUG:28572936

Change-Id: I1eb505c4518cc16a6513b950f6c2b1232a22426d
2016-07-14 18:43:02 +00:00
Sergio Giro
437776ac65 Add bound checks to utf16_to_utf8 am: bce11021b2 am: 008120497b am: bab3334226
am: ff58d7c918  -s ours

Change-Id: I31000817d4f99c215277d580948a20194176d53e
2016-07-14 18:42:45 +00:00
Justin Klaassen
22eb19939d Refactor display color transforms
- Removed Secure.ACCESSIBILITY_DISPLAY_COLOR_MATRIX, it's not desirable
  to persist the actual color transformation matrix.
- Refactored all SurfaceFlinger transforms to DisplayTransformManager,
  which allows color transforms to be set independently from the a11y
  manager service.

Bug: 30042357
Change-Id: Iefa477dedb66aac90e1218e327802a3fab6899ed
2016-07-14 11:28:07 -07:00
Alan Viverette
11f831f133 Use "real" display size for computing available densities
Avoid issues in split-screen mode.

Bug: 29835212
Change-Id: Ib11c1790cb4b2cc24ce5702f9d785ba188ad19c0
2016-07-14 14:27:17 -04:00
Sergio Giro
ff58d7c918 Add bound checks to utf16_to_utf8 am: bce11021b2 am: 008120497b
am: bab3334226

Change-Id: I6e4e399dfcf89f46d40a162c77462b889883f569
2016-07-14 18:23:54 +00:00
Felipe Leme
28318faf16 Merge \"Fixed statuses on Battery Saver column.\" into nyc-dev
am: 24b2e7bbee

Change-Id: I6b871cebf05f0fe18b054df456aabd80b10336aa
2016-07-14 18:23:12 +00:00
smain@google.com
c5084eac0f delete old Community page, redirect to Support page
am: 845cf07bdd

Change-Id: Icf5f64df8ec68544b6e4888309444ef39cb8b494
2016-07-14 18:23:04 +00:00
Sergio Giro
bab3334226 Add bound checks to utf16_to_utf8 am: bce11021b2
am: 008120497b

Change-Id: Ib3135f8f186b10b773592d2bcbeae398cfd2fee1
2016-07-14 18:15:33 +00:00
Felipe Leme
24b2e7bbee Merge "Fixed statuses on Battery Saver column." into nyc-dev 2016-07-14 18:10:56 +00:00
Sergio Giro
ea79ab4e82 Add bound checks to utf16_to_utf8
am: 1deedbacc3

Change-Id: I5004728668382feeafcc6fa6155b3169d8240664
2016-07-14 18:07:34 +00:00
Sergio Giro
008120497b Add bound checks to utf16_to_utf8
am: bce11021b2

Change-Id: Ic4995dee3763290f75b3ef623f257c71748d9d51
2016-07-14 18:07:23 +00:00
smain@google.com
845cf07bdd delete old Community page, redirect to Support page
Change-Id: I2c570f8bf88392db75aa78c2e702515b262f2830
2016-07-14 11:05:19 -07:00
Felipe Leme
9e325706f4 Fixed statuses on Battery Saver column.
BUG: 30139400

Change-Id: I1798607af13c9be5e1f21212fd7078f7152562bd
2016-07-14 11:04:49 -07:00
Makoto Onuki
e5b46f3bd5 Merge "Don't allow shortcuts with non-main activities" into nyc-mr1-dev 2016-07-14 17:50:22 +00:00
Makoto Onuki
13260b6ff0 Don't allow shortcuts with non-main activities
Bug 30122758

Change-Id: Id9ead6706d5460fec3d68c7457e3097f30a9a080
2016-07-14 10:49:22 -07:00
Benjamin Franz
7fbb93d4aa DO NOT MERGE Block the user from entering safe boot mode
Block the user from entering safe boot mode if the DISALLOW_SAFE_BOOT
policy is set.

Bug: 26251884
Change-Id: I4945d5d676928346c11ea305a5b6a2e1a42e94e6
2016-07-14 17:28:55 +00:00
Christopher Wiley
e52b24a0c5 Properly disable WiFi tethering
When Tethering.stopTethering(<wifi>) is called, we set
mWifiTetheringRequested to false and request the AP be torn down.
Previously, we would discard WIFI_AP_STATE_CHANGED_ACTION Intents,
because mWifiTetheringRequested was set to false.  This would in
turn cause us to leave tethering enabled, because we only tear down
tethering upon noticing that the interface is going down
(as signalled by WifiManager via this Intent).

In the past, this was covered up because we would tear down tethering
when the interface was taken down.  Now that we rely on SoftApManager
to notify us of AP state, we need to pay very close attention to what
is being said about the state.

Bug: 30124308
Test: Can toggle tethering on and off reliably on shamu, bullhead,
      angler with no SIM.  Can toggle tethering on and off on a marlin
      with T-Mobile SIM.

Change-Id: If46a8ee11cf4c07c5cc336523f5e5f00273500ec
2016-07-14 09:57:55 -07:00
Jeff Sharkey
785f494e87 Require permission for FLAG_WILL_BE_FOREGROUND.
We caught scheduleAsPackage(), but not schedule(), oops.

Bug: 28998999
Change-Id: I0642c2265ff61eead8747cc6b4d0f852f1ca3ef2
2016-07-14 10:43:14 -06:00
Philip P. Moltmann
965a706282 Merge "Always trigger a write if no pages are written" into nyc-mr1-dev 2016-07-14 16:21:11 +00:00
Wale Ogunwale
3c51930796 Allow no longer waiting for visible activity to be stopped.
When process the stop list we remove an activity that was previously
waiting for visible and is now visible from the list and also hide
its windows if it is finishing. However, we don't transition it to the
stopped state because it was waiting for visible. If it is finishing
and the windows are hidden then it makes sense to transition it into
the stopped state since it will not be visible to the user again.

Bug: 30058392
Change-Id: Iac81e2877716ae58d05aed42e1433190a2f70428
2016-07-14 09:17:59 -07:00
Sergio Giro
bce11021b2 Add bound checks to utf16_to_utf8
Test: ran libaapt2_tests64
Bug: 29250543
Change-Id: I1ebc017af623b6514cf0c493e8cd8e1d59ea26c3
(cherry picked from commit 4781057e78)
2016-07-14 16:37:18 +01:00
Hugo Benichi
38db976514 APF: filter unwanted ARP replies
This patch adds APF filtering of ARP replies for interfaces with APF.

- when the interface has no IPv4 address, broadcast ARP replies with a
  0.0.0.0 target ip are dropped (GARP), ARP requests with a 0.0.0.0
  target ip are dropped.

- when the interface has an IPv4 address, broadcast ARP replies to a
  different ip are dropped (including GARPs to 0.0.0.0), ARP requests to
  a different ip are dropped.

Bug: 29404209
Bug: 30080487
Change-Id: I82613eb865c7f38b6260997fe2caf2aff382ad78
2016-07-14 23:36:53 +09:00
Dan Sandler
f3a1f2c7b0 WIP debugging.
Bug: 28524184
Change-Id: I0126b1db0c2346ca8d7511b80464c0239f06eeba
2016-07-14 14:33:26 +00:00
Geoffrey Pitsch
ebfa6df9a0 Merge "Fixes delay when playing first sound in BootAnimation" into nyc-mr1-dev 2016-07-14 14:14:58 +00:00
Bill Yi
8484aad4cb Import translations. DO NOT MERGE
Change-Id: Ie48e587beb52623dec3ccefc85daa7b0f53ec037
Auto-generated-cl: translation import
2016-07-14 06:48:37 -07:00
Bill Yi
1ed65a2799 Import translations. DO NOT MERGE
Change-Id: I00c813fd0ad16c98cc15eec52a9af333528babfa
Auto-generated-cl: translation import
2016-07-14 06:33:13 -07:00
Sergio Giro
1deedbacc3 Add bound checks to utf16_to_utf8
Test: ran libaapt2_tests64
Bug: 29250543
Change-Id: I1ebc017af623b6514cf0c493e8cd8e1d59ea26c3
(cherry picked from commit 4781057e78)
2016-07-14 13:27:53 +00:00
Jason Monk
aa730be72d Add LTE+ and update 4G+ icons
Change-Id: Ic91450207921afbfab24cc02d00639d532495c58
Fixes: 30006697
2016-07-14 09:25:04 -04:00
Jason Monk
cc6e8c4611 Merge "QS Detail: Remove up arrow" into nyc-mr1-dev 2016-07-14 13:08:46 +00:00
Victor Chang
e293b0cd00 Disallow shell to mutate always-on vpn when DISALLOW_CONFIG_VPN user restriction is set
Fix: 29899712

Change-Id: I38cc9d0e584c3f2674c9ff1d91f77a11479d8943
(cherry picked from commit 9c7b706cf4)
2016-07-14 10:47:35 +00:00
Rubin Xu
74eb4a5226 Merge "Fix typo in DevicePolicyManager" into nyc-mr1-dev 2016-07-14 09:46:23 +00:00
Chris Banes
6487312544 Merge "Read translation and elevation attributes as floats" into nyc-mr1-dev 2016-07-14 09:11:05 +00:00