313907 Commits

Author SHA1 Message Date
Julia Reynolds
e2503dd3f8 Silence non-clickable imagebutton
Change-Id: I1d00d86e1dd1ca2ebaa20cdee74f9f93a7581d9a
Fixes: 34710523
Test: turn on talkback and try to select button
2017-04-18 14:12:16 -04:00
Julia Reynolds
feb7341b2f Lock all the things
Fix some instances of .*Locked() methods being called without
holding mNotificationLock.

Also, if this happens again, don't crash system server

Change-Id: I0a51310a6f6c8b07266092176e189e7cd08778cc
Fixes: 37444864
Test: runtest systemui-notification
2017-04-18 14:12:16 -04:00
Julia Reynolds
bb1d7d219c Remove log spam
Intercepted entries are in zen log already.

Change-Id: I16d81113b4a8a116c1f64f00913763f6c2cf3cd4
Fixes: 37446463
Test: take a bug report
2017-04-18 14:12:16 -04:00
Bryce Lee
04ab3466fa Allow at most one pinned stack task.
This changelist enforces only one task may be present in the pinned
stack at a time. If a task is already persent, the existing task is
moved to the fullscreen stack.

Fixes: 36844394
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerPinnedStackTests#testPipMovedToFullscreenStack
Test: bit FrameworksServicesTests:com.android.server.am.ActivityStackSupervisorTests#testDisallowMultipleTasksInPinnedStack

Change-Id: Iaf0fbda6df835d93738fdf6f7f3a8c5956c2b262
2017-04-18 10:48:27 -07:00
Wale Ogunwale
b9a0c991af Fixed some pip state acitvity accounting.
- Corrected ActivityRecord.checkEnterPictureInPictureState() to return
false if the activity doesn't support Pip.
- Wait for previous activity that supports pip to pause before resuming
the next activity with FLAG_RESUME_WHILE_PAUSING so that the activity
has a chance to enter Pip before we resume the next activity. Currently
disabled until we figure-out if callers are passing in the right value
for prev.
- Changed stopActivityLocked() to call setVisible() instead of
setVisibility()...yeah this isn't confusing...

Change-Id: If2336ece4fe5b7104c9b301a4ded5cadc2c2f7cb
Bug: 37370508
Test: manual
2017-04-18 17:42:11 +00:00
Geoffrey Pitsch
4b0d2bf70a Merge "Don't let toasting throw a runtime exception." into oc-dev 2017-04-18 17:41:53 +00:00
Geoffrey Pitsch
1d063a1b77 Don't let toasting throw a runtime exception.
Not sure why is complaining about the Looper.
(The toast is debug code that will be removed for ship.)

Change-Id: I5e2ecbe40687cd626b235e248fe6d12fea14204a
Fixes: 37455183
Test: runtest systemui-notification
2017-04-18 17:37:49 +00:00
Philip P. Moltmann
9023d14fb3 Change saveOnAllViewsInsible from boolean to flags
Change-Id: Ibd6f283479bad841eb7b20bb8d006562c4398e9f
Fixes: 35708237
Test: CtsAutoFillServiceTestCases
2017-04-18 10:24:48 -07:00
Narayan Kamath
ccc9fad9e6 Binder: Log details of pending exception.
This was accidentally removed by change d64abfcf93b59500a0d.

Test: manual; verify exception trace is printed in logs.
Bug: 36813403
Bug: 37435516
Change-Id: I73ae8de167c457d56fddb85943a8f08f8913f0f7
2017-04-18 18:17:27 +01:00
Lucas Dupin
0c207340b9 Fix for SurfaceView out of a view hierarchy
At most of the time, developers rely on GLSurfaceView to manage
the OpenGL lifecycle. This means that a SurfaceView might not
always have a ViewRootImpl.

Test: select timelapse wallpaper and set it.
Bug: 37363390
Change-Id: I3cdb1ec2a6e91cfad65fd823a7436f0010c0859c
2017-04-18 10:01:34 -07:00
Yohei Yukawa
abbe1ac0c5 Avoid acquiring a lock on the InputReader thread
This is	a follow up CL to my previous CL [1], which might have
introduced a possible performance bottleneck because of holding a lock
on the InputReader thread.

With this CL addresses that concern by changing
PhoneWindowManager#mDismissImeOnBackKeyPressed to volatile that is long
used inside PhoneWindowManager.

 [1]: I20721547c73360a70b5fc5cbe06824d577d1768a
      d6475a682d9651a651f60856baef9b17b4633b13

Bug: 33824860
Test: Manually tested as follows
       1. Open dialer and focus in to the text field to show an IME
       2. Run 'adb shell dumpsys window policy' to make sure
            mDismissImeOnBackKeyPressed=true
       3. Tap the back button to dismiss the IME
       4. Run 'adb shell dumpsys window policy' to make sure
            mDismissImeOnBackKeyPressed=false
Change-Id: I0d0d06b0b848798c0f488b138812d932432b1d4d
2017-04-18 09:43:05 -07:00
Derek Sollenberger
190fe086df Merge "Remove round rect clipping optimization." into oc-dev 2017-04-18 16:06:41 +00:00
Makoto Onuki
2b499e4eba Merge "Log screen-on latency with tron" into oc-dev 2017-04-18 15:56:31 +00:00
Jean-Michel Trivi
031cf14582 Merge "Vol key presses: active stream has priority of set control stream" into oc-dev 2017-04-18 15:54:12 +00:00
Andrei Stingaceanu
2ed861d560 Merge "AutoSize TextView - take horizontalScrolling into account" into oc-dev 2017-04-18 14:20:33 +00:00
Abodunrinwa Toki
65b25278ee Move TextClassificationManagerTest to coretests
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Bug: 37296604
Change-Id: I8f53032dd63db18d98c6e26ee5689a5dafb3d98b
2017-04-18 15:13:46 +01:00
Bryce Lee
25b7687771 Merge "Deprecate ActivityManager#getRunningServices" into oc-dev 2017-04-18 14:10:57 +00:00
Etan Cohen
6850728818 [AWARE] Implement custom Wi-Fi Aware network specifier
Convert Wi-Fi Aware connectivity requests to use a custom
network specifier (as opposed to a string). Aside from
simplifying code, allows for more control of information
printed out, and of additional information to be packaged
and used in network decisions (uid - TBD).

(cherry-pick of commit a5028455a4b7592091f12c80d4b4d42c9c866d66)

Bug: 36275276
Bug: 36053921
Test: unit tests and integration (sl4a) tests passing.
Merged-In: I776fb348b15ec4830f890a8ac5c41f24594e12a7
Change-Id: I776fb348b15ec4830f890a8ac5c41f24594e12a7
2017-04-18 22:57:52 +09:00
phweiss
ebb9fc309d Decrease number of network logging notifications shown
Now, network logging will show one notification when it is enabled
and one after the next reboot.

Bug: 36254499
Test: CTS Verifier > Managed Provisioning > Device Owner Tests
      > Network Logging UI

Change-Id: I60fc64e96ceb0ec0ae7ca832b74ac8b47e581be4
(cherry picked from commit 55dba53ed433d713a075ba0de15504a1ed42852b)
2017-04-18 13:16:54 +00:00
Abodunrinwa Toki
6d149bc953 Merge "FloatingToolbar: Rules for ordering menu items." into oc-dev 2017-04-18 12:58:33 +00:00
phweiss
4f70f105d5 Redesign of QSSecurityFooter
QSSecurityFooter is redesigned to display the new strings related to
Device Management, Network Logging, VPNs and CA Certificates. The dialog
will be changed in a separate CL.

As part of this CL, the network logging icon and the WiFi-Assist branding
is removed.

Details of the design can be found in the bug.

Bug: 34369166
Test: in class QSSecurityFooterTest, which is part of "runtest systemui"

(cherry-picked from 774c6542cd429e33a8dcecd9c775d61f3675cdaf)

Change-Id: I71cd57ff607fe00d3ee0aba2312143f728655c76
2017-04-18 12:02:40 +00:00
TreeHugger Robot
2d9a145115 Merge "Flatten the transitions to tethering and hotspot." into oc-dev 2017-04-18 11:40:27 +00:00
Orion Hodson
6c16732376 Merge "Unhide MethodHandles.explicitCastArguments()" into oc-dev 2017-04-18 10:40:08 +00:00
Andrei Stingaceanu
f730651a22 AutoSize TextView - take horizontalScrolling into account
When passing the characteristics of the current TextView
to the StaticLayout for auto-size measurements also take
the horizontallyScrolling into account similarly with how
the actual measurements are done (@ TextView#onMeasure).

Bug: 37254477
Test: cts-tradefed run cts-dev -m CtsWidgetTestCases -t\
      android.widget.cts.TextViewTest

Change-Id: I44b85e77d9b1770f188a0f59f103e3fda284e97a
2017-04-18 09:49:48 +00:00
Suprabh Shukla
54a10e6554 Package installer related changes to javadoc
Permission REQUEST_INSTALL_PACKAGES is enforced starting from API 26 and
the scope of EXTRA_ORIGINATING_UID is restricted.

Test: make docs

Bug: 33351244
Change-Id: Id7ce9623289374c1c34d3c7b2a0fc0e0493f9923
2017-04-17 23:13:12 -07:00
TreeHugger Robot
cf7cb9c993 Merge "Renamed ViewNode's getAutoFillHints() to getAutofillHints()" into oc-dev 2017-04-18 04:02:03 +00:00
Nathan Harold
10f051ca91 Hide Socket+DatagramSocket IpSecTransform methods
These methods do not currently work for IPv4 sockets,
so they need to be hidden until the underlying kernel
code can be made to work properly in a dual-stack
environment.

Bug: 36073210
Test: compilation
Merged-In: Idce367f638a42da374a7f1dc5ebb8931c9555e06
Change-Id: Idce367f638a42da374a7f1dc5ebb8931c9555e06
(cherry picked from commit da18b028f85e9a2c969c636aea6abf7f4bac3922)
2017-04-17 20:23:51 -07:00
Nathan Harold
05c7b5ad7c Consistenly Throw IOExceptions from IpSecManager
Bug: 36073210
Test: api-update
Change-Id: Ia3825e85b09b6330f1326a26cf9e1cadf9dacf71
Merged-In: Ia3825e85b09b6330f1326a26cf9e1cadf9dacf71
(cherry picked from commit c2fd6cfdc9dce33d57a3c2780e0527dd4b1bfeb9)
2017-04-17 20:23:34 -07:00
TreeHugger Robot
0c1b4769c7 Merge "OtaDexopt: Add version support" into oc-dev 2017-04-18 03:07:20 +00:00
TreeHugger Robot
0680962133 Merge "Update doc string for getForbiddenPlmns() to READ_PHONE_STATE" into oc-dev 2017-04-18 02:51:00 +00:00
Seigo Nonaka
83ba4f9a04 Add comment to Typeface.Builder about file descriptor.
Add comment to Typeface.Builder about the responsibility of closing
file descriptor.

Bug: 37082657
Test: N/A
Change-Id: Id33b15895d75ad6693f3ad6231f1ba0c2cec9f79
2017-04-17 19:33:00 -07:00
Felipe Leme
0ed99bc6df Fixed WTF that happens on race condition.
Test: it's a log change, and it compiles :-)
Change-Id: Ie6409b92a5b7ad21ade5aecc0b7e78602aa3f605
Fixes: 37216544
2017-04-17 19:17:20 -07:00
Jean-Michel Trivi
a7880d4bb7 Vol key presses: active stream has priority of set control stream
When deciding which volume stream is to be controlled by key
  presses, give priority to the stream that is actually playing,
  unless the user has selected a another volume to be controlled
  by the key presses.

Test: play some music over headset, pause, go to home screen.
  Press vol up, it changes ringer volume, immediately press play
  and press vol up again, it should now change music volume
  (and UI updates to indicate that).
Bug: 33355229

Change-Id: Ibad9b59a692e1c6375487b739c55fdbf07f107dd
2017-04-17 19:12:47 -07:00
Felipe Leme
b118021972 Renamed ViewNode's getAutoFillHints() to getAutofillHints()
Test: CtsAutoFillServiceTestCases pass
Bug: 35956626
Bug: 35364993
Change-Id: I2ad5a625da6ed4ff889315923c81cfd629e34074
2017-04-17 18:51:18 -07:00
TreeHugger Robot
00ed0baca8 Merge "Turn down the preliminary foreground service API" into oc-dev 2017-04-18 01:48:31 +00:00
TreeHugger Robot
d67925165f Merge "AudioService: fix updating of stream alias for A11y" into oc-dev 2017-04-18 01:42:16 +00:00
Casey Burkhardt
59887efcb9 Merge "Shows navbar in SUW if the a11y button is requested" into oc-dev 2017-04-18 01:41:53 +00:00
TreeHugger Robot
d2ec5a62c7 Merge "Defer showing pip menu activity until pip animation ends" into oc-dev 2017-04-18 01:39:05 +00:00
TreeHugger Robot
eef5d285f9 Merge "Account for content insets in source rect hint for transition into PiP" into oc-dev 2017-04-18 01:33:28 +00:00
TreeHugger Robot
cc824e77c8 Merge "DecorView: Avoid changing shadow size in Pinned Stack." into oc-dev 2017-04-18 01:29:07 +00:00
TreeHugger Robot
87180be1b3 Merge "If gnss service dies, then, upon receiving the death notification on system-server side: Proactively take down the whole system_server." into oc-dev 2017-04-18 01:24:12 +00:00
TreeHugger Robot
eb9fb8e0d0 Merge "A new power button mode to hide the IME when shown" into oc-dev 2017-04-18 01:13:04 +00:00
TreeHugger Robot
6e8f116647 Merge "Finish impl of job queue: handle URI permissions." into oc-dev 2017-04-18 01:07:18 +00:00
TreeHugger Robot
950fa06a29 Merge "More small fixes/adjustments to job scheduler." into oc-dev 2017-04-18 00:47:09 +00:00
Sungsoo Lim
ab16ea9094 Merge "Revert "MediaSession: Add methods for setting shuffle and repeat modes"" into oc-dev 2017-04-18 00:32:58 +00:00
TreeHugger Robot
89e8b7b58e Merge "AOD: Implement redacted notificatinos" into oc-dev 2017-04-18 00:31:59 +00:00
Sungsoo Lim
a44d7cd25b Merge "Revert "MediaSession: Add methods for queue managements"" into oc-dev 2017-04-18 00:31:35 +00:00
Sungsoo Lim
51d91bff17 Merge "MediaBrowser: Revert Search API" into oc-dev 2017-04-18 00:26:26 +00:00
TreeHugger Robot
96da371a6d Merge "AOD: Do not show guts nor snooze" into oc-dev 2017-04-18 00:08:05 +00:00
TreeHugger Robot
4bcc9bf0f2 Merge "Fix issue #36858643: Runtime restart on OPR1.170323.002" into oc-dev 2017-04-18 00:04:50 +00:00