OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Add hidden API startActivityForResultAsUser" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 12:13:00 +0000 (12:13 +0000)]
Merge "Add hidden API startActivityForResultAsUser" into oc-dev

7 years agoMerge "ViewRoot: More surgically fix child-life time." into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 08:25:05 +0000 (08:25 +0000)]
Merge "ViewRoot: More surgically fix child-life time." into oc-dev

7 years agoMerge "Binder: Be forceful about a forceful exit." into oc-dev
Narayan Kamath [Thu, 13 Apr 2017 08:16:45 +0000 (08:16 +0000)]
Merge "Binder: Be forceful about a forceful exit." into oc-dev

7 years agoMerge "Remove supportsDismissingSelfWindow attribute of IME" into oc-dev
Tadashi G. Takaoka [Thu, 13 Apr 2017 07:41:29 +0000 (07:41 +0000)]
Merge "Remove supportsDismissingSelfWindow attribute of IME" into oc-dev

7 years agoMerge "Stack APPLICATION_MEDIA_OVERLAY windows with relative layering." into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 07:12:51 +0000 (07:12 +0000)]
Merge "Stack APPLICATION_MEDIA_OVERLAY windows with relative layering." into oc-dev

7 years agoMerge "Minor text fixes." into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 07:00:54 +0000 (07:00 +0000)]
Merge "Minor text fixes." into oc-dev

7 years agoMerge "AAPT2: Generate R.txt" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 06:54:18 +0000 (06:54 +0000)]
Merge "AAPT2: Generate R.txt" into oc-dev

7 years agoMerge "Catch exceptions in Vibrator to maintain compatibility" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 06:48:25 +0000 (06:48 +0000)]
Merge "Catch exceptions in Vibrator to maintain compatibility" into oc-dev

7 years agoMerge "OMS: Fix bug where overlay settings wouldn't persist" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 06:42:48 +0000 (06:42 +0000)]
Merge "OMS: Fix bug where overlay settings wouldn't persist" into oc-dev

7 years agoMerge changes from topic 'api-review' into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 06:23:45 +0000 (06:23 +0000)]
Merge changes from topic 'api-review' into oc-dev

* changes:
  MediaCas: combine openSession methods
  MediaCas: address comments for API reviews

7 years agoStack APPLICATION_MEDIA_OVERLAY windows with relative layering.
Robert Carr [Tue, 11 Apr 2017 01:34:33 +0000 (18:34 -0700)]
Stack APPLICATION_MEDIA_OVERLAY windows with relative layering.

See accompanying frameworks/native commit
 "SurfaceFlinger: Add parent-less relative layering" for a full explanation.

Test: Manual of bug repro steps. Plus tests for new SurfaceControl functionality included in frameworks/native.
Bug: 36693738
Change-Id: Ic54598117c1f44a206d33f03d0cc463fbef43fcc

7 years agoMerge "Use Context#startForegroundService in MTP provider" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 04:36:45 +0000 (04:36 +0000)]
Merge "Use Context#startForegroundService in MTP provider" into oc-dev

7 years agoMerge "Report app data fixup and prepare timings" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 04:08:17 +0000 (04:08 +0000)]
Merge "Report app data fixup and prepare timings" into oc-dev

7 years agoMerge "Revert "Make scrollbarSize in Material Design theme configurable"" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 03:36:23 +0000 (03:36 +0000)]
Merge "Revert "Make scrollbarSize in Material Design theme configurable"" into oc-dev

7 years agoMerge "Add set-mode command to turn battery saver mode on and off." into oc-dev
Jocelyn Dang [Thu, 13 Apr 2017 02:50:48 +0000 (02:50 +0000)]
Merge "Add set-mode command to turn battery saver mode on and off." into oc-dev

7 years agoMerge "Update NPMS internal state when app idle parole state is changed." into oc-dev
Sudheer Shanka [Thu, 13 Apr 2017 01:53:28 +0000 (01:53 +0000)]
Merge "Update NPMS internal state when app idle parole state is changed." into oc-dev

7 years agoMerge "Fix regression when removing task." into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 01:29:27 +0000 (01:29 +0000)]
Merge "Fix regression when removing task." into oc-dev

7 years agoMerge "Work on issue #36427964: SecurityException: Unable to find app..." into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 01:27:50 +0000 (01:27 +0000)]
Merge "Work on issue #36427964: SecurityException: Unable to find app..." into oc-dev

7 years agoMerge "Added strings for thermal shutdown warning" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 00:51:22 +0000 (00:51 +0000)]
Merge "Added strings for thermal shutdown warning" into oc-dev

7 years agoMerge "Dump controller for AppWindowToken" into oc-dev
TreeHugger Robot [Thu, 13 Apr 2017 00:43:38 +0000 (00:43 +0000)]
Merge "Dump controller for AppWindowToken" into oc-dev

7 years agoMerge "Revert "Ensure visible activities when device is unlocked."" into oc-dev
Wale Ogunwale [Thu, 13 Apr 2017 00:39:12 +0000 (00:39 +0000)]
Merge "Revert "Ensure visible activities when device is unlocked."" into oc-dev

7 years agoRevert "Ensure visible activities when device is unlocked."
Wale Ogunwale [Thu, 13 Apr 2017 00:36:34 +0000 (00:36 +0000)]
Revert "Ensure visible activities when device is unlocked."

Causes issues with window life-cycle...

Bug: 37119770
Bug: 37244415
Bug: 37281544
This reverts commit 7004a8801d0a60013681a86043bab74b4d42d680.

Change-Id: I0039db6e44488cd82ef745aa979bc8549fd8aeed

7 years agoMerge "Expose more settings to Instant Apps" into oc-dev
Chad Brubaker [Wed, 12 Apr 2017 23:51:37 +0000 (23:51 +0000)]
Merge "Expose more settings to Instant Apps" into oc-dev

7 years agoMerge "Fix focus ordering with duplicate ids" into oc-dev
Evan Rosky [Wed, 12 Apr 2017 23:49:57 +0000 (23:49 +0000)]
Merge "Fix focus ordering with duplicate ids" into oc-dev

7 years agoMerge "Revert "Make selection end handle stick to selection at line end."" into oc-dev
Roozbeh Pournader [Wed, 12 Apr 2017 23:22:33 +0000 (23:22 +0000)]
Merge "Revert "Make selection end handle stick to selection at line end."" into oc-dev

7 years agoMerge "Fix auto-pip visibility issues." into oc-dev
Rob Carr [Wed, 12 Apr 2017 22:46:22 +0000 (22:46 +0000)]
Merge "Fix auto-pip visibility issues." into oc-dev

7 years agoMerge changes from topics 'KeyboardFocusHighlight-oc-dev', 'KeyboardFocusHighlight_...
TreeHugger Robot [Wed, 12 Apr 2017 22:40:06 +0000 (22:40 +0000)]
Merge changes from topics 'KeyboardFocusHighlight-oc-dev', 'KeyboardFocusHighlight_ mDefaultFocusHighlightEnabled-oc-dev', 'KeyboardFocusHighlight_ hasFocusStateSpecified-oc-dev' into oc-dev

* changes:
  Fix broken CTS tests.
  Draw a default focus highlight if needed.
  Add a public API defaultFocusHighlightEnabled.
  Detect unhandled keyboard focused state.

7 years agoAdd set-mode command to turn battery saver mode on and off.
Jocelyn Dang [Fri, 31 Mar 2017 21:03:37 +0000 (14:03 -0700)]
Add set-mode command to turn battery saver mode on and off.

Affected test will be modified in ag/2101279

Test: adb shell cmd battery unplug && adb shell cmd power set-mode 0
Bug: 31944272
Change-Id: Ia88e7e164aa9b8b4d0ab51f607a64b35e2159273

7 years agoMerge "clear calling identity before calling settings provider" into oc-dev
TreeHugger Robot [Wed, 12 Apr 2017 22:09:19 +0000 (22:09 +0000)]
Merge "clear calling identity before calling settings provider" into oc-dev

7 years agoMerge "Add p2 option in openLogicalChannel." into oc-dev
Amit Mahajan [Wed, 12 Apr 2017 22:02:34 +0000 (22:02 +0000)]
Merge "Add p2 option in openLogicalChannel." into oc-dev

7 years agoMerge "Allow appops command to modify uid ops." into oc-dev
Dianne Hackborn [Wed, 12 Apr 2017 21:37:47 +0000 (21:37 +0000)]
Merge "Allow appops command to modify uid ops." into oc-dev

7 years agoUpdate NPMS internal state when app idle parole state is changed.
Sudheer Shanka [Wed, 12 Apr 2017 21:29:14 +0000 (14:29 -0700)]
Update NPMS internal state when app idle parole state is changed.

Fixes: 37250313
Test: 1. cts-tradefed run singleCommand cts-dev --module CtsHostsideNetworkTests -t \
      com.android.cts.net.HostsideRestrictBackgroundNetworkTests
      2. runtest -c com.android.server.NetworkPolicyManagerServiceTest frameworks-services
Change-Id: I5fcac397116a07fe9015b7dabf5bca57b0b23176

7 years agoMerge "[DO NOT MERGE] Allow multiple toasts for the focused app" into cw-f-dev am...
Svet Ganov [Wed, 12 Apr 2017 21:21:56 +0000 (21:21 +0000)]
Merge "[DO NOT MERGE] Allow multiple toasts for the focused app" into cw-f-dev am: 39c3d2cf16
am: 91ed4d7553  -s ours

Change-Id: Ia744f56107b83b6a5d5e236d24641bd7db71ab02

7 years agoDO NOT MERGE: Remove the development privelege level from SET_DISPLAY_OFFSET. am...
Julius D'souza [Wed, 12 Apr 2017 21:20:47 +0000 (21:20 +0000)]
DO NOT MERGE: Remove the development privelege level from SET_DISPLAY_OFFSET. am: 0a8ecc6886
am: f72dd4142b  -s ours

Change-Id: Ia99beb815b720219daecfdc9446c5ff2c4d1b16f

7 years agoMerge "Add autofill feature API" into oc-dev
TreeHugger Robot [Wed, 12 Apr 2017 21:17:29 +0000 (21:17 +0000)]
Merge "Add autofill feature API" into oc-dev

7 years agoMerge "[DO NOT MERGE] Allow multiple toasts for the focused app" into cw-f-dev
Svet Ganov [Wed, 12 Apr 2017 21:11:57 +0000 (21:11 +0000)]
Merge "[DO NOT MERGE] Allow multiple toasts for the focused app" into cw-f-dev
am: 39c3d2cf16

Change-Id: I3ddf7e0ceadd7c179f3c7de198658af190985f1b

7 years agoMerge "Add API to get a uid's current importance." into oc-dev
Dianne Hackborn [Wed, 12 Apr 2017 21:11:40 +0000 (21:11 +0000)]
Merge "Add API to get a uid's current importance." into oc-dev

7 years agoDO NOT MERGE: Remove the development privelege level from SET_DISPLAY_OFFSET.
Julius D'souza [Wed, 12 Apr 2017 21:10:49 +0000 (21:10 +0000)]
DO NOT MERGE: Remove the development privelege level from SET_DISPLAY_OFFSET.
am: 0a8ecc6886

Change-Id: I262e7497e9256f708847ba7c767f202c91aa1739

7 years agoMerge ""bmgr restore" really should wait until operation finishes." into oc-dev
Makoto Onuki [Wed, 12 Apr 2017 21:10:32 +0000 (21:10 +0000)]
Merge ""bmgr restore" really should wait until operation finishes." into oc-dev

7 years agoMerge "Fix issue #37220301: Allow broadcasts with permissions to not be restricted...
Dianne Hackborn [Wed, 12 Apr 2017 21:09:59 +0000 (21:09 +0000)]
Merge "Fix issue #37220301: Allow broadcasts with permissions to not be restricted" into oc-dev

7 years agoMerge "Deprecate findAddress() method" into oc-dev
Selim Gurun [Wed, 12 Apr 2017 21:05:03 +0000 (21:05 +0000)]
Merge "Deprecate findAddress() method" into oc-dev

7 years agoMerge "[DO NOT MERGE] Allow multiple toasts for the focused app" into cw-f-dev
TreeHugger Robot [Wed, 12 Apr 2017 21:00:21 +0000 (21:00 +0000)]
Merge "[DO NOT MERGE] Allow multiple toasts for the focused app" into cw-f-dev

7 years agoOMS: Fix bug where overlay settings wouldn't persist
Adam Lesinski [Tue, 11 Apr 2017 19:01:10 +0000 (12:01 -0700)]
OMS: Fix bug where overlay settings wouldn't persist

The dead user check was using a List.removeAll() call to find
the subset of users that have been removed and need deleting
from the overlay settings. The target class, UserInfo, does not
implement equals(), therefore no UserInfos would be removed from
the set and all user IDs would be candidates for deleting.

This change avoids the UserInfo class entirely and manipulates userIds.

Bug: 36099320
Test: Pick a theme and reboot.
Test: Theme should still be applied on next boot.
Change-Id: I1ee57839515460bf578664dfe1bd67df7d10d041

7 years agoMerge "Make QS light" into oc-dev
TreeHugger Robot [Wed, 12 Apr 2017 20:43:13 +0000 (20:43 +0000)]
Merge "Make QS light" into oc-dev

7 years agoDump controller for AppWindowToken
Wale Ogunwale [Wed, 12 Apr 2017 20:39:59 +0000 (13:39 -0700)]
Dump controller for AppWindowToken

To help with debugging.

Bug: 36097078
Test: N/A
Change-Id: I72108b918d839b67efe8b8eed65a33775bd94dbc

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
Bill Yi [Wed, 12 Apr 2017 20:19:34 +0000 (20:19 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Allow instant app resolution for any user" into oc-dev
TreeHugger Robot [Wed, 12 Apr 2017 19:45:50 +0000 (19:45 +0000)]
Merge "Allow instant app resolution for any user" into oc-dev

7 years agoMerge "Update Typeface.Builder API to reflect API feedback." into oc-dev
Seigo Nonaka [Wed, 12 Apr 2017 19:39:41 +0000 (19:39 +0000)]
Merge "Update Typeface.Builder API to reflect API feedback." into oc-dev

7 years agoMerge "Rename WEB_ACTION_ENABLED to INSTANT_APPS_ENABLED" into oc-dev
TreeHugger Robot [Wed, 12 Apr 2017 19:39:12 +0000 (19:39 +0000)]
Merge "Rename WEB_ACTION_ENABLED to INSTANT_APPS_ENABLED" into oc-dev

7 years agoMerge "Add documentation for 'am start-foreground-service'" into oc-dev
TreeHugger Robot [Wed, 12 Apr 2017 19:37:22 +0000 (19:37 +0000)]
Merge "Add documentation for 'am start-foreground-service'" into oc-dev

7 years agoMerge "Clear calling identity before verifying listeners" into oc-dev
Julia Reynolds [Wed, 12 Apr 2017 19:13:01 +0000 (19:13 +0000)]
Merge "Clear calling identity before verifying listeners" into oc-dev

7 years agoViewRoot: More surgically fix child-life time.
Robert Carr [Wed, 12 Apr 2017 19:01:00 +0000 (12:01 -0700)]
ViewRoot: More surgically fix child-life time.

A more targeted version of "ViewRootImpl: Fix child lifetime".
In this version we avoid hijacking the window visibility callback
and introduce a new path.
Our contract has been that at any time after returning from
onStop, the WindowManager may destroy the clients Surface. We
see in setWindowStopped, we set the stopped state on the hardware
renderer in order to prevent further use of the Surface. However
there is nothing synchronously dispatching this change to child views
and so SurfaceView is not necessarily informed to release it's Surface
in time. Typically SurfaceView will be informed through the
onWindowVisibilityChanged callback. The signal producing this
is emitted from SystemServer prior to onStop but has to pass
through the clients handler thread. It seems this has always been
broken, and we have always had intermittent reports of EGL_BAD_ALLOC
scenarios. I speculate that elevation of WindowManager scheduling during
app close scenarios is perhaps making this more severe, as it seems to
ensure the WindowManger will win the race to destroy the Surface before
the client handler thread process onWindowVisibilityChanged (unless
the FIFO timeout is surpassed).

Test: Put Chrome in PiP. Turn screen off. No Crash!
Bug: 36561071
Change-Id: I9233ba8151c7f577b1d1044afc0c2ac3a65be4b4

7 years agoDO NOT MERGE: Remove the development privelege level from SET_DISPLAY_OFFSET.
Julius D'souza [Wed, 12 Apr 2017 06:41:27 +0000 (23:41 -0700)]
DO NOT MERGE: Remove the development privelege level from SET_DISPLAY_OFFSET.

Bug: 36515029
Test: the build still works.
Change-Id: I39ae2c55b6b2b0d6547f75f4ef06e62e3e5f0b84
(cherry picked from commit 8e9ea907448c49f573dd045707e37dd14efdf152)

7 years agoMerge "Improved multiuser support for A11y button/Magnification" into oc-dev
Casey Burkhardt [Wed, 12 Apr 2017 19:04:12 +0000 (19:04 +0000)]
Merge "Improved multiuser support for A11y button/Magnification" into oc-dev

7 years agoMerge "Fill UI polish" into oc-dev
TreeHugger Robot [Wed, 12 Apr 2017 18:54:28 +0000 (18:54 +0000)]
Merge "Fill UI polish" into oc-dev

7 years agoAdded strings for thermal shutdown warning
Salvador Martinez [Mon, 10 Apr 2017 18:18:31 +0000 (11:18 -0700)]
Added strings for thermal shutdown warning

Strings for thermal shutdown warning were missing
so this CL adds them and a proto message value.

Test: SysUI tests still pass
Bug: 30994946
Change-Id: Ifd0b26248c2ebae5bcf32ecbea2566c14be7dc32

7 years agoMerge "Updates reportChooserSelection to be synchronized with queryUsageStats in...
TreeHugger Robot [Wed, 12 Apr 2017 18:33:18 +0000 (18:33 +0000)]
Merge "Updates reportChooserSelection to be synchronized with queryUsageStats in UsageStatsService, to fix a flaky test." into oc-dev

7 years agoMerge "Don't offer snooze for foreground service notifications" into oc-dev
Mady Mellor [Wed, 12 Apr 2017 18:27:23 +0000 (18:27 +0000)]
Merge "Don't offer snooze for foreground service notifications" into oc-dev

7 years agoMerge "Disallow direct-boot aware activities to bypass work lock" into oc-dev
Charles He [Wed, 12 Apr 2017 18:25:46 +0000 (18:25 +0000)]
Merge "Disallow direct-boot aware activities to bypass work lock" into oc-dev

7 years agoFix broken CTS tests.
Jiaquan He [Fri, 7 Apr 2017 16:25:10 +0000 (09:25 -0700)]
Fix broken CTS tests.

The default focus highlight should be necessary when the view is
attached to window.

Test: cts-tradefed run singleCommand cts --skip-device-info
--skip-preconditions --abi armeabi-v7a -m CtsViewTestCases -t
android.view.cts.ViewTest
Test: cts-tradefed run singleCommand cts --skip-device-info
--skip-preconditions --abi armeabi-v7a -m CtsWidgetTestCases -t
android.widget.cts.MediaControllerTest
Bug: 37082416

Change-Id: I5d6b0c00b5ba03c8f62e4f71be9336823a73134b

7 years agoDraw a default focus highlight if needed.
Jiaquan He [Mon, 6 Feb 2017 23:59:26 +0000 (15:59 -0800)]
Draw a default focus highlight if needed.

This commit draws a default highlight for a focused
View if it's detected to have no state_focused defined
and its useDefaultFocusHighlight attribute is true.

When we detect a default highlight is needed, we show it
on top of the view to. Once we detect that it's no longer
needed, we remove it.

Test: Check that views without a focused_state in its
state spec have a default highlight when they get focused.
Bug: 35096940

Change-Id: Ifbe4bb9e1297d98845314e24d8b758f14e5987a9

7 years agoAdd a public API defaultFocusHighlightEnabled.
Jiaquan He [Thu, 2 Feb 2017 19:54:12 +0000 (11:54 -0800)]
Add a public API defaultFocusHighlightEnabled.

This commit adds a public API to turn on/off default
focus highlights. When a focused View is detected to
have no state_focused defined, we can use this API to
decide wether we should show a default highlight for it.

Test: cts-tradefed run singleCommand cts --skip-device-info
--skip-preconditions --abi armeabi-v7a -m CtsViewTestCases
-t android.view.cts.View_DefaultFocusHighlightTest
Bug: 35096940

Change-Id: I76b45d6bf5761641a0ed7f4d0b04cb325ed72b52

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Wed, 12 Apr 2017 18:17:48 +0000 (18:17 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoRevert "Make scrollbarSize in Material Design theme configurable"
Vladislav Kaznacheev [Wed, 12 Apr 2017 18:01:36 +0000 (18:01 +0000)]
Revert "Make scrollbarSize in Material Design theme configurable"

This reverts commit 98329f4da372e2ab00565b88df785620856cfb65.

Bug: 35432058
Test: android.view.cts.ViewTest passes
Change-Id: I4c76450a47b581a8237108180806845f5f66ac39

7 years agoMerge "Do not enforce paragraph constraint for copy ctr" into oc-dev
Siyamed Sinir [Wed, 12 Apr 2017 18:09:50 +0000 (18:09 +0000)]
Merge "Do not enforce paragraph constraint for copy ctr" into oc-dev

7 years ago"bmgr restore" really should wait until operation finishes.
Makoto Onuki [Wed, 12 Apr 2017 17:10:22 +0000 (10:10 -0700)]
"bmgr restore" really should wait until operation finishes.

Test: manual test
Bug 37246838

Change-Id: Ice381dc250e2d2a59cff48152dd3c8d6897d0804

7 years agoMerge "Add new "work queue" feature to JobScheduler." into oc-dev
Dianne Hackborn [Wed, 12 Apr 2017 17:55:49 +0000 (17:55 +0000)]
Merge "Add new "work queue" feature to JobScheduler." into oc-dev

7 years agoAdd API to get a uid's current importance.
Dianne Hackborn [Wed, 12 Apr 2017 17:54:03 +0000 (10:54 -0700)]
Add API to get a uid's current importance.

This is kind-of useful to go along with monitoring
uid importance changes.

Test: none yet

Change-Id: Ic0f8418955d17ea21d06f49dcd9641bc5f32387b

7 years agoMerge "Revert "Transition from Activity to Broadcast for TV Search"" into oc-dev
TreeHugger Robot [Wed, 12 Apr 2017 17:52:56 +0000 (17:52 +0000)]
Merge "Revert "Transition from Activity to Broadcast for TV Search"" into oc-dev

7 years agoMerge "Change behavior of setBitmap to cleanly reset the canvas" into oc-dev
TreeHugger Robot [Wed, 12 Apr 2017 17:37:01 +0000 (17:37 +0000)]
Merge "Change behavior of setBitmap to cleanly reset the canvas" into oc-dev

7 years agoMerge "Remove unused public APIs." into oc-dev
TreeHugger Robot [Wed, 12 Apr 2017 17:31:38 +0000 (17:31 +0000)]
Merge "Remove unused public APIs." into oc-dev

7 years agoMerge "Fix foreground importance bug in LocationManagerService." into oc-dev
Soonil Nagarkar [Wed, 12 Apr 2017 17:27:40 +0000 (17:27 +0000)]
Merge "Fix foreground importance bug in LocationManagerService." into oc-dev

7 years agoExpose more settings to Instant Apps
Chad Brubaker [Mon, 10 Apr 2017 20:32:37 +0000 (13:32 -0700)]
Expose more settings to Instant Apps

Test: Settings are accessible from an instant app
Change-Id: Ib6e5f603184bc94c8a47f010e1609b3021765403

7 years agoMerge "TIF: add review rating columns to programs" into oc-dev
Dongwon Kang [Wed, 12 Apr 2017 17:12:13 +0000 (17:12 +0000)]
Merge "TIF: add review rating columns to programs" into oc-dev

7 years agoMerge "Disallow task snapshot starting window for intent != ACTION_MAIN" into oc-dev
Jorim Jaggi [Wed, 12 Apr 2017 17:06:10 +0000 (17:06 +0000)]
Merge "Disallow task snapshot starting window for intent != ACTION_MAIN" into oc-dev

7 years agoMerge "Fix NPE in TaskSnapshotController" into oc-dev
Jorim Jaggi [Wed, 12 Apr 2017 17:04:07 +0000 (17:04 +0000)]
Merge "Fix NPE in TaskSnapshotController" into oc-dev

7 years agoMerge "Updates for QS DND tile" into oc-dev
Jason Monk [Wed, 12 Apr 2017 17:00:34 +0000 (17:00 +0000)]
Merge "Updates for QS DND tile" into oc-dev

7 years agoMerge "Visual changes to dual target tiles" into oc-dev
Jason Monk [Wed, 12 Apr 2017 16:59:56 +0000 (16:59 +0000)]
Merge "Visual changes to dual target tiles" into oc-dev

7 years agoMerge "Ensure bounds are updated together." into oc-dev
TreeHugger Robot [Wed, 12 Apr 2017 16:59:28 +0000 (16:59 +0000)]
Merge "Ensure bounds are updated together." into oc-dev

7 years agoMerge "Introduce FILE_ID for TTC fonts and variation fonts." into oc-dev
TreeHugger Robot [Wed, 12 Apr 2017 16:54:43 +0000 (16:54 +0000)]
Merge "Introduce FILE_ID for TTC fonts and variation fonts." into oc-dev

7 years agoAdd autofill feature API
Svet Ganov [Wed, 12 Apr 2017 16:25:20 +0000 (09:25 -0700)]
Add autofill feature API

We now have a software feature for autofill which can be used
by partners to disable it on low-end devices or form factors
for which autofill doesn't make sense.

bug:35956220

Test: manual (requires a custom build)

Change-Id: I6c06462ed9ca3ae93331700dce38a8c08dfd0722

7 years agoFill UI polish
Svet Ganov [Wed, 12 Apr 2017 06:10:43 +0000 (23:10 -0700)]
Fill UI polish

1. Avoid jank when the suggesting list scrolled

2. Remove hard-coded values from max popup height

3. UX requested tweaks

4. Remove dead code

Test: manual

bug:37245055
bug:37179467

Change-Id: I6a6760edb06230e3d4925e23863667cfd3ac0601

7 years agoFix auto-pip visibility issues.
Robert Carr [Wed, 12 Apr 2017 01:24:20 +0000 (18:24 -0700)]
Fix auto-pip visibility issues.

In the case that we defer stop for auto-enter picture
in picture, we should also defer changing the visibility. This causes
particularly awkward issues with SurfaceView as the views are left
in a severed state.

Test: Auto-pip Chrome from youtube. Things look alright!
Bug: 36355266
Bug: 36640131
Change-Id: I77de1c3eb9c61b03740cbe49f88dec1af2ed6577

7 years agoMerge "Use the StorageStatsManager in FileCollector." into oc-dev
Daniel Nishi [Wed, 12 Apr 2017 16:37:47 +0000 (16:37 +0000)]
Merge "Use the StorageStatsManager in FileCollector." into oc-dev

7 years agoDisallow direct-boot aware activities to bypass work lock
Charles He [Wed, 12 Apr 2017 15:22:35 +0000 (16:22 +0100)]
Disallow direct-boot aware activities to bypass work lock

Effectively reverting 89927b3cd96472c478a988d6c731cd09d412a043, which
allowed direct-boot aware activities in the work profile to show before
the profile was unlocked. This causes problems with key eviction
introduced in O. Specifically, many system activities (e.g.
ChooserActivity, activities in Settings, etc.) are marked direct-boot
aware, and therefore can be started while the work profile is locked
with key evicted. Currently they either bypass the keyguard when they
should not, or simply crash due to profile still being locked.

In the future, we need to create a new mechanism to allow activities
such as video calls, alarm clocks, etc. to bypass the work keyguard. It
probably involves checking for something like FLAG_SHOW_WHEN_LOCKED.

Bug: 36961785
Bug: 35708183
Bug: 30296144
Test: manual, by following the steps in the bugs quoted
Test: runtest -c com.android.server.am.ActivityManagerServiceTest frameworks-services
Change-Id: I5ccaaf963f3dd96e4abb785a10aa258b15363178

7 years agoMerge "Fixing content intent on External Storage notification" into oc-dev
Dmitri Plotnikov [Wed, 12 Apr 2017 16:34:27 +0000 (16:34 +0000)]
Merge "Fixing content intent on External Storage notification" into oc-dev

7 years ago[DO NOT MERGE] Allow multiple toasts for the focused app
Svet Ganov [Mon, 5 Dec 2016 17:03:24 +0000 (09:03 -0800)]
[DO NOT MERGE] Allow multiple toasts for the focused app

We don't allow apps to add multiple toast windows to
prevent an attacker to keep adding the same toast as
a workaround for our measure to ensure toast windows
are removed after a timeout. The may cause backwards
compatibility issue for apps that add multiple toasts.
While we need to fix the security vulnerability it is
desirable to make the fix as backwards compatible as
possible. This change allows the focused app to add
as many toast windows as it wants since they will be
removed after the timeout and once the app is not the
one the user uses it will lose the multiple toast add
capability.

bug:30150688

Change-Id: I2d9295926cb49b5bb80c7af2546872ff8ca22c64
(cherry picked from commit 296a60acc3d67cea23bae167dbcb51c0d0d60b23)

7 years agoClear calling identity before verifying listeners
Julia Reynolds [Wed, 12 Apr 2017 13:41:16 +0000 (09:41 -0400)]
Clear calling identity before verifying listeners

Also don't throw when can't verify listener.

And update mocking in tests to clean state between tests.

Bug: 36783632
Fixes: 37263567
Test: runtest-systemui-notification, create a secondary user
Change-Id: I5ec95539c9859b67b8fbc7e6a85334e08e6b5a98

7 years agoMerge "Add hidden SystemApi for two setup wizard actions" into oc-dev
TreeHugger Robot [Wed, 12 Apr 2017 16:07:22 +0000 (16:07 +0000)]
Merge "Add hidden SystemApi for two setup wizard actions" into oc-dev

7 years agoUpdates reportChooserSelection to be synchronized with queryUsageStats
Kang Li [Sat, 25 Feb 2017 01:41:07 +0000 (17:41 -0800)]
Updates reportChooserSelection to be synchronized with queryUsageStats
in UsageStatsService, to fix a flaky test.

Bug: 35763877
Test: manually ran the flaky tests for 50 times, to verify that it is
stable.

Change-Id: I56d355bb283275f33bf7a24d0cc5b6454b99a35e
(cherry picked from commit 434f76a8d739060b5c8e96b4824687c19b94ee79)

7 years agoMerge "VolumeShaper: update API, use "Millis" instead of "Ms"" into oc-dev
Jean-Michel Trivi [Wed, 12 Apr 2017 15:45:49 +0000 (15:45 +0000)]
Merge "VolumeShaper: update API, use "Millis" instead of "Ms"" into oc-dev

7 years agoFix regression when removing task.
Winson Chung [Wed, 12 Apr 2017 01:02:17 +0000 (18:02 -0700)]
Fix regression when removing task.

- Limit removing the task immediately to when there is a single task
  overlay activity. Certain activities may not work when force-removed
  before the clean up work in removeTask() completes especially if the
  finishing activity is a part of a launch process (ie. trampoline
  activity). This behaviour is only needed for finishing activities that
  have actual task overlays.

Bug: 36761629
Test: Launch SiriusXM, and check that it loads
Change-Id: I34c812ab111819e858fe36b6359f82da717ba459

7 years agoMerge "Show x for short period of time when activity is PIP'd" into oc-dev
Mady Mellor [Wed, 12 Apr 2017 15:32:26 +0000 (15:32 +0000)]
Merge "Show x for short period of time when activity is PIP'd" into oc-dev

7 years agoMerge "Optimize HW_AV_SYNC playback by avoiding multiple timestamp block allocations...
Paul Mclean [Wed, 12 Apr 2017 15:16:17 +0000 (15:16 +0000)]
Merge "Optimize HW_AV_SYNC playback by avoiding multiple timestamp block allocations." into oc-dev

7 years agoBinder: Be forceful about a forceful exit.
Narayan Kamath [Wed, 12 Apr 2017 10:50:10 +0000 (11:50 +0100)]
Binder: Be forceful about a forceful exit.

We were previously using exit(1) when code servicing an IPC threw
any subclass of Error. That made it much harder to diagnose cases
where that happened because :

- exit runs global destructors, which might prove problematic (see
  linked bug).
- such exits are often due to bugs in application code (things like
  AssertionErrors being thrown) but aren't flagged as such by our
  infrastructure, or by humans for that matter.

To address both issues, use FatalError() so that the runtime can dump
more useful information to the logs before it aborts.

Test: manual
Bug: 36813403
Change-Id: I5826090229109dc7cb19f0c3571c609f990cd36a

7 years agoMerge "jni: isLoggable: adapt to removal of property name size limit" into oc-dev
Mark Salyzyn [Wed, 12 Apr 2017 14:49:12 +0000 (14:49 +0000)]
Merge "jni: isLoggable: adapt to removal of property name size limit" into oc-dev

7 years agoIntroduce FILE_ID for TTC fonts and variation fonts.
Seigo Nonaka [Mon, 10 Apr 2017 18:03:24 +0000 (11:03 -0700)]
Introduce FILE_ID for TTC fonts and variation fonts.

A single TTC font or variation font can be used for multiple entry
of FontResult. To share the file contents, assign same URI for those.

Bug: 36494487
Test: android.provider.FontsContractTest passes
Change-Id: Ibf24f216179a6481dee1801cd2dfb68c4bb38fac

7 years agoMerge "Always request keyboard shorcuts, even if there's no menu." into oc-dev
TreeHugger Robot [Wed, 12 Apr 2017 14:16:04 +0000 (14:16 +0000)]
Merge "Always request keyboard shorcuts, even if there's no menu." into oc-dev

7 years agoUpdate Typeface.Builder API to reflect API feedback.
Seigo Nonaka [Tue, 11 Apr 2017 17:40:55 +0000 (10:40 -0700)]
Update Typeface.Builder API to reflect API feedback.

- Stop pooling and remove reset method.
- Introduce overloaded constructors instead of setSource methods.
- Make italic parameter boolean and treat "not called" as
  RESOLVE_BY_FONT_TABLE.
- Remove constants and move them to Typeface with private static
  constant.
- Fix JavaDoc.

Bug: 37082657
Test: android.graphics.cts.TypefaceTest passed
Change-Id: I0c50cf3e2d50c0021f7e12bbb7ed7ae89fa1c2a1

7 years agoRename WEB_ACTION_ENABLED to INSTANT_APPS_ENABLED
Jesse Evans [Fri, 7 Apr 2017 23:11:26 +0000 (16:11 -0700)]
Rename WEB_ACTION_ENABLED to INSTANT_APPS_ENABLED

Renames the instant apps setting to reflect what it is for.

Adds the SystemApi annotation to make this field visible
to the resolver and installer.

Test: existing tests

Change-Id: I1651bb101d69bdfdaa63c004435025c68a33cd8e