Commit Graph

309172 Commits

Author SHA1 Message Date
TreeHugger Robot
3ebd2b6bca Merge "Ensure that we tint PiP actions to be consistent." 2017-02-22 20:52:54 +00:00
TreeHugger Robot
555edd9503 Merge "VRManager: Set initial sleep state to 'AWAKE'" 2017-02-22 20:47:28 +00:00
Winson Chung
55893331fb Ensure we use the fullscreen stack bounds when expanding PiP.
- When in split screen, the PiP needs to animate to the fullscreen stack
  bounds when expanding.
- Created PinnedStackWindowController to house pinned-stack specific
  logic.

Bug: 35396882
Test: Expand PiP activity while split

Change-Id: If7397843743ce11b676f5566eba90e3442289fec
Signed-off-by: Winson Chung <winsonc@google.com>
2017-02-22 12:46:53 -08:00
Jeff Sharkey
3aa3a007f8 Merge "Split cache clearing into two phases." 2017-02-22 20:25:17 +00:00
TreeHugger Robot
54eb1d4910 Merge "Create am no-home-screen command." 2017-02-22 20:16:22 +00:00
TreeHugger Robot
a38649b19b Merge "Fix bug in auto launching with one entry." 2017-02-22 20:12:48 +00:00
TreeHugger Robot
120f971679 Merge "Disable settings nav drawer entirely." 2017-02-22 20:08:37 +00:00
Jean-Michel Trivi
0f49f82e97 VideoView: option for audio focus, support for AudioAttributes
Add API for VideoView to select whether it uses audio focus during
  playback, and how.
Add support for AudioAttributes

Test: cts-tradefed run cts -m CtsWidgetTestCases -t android.widget.cts.VideoViewTest
Bug 30955183
Bug 30258418

Change-Id: I581d32c79c78b8197ded2319e0d5bfdc35b93c5e
2017-02-22 12:04:24 -08:00
Leon Scroggins
11eb33214e Merge "underline is now only tracked by android" 2017-02-22 20:02:12 +00:00
Felipe Leme
0257c8a5d2 Fixed missing auto-fill save callbacks on TextView.
It was accidentally broken during a previous commit where the CTS test
failure was ignored by a known issue being fixed in another change -
this change fixes both problems.

Bug: 33550221
Bug: 3380254
Test: CtsAutoFillServiceTestCases pass (for real now :-)
Change-Id: I5b2aa6060995ca255e51d85aa6ec93a886fa522f
2017-02-22 11:57:53 -08:00
Hyunyoung Song
9ac142a61f Merge "Default android app icon should use <adaptive-icon> Test: install apk without application icon. manually check on default launcher." 2017-02-22 19:52:42 +00:00
TreeHugger Robot
873dd2ccff Merge "Fix issues with assistant stack visibility." 2017-02-22 19:50:43 +00:00
Julia Reynolds
31b2baac8d Add missing sound to important channels.
Test: runtest systemui-notification
Change-Id: I7b091d312220e3830f2cd613b7ac08f75c5f0a8c
2017-02-22 14:49:23 -05:00
TreeHugger Robot
9857ab99e4 Merge "Unhide root MIME type." 2017-02-22 19:45:48 +00:00
Abodunrinwa Toki
5e8092a118 Merge "FloatingToolbar: Menu items with icon + text." 2017-02-22 19:45:39 +00:00
Adam Lesinski
d48944a745 AAPT2: Rename strip phase to optimize
- Allow resource deduping, version collapsing, and sparse resource
  encoding.

Test: manual
Change-Id: Ia4aa892ab5b06ba1d5ea4a6efb51b00bc3a980c4
2017-02-22 11:41:55 -08:00
TreeHugger Robot
1f58d0b83c Merge "AOD: readd AOD settings on debuggable builds" 2017-02-22 19:39:46 +00:00
TreeHugger Robot
f5da23114d Merge "Improved documentation and added @CallSuper on onProvideAutoFillStructure()." 2017-02-22 19:39:18 +00:00
TreeHugger Robot
e08856454f Merge "Rename CameraService to CameraServiceProxy" 2017-02-22 19:36:58 +00:00
TreeHugger Robot
78e63bd64a Merge "Import translations. DO NOT MERGE" 2017-02-22 19:36:41 +00:00
Julia Reynolds
7d4d8e2dd3 Merge "Grant notification listener access to overlay pkgs" 2017-02-22 19:35:15 +00:00
TreeHugger Robot
b6eb3ebf26 Merge "Import translations. DO NOT MERGE" 2017-02-22 19:34:01 +00:00
Siyamed Sinir
e09e529085 Merge "Revert "Don't copy NoCopySpans in SpannableStringInternal"" 2017-02-22 19:28:07 +00:00
TreeHugger Robot
db82159669 Merge "Import translations. DO NOT MERGE" 2017-02-22 19:27:07 +00:00
Daniel Nishi
0f703e64e3 Add a flag to enable/disable the cache quota calc.
Bug: 34770259
Test: ServicesTests
Change-Id: I74155203c4802b1a3b89117859002bf40b1ca435
2017-02-22 11:24:10 -08:00
Adam Lesinski
ceb9b2f80f AAPT2: Shared library support
Test: make aapt2_tests
Change-Id: I98dddf1367e6c0ac425bb20be46e6ff05f4f2f45
2017-02-22 11:16:13 -08:00
Philip P. Moltmann
576a847e03 Don't trigger auto-fill request if mode is manual
Also improve descriptions of the attributes, constants and methods.

Test: Ran updated ViewAttributesTest
Bug: 34077687
Change-Id: I532f1b26b97ba113f316eed6fc68dae2ed33ea6a
2017-02-22 11:05:46 -08:00
Winson Chung
56fe8833c7 Ensure that we tint PiP actions to be consistent.
Test: Launch PiP with actions, ensure they are white
Bug: 34281934
Change-Id: I3d301928af80a14ee6d161492c55a62b720d3cca
2017-02-22 11:05:11 -08:00
Hall Liu
52084367c0 Merge "Introduce APIs for RTT calls (part 1)" am: 27ad05169e am: d83b06cd31
am: ba6c607728

Change-Id: I02e7291091d2452cb7cdb7351c8744606b340e76
2017-02-22 19:05:03 +00:00
Hall Liu
ba6c607728 Merge "Introduce APIs for RTT calls (part 1)" am: 27ad05169e
am: d83b06cd31

Change-Id: Id3608cf918d829ed785d7b75dffa6b6ce6990f34
2017-02-22 19:00:55 +00:00
TreeHugger Robot
1e14b5bb6a Merge "Import translations. DO NOT MERGE" 2017-02-22 19:00:30 +00:00
TreeHugger Robot
7843f0a799 Merge "Added auto-fill listeners for RadioGroup and CompoundButton." 2017-02-22 18:58:54 +00:00
Hall Liu
d83b06cd31 Merge "Introduce APIs for RTT calls (part 1)"
am: 27ad05169e

Change-Id: I3fb3cb89b467e5df808967dcd478964a84e2e61f
2017-02-22 18:56:48 +00:00
TreeHugger Robot
00a3c9358b Merge "Fixes dragging divider up in splitscreen puts the docked stack behind" 2017-02-22 18:53:13 +00:00
Hall Liu
27ad05169e Merge "Introduce APIs for RTT calls (part 1)" 2017-02-22 18:48:53 +00:00
Wale Ogunwale
791a887701 Updated some internal apps to use TYPE_APPLICATION_OVERLAY
TYPE_SYSTEM_ALERT is deprecated as of O.

Test: builds
Change-Id: Ic335ff0aa2f0356737c2e67debe8e71ea9eb2f41
2017-02-22 10:47:26 -08:00
Jeff Sharkey
458428ea66 Split cache clearing into two phases.
Use newly defined "V2_DEFY_QUOTA" flag to split cache clearing into
two phases: clearing data for apps above their quotas, and then
pushing deeper by clearing data for apps below their quotas.

Add placeholder comments for other data types that we're planning to
add shortly.  Route all clearing behavior through this new method,
which remains guarded behind a flag for now.

Test: builds, boots
Bug: 34692014
Change-Id: I678d7b4e2bf6c837dd8a9adbc36a53015907f75f
2017-02-22 11:47:17 -07:00
Lei Yu
b0833461e4 Merge "Make precentage calculation round up by 0.5%" 2017-02-22 18:44:38 +00:00
Selim Cinek
905af16a9c Merge "Fixed some notification leaks" 2017-02-22 18:40:52 +00:00
Antony Sargent
8b0813c3e4 Merge "Add "Instant apps" filter to app listing" 2017-02-22 18:40:43 +00:00
Fan Zhang
5ba2d3fef9 Disable settings nav drawer entirely.
Change-Id: I3e9bdd3759a47fc09a654b6dad00b611138d5de6
Fix: 34806148
Test: make RunSettingsLibRoboTests
2017-02-22 10:36:30 -08:00
Bryce Lee
609bf65668 Update DisplayAdjustments in Display from Resources.
Previously, a copy of DisplayAdjustments was provided during Display
construction. If the Display instance is held, the adjustments would
not update. However, the DisplayInfo would, leading to a mismatch.

This changelist adds a reference to the Resources, which can be
queried to provide the latest adjustments.

Fixes: 33430498
Test: manual from bug repro steps.
Test: make -j32 cts; cts-tradefed; run cts --module CtsAppTestCases --test android.app.cts.DisplayTest#testRotation

Change-Id: Ida2ed3990add885d06b011494af24b055343f3fa
2017-02-22 10:27:34 -08:00
George Mount
27b0dc0287 Expose isStateSaved() in FragmentManager.
Bug 35594367

Protect the FragmentManager during onBackPressed() from
changing the state after the state was saved.

Test: I15891a70699308eddda4e55fa0eb96064ffa7b17
Change-Id: I10f823801e85ca200351a64b14975c4421b9068b
2017-02-22 10:06:10 -08:00
Chad Brubaker
8ef92bce82 Merge "Limit Instant App notifications" 2017-02-22 18:04:43 +00:00
Hakan Seyalioglu
873cbfd19a Fix bug in auto launching with one entry.
bug: 35422006
Test: Confirmed linked bug is fixed with manual test.

Change-Id: Ie5d237c2b85f274b26f913dba3dff585c2547a2b
2017-02-22 09:56:03 -08:00
Bryan Cassell
f4c2a52be3 Added VSYNC and INTENDED_VSYNC timestamps to FrameMetrics API.
BUG: b/31650117

Test: cts-tradefed run singleCommand cts --skip-device-info
--skip-preconditions -m CtsViewTestCases -t
android.view.cts.FrameMetricsListenerTest

Change-Id: I8341809b6dac420859dad8c21f30d4ee8897425d
2017-02-22 09:49:32 -08:00
Wei Wang
ed7f548832 Rename CameraService to CameraServiceProxy
Bug: 32976450
Test: on marlin, camera app works fine
Change-Id: I71890c6814f97e461b0161fed6c31c041c9bfe59
2017-02-22 09:41:41 -08:00
Robin Lee
acdeac6809 Fix broken RestrictedLockUtils KeyGuard APIs
They were all broken in that they returned profile admins for parent
queries even when they clearly shouldn't.

Examples:
 - disable unredacted notifications
 - disable fingerprint

This doesn't seem to have been tested beyond the bare basics of one
user with one device admin. Added some reasonable coverage. It could
still do with more.

Test: make RunSettingsLibRoboTests
Bug: 34929375
Change-Id: I1b0e986056ffa62d47091c0010977ac810ebd690
2017-02-22 17:39:34 +00:00
Mark Urbanus
72729f9236 VRManager: Set initial sleep state to 'AWAKE'
Problem:
Home screen isn't allowed to enter VR mode as part of boot.

Root-cause:
VRManager is not indicating VR Mode is allowed until the system sleep
state gets synchronized.
Because the initial sleep state during boot is AWAKE and remains AWAKE if no
lock-screen is set, VrManager fails to mark VrMode as available due to a
mismatch between its initial internal sleep state and the systems sleep state.
VrManager's initial sleep state is SLEEP, where the system's initial sleep
state is AWAKE.

Solution: Set VrManager's initial sleep state to AWAKE to match the system.

Bug: 35469244
Test: - Validated VrHome comes up properly
      - Tested VrMode is not allowed when the lock-screen is shown
      - Tested VrMode is not allowed when the display is off
      - Tested VrMode is allowed when no lock-screen is set AND the display
        is on.

Change-Id: I42e9da07db21b3ed034c4173fe329cbb7796ee7e
2017-02-22 17:22:32 +00:00
Winson Chung
e74ad8d498 Fix issues with assistant stack visibility.
- Ensure that we don't mark the docked or fullscreen stacks as
  invisible when the assistant stack is over them and translucent.

Bug: 35363819
Test: android.server.cts.ActivityManagerAssistantStackTests
Test: #testTranslucentAssistantActivityStackVisibility

Change-Id: I86698beec4963942dd3816e7d3f43c6614d892ac
2017-02-22 09:15:03 -08:00