OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Add Duplex mode to ServiceState." into pi-dev
Eric Schwarzenbach [Wed, 14 Mar 2018 21:05:43 +0000 (21:05 +0000)]
Merge "Add Duplex mode to ServiceState." into pi-dev

6 years agoMerge "Increase size of BatteryStatsService stats buffer" into pi-dev
Kelly Rossmoyer [Wed, 14 Mar 2018 20:43:14 +0000 (20:43 +0000)]
Merge "Increase size of BatteryStatsService stats buffer" into pi-dev

6 years agoMerge "Start the webview_zygote at boot, but in the background." into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 20:32:32 +0000 (20:32 +0000)]
Merge "Start the webview_zygote at boot, but in the background." into pi-dev

6 years agoMerge "Document the byte packing order of the current Bitmap.Configs" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 20:23:29 +0000 (20:23 +0000)]
Merge "Document the byte packing order of the current Bitmap.Configs" into pi-dev

6 years agoMerge "Add API to get currently pinned slices" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 20:12:54 +0000 (20:12 +0000)]
Merge "Add API to get currently pinned slices" into pi-dev

6 years agoMerge "Revert "Centralized quick step/scrub/switch logic (1/2)"" into pi-dev
Winson Chung [Wed, 14 Mar 2018 19:42:13 +0000 (19:42 +0000)]
Merge "Revert "Centralized quick step/scrub/switch logic (1/2)"" into pi-dev

6 years agoRevert "Centralized quick step/scrub/switch logic (1/2)"
Winson Chung [Wed, 14 Mar 2018 16:08:43 +0000 (16:08 +0000)]
Revert "Centralized quick step/scrub/switch logic (1/2)"

This reverts commit b06ae3bf131b0bd0ded398d3a06974a6a9d78a50.

Reason for revert: b/74726495
Bug: 74726495

Change-Id: I4bce8df13f9fa9e1b420382f7a96f9855510196f

6 years agoMerge "Add wall clock timestamp for ConfigMetricsReport and gauge atoms." into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 19:03:06 +0000 (19:03 +0000)]
Merge "Add wall clock timestamp for ConfigMetricsReport and gauge atoms." into pi-dev

6 years agoMerge "Remove unused shared lib from statsd" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 18:48:20 +0000 (18:48 +0000)]
Merge "Remove unused shared lib from statsd" into pi-dev

6 years agoMerge "Removed redundant method ContentResolver.releasePersistableUriPermission(...
TreeHugger Robot [Wed, 14 Mar 2018 18:42:38 +0000 (18:42 +0000)]
Merge "Removed redundant method ContentResolver.releasePersistableUriPermission()" into pi-dev

6 years ago[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor...
Alan Viverette [Wed, 14 Mar 2018 18:09:51 +0000 (18:09 +0000)]
[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor am: f3c2e0b3ab am: 1b6f3f9a97 am: d0fcb49352 skipped: 93f8bfa5c4 am: e32e8229b3 am: f98157e2ba am: 4f83bad908 am: a982645d5c skipped: 9d3e228729 am: 8a095b5f19 am: 0886b1a751
am: 25d38a56ae  -s ours

Change-Id: I0bf700a857b7eba5aebf66e0c2f7970234d7ac00

6 years ago[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor...
Alan Viverette [Wed, 14 Mar 2018 17:58:15 +0000 (17:58 +0000)]
[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor am: f3c2e0b3ab am: 1b6f3f9a97 am: d0fcb49352 skipped: 93f8bfa5c4 am: e32e8229b3 am: f98157e2ba am: 4f83bad908 am: a982645d5c skipped: 9d3e228729 am: 8a095b5f19
am: 0886b1a751

Change-Id: I6fb6521317ef9d9e2d6afab056bc8993bed9720c

6 years ago[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor...
Alan Viverette [Wed, 14 Mar 2018 17:39:54 +0000 (17:39 +0000)]
[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor am: f3c2e0b3ab am: 1b6f3f9a97 am: d0fcb49352 skipped: 93f8bfa5c4 am: e32e8229b3 am: f98157e2ba am: 4f83bad908 am: a982645d5c skipped: 9d3e228729
am: 8a095b5f19

Change-Id: I6eb246ce670723e1f21ee4cf45d5c5e48b91f1ce

6 years agoMerge "Update comment for HAPTIC_FEEDBACK_ENABLED setting" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 17:32:43 +0000 (17:32 +0000)]
Merge "Update comment for HAPTIC_FEEDBACK_ENABLED setting" into pi-dev

6 years agoDocument the byte packing order of the current Bitmap.Configs
Derek Sollenberger [Wed, 14 Mar 2018 17:26:47 +0000 (13:26 -0400)]
Document the byte packing order of the current Bitmap.Configs

This CL documents the byte order for 585, 8888, and fp16 buffers.

Test: documenting existing behavior
Bug: 71518511
Change-Id: I128344db318eb4597b6eb00f0ae317e369145152

6 years agoMerge "Update old stack check for finding recent task index to remove" into pi-dev
Winson Chung [Wed, 14 Mar 2018 17:28:46 +0000 (17:28 +0000)]
Merge "Update old stack check for finding recent task index to remove" into pi-dev

6 years agoMerge "Added performance tests for SQLiteCursor iteration" into pi-dev
Fyodor Kupolov [Wed, 14 Mar 2018 17:16:12 +0000 (17:16 +0000)]
Merge "Added performance tests for SQLiteCursor iteration" into pi-dev

6 years agoMerge "[AWARE] Minor fix to documentation for Aware + Discovery" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 17:00:51 +0000 (17:00 +0000)]
Merge "[AWARE] Minor fix to documentation for Aware + Discovery" into pi-dev

6 years agoStart the webview_zygote at boot, but in the background.
Torne (Richard Coles) [Tue, 13 Mar 2018 21:48:52 +0000 (17:48 -0400)]
Start the webview_zygote at boot, but in the background.

This reverts "Delay starting the webview_zygote until first use." but
instead wraps the start in a background task, to avoid blocking the
system server startup waiting for the zygote to be ready.

Bug: 73743583
Bug: 63749735
Bug: 74079433
Test: Verify webview_zygote already running after boot
Change-Id: Iacf968cc2d2857a92c6bacf4012dc88f098c6013

6 years agoMerge "Statsd: Remove storage of bucketNum" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 16:51:41 +0000 (16:51 +0000)]
Merge "Statsd: Remove storage of bucketNum" into pi-dev

6 years agoMerge "Dump the stats for count/gauge/value metrics." into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 16:45:49 +0000 (16:45 +0000)]
Merge "Dump the stats for count/gauge/value metrics." into pi-dev

6 years agoDump the stats for count/gauge/value metrics.
Yangster-mac [Mon, 12 Mar 2018 19:02:56 +0000 (12:02 -0700)]
Dump the stats for count/gauge/value metrics.

Bug: b/74159560

Test: statsd test
Change-Id: I1410309ecfdfc2a5becf8d0c620c68a621ebc5fa

6 years agoMerge "Allow controlling SystemUI flags during RecentsAnimation" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 16:00:49 +0000 (16:00 +0000)]
Merge "Allow controlling SystemUI flags during RecentsAnimation" into pi-dev

6 years agoMerge "Add new set of APIs to light grey." into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 15:59:42 +0000 (15:59 +0000)]
Merge "Add new set of APIs to light grey." into pi-dev

6 years agoMerge "Cutout: add runtime switch for screenshotting screen decorations" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 15:32:06 +0000 (15:32 +0000)]
Merge "Cutout: add runtime switch for screenshotting screen decorations" into pi-dev

6 years ago[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor...
Android Build Merger (Role) [Wed, 14 Mar 2018 15:24:33 +0000 (15:24 +0000)]
[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor am: f3c2e0b3ab am: 1b6f3f9a97 am: d0fcb49352 skipped: 93f8bfa5c4 am: e32e8229b3 am: f98157e2ba am: 4f83bad908 am: a982645d5c skipped: 9d3e228729

Change-Id: I1ce639a3ea40693d82501861d4b81afd3506b37d

6 years ago[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor...
Android Build Merger (Role) [Wed, 14 Mar 2018 15:24:27 +0000 (15:24 +0000)]
[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor am: f3c2e0b3ab am: 1b6f3f9a97 am: d0fcb49352 skipped: 93f8bfa5c4 am: e32e8229b3 am: f98157e2ba am: 4f83bad908 am: a982645d5c

Change-Id: I329294b80015cbfb2c498c0752b340cbaf527735

6 years ago[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor...
Android Build Merger (Role) [Wed, 14 Mar 2018 15:24:17 +0000 (15:24 +0000)]
[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor am: f3c2e0b3ab am: 1b6f3f9a97 am: d0fcb49352 skipped: 93f8bfa5c4 am: e32e8229b3 am: f98157e2ba am: 4f83bad908

Change-Id: I927087da2df9ad993b449d8ec9b90bd641088d75

6 years ago[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor...
Android Build Merger (Role) [Wed, 14 Mar 2018 15:24:12 +0000 (15:24 +0000)]
[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor am: f3c2e0b3ab am: 1b6f3f9a97 am: d0fcb49352 skipped: 93f8bfa5c4 am: e32e8229b3 am: f98157e2ba

Change-Id: I7204eee21fc2620f70dc8bc534aa0160d947ab7e

6 years ago[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor...
Android Build Merger (Role) [Wed, 14 Mar 2018 15:24:06 +0000 (15:24 +0000)]
[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor am: f3c2e0b3ab am: 1b6f3f9a97 am: d0fcb49352 skipped: 93f8bfa5c4 am: e32e8229b3

Change-Id: I916228fb05914dbb89551a27418f746305a01ed6

6 years ago[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor...
Android Build Merger (Role) [Wed, 14 Mar 2018 15:23:46 +0000 (15:23 +0000)]
[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor am: f3c2e0b3ab am: 1b6f3f9a97 am: d0fcb49352 skipped: 93f8bfa5c4

Change-Id: Ie516029e98d07f4ebb6916d75af625c92e711fde

6 years ago[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor...
Android Build Merger (Role) [Wed, 14 Mar 2018 15:23:39 +0000 (15:23 +0000)]
[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor am: f3c2e0b3ab am: 1b6f3f9a97 am: d0fcb49352

Change-Id: Ib890ce7495c1d5e64968cc9177ce3785bcfdedde

6 years ago[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor...
Android Build Merger (Role) [Wed, 14 Mar 2018 15:23:32 +0000 (15:23 +0000)]
[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor am: f3c2e0b3ab am: 1b6f3f9a97

Change-Id: I49de968aa0daa18b60921af1a381f77d13a8ff0e

6 years ago[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor...
Android Build Merger (Role) [Wed, 14 Mar 2018 15:23:19 +0000 (15:23 +0000)]
[automerger] DO NOT MERGE Fix build with SDK 24-like implementation of constructor am: f3c2e0b3ab

Change-Id: I87dcb4ce2fc52e0ed6ce5f79d15ab49084d088e3

6 years agoDO NOT MERGE Fix build with SDK 24-like implementation of constructor
Alan Viverette [Tue, 13 Mar 2018 17:56:24 +0000 (13:56 -0400)]
DO NOT MERGE Fix build with SDK 24-like implementation of constructor

Bug: 71992105
Test: manual
Change-Id: I106760ada9c85adde29fd143e5dfcd924fd95f54

6 years agoMerge "Set options on startingActivity instead of topActivity" into pi-dev
Chavi Weingarten [Wed, 14 Mar 2018 15:19:01 +0000 (15:19 +0000)]
Merge "Set options on startingActivity instead of topActivity" into pi-dev

6 years agoMerge "Check if last resumed activity is null before resuming." into pi-dev
Bryce Lee [Wed, 14 Mar 2018 14:37:48 +0000 (14:37 +0000)]
Merge "Check if last resumed activity is null before resuming." into pi-dev

6 years agoAllow controlling SystemUI flags during RecentsAnimation
Jorim Jaggi [Fri, 9 Mar 2018 16:29:48 +0000 (17:29 +0100)]
Allow controlling SystemUI flags during RecentsAnimation

Such that the bars can flip from light/dark depending on animation
progress.

Test: go/wm-smoke
Test: Swipe up from light bar app
Test: WindowStateTests
Bug: 73498721
Change-Id: Ie4b99c75840474a01225720fcd7372191f035a3e

6 years agoMerge "Add PrintRecommendationService to hidden API package whitelist" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 13:44:51 +0000 (13:44 +0000)]
Merge "Add PrintRecommendationService to hidden API package whitelist" into pi-dev

6 years agoMerge "DO NOT MERGE Create a key value settings observer for backup parameters" into...
Annie Meng [Wed, 14 Mar 2018 13:40:46 +0000 (13:40 +0000)]
Merge "DO NOT MERGE Create a key value settings observer for backup parameters" into pi-dev

6 years agoCutout: add runtime switch for screenshotting screen decorations
Adrian Roos [Thu, 8 Mar 2018 22:22:19 +0000 (23:22 +0100)]
Cutout: add runtime switch for screenshotting screen decorations

Bug: 65689439
Test: adb shell setprop debug.screenshot_rounded_corners true && adb shell kill `pid systemui` && adb exec-out screencap -p > out.png
Change-Id: Ibd2e8c94c0f1ad58b2357e8db1b20846588b1cce

6 years agoAdd new set of APIs to light grey.
Nicolas Geoffray [Wed, 14 Mar 2018 10:58:42 +0000 (10:58 +0000)]
Add new set of APIs to light grey.

bug:64382372
Test: m
Change-Id: I2ba92e8a7c04dca9c77f8ce58c5b9e85726c52d8
(cherry picked from commit ba0be3aaedf45b0f1cf4a589acfcea17fd65cd64)

6 years agoMerge "Add more uses of hidden APIs into light greylist" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 12:14:39 +0000 (12:14 +0000)]
Merge "Add more uses of hidden APIs into light greylist" into pi-dev

6 years agoMerge "Don't re-inflate bouncer" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 11:34:13 +0000 (11:34 +0000)]
Merge "Don't re-inflate bouncer" into pi-dev

6 years agoAdd PrintRecommendationService to hidden API package whitelist
David Brazdil [Tue, 13 Mar 2018 16:14:03 +0000 (16:14 +0000)]
Add PrintRecommendationService to hidden API package whitelist

This app builds directly against the platform. Add it to the whitelist.

Bug: 64382372
Test: make
Test: device boots
Change-Id: I16574374d2c233221cd1305f031f78aca1947f05
(cherry picked from commit 06c8a439f7641b59e3648f691ae1a1921244c68e)

6 years agoMerge "MediaSession2: Refactor incoming binder calls to the MediaSession2Stub" into...
Jaewan Kim [Wed, 14 Mar 2018 10:18:22 +0000 (10:18 +0000)]
Merge "MediaSession2: Refactor incoming binder calls to the MediaSession2Stub" into pi-dev

6 years agoAdd more uses of hidden APIs into light greylist
David Brazdil [Wed, 14 Mar 2018 09:37:55 +0000 (09:37 +0000)]
Add more uses of hidden APIs into light greylist

Uses from tests and common apps.

Bug: 64382372
Bug: 73094390
Bug: 74575101
Bug: 74525273
Bug: 74340334
Test: make
Change-Id: I51ab73184b34b0240afccfebcb166687d14b94ae

6 years agoMerge "Disable immersive mode confirmation when device is in lock task mode" into...
Benjamin Franz [Wed, 14 Mar 2018 08:36:11 +0000 (08:36 +0000)]
Merge "Disable immersive mode confirmation when device is in lock task mode" into pi-dev

6 years agoMerge "Add vendor-logged stats to statsd." into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 05:35:03 +0000 (05:35 +0000)]
Merge "Add vendor-logged stats to statsd." into pi-dev

6 years agoAdd vendor-logged stats to statsd.
Andrew Chant [Thu, 22 Feb 2018 23:17:05 +0000 (15:17 -0800)]
Add vendor-logged stats to statsd.

Add atoms to statsd that are logged by code residing in /vendor.
These atoms are reported from code in /vendor, and
rely on a vendor-provided /system daemon to log the atoms to statslogd.

Test: Built & reported manually.
Bug: 74261180
Bug: 74261750
Bug: 74258154
Bug: 74260998

Change-Id: I858a1266c4c212808fb63276439f1dd6cf2a387e

6 years agoMerge "Additional log for when power is pressed" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 05:12:36 +0000 (05:12 +0000)]
Merge "Additional log for when power is pressed" into pi-dev

6 years agoMerge "Centralized quick step/scrub/switch logic (1/2)" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 04:54:24 +0000 (04:54 +0000)]
Merge "Centralized quick step/scrub/switch logic (1/2)" into pi-dev

6 years agoMerge "Fix issue #62342672: API Review: OPSTR_ACTIVATE_VPN SystemApi" into pi-dev
Dianne Hackborn [Wed, 14 Mar 2018 03:02:20 +0000 (03:02 +0000)]
Merge "Fix issue #62342672: API Review: OPSTR_ACTIVATE_VPN SystemApi" into pi-dev

6 years agoMerge "Display shortcut modifiers in menu" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 02:48:57 +0000 (02:48 +0000)]
Merge "Display shortcut modifiers in menu" into pi-dev

6 years agoCheck if last resumed activity is null before resuming.
Bryce Lee [Wed, 14 Mar 2018 02:23:03 +0000 (19:23 -0700)]
Check if last resumed activity is null before resuming.

Previous implementation did not encounter this issue as the resumed
activity was simply assigned to the stack member variable. Since we
now rely on a callback from the activity record, we must check to
see if the record is null before invoking #setState on it.

Test: atest CtsAutoFillServiceTestCases:android.autofillservice.cts.SessionLifecycleTest#testDatasetVisibleWhileAutofilledAppIsLifecycled
Bug: 74604879
Change-Id: Icead81d44a826260145f72549a9caa0fb62d6af3

6 years agoAdded performance tests for SQLiteCursor iteration
Fyodor Kupolov [Wed, 14 Mar 2018 01:32:01 +0000 (18:32 -0700)]
Added performance tests for SQLiteCursor iteration

Tests forward/backfards iteration when dataset exceeds default
window size.

Test: atest frameworks/base/apct-tests/perftests/core/src/android/database/SQLiteDatabasePerfTest.java
Bug: 37095915
Bug: 64262688
Change-Id: Icc4e4864de0d2c510f7f3da55a6ebf526d5a4506

6 years agoMediaSession2: Refactor incoming binder calls to the MediaSession2Stub
Jaewan Kim [Tue, 13 Mar 2018 10:15:59 +0000 (19:15 +0900)]
MediaSession2: Refactor incoming binder calls to the MediaSession2Stub

This CL refactors methods in MediaSession2Stub that handles incoming
binder calls from the controller by adding methods to do followings
in one place.
  1. Check if the session hasn't closed.
  2. Check if the controller is allowed for the command
  3. Call SessionCallback#onCommandRequest() for APIs that would be
     sent directly to the MediaPlayerBase or MediaPlaylistAgent if
     allowed.

This CL also adds missing command code for setRating().

Bug: 74581821
Test: Run CTS tests with MediaComponents/runcts.sh
Change-Id: I9b96e26b7644cff3c54269773590c73ff30f956c

6 years agoMerge "Allow apps in /odm/app and /odm/priv-app (2/2)" into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 00:49:26 +0000 (00:49 +0000)]
Merge "Allow apps in /odm/app and /odm/priv-app (2/2)" into pi-dev

6 years agoMerge "Add IntDef for MBMS download result" into pi-dev
Hall Liu [Wed, 14 Mar 2018 00:37:37 +0000 (00:37 +0000)]
Merge "Add IntDef for MBMS download result" into pi-dev

6 years agoUpdate old stack check for finding recent task index to remove
Winson Chung [Tue, 13 Mar 2018 23:57:55 +0000 (16:57 -0700)]
Update old stack check for finding recent task index to remove

- The recents task list was previously checking the stack of the task to
  optimize finding similar tasks to remove. In P, each task generally has
  its own stack, so this check is invalid. Instead, we should check the
  activity type to skip early if the activity types don't match.
- Add another test to ensure that when a new multiple-task non-document
  task is added, that it will replace any existing matching task

Bug: 72476837
Test: atest FrameworksServicesTests:RecentTasksTest

Change-Id: I457fd5b2cd6dd1eb5e2533912df7e3948e0366b1
Signed-off-by: Winson Chung <winsonc@google.com>
6 years agoCentralized quick step/scrub/switch logic (1/2)
Matthew Ng [Wed, 7 Mar 2018 22:23:04 +0000 (14:23 -0800)]
Centralized quick step/scrub/switch logic (1/2)

Moved all the logic for quick step/scrub/switch to QuickStepController
so touch events can be used for deciding which gesture is used. Once a
gesture is decided, the rest will not handle the other gestures.

Quickstep will trigger when passing a touch slop on navigation bar. The
event onQuickStep (with a motion event) will be sent to launcher when
this occurs telling it that systemui is not handling anymore motion
events. During quickstep motion events will still be proxied.

Used raw X and Y motion events for Opalayout and KeyButtonView so that
the moving over the touch slop can be detected to ignore button (long)
press state.

Fixes: 73971902
Fixes: 74456391
Test: swipe up
Change-Id: I40b931aa0a9f123b810ff9206c9b1ce040a68a56

6 years agoMerge "Differentiate between automatic and manual brightness in metrics." into pi-dev
TreeHugger Robot [Wed, 14 Mar 2018 00:10:33 +0000 (00:10 +0000)]
Merge "Differentiate between automatic and manual brightness in metrics." into pi-dev

6 years agoSet options on startingActivity instead of topActivity
chaviw [Tue, 13 Mar 2018 21:15:51 +0000 (14:15 -0700)]
Set options on startingActivity instead of topActivity

When an activity is starting, it may not be the top activity yet.
If that occurs, the options are set on the wrong activity when
moveTaskToFrontLocked is called. Therefore, when the options on
the correct activity are consumed and cleared, the options are
still set on the incorrect activity. This can lead to incorrect
behavior.

Specifically, this was causing issues when a RemoteAnimation was
set for a starting activity. The activity that was previously on
top was also getting the options and expecting a RemoteAnimation.
This caused no animation to execute when the next expected animation
was a WindowAnimation because it was still waiting on the
RemoteAnimation

Fixes: 74611027
Test: Launch activity then background. Open second activity from
notification. When pressing back, window animation should start.

Change-Id: I2198d8e2a0b14fb060c71a265cc98f24ce018ef9

6 years agoMerge "audioservice: add more properties for volume steps and default volumes" into...
Ari Hausman-Cohen [Tue, 13 Mar 2018 23:09:51 +0000 (23:09 +0000)]
Merge "audioservice: add more properties for volume steps and default volumes" into pi-dev

6 years agoMerge "DO NOT MERGE Fix French locale % escaping" into pi-dev
TreeHugger Robot [Tue, 13 Mar 2018 23:00:53 +0000 (23:00 +0000)]
Merge "DO NOT MERGE Fix French locale % escaping" into pi-dev

6 years agoMerge "Add API to check extended APDU Supported" into pi-dev
Qingxi Li [Tue, 13 Mar 2018 23:00:10 +0000 (23:00 +0000)]
Merge "Add API to check extended APDU Supported" into pi-dev

6 years agoMerge "Fix NPE with null app window." into pi-dev
TreeHugger Robot [Tue, 13 Mar 2018 22:54:30 +0000 (22:54 +0000)]
Merge "Fix NPE with null app window." into pi-dev

6 years agoMerge "Revert "Camera: SessionConfiguration should use Executors"" into pi-dev
TreeHugger Robot [Tue, 13 Mar 2018 22:44:21 +0000 (22:44 +0000)]
Merge "Revert "Camera: SessionConfiguration should use Executors"" into pi-dev

6 years agoDon't re-inflate bouncer
Lucas Dupin [Tue, 13 Mar 2018 22:30:41 +0000 (15:30 -0700)]
Don't re-inflate bouncer

Re-inflating the bouncer shouldn't be necessary every
time it get hidden, it causes lots of jank.

Bug: 74602128
Test: external/chromium-trace/systrace.py gfx freq am wm sched binder_driver view -a com.android.systemui -o sysui.html
Change-Id: Ie853874c1be3f621b7fa9f010a06ea0fa6253d1b

6 years agoMerge "Transfer starting windows more aggressively" into pi-dev
TreeHugger Robot [Tue, 13 Mar 2018 22:24:51 +0000 (22:24 +0000)]
Merge "Transfer starting windows more aggressively" into pi-dev

6 years agoMerge "Unhide getWeight of Typeface" into pi-dev
TreeHugger Robot [Tue, 13 Mar 2018 22:24:41 +0000 (22:24 +0000)]
Merge "Unhide getWeight of Typeface" into pi-dev

6 years agoMerge "Revive old private api for saving supportlib-v27" into pi-dev
TreeHugger Robot [Tue, 13 Mar 2018 21:56:52 +0000 (21:56 +0000)]
Merge "Revive old private api for saving supportlib-v27" into pi-dev

6 years agoMerge "Add @attr for justificationMode" into pi-dev
TreeHugger Robot [Tue, 13 Mar 2018 21:55:30 +0000 (21:55 +0000)]
Merge "Add @attr for justificationMode" into pi-dev

6 years agoMerge "Update AndroidTest to work with apct-suite setup" into pi-dev
TreeHugger Robot [Tue, 13 Mar 2018 21:53:29 +0000 (21:53 +0000)]
Merge "Update AndroidTest to work with apct-suite setup" into pi-dev

6 years agoFix issue #62342672: API Review: OPSTR_ACTIVATE_VPN SystemApi
Dianne Hackborn [Wed, 7 Mar 2018 20:42:47 +0000 (12:42 -0800)]
Fix issue #62342672: API Review: OPSTR_ACTIVATE_VPN SystemApi

Add a new platform-only permission for being able to change
app ops mode, so nothing outside of the platform can do this.

Bug: 62342672
Test: Booted, ran, settings works, shell works, apps install
Change-Id: I372e649c019a8f9b95919ff0da6f56612d7061c2

6 years agoMerge "Add a check for duplicate configuration on statsd" into pi-dev
Howard Ro [Tue, 13 Mar 2018 21:38:16 +0000 (21:38 +0000)]
Merge "Add a check for duplicate configuration on statsd" into pi-dev

6 years agoMerge "Remove unneeded notify AIDL API" into pi-dev
Brad Ebinger [Tue, 13 Mar 2018 21:26:36 +0000 (21:26 +0000)]
Merge "Remove unneeded notify AIDL API" into pi-dev

6 years agoDO NOT MERGE Fix French locale % escaping
Lucas Dupin [Tue, 13 Mar 2018 18:40:32 +0000 (11:40 -0700)]
DO NOT MERGE Fix French locale % escaping

Test: adb shell dumpsys activity service com.android.systemui | grep compute
Change-Id: I75ed72e28f42dee3abbc09d0728fc8bac8c44829
Fixes: 74386188

6 years agoMerge "Remove stale string" into pi-dev
TreeHugger Robot [Tue, 13 Mar 2018 20:57:49 +0000 (20:57 +0000)]
Merge "Remove stale string" into pi-dev

6 years agoRevert "Camera: SessionConfiguration should use Executors"
Yin-Chia Yeh [Tue, 13 Mar 2018 20:49:12 +0000 (20:49 +0000)]
Revert "Camera: SessionConfiguration should use Executors"

This reverts commit 004e73c38c799adfe5eaeceb96a5bc9aa3239b31.

Bug: 74605221
Bug: 73953366
Change-Id: I1665c3d235434f57a4cd4aa5f082720b83ac10cc

6 years agoMerge "Support Dynamic ImsService Querying" into pi-dev
Brad Ebinger [Tue, 13 Mar 2018 20:53:53 +0000 (20:53 +0000)]
Merge "Support Dynamic ImsService Querying" into pi-dev

6 years agoMerge "access bar notification rename" into pi-dev
TreeHugger Robot [Tue, 13 Mar 2018 20:51:53 +0000 (20:51 +0000)]
Merge "access bar notification rename" into pi-dev

6 years agoMerge "Stop closing other dialogs when opening GlobalActions." into pi-dev
TreeHugger Robot [Tue, 13 Mar 2018 20:50:06 +0000 (20:50 +0000)]
Merge "Stop closing other dialogs when opening GlobalActions." into pi-dev

6 years agoAdd API to check extended APDU Supported
Qingxi Li [Wed, 7 Mar 2018 18:50:02 +0000 (10:50 -0800)]
Add API to check extended APDU Supported

Add API UiccSlotInfo#getIsExtendedApduSupported

Bug: 68999147
Test: TreeHugger & E2E
Change-Id: Ia400a23c35332356deaa214861f6f5ffe47c8092

6 years agoDifferentiate between automatic and manual brightness in metrics.
Michael Wright [Tue, 13 Mar 2018 20:16:35 +0000 (20:16 +0000)]
Differentiate between automatic and manual brightness in metrics.

We want to make sure the trend for number of interactions with the
brightness slider goes down over time with automatic brightness enabled.
Rather than trying to correlate the setting and this metric, it's much
easier to just use a different metric.

Bug: 74610647
Test: Flash, see what gets logged
Change-Id: I9985de0c665e8d36bbe7416fe70f52098d6c2d50

6 years agoIncrease size of BatteryStatsService stats buffer
Kelly Rossmoyer [Tue, 13 Mar 2018 20:10:14 +0000 (13:10 -0700)]
Increase size of BatteryStatsService stats buffer

Increases the size of the buffer used to return data from JNI call to
PowerHAL::getSubsystemLowPowerStats() from 512 bytes to 2048 bytes.

As a rough calculation, the substring for a single subsystem sleep state
will typically fit within ~105 characters, such as:
  "subsystem_2 name=Citadel state_1 name=Sleep time=99999999999
   count=99999999999 last entry=99999999999 "

Those numerical values work out to ~1157 days, so while the underlying
data type can hold values larger than that, it seems like a reasonable
basis for capacity estimation.

Most currently known state names are either "Sleep" or "Deep-Sleep", and
"Citadel" and "DISPLAY" are the longest currently known subsystem names,
with the others more typically 3 or 4 characters long.

There are up to 7 masters that each export data for a single sleep state
and 4 currently anticipated subsystems that will probably each export
data for 2 sleep states, which works out to 15 known/expected sleep
states, which works out to 1575 characters.  Add ~45 more chars for the
header string at the beginning of the output:
  ",SubsystemPowerState SubsystemPowerState "

And that leaves ~428 spare bytes from an allocation of 2048, which is
enough to allow 4 more sleep states or 3 more and a slightly higher
average number of characters per state.

Test: Ran along with ag/3718639 code that implements 2018 PowerHAL
low power stats, took a bugreport, and verified that truncation was
addressed.
Test: Calculated capacity of new buffer size to verify expected output
will fit with some spare room left over.
Bug:74594445

Change-Id: I5919388ada1c47b11e594582691e0faf1575faaa

6 years agoMerge "Remove the UICC specific code from android.se.omapi" into pi-dev
TreeHugger Robot [Tue, 13 Mar 2018 20:01:36 +0000 (20:01 +0000)]
Merge "Remove the UICC specific code from android.se.omapi" into pi-dev

6 years agoMerge changes from topic "dnd_touch_sounds" into pi-dev
TreeHugger Robot [Tue, 13 Mar 2018 19:58:51 +0000 (19:58 +0000)]
Merge changes from topic "dnd_touch_sounds" into pi-dev

* changes:
  DND touch sounds toggle does not toggle vibrations
  Charging sounds won't play when dnd is on

6 years agoMerge "Ignore activity lifecycle requests without matching client records." into...
Bryce Lee [Tue, 13 Mar 2018 19:46:03 +0000 (19:46 +0000)]
Merge "Ignore activity lifecycle requests without matching client records." into pi-dev

6 years agoUpdate AndroidTest to work with apct-suite setup
jdesprez [Tue, 13 Mar 2018 19:39:51 +0000 (12:39 -0700)]
Update AndroidTest to work with apct-suite setup

Updating the AndroidTest.xml to be picked up by the new
APCT suite setup.

Test: atest FrameworksCoreTests
Bug: 74440293
Change-Id: Ib1ca44ba29dc349ca372effc1586e1d3376bd549

6 years agoMerge "Allow for activities to resumed if keyguard is occluded." into pi-dev
TreeHugger Robot [Tue, 13 Mar 2018 19:37:25 +0000 (19:37 +0000)]
Merge "Allow for activities to resumed if keyguard is occluded." into pi-dev

6 years agoMerge "Expose the new brightness permissions as test APIs." into pi-dev
TreeHugger Robot [Tue, 13 Mar 2018 19:20:47 +0000 (19:20 +0000)]
Merge "Expose the new brightness permissions as test APIs." into pi-dev

6 years agoMerge "Catch the RuntimeException for stopScan()" into pi-dev
TreeHugger Robot [Tue, 13 Mar 2018 19:18:42 +0000 (19:18 +0000)]
Merge "Catch the RuntimeException for stopScan()" into pi-dev

6 years agoStatsd: Remove storage of bucketNum
Bookatz [Tue, 13 Mar 2018 19:18:21 +0000 (12:18 -0700)]
Statsd: Remove storage of bucketNum

Past buckets had a field mBucketNum, storing the
"bucket number" they represented. Currently, the concept
of bucket number is used by Anomaly Detection (although this
may not be necessary), but these stored values are not used at all,
so removing them will save RAM.

Test: statsd tests still pass
Bug: 74607818
Change-Id: Iacc343bc39c5035f6e2f236c03de1d91606eff4c

6 years agoMerge "Add selectable text view perf test for random text" into pi-dev
TreeHugger Robot [Tue, 13 Mar 2018 19:01:40 +0000 (19:01 +0000)]
Merge "Add selectable text view perf test for random text" into pi-dev

6 years agoaccess bar notification rename
fionaxu [Tue, 13 Mar 2018 01:26:05 +0000 (18:26 -0700)]
access bar notification rename

Bug: 37579161
Test: Build

Change-Id: I609826de47dc3fae4dee89d43951269a462c22b2

6 years agoDO NOT MERGE Create a key value settings observer for backup parameters
Annie Meng [Thu, 8 Mar 2018 20:38:43 +0000 (20:38 +0000)]
DO NOT MERGE Create a key value settings observer for backup parameters

Extracts an abstract class to observe changes in backup parameter settings that
are stored as a comma-separated key value list. This class is
responsible for registering and unregistering a content observer on the
setting and updating local references to the parameters.

Refactor BackupManagerConstants and LocalTransportParameters to use this
implementation. This will also be used for the new backup timeout
setting.

Bug: 74346317
Test: 1) m -j RunFrameworksServicesRoboTests ROBOTEST_FILTER=BackupManagerConstantsTest
2) gts-tradefed run commandAndExit gts-dev -m GtsBackupHostTestCases -t com.google.android.gts.backup.TransportFlagsHostSideTest

Change-Id: Id4c50fbcf7479c925515887e3fa70e166dd9955c

6 years agoMerge "Fix a bug when calling onError(int)" into pi-dev
TreeHugger Robot [Tue, 13 Mar 2018 18:47:28 +0000 (18:47 +0000)]
Merge "Fix a bug when calling onError(int)" into pi-dev

6 years agoMerge "Fixed flags when button that trigger autofill is clicked." into pi-dev
TreeHugger Robot [Tue, 13 Mar 2018 18:45:47 +0000 (18:45 +0000)]
Merge "Fixed flags when button that trigger autofill is clicked." into pi-dev

6 years agoRevive old private api for saving supportlib-v27
Seigo Nonaka [Tue, 13 Mar 2018 18:45:43 +0000 (11:45 -0700)]
Revive old private api for saving supportlib-v27

The method signature of the createFromFamiliesWithDefault is changed
for supporting multiple font fallback. The old method is used by
supportlib-v27.

Bug: 73981003
Test: Manually done
Change-Id: I45ee9975b0f15481b60362113b89d4a1bf5a5338