OSDN Git Service

android-x86/frameworks-base.git
6 years agoThread-safe metric producers.
Yangster [Mon, 27 Nov 2017 21:48:29 +0000 (13:48 -0800)]
Thread-safe metric producers.

Test: unit test passed
Change-Id: Ie47404e8649b63ee8ac32e40189a47f6cb7a9def

6 years agoMerge "Migrate some preference theme attributes from SettingsLib"
TreeHugger Robot [Mon, 27 Nov 2017 23:14:07 +0000 (23:14 +0000)]
Merge "Migrate some preference theme attributes from SettingsLib"

6 years agoMerge "Fix a bug in StorageManager."
TreeHugger Robot [Mon, 27 Nov 2017 23:06:55 +0000 (23:06 +0000)]
Merge "Fix a bug in StorageManager."

6 years agoMerge "AAPT2 - Make raw files of type unknown."
Pierre Lecesne [Mon, 27 Nov 2017 23:04:33 +0000 (23:04 +0000)]
Merge "AAPT2 - Make raw files of type unknown."

6 years agoMerge "More dimming tweaks (for accessibility)" into oc-mr1-dev am: dbb448a3d7
Jason Monk [Mon, 27 Nov 2017 22:47:47 +0000 (22:47 +0000)]
Merge "More dimming tweaks (for accessibility)" into oc-mr1-dev am: dbb448a3d7
am: 6f69e55970

Change-Id: Ia93bb8ee554f23c9c4bd29e5178275314bdac327

6 years agoFixes javadoc documentation of PackageInstaller.SessionParams#setOriginatingUid(int...
Nikolas Bravo [Mon, 27 Nov 2017 22:38:11 +0000 (22:38 +0000)]
Fixes javadoc documentation of PackageInstaller.SessionParams#setOriginatingUid(int) am: 8aaf928fcd
am: cde72f1be7

Change-Id: I87bae6c7c5f1cb426c337520c9140bc5738c5228

6 years agoMerge "More dimming tweaks (for accessibility)" into oc-mr1-dev
Jason Monk [Mon, 27 Nov 2017 22:35:55 +0000 (22:35 +0000)]
Merge "More dimming tweaks (for accessibility)" into oc-mr1-dev
am: dbb448a3d7

Change-Id: I94fe9f6055a48cdc596fe333a3f6d304cb7e33da

6 years agoFixes javadoc documentation of PackageInstaller.SessionParams#setOriginatingUid(int)
Nikolas Bravo [Mon, 27 Nov 2017 22:29:21 +0000 (22:29 +0000)]
Fixes javadoc documentation of PackageInstaller.SessionParams#setOriginatingUid(int)
am: 8aaf928fcd

Change-Id: I4a2efd6052b1bcc5344fd23722745b3532fb01c9

6 years agoMerge "libandroidfw: Support loading ApkAssets from a file descriptor"
TreeHugger Robot [Mon, 27 Nov 2017 22:26:26 +0000 (22:26 +0000)]
Merge "libandroidfw: Support loading ApkAssets from a file descriptor"

6 years agoMerge "More dimming tweaks (for accessibility)" into oc-mr1-dev
TreeHugger Robot [Mon, 27 Nov 2017 22:21:09 +0000 (22:21 +0000)]
Merge "More dimming tweaks (for accessibility)" into oc-mr1-dev

6 years agoMerge "Use the root case to set remote stack trace for"
Fyodor Kupolov [Mon, 27 Nov 2017 22:14:38 +0000 (22:14 +0000)]
Merge "Use the root case to set remote stack trace for"

6 years agoMerge "Fix a bug in test that cause the flakyness in SimpleConditionTracker_test."
TreeHugger Robot [Mon, 27 Nov 2017 22:13:20 +0000 (22:13 +0000)]
Merge "Fix a bug in test that cause the flakyness in SimpleConditionTracker_test."

6 years agoMerge "Revert "Reject the config if condition config has errors. And add log tag.""
Yao Chen [Mon, 27 Nov 2017 22:02:29 +0000 (22:02 +0000)]
Merge "Revert "Reject the config if condition config has errors. And add log tag.""

6 years agoRevert "Reject the config if condition config has errors. And add log tag."
Yao Chen [Mon, 27 Nov 2017 21:52:34 +0000 (21:52 +0000)]
Revert "Reject the config if condition config has errors. And add log tag."

This reverts commit c9fa2f6d4ea5c3f6730bee67646c0423f5693640.

Change-Id: I91de13f8a102c58bbd3dfc37b09c977e78119854

6 years agoMerge "Clarify docs, sanity check roaming state." am: 419ec05284 am: 63b5615b2a
Jeff Sharkey [Mon, 27 Nov 2017 21:48:46 +0000 (21:48 +0000)]
Merge "Clarify docs, sanity check roaming state." am: 419ec05284 am: 63b5615b2a
am: f8590d1f79

Change-Id: I59fbe09afc74e94e2f56cb6fd833fc2deb7023e5

6 years agoMerge "Clarify docs, sanity check roaming state." am: 419ec05284
Jeff Sharkey [Mon, 27 Nov 2017 21:39:56 +0000 (21:39 +0000)]
Merge "Clarify docs, sanity check roaming state." am: 419ec05284
am: 63b5615b2a

Change-Id: If4f09f8a0e32c245552f025f1a61d67f842b1841

6 years agoMerge "Clarify docs, sanity check roaming state."
Jeff Sharkey [Mon, 27 Nov 2017 21:30:57 +0000 (21:30 +0000)]
Merge "Clarify docs, sanity check roaming state."
am: 419ec05284

Change-Id: Ic30d5aaadf2c59978162c53d7e7781847244ce52

6 years agoMerge "Reject the config if condition config has errors. And add log tag."
TreeHugger Robot [Mon, 27 Nov 2017 21:29:12 +0000 (21:29 +0000)]
Merge "Reject the config if condition config has errors. And add log tag."

6 years agoMerge "Explicitly exclude com.android.server from docs"
Neil Fuller [Mon, 27 Nov 2017 21:26:22 +0000 (21:26 +0000)]
Merge "Explicitly exclude com.android.server from docs"

6 years agoMerge "Clarify docs, sanity check roaming state."
Jeff Sharkey [Mon, 27 Nov 2017 21:19:40 +0000 (21:19 +0000)]
Merge "Clarify docs, sanity check roaming state."

6 years agoMerge "New Autofill API: SaveCallback.onSuccess(IntentSender)."
TreeHugger Robot [Mon, 27 Nov 2017 21:06:52 +0000 (21:06 +0000)]
Merge "New Autofill API: SaveCallback.onSuccess(IntentSender)."

6 years agoMerge "Add StatsdStats and guardrail."
TreeHugger Robot [Mon, 27 Nov 2017 21:00:34 +0000 (21:00 +0000)]
Merge "Add StatsdStats and guardrail."

6 years agoFix a bug in StorageManager.
Stefan Lafon [Mon, 27 Nov 2017 20:54:21 +0000 (12:54 -0800)]
Fix a bug in StorageManager.

Test: Ran statsd and statsd_test.

Change-Id: I2390c6d2c493981177b08d3861d7bee621253af3

6 years agoMerge "Expose methods to invoke split screen."
TreeHugger Robot [Mon, 27 Nov 2017 20:42:32 +0000 (20:42 +0000)]
Merge "Expose methods to invoke split screen."

6 years agoMerge "Moved DataProfile from telephony internal hidden API to System API"
Jack Yu [Mon, 27 Nov 2017 19:50:46 +0000 (19:50 +0000)]
Merge "Moved DataProfile from telephony internal hidden API to System API"

6 years agoFixes javadoc documentation of PackageInstaller.SessionParams#setOriginatingUid(int)
Nikolas Bravo [Tue, 7 Nov 2017 21:07:15 +0000 (21:07 +0000)]
Fixes javadoc documentation of PackageInstaller.SessionParams#setOriginatingUid(int)

* Current "See also" link in https://developer.android.com/reference/android/content/pm/PackageInstaller.SessionParams.html#setOriginatingUid(int) is not only wrong, but also broken
* Added a missing "the"

Bug: 69799046
Fixes: 69799046
Test: make ds-docs (run by asolovay@)
Change-Id: I90410ed3393b5c37afdf0476eb70821fae9f63fd
(cherry picked from commit 6283100a87b7be5fb1aad9a258ebba9faf74b061)

6 years agoClarify docs, sanity check roaming state.
Jeff Sharkey [Thu, 9 Nov 2017 20:11:50 +0000 (13:11 -0700)]
Clarify docs, sanity check roaming state.

Update public docs to hide the fact that NetworkCapabilities is only
used inside NetworkRequest as an implementation detail.

Take up less room on the wire when passing NetworkCapabilities around
via NetworkRequest.

Sanity check that the roaming state between NetworkInfo and
NetworkCapabilities is in agreement.

Test: bit FrameworksNetTests:android.net.,com.android.server.net.,com.android.server.connectivity.,com.android.server.ConnectivityServiceTest
Bug: 67040695
Change-Id: I982b4c3c41a140934bbad3b8ca8f12dc3814e86c

6 years agoFix a bug in test that cause the flakyness in SimpleConditionTracker_test.
Yao Chen [Mon, 27 Nov 2017 19:40:45 +0000 (11:40 -0800)]
Fix a bug in test that cause the flakyness in SimpleConditionTracker_test.

Test: statsd_test
Change-Id: I9f785d26c857023fbe44d71eb3490a50fcc6139a

6 years agoMerge "tidy up the metrics proto"
TreeHugger Robot [Mon, 27 Nov 2017 19:36:37 +0000 (19:36 +0000)]
Merge "tidy up the metrics proto"

6 years agoReject the config if condition config has errors. And add log tag.
Yao Chen [Mon, 27 Nov 2017 19:31:55 +0000 (11:31 -0800)]
Reject the config if condition config has errors. And add log tag.

Test: added unit test.
Change-Id: I5a9d6de2492b94bc5f1c88524f743607e60226c1

6 years agoAAPT2 - Make raw files of type unknown.
Pierre Lecesne [Mon, 27 Nov 2017 19:29:42 +0000 (19:29 +0000)]
AAPT2 - Make raw files of type unknown.

Bug: 69791607
Test: Manual.

Change-Id: I6ee5ef37fb447ab79d46b57e0dc4eaad84eec723

6 years agoMerge "Only update the task description when the task/description changes"
TreeHugger Robot [Mon, 27 Nov 2017 19:31:44 +0000 (19:31 +0000)]
Merge "Only update the task description when the task/description changes"

6 years agoMerge "Store bounds in WindowConfiguration."
Bryce Lee [Mon, 27 Nov 2017 19:15:06 +0000 (19:15 +0000)]
Merge "Store bounds in WindowConfiguration."

6 years agoExpose methods to invoke split screen.
Winson Chung [Fri, 17 Nov 2017 21:04:07 +0000 (13:04 -0800)]
Expose methods to invoke split screen.

- Also remove duplicate code in shortcut key dispatcher.

Bug: 67510855
Test: Drag and dock in Recents
Change-Id: I46634ab0585d29edd2068a6149cffa928f729d33
Signed-off-by: Winson Chung <winsonc@google.com>
6 years agoAdd StatsdStats and guardrail.
Yao Chen [Wed, 22 Nov 2017 02:07:17 +0000 (18:07 -0800)]
Add StatsdStats and guardrail.

+ StatsdStats is the global class that tracks the stats about statsd.

+ Added guardrail for classes that have a map which could potentially grow
  unboundedly with the number of logs.

TODO: add unit tests & CTS for StatsdStats, and guardrail
      add stats for pulled atoms.

Test: statsd_test

Change-Id: I0ea562de4dd3f6162f7923a9c193420b482c1d51

6 years agoNew Autofill API: SaveCallback.onSuccess(IntentSender).
Felipe Leme [Wed, 22 Nov 2017 00:47:13 +0000 (16:47 -0800)]
New Autofill API: SaveCallback.onSuccess(IntentSender).

This overloaded method is useful for cases where the service needs to launch
an activity (for example, to unlock the user's vault), in which case it's
launched from the context of the activity being filled.

Test: atest CtsAutoFillServiceTestCases:SimpleSaveActivityTest#testSave_launchIntent
Test: atest CtsAutoFillServiceTestCases
Fixes: 69458616

Change-Id: I41bf5fd4954c38051e3275f2e8500a00dcf24724

6 years agoskeleton for cts testing for atoms
Chenjie Yu [Wed, 22 Nov 2017 20:36:41 +0000 (12:36 -0800)]
skeleton for cts testing for atoms

Test: cts test
Change-Id: Ic5b6d68445a61d7c77cb9cbeefe66c36407ff61a

6 years agoUse the root case to set remote stack trace for
Fyodor Kupolov [Mon, 27 Nov 2017 18:40:46 +0000 (10:40 -0800)]
Use the root case to set remote stack trace for

Otherwise it may cause ISE if a cause has already been set like
in ParcelableException.

Test: manual install/uninstall an app on secondary user
Bug: 69704045
Change-Id: Ia8631ea76d5acf38e60fc609eef65f010ade21b5

6 years agoMerge "Battery Saver master case changes"
TreeHugger Robot [Mon, 27 Nov 2017 18:32:41 +0000 (18:32 +0000)]
Merge "Battery Saver master case changes"

6 years agoMigrate some preference theme attributes from SettingsLib
Antony Sargent [Mon, 16 Oct 2017 16:43:08 +0000 (09:43 -0700)]
Migrate some preference theme attributes from SettingsLib

We've moved some preference style definitions from SettingsLib into the
Support Library, with a goal of letting us use them in more places and
avoid duplication.

Bug: 64689839
Test: manual
Change-Id: I49eca13943eb15d2c3f4fb099f439060f9c60cff

6 years agotidy up the metrics proto
Chris Wren [Mon, 27 Nov 2017 17:54:14 +0000 (12:54 -0500)]
tidy up the metrics proto

add a default value for TextSelectionInvocationMethod
retain some O comments to aid analysis in the future.
add a P end comment to aid the automergers.

Test: mmm frameworks/base/proto
Change-Id: Ia28eaac44856ca21b4590fa46c736266c3541453

6 years agoMerge "Fix some bugs in duration tracker."
TreeHugger Robot [Mon, 27 Nov 2017 17:51:23 +0000 (17:51 +0000)]
Merge "Fix some bugs in duration tracker."

6 years agoMoved DataProfile from telephony internal hidden API to System API
Jack Yu [Mon, 20 Nov 2017 19:14:23 +0000 (11:14 -0800)]
Moved DataProfile from telephony internal hidden API to System API

This is the preliminary change in order to make the new data call
setup API for IWLAN refactoring.

Test: Telephony sanity tests + unit tests
bug: 64132030

Change-Id: Ib96dc3dd577def0a428e2f5cdb5fb7f742120020

6 years agoMerge "Add meta-data constant for activity->slice"
TreeHugger Robot [Mon, 27 Nov 2017 17:25:44 +0000 (17:25 +0000)]
Merge "Add meta-data constant for activity->slice"

6 years agoStore bounds in WindowConfiguration.
Bryce Lee [Tue, 14 Nov 2017 22:53:06 +0000 (14:53 -0800)]
Store bounds in WindowConfiguration.

This changelist consolidates the usage of frame bounds in containers
into the WindowConfiguration. As a result, the bounds are now shared
across AM and WM. Any changes to the bounds on one side are
propagated to the other via override configuration changes. Previous
instrumentation to synchronize the two sides is no longer necessary.

This changelist does not attempt to consolidate common logic shared
between WM or AM components for setting bounds.

Bug: 68719294
Test: go/wm-smoke
Change-Id: Ia8978dba8525b83201640e159caefe16e626b7c1

6 years agoMerge "Change dump priority for meminfo - change meminfo dump priority to HIGH (temp...
TreeHugger Robot [Mon, 27 Nov 2017 16:48:51 +0000 (16:48 +0000)]
Merge "Change dump priority for meminfo - change meminfo dump priority to HIGH (temp workaround until parallel dump is implemented) - pass in -a args to meminfo dump"

6 years agoExplicitly exclude com.android.server from docs
Neil Fuller [Mon, 27 Nov 2017 10:32:07 +0000 (10:32 +0000)]
Explicitly exclude com.android.server from docs

With the move to OpenJDK 9 the packages under
com.android are not automatically hidden. There's
only two which show up, one of which
(com.android.internal.util) was already present.
com.android.server can just be explicitly hidden.

Test: make docs / diff
Bug: 69736344
Bug: 69736236
Change-Id: I44fb16e86a8d87152eba4e53a7b2d2290662bb63

6 years agoMerge "Remove unused strings from sysui"
Evan Laird [Mon, 27 Nov 2017 16:09:47 +0000 (16:09 +0000)]
Merge "Remove unused strings from sysui"

6 years agoMerge "Add @Presubmit back to SettingsBackupTest"
TreeHugger Robot [Mon, 27 Nov 2017 10:17:25 +0000 (10:17 +0000)]
Merge "Add @Presubmit back to SettingsBackupTest"

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Mon, 27 Nov 2017 04:12:38 +0000 (04:12 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sun, 26 Nov 2017 22:39:16 +0000 (22:39 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sun, 26 Nov 2017 22:37:17 +0000 (22:37 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sun, 26 Nov 2017 22:36:13 +0000 (22:36 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 26 Nov 2017 19:45:16 +0000 (11:45 -0800)]
Import translations. DO NOT MERGE

Change-Id: I7ca2a7f0a9f8280d1c48a0c1ecb9c68553b8b7d9
Auto-generated-cl: translation import

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 26 Nov 2017 17:33:19 +0000 (09:33 -0800)]
Import translations. DO NOT MERGE

Change-Id: I0bbc89008d10bee8530c7e2ad2b81df9fa87846e
Auto-generated-cl: translation import

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 26 Nov 2017 17:05:00 +0000 (09:05 -0800)]
Import translations. DO NOT MERGE

Change-Id: I1c1b8d2908d542f4b1a26bc7e61e07ce634d53cf
Auto-generated-cl: translation import

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 26 Nov 2017 17:02:03 +0000 (09:02 -0800)]
Import translations. DO NOT MERGE

Change-Id: Icc0a96079b89c483a584c5ead08850a3328caedb
Auto-generated-cl: translation import

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 26 Nov 2017 16:45:29 +0000 (08:45 -0800)]
Import translations. DO NOT MERGE

Change-Id: I056b783ab3288a98a4615a0d4634f3a7e0341cbe
Auto-generated-cl: translation import

6 years agoFix some bugs in duration tracker.
Yao Chen [Sun, 26 Nov 2017 03:54:01 +0000 (19:54 -0800)]
Fix some bugs in duration tracker.

There are some bugs in the previous big anomaly detection cl, which I didn't catch.

Test: statsd_test
Change-Id: I2ca22e0f112e5cff8fb204c0c94141188659fdba

6 years agoFix statsd crash caused by non-existing data folder.
Yao Chen [Sat, 25 Nov 2017 23:33:09 +0000 (15:33 -0800)]
Fix statsd crash caused by non-existing data folder.

Test: manual
Change-Id: Ie470279929ff6ce40c4828a3cdda6d78542a3caa

6 years agoMerge "Add owner for ColorDisplayService"
Christine Franks [Fri, 24 Nov 2017 23:21:57 +0000 (23:21 +0000)]
Merge "Add owner for ColorDisplayService"

6 years agoMerge "Fix checkapi for OpenJDK 9 builds"
Neil Fuller [Fri, 24 Nov 2017 19:46:00 +0000 (19:46 +0000)]
Merge "Fix checkapi for OpenJDK 9 builds"

6 years agoFix checkapi for OpenJDK 9 builds
Neil Fuller [Fri, 24 Nov 2017 15:58:38 +0000 (15:58 +0000)]
Fix checkapi for OpenJDK 9 builds

This change explitly hides com.android.okhttp
from doclava. The public.txt generation was
previously relying on a package.html in
com.android to hide all subpackages, which
doesn't work with javadoc 9.

Test: make droid (with both OpenJDK 8 and OpenJDK 9)
Bug: 69709687
Change-Id: If61b69f913be044adb4cd34867459bde6330ea2c

6 years agoAdd @Presubmit back to SettingsBackupTest
Bryan Mawhinney [Fri, 24 Nov 2017 16:12:08 +0000 (16:12 +0000)]
Add @Presubmit back to SettingsBackupTest

Test: runtest --path frameworks/base/core/tests/coretests/src/android/provider/SettingsBackupTest.java
Change-Id: I5b43bf58bca39cc7393f37d7c3ce6a26aff6d858

6 years agoMerge "Make SettingsBackupTest pass again"
Bryan Mawhinney [Fri, 24 Nov 2017 15:49:09 +0000 (15:49 +0000)]
Merge "Make SettingsBackupTest pass again"

6 years agoMerge "[Magnifier - 10] Make it public"
Andrei Stingaceanu [Fri, 24 Nov 2017 14:27:21 +0000 (14:27 +0000)]
Merge "[Magnifier - 10] Make it public"

6 years agoMake SettingsBackupTest pass again
Bryan Mawhinney [Fri, 24 Nov 2017 13:44:48 +0000 (13:44 +0000)]
Make SettingsBackupTest pass again

Test: runtest --path frameworks/base/core/tests/coretests/src/android/provider/SettingsBackupTest.java
Change-Id: I2c783bae9146adc9c4538bc34795da4e6e9573ee

6 years agoMerge "Binding on-demand #2: PerformFullTransportBackupTask usage"
TreeHugger Robot [Fri, 24 Nov 2017 13:31:05 +0000 (13:31 +0000)]
Merge "Binding on-demand #2: PerformFullTransportBackupTask usage"

6 years ago[Magnifier - 10] Make it public
Andrei Stingaceanu [Tue, 21 Nov 2017 14:53:38 +0000 (14:53 +0000)]
[Magnifier - 10] Make it public

* moves the Magnifier from com.android.internal.widget to
  android.widget
* removes useless public getters; useless for now because we have
  no magnifier configuration but the hardcoded one

Bug: 67839742
Bug: 63531115
Test: bit CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: Ie6f474c4c781038650007a15937d61c650ee5fdd

6 years agoBinding on-demand #2: PerformFullTransportBackupTask usage
Bernardo Rufino [Wed, 15 Nov 2017 17:21:42 +0000 (17:21 +0000)]
Binding on-demand #2: PerformFullTransportBackupTask usage

Migrate the full-backup task to use binding on-demand

Ref: http://go/br-binding-on-demand
Bug: 17140907
Test: make RunFrameworksServicesRoboTests
Test: runtest -p com.android.server.backup frameworks-services
Test: adb shell bmgr backupnow <packages>
      With transports manually unbound and also canceled the operation a
      few times. Then inspected TransportClient logcat
Test: gts-tradefed run commandAndExit gts-dev -m GtsBackupTestCases
Test: gts-tradefed run commandAndExit gts-dev -m GtsBackupHostTestCases
Test: cts-tradefed run commandAndExit cts-dev -m CtsBackupTestCases
Test: Manually unbound before GTS/CTS above.

Change-Id: I15abe970db0b9858e0e2e4eb666358db3a9d50ad

6 years agoMerge "WM: Move WindowManagerPolicy, DisplayFrames and WindowManagerInternal into...
TreeHugger Robot [Thu, 23 Nov 2017 17:50:20 +0000 (17:50 +0000)]
Merge "WM: Move WindowManagerPolicy, DisplayFrames and WindowManagerInternal into services"

6 years agoMerge "Disable window tracing on user builds. - Make window trace shell commands...
TreeHugger Robot [Thu, 23 Nov 2017 16:59:22 +0000 (16:59 +0000)]
Merge "Disable window tracing on user builds. - Make window trace shell commands fail gracefully in user builds. - Dont start the trace thread on user builds."

6 years agoWM: Move WindowManagerPolicy, DisplayFrames and WindowManagerInternal into services
Adrian Roos [Mon, 20 Nov 2017 16:55:31 +0000 (17:55 +0100)]
WM: Move WindowManagerPolicy, DisplayFrames and WindowManagerInternal into services

Splits WindowManagerPolicy into a framework and a services part, preventing concepts that are
internal to the window manager from leaking out into the framework.

Test: make droid
Change-Id: I7b6a54f55f76f6fbb5f27090981b8f1d4d8be88b

6 years agoMerge "Let keyguard UI procced as soon as user password is validated"
Rubin Xu [Thu, 23 Nov 2017 15:40:52 +0000 (15:40 +0000)]
Merge "Let keyguard UI procced as soon as user password is validated"

6 years agoLet keyguard UI procced as soon as user password is validated
Rubin Xu [Wed, 15 Nov 2017 11:55:35 +0000 (11:55 +0000)]
Let keyguard UI procced as soon as user password is validated

Notify the callback as soon as first stage password verification passes,
leaving the decryption of synthetic password in the background. This should
reduce the perceived latency of device unlock UI wise.

Bug: 68380673
Test: Measured time manually, unlock on marlin now takes 70ms, and taimen
      takes 90ms.

Change-Id: Ibb787251f8fea776c6745d45ee2d8ab60515a5f4

6 years agoMerge "Add unit tests for DexLogger."
Alan Stokes [Thu, 23 Nov 2017 12:09:52 +0000 (12:09 +0000)]
Merge "Add unit tests for DexLogger."

6 years agoMerge "Fix outdated docs of permission protection levels."
Peter Visontay [Thu, 23 Nov 2017 11:06:46 +0000 (11:06 +0000)]
Merge "Fix outdated docs of permission protection levels."

6 years agoAdd unit tests for DexLogger.
Alan Stokes [Mon, 20 Nov 2017 15:37:58 +0000 (15:37 +0000)]
Add unit tests for DexLogger.

Bug: 63927552
Test: runtest frameworks-services -c com.android.server.pm.dex.DexLoggerTests --install=".*FrameworksServicesTests.apk"
Change-Id: I5f775b5309060c78cb6aaf0c28c4aa777ff11e8e

6 years agoMerge "Captures metrics on disk when devices reboot and shutdown. Specifically,"
TreeHugger Robot [Thu, 23 Nov 2017 04:52:35 +0000 (04:52 +0000)]
Merge "Captures metrics on disk when devices reboot and shutdown. Specifically,"

6 years agoMerge "Fixes out of range bug in SimpleConditionTracker."
TreeHugger Robot [Thu, 23 Nov 2017 04:04:55 +0000 (04:04 +0000)]
Merge "Fixes out of range bug in SimpleConditionTracker."

6 years agoMerge "Changed FillResponse so it can have only a client state."
TreeHugger Robot [Thu, 23 Nov 2017 02:42:07 +0000 (02:42 +0000)]
Merge "Changed FillResponse so it can have only a client state."

6 years agoCaptures metrics on disk when devices reboot and shutdown. Specifically,
yro [Thu, 16 Nov 2017 06:50:23 +0000 (22:50 -0800)]
Captures metrics on disk when devices reboot and shutdown. Specifically,

1. Create intent receiver in StatsCompanionService to listen to shutdown
events.
2. Create StatsWriter class to handle disk writes and deleting files.
3. Update StatsLogProcessor, ConfigManager, and StatsService to handle
files on disk using StatsWriter.
4. Add a wrapper for ConfigMetricsReport.

Still TODO is to be able to add a guardrail to prevent accumulating
excessive amount files on disk, which will be followed up by another
change.

Test: statsd, statsd_test
Change-Id: Ia0b3af315af545daa8b0078b3700c600aa7c285f

6 years agoMerge "Correct A2DP status when audio routes changed"
TreeHugger Robot [Thu, 23 Nov 2017 02:35:04 +0000 (02:35 +0000)]
Merge "Correct A2DP status when audio routes changed"

6 years agoCorrect A2DP status when audio routes changed
Sungsoo Lim [Tue, 21 Nov 2017 04:12:24 +0000 (13:12 +0900)]
Correct A2DP status when audio routes changed

When a Bluetooth device is connected and then a media is started,
sometimes MediaRouterService gets media playback status change first
and get the Bluetooth device status change later. This causes the
media plays through the phone speaker instead of BT devices.

This CL prevent that situation by not changing A2DP status when
BT device is not connected, and by calling restoreBluetoothA2dp
at the end of dispatchAudioRoutesChanged.

Bug: 69499034
Test: manually tested the bug, passed Media CTS
Change-Id: I7547a39e5ce58f58c249a25efa55446a3b023416

6 years agoMerge changes from topic "predicatez"
Jeff Sharkey [Thu, 23 Nov 2017 02:00:06 +0000 (02:00 +0000)]
Merge changes from topic "predicatez"

* changes:
  Emit all APIs using Predicates.
  Massage APIs for upcoming doclava change.

6 years agoFixes out of range bug in SimpleConditionTracker.
David Chen [Thu, 23 Nov 2017 00:47:59 +0000 (16:47 -0800)]
Fixes out of range bug in SimpleConditionTracker.

One of the unit tests was flaky because mStopAllLogMatcherIndex may
be greater than the size of eventMatcherValues, so we access an
element that is greater than the vector size.

Test: Check unit-tests still work. Flake is a bit hard to find.
Change-Id: Ib177cd0ae00bbe7aa6982c6ec31d9094253a9c10

6 years agoMerge "Set the metric name for alerts in fake config and add a test to make sure...
TreeHugger Robot [Thu, 23 Nov 2017 00:26:48 +0000 (00:26 +0000)]
Merge "Set the metric name for alerts in fake config and add a test to make sure the fake config is valid.."

6 years agoMerge "Make member function as const whenever possible."
TreeHugger Robot [Thu, 23 Nov 2017 00:12:40 +0000 (00:12 +0000)]
Merge "Make member function as const whenever possible."

6 years agoMerge "The job scheduler now backs off jobs based on standby bucketing"
Amith Yamasani [Thu, 23 Nov 2017 00:00:23 +0000 (00:00 +0000)]
Merge "The job scheduler now backs off jobs based on standby bucketing"

6 years agoMerge "android.os.HidlSupport: add getPidIfSharable() for HALs" am: e72b6f0d31 am...
Yifan Hong [Wed, 22 Nov 2017 23:28:56 +0000 (23:28 +0000)]
Merge "android.os.HidlSupport: add getPidIfSharable() for HALs" am: e72b6f0d31 am: 8cf7761747
am: 523665a293

Change-Id: I901c938c2c56ab1c1649c218b37d4ab131cd3c7b

6 years agoMerge "android.os.HidlSupport: add getPidIfSharable() for HALs" am: e72b6f0d31
Yifan Hong [Wed, 22 Nov 2017 23:18:46 +0000 (23:18 +0000)]
Merge "android.os.HidlSupport: add getPidIfSharable() for HALs" am: e72b6f0d31
am: 8cf7761747

Change-Id: I842bf4791467620e597018ce0e9441cfb0732026

6 years agoMerge "Minor improvements on autofill javadocs and logging."
Felipe Leme [Wed, 22 Nov 2017 23:14:56 +0000 (23:14 +0000)]
Merge "Minor improvements on autofill javadocs and logging."

6 years agoMerge "Fix ConfigManager unit test."
TreeHugger Robot [Wed, 22 Nov 2017 23:08:06 +0000 (23:08 +0000)]
Merge "Fix ConfigManager unit test."

6 years agoMerge "android.os.HidlSupport: add getPidIfSharable() for HALs"
Yifan Hong [Wed, 22 Nov 2017 23:06:33 +0000 (23:06 +0000)]
Merge "android.os.HidlSupport: add getPidIfSharable() for HALs"
am: e72b6f0d31

Change-Id: I7ea5895cdfd09786732b597be600329a334c1cb4

6 years agoMerge "android.os.HidlSupport: add getPidIfSharable() for HALs"
Yifan Hong [Wed, 22 Nov 2017 22:51:19 +0000 (22:51 +0000)]
Merge "android.os.HidlSupport: add getPidIfSharable() for HALs"

6 years agoAdd owner for ColorDisplayService
Christine Franks [Wed, 22 Nov 2017 22:43:11 +0000 (14:43 -0800)]
Add owner for ColorDisplayService

Test: make -j100
Change-Id: I776acca1fa91800d225aae3d1d63447d295ed6cc

6 years agoMerge "Update javadocs for ACTION_CONFIGURE_VOICEMAIL" am: 80aefae026 am: e6e67e2396
Jordan Liu [Wed, 22 Nov 2017 22:36:17 +0000 (22:36 +0000)]
Merge "Update javadocs for ACTION_CONFIGURE_VOICEMAIL" am: 80aefae026 am: e6e67e2396
am: 59e3c519f5

Change-Id: Ibd99a60779e93105aeed2bc8a9f573b4f9d3723e

6 years agoMake member function as const whenever possible.
Yangster [Wed, 22 Nov 2017 22:24:24 +0000 (14:24 -0800)]
Make member function as const whenever possible.

Test: unit tests passed.
Change-Id: I751cabf305a4b5aa2095853cc951837da0df4c78

6 years agoMerge "Update javadocs for ACTION_CONFIGURE_VOICEMAIL" am: 80aefae026
Jordan Liu [Wed, 22 Nov 2017 22:26:49 +0000 (22:26 +0000)]
Merge "Update javadocs for ACTION_CONFIGURE_VOICEMAIL" am: 80aefae026
am: e6e67e2396

Change-Id: I5b0219998a6de6709bec137237583c050a6cdc02

6 years agoMerge "Update javadocs for ACTION_CONFIGURE_VOICEMAIL"
Jordan Liu [Wed, 22 Nov 2017 22:17:47 +0000 (22:17 +0000)]
Merge "Update javadocs for ACTION_CONFIGURE_VOICEMAIL"
am: 80aefae026

Change-Id: Ie18492114c58d1c83c060712d2a936687353ea99