Commit Graph

313682 Commits

Author SHA1 Message Date
Etan Cohen
c367ee166b Merge "[AWARE] Implement custom Wi-Fi Aware network specifier" into oc-dev 2017-04-18 20:04:22 +00:00
TreeHugger Robot
11fbd2148f Merge "Decrease number of network logging notifications shown" into oc-dev 2017-04-18 19:50:40 +00:00
Wale Ogunwale
6535ef67b7 Merge "Fixed some pip state acitvity accounting." into oc-dev 2017-04-18 19:40:47 +00:00
Julia Reynolds
7e4e923a8c Merge "Lock all the things" into oc-dev 2017-04-18 19:13:09 +00:00
Hassan Shojania
62a5d29f2d Merge "MediaPlayer/ModularDrm API review" into oc-dev 2017-04-18 18:41:29 +00: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
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
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
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 a5028455a4)

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 55dba53ed4)
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
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
TreeHugger Robot
cf7cb9c993 Merge "Renamed ViewNode's getAutoFillHints() to getAutofillHints()" into oc-dev 2017-04-18 04:02:03 +00: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
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
TreeHugger Robot
00168492a8 Merge "only log calling package for instant apps" into oc-dev 2017-04-17 23:57:38 +00:00
TreeHugger Robot
3244faae29 Merge "Cleanup that wasn't uploaded with ag/2094132" into oc-dev 2017-04-17 23:53:54 +00:00
TreeHugger Robot
c2627353c4 Merge "Tightening up rotation behavior for PIP (3/3)" into oc-dev 2017-04-17 23:50:27 +00:00
TreeHugger Robot
d7852f4363 Merge "AppErrors: Add test for AppErrorDialog.onCreate" into oc-dev 2017-04-17 23:41:38 +00:00
Jean-Michel Trivi
170a0ee064 AudioService: fix updating of stream alias for A11y
VolumeStreamState.setAllIndexes():
  - don't do anything if the target and source VSS have the same
    stream type,
  - javadoc of (old+new) behavior.
When STREAM_ACCESSIBILITY becomes independent of any other stream,
  read the settings to restore the volumes previously set.

Test: see bug
Bug: 36286803
Change-Id: I2afcff3a93cc81f3958af252986ef1ac9c38899e
2017-04-17 16:31:35 -07:00
TreeHugger Robot
4fba6e62a1 Merge "TIF: Add preview parameter to filter only preview or non-preview channels." into oc-dev 2017-04-17 23:25:26 +00:00
Yohei Yukawa
d6475a682d A new power button mode to hide the IME when shown
As discussed in Bug 33038203 on certain platforms there is a demand
that the power button can change the behavior depending on whether an
IME window is shown on the screen or not.  The behavior requested here
can be summarized into two parts:

  * Hide the IME window if it is shown [1]
  * Go to the home screen if no IME window is shown

This CL implements the above request by introducing a new config mode
for config_shortPressOnPowerBehavior.  Note the definition of when an
IME is shown is often tricky than people would expect.  The way this
CL is implemented is to propagate IME window state from
InputMethodManagerService (IMMS) to PhoneWindowManager via
WindowManagerService regarding when the back button on the NavBar for
phones/tablets should be shown as an IME dismiss key [2].

 [1]: Even with this CL the IME still is allowed to ignore the request
      to hide the software keyboard. Currently there is no official
      protocol to forcefully hide the software keyboard.  How to deal
      with such a situation is a long standing TODO task.
 [2]: Internally this is controlled by the following IMMS fields:
       - InputMethodManagerService#mImeWindowVis
       - InputMethodManagerService#mBackDisposition
      Note that those fields rely on self-report from the IME.  To be
      precise, the base implementation of InputMethodService is
      responsible for report back its internal state to IMMS when
      necessary.  The important point is that, although this could
      allow a malicious IME to confuse the system UI to some extent,
      supporting malicious IMEs is not clearly a goal of Android.
      Anyway, the definition of when an IME is shown is a kind of
      hot topic in several system services recently.  Hopefully we
      can come up with better definition and reliable mechanism in
      a future release.

Fixes: 33824860
Test: Manually verified as follows
       1. Change config_shortPressOnPowerBehavior to "5"
       2. Rebuilt the OS image and flash it to the device
       3. Make sure that the power button works like a home button
          if software keyboard is not shown.
       4. Open dialer and focus in to the text field shown on top
       5. Make sure that the AOSP keyboard is shown.
       6. Run 'adb shell dumpsys input_method' to observe the
          following line:
            mImeWindowVis=Active|Visible
       7. Tap the power button to make sure that the AOSP keyboard
          gets dismissed.
       8. Tap the power button again to make sure that it works
          as if a home button.
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: I20721547c73360a70b5fc5cbe06824d577d1768a
2017-04-17 23:22:56 +00:00
Andreas Gampe
37f190b346 OtaDexopt: Add version support
Add version number to dexopt command. Current version is "2."

37256688
Test: m
Test: Manual OTA O (v2) -> O (v2)
Change-Id: I9fff673f3ba99833e88cf1c5c9625f42436ec150
2017-04-17 16:22:40 -07:00
Wale Ogunwale
6455e500b8 Defer showing pip menu activity until pip animation ends
This was causes additional churn in the system delaying the visibility
of the activity behind the one we are pipping. We now delay starting the
pip menu activity until the enter pip animation is done.
This doesn't fix the real issue where we don't wait for app transition
to be finished before starting pip, but it does make it much harder to
the user to trigger the case. Will do that in a follow-up CL.

Test: manual
Bug: 37420370
Change-Id: Ic0271d693d45c3e414b3abdf0ad24be44ff5ae5c
2017-04-17 16:19:45 -07:00