Commit Graph

87827 Commits

Author SHA1 Message Date
TreeHugger Robot
02014a62ab Merge "Ensure preference icon is returned when inflated from XML even if it has not been displayed yet." into cw-f-dev 2016-09-07 22:05:06 +00:00
Makoto Onuki
9d46e5e044 Allow DO/PO to be installed with certain preconfigured accounts.
am: 5e7e0670c7

Change-Id: I9191a60bf4071b8205c04131cb2d97ef1a32fb19
2016-09-07 21:40:20 +00:00
Michael Kwan
f049e24c64 Ensure preference icon is returned when inflated from XML even if it has not been displayed yet.
Bug: 31343032
Change-Id: Ifa2c84b3091c2cfc5b98da6f30bb1ba060cd26e7
2016-09-07 13:15:55 -07:00
Robert Carr
d0c9771e49 SurfaceView: Correct coordinate space in windowPositionLostRT.
am: 3387913237

Change-Id: I7f28aab013bd6fe213a90e293664cc59ee6d23cf
2016-09-07 19:25:20 +00:00
Narayan Kamath
8f1cabbce6 fd_utils: Fix broken usage of iterators.
am: 0b76d6a28e

Change-Id: Ie1134023c6ad464b5a76c337057f9416f31ca089
2016-09-07 18:17:09 +00:00
Robert Carr
3387913237 SurfaceView: Correct coordinate space in windowPositionLostRT.
mWinFrame as set when returning from relayout will be in screen
space coordinates. repositionChild however expects coordinates relative to the
parent position (like relayout).

Bug: 31112993
Change-Id: Id4fcd7fcb771908e8a7db981207d19c99fb51b98
2016-09-07 11:07:18 -07:00
Narayan Kamath
8af10f9c21 fd_utils: Remove /system/etc/event-log-tags from the whitelist.
am: cefc0374eb

Change-Id: If519c119b39e9701472d1e6c7469ca0dafa036fc
2016-09-07 17:22:03 +00:00
Narayan Kamath
0b76d6a28e fd_utils: Fix broken usage of iterators.
There were two separate issues here :
- RestatInternal was using an iterator after a call to erase(). This
  will not work because it will be invalidated.
- The "standard" for loop idiom for iterating over a map while making
  structural changes to it is broken. Switch to a while loop and treat
  cases where elements are erased differently from cases where they
  aren't.

bug: 31092930
bug: 30963384
Change-Id: I261d59239558230dd8cdd1d1cb5b9e2448a4c23f
2016-09-07 13:14:40 +01:00
Bill Yi
cf35085cfd Import translations. DO NOT MERGE
Change-Id: If9d5c40eada1c5a4a530ddd1d75e7ae6f7d7ecb8
Auto-generated-cl: translation import
2016-09-06 18:18:50 -07:00
Jorim Jaggi
6e690e32a0 Quicker exit animation for bottom dock on Keyguard
am: 48832811b0

Change-Id: Ifd3603c9c41fb475730521452a0326b453e2ce8d
2016-09-06 22:01:33 +00:00
Neil Fuller
ad54b35d6d Fix receive timeout on LocalSocket
am: 8d5ec8d7db

Change-Id: I463c1f7189b573fdbf9f0bf5001e6c626ea88197
2016-09-06 21:32:09 +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
Jorim Jaggi
48832811b0 Quicker exit animation for bottom dock on Keyguard
Change-Id: I9d07dc6ce7e2aec36bf797bd4041701315e71e0e
Fixes: 31274209
2016-09-06 12:38:23 -07:00
Makoto Onuki
5e7e0670c7 Allow DO/PO to be installed with certain preconfigured accounts.
- Non-test-only DO/PO still can't be installed when there are
accounts.

- Test-only DO/PO can be installed even when there are accounts,
as long as all the accounts have the
"android.account.DEVICE_OR_PROFILE_OWNER_ALLOWED" feature.
Some authenticators claim to have any features, so to detect it,
we also check android.account.DEVICE_OR_PROFILE_OWNER_DISALLOWED
and disallow installing if any of the accounts have it.

- Also add logs on certain important events in DPMS.

Bug 28928996

Change-Id: I62efce10e9cc22e994ea8cae91a4fafcce25dd77
2016-09-06 11:56:45 -07:00
Phil Weaver
de13bcf08b Stop double notifying a11y about Toasts.
am: 532c7999c5

Change-Id: If8d025884b8a941386cd472403c1c93fee5a70af
2016-09-06 16:40:15 +00:00
Phil Weaver
85d18cce6d Merge "Stop double notifying a11y about Toasts." into nyc-mr1-dev 2016-09-06 16:33:42 +00:00
Narayan Kamath
cefc0374eb fd_utils: Remove /system/etc/event-log-tags from the whitelist.
We don't need this file open after change bfd8eafa1d33460.

bug: 30963384

Change-Id: Iaa6ff54cdef2b29c8d170b1fe0718cd045b44e2f
2016-09-06 14:51:29 +01:00
Narayan Kamath
cd83308508 fd_utils: Remove whitelist for "/dev/pmsg0".
am: 8dee054190

Change-Id: I11a575a86dc7e631872e5718db6ecd5215bf5aad
2016-09-06 13:40:36 +00:00
Narayan Kamath
8dee054190 fd_utils: Remove whitelist for "/dev/pmsg0".
We're now calling __android_log_close prior to a fork, so this file
shouldn't need to be open.

bug: 31243313
bug: 30963384
Change-Id: I8c29adf075782eed966c9197d58f0325310f6c3a
2016-09-05 14:54:07 +01: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
Svetoslav Ganov
cbfd373d72 Merge "Prevent apps to overlay other apps via toast windows" into nyc-mr1-dev 2016-09-02 23:28:26 +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
Winson Chung
a8c0fe6606 Merge "Fixing issue with old tasks being visible in Overview" into nyc-mr1-dev 2016-09-02 21:49:13 +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
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
Teng-Hui Zhu
82907dfd36 Remove redundant code
am: 4ebc5986a8

Change-Id: I16ea5561f915a45407a2a9219604359781267cc3
2016-09-02 16:46:25 +00:00
Tenghui Zhu
50da38c198 Merge "Remove redundant code" into nyc-mr1-dev 2016-09-02 16:41:01 +00:00
Yohei Yukawa
1a000651d5 Fix typos in JavaDoc for InputConnection
am: 1ab959a6e0

Change-Id: I8e945ed58761262ebe3b7521de1c4b701ab6e195
2016-09-02 00:21:37 +00:00
TreeHugger Robot
bdb81a0a7f Merge "Fix typos in JavaDoc for InputConnection" into nyc-mr1-dev 2016-09-02 00:16:04 +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
Wyatt Riley
afa17f0708 Canada AGNSS settings update am: ff374d4def
am: c742d95455

Change-Id: Ieff9e4d4e85ab2af51ffc24d658c3f2df90bd5bb
2016-09-01 21:21:51 +00:00
Wyatt Riley
c742d95455 Canada AGNSS settings update
am: ff374d4def

Change-Id: Ieafa6e4ebcf326038c97d1e9d0dc1acff43531ab
2016-09-01 21:16:23 +00:00
Wyatt Riley
ff374d4def Canada AGNSS settings update
Esp. LPP.  See also some overlay changes.

Change-Id: I0a694cf25df12c51e7d01ec4d8f2ab419786de00
2016-09-01 13:24:06 -07:00
TreeHugger Robot
57bd22ffc1 Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev 2016-09-01 18:33:01 +00:00
TreeHugger Robot
2d5bbf7d92 Merge "Update normal dark button colour to match UX specs." into cw-f-dev 2016-09-01 17:18:29 +00:00
TreeHugger Robot
77f30cd209 Merge "Import translations. DO NOT MERGE" into cw-f-dev 2016-09-01 06:46:48 +00:00
Bill Yi
d341e0f050 Import translations. DO NOT MERGE
Change-Id: Ib1dd6f18dc1f5bb0869d57f00c8c5be905f6bcb6
Auto-generated-cl: translation import
2016-08-31 18:57:26 -07: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
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
Teng-Hui Zhu
4ebc5986a8 Remove redundant code
This can save both system image size and run time memory usage.
Every byte counts. :)

b/30956516

Change-Id: I1af0455fe488e3122f6cf8e8fca5a5a43a4614f2
2016-08-31 14:30:37 -07:00
Bill Yi
4f0e401700 Import translations. DO NOT MERGE
Change-Id: I742161abb3e5b0b72caf5f74f0218bd7cd2deceb
Auto-generated-cl: translation import
2016-08-31 13:23:07 -07:00
Wyatt Riley
60eeaab4ef AGNSS LPP settings for Telus & Bell am: 5dadc4dbb4
am: 3af39b4f2d

Change-Id: I36c0ddffb4a62206b9a779e0d92d2e4026f7d452
2016-08-31 20:09:27 +00:00
Wyatt Riley
3af39b4f2d AGNSS LPP settings for Telus & Bell
am: 5dadc4dbb4

Change-Id: I35db85ad57be1c0cec34e833a2c67ccb34c3df60
2016-08-31 20:01:33 +00:00
Wyatt Riley
3554ce0e18 Merge "AGNSS LPP settings for Telus & Bell" into nyc-dr1-dev 2016-08-31 19:56:56 +00:00
Robert Carr
a732ea6c1f PopupWindow: Gravity fixes.
am: 085160612d

Change-Id: Ia9477ead7cf1cdd942817f2f427053c6187a1cdf
2016-08-31 19:26:55 +00:00
Rob Carr
8330a91def Merge "PopupWindow: Gravity fixes." into nyc-mr1-dev 2016-08-31 19:21:52 +00:00
Wyatt Riley
fd26dc5bf1 Custom LPP AGPS config for Rogers am: 2ebd1f6b75
am: efdb5072ab

Change-Id: I82829c2374b0f424b8b8f5e335f61aa111f7591f
2016-08-31 19:04:33 +00:00
Wyatt Riley
efdb5072ab Custom LPP AGPS config for Rogers
am: 2ebd1f6b75

Change-Id: I75b8742817794ee30e65388549d6c05270acdc5b
2016-08-31 18:58:28 +00:00
Wyatt Riley
e13df588a4 Merge "Custom LPP AGPS config for Rogers" into nyc-dr1-dev 2016-08-31 18:52:42 +00:00
Wyatt Riley
5dadc4dbb4 AGNSS LPP settings for Telus & Bell
Similar to Rogers settings
Mcc/Mnc values selected from mcclist.com, intersected with
existing config.xml files

Bug: 31187109
Bug: 31186773
Change-Id: Iba3ebc873828b6f59765674817bc86f6337e618c
2016-08-31 11:46:13 -07:00