Commit Graph

11147 Commits

Author SHA1 Message Date
Rubin Xu
e8796fca5f Merge "Update SystemUpdatePolicy wording" into oc-dev am: 7cf5f74f3f
am: 0311911b9e

Change-Id: Ibaa5ed8533bfd36911aacd8738a0811b5a41d8cc
2017-05-09 12:05:57 +00:00
Rubin Xu
0311911b9e Merge "Update SystemUpdatePolicy wording" into oc-dev
am: 7cf5f74f3f

Change-Id: Ifac890402f5f352d00ccb5eb3809b67a125d2b24
2017-05-09 11:57:57 +00:00
Rubin Xu
7cf5f74f3f Merge "Update SystemUpdatePolicy wording" into oc-dev 2017-05-09 11:49:00 +00:00
TreeHugger Robot
e4d5c4e1f9 Merge "update trust state immediately when user auths via FP on keyguard" 2017-05-09 05:09:27 +00:00
Philip P. Moltmann
7e6ef30452 Merge changes I7c2c9411,Ibc72c84d,Ib3968644 into oc-dev am: f512575c68
am: 169989822e

Change-Id: I330cd6e1601584e3903a26b27047aae2e7b7c711
2017-05-09 02:18:52 +00:00
Philip P. Moltmann
169989822e Merge changes I7c2c9411,Ibc72c84d,Ib3968644 into oc-dev
am: f512575c68

Change-Id: I590a658c92ad271c7b4f18f5768c1a4e581ffe94
2017-05-09 02:05:24 +00:00
TreeHugger Robot
f512575c68 Merge changes I7c2c9411,Ibc72c84d,Ib3968644 into oc-dev
* changes:
  No need to deal with windowTokens
  Persistable accessibility ID from ContextWrappers
  Check callbacks when operting on UI
2017-05-09 01:49:58 +00:00
Kevin Chyn
3fdbbf87bd update trust state immediately when user auths via FP on keyguard
KeyguardUpdateMonitor onFingerprintAuthenticated currently doesn't
immediately update the trust state. TrustManager.isDeviceLocked()
should return "unlocked" after FP is authenticated.

Fixes: 37963501

Test: Two tests as follows

1) use custom app that polls isDeviceLocked(), make sure
it returns "unlocked" after FP is authenticated but keyguard is showing.
To get that state, slide keyguard up slightly and touch FP sensor
without letting go of the other finger.

2) with at least 2 accounts, run the app on both accounts.
when switching users, the app should show that the "inactive/underneath"
user is locked. the app should report that the current user is locked
before touching fp, and unlocked after touching fp

Change-Id: I2a11411deebf369d85dee62cffdcd631bd99649f
2017-05-08 15:33:27 -07:00
Selim Cinek
afc4f9313c Merge changes from topic 'background_inflation' into oc-dev am: 03fbdbe6ff
am: cc360f9b69

Change-Id: I456f81ff6300792e8639733d0115d878683d1694
2017-05-08 22:30:48 +00:00
Felipe Leme
491c034f09 Merge "Merge "Fixed placemente of Autofill UI for virtual views." into oc-dev am: 370b040cf9" into oc-dev-plus-aosp
am: 572014820f

Change-Id: I75db688e77f46281a9887a0d6248a1eddf0e4860
2017-05-08 22:07:49 +00:00
Selim Cinek
cc360f9b69 Merge changes from topic 'background_inflation' into oc-dev
am: 03fbdbe6ff

Change-Id: I1848e1f5a1ec5f9785872690b4d653afd590399f
2017-05-08 21:37:31 +00:00
Felipe Leme
e6342dcecc Merge "Fixed placemente of Autofill UI for virtual views." into oc-dev
am: 370b040cf9

Change-Id: I3741b0ef8893eb660230698432c7d316995642b8
2017-05-08 21:24:48 +00:00
Selim Cinek
03fbdbe6ff Merge changes from topic 'background_inflation' into oc-dev
* changes:
  Fixed the contrast for low-priority notifications
  Moving Row inflation to the background too
  Moving the inflation to the background
2017-05-08 21:11:37 +00:00
Felipe Leme
370b040cf9 Merge "Fixed placemente of Autofill UI for virtual views." into oc-dev 2017-05-08 21:08:06 +00:00
Philip P. Moltmann
134cee27b8 No need to deal with windowTokens
we have a link to the client which is enough to find the views.

Also there was some cases where the windowToken was not updated
properly. This is moot now.

Also: Read a array of views from the client to speed up the
client<->AutofillManager communication.

Fixes: 38070352
Test: CtsAutoFillServiceTestCases
      1 Started autofill, saw fill UI
      2 Home button
      3 Kill activity in background
      4 Recents -> back to activity
      5 Saw fill UI restored
Change-Id: I7c2c9411204fa5d65867efae9b7296399121c3a2
2017-05-08 14:02:58 -07:00
Fyodor Kupolov
5f8bcd8b1b Merge "Do not call updateApplicationInfo with mResourceManager lock" into oc-dev am: bf34f4922d
am: 4b00db5492

Change-Id: I7413f031c5f47c66e5231e7666d5a93df73dc94f
2017-05-08 18:27:35 +00:00
Fyodor Kupolov
4b00db5492 Merge "Do not call updateApplicationInfo with mResourceManager lock" into oc-dev
am: bf34f4922d

Change-Id: Id7ccea22af67938883995a37c0acc054d9751aad
2017-05-08 18:18:00 +00:00
TreeHugger Robot
bf34f4922d Merge "Do not call updateApplicationInfo with mResourceManager lock" into oc-dev 2017-05-08 18:10:16 +00:00
Daniel Nicoara
57c32d93f6 Merge "Remove controller connection API" into oc-dev am: daefe1dcc7
am: 41950bc2c6

Change-Id: I48855908fe4fc4c284bc84b0d99bae5a82099c5d
2017-05-08 16:48:21 +00:00
Daniel Nicoara
41950bc2c6 Merge "Remove controller connection API" into oc-dev
am: daefe1dcc7

Change-Id: Ic46c8ed4e41b80927f74b2fa96ed997f6b581134
2017-05-08 16:38:56 +00:00
TreeHugger Robot
daefe1dcc7 Merge "Remove controller connection API" into oc-dev 2017-05-08 16:30:37 +00:00
Rubin Xu
59af7a82fa Update SystemUpdatePolicy wording
Make supporting security patch behaviour optional

Bug: 37266712
Test: make -j32 docs
Change-Id: Ied73b386396169d83bd152fcb882926f3222b599
2017-05-08 15:17:43 +01:00
Dianne Hackborn
cd260b0c1d Merge "Fix issue #38037532: Toasts cause apps to become foreground" into oc-dev am: 1801f688b9
am: 1d1a8c512c

Change-Id: I7c07a165dd882c9d9918c10d9d7071c4f9b9c646
2017-05-07 01:15:16 +00:00
Dianne Hackborn
1d1a8c512c Merge "Fix issue #38037532: Toasts cause apps to become foreground" into oc-dev
am: 1801f688b9

Change-Id: Ib812e0357e50b5af010552d0ef18d27e071370b2
2017-05-07 01:07:41 +00:00
Dianne Hackborn
1801f688b9 Merge "Fix issue #38037532: Toasts cause apps to become foreground" into oc-dev 2017-05-07 00:59:11 +00:00
Philip P. Moltmann
c1e1810ca2 Merge "Report less data in structure to autofill provider" into oc-dev am: d19113b390
am: 889b15b4c2

Change-Id: Id60c55e06e94c3f639703beda9b249dcf0f8bd6c
2017-05-06 02:37:00 +00:00
Jeff Sharkey
d1294465fb Merge "Offer to wait until broadcasts have drained." into oc-dev am: 6f4aab2c01
am: 8c921a8f14

Change-Id: Ia55b3b9666b2683e880e07071b53645ba309a57c
2017-05-06 02:29:03 +00:00
Fyodor Kupolov
38b67a482c Merge "Call ActivityManager to request activity relaunch" into oc-dev am: 748405a0f5
am: f9c94ddef7

Change-Id: I85cde24fb6a40a61d2a38c915599d1716d88c0b8
2017-05-06 02:19:41 +00:00
Philip P. Moltmann
889b15b4c2 Merge "Report less data in structure to autofill provider" into oc-dev
am: d19113b390

Change-Id: I492245dee87450b1b54fef2c06c600ac290adffe
2017-05-06 02:19:39 +00:00
Jeff Sharkey
8c921a8f14 Merge "Offer to wait until broadcasts have drained." into oc-dev
am: 6f4aab2c01

Change-Id: Id6045353ed2293ece7ecdb7697904fa7993a7ed3
2017-05-06 02:08:27 +00:00
TreeHugger Robot
d19113b390 Merge "Report less data in structure to autofill provider" into oc-dev 2017-05-06 02:07:59 +00:00
Fyodor Kupolov
f9c94ddef7 Merge "Call ActivityManager to request activity relaunch" into oc-dev
am: 748405a0f5

Change-Id: I2780805663b223d82b1b7d3582ae5850c30c7b7d
2017-05-06 02:06:04 +00:00
Jeff Sharkey
6f4aab2c01 Merge "Offer to wait until broadcasts have drained." into oc-dev 2017-05-06 01:58:12 +00:00
TreeHugger Robot
748405a0f5 Merge "Call ActivityManager to request activity relaunch" into oc-dev 2017-05-06 01:52:14 +00:00
Fyodor Kupolov
cb93d6ff06 Call ActivityManager to request activity relaunch
Instead of relaunching activity in-process, ask ActivityManager.
requestActivityRelaunch to relaunch it. It can make the correct
decision when activity needs to be relaunched.

Test: manual - switch between users to trigger ActivityThread.handleApplicationInfoChanged

Bug: 37992833
Bug: 37412579
Change-Id: I662a04e3cd82115a6008cef9308a2cf1038d51e1
2017-05-05 16:55:47 -07:00
Dianne Hackborn
f965f4038c Fix issue #38037532: Toasts cause apps to become foreground
ForegroundToken is now ImportanceToken, and doesn't actually
cause an app to become foreground (that is not needed for
toasts anyway).

Also improved output and logging -- new logs for changing
in key uid stats, and when force stopping services after a
uid goes idle.

Test: manual

Change-Id: I44dd391bb8d37857be1359f4b7021dc8d2cd0285
2017-05-05 23:39:19 +00:00
George Mount
eed3d770d2 Merge "Remove duplicated onBackStackChanged() call." into oc-dev am: c110c5edf4
am: 277e42ffdb

Change-Id: I095c6fe484ea3bd6e6a5f1230cc23d43fff01cbd
2017-05-05 22:29:01 +00:00
Fyodor Kupolov
b7865ce763 Do not call updateApplicationInfo with mResourceManager lock
Otherwise it may cause a deadlock due to reversed lock ordering.

Test: create guest/switch/remove
Change-Id: Id11263ee2d358ab97b212477f896db7313605448
Fixes: 37347817
2017-05-05 15:08:30 -07:00
George Mount
277e42ffdb Merge "Remove duplicated onBackStackChanged() call." into oc-dev
am: c110c5edf4

Change-Id: Iab69422e0f47c2f7bf83664948dc6accee7da52f
2017-05-05 21:53:54 +00:00
TreeHugger Robot
c110c5edf4 Merge "Remove duplicated onBackStackChanged() call." into oc-dev 2017-05-05 21:43:04 +00:00
Philip P. Moltmann
c368a240c9 Report less data in structure to autofill provider
Fixes: 35899963
Test: CtsAutoFillServiceTestCases, CtsAccessibilityTestCases,
      CtsAccessibilityServiceTestCases
Change-Id: Ia7dba3e252e7678c033d67bcf653e592f3134304
2017-05-05 14:20:11 -07:00
Jeff Sharkey
fd65813157 Offer to wait until broadcasts have drained.
We've seen evidence of lab devices racing with other apps that are
using cache space immediately after tests wipe it clean, which can
cause test failures.  To mitigate this, try our best to wait for the
device to go "idle" by watching for broadcast queues to fully drain.

Also improve javadocs along the way.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Bug: 37486230, 37566983, 37913442, 37914374
Change-Id: I4d430db443b6fa6d33a625fe07b90279b5d51c12
2017-05-05 14:58:47 -06:00
Neil Fuller
056156f616 Add (disabled) time zone update system server impl
This commit builds on top of prior API commits. It
adds code to the system server, but in a disabled way.

The system server is responsible for monitoring two
(configured) package names: one for the "updater app"
(provided by the platform) and one for the "data app"
(provided by the OEM). When either package changes
the updater app is triggered via a privileged
intent.

The updater is then required to communicate with the
data app and report back to the system server.

Unit tests are included for the major components.

To run:
make -j30 FrameworksServicesTests
adb install -r -g "out/target/product/angler/data/app/FrameworksServicesTests/FrameworksServicesTests.apk"
adb shell am instrument -e package com.android.server.timezone -w com.android.frameworks.servicestests \
    "com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner"

This contains a cherry-pick / conflict resolution of
commit 68f666693a after an automerger skip.
(cherry picked from commit 68f666693a)

Test: See above.
Bug: 31008728
Merged-In: I8f82cdcc2b574778a7e0d0184270f305b69ee17b
Change-Id: I8f82cdcc2b574778a7e0d0184270f305b69ee17b
2017-05-05 17:09:58 +01:00
Felipe Leme
4745fb6b29 Fixed placemente of Autofill UI for virtual views.
The PopupWindow anchoring offset should be based on the bottom of the anchor
view, but we were using top. Hence, the PopupWindow.tryFitVertical() was
failing to place it above the view in some cases, even when there was plenty
of space.

Fixes: 37991460
Test: manual verification with virtual view sample
Test: CtsAutoFillServiceTestCases pass

Change-Id: Iffdfe0d7858e865192338184d63bf5b93ba7108f
2017-05-05 08:31:38 -07:00
TreeHugger Robot
953dca4c27 Merge "Add (disabled) time zone update system server impl" 2017-05-05 12:21:34 +00:00
Dianne Hackborn
1391e2348b Merge "All kinds of little foreground services fixes." into oc-dev am: 525044e987
am: 596fc8b8d4

Change-Id: I79d7fc47855bdf0043d770b0a59a704260aa55e7
2017-05-05 09:13:24 +00:00
Dianne Hackborn
596fc8b8d4 Merge "All kinds of little foreground services fixes." into oc-dev
am: 525044e987

Change-Id: I5bd49a0e56bb5a5c08a20f38ce3801be1cb5dc1b
2017-05-05 09:06:34 +00:00
Dianne Hackborn
4ae51e09d8 All kinds of little foreground services fixes.
- Better explanations of some strings.
- Fix to use the right package when an item is pressed in
  the foreground services dialog.
- Improve java docs on Service.startForeground().

Bug: 37925387
    735566 lv - Android - [Source] Context unclear or missing:
    Apps running in background
Bug: 37925888
    735566 lv - Android - [Source] Context unclear or missing:
    Tap for details on battery and data usage
Bug: 37897953
    735566 gl - Android - [Source] Context unclear or missing:
    LEFT_SIDE, RIGHT_SIDE
Bug: 37943079
    Music is dying mid playback

Test: manual
Change-Id: Ied41932c61f59335bd18dfba3fcb13af28a0bddd
2017-05-04 23:31:33 -07:00
Selim Cinek
ac5f02749a Fixed the contrast for low-priority notifications
The low priority notifications had their contrast calculated
against the white background and weren't satisfying
our contrast requirements.
This also aligns the case where the app had no colors better,
and ensures that it's actually using the secondary text
color there.

Test: existing tests pass
Change-Id: Ic11e9d06783e60998f35e0eb7f6f29fb1d86c7df
Fixes: 37444266
2017-05-04 15:30:33 -07:00
Makoto Onuki
34ecd41de7 Merge "Fix frozen alarm issue" into oc-dev am: af4bfcdb7e
am: 7ff81553bd

Change-Id: Ibf7da2469f3158110a1d67e1234f949f8a577b00
2017-05-04 21:44:22 +00:00