Commit Graph

69825 Commits

Author SHA1 Message Date
John Reck
9580146f50 Add API to copy a window
Change-Id: I9bb5209010db6665be4b6f8db81a6fc1b7debc45
2016-09-07 11:41:15 -07:00
Yohei Yukawa
d96ff3c901 Merge "Update JavaDoc for IMS#enableHardwareAcceleration" 2016-09-07 01:05:14 +00:00
Chad Brubaker
d2b2968e1d Avoid NPE on certificates that cannot be read am: 01e9682cab am: 92a534325d
am: 94c395549a

Change-Id: Ifc5c8aa90255b46564225c1cfbc2d96f640ce2f7
2016-09-06 21:49:40 +00:00
Chad Brubaker
94c395549a Avoid NPE on certificates that cannot be read am: 01e9682cab
am: 92a534325d

Change-Id: Ie650d94e36498c78ca7c2e49d75510966c351b16
2016-09-06 21:44:54 +00:00
Chad Brubaker
92a534325d Avoid NPE on certificates that cannot be read
am: 01e9682cab

Change-Id: I5dfc19b32cef8f87c04908d1116e7528ae9be87c
2016-09-06 21:30:43 +00:00
Hui Shu
956b5293ac Merge "Fix WebViewDatabase javadoc." 2016-09-06 20:57:57 +00:00
Phil Weaver
93521c0043 Stop double notifying a11y about Toasts. am: 532c7999c5 am: de13bcf08b
am: 6e56bb4c14

Change-Id: Ia95d2eb44f3deee794986a420a622fb1c7de9e15
2016-09-06 19:21:33 +00:00
Hui Shu
433fb93515 Fix WebViewDatabase javadoc.
BUG=30481165
Change-Id: Ibd14880aa25907234dd93c38b5d0f2c9e808340e
2016-09-06 11:28:34 -07:00
Phil Weaver
6e56bb4c14 Stop double notifying a11y about Toasts. am: 532c7999c5
am: de13bcf08b

Change-Id: Ie3ed51a4fe4c6c818bc96e98c214ec7b610f507d
2016-09-06 16:46:46 +00:00
Phil Weaver
de13bcf08b Stop double notifying a11y about Toasts.
am: 532c7999c5

Change-Id: If8d025884b8a941386cd472403c1c93fee5a70af
2016-09-06 16:40:15 +00:00
TreeHugger Robot
1de7186c92 Merge "Removed deprecated methods from INetworkPolicyManager." 2016-09-03 05:47:48 +00:00
Svetoslav Ganov
71c510236c resolve merge conflicts of bde1d34 to master
Change-Id: Id3cef32bb97cfe8483001e71207b65bc0bc6e304
2016-09-02 18:04:29 -07:00
Svetoslav Ganov
bde1d3458f Prevent apps to overlay other apps via toast windows am: aa07653d2e
am: dea62c6f58

Change-Id: I7ee488e4ac0fc312405680d04a480d473c176ac5
2016-09-02 23:46:20 +00:00
Svetoslav Ganov
dea62c6f58 Prevent apps to overlay other apps via toast windows
am: aa07653d2e

Change-Id: I309615a989eade43401b086da42ff6522d000b68
2016-09-02 23:36:59 +00:00
Felipe Leme
57e3d31091 Removed deprecated methods from INetworkPolicyManager.
Removed the following methods:

- addRestrictBackgroundWhitelistedUid(int uid)
- removeRestrictBackgroundWhitelistedUid(int uid);
- getRestrictBackgroundWhitelistedUids();

They've been replaced by getUidsWithPolicy() and setUidPolicy().

Test: m -j32 FrameworksServicesTests && adb install -r -g ${ANDROID_PRODUCT_OUT}/data/app/FrameworksServicesTests/FrameworksServicesTests.apk && adb shell am instrument -e class "com.android.server.NetworkPolicyManagerServiceTest" -w "com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner"

BUG: 28791717

Change-Id: I8f6a569cef84c2be60e3277756283026c0fb5b29
2016-09-02 16:26:35 -07:00
Winson
70f21570bf Fixing issue with old tasks being visible in Overview am: b258f6a4bd am: f4806c80ca
am: 2a4cd1518e

Change-Id: I8a229f3515bebca4cd8456afae963bb97dac96d6
2016-09-02 22:22:43 +00:00
Winson
2a4cd1518e Fixing issue with old tasks being visible in Overview am: b258f6a4bd
am: f4806c80ca

Change-Id: I87bb9656b8d766ea4b2763f529bbf1d8873479f4
2016-09-02 22:15:06 +00:00
Winson
f4806c80ca Fixing issue with old tasks being visible in Overview
am: b258f6a4bd

Change-Id: I27ba3d057147b5200ac75b9f079d26423c9d0b05
2016-09-02 22:08:33 +00:00
Svetoslav Ganov
aa07653d2e Prevent apps to overlay other apps via toast windows
It was possible for apps to put toast type windows
that overlay other apps which toast winodws aren't
removed after a timeout.

Now for apps targeting SDK greater than N MR1 to add a
toast window one needs to have a special token. The token
is added by the notificatoion manager service only for
the lifetime of the shown toast and is then removed
including all windows associated with this token. This
prevents apps to add arbitrary toast windows.

Since legacy apps may rely on the ability to directly
add toasts we mitigate by allowing these apps to still
add such windows for unlimited duration if this app is
the currently focused one, i.e. the user interacts with
it then it can overlay itself, otherwise we make sure
these toast windows are removed after a timeout like
a toast would be.

We don't allow more that one toast window per UID being
added at a time which prevents 1) legacy apps to put the
same toast after a timeout to go around our new policy
of hiding toasts after a while; 2) modern apps to reuse
the passed token to add more than one window; Note that
the notification manager shows toasts one at a time.

bug:30150688

Change-Id: Ia1dae626bd9e22541be46edb072aa288eb1ae414
2016-09-02 14:00:07 -07:00
Yohei Yukawa
bce2195b9f Fix typos in JavaDoc for InputConnection am: 1ab959a6e0 am: 1a000651d5
am: cc2a206d92

Change-Id: Ia3d7a6f3a2ed2dc846642ce51c6b5e46ab72d0f2
2016-09-02 20:22:45 +00:00
Chad Brubaker
01e9682cab Avoid NPE on certificates that cannot be read
Skip certificates in a DirectoryCertificateSource that cannot be read to
due IOExceptions or CertificateExceptions, this prevents a NPE but
connections will still fail due to the certificate being unusable and no
valid trust-anchor existing.

This also logs the error since this really shouldn't happen.
Bug: 29997695

Change-Id: I9f7327efc302a259fb951f1f61f7fc4d647821fa
2016-09-02 13:15:39 -07:00
Yohei Yukawa
cc2a206d92 Fix typos in JavaDoc for InputConnection am: 1ab959a6e0
am: 1a000651d5

Change-Id: Ia5dd58a4c85c871a3bae9536f6571fba9930e64a
2016-09-02 17:50:16 +00:00
Yohei Yukawa
1a000651d5 Fix typos in JavaDoc for InputConnection
am: 1ab959a6e0

Change-Id: I8e945ed58761262ebe3b7521de1c4b701ab6e195
2016-09-02 00:21:37 +00:00
Yohei Yukawa
1ab959a6e0 Fix typos in JavaDoc for InputConnection
This CL fixes typos in JavaDoc for InputConnection.

This CL slso updates the content regarding a new API that was added in
API 25 [1][2].

 [1]: Iaadf934a997ffcd6000a516cc3c1873db56e60ad
      152944f490
 [2]: Ica1ba3154795c1bf44e140dfe639b299f83cd8af
      adebb52588

Bug: 31249896
Change-Id: Icafedb15943a84f8e5b03ef9eb3a50627d508bdd
2016-09-01 15:42:29 -07:00
Yohei Yukawa
ac0211a478 Update JavaDoc for IMS#enableHardwareAcceleration
This makes it clear that on Android L+ devices IME developers basically
no longer need to call InputMethodService#enableHardwareAcceleration(),
because it is deprecated in Android L[1][2].  On L+ devices what IME
developers need to do is to make sure that their IMEs are compatible
with both hardware and software rendering so that the system can choose
the best rendering method.

This is basically a code clean-up that should not change any actual
behavior.

 [1]: I906d48cb07af50fa02dae4f4ecdb5e65211fc6ef
      5e1565ead6
 [2]: I126ea823eb2eeabb29d30999dec9c9411b33b315
      e07b595519

Bug: 31202732
Change-Id: I416669b172737e3eb3d77165dcea50289d207514
2016-09-01 12:41:58 -07:00
Phil Weaver
5ef2e14b59 Merge "Add tests for accessibility cache." 2016-09-01 15:57:09 +00:00
Robert Carr
3dc9c74e61 PopupWindow: Gravity fixes. am: 085160612d am: a732ea6c1f
am: 0ceb3cd785

Change-Id: I9e8dbd01cc0dfa0e115a5f0270912cbb67e9213d
2016-09-01 03:01:00 +00:00
Amith Yamasani
2f2b5aca20 Call Debug.getPss without a lock held am: 10e8f16add am: f10d31f5d0
am: 65fdd196fa

Change-Id: Ic41194d60d8919d69123bd40082c86b2a1e22571
2016-09-01 01:33:19 +00:00
Jakub Pawlowski
2dd2fead45 Merge "Separate advertiser from GATT client (1/4)" am: 5f87c4539a am: 40a16ea242 am: 9f341e4e49
am: 8348bd2317

Change-Id: I15b6c8ab87822e5f33bdfabcb8e09e8ce9501cd7
2016-09-01 01:27:03 +00:00
Neil Fuller
4e4f9a24e0 Merge "Fix receive timeout on LocalSocket" am: 7a9c0cd854 am: 680ec020a1 am: ef1fb4889a
am: 0aa7d4bb3f

Change-Id: I35b4ff81c9263a3a2d3052602fe43bc37377c733
2016-09-01 01:18:32 +00:00
Svetoslav Ganov
388d08b6e3 resolve merge conflicts of a2c1196 to master
Change-Id: I221f03e2cda9e677199698d492d16788c25c9e96
2016-08-31 18:02:57 -07:00
sergeyv
22ddb31dce TextureView: clean up displaylists am: 17dd01b693 am: ac2ca87e92
am: bb37b7b613

Change-Id: I12252ddc60ad7f52fe1604ac84042a759b8373c4
2016-08-31 23:47:32 +00:00
Makoto Onuki
034de15cb6 Update CP2 javadoc am: 93d94ebac2 am: e3972019dc
am: e08b704cb7

Change-Id: Ie9e3aea4157d848044254a779b2d3a3df0f8152d
2016-08-31 23:32:38 +00:00
Lorenzo Colitti
e22143e855 Network switch notifications: rate & daily limits am: 84e6f1232c am: 858499b2c0 am: 2c535a4f7c
am: 98ed392cf7

Change-Id: I0c067ec355eb2a50af3c828b1fe3ee8a78e44536
2016-08-31 23:31:56 +00:00
Jeff Sharkey
d11c21f371 DO NOT MERGE. Clarify FileObserver docs for null value. am: c041f5a3b8
am: a341d70602

Change-Id: Ib737218df19aed7f09ba142cce4fc9c62edffd5d
2016-08-31 23:29:26 +00:00
Jeff Sharkey
a341d70602 DO NOT MERGE. Clarify FileObserver docs for null value.
am: c041f5a3b8

Change-Id: I3c0f0098eed321419c8d0e2a1a66c2bf380df8d1
2016-08-31 23:22:04 +00:00
Eino-Ville Talvala
749967cfa5 android.view.Surface: Add parceling warning am: f005f5ed88 am: 286b1a83e4
am: b13b6bd20e

Change-Id: I05b118022efb506ba57e93e1f58a077ebb951f55
2016-08-31 22:53:05 +00:00
Patrick Tjin
167e48417e BootReceiver: Report correct headers for last messages am: 60c17395a6 am: 56734f96ec
am: 7eb4b15e4b

Change-Id: I3201e2e35b09c871f2505d7609b75259776392ea
2016-08-31 22:31:58 +00:00
Ned Burns
c8a00b2478 Add rotary encoder support to scrolling containers am: 20ad073581
am: dc47505734

Change-Id: I20d6731276defbc2605ca078011c5c1bc5f18cdc
2016-08-31 22:28:55 +00:00
Jeff Sharkey
c041f5a3b8 DO NOT MERGE. Clarify FileObserver docs for null value.
Change-Id: I7dc0b0d26220d6eb82f956a9860cfb6aeccfd12f
Test: none
Bug: 30511606
(cherry picked from commit 902316d553)
2016-08-31 21:42:54 +00:00
Jorim Jaggi
32cbdcc8c0 resolve merge conflicts of c5bafe2 to master
Change-Id: I19dd5c88c664313c2f8b47d8f8fd556f630c8bf1
2016-08-31 13:51:50 -07:00
Robert Carr
0ceb3cd785 PopupWindow: Gravity fixes. am: 085160612d
am: a732ea6c1f

Change-Id: Ide4ccd6cbfef913392a46b89486de064e0196ad6
2016-08-31 19:31:48 +00:00
Robert Carr
a732ea6c1f PopupWindow: Gravity fixes.
am: 085160612d

Change-Id: Ia9477ead7cf1cdd942817f2f427053c6187a1cdf
2016-08-31 19:26:55 +00:00
Tor Norbye
366a3f14f5 Merge "Add SYSTEM_HEALTH_SERVICE to the ServiceName typedef" 2016-08-31 19:23:41 +00:00
Rob Carr
8330a91def Merge "PopupWindow: Gravity fixes." into nyc-mr1-dev 2016-08-31 19:21:52 +00:00
Android Build Merger (Role)
4c8c594996 Merge "Call Debug.getPss without a lock held am: 10e8f16add am: f10d31f5d0" into nyc-mr1-dev-plus-aosp 2016-08-31 18:31:14 +00:00
Amith Yamasani
65fdd196fa Call Debug.getPss without a lock held am: 10e8f16add
am: f10d31f5d0

Change-Id: I037274eab1841fb57440bbd13a5f290e079736dd
2016-08-31 18:29:35 +00:00
Jakub Pawlowski
8348bd2317 Merge "Separate advertiser from GATT client (1/4)" am: 5f87c4539a am: 40a16ea242
am: 9f341e4e49

Change-Id: Ic3461b98449636cfc125890f255b1332d0ef5132
2016-08-31 18:28:45 +00:00
Jakub Pawlowski
9f341e4e49 Merge "Separate advertiser from GATT client (1/4)" am: 5f87c4539a
am: 40a16ea242

Change-Id: I0d08f623e78fdd779b39083d0da3a45aee72ff3c
2016-08-31 18:21:00 +00:00
Jakub Pawlowski
5f87c4539a Merge "Separate advertiser from GATT client (1/4)" 2016-08-31 18:05:27 +00:00