Commit Graph

315082 Commits

Author SHA1 Message Date
Yohei Yukawa
e075fe1035 Merge "A new power button mode to hide the IME when shown" into oc-dev
am: eb9fb8e0d0

Change-Id: I67cf177275889be09b2b4ecf2f9ae3589846d853
2017-04-18 01:23:30 +00:00
Dianne Hackborn
cc4763071d Merge "Finish impl of job queue: handle URI permissions." into oc-dev
am: 6e8f116647

Change-Id: I9d053f2e96712646fe2935ddc2c3729690a06be1
2017-04-18 01:19:50 +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
Dianne Hackborn
46c91418e9 Merge "More small fixes/adjustments to job scheduler." into oc-dev
am: 950fa06a29

Change-Id: I3a59cfcb955b33276f514c2d3086501a413733a7
2017-04-18 00:58:27 +00:00
Sungsoo Lim
0432fd9aa5 Merge "Revert "MediaSession: Add methods for setting shuffle and repeat modes"" into oc-dev
am: ab16ea9094

Change-Id: I84277311c9215c23ecb02ccef90a54e89d921cb4
2017-04-18 00:53:14 +00:00
Adrian Roos
0ded7c8578 Merge "AOD: Implement redacted notificatinos" into oc-dev
am: 89e8b7b58e

Change-Id: I92526d3c656647fa42c0a6266d4d33f035e54c9f
2017-04-18 00:50:02 +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
a8647cb547 Merge "Revert "MediaSession: Add methods for queue managements"" into oc-dev
am: a44d7cd25b

Change-Id: I0831739bd0eb7317ea69adc7569d86e11a1f9fb3
2017-04-18 00:46:57 +00:00
Sungsoo Lim
09c3bdd1db Merge "MediaBrowser: Revert Search API" into oc-dev
am: 51d91bff17

Change-Id: I0ec694cdbf24bd6e9dbacb22b93b4b644c3f524d
2017-04-18 00:37:33 +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
Adrian Roos
a4f06716da Merge "AOD: Do not show guts nor snooze" into oc-dev
am: 96da371a6d

Change-Id: I9aea00c77f69134dedde0f77c277a0eed815a125
2017-04-18 00:17:26 +00:00
Dianne Hackborn
6aeb47b83d Merge "Fix issue #36858643: Runtime restart on OPR1.170323.002" into oc-dev
am: 4bcc9bf0f2

Change-Id: Ia81a46e967dc3a9cebe8bb82947ccd72ca9ef862
2017-04-18 00:15:46 +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
Todd Kennedy
cdd5253b1a Merge "only log calling package for instant apps" into oc-dev
am: 00168492a8

Change-Id: Ic7b875decf99989d7fb216a8df6878575027ac6d
2017-04-18 00:04:11 +00:00
Mike Tsao
b1167d30a5 Merge "Cleanup that wasn't uploaded with ag/2094132" into oc-dev
am: 3244faae29

Change-Id: Ia494631b64d9cd670ac0045e2e8e9e9a5fa52bcc
2017-04-18 00:03:01 +00:00
Winson Chung
302c49a559 Merge "Tightening up rotation behavior for PIP (3/3)" into oc-dev
am: c2627353c4

Change-Id: I867999bac435926e9f54fb33e489ea3f44d1dad0
2017-04-18 00:01:44 +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
Adrian Roos
56af059ac6 Merge "AppErrors: Add test for AppErrorDialog.onCreate" into oc-dev
am: d7852f4363

Change-Id: Ic2587aa8da9d671b21c7292cd286dea011fd2503
2017-04-17 23:49:08 +00:00
TreeHugger Robot
d7852f4363 Merge "AppErrors: Add test for AppErrorDialog.onCreate" into oc-dev 2017-04-17 23:41:38 +00:00
Yifan Hong
f06e0479fb Merge changes from topic 'vintf_check_compat_native' am: 6d033475b3 am: 4fccec4f81
am: ee93d9da20

Change-Id: Ic87e260af781cccd8af1c04cc95419c42484ca90
2017-04-17 23:34:32 +00:00
jiabin
02b100c62b Merge "TIF: Add preview parameter to filter only preview or non-preview channels." into oc-dev
am: 4fba6e62a1

Change-Id: I1734b0d1e3a4f02bc19120e68c161decdef24081
2017-04-17 23:30:01 +00: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
Julia Reynolds
47101fc1b0 Merge "Notification settings can contain dashboard settings" into oc-dev
am: 38323f50c7

Change-Id: Id08a627ea7baf128667ad861481bc6d9c712929f
2017-04-17 23:24:43 +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
TreeHugger Robot
38323f50c7 Merge "Notification settings can contain dashboard settings" into oc-dev 2017-04-17 23:16:37 +00:00
Chris Craik
9c66ae77a0 Merge "Disable crashing drop shadow tests" into oc-dev
am: 9d67b50308

Change-Id: I4092a41511abcc8652bd4e482ee8c81738c1e009
2017-04-17 23:16:22 +00:00
Geoffrey Pitsch
dcceca2341 Merge "Accessibility for Notification Inline Controls" into oc-dev
am: 8c3a371bf3

Change-Id: I301f09565598eb80cddf107094a7fb3cd8c0b81b
2017-04-17 23:15:01 +00:00
Dianne Hackborn
342e603710 Finish impl of job queue: handle URI permissions.
The job queue now handles URI permissions associated with
the Intent of each job.  Just (kind-of) like Service!

Also do the second pass of locking in job scheduler, getting
rid of all the async dispatching on a handler, and just executing
calls right in line with simple locking.  This probably fixes
a few other race issues, and allows us to make sure that we
always finish a job correctly when dequeuing the last work (we
will always atomically dequeue and finish, so no new work can
slip in between).

And fix a little debug output in IntentFilter.

Test: ran CtsJobSchedulerTestCases, added new test for URI perms.

Change-Id: I52f700ef0cd5be3ff70050f9c0f5fe3e8a5ccac1
2017-04-17 16:14:58 -07:00
TreeHugger Robot
9d67b50308 Merge "Disable crashing drop shadow tests" into oc-dev 2017-04-17 23:11:15 +00:00
TreeHugger Robot
8c3a371bf3 Merge "Accessibility for Notification Inline Controls" into oc-dev 2017-04-17 23:07:56 +00:00
Geoffrey Pitsch
8f6784bbaf Merge "Warning if app targeting O posts a notification with no channel" into oc-dev
am: dc2dd6ed9b

Change-Id: I079da56d40214d3c5807e7f2165ab0c97d4c397d
2017-04-17 23:05:32 +00:00
Geoffrey Pitsch
dc2dd6ed9b Merge "Warning if app targeting O posts a notification with no channel" into oc-dev 2017-04-17 22:59:07 +00:00
Jason Monk
5e511e588d Merge "Fix up color issues as a result of theme change" into oc-dev
am: 8604ac3af5

Change-Id: Id3ac0f5131c9680d38c9d4b83904a47626785bea
2017-04-17 22:50:33 +00:00
Jason Monk
5efe531874 Merge "Status bar updates" into oc-dev
am: c5e04dbfd4

Change-Id: I34324fbaddc90814bc4efdd2d723c4b7264d284a
2017-04-17 22:49:05 +00:00
Adrian Roos
1a1ecfcf5a AOD: Implement redacted notificatinos
Test: Turn on "show sensitive notifications on lockscreen", receive notification, observe AOD
Bug: 36610748
Change-Id: I981ef4cea7cefc76dcd55ebad9d05c758927dabb
2017-04-17 15:41:09 -07:00
Jeff Sharkey
aead06b971 Merge "Storage API polishing." into oc-dev
am: 200d72d933

Change-Id: I1ad134599ee095628dcc7fe1da28bda40a1863f4
2017-04-17 22:39:20 +00:00
Jason Monk
8604ac3af5 Merge "Fix up color issues as a result of theme change" into oc-dev 2017-04-17 22:32:55 +00:00
Jason Monk
c5e04dbfd4 Merge "Status bar updates" into oc-dev 2017-04-17 22:32:14 +00:00
Dianne Hackborn
fd8807accf More small fixes/adjustments to job scheduler.
- JobServiceEngine now takes a concrete Service instead of
generic Context in its constructor, since it really must be
associated with a real Service.

- Expand documentation of how dequeueWork() operates.

- Fix some job scheduler implementation to hopefully actually
match the docs: transfer remaining executing work to the new
job, and actually correctly transfer state from old and new
jobs if we are rescheduling due to a true return from onStopJob().

Test: bit CtsJobSchedulerTestCases:*
Change-Id: Ia66797049883eefb566264f930070afb69d469b1
2017-04-17 15:31:15 -07:00
Adrian Roos
5ed5068b07 Merge "AOD: Track missed AOD time ticks" into oc-dev
am: e7b581bca9

Change-Id: I72825244a16f4d88e8acd1e69e045859ef3a8acc
2017-04-17 22:27:47 +00:00
Jeff Sharkey
200d72d933 Merge "Storage API polishing." into oc-dev 2017-04-17 22:26:44 +00:00
Jason Monk
256a7f3926 Merge "Fix date going missing in QS" into oc-dev
am: ff9a2790b7

Change-Id: I88a31aad238ec5ca67b816cb6deb4e5f311536e1
2017-04-17 22:26:20 +00:00
TreeHugger Robot
e7b581bca9 Merge "AOD: Track missed AOD time ticks" into oc-dev 2017-04-17 22:16:21 +00:00