Commit Graph

69526 Commits

Author SHA1 Message Date
Felipe Leme
1f59e1b241 Merge "Renamed ViewNode's getAutoFillHints() to getAutofillHints()" into oc-dev
am: cf7cb9c993

Change-Id: I458c2a4e8c54c76732e024199f23705782a7a2f8
2017-04-18 04:08:53 +00:00
TreeHugger Robot
cf7cb9c993 Merge "Renamed ViewNode's getAutoFillHints() to getAutofillHints()" into oc-dev 2017-04-18 04:02:03 +00:00
Christopher Tate
663de998e7 Merge "Turn down the preliminary foreground service API" into oc-dev
am: 00ed0baca8

Change-Id: I50fba7a59e4f52500f4708e194864dc9dece8c71
2017-04-18 01:58:32 +00: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
Winson Chung
60c9403f10 Merge "Account for content insets in source rect hint for transition into PiP" into oc-dev
am: eef5d285f9

Change-Id: I12e3575937e92923db2bf0deea9c8d88cfb3e314
2017-04-18 01:40:59 +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
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
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
TreeHugger Robot
89e8b7b58e Merge "AOD: Implement redacted notificatinos" into oc-dev 2017-04-18 00:31:59 +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
c2627353c4 Merge "Tightening up rotation behavior for PIP (3/3)" into oc-dev 2017-04-17 23:50:27 +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
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
Winson Chung
8802eac3d8 Account for content insets in source rect hint for transition into PiP
- As a part of transitioning into PiP, we remove the content insets, and
  as a result, we also need to adjust the source hint rect for the change
  in insets as well.

Bug: 37418994
Test: Enter PiP from YT, ensure no jump at the end

Change-Id: I74219b05c91d3c8b8466dd8fff4d6dd692f08725
2017-04-17 16:11:28 -07: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
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
Jeff Sharkey
200d72d933 Merge "Storage API polishing." into oc-dev 2017-04-17 22:26:44 +00:00
Winson Chung
ef4dc81d50 Tightening up rotation behavior for PIP (3/3)
- Fixing up edge case when SysUI resizing conflicts with updating the
  display rotation bounds.  When an interaction causes both a display
  rotation and a resize from SystemUI, we should defer the resize animation
  until the rotation has been propagated to SystemUI, otherwise the bounds
  used will be incorrect.

Bug: 36879891
Test: android.server.cts.ActivityManagerPinnedStackTests
Change-Id: Ife1b7ab0c2f1f11f33cbc9614778ff49a28c79f6
2017-04-17 14:49:31 -07:00
Julia Reynolds
c04cb25cdb Merge "Add user to channel/group modification callbacks." into oc-dev
am: 1ed2771450

Change-Id: I3ff8b4f15fe7b3d22ef243e3f5379dd3d136a0f7
2017-04-17 21:40:09 +00:00
TreeHugger Robot
1ed2771450 Merge "Add user to channel/group modification callbacks." into oc-dev 2017-04-17 21:26:54 +00:00
Christopher Tate
242ba3e997 Turn down the preliminary foreground service API
The NotificationManager.startServiceInForeground() experiment is over,
and will not ship as API, so it's time to tidy up and get rid of it.

Bug 36130212
Test: manual

Change-Id: I834d1ce059aa464ff27f69f5e5d3625cc5e61d8a
2017-04-17 14:22:18 -07:00
Todd Lee
4dbe8216ac Merge "OEM single-build/multi-SKU via dynamic RRO support" into oc-dev
am: c025ea892e

Change-Id: Ifb690a1ac7d9ff2605c88bd4503e06311ef0dd1c
2017-04-17 21:12:59 +00:00
Makoto Onuki
deda224f14 Merge "Enhance PinItemRequest javadoc" into oc-dev
am: 5838563e93

Change-Id: Ie0233a300fe9dc046117602a891679e5f1b00a98
2017-04-17 21:03:32 +00:00
TreeHugger Robot
c025ea892e Merge "OEM single-build/multi-SKU via dynamic RRO support" into oc-dev 2017-04-17 21:02:48 +00:00
Philip P. Moltmann
88a9bd73bb Merge "Allow to finish session when all views are gone" into oc-dev
am: 3440e92009

Change-Id: I5adf95ccd456818f3858e7c2ee194d126be57f1f
2017-04-17 21:00:28 +00:00
Makoto Onuki
5838563e93 Merge "Enhance PinItemRequest javadoc" into oc-dev 2017-04-17 20:50:44 +00:00
Makoto Onuki
9381a4542d Merge "getApplicationInfo() should throw NameNotFoundException" into oc-dev
am: c3fa6ab2ac

Change-Id: Ie67b77c8873b237a82e9ec470e3fcb698d474e3e
2017-04-17 20:46:36 +00:00
TreeHugger Robot
3440e92009 Merge "Allow to finish session when all views are gone" into oc-dev 2017-04-17 20:45:05 +00:00
TreeHugger Robot
c3fa6ab2ac Merge "getApplicationInfo() should throw NameNotFoundException" into oc-dev 2017-04-17 20:36:00 +00:00
Aurimas Liutikas
a49fb70e5f Merge "Enhance Chronometer to better support Swedish countdowns." into oc-dev
am: ff4e132cff

Change-Id: I72249172933a83c91c175dd46c96823368a25bda
2017-04-17 20:21:25 +00:00
TreeHugger Robot
ff4e132cff Merge "Enhance Chronometer to better support Swedish countdowns." into oc-dev 2017-04-17 20:15:22 +00:00
Chien-Yu Chen
e92d62ac89 Merge "Camera: Override enableZsl based on SDK version" into oc-dev
am: 3b41407f19

Change-Id: I8399759e0ba6cf31aaa7fb2330272522b6abdf5c
2017-04-17 19:58:03 +00:00
TreeHugger Robot
3b41407f19 Merge "Camera: Override enableZsl based on SDK version" into oc-dev 2017-04-17 19:49:12 +00:00
Joe LaPenna
feb382e926 Merge "Make NETWORK_RECOMMENDATIONS_ENABLED hidden." into oc-dev
am: 5b06dbd12b

Change-Id: I29bf802473cd98352390a12120d2bbd9b293f5cf
2017-04-17 19:08:19 +00:00
TreeHugger Robot
5b06dbd12b Merge "Make NETWORK_RECOMMENDATIONS_ENABLED hidden." into oc-dev 2017-04-17 19:03:03 +00:00
Selim Cinek
324b399798 Merge changes I22b55b73,Id050f2f5 into oc-dev
am: d8d7a283bd

Change-Id: Ia147e09d7974c2a4f810ee0df04c602be1760be4
2017-04-17 19:00:28 +00:00
TreeHugger Robot
d8d7a283bd Merge changes I22b55b73,Id050f2f5 into oc-dev
* changes:
  Only foreground service notifications can be colorized
  Fixed a regression where the scrim would be black
2017-04-17 18:51:07 +00:00
Jeff Sharkey
789a8fc792 Storage API polishing.
Based on API council feedback, switch to using real UUID objects
instead of Strings.  Since UUID is a general-purpose utility class
that will be passed around quite a bit, add it to Parcel and Bundle.

Define well-known namespaced UUID values for "default" and "primary
physical" storage devices, which will let us annotate a bunch of
things with @NonNull.

Define new extras for MANAGE_STORAGE intent that apps can use to
signal where and how much space they'd like the user to free up.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Bug: 37325923, 35812899, 35806020
Change-Id: I8421b126d680f69141a361c1e77223fe2bf4a325
2017-04-17 12:19:50 -06:00
Andrii Kulian
8063101678 Merge "Temporary remove resource-display caching" into oc-dev
am: 8f4bd67929

Change-Id: I26ead23b26bd5ed50804cb5edf0ca15d10303eb5
2017-04-17 17:08:29 +00:00
Andrii Kulian
8f4bd67929 Merge "Temporary remove resource-display caching" into oc-dev 2017-04-17 17:00:06 +00:00
Andrii Kulian
cff2f814a8 Temporary remove resource-display caching
An instance of ResourceKey may correspond to different instances
of Resources at different points in time. This can lead to old
instances of Display returned from cache even if resources have
changed.
We need to ensure 1:1 correspondence between Resources and
ResourceKey before using this kind of cache. Disabling it for now
to fix CTS.

Change-Id: Ib53550c4f2d969c06a570ab6051529269b04b38d
Fixes: 37328072
Fixes: 37305567
Bug: 33430498
Test: android.server.cts.ActivityManagerAppConfigurationTests
Test: android.app.cts.DisplayTest#testRotation
2017-04-17 16:56:55 +00:00
Julia Reynolds
f6ca4cfcd2 Merge "Also use the notification's sound for the misc channel" into oc-dev
am: ed8f49efdc

Change-Id: I268e2702a6fbe714276f38581493ef2a089007e8
2017-04-17 16:33:11 +00:00
Aurimas Liutikas
ba590a694b Enhance Chronometer to better support Swedish countdowns.
Adds a method isTheFinalCountDown that allows to correctly
determine whether it is the final countdown.

Test: None
Change-Id: I786ae3455479bac25ccf25efba1c3dce18185117
2017-04-17 09:27:09 -07:00