Commit Graph

326561 Commits

Author SHA1 Message Date
Bill Yi
d3bd7aa7da Import translations. DO NOT MERGE
Change-Id: Id82e6755421022e36bcb3107d71d2628162ccc9d
Auto-generated-cl: translation import
2017-06-12 13:41:44 -07:00
Jeff Sharkey
35e46d2972 Active camera apps can defy reserved cache space.
We normally prevent apps from allocating into the "reserved" cache
space, but this change makes an exception for an active camera app,
since the user is probably trying to capture an important memory.

This change only lets the active camera app clear up to half of the
reserved space, since we don't want to completely destroy the
experience of all other apps.

Test: manual app before/during/after active camera session
Bug: 38267830
Change-Id: Ie9e63884fb2638ca881e10b894629eea84601648
2017-06-12 14:27:23 -06:00
Jeff Sharkey
b31afd2273 Improve developer docs for storage APIs.
No code changes; only docs.

Test: builds
Bug: 38508833, 37987197, 37978296
Change-Id: Idfeb680480b2f818d18f787cbf20ceab896763a2
2017-06-12 20:19:53 +00:00
Amit Pawar
963fed0345 Merge "Fix wake-and-unlock animation" into oc-dev
am: 8f1d13300f

Change-Id: Ib0876be70423fa3218ffb3172f3a177c45f98681
2017-06-12 20:09:07 +00:00
Amit Pawar
8f1d13300f Merge "Fix wake-and-unlock animation" into oc-dev 2017-06-12 20:00:56 +00:00
Jorim Jaggi
e3e0b06a12 Attempted fix for navigation bar flicker
Not 100% sure why it was flickering, but I do know that the
flicker started happening after putting this into a separate
thread, and that with that change it doesn't flicker anymore,
ever.

Adds 0.5ms while unlocking but at this point this is a good trade-
off to make.

Test: Unlock device with FP
Change-Id: I736a3c64d9b63df9d6cdcb7855bde13a19560a83
Fixes: 62380221
2017-06-12 12:21:55 -07:00
Android Build Merger (Role)
1072b62b15 Merge "Merge "Removed deprecated setExtras() method." into oc-dev am: 7c41ddb975 am: 2f8647c4d1" into oc-dr1-dev-plus-aosp 2017-06-12 19:16:05 +00:00
Felipe Leme
b4bfeeb216 Merge "Removed deprecated setExtras() method." into oc-dev am: 7c41ddb975
am: 2f8647c4d1

Change-Id: Ice204340ffe9c2eba6fde4ccb133a9a96510cd25
2017-06-12 19:13:42 +00:00
Felipe Leme
eb196c7542 Merge "Removed deprecated setExtras() method." into oc-dev am: 7c41ddb975
am: 5148d9fe81

Change-Id: I7981171fd6b6f0bb6c019f64f418a3348bebcdc7
2017-06-12 19:13:38 +00:00
Vladislav Kaznacheev
d85915f786 Pass window token when creating a tooltip popup
This allows using tooltips in System UI.

Bug: 62065980
Test: android.view.cts.TooltipTest passes
Change-Id: If0a76d0806aa92efa4be57204c4517242b0ebb99
2017-06-12 12:10:49 -07:00
Felipe Leme
5148d9fe81 Merge "Removed deprecated setExtras() method." into oc-dev
am: 7c41ddb975

Change-Id: Id74b4becd0f26d185cad3ecbe539aaa69f7ac89e
2017-06-12 19:05:34 +00:00
Felipe Leme
2f8647c4d1 Merge "Removed deprecated setExtras() method." into oc-dev
am: 7c41ddb975

Change-Id: I5453d54e45385a03bae56a4742bcd680aff47356
2017-06-12 19:05:34 +00:00
Will Brazil
cd92f92fa4 Camera2: Cache method list in MethodNameInvoker.
Retrieving list of methods in every invoke() call is very expensive.
Caching the list inside the constructor prevents several unnecessary
calls to Class.getMethods().

Test: Run camera2 CTS
Bug: 62490715

Change-Id: Ib2a93af0f364b055df2eab9bd7870730428429ad
2017-06-12 19:02:52 +00:00
Vladislav Kaznacheev
7410170ddc Revert "Use a PopupWindow to show tooltips"
This reverts commit 77e539775b.

Change-Id: Ic4054e0d507ce95ab93282d4da002dd804aeb26d
2017-06-12 12:02:11 -07:00
TreeHugger Robot
7c41ddb975 Merge "Removed deprecated setExtras() method." into oc-dev 2017-06-12 18:58:10 +00:00
Bill Yi
4655f36913 Import translations. DO NOT MERGE
Change-Id: If7f8b590d878dfbd97565b52d6353682221a2b39
Auto-generated-cl: translation import
2017-06-12 11:47:44 -07:00
Jorim Jaggi
67b29d5d49 Fix wake-and-unlock animation
Since okToDisplay was false when we started the keyguard exit
animation, no animation was applied and we didn't create a
starting window, which lead to flickering. We fix this by
allowing animations from mScreenOnEarly.

Furthermore, we synchronize the navigation bar better with the
rest of the animation.

We also need to apply no animation to the status bar window as
we go through performShowLocked because we were waiting for it
to draw.

Test: go/wm-smoke
Test: Wake-and-unlock
Test: Make sure no other regression with screen on experience
Change-Id: I5f264b74cc258e8d7f608978edfb1faa5ead385c
Fixes: 38441599
2017-06-12 11:46:44 -07:00
Robert Carr
552da0e0cd SurfaceView: Fix missing override for SurfaceControl proxy
I will not pretend classes are interfaces...I will not pretend
classes are interfaces...

Bug: 62444724
Test: cts-tradefed run singleCommand cts -d -o --module CtsViewTestCases --test android.view.cts.SurfaceViewSyncTest#testSurfaceViewBigScale
      go/wm-smoke

Change-Id: Iccca46edcd669430c32f31e9c7d8aba1db254f2d
2017-06-12 11:43:51 -07:00
Etan Cohen
830f4db231 [ErrorProne] Fix Error Prone warnings in aware/p2p code
Bug: 33104624
Test: builds
Change-Id: Ibf17a02c81aebfa28903fe440a75e3c2e9244a19
2017-06-12 11:18:10 -07:00
Bill Yi
6feeb0af9e Import translations. DO NOT MERGE
Change-Id: I3fc0aef0174fec3bbe3e215a75dd4169d319b81c
Auto-generated-cl: translation import
2017-06-12 11:17:27 -07:00
Tianjie Xu
3a66fc41e3 Fix the issue that uncrypt isn't called under quiescent mode
OTA fails on fugu under quiescent mode because the reboot reason changes
from "recovery-update" to "recovery-update,quiescent". The new reason
isn't checked in shutdown thread so that shutdown thread doesn't call
uncrypt properly before rebooting into recovery.

Bug: 62324707
Test: Recreated and fixed the "block.map" missing failure on fugu.

Change-Id: I110653cd64dbbdc71e89ead2197bf023a7c054e8
2017-06-12 11:16:59 -07:00
Mady Mellor
4ab2820e6c Updates to NotificationMenuRowPlugin so that long press may be captured
This will allow the NotificationMenuRow plugin to do something else
rather than showing a menu when the view is long pressed.

- Allow menu to intercept touch events
- If the menu item provided to long press is null, don’t show it
- Also passes the status bar notification when the menu is created
  or updated

Bug: 62534409
Test: manual, have no plugin and long press -> see notification info
      have a plugin that returns null for long press -> nothing happens
Change-Id: I384c5217d5343e990f4c3506eb2477b015705e5c
2017-06-12 18:08:19 +00:00
Bill Yi
38eacb297a Import translations. DO NOT MERGE
Change-Id: I1c7d49d4ee0b5b45cf1f7bdbf6da707921ccfde4
Auto-generated-cl: translation import
2017-06-12 10:47:09 -07:00
Todd Kennedy
f4c3855849 Don't log all instant app resolutions
we only want to log the successes

Change-Id: I31c79a1c964088ee67fd7527ca7fea16b0d29830
Fixes: 36563095
Test: Manual; run and see that only the success events are in the eventlog
2017-06-12 10:33:32 -07:00
Winson Chung
4a526c1245 Ensure that we use SF Vsync Choreographer for the PiP transition.
- Move the bounds animation onto the animation thread
- Remove existing code referencing the old sf-vsync choreographer
- Add ability for ValueAnimator subclasses to reference a different
  AnimationHandler, which uses a different FrameCallbackProvider with the
  sf-vsync choreographer in the animations that require it
- Ensure that PiP touch events are batched and sent aligned with the
  sf-vsync
- Move GC onto its own thread to not block other BackgroundThread calls

Bug: 36371375
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: bit FrameworksServicesTests:com.android.server.wm.BoundsAnimationControllerTests
Test: go/wm-smoke

Change-Id: I6a41b35a4e4d4d6dbea82c2673452825fe3ffa58
2017-06-12 10:08:58 -07:00
Geoffrey Pitsch
9fde4fcf26 Merge "Change FlakyTest to Ignores" into oc-dr1-dev
am: 209705d5d7

Change-Id: I3e0ae84bf3b814b9a891c1909012c1fd4ae791ec
2017-06-12 17:06:26 +00:00
Android Build Merger (Role)
c6e116cf81 Merge "Merge "Work on issue #62390590: SecurityException in JobIntentService$..." into oc-dev am: 4eb76b2db8 am: d066c0c6cb" into oc-dr1-dev-plus-aosp 2017-06-12 17:00:48 +00:00
Dianne Hackborn
5162505a6b Merge "Work on issue #62390590: SecurityException in JobIntentService$..." into oc-dev am: 4eb76b2db8
am: d066c0c6cb

Change-Id: I435c71537d41f94d4e9af2e07a9f2a9258f2eab5
2017-06-12 16:59:23 +00:00
Dianne Hackborn
bef027c3b4 Merge "Work on issue #62390590: SecurityException in JobIntentService$..." into oc-dev am: 4eb76b2db8
am: 5b3d0066bf

Change-Id: If930e143df6621c1c68a74462d0b64e29e0ad2a9
2017-06-12 16:57:12 +00:00
TreeHugger Robot
209705d5d7 Merge "Change FlakyTest to Ignores" into oc-dr1-dev 2017-06-12 16:56:31 +00:00
Dianne Hackborn
5b3d0066bf Merge "Work on issue #62390590: SecurityException in JobIntentService$..." into oc-dev
am: 4eb76b2db8

Change-Id: I34f85b8e06b3eddfee1ea57e8dfcd3ef74e10ff3
2017-06-12 16:49:08 +00:00
Dianne Hackborn
d066c0c6cb Merge "Work on issue #62390590: SecurityException in JobIntentService$..." into oc-dev
am: 4eb76b2db8

Change-Id: I3aa5bbccbc669499a8ab6b12f180a7f5841164c3
2017-06-12 16:47:19 +00:00
Chris Thornton
3f3237f4b1 Merge "Prevent ConcurrentModificationException in updateAllRecognitions" into oc-dev am: 484fb951e0 -s ours
am: 5375d9360f

Change-Id: Ib2dd5a0264733ab829c2976eef29a68056aacc2c
2017-06-12 16:44:22 +00:00
Dianne Hackborn
4eb76b2db8 Merge "Work on issue #62390590: SecurityException in JobIntentService$..." into oc-dev 2017-06-12 16:38:52 +00:00
Chris Thornton
9252fe6925 Merge "Prevent ConcurrentModificationException in updateAllRecognitions" into oc-dev am: 484fb951e0
am: 722550cc3c  -s ours

Change-Id: Ia7ed4ded824000ecf111f4ec2886a50dea67fa76
2017-06-12 16:38:33 +00:00
Chris Thornton
5375d9360f Merge "Prevent ConcurrentModificationException in updateAllRecognitions" into oc-dev
am: 484fb951e0  -s ours

Change-Id: I97dc24bc38e194b508a1b485ec4d7e1f8b62285d
2017-06-12 16:37:03 +00:00
Marie Janssen
977992f3fc Protect broadcast used in settings for bond cancel
Test: cancel pairing from notification tray
Bug: 62094630
Change-Id: Ia83a874c1ea9a1d9d5502609f81e94052bb5759c
2017-06-12 09:28:43 -07:00
Jeff Sharkey
0c28d43fe1 Hide APIs not intended to ship in DR.
This CL will be reverted once it merges into the next release branch
to re-introduce the proposed APIs.

This CL also makes the following code changes to preserve API
compatibility:

-- It keeps the recently added RemoteViews.clone() synchronized logic
intact, but moves it inside the method to avoid changing the API
signature.

-- It reverts the RttCall.read() behavior to the oc-dev logic, since
we can't throw IOException until we get an API level bump.  (The
original logic returned null instead of throwing.)

Test: builds, boots
Bug: 62427252, 62431886, 62427329
Bug: 62468911, 62431162, 62428935, 62429096
Bug: 37290820, 37359238, 36886243
Bug: 30143923, 35761231, 62192626, 29829689
Change-Id: I83d723f598cb0ee1fe198e65debd86ef7fd0420c
2017-06-12 10:26:01 -06:00
Chris Thornton
722550cc3c Merge "Prevent ConcurrentModificationException in updateAllRecognitions" into oc-dev
am: 484fb951e0

Change-Id: Ice2c1b83135368f11884f4d8b2cfab138715e69a
2017-06-12 16:25:59 +00:00
Chris Thornton
484fb951e0 Merge "Prevent ConcurrentModificationException in updateAllRecognitions" into oc-dev 2017-06-12 15:54:33 +00:00
Evan Laird
1e830567a5 Merge "Round the slashes of SlashDrawable" into oc-dr1-dev
am: e1f9b3f195

Change-Id: Ie5974f71084b99c27decadd0522af2a8a46e304d
2017-06-12 15:49:52 +00:00
TreeHugger Robot
e1f9b3f195 Merge "Round the slashes of SlashDrawable" into oc-dr1-dev 2017-06-12 15:42:21 +00:00
Geoffrey Pitsch
eefa3be55d Change FlakyTest to Ignores
These are failing reliably, no need for FlakyTest

Bug: 62475085
Test: runtest systemui
Change-Id: Ib9abedda149976cffe07ea75c7034dd290d1f715
2017-06-12 10:55:28 -04:00
Android Build Merger (Role)
2c23595e7d Merge "Change the multipath hint default to 0. am: d1e7d3d73e am: 9620595965" into oc-dr1-dev-plus-aosp 2017-06-12 12:39:47 +00:00
Lorenzo Colitti
b5401d610b Change the multipath hint default to 0. am: d1e7d3d73e
am: 9620595965

Change-Id: Icf1707e4a179bf8835ec9f7be031e9a74e638625
2017-06-12 12:37:13 +00:00
Lorenzo Colitti
dc5fb1ffe1 Change the multipath hint default to 0. am: d1e7d3d73e
am: 896a0065a6

Change-Id: Ie6611ee7f9169a53132a6e664814bc579d70170d
2017-06-12 12:37:07 +00:00
Lorenzo Colitti
9620595965 Change the multipath hint default to 0.
am: d1e7d3d73e

Change-Id: Iab590e33a1ae64701f0023970d53b23470533962
2017-06-12 12:29:31 +00:00
Lorenzo Colitti
896a0065a6 Change the multipath hint default to 0.
am: d1e7d3d73e

Change-Id: I7fdd9eb04e3b92bd28218fc3a33a6157f84cdc2f
2017-06-12 12:29:30 +00:00
Lorenzo Colitti
d1e7d3d73e Change the multipath hint default to 0.
It was set to 3 (handover+reliability) during the development
cycle, but should not be set to a nonzero value on user devices
until the returned value takes into account the amount of
non-default network data usage.

Bug: 34630278
Test: marlin builds and boots
Test: ConnectivityServiceTest passes
Change-Id: I2b09a6e09c497886862cbaaaf3b283dedfbfa94c
2017-06-12 21:18:07 +09:00
Erik Kline
9f409ae862 Merge "Add additional mocking for Context innards" into oc-dr1-dev
am: cdb134c012  -s ours

Change-Id: I6715134fe1883dc2d4613b38478d60f0ad2c33fe
2017-06-12 05:13:17 +00:00