Commit Graph

250613 Commits

Author SHA1 Message Date
TreeHugger Robot
ffd0d578d1 Merge "Removed screen on/off callbacks from NPMS." into nyc-mr1-dev 2016-08-19 22:37:49 +00:00
Ben Lin
7ca3194d9a Merge "Lowercasing search query in ExternalStorageProvider#querySearchDocs." into nyc-mr1-dev 2016-08-19 22:06:09 +00:00
TreeHugger Robot
f438720b17 Merge "HIC: Improve AccelerationClassifier" into nyc-mr1-dev 2016-08-19 22:03:39 +00:00
Roozbeh Pournader
eab8a12845 Merge "Re-enable disabled emoji tests [DO NOT MERGE]" into nyc-mr1-dev 2016-08-19 21:43:06 +00:00
Roozbeh Pournader
01bb406426 Merge "Check defaults for Android default-emoji characters [DO NOT MERGE]" into nyc-mr1-dev 2016-08-19 21:43:06 +00:00
Adrian Roos
6b312a09fc HIC: Improve AccelerationClassifier
Apply a bunch of improvements to the acceleration classifier:

- When dragging from the edges, we get some delay without
  movement between the DOWN and MOVE, which confounds the
  classifier. Now discounts data segments where the delay
  does not match the expected 16ms.
- The distance ratio did not compensate for differences
  in sampling. If it does it's equivalent to the speed
  ratio however. The distance ratio was removed and the
  impact of the speed ratio score doubled.
- If we cannot calculate the ratio, no longer penalize
  the traces for this.

Bug: 27405075
Change-Id: I067eb4d478593afbb20354e5c85a05353e2b4184
2016-08-19 13:38:02 -07:00
Ben Lin
f4c5b344ae Merge "DO NOT MERGE: Enable switch access api to activate/open files in DocsUI." into nyc-mr1-dev 2016-08-19 20:19:40 +00:00
TreeHugger Robot
4ecc9d2db4 Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev 2016-08-19 15:28:29 +00:00
Tyler Gunn
9df655a443 Merge "Add connection events for indicated when a connection is remotely held." into nyc-mr1-dev 2016-08-19 14:28:08 +00:00
Scott Main
c4fb0012e1 Merge "fix redirect for AIDL doc bug: 5967288" into nyc-dev am: 66ffbbfdf9
am: 97d6427ab0

Change-Id: Ic8a4e3c86fed503333e6f46d62ad4fd492430547
2016-08-19 13:29:14 +00:00
smain@google.com
97fd094458 fix redirect for AIDL doc bug: 5967288 am: 9ad944f8c9
am: 3872e56f69

Change-Id: I19e1cb6e9f79edb9755afb66cce4a67db9428f7f
2016-08-19 13:29:12 +00:00
Narayan Kamath
e3cb8a7db9 Merge "Process: Fix communication with zygote." into nyc-dev am: cce8af824a
am: b8f0cd0248

Change-Id: I49cd6679da56f5f853c17c741064db88431ded8c
2016-08-19 13:29:10 +00:00
Narayan Kamath
b060316945 Process: Fix communication with zygote. am: 448be0a622
am: 99f960f7da

Change-Id: I471c81919cce6725433895c3d20ca22a8e827b98
2016-08-19 13:29:07 +00:00
Bill Yi
02799d57d7 Import translations. DO NOT MERGE
Change-Id: I89cc90bed937b12a939bd4c43f0a6ee834ce088a
Auto-generated-cl: translation import
2016-08-19 04:31:46 -07:00
Scott Main
97d6427ab0 Merge "fix redirect for AIDL doc bug: 5967288" into nyc-dev
am: 66ffbbfdf9

Change-Id: Ib72ec2497e7b58c42ecca05cc318d7345e9fce69
2016-08-19 01:12:09 +00:00
smain@google.com
3872e56f69 fix redirect for AIDL doc bug: 5967288
am: 9ad944f8c9

Change-Id: I8614af80ea19a68d078ea578d2f8e7a3286f930a
2016-08-19 01:12:05 +00:00
Scott Main
66ffbbfdf9 Merge "fix redirect for AIDL doc bug: 5967288" into nyc-dev 2016-08-19 01:04:03 +00:00
TreeHugger Robot
1b58e1c821 Merge "Isolated processes don't get precached system service binders" into nyc-mr1-dev 2016-08-19 00:29:36 +00:00
Svetoslav Ganov
9a6008a334 Merge "Add resource based mechanism to grant default permissions" into nyc-mr1-dev 2016-08-18 23:38:34 +00:00
TreeHugger Robot
42b14329f5 Merge "Release mPackages lock earlier" into nyc-mr1-dev 2016-08-18 23:16:04 +00:00
Narayan Kamath
b8f0cd0248 Merge "Process: Fix communication with zygote." into nyc-dev
am: cce8af824a

Change-Id: I9e945b2a660d5daf57d7c51e8e7c9d814e78a728
2016-08-18 23:08:51 +00:00
Narayan Kamath
99f960f7da Process: Fix communication with zygote.
am: 448be0a622

Change-Id: I530a1f04545a796d22ca59141aa8fe3de349388c
2016-08-18 23:08:49 +00:00
George Mount
2613fb543a Merge "Fix NPE during Activity transition using wrong Activity." into nyc-mr1-dev 2016-08-18 22:27:31 +00:00
Andy Hung
47c7a8c19a Merge "AudioSystem: Verify audio port array information" into nyc-mr1-dev 2016-08-18 22:25:20 +00:00
smain@google.com
9ad944f8c9 fix redirect for AIDL doc
bug: 5967288

Change-Id: Ia2a4cbdde56d2e6baca4c5f74ea92bb7bfaf2938
2016-08-18 14:41:47 -07:00
Tim Murray
bb4e37c602 Merge "Prevent FIFO threads from creating more FIFO threads." into nyc-mr1-dev 2016-08-18 20:25:38 +00:00
Svet Ganov
59020bffb7 Add resource based mechanism to grant default permissions
This CL adds a mechanism for an OEM to grant default permissions
using the build system. This allows permissions for which they
got default grant exceptions to be added without modifying the
platform code. The format is a simple XML listing the packages
and the permissions to be granted for a package. The XML file
is placed in etc/default-permissions.

bug:29546655
bug:30929033

Change-Id: Ifb0516d7e2d0b399532024438bc0f86068a2e4e2
2016-08-18 19:52:15 +00:00
Svetoslav Ganov
6642c963d9 Merge "Grab lock when accessing mutable state" into nyc-mr1-dev 2016-08-18 19:05:49 +00:00
Todd Kennedy
a8d4f48997 Release mPackages lock earlier
We cannot hold mPackages when calling into generatePackageDexopts().
This method takes Package Manager's mInstallLock. By holding mPackages,
we have lock inversion and hilarity ensues.

Change-Id: Ia11a158677051e3511702f38cde6780e75b256fb
Fixes: 30927731
2016-08-18 11:22:52 -07:00
Tim Murray
38ee337f45 Prevent FIFO threads from creating more FIFO threads.
SCHED_FIFO threads shouldn't be able to arbitrarily create more
SCHED_FIFO threads.

bug 30898724

Change-Id: I3704b47b88b573313e9b1610556648c8595d4108
2016-08-18 11:14:15 -07:00
Christopher Tate
2c61c57ac5 Isolated processes don't get precached system service binders
More specifically, they get a PackageManager binder -- necessary for
Android process startup and configuration -- but none of the other
usual preloaded service binders.

Bug 30202228

Change-Id: I3810649f504cd631665ece338a83d2e54d41ad05
2016-08-18 10:15:59 -07:00
George Mount
a3edbf6a5d Fix NPE during Activity transition using wrong Activity.
Bug 30786309

If the Activity used in makeSceneTransitionAnimation isn't
the same one used in the startActivity call, a NullPointerException
could be thrown.

Change-Id: Id21c54fcf99b353feab62f7fc160997ed06e7d23
(cherry picked from commit 3289bfa289)
2016-08-18 17:15:43 +00:00
Ajay Panicker
9a236066db Protect various Bluetooth broadcasts
Bug: 30832954
Change-Id: I37e0b2ffab65c0703244917a4ade9bb8afbb5e6f
2016-08-18 17:10:58 +00:00
Felipe Leme
f8dd7b4e8d Removed screen on/off callbacks from NPMS.
NetworkPolicyManagerService (NPMS) used to depend on screen on/off
changes to determine if a foreground activity should have network
restrictions, but such check is now redundant since ActivityManager
already changes the proper UID state (like going from TOP to
TOP_SLEEPING) when the screen status is changed.

Removing such code decreases the NPMS lock contention when the screen is
turned on in about 3-5ms.

Change-Id: I2853443efedbf14961ae9a5b2e72689d4d1a646c
BUG: 30785671
(cherry picked from commit 88f40ad9a7)
2016-08-18 09:57:11 -07:00
Narayan Kamath
e24a4590bf Merge "Process: Fix communication with zygote." into nyc-dev
am: cce8af824a

Change-Id: I1086785cde9f5d9bbdff84b225c4d20582977c75
2016-08-18 10:20:00 +00:00
Narayan Kamath
ac16712d8a Process: Fix communication with zygote.
am: 448be0a622

Change-Id: I5d496613f53c339c75a3293845670d9d8360c90f
2016-08-18 10:19:57 +00:00
Narayan Kamath
cce8af824a Merge "Process: Fix communication with zygote." into nyc-dev 2016-08-18 10:14:31 +00:00
TreeHugger Robot
4b30053ede Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev 2016-08-18 01:23:05 +00:00
TreeHugger Robot
1af694510d Merge "AppIdleHistory: Only write screen on durations during regular sync" into nyc-mr1-dev 2016-08-18 01:14:32 +00:00
Andy Hung
737d9fb181 AudioSystem: Verify audio port array information
Bug: 30737845
Change-Id: Id092086862bc527fccc5e9f34c8a3ab16167ae92
2016-08-17 17:58:58 -07:00
Svet Ganov
442ed57e4b Grab lock when accessing mutable state
bug:30881375

Change-Id: Ied52fd9666f28b5c2038144b85cd74480ccfde43
2016-08-18 00:32:56 +00:00
Adam Lesinski
f2d87eba75 AppIdleHistory: Only write screen on durations during regular sync
Stop writing to disk every time the display goes off. Only write to
disk periodically.

Consequences

Previously, if the device rebooted after the screen duration was written
to disk, apps would appear more stale than they actually were.

Now apps will always look fresher, which is a better scenario.

Bug:30807864
Change-Id: Ia69a2e51fc9e397789215b449fae56fa3e29c74a
2016-08-17 16:42:46 -07:00
Jim Miller
669a153531 Fix vulnerability in LockSettings service am: 2d71384a13 am: 485fbda04c am: 229de7088e am: cb83f6188b
am: e3457fc127

Change-Id: I1bc40c141498e62cad36acc9568177cb88debc11
2016-08-17 23:26:57 +00:00
Jim Miller
e3457fc127 Fix vulnerability in LockSettings service am: 2d71384a13 am: 485fbda04c am: 229de7088e
am: cb83f6188b

Change-Id: I82302931ab714e25ec21721dc05480e1f2d447b0
2016-08-17 23:22:33 +00:00
Jim Miller
cb83f6188b Fix vulnerability in LockSettings service am: 2d71384a13 am: 485fbda04c
am: 229de7088e

Change-Id: I8e9d946f96933c1338261d8adf80156cb67d3ba1
2016-08-17 23:15:43 +00:00
Jim Miller
229de7088e Fix vulnerability in LockSettings service am: 2d71384a13
am: 485fbda04c

Change-Id: I07def32199ecdbbb32aa6ecaca20724cfc81265c
2016-08-17 23:07:46 +00:00
Dirk Dougherty
4fa4b29890 Merge "dd new ds-static doc build target to generate static docs (only) for devsite without resolving @links." into nyc-dev
am: 96855c49a6

Change-Id: If07272ee0de59b546df04f0232219bb0954da582
2016-08-17 22:59:31 +00:00
Jim Miller
485fbda04c Fix vulnerability in LockSettings service
am: 2d71384a13

Change-Id: I62ca5fb150022fe0971329294b1063957f397248
2016-08-17 22:59:27 +00:00
Dirk Dougherty
d66ec65b77 dd new ds-static doc build target to generate static docs (only) for devsite without resolving @links.
am: b042ab1eb6

Change-Id: I725ff3bce89572d06f76dd9f1860365514d27d56
2016-08-17 22:59:23 +00:00
Dirk Dougherty
96855c49a6 Merge "dd new ds-static doc build target to generate static docs (only) for devsite without resolving @links." into nyc-dev 2016-08-17 22:53:24 +00:00