Commit Graph

309172 Commits

Author SHA1 Message Date
Brad Ebinger
94baea5aeb Turn off Dynamic IMS switching for now
The new ImsService implementations must be in place before
ImsResolver/ImsManager can use the new Dynamic ImsService switching
system.

Test: Manual
Change-Id: Ie6454aec08a3f1ebd92271f1c0554c16dc57a868
2017-02-01 00:16:42 +00:00
Selim Cinek
23301afb8e Fixed an issue where heads-upped notifications would stay
If a heads up notification was briefly removed right after
it was added it could linger around in systemUI until
the panel collapsed.
We need to make sure not to apply this improvement if
reordering isn't allowed, otherwise it will never time out

Test: existing tests pass
Bug: 34608075
Merged-In: I7768f6111ada30edcb997a42940e5e336efe1cf2
Change-Id: I7768f6111ada30edcb997a42940e5e336efe1cf2
2017-02-01 00:15:58 +00:00
TreeHugger Robot
a9285db088 Merge "run webview preparation in separate thread" 2017-02-01 00:11:14 +00:00
Bryce Lee
f0a6fdbf53 Allow opening activity to specify orientation.
An activity's window is initially not visible. This means it is not
accounted for until it becomes visible, which means requested
orientations will not be honored until after onCreate.

This changelist removes the visibility check previously used determining
the orientation.

This changelist also addresses an issue where an ActivityRecord member
variable tracking the last configuration sent was not being initially
updated.

Fixes: 33844887
Fixes: 33814250
Fixes: 34165818
Fixes: 34177026
Fixes: 33809086
Fixes: 34111451

Test: Verified reported issues fixed in apps mentioned in bugs
Test: Added additional unit tests to exercise override getOrientation.

Change-Id: I26b7e808b6f3d857543e3a187b6c318e88afa063
Signed-off-by: Bryce Lee <brycelee@google.com>
2017-01-31 16:07:29 -08:00
TreeHugger Robot
db88bfaa31 Merge "Ignore auto-fill requests from system." 2017-01-31 23:51:26 +00:00
TreeHugger Robot
f9a880ae08 Merge "Fix PiP animation errors introduced in crop refactoring." 2017-01-31 23:50:54 +00:00
Geoffrey Pitsch
a917353da0 Initialize bootanimation sound on separate thread
Blocks when it's time to play the first sound.
Bug: 30189706
Test: on marlin
Change-Id: Ib3666fbfb5f109c633ed59edad4a283b8ada8ae2
2017-01-31 15:49:06 -08:00
Manu Cornet
485cb77737 Merge "2D Recents: Keep nav bar hidden from transition thumbnail" into nyc-mr2-dev am: 57071e8025
am: ccef634c7d

Change-Id: I425dea22c2c1351c6b091769f4bb3fdc8d3596b2
2017-01-31 23:44:06 +00:00
Manu Cornet
c17bed12d6 2D Recents: Keep nav bar hidden from transition thumbnail am: b68b765cbf
am: c1a87f88ae

Change-Id: I4a178bd9ab7b6c0af60131baf8e3d3dd79a820d0
2017-01-31 23:42:37 +00:00
Android Build Merger (Role)
c2d612b809 Merge "Merge "2D recents: fix layout to show 3 tasks on a single line" into nyc-mr2-dev am: abfe26bad7 am: 52c28bade8" 2017-01-31 23:40:15 +00:00
Jean-Michel Trivi
99489ccf74 Notification playback synchronized with audio focus
PlayerProxy: more control options (pan, delayed start),
  remove exceptions in method signatures.
Use delayed start on notification playback for better sync
  between media apps and notifications
Disabled for now: support for AudioService (through
  MediaFocusControl and PlaybackActivityMonitor) to enforce
  audio ducking of focus owners losing audio focus with
  AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK, and who don't
  play audio that has a content labelled as CONTENT_TYPE_SPEECH.
  This feature will be enabled when setting a VolumeShaper
  on a player works.

Test: play music and play notification
Bug 30258418

Change-Id: I4e4d911645306bbde17f74288f3b61781fe0e3fe
2017-01-31 15:40:09 -08:00
Manu Cornet
aa54be2866 Merge "2D recents: fix layout to show 3 tasks on a single line" into nyc-mr2-dev am: abfe26bad7
am: 52c28bade8

Change-Id: I5d8e90b7060ea1182b41522bf9106efbde805614
2017-01-31 23:39:26 +00:00
Shuzhen Wang
f02913c4ea Camera: Fix the document on createCaptureSession error
When createCaptureSessionByOutputConfigurations fails, it doesn't throw
an exception. Instead, onConfigureFailed will be called.

Test: Compiles
Bug: 33777818
Change-Id: Ia0e139265bee0eda2118f903a6b46358a14c672c
2017-01-31 15:39:17 -08:00
Android Build Merger (Role)
70ec5c416d Merge "2D recents: fix layout to show 3 tasks on a single line am: 776f6bacd6 am: d378bc16ee" 2017-01-31 23:39:09 +00:00
Manu Cornet
3e0d6c9fc0 2D recents: fix layout to show 3 tasks on a single line am: 776f6bacd6
am: d378bc16ee

Change-Id: Ic79ece663a1b689ae226df861062f1ae623f8efd
2017-01-31 23:38:03 +00:00
Stephen Chen
9507388685 Merge "Remove Wi-Fi lock icons from AccessPointPreference." 2017-01-31 23:37:26 +00:00
Manu Cornet
ccef634c7d Merge "2D Recents: Keep nav bar hidden from transition thumbnail" into nyc-mr2-dev
am: 57071e8025

Change-Id: Iff6deb4ffd576de3f96de5c0762f8d692c16db8f
2017-01-31 23:36:52 +00:00
Manu Cornet
c1a87f88ae 2D Recents: Keep nav bar hidden from transition thumbnail
am: b68b765cbf

Change-Id: I4a64e5ef354f16ba1bef1196f1a44bbffbc3c880
2017-01-31 23:36:44 +00:00
TreeHugger Robot
5703a0e429 Merge "LoadedArsc: Support feature splits." 2017-01-31 23:35:42 +00:00
TreeHugger Robot
f0ccd9bd01 Merge "More incorrect screenshot JNI code." 2017-01-31 23:34:56 +00:00
Manu Cornet
52c28bade8 Merge "2D recents: fix layout to show 3 tasks on a single line" into nyc-mr2-dev
am: abfe26bad7

Change-Id: Id8714f350e775b177bffcfe8ded80a5509b213fe
2017-01-31 23:31:19 +00:00
Manu Cornet
d378bc16ee 2D recents: fix layout to show 3 tasks on a single line
am: 776f6bacd6

Change-Id: I73cda7b837f91b78714db90c06617302201389fd
2017-01-31 23:31:14 +00:00
Stephen Chen
ed8f5297a3 Remove Wi-Fi lock icons from AccessPointPreference.
We now have friction icons to show secured state.

Bug: 34775402
Test: manual inspection.
Change-Id: I644aadf8175e5b7b4daab6a3d6feacbe95fcdfda
2017-01-31 15:31:13 -08:00
Andreas Huber
de17a63da6 Merge "Revert "Remove getAppsUsingPermisisons"" 2017-01-31 23:30:16 +00:00
Manu Cornet
57071e8025 Merge "2D Recents: Keep nav bar hidden from transition thumbnail" into nyc-mr2-dev 2017-01-31 23:27:06 +00:00
Manu Cornet
abfe26bad7 Merge "2D recents: fix layout to show 3 tasks on a single line" into nyc-mr2-dev 2017-01-31 23:25:01 +00:00
TreeHugger Robot
5594ab958a Merge "Propagate surface type and owner through to SurfaceFlinger." 2017-01-31 23:22:12 +00:00
TreeHugger Robot
c93be882cb Merge "Refactor AutoFill server code." 2017-01-31 23:18:15 +00:00
Ido Ofir
081d576c77 Merge "Adding missing filters to suggested actions in Settings that that they match the Optional Steps fliters in setup wizard. Also added some more logging." 2017-01-31 23:17:29 +00:00
vinodkrishnan
a69c99fbc7 Revert "Remove getAppsUsingPermisisons"
This reverts commit dfcf4fc29a.

Change-Id: Id08db7999158c76dc39f0908722ea8f5a6b21257
2017-01-31 23:00:45 +00:00
Adam Powell
adfd62c484 Fragment grab bag!
* Fragment#isStateSaved: report whether a given fragment has been
  through state save within its given FragmentManager. This will
  additionally echo the state of its child FragmentManager, indicating
  whether it is safe to perform transactions without losing state.

* Fragment#setArguments can now be called at any time before a
  fragment's state is saved, not just before an internal index is
  assigned. This fixes an issue with assigning arguments during
  fragment inflation in some code paths.

* FragmentTransaction#postOnCommit: Add a Runnable to a
  FragmentTransaction that will be executed once the operations in the
  transaction have been fully executed. Transaction optimization may
  mean that other transaction ops could run before this is executed,
  or that specific operations from this transaction were optimized
  out. (e.g. a fragment in this transaction was added, but then
  removed in a subsequent transaction before pending operations were
  executed.) This may not be used for transactions added to the back
  stack, as we cannot persist the runnable for later to guarantee
  running it when the transaction is reversed.

Test: CTS
Change-Id: I4eb90588135e30f287c6487aa62ebda231f3dad3
2017-01-31 14:58:17 -08:00
TreeHugger Robot
2591ce4d9f Merge "fix array index out of bounds" 2017-01-31 22:55:02 +00:00
Selim Cinek
bd5bf5eaa4 Fixed an issue where heads-upped notifications would stay
If a heads up notification was briefly removed right after
it was added it could linger around in systemUI until
the panel collapsed.
We need to make sure not to apply this improvement if
reordering isn't allowed, otherwise it will never time out

Test: existing tests pass
Bug: 34608075
Change-Id: I7768f6111ada30edcb997a42940e5e336efe1cf2
2017-01-31 14:49:02 -08:00
Jeremy Joslin
711efaccd2 Print the package name and creator UID in dump().
Add a little more info to help differentiate the registered score
caches during a dump.

Test: adb shell dumpsys network_score
Change-Id: I59cb877b3237aaa85cb564795fb8a41c3d95e315
2017-01-31 14:48:01 -08:00
vinodkrishnan
9cfde54af0 Merge "Remove getAppsUsingPermisisons" 2017-01-31 22:30:56 +00:00
Phil Weaver
27fcd9c97a Accessibility can capture fingerprint gestures
Bug: 27148522
Test: Unit tests for two new classes in this CL, CTS in
linked CL.
Change-Id: Icb5113e00b1f8724814263b3cc7f72fe4a6f0b41
2017-01-31 14:27:09 -08:00
Keun-young Park
d80e894b3b run webview preparation in separate thread
- There is no other dependency for webview from system server.
  Prepare it in separate thread and confirm completion
  before allowing 3rd party apps.

bug: 33840151
Test: manual, reboot
Change-Id: I417b0451c37f663c577295ab07f33474e72fe457
2017-01-31 14:25:50 -08:00
Felipe Leme
4eff26b423 Ignore auto-fill requests from system.
Change-Id: I3c318aeb96c1ba7a751feba2a0d9042015eaaffb
Fixes: 34819567
Bug: 34171325
Test: could not reproduce
2017-01-31 14:11:21 -08:00
TreeHugger Robot
65626b663a Merge "Add UiBench jank and macrobench tests for saveLayer performance" 2017-01-31 22:05:22 +00:00
TreeHugger Robot
7b552516ae Merge "Implicitly cast views obtained via View.findView methods" 2017-01-31 22:04:25 +00:00
Robert Carr
8e7be8e808 Fix PiP animation errors introduced in crop refactoring.
Firstly, pinned stack now uses final crop only, so we need to scale
to the width/height computed there, not as computed for the crop.
Furthermore mTmpClipRect is no longer used directly to set the crop,
so clearing it in the pinned animation code had no effect. This fixes
the worst of the visual errors so people stop filing bugs while I
rework this logic entirely.

Bug: 34823229
Bug: 32881014
Bug: 33245930
Test: Manual with PiP activities on Fugu.
Change-Id: I45d2def5138f3cc278408a9209b5e5c40cece80b
2017-01-31 13:51:35 -08:00
Julia Reynolds
033a4120a8 Remove unneeded callbacks to systemui.
Test: runtest systemui-notification
Change-Id: I80155df446be0153bbda4c28b06d3a578339237d
2017-01-31 16:50:38 -05:00
Chris Tate
b6cae3ceef Merge "Make sure MASTER_CLEAR_NOTIFICATION goes to manifest receivers" 2017-01-31 21:31:43 +00:00
Peter Qiu
ddafc73496 hotspot2: implement hashCode() for classes with equals() function
According to API guideline, classes that override equals()
function should override hashCode() as well.  Make it so.

Bug: 34198926
Test: frameworks/base/wifi/tests/runtests.sh
Change-Id: I4c3afed78a2fc06cdc26dd04d076f579b3472139
2017-01-31 13:26:36 -08:00
Peter Qiu
aef5b6095f hotspot2: update PasspointConfiguration APIs
Based on the API guideline, use of public variables are discouraged.
So update PasspointConfiguration and its associated classes to use
private variables with public accessor methods.

While there, cleanup unit tests to reduce code duplications.

Bug: 34627062
Test: frameworks/base/wifi/tests/runtests.sh
Change-Id: I6ea45bbcf03aec01c187425a66094fad6098d75d
2017-01-31 13:26:36 -08:00
Makoto Onuki
2317451acc DO NOT MERGE Do not call RecoverySystem with DPMS lock held
Note DPM.wipeData() on a secondary user is now blocking, just like
it's been always blocking on the primary user.

Test: Manually tested wipeData() with ApiDemos, both on 1) the primary user,
2) a secondary user and 3) work profile.

Test: adb shell am instrument -e class com.android.server.devicepolicy.DevicePolicyManagerTest -w com.android.frameworks.servicestests

Bug 30681079

Change-Id: Ia832bed0f22396998d6307ab46e262dae9463838
Merged-in: Ia832bed0f22396998d6307ab46e262dae9463838
(cherry picked from commit efdec8f568)
2017-01-31 21:21:36 +00:00
Android Build Merger (Role)
81860bdc55 Merge "Merge "Correct the formula of battery capacity estimation. am: c800ddc824 am: d4d476943f" into nyc-mr2-dev-plus-aosp am: c820fe9b16" 2017-01-31 21:04:35 +00:00
Android Build Merger (Role)
28e3bfebd8 Merge "Correct the formula of battery capacity estimation. am: c800ddc824 am: d4d476943f am: ab03a2f033" 2017-01-31 21:04:14 +00:00
Ying Wai (Daniel) Fan
dbd3d4e5df Merge "Correct the formula of battery capacity estimation. am: c800ddc824 am: d4d476943f" into nyc-mr2-dev-plus-aosp
am: c820fe9b16

Change-Id: I67798476c055da8f7ace2f0cc55071b66b4e9273
2017-01-31 21:03:04 +00:00
Ying Wai (Daniel) Fan
6234cc1144 Correct the formula of battery capacity estimation. am: c800ddc824 am: d4d476943f
am: ab03a2f033

Change-Id: I3ffab388aaa1e06954a0e0ede2dce95c5454e55c
2017-01-31 21:02:57 +00:00