OSDN Git Service

android-x86/frameworks-base.git
6 years agoAdd proto output of statsd stats in adb
Tej Singh [Wed, 4 Apr 2018 00:06:35 +0000 (17:06 -0700)]
Add proto output of statsd stats in adb

Test: statsd unit tests
Test: visually verified output of adb shell cmd stats print-stats was
sane
Test: making a CTS test that uses proto output
Bug: b/77548658

Change-Id: Ie60d66b9883f109446745dfcef97b7fb6194a1ac

6 years agoBugFix: Config TTL
Tej Singh [Thu, 5 Apr 2018 00:27:14 +0000 (17:27 -0700)]
BugFix: Config TTL

In statsStats, we were writing the config TTL reset time to the wrong
proto field number. This fixes that.

Bug: b/77604625
Test: unit tests, pending CTS test
Change-Id: I9f6e502bf13785bfa60d68805d46b9a5c2286f44

6 years agoMerge "Statsd config TTL" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 22:01:55 +0000 (22:01 +0000)]
Merge "Statsd config TTL" into pi-dev

6 years agoMerge "Add basic inversion lock detection to DPMS." into pi-dev
Makoto Onuki [Wed, 4 Apr 2018 21:54:11 +0000 (21:54 +0000)]
Merge "Add basic inversion lock detection to DPMS." into pi-dev

6 years agoMerge "Fix launcher apps reverse access" into pi-dev
Makoto Onuki [Wed, 4 Apr 2018 21:29:38 +0000 (21:29 +0000)]
Merge "Fix launcher apps reverse access" into pi-dev

6 years agoMerge "Added --debug-mode flag to AAPT2" into pi-dev
Ryan Mitchell [Wed, 4 Apr 2018 21:21:28 +0000 (21:21 +0000)]
Merge "Added --debug-mode flag to AAPT2" into pi-dev

6 years agoMerge "Added decoding of truncated AAPT string lengths." into pi-dev
Ryan Mitchell [Wed, 4 Apr 2018 21:21:10 +0000 (21:21 +0000)]
Merge "Added decoding of truncated AAPT string lengths." into pi-dev

6 years agoMerge "Fixed resource bag retrieval infinite recursion." into pi-dev
Ryan Mitchell [Wed, 4 Apr 2018 21:20:24 +0000 (21:20 +0000)]
Merge "Fixed resource bag retrieval infinite recursion." into pi-dev

6 years agoMerge "Simplify service wrapper initialization + make robust" into pi-dev
Makoto Onuki [Wed, 4 Apr 2018 21:15:46 +0000 (21:15 +0000)]
Merge "Simplify service wrapper initialization + make robust" into pi-dev

6 years agoMerge "Fixed IMMS.DebugFlag#refresh() default value" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 21:04:51 +0000 (21:04 +0000)]
Merge "Fixed IMMS.DebugFlag#refresh() default value" into pi-dev

6 years agoMerge "Center airplane icon in its frame" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 21:04:35 +0000 (21:04 +0000)]
Merge "Center airplane icon in its frame" into pi-dev

6 years agoMerge changes from topic "navbar_fix" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 20:52:34 +0000 (20:52 +0000)]
Merge changes from topic "navbar_fix" into pi-dev

* changes:
  Allow resolving the quickstep service when the user is unlocked
  Revert "Revert "Nav icons and quick step states are determined by service enabled""

6 years agoMerge "Fix TCS crash due to API changes." into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 20:29:22 +0000 (20:29 +0000)]
Merge "Fix TCS crash due to API changes." into pi-dev

6 years agoMerge "Don't clear a11y focus with lock held" into pi-dev
Phil Weaver [Wed, 4 Apr 2018 20:28:18 +0000 (20:28 +0000)]
Merge "Don't clear a11y focus with lock held" into pi-dev

6 years agoMerge "[DO NOT MERGE] Fix a11y action "expand notifications" when QS is open" into...
TreeHugger Robot [Wed, 4 Apr 2018 20:26:23 +0000 (20:26 +0000)]
Merge "[DO NOT MERGE] Fix a11y action "expand notifications" when QS is open" into pi-dev

6 years agoMerge "Clean up remaining TODOs in RecoveryController." into pi-dev
Dmitry Dementyev [Wed, 4 Apr 2018 20:25:39 +0000 (20:25 +0000)]
Merge "Clean up remaining TODOs in RecoveryController." into pi-dev

6 years agoMerge "Log when save UI is not showing because of the service's response." into pi-dev
Felipe Leme [Wed, 4 Apr 2018 20:24:23 +0000 (20:24 +0000)]
Merge "Log when save UI is not showing because of the service's response." into pi-dev

6 years agoMerge "Hide status bar when bouncer is visible" into pi-dev
Lucas Dupin [Wed, 4 Apr 2018 20:21:11 +0000 (20:21 +0000)]
Merge "Hide status bar when bouncer is visible" into pi-dev

6 years agoFix launcher apps reverse access
Makoto Onuki [Tue, 3 Apr 2018 23:44:39 +0000 (16:44 -0700)]
Fix launcher apps reverse access

Trying to access other profiles from work profile shouldn't throw
security exception.

This is a partial revert of Ia4ddea58f66861ef760865b6d8831563584f85c9.

(Technically we should check the target user-id too, but that part isn't a
regression, so I'm not fixing that part.)

Bug: 77260666
Change-Id: I3f1f6584fcd6b879943d85ab4678b6130def0ba3
Fixes: 77260666
Test: atest /android/pi-dev/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/LauncherAppsProfileTest.java#testReverseAccessNoThrow
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest2 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest3 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest4 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest5 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest6 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest7 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest8 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest9 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest10 -w com.android.frameworks.servicestests

6 years agoMerge "Center layout of nav inflator to wrap content to tap other buttons" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 19:22:00 +0000 (19:22 +0000)]
Merge "Center layout of nav inflator to wrap content to tap other buttons" into pi-dev

6 years agoMerge "Check the size of the strings in the StringPool before flattening." into pi-dev
Ryan Mitchell [Wed, 4 Apr 2018 19:21:47 +0000 (19:21 +0000)]
Merge "Check the size of the strings in the StringPool before flattening." into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 19:20:49 +0000 (19:20 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoAdd basic inversion lock detection to DPMS.
Makoto Onuki [Tue, 13 Mar 2018 21:22:23 +0000 (14:22 -0700)]
Add basic inversion lock detection to DPMS.

For now enable it on ENG builds only.
(I'll change the condition in master so I'll get WTFs from qt-release devices
too.)

This will detect calling into DPMS with the following locks held:

APP_OPS
POWER
USER
PACKAGES
STORAGE
WINDOW
ACTIVITY
DPMS

On marlin-eng pi-dev, each guard() takes ~25us.
    LockGuard.guard(): count=7246, total=175.1ms, avg=0.024ms

Used the following command to ensure all locks are replaced.
$ grep synchronized /android/pi-dev/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java | sed -e 's/  *//' | uniq

Bug: 74553426
Test: Manual test with an intentional lock inversion.
Change-Id: Id59d562d7c275b6ea127a211284496f5d64f9f93

6 years agoMerge "Revert angle classifier relaxation" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 19:18:13 +0000 (19:18 +0000)]
Merge "Revert angle classifier relaxation" into pi-dev

6 years agoSimplify service wrapper initialization + make robust
Makoto Onuki [Fri, 30 Mar 2018 19:39:14 +0000 (12:39 -0700)]
Simplify service wrapper initialization + make robust

- Simplify the logic, no more AtomicIntegers.
- Make robust -- if we know we've successfully created an instance before,
but the instance is now gone, re-initialize again.
- Added CTS.

Bug: 75964116
Fixes: 75964116
Bug: 71882178
Fixes: 71882178
Test: Manual test with UC Browser
Test: atest /android/pi-dev/cts/tests/tests/content/src/android/content/cts/ContextTest.java#testGetSystemService_multiThreaded
Change-Id: I12a9834d0f62e90e6f5d806a124cbdade415440c

6 years agoMerge "Use Scrypt to hash long passwords in RecoverableKeyStore" into pi-dev
Bo Zhu [Wed, 4 Apr 2018 19:13:40 +0000 (19:13 +0000)]
Merge "Use Scrypt to hash long passwords in RecoverableKeyStore" into pi-dev

6 years agoMerge "Fix reading exception from Parcel" into pi-dev
Fyodor Kupolov [Wed, 4 Apr 2018 19:13:21 +0000 (19:13 +0000)]
Merge "Fix reading exception from Parcel" into pi-dev

6 years agoMerge "Adding methods to greylist Test: None" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 19:09:55 +0000 (19:09 +0000)]
Merge "Adding methods to greylist Test: None" into pi-dev

6 years agoLog when save UI is not showing because of the service's response.
Felipe Leme [Wed, 4 Apr 2018 18:57:03 +0000 (11:57 -0700)]
Log when save UI is not showing because of the service's response.

Bug: 74553423
Test: manual verification

Change-Id: I2ed43866b8384de2edea1a12e3da6adae2292c29

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 18:42:38 +0000 (18:42 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoAllow resolving the quickstep service when the user is unlocked
Winson Chung [Wed, 4 Apr 2018 16:13:37 +0000 (09:13 -0700)]
Allow resolving the quickstep service when the user is unlocked

- When the user is locked, resolving components through package manager
  will default to match only the components aware of the current lock
  state. To ensure that we resolve to the quickstep service we need to
  match against all components including those that are direct boot
  unaware.

Bug: 77566214
Test: Restart the phone
Change-Id: Iab225473795b0051df304166816c4c5c9b00c1de

6 years agoRevert "Revert "Nav icons and quick step states are determined by service enabled""
Winson Chung [Wed, 4 Apr 2018 17:02:29 +0000 (17:02 +0000)]
Revert "Revert "Nav icons and quick step states are determined by service enabled""

This reverts commit 317ee507c2ea69044dc91f7c6d019deeab1ebeae.

Reason for revert: Have fix for b/77566214

Test: manual
Bug: 77566214
Change-Id: Ie827e3651f70dfde5f02a5099fd81a5eb4e4cd5e

6 years agoMerge "[Notif] Cache bool instead of manager/info" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 18:00:31 +0000 (18:00 +0000)]
Merge "[Notif] Cache bool instead of manager/info" into pi-dev

6 years agoRevert angle classifier relaxation
Lucas Dupin [Wed, 4 Apr 2018 17:50:41 +0000 (10:50 -0700)]
Revert angle classifier relaxation

Not necessary anymore because we now have a more generic solution

Change-Id: I3f4c509953b79ac6ea4ef67489474c5fb37c7109
Fixes: 77553611
Test: Swipe up and down on keyguard
Test: Swipe up and to the left on keyguard

6 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 4 Apr 2018 12:18:57 +0000 (05:18 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I23a479107398d99cff9327fbe8f897bd0d6b0528

6 years agoMerge "Remove deprecated recoverable keystore classes." into pi-dev
Dmitry Dementyev [Wed, 4 Apr 2018 17:42:11 +0000 (17:42 +0000)]
Merge "Remove deprecated recoverable keystore classes." into pi-dev

6 years agoMerge "Remove deprecated RecoveryController API." into pi-dev
Dmitry Dementyev [Wed, 4 Apr 2018 17:41:51 +0000 (17:41 +0000)]
Merge "Remove deprecated RecoveryController API." into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 4 Apr 2018 17:33:28 +0000 (10:33 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ifbca808c357b04b1c5cf25b6cc1852f447c221a5

6 years agoMerge "Move hidden API from vendor to light grey" into pi-dev
David Brazdil [Wed, 4 Apr 2018 17:23:30 +0000 (17:23 +0000)]
Merge "Move hidden API from vendor to light grey" into pi-dev

6 years agoMerge "Revert "Nav icons and quick step states are determined by service enabled...
Winson Chung [Wed, 4 Apr 2018 17:01:47 +0000 (17:01 +0000)]
Merge "Revert "Nav icons and quick step states are determined by service enabled"" into pi-dev

6 years agoMerge "Add hasUnwantedCapability method" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 16:55:14 +0000 (16:55 +0000)]
Merge "Add hasUnwantedCapability method" into pi-dev

6 years agoMerge "Mark networks with OEM_PAID always restricted" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 16:54:46 +0000 (16:54 +0000)]
Merge "Mark networks with OEM_PAID always restricted" into pi-dev

6 years agoMerge "Ignore test" into pi-dev
Julia Reynolds [Wed, 4 Apr 2018 16:28:45 +0000 (16:28 +0000)]
Merge "Ignore test" into pi-dev

6 years agoStatsd config TTL
Yangster-mac [Fri, 30 Mar 2018 22:22:08 +0000 (15:22 -0700)]
Statsd config TTL

Roughly check the config every hour to see whether the ttl expired.
If so, read the config from disk and recreate the metric manager.

Test: statsd test

BUG: b/77274363

Change-Id: I16838afe5bbe966c3a0f638869751f9b59a5a259

6 years agoAdded decoding of truncated AAPT string lengths.
Ryan Mitchell [Thu, 29 Mar 2018 22:49:10 +0000 (15:49 -0700)]
Added decoding of truncated AAPT string lengths.

AAPT incorrectly writes a truncated string length when the string size
exceeded the maximum possible encode length value (0x7FFF). To decode a
truncated length, this change iterates through length values that end
in the encode length bits. Strings that exceed the maximum encode length
are not placed into StringPools in AAPT2.

Test: Successfully ran broken apps from the duplicates of the bugs
provided and created tests
Bug: 69320870

Change-Id: I99dd9b63e91ac250f81d5dfc26b7c0e6276ae162
(cherry picked from commit ea9e8b447a5d24d1b199507dac203c69d81736e2)

6 years agoFixed resource bag retrieval infinite recursion.
Ryan Mitchell [Fri, 30 Mar 2018 23:13:53 +0000 (16:13 -0700)]
Fixed resource bag retrieval infinite recursion.

An app was crashing because in an attempt to retrieve layout
attribute/style data, the app infinitely recursed because its parent was
set to itself. This change checks if the resource bag parent and child
have the same ids, and if so, attempts to find the resource in this bag
alone rather than attempting to also look in parent bags.

Bug: 74493983
Test: Manual testing of Fitbit app
Change-Id: Iea37533a0676bd51b72c9bb235adec9bd04f2ccc
(cherry picked from commit ac04095ba91f262c9167985a8024607763d8cacc)

6 years agoCheck the size of the strings in the StringPool before flattening.
Ryan Mitchell [Mon, 26 Mar 2018 18:05:31 +0000 (11:05 -0700)]
Check the size of the strings in the StringPool before flattening.

Test: Tested for normal functionality when string does not exceed
maximum length and tests for detection of string that is too lonhg for
UTF8i
Bug: b/74176037

Change-Id: Ic71d3671a069e7012e8ca107e79e071499eebbf6
(cherry picked from commit a15c2a8957b9883cb293fdacaeabd7f2e037a0a5)

6 years agoAdded --debug-mode flag to AAPT2
Ryan Mitchell [Fri, 23 Mar 2018 20:35:00 +0000 (13:35 -0700)]
Added --debug-mode flag to AAPT2

Bug: 74968793
Test: Tested for correct debuggable attribute presense with and without
flag

Change-Id: I0148d1caba62db8cf258926f1d9e87a849aa283f
(cherry picked from commit 444f9bb6a18ff34b69cba504c8658b7013eaa53a)

6 years agoRevert "Nav icons and quick step states are determined by service enabled"
Winson Chung [Wed, 4 Apr 2018 15:16:00 +0000 (15:16 +0000)]
Revert "Nav icons and quick step states are determined by service enabled"

This reverts commit 8a7c97a16d7cfa7bcc602dfa969370bce9dfb686.

Reason for revert: b/77566214

Bug: 77566214

Change-Id: Iba3ef20a304e3a47f1affe0b38598c7d7f0daef7

6 years agoMerge "Frameworks: In the kill handler, ensure the logging handler was run" into...
TreeHugger Robot [Wed, 4 Apr 2018 15:04:37 +0000 (15:04 +0000)]
Merge "Frameworks: In the kill handler, ensure the logging handler was run" into pi-dev

6 years agoAdding methods to greylist
Stephen [Tue, 3 Apr 2018 20:12:01 +0000 (13:12 -0700)]
Adding methods to greylist
Test: None

bug: 74066078

Change-Id: Ic84f4374c8b7c0b359c8674558b89a7a370cc1d0

6 years agoIgnore test
Julia Reynolds [Wed, 4 Apr 2018 13:45:15 +0000 (09:45 -0400)]
Ignore test

That is failing on virtual devices

Test: presubmit
Bug: 77570224
Change-Id: I333ecab616c9528b89a91071416794dc96b479c4

6 years agoMerge "Fix icon tinting when in split screen" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 13:42:10 +0000 (13:42 +0000)]
Merge "Fix icon tinting when in split screen" into pi-dev

6 years agoMove hidden API from vendor to light grey
David Brazdil [Wed, 4 Apr 2018 13:25:00 +0000 (14:25 +0100)]
Move hidden API from vendor to light grey

Bug: 64382372
Bug: 77328929
Test: make
Change-Id: I5141b56c79fad2bc6943ca6086eae53cad82d09c

6 years agoOnly set client hidden if both hidden and hiddenRequested
Jorim Jaggi [Thu, 29 Mar 2018 14:29:18 +0000 (16:29 +0200)]
Only set client hidden if both hidden and hiddenRequested

This fixes a bug where clientHidden of Launcher was set to true
too early because of the following flow:
- Open app, then press home
- During the transition relaunch the app

This leads to a new transition being started for which
hiddenRequested=true for Launcher. Then, the old animation
finishes, before the new one gets stared, and Launcher gets client
hidden too early.

More generally this is correct because:
- if (hidden && hiddenRequested) both states agree
- if (!hidden && !hiddenRequested) both states agree as well
- if (hidden && !hiddenRequested): App is becoming visible before
transition has started, so we shouldn't set it to client hidden
- if (!hidden && hiddenRequested): App is becoming invisible before
transition has started. However we need to defer client hidden
until the transition is done.

Bug: 74220420
Test: Open/close apps quickly repeatedly
Test: go/wm-smoke
Change-Id: I6df107fb0be9d2d779c997f0ddf1315bf53d27a5

6 years agoMerge "Add launch hint for RecentsAnimation" into pi-dev
Jorim Jaggi [Wed, 4 Apr 2018 13:16:37 +0000 (13:16 +0000)]
Merge "Add launch hint for RecentsAnimation" into pi-dev

6 years agoMerge "Update non-remote wallpaper anim to spec" into pi-dev
Jorim Jaggi [Wed, 4 Apr 2018 13:03:33 +0000 (13:03 +0000)]
Merge "Update non-remote wallpaper anim to spec" into pi-dev

6 years agoAdd launch hint for RecentsAnimation
Jorim Jaggi [Thu, 22 Mar 2018 22:20:36 +0000 (23:20 +0100)]
Add launch hint for RecentsAnimation

We are starting an activity, so let's send launch hint to be
faster and consistent with other activity launches.

Test: Swipe up, check android.hardware.power in systrace
Bug: 73651529
Change-Id: Ia8f925d94cf6969d2501e00b86fa91617d093916

6 years agoFix TCS crash due to API changes.
Abodunrinwa Toki [Tue, 3 Apr 2018 22:49:16 +0000 (23:49 +0100)]
Fix TCS crash due to API changes.

- Brings by old deleted APIs and hides them
- Except parceling and hidden APIs that won't have been called anyway
- Option holds a reference to the Request object so we don't have to
  rebuild it

Bug: 77523413
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Test: bit CtsViewTestCases:android.view.textclassifier.cts.TextClassificationManagerTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationTest
Test: bit FrameworksCoreTests:android.view.textclassifier.TextSelectionTest
Test: bit FrameworksCoreTests:android.view.textclassifier.TextLinksTest
Change-Id: I4277c48a950c3334439649373885ed7fe54f898e

6 years agoWe should show custom title for suspend app dialog
Tony Mak [Tue, 3 Apr 2018 17:49:05 +0000 (18:49 +0100)]
We should show custom title for suspend app dialog

BUG: 77523074

Test: Suspend an app, observe the new title.

Change-Id: I85f3d47e05332f7593a885130fd30dc5fd0a9960

6 years agoMerge "Throw ServiceSpecificException if calling app tries to initialize certificates...
TreeHugger Robot [Wed, 4 Apr 2018 06:03:23 +0000 (06:03 +0000)]
Merge "Throw ServiceSpecificException if calling app tries to initialize certificates with lower version. Earlier, the code just returned silently, giving no indication that updating certs failed." into pi-dev

6 years agoMark networks with OEM_PAID always restricted
Lorenzo Colitti [Fri, 30 Mar 2018 09:21:27 +0000 (09:21 +0000)]
Mark networks with OEM_PAID always restricted

Bug: 68762530
Test: runtest -x frameworks/base/tests/net/ -c android.net.NetworkCapabilitiesTest

Cherry-picked from AOSP with no conflicts

Merged-in: I173ee0a3bc1797d03ba34c5f025844eaada87ee4
Change-Id: I173ee0a3bc1797d03ba34c5f025844eaada87ee4
(cherry picked from commit efbacc0ccb70917b2782272e6b8f1a0fb3f56cbe)

6 years agoDon't clear a11y focus with lock held
Phil Weaver [Sat, 31 Mar 2018 00:52:34 +0000 (17:52 -0700)]
Don't clear a11y focus with lock held

The bug I'm fixing is kind of weird, but in the trace it
showed lock contention with onWindowsForAccessibilityChanged
holding the lock for a long time. So I've cleaned up that
method a bit, looking for trouble. The only concrete thing
I see that's wrong is that I was clearing a11y focus, which
involves calling the app that last reported having focus.
That was done with the lock held. Now doing it through the
handler.

Bug: 77298850
Test: Ran a11y CTS and unit tests.
Change-Id: I667707412a0e3ba98639d0cb43858e8c6b52a5a7

6 years agoMerge "Do not animate power menu when AOD" into pi-dev
Lucas Dupin [Wed, 4 Apr 2018 03:33:05 +0000 (03:33 +0000)]
Merge "Do not animate power menu when AOD" into pi-dev

6 years agoMerge "Adds comment how to deal with newly added audio usage" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 03:03:48 +0000 (03:03 +0000)]
Merge "Adds comment how to deal with newly added audio usage" into pi-dev

6 years agoMerge "Includes annotations with statsd reports." into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 02:50:32 +0000 (02:50 +0000)]
Merge "Includes annotations with statsd reports." into pi-dev

6 years agoMerge "Removed redundant autofill response info from ViewState dump()" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 01:53:57 +0000 (01:53 +0000)]
Merge "Removed redundant autofill response info from ViewState dump()" into pi-dev

6 years agoMerge "Add settings to configure default multipath quota." into pi-dev
Remi NGUYEN VAN [Wed, 4 Apr 2018 01:23:42 +0000 (01:23 +0000)]
Merge "Add settings to configure default multipath quota." into pi-dev

6 years agoMerge "Revert "Change KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL to false"" into pi-dev
Pankaj Kanwar [Wed, 4 Apr 2018 01:21:17 +0000 (01:21 +0000)]
Merge "Revert "Change KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL to false"" into pi-dev

6 years agoMerge "Fix fingerprint dialog icon color" into pi-dev
Kevin Chyn [Wed, 4 Apr 2018 01:21:13 +0000 (01:21 +0000)]
Merge "Fix fingerprint dialog icon color" into pi-dev

6 years agoIncludes annotations with statsd reports.
David Chen [Fri, 30 Mar 2018 22:14:04 +0000 (15:14 -0700)]
Includes annotations with statsd reports.

It's tricky to determine the source of the metrics on a device
currently since we can take the union of multiple configs and send
only one giant statsd_config into statsd. We will use the int64 field
to track the sub config id's and the int32 field to track the version
for each sub config, but the fields are named more generically as
annotations.

The annotations are available in both the reports and metadata.

Test: Check that all unit-tests pass on marlin-eng
Bug: 77327261
Change-Id: Ic37c549c8b2991676f69948c515156765c9f5108

6 years agoHide status bar when bouncer is visible
Lucas Dupin [Wed, 4 Apr 2018 00:12:36 +0000 (17:12 -0700)]
Hide status bar when bouncer is visible

Change-Id: Ic0c0ed91b82f39871d7155a3da41917bf17b3d45
Fixes: 77541614
Test: double tap on notification, look at bouncer
Test: swipe up, look at bouncer
Test: launch activity with status bar, request keyguard dismissal
Test: launch activity without status bar, request keyguard dismissal

6 years agoMerge "Prevent exception when stack being removed on crash" into pi-dev
Andrii Kulian [Wed, 4 Apr 2018 00:32:10 +0000 (00:32 +0000)]
Merge "Prevent exception when stack being removed on crash" into pi-dev

6 years agoClean up remaining TODOs in RecoveryController.
Dmitry Dementyev [Tue, 3 Apr 2018 23:47:24 +0000 (16:47 -0700)]
Clean up remaining TODOs in RecoveryController.

Bug: 77549752
Test: apct
Change-Id: I59014ba1e0bf1191090ea3ca7db96e242b9dc0e5

6 years agoMerge "Separator width" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 00:14:54 +0000 (00:14 +0000)]
Merge "Separator width" into pi-dev

6 years agoCenter layout of nav inflator to wrap content to tap other buttons
Matthew Ng [Wed, 4 Apr 2018 00:11:24 +0000 (17:11 -0700)]
Center layout of nav inflator to wrap content to tap other buttons

When you hold home button (that is within the center group) you cannot
tap any other nav button because home button and its parent consumes it.
Make it wrap the content so that the back and recents button can be
pressed while holding home. This is used to unpin better for quick step
enabled.

Test: manual - hold home and tap back/recents, easier when pinned
Change-Id: I73b326235885e5e29c07b9540b4311a0c820ff78
Fixes: 77522636
Fixes: 73175803

6 years agoFix fingerprint dialog icon color
Kevin Chyn [Fri, 30 Mar 2018 19:36:32 +0000 (12:36 -0700)]
Fix fingerprint dialog icon color

The Keyguard resource has 50% opacity on the "ridges" assets but 100% on
the "error" assets, making it very difficult to fix/animate correctly in
both Keyguard and FingerprintDialogView. This change decouples the
FingerprintDialogView from the Keyguard resource.

Fixes: 75290621

Test: manual test with FingerprintDialog APK
      visually inspect colors/animations

Change-Id: Ie04c706e24e129f01b6ddb500c689f108c41ae3e

6 years agoMerge "Support bypassing TLS in the framework" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 23:47:23 +0000 (23:47 +0000)]
Merge "Support bypassing TLS in the framework" into pi-dev

6 years agoMerge "Use client-side version of inTouchMode" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 23:25:34 +0000 (23:25 +0000)]
Merge "Use client-side version of inTouchMode" into pi-dev

6 years agoAdds comment how to deal with newly added audio usage
Hongwei Wang [Tue, 3 Apr 2018 23:22:06 +0000 (16:22 -0700)]
Adds comment how to deal with newly added audio usage

Bug: 77547740
Test: adb shell dumpsys media.audio_policy
Change-Id: If0d9f1d0ac2205900532cb9f761746ce4d164d32

6 years agoMerge "[DO NOT MERGE] Sort A11yService#getWindows by layer descending" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 23:17:26 +0000 (23:17 +0000)]
Merge "[DO NOT MERGE] Sort A11yService#getWindows by layer descending" into pi-dev

6 years agoMerge "Bind to DefaultContainerService early for AIA" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 23:15:19 +0000 (23:15 +0000)]
Merge "Bind to DefaultContainerService early for AIA" into pi-dev

6 years agoMerge "Move cts tests using reflection" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 23:07:34 +0000 (23:07 +0000)]
Merge "Move cts tests using reflection" into pi-dev

6 years agoMerge "Show ripple on toggle" into pi-dev
Julia Reynolds [Tue, 3 Apr 2018 22:53:11 +0000 (22:53 +0000)]
Merge "Show ripple on toggle" into pi-dev

6 years agoMerge "Register broadcast receiver at runtime instead" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 22:50:14 +0000 (22:50 +0000)]
Merge "Register broadcast receiver at runtime instead" into pi-dev

6 years agoCenter airplane icon in its frame
Evan Laird [Tue, 3 Apr 2018 22:49:25 +0000 (18:49 -0400)]
Center airplane icon in its frame

Test: visual
Change-Id: I4a87cdffb9600cdcb21e39b25a9f7d19d2f8c089
Fixes: 74037263

6 years agoMerge "Ensure that the blocking helper will run" into pi-dev
Julia Reynolds [Tue, 3 Apr 2018 22:48:05 +0000 (22:48 +0000)]
Merge "Ensure that the blocking helper will run" into pi-dev

6 years agoSupport bypassing TLS in the framework
Erik Kline [Wed, 21 Mar 2018 14:18:33 +0000 (07:18 -0700)]
Support bypassing TLS in the framework

This change comprises the following parts:

    [1] android.net.dns.ResolvUtil, containing methods that encapsulate the
        use of the high bit in netids used in DNS resolution contexts.

    [2] Updates to captive portal apps to call the ResolvUtil method that
        enables DNS-over-TLS bypass for the captive portal app process.

Test: as follows
    - builds
    - flashes
    - boots
    - runtest frameworks-net passes
Bug: 64133961
Bug: 72345192

Merged-In: I0994b53d24ed25a2eb9e65429c61cf6fa87c7513
Merged-In: I4c49e23d8caa4d485df1c1d2f135a7282d439c0b
Change-Id: I2072c1f68d6978fa0d7e9d8693135a2c51bb0f87
(cherry picked from commit 2140529d9b8e116d88c2a385a0b3179c2ede5ad7)

6 years agoMerge "Added two touch slops for easier home press (1/3)" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 22:31:57 +0000 (22:31 +0000)]
Merge "Added two touch slops for easier home press (1/3)" into pi-dev

6 years agoMerge changes from topic "fw_quickstep_update" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 22:31:57 +0000 (22:31 +0000)]
Merge changes from topic "fw_quickstep_update" into pi-dev

* changes:
  Reparent recents animation task leash to app animation layer
  Allow recents animation to override divider minimized state
  Prevent unnecessary reordering of the home stack

6 years agoMerge "Fix "auto battery saver" confirmation dialog button layout" into pi-dev
Makoto Onuki [Tue, 3 Apr 2018 22:25:37 +0000 (22:25 +0000)]
Merge "Fix "auto battery saver" confirmation dialog button layout" into pi-dev

6 years agoMerge "Add method to get blocked channel counts" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 22:22:24 +0000 (22:22 +0000)]
Merge "Add method to get blocked channel counts" into pi-dev

6 years agoMerge "Remove work_profile_deleted_description in symbols.xml" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 22:12:18 +0000 (22:12 +0000)]
Merge "Remove work_profile_deleted_description in symbols.xml" into pi-dev

6 years agoFixed IMMS.DebugFlag#refresh() default value
Tarandeep Singh [Tue, 3 Apr 2018 20:35:50 +0000 (13:35 -0700)]
Fixed IMMS.DebugFlag#refresh() default value

InputMethodManagerService.DebugFlag#refresh() default value should
be false.

Bug: 37617707
Change-Id: I554741b7d4d215545bbd1844534abcbfeaa9a830
Fixes: 77528449
Test: atest CtsInputMethodTestCases

6 years agoMerge "Update notification to allow multiline text" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 21:54:31 +0000 (21:54 +0000)]
Merge "Update notification to allow multiline text" into pi-dev

6 years agoMerge "Only tag foreground notifications" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 21:52:17 +0000 (21:52 +0000)]
Merge "Only tag foreground notifications" into pi-dev

6 years agoUse Scrypt to hash long passwords in RecoverableKeyStore
Bo Zhu [Tue, 3 Apr 2018 07:37:51 +0000 (00:37 -0700)]
Use Scrypt to hash long passwords in RecoverableKeyStore

It's enabled for test mode for now, and will need to be updated after
the other components of the system is updated.

Bug: 77325751
Test: runtest frameworks-services -p
    com.android.server.locksettings.recoverablekeystore

Change-Id: I4fc77aba37aeddbe6a82b633934b068cd4ac507f

6 years ago[DO NOT MERGE] Sort A11yService#getWindows by layer descending
Eugene Susla [Mon, 26 Feb 2018 18:41:28 +0000 (10:41 -0800)]
[DO NOT MERGE] Sort A11yService#getWindows by layer descending

This is what A11yService#getWindows promises in the javadoc.

Fixes: 71581072
Test: using testback ensure the order is correct
Change-Id: I5038c4de29c60e235b65751f7bd7771ef35eb339
(cherry picked from commit f40da1a884493b6af61e3b978fdf7c7ff059b2dc)

6 years agoSeparator width
Lucas Dupin [Tue, 3 Apr 2018 21:23:52 +0000 (14:23 -0700)]
Separator width

Test: visual
Change-Id: I5bcac302d8b0c6648c0c75bf9671c09543d1c826
Fixes: 77540159

6 years agoMerge "Longer wake lock timeout" into pi-dev
TreeHugger Robot [Tue, 3 Apr 2018 21:23:35 +0000 (21:23 +0000)]
Merge "Longer wake lock timeout" into pi-dev