OSDN Git Service
phweiss [Wed, 19 Apr 2017 18:15:06 +0000 (20:15 +0200)]
Implement CACert queries in SecurityController
Cherry-pick note:
testCACertLoader() was flaky, so this cherry-pick contains
two attempted fixes and a CL that disables the test. The original commit
messages of the squashed CLs are below.
Merged-In: I3b9cc3d85c9f49d0a892613b63d1fba184ab647e
Implement CACert queries in SecurityController
Queries are run (on a AsyncTask) when user is switched and when
ACTION_TRUST_STORE_CHANGED is broadcasted. Otherwise, the result is cached
in the SecurityController.
Bug:
37535489
Test: runtest --path frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/SecurityControllerTest.java
Change-Id: I3b9cc3d85c9f49d0a892613b63d1fba184ab647e
Increase timeout for flaky testCACertLoader()
Bug:
37535489
Bug:
38045871
Test: runtest --path frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/SecurityControllerTest.java
Change-Id: I5778082973af7c6d4d719b83e334fec552b0a89e
Fix flaky SecurityControllerTest.testCaCertLoader
Fixes:
38108698
Test: runtest -c .statusbar.policy.SecurityControllerTest systemui
Change-Id: I6029a09984b72599622f0df57187a20aba4dab30
Disable flaky test
Test: treehugger
Bug:
38118260
Change-Id: I05c6504acee6a787e1cc5071bed0118388963212
(cherry picked from commit
e375fc441cc889890d1cff5bc771039bb65f08ef)
Rubin Xu [Tue, 9 May 2017 11:48:56 +0000 (11:48 +0000)]
Merge "Update SystemUpdatePolicy wording" into oc-dev
Charles He [Tue, 9 May 2017 07:58:20 +0000 (07:58 +0000)]
Merge "FingerprintService: refresh auth id after enroll and remove." into oc-dev
TreeHugger Robot [Tue, 9 May 2017 06:36:35 +0000 (06:36 +0000)]
Merge "Move some NetworkStats tests to tests/net." into oc-dev
TreeHugger Robot [Tue, 9 May 2017 04:54:20 +0000 (04:54 +0000)]
Merge "Handling the touch better when the screen turns off" into oc-dev
Winson Chung [Tue, 9 May 2017 03:58:02 +0000 (03:58 +0000)]
Merge "Fixing issue with wrong initial multi-window mode." into oc-dev
TreeHugger Robot [Tue, 9 May 2017 02:39:55 +0000 (02:39 +0000)]
Merge "Fixed issue with associating WindowToken with null binder." into oc-dev
TreeHugger Robot [Tue, 9 May 2017 02:15:36 +0000 (02:15 +0000)]
Merge "Fix left/top in ViewNode for suppressed parents" into oc-dev
TreeHugger Robot [Tue, 9 May 2017 01:58:44 +0000 (01:58 +0000)]
Merge "Don't bring up backup agents in secondary app processes" into oc-dev
TreeHugger Robot [Tue, 9 May 2017 01:49:52 +0000 (01:49 +0000)]
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
TreeHugger Robot [Tue, 9 May 2017 01:28:29 +0000 (01:28 +0000)]
Merge "Fix bugs in cast QS tile" into oc-dev
TreeHugger Robot [Tue, 9 May 2017 01:17:25 +0000 (01:17 +0000)]
Merge "Update AccountManager visibility JavaDoc." into oc-dev
Dongwon Kang [Mon, 8 May 2017 23:56:04 +0000 (23:56 +0000)]
Merge "TIF: allow time also in COLUMN_RELEASE_DATE" into oc-dev
TreeHugger Robot [Mon, 8 May 2017 23:35:10 +0000 (23:35 +0000)]
Merge "Revert "Only allow AM to update display orientation based on app containers"" into oc-dev
Philip P. Moltmann [Mon, 8 May 2017 23:06:24 +0000 (23:06 +0000)]
Merge "Read the autofill highlight from rootView context" into oc-dev
TreeHugger Robot [Mon, 8 May 2017 22:58:55 +0000 (22:58 +0000)]
Merge "Adjust icon width to match the width with framework" into oc-dev
Selim Cinek [Wed, 3 May 2017 03:02:30 +0000 (20:02 -0700)]
Handling the touch better when the screen turns off
Previously we were only cancelling touches when
showing keyguard, but this is not enough, since
a user might be touching it while on the keyguard
(e.g with falsing)
Fixes:
37287962
Fixes:
36416066
Fixes:
37696557
Test: manual, turn of screen while interacting
Merged-In: I572ade2380986ef087468dff721b1d1dfa7a48ab
Change-Id: I572ade2380986ef087468dff721b1d1dfa7a48ab
TreeHugger Robot [Mon, 8 May 2017 22:28:29 +0000 (22:28 +0000)]
Merge changes from topic 'enableZslApi' into oc-dev
* changes:
camera: Clarify TEMPLATE_ZERO_SHUTTER_LAG
camera: Clarify ZSL supports
TreeHugger Robot [Mon, 8 May 2017 22:26:13 +0000 (22:26 +0000)]
Merge "TV PIP: Fix broken TV PIP" into oc-dev
TreeHugger Robot [Mon, 8 May 2017 21:48:25 +0000 (21:48 +0000)]
Merge "Exit transient mode as soon as status bar window is fullscreen" into oc-dev
TreeHugger Robot [Mon, 8 May 2017 21:46:24 +0000 (21:46 +0000)]
Merge "PowerManagerService: open power HAL less aggressively" into oc-dev
Dongwon Kang [Mon, 8 May 2017 21:36:56 +0000 (21:36 +0000)]
Merge "TIF: specify that selection is not allowed in CONTENT_URI" into oc-dev
Wale Ogunwale [Mon, 8 May 2017 21:22:42 +0000 (14:22 -0700)]
Revert "Only allow AM to update display orientation based on app containers"
This reverts commit
5f1ae6aaca78a14d25e28042df32df642ab3d29e.
This caused b/
38021942.
Change-Id: Idb23e5ede7aaa4a927e148c0daab3f56ac449d66
Fixes:
38021942
Bug:
37550022
Test: manual
Andrew Solovay [Mon, 8 May 2017 21:29:18 +0000 (21:29 +0000)]
Merge "docs: Changing "http" to "https" in Javadoc examples" into oc-dev
Android Build Merger (Role) [Mon, 8 May 2017 21:11:57 +0000 (21:11 +0000)]
Merge "DO NOT MERGE: Add light sample filtering logic for devices with ambient light sensors that can be regularly obstructed. am:
5b8250964b am:
cc1435b7f3 -s ours" into oc-dev
Selim Cinek [Mon, 8 May 2017 21:11:31 +0000 (21:11 +0000)]
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
Julius D'souza [Mon, 8 May 2017 21:10:56 +0000 (21:10 +0000)]
DO NOT MERGE: Add light sample filtering logic for devices with ambient light sensors that can be regularly obstructed. am:
5b8250964b
am:
cc1435b7f3 -s ours
Change-Id: I3cda2a1e68db2488799248e58d7b2a53782f3860
TreeHugger Robot [Mon, 8 May 2017 21:10:47 +0000 (21:10 +0000)]
Merge "Also check if view visible to user before engaging fill" into oc-dev
Felipe Leme [Mon, 8 May 2017 21:07:57 +0000 (21:07 +0000)]
Merge "Fixed placemente of Autofill UI for virtual views." into oc-dev
Android Build Merger (Role) [Mon, 8 May 2017 21:05:59 +0000 (21:05 +0000)]
Merge "DO NOT MERGE: Add light sample filtering logic for devices with ambient light sensors that can be regularly obstructed. am:
5b8250964b am:
cc1435b7f3 -s ours" into oc-dev
Julius D'souza [Mon, 8 May 2017 21:05:07 +0000 (21:05 +0000)]
DO NOT MERGE: Add light sample filtering logic for devices with ambient light sensors that can be regularly obstructed. am:
5b8250964b
am:
cc1435b7f3 -s ours
Change-Id: Ibdd53338d09ad1ad241023761b2ed8272f088b1f
TreeHugger Robot [Mon, 8 May 2017 21:04:09 +0000 (21:04 +0000)]
Merge "Properly measure dataset presentations" into oc-dev
Philip P. Moltmann [Sat, 6 May 2017 18:28:38 +0000 (11:28 -0700)]
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
Julius D'souza [Mon, 8 May 2017 20:57:56 +0000 (20:57 +0000)]
DO NOT MERGE: Add light sample filtering logic for devices with ambient light sensors that can be regularly obstructed.
am:
5b8250964b
Change-Id: Ifbebbcba8838b83a5c2e7d6d815784733cc95618
TreeHugger Robot [Mon, 8 May 2017 20:42:13 +0000 (20:42 +0000)]
Merge "Fix AuthenticationCallback leak in FingerprintManager" into oc-dev
TreeHugger Robot [Mon, 8 May 2017 20:36:07 +0000 (20:36 +0000)]
Merge "Toggling minimized state with overview moves divider to correct position" into oc-dev
Philip P. Moltmann [Sat, 6 May 2017 17:41:40 +0000 (10:41 -0700)]
Persistable accessibility ID from ContextWrappers
Only IDs beyond LAST_APP_ACCESSIBILITY_ID can be reliably used for
autofilling. Other ids might change occasionally.
All Views attached to activities get usable IDs. Hence if a
ContextWrapper wraps an activity forward the goodness.
Also make sure that we don't accidentially autofill an unsafe view.
Test: Before the messaging handed out unusable Ids because it uses a
Contextwrapper. Now it hands out good ideas (accoring to dumpsys)
CtsAutoFillServiceTestCases
Bug:
38070352
Change-Id: Ibc72c84d77197019939abd231e8960988af7a592
Philip P. Moltmann [Mon, 8 May 2017 20:16:24 +0000 (13:16 -0700)]
Check callbacks when operting on UI
This makes sure that only the session that current owns the UI can make
changes to the UI:
The callback is the ID of the current owner. The only caller that does
not ID itself (and thereby causes the Ui to close in any way) is the
ACTION_CLOSE_SYSTEM_DIALOGS path.
Change-Id: Ib396864411f362b59deb500251c37896ecbc7de7
Fixes:
38042845
Test: CtsAutoFillServicesTestCases
TreeHugger Robot [Mon, 8 May 2017 20:28:16 +0000 (20:28 +0000)]
Merge "Calls cancel on mDimAnimator to ensure that ref counts are accurate." into oc-dev
Winson Chung [Mon, 8 May 2017 17:52:12 +0000 (10:52 -0700)]
Fixing issue with wrong initial multi-window mode.
- When an activity is started into a new task in the adjacent stack, we
need to initialize the multi-window mode in order to ensure that the
app gets the required callbacks when it leaves multi-window mode. This
flow doesn't go through the normal mechanism to schedule changes to the
app, so we just initialize it manually.
Bug:
38028679
Test: android.server.cts.ActivityManagerDockedStackTests
Test: #testLaunchToSideMultiWindowCallbacks
Change-Id: I783d03bbb3f7e197dca2f8411e23edb7680a9a86
Christopher Tate [Mon, 8 May 2017 19:43:16 +0000 (12:43 -0700)]
Don't bring up backup agents in secondary app processes
When an app needs to be launched to make its agent available, we
were taking action in response to the first 'attach' operation we got
from any process running as the right uid. This turns out to be fraught;
it's possible that some other secondary-process component launch was
racing with the agent bringup request, such that the attach callback
arrives from that secondary app process instead of the main process.
*That,* in turn, can be fatal if it turns out to be an isolated
process or similarly incapable host environment for the agent.
So now we make sure it's actually the process we're waiting for
when deciding to instantiate the agent there.
Bug
38123540
Test: manual
Change-Id: I01648027d104cc93fe0ec9227ebab85ad3d83c88
Connor O'Brien [Mon, 8 May 2017 19:14:06 +0000 (12:14 -0700)]
PowerManagerService: open power HAL less aggressively
Once the power HAL has failed to open once, don't try to open it again
on subsequent calls to the service.
Test: remove power HAL on marlin & confirm log spam stops.
Bug:
38028137
Change-Id: If7bc4f7080e8822b68da0d1bd81df8de1ce388aa
Signed-off-by: Connor O'Brien <connoro@google.com>
TreeHugger Robot [Mon, 8 May 2017 19:20:06 +0000 (19:20 +0000)]
Merge "Fixed scenario where an authentication response has no dataset." into oc-dev
Svet Ganov [Sat, 6 May 2017 23:44:18 +0000 (16:44 -0700)]
Also check if view visible to user before engaging fill
Test: autofill CTS tests pass
bug:
37753348
Change-Id: Ia16bff13f2cfdf1d315e3f45cc114ee13b145eb5
Svetoslav Ganov [Sat, 6 May 2017 00:58:03 +0000 (17:58 -0700)]
Properly measure dataset presentations
Test: Autofill CTS tests pass
bug:
37952199
Change-Id: Iaae714dd483ba44d5c7668b6fc7d386901b9d95c
TreeHugger Robot [Mon, 8 May 2017 18:52:34 +0000 (18:52 +0000)]
Merge "Additional log instrumentation for multi-user" into oc-dev
Wale Ogunwale [Mon, 8 May 2017 16:15:49 +0000 (09:15 -0700)]
Fixed issue with associating WindowToken with null binder.
App don't have to specify a LayoutParams.token when adding a window to
the system, however when they don't WM maps all the windows to a single
WindowToken mapped to a null IBinder. This isn't correct since the
windows can be coming from different apps and also null binder shouldn't
be used to map tokens.
We now:
1. Associate the WindowToken with the IWindow client for bookkeeping in
WM if the app didn't specify LayoutParams.token for the window it is
adding.
2. Throw an illegal argumenet exception we we try to associate a null
binder with a window token or null window token with a binder on a
display.
Fixes:
38021710
Test: Start an alert window, lock and unlock the phone, long press to
bring up power dialog, and tap outside it to make sure it goes away.
Change-Id: I6816b7fb9b9a0a8f5387062bada862eb75004e4f
TreeHugger Robot [Mon, 8 May 2017 18:34:32 +0000 (18:34 +0000)]
Merge changes from topic 'wakelockTotalDuration' into oc-dev
* changes:
Wakelock durations are 0 instead of -1 if unused
Added actual (unpooled) partial wakelock times.
TreeHugger Robot [Mon, 8 May 2017 18:20:29 +0000 (18:20 +0000)]
Merge "Night display status restored until valid state" into oc-dev
TreeHugger Robot [Mon, 8 May 2017 18:10:11 +0000 (18:10 +0000)]
Merge "Do not call updateApplicationInfo with mResourceManager lock" into oc-dev
TreeHugger Robot [Mon, 8 May 2017 17:37:10 +0000 (17:37 +0000)]
Merge "Fix ephemeral intent caching in notification" into oc-dev
TreeHugger Robot [Mon, 8 May 2017 16:30:30 +0000 (16:30 +0000)]
Merge "Remove controller connection API" into oc-dev
Jason Monk [Mon, 8 May 2017 15:23:14 +0000 (11:23 -0400)]
Fix ephemeral intent caching in notification
Add some stuffs to make it not cache at bad times, or ever really...
Test: See bug, its long
Change-Id: I27987301ebf393de6f781b17ed7bc789789c01ab
Fixes:
37793400
TreeHugger Robot [Mon, 8 May 2017 14:49:20 +0000 (14:49 +0000)]
Merge "Also log the value of the IAEs thrown in VibrationEffect" into oc-dev
Jason Monk [Mon, 8 May 2017 14:32:03 +0000 (10:32 -0400)]
Fix bugs in cast QS tile
- Don't unregister if alread unregistered
- Post to make the magic posting gods happy
Test: click cast tile
Change-Id: Id687a4c755d43ca5cc0cceeee7ce8dfe65e962c6
Fixes:
37718562
Fixes:
38016765
Rubin Xu [Mon, 24 Apr 2017 14:11:43 +0000 (15:11 +0100)]
Update SystemUpdatePolicy wording
Make supporting security patch behaviour optional
Bug:
37266712
Test: make -j32 docs
Change-Id: Ied73b386396169d83bd152fcb882926f3222b599
Justin Klaassen [Fri, 5 May 2017 22:19:33 +0000 (15:19 -0700)]
Night display status restored until valid state
Fixes:
38013048
Test: runtest -c com.android.server.NightDisplayServiceTest \
frameworks-services
Change-Id: I8dc4177f89727a29ee6ab8e3db5a23c8127b800c
TreeHugger Robot [Mon, 8 May 2017 13:21:27 +0000 (13:21 +0000)]
Merge "Fix broken Backspace/ForwardDelete tests" into oc-dev
Jorim Jaggi [Mon, 8 May 2017 12:51:42 +0000 (12:51 +0000)]
Merge "Don't yell when calling into SystemUI" into oc-dev
TreeHugger Robot [Mon, 8 May 2017 12:02:45 +0000 (12:02 +0000)]
Merge "Clear Gatekeeper state before a new enrollment" into oc-dev
Lorenzo Colitti [Wed, 12 Apr 2017 16:18:05 +0000 (01:18 +0900)]
Move some NetworkStats tests to tests/net.
This groups them together with the rest of the networking unit
tests. It also speeds up compile/test cycles ("runtest -x" of one
file goes from 1m15s to 30s).
Bug:
33681750
Test: runtest frameworks-net passes on internal tree
Merged-In: I53cb0c51355fe4b4b30e451fa09fbbf58da39efd
Change-Id: I5ae5dbf74c94feb0fe3759681e5e6d6fba62fa32
(cherry picked from commit
c86013be936f36c61fa0cdfad95141f6de3c6ef7)
Kevin Chyn [Sun, 7 May 2017 22:35:17 +0000 (15:35 -0700)]
Fix AuthenticationCallback leak in FingerprintManager
Fixes:
32295793
Test: 1) modify/build/run apk attached in BR
2) run garbage collection after FingerprintActivity is done
3) use HPROF, FingerprintActivity should have "0 total count"
4) do this test for auth success, auth fail, auth cancel
Change-Id: I5fe7937a26d4673226b87c9c95a136dd9510e21f
Jeff Sharkey [Sun, 7 May 2017 17:40:27 +0000 (17:40 +0000)]
Merge "Defeat @Nullable String[] with empty list." into oc-dev
Jeff Sharkey [Sun, 7 May 2017 17:38:15 +0000 (17:38 +0000)]
Merge "No quota-level details for public volumes." into oc-dev
TreeHugger Robot [Sun, 7 May 2017 01:17:02 +0000 (01:17 +0000)]
Merge "Only clear state for force stopped fill service" into oc-dev
Dianne Hackborn [Sun, 7 May 2017 00:59:06 +0000 (00:59 +0000)]
Merge "Fix issue #
38037532: Toasts cause apps to become foreground" into oc-dev
Svet Ganov [Sat, 6 May 2017 23:12:16 +0000 (16:12 -0700)]
Only clear state for force stopped fill service
Test: manual
bug:
37785814
Change-Id: I5e40a284788bacf1ebae5ddefffb93b1a5b47d39
TreeHugger Robot [Sat, 6 May 2017 22:46:37 +0000 (22:46 +0000)]
Merge "Add call super" into oc-dev
Svet Ganov [Sat, 6 May 2017 02:38:45 +0000 (19:38 -0700)]
Add call super
Test: manual
bug:
37775067
Change-Id: I50a50f1fbdb7e9c087c72ad0be3b767aeab9572a
Philip P. Moltmann [Wed, 3 May 2017 00:32:07 +0000 (17:32 -0700)]
Fix left/top in ViewNode for suppressed parents
If parents of a view got suppressed in the autofill structure the left
and top value are not relative to their direct parents anymore. They
need to be relative to the next non-suppressed parent.
This does not change any values for assist structures.
Fixes:
36060132,
37444334
Test: CtsAutoFillServiceTestCases + new ones that check for the left and
top parameters of view nodes.
Change-Id: I914ad028c7ed2f93ce44210cbe1a2a710673cbbb
TreeHugger Robot [Sat, 6 May 2017 15:51:44 +0000 (15:51 +0000)]
Merge "Prune abandoned autofill sessions" into oc-dev
Phil Weaver [Sat, 6 May 2017 15:29:19 +0000 (15:29 +0000)]
Merge "Properly translate text locations to screen coords" into oc-dev
TreeHugger Robot [Sat, 6 May 2017 03:03:07 +0000 (03:03 +0000)]
Merge "Audio service: always unduck focus requester when granted" into oc-dev
Svetoslav Ganov [Sat, 6 May 2017 02:41:50 +0000 (02:41 +0000)]
Merge "Hide from the world that ssaid is in a dedicated table" into oc-dev
TreeHugger Robot [Sat, 6 May 2017 02:07:54 +0000 (02:07 +0000)]
Merge "Report less data in structure to autofill provider" into oc-dev
Jeff Sharkey [Sat, 6 May 2017 01:58:07 +0000 (01:58 +0000)]
Merge "Offer to wait until broadcasts have drained." into oc-dev
TreeHugger Robot [Sat, 6 May 2017 01:52:10 +0000 (01:52 +0000)]
Merge "Call ActivityManager to request activity relaunch" into oc-dev
TreeHugger Robot [Sat, 6 May 2017 01:44:11 +0000 (01:44 +0000)]
Merge "Prevent crashes when user is stopping" into oc-dev
TreeHugger Robot [Sat, 6 May 2017 01:40:58 +0000 (01:40 +0000)]
Merge "Don't crash in TextUtil.concat() with paragraph spans" into oc-dev
Jean-Michel Trivi [Sat, 6 May 2017 01:16:38 +0000 (01:16 +0000)]
Merge "AudioAudioPolicyFocusListener and ducking enforced by framework" into oc-dev
TreeHugger Robot [Sat, 6 May 2017 01:15:38 +0000 (01:15 +0000)]
Merge "LightsService: open hal less aggressively" into oc-dev
Jean-Michel Trivi [Fri, 5 May 2017 18:43:31 +0000 (11:43 -0700)]
Audio service: always unduck focus requester when granted
When an app is requesting focus, it might
have been in the focus stack before, and ducked. Always
unduck the associated players when the app requests audio
focus and it is granted.
When an app gains focus from an another abandoning focus,
do not make unducking conditional to having a focus
dispatcher (== app has a focus listener).
Test: test app made to duck, re-request focus and verify not ducked
Bug:
37433811
Change-Id: I7e5b29c9148c923e7510957b971e28b6139d6156
Felipe Leme [Fri, 5 May 2017 21:02:21 +0000 (14:02 -0700)]
Fixed scenario where an authentication response has no dataset.
Also use getUiForShowing() on all relevant places, and added missing
SaveDataType value.
Test: LoginActivityTest.testFillResponseAuthServiceHasNoData()
Test: manual verification
Fixes:
37711385
Fixes:
38009452
Change-Id: Id69c831f96fb9ac35d1f2d86cfd41e76428c776e
Andrew Solovay [Fri, 5 May 2017 23:55:43 +0000 (16:55 -0700)]
docs: Changing "http" to "https" in Javadoc examples
Several of the Javadoc comments had code snippets that used "http"
web addresses (e.g. "http://example.com"). Our style heavily
recommends using https whenever possible; in addition, this caused
the generated Javadoc files to fail presubmit checks when we try
to migrate them to Piper (see, e.g., http://cl/
155212684)
In addition, one code snipped used (as an example) a link to
http://slashdot.org/ ; we really shouldn't be using links to real
websited (that we don't control) unless we absolutely have to.
I changed all the examples to "https://example.com/" ; I've verified
that that's a valid URL (they've got a good certificate).
Generated the doc and staged it to:
go/dac-stage/reference/android/webkit/WebView.html
Test: make ds-docs
Bug:
37996959
Change-Id: Id8e44930b107b94022376a260892ed867ba281fc
Fyodor Kupolov [Fri, 5 May 2017 00:27:16 +0000 (17:27 -0700)]
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
Dianne Hackborn [Fri, 5 May 2017 06:27:23 +0000 (23:27 -0700)]
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
Philip P. Moltmann [Fri, 5 May 2017 20:30:38 +0000 (13:30 -0700)]
Prune abandoned autofill sessions
Regularly check if the sessions are still valid and clear the ones that
are not.
Test: 1. Started session in dialer
2. Home button (dialer goes in background)
3. kill -9 dialer
4. Wait 30 seconds
5. Start session is messenger
6. dialer session stays
1. Started session in dialer
2. Home button (dialer goes in background)
3. kill -9 dialer
4. Swipe dialer from recents
5. Wait 30 seconds
5. Start session is messenger
6. dialer session is removed
Fixes:
38005472
Change-Id: I8199ce44777b313141ee1eab6c8de5ad5089474a
Fyodor Kupolov [Fri, 5 May 2017 22:08:03 +0000 (15:08 -0700)]
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
Svet Ganov [Fri, 5 May 2017 21:27:13 +0000 (14:27 -0700)]
Hide from the world that ssaid is in a dedicated table
Test: manual
bug:
37793918
Change-Id: I7c7405c7bd192d528f1f87095a03a2d21953dbc8
TreeHugger Robot [Fri, 5 May 2017 21:47:43 +0000 (21:47 +0000)]
Merge "android.os.VintfObject: add API for EDI." into oc-dev
TreeHugger Robot [Fri, 5 May 2017 21:42:55 +0000 (21:42 +0000)]
Merge "Remove duplicated onBackStackChanged() call." into oc-dev
Jeff Sharkey [Fri, 5 May 2017 21:37:26 +0000 (15:37 -0600)]
No quota-level details for public volumes.
Fall back to whatever statvfs() tells us.
Test: builds, boots
Bug:
37573475
Change-Id: I713564292d41797e80860d6aa739266d9799af7f
Suprabh Shukla [Fri, 5 May 2017 21:32:12 +0000 (21:32 +0000)]
Merge "Adding SecureTouchListener to drop suspicious touches" into oc-dev
TreeHugger Robot [Fri, 5 May 2017 21:28:05 +0000 (21:28 +0000)]
Merge "Improved dump() on Autofill UI." into oc-dev
Jeff Sharkey [Fri, 5 May 2017 21:26:13 +0000 (15:26 -0600)]
Defeat @Nullable String[] with empty list.
Test: builds, boots
Bug:
37577123
Change-Id: I6bf1af565398c30aecc0939a23846c0f85c13ffe
Philip P. Moltmann [Thu, 4 May 2017 19:29:59 +0000 (12:29 -0700)]
Report less data in structure to autofill provider
Fixes:
35899963
Test: CtsAutoFillServiceTestCases, CtsAccessibilityTestCases,
CtsAccessibilityServiceTestCases
Change-Id: Ia7dba3e252e7678c033d67bcf653e592f3134304
Phil Weaver [Fri, 5 May 2017 21:17:06 +0000 (14:17 -0700)]
Properly translate text locations to screen coords
Using the same method as getBoundsInScreen.
Bug:
35095925
Test: Manually verified location with test app, ran a11y cts
Change-Id: I1eee2a4eb23912698be61c9030d92bbade1d743a
Fyodor Kupolov [Fri, 5 May 2017 21:07:50 +0000 (14:07 -0700)]
Prevent crashes when user is stopping
Added defensive checks to prevent sporadic crashes due to various race
conditions when user is stopped:
* onPackageBroadcastReceived - moved the check inside the synchronized block.
This guarantees that onUserStopped (that also grabs mLock) is not yet
called and we can proceed.
* stopListening - Since it is invoked before onUserStopped callback, we can call
ensureGroupStateLoadedLocked(userId, false). The state will be subsequently cleaned
up in the onUserStopped.
Test: manual user switching + SecondaryUserContentResolverTest and
ManagedUserContentResolverTest
Fixes:
37472670
Fixes:
36890589
Change-Id: I44d0a0c004e9c3e6cfb37a24cb8a5b6f20a42f13
Jeff Sharkey [Wed, 3 May 2017 17:38:01 +0000 (11:38 -0600)]
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
Hyunyoung Song [Fri, 5 May 2017 20:52:48 +0000 (20:52 +0000)]
Merge "Fix issue in InsetDrawable where master inset attribute get ignored. Test: builds, and did manual test b/
37752336" into oc-dev