OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "Make RescueParty call vold directly" into qt-dev
TreeHugger Robot [Mon, 24 Jun 2019 21:39:40 +0000 (21:39 +0000)]
Merge "Make RescueParty call vold directly" into qt-dev

5 years agoMake RescueParty call vold directly
Daniel Rosenberg [Thu, 20 Jun 2019 22:15:58 +0000 (15:15 -0700)]
Make RescueParty call vold directly

This changes RescueParty to call vold over binder directly for
Checkpointing related calls. It turns out that if the system is in a bad
enough state, the other method would not work, as some of the services
required would not be running.

Bug: 135558798
Test: setprop persist.sys.enable_rescue 1
      setprop debug.crash_system 1 or setprop debug.crash_sysui 1
      vdc checkpoint startCheckpoint 3
      stop
      start
      Device should go through the rescueparty flow, and reboot.
      Repeat without checkpoint. Device should prompt reboot.

Change-Id: I8b11d68075cc291e9557d524bc87b54d17b370e4

5 years agoMerge "Revert "libmedia_jni pulls in libsfplugin_ccodec"" into qt-dev
TreeHugger Robot [Mon, 24 Jun 2019 19:52:28 +0000 (19:52 +0000)]
Merge "Revert "libmedia_jni pulls in libsfplugin_ccodec"" into qt-dev

5 years agoMerge "Keylayout for xbox controllers" into qt-dev
TreeHugger Robot [Mon, 24 Jun 2019 19:40:19 +0000 (19:40 +0000)]
Merge "Keylayout for xbox controllers" into qt-dev

5 years agoMerge "Fix excessive entrance animation duration + delay" into qt-dev
TreeHugger Robot [Mon, 24 Jun 2019 19:05:36 +0000 (19:05 +0000)]
Merge "Fix excessive entrance animation duration + delay" into qt-dev

5 years agoMerge "Remove WTF logging for non-expandable swiped children" into qt-dev
TreeHugger Robot [Mon, 24 Jun 2019 19:03:48 +0000 (19:03 +0000)]
Merge "Remove WTF logging for non-expandable swiped children" into qt-dev

5 years agoMerge "Fix case of Dark theme" into qt-dev
Fabian Kozynski [Mon, 24 Jun 2019 19:03:16 +0000 (19:03 +0000)]
Merge "Fix case of Dark theme" into qt-dev

5 years agoRevert "libmedia_jni pulls in libsfplugin_ccodec"
Mikhail Naganov [Mon, 24 Jun 2019 18:48:51 +0000 (18:48 +0000)]
Revert "libmedia_jni pulls in libsfplugin_ccodec"

This reverts commit 16c0c46f208c2a6b4d321352fbc5fc6acff6261e.

Reason for revert: causes b/135763139 (volume adjustment for music does not work)

There is no clear explanation how this change breaks volume adjustment, but by bisection and by reverting the change locally it does somehow.

Bug: 133186424
Bug: 135763139
Change-Id: If6eed10f23c6b6006a6468c2a793230cd98c0501

5 years agoKeylayout for xbox controllers
Siarhei Vishniakou [Sat, 15 Jun 2019 00:19:29 +0000 (17:19 -0700)]
Keylayout for xbox controllers

Add layout for Xbox elite controller

Test: tested with a custom app
Bug: 132451971
Change-Id: I1c600bc2c41db9d79d7a4e184ef41abe2b5f860e

5 years agoMerge "Unregister listeners and reset wake lock" into qt-dev
Lucas Dupin [Mon, 24 Jun 2019 18:09:10 +0000 (18:09 +0000)]
Merge "Unregister listeners and reset wake lock" into qt-dev

5 years agoRemove WTF logging for non-expandable swiped children
Ned Burns [Fri, 21 Jun 2019 21:23:53 +0000 (17:23 -0400)]
Remove WTF logging for non-expandable swiped children

Having mixed views doesn't actually break anything.

Fixes: 135048434
Test: manual
Change-Id: I64a08dc257b8962cdde51e026c51eac02ab931e7

5 years agoMerge "Don't dismiss keyguard when enabling it" into qt-dev
TreeHugger Robot [Mon, 24 Jun 2019 17:47:41 +0000 (17:47 +0000)]
Merge "Don't dismiss keyguard when enabling it" into qt-dev

5 years agoMerge "Render invocation lights as beziers, not circles" into qt-dev
James O'Leary [Mon, 24 Jun 2019 16:44:31 +0000 (16:44 +0000)]
Merge "Render invocation lights as beziers, not circles" into qt-dev

5 years agoUnregister listeners and reset wake lock
Lucas Dupin [Thu, 20 Jun 2019 21:07:57 +0000 (14:07 -0700)]
Unregister listeners and reset wake lock

The ContentProvider might be recreated by the system, so we it's
not necessarily a singleton. We need to cleanup listener registration
and alarms before reattributing the static variable.

Change-Id: I07aec96e77c67d96d31c7e38c85f5ce6f5ef2216
Merged-In: I9bc993f372a8c05258f1778eb3d415af04544714
Fixes: 135344397
Fixes: 135582651
Test: bind and unbind slice various times
Test: atest KeyguardSliceProviderTest

5 years agoFix case of Dark theme
Fabian Kozynski [Mon, 24 Jun 2019 13:52:41 +0000 (09:52 -0400)]
Fix case of Dark theme

Test: manual
Fixes: 135711083
Change-Id: Ie97422e25e0dffd500d31496a4114b81d1f7218a

5 years agoMerge "Don't update dark boot setting onStart" into qt-dev
TreeHugger Robot [Mon, 24 Jun 2019 13:24:12 +0000 (13:24 +0000)]
Merge "Don't update dark boot setting onStart" into qt-dev

5 years agoMerge "Add anon RSS + swap metric" into qt-dev
Ioannis Ilkos [Mon, 24 Jun 2019 08:46:40 +0000 (08:46 +0000)]
Merge "Add anon RSS + swap metric" into qt-dev

5 years agoMerge "Do not allow adding custom Parcelable in Bundles" into qt-dev
Hyundo Moon [Mon, 24 Jun 2019 04:26:17 +0000 (04:26 +0000)]
Merge "Do not allow adding custom Parcelable in Bundles" into qt-dev

5 years agoMerge "Revert "Unregister listeners and reset wake lock"" into qt-dev
Chiayu Pei [Mon, 24 Jun 2019 04:19:13 +0000 (04:19 +0000)]
Merge "Revert "Unregister listeners and reset wake lock"" into qt-dev

5 years agoRevert "Unregister listeners and reset wake lock"
Chiayu Pei [Mon, 24 Jun 2019 01:46:28 +0000 (01:46 +0000)]
Revert "Unregister listeners and reset wake lock"

This reverts commit fe107a1621b98f8e9caa47b1e4e7ecbee00a2f88.

Reason for revert: <INSERT REASONING HERE>

Change-Id: Id092c473a8300e014ccd4d941afa4afcdbbf48bc

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Sun, 23 Jun 2019 20:32:32 +0000 (20:32 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoRender invocation lights as beziers, not circles
James O'Leary [Fri, 21 Jun 2019 15:30:43 +0000 (15:30 +0000)]
Render invocation lights as beziers, not circles

Test: Verify WAI
Bug: 135669903
Change-Id: I8dd9f96179264b5a44a9446977ada1ed4ea8e3c8

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Sun, 23 Jun 2019 17:41:21 +0000 (17:41 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Sun, 23 Jun 2019 17:24:54 +0000 (17:24 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Sun, 23 Jun 2019 17:14:18 +0000 (17:14 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 23 Jun 2019 17:08:02 +0000 (10:08 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I488956188ed83fa8e73e5070f43fba1a3a347fbe

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 23 Jun 2019 13:50:20 +0000 (06:50 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ia15027c4898fed1ed24e5a497e9712cc0cfb7cb3

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 23 Jun 2019 06:32:57 +0000 (23:32 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I4ba148bb2885fc3a570b8ab2ccf22305dba04362

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 23 Jun 2019 06:22:29 +0000 (23:22 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Iee915acc4bdca36e87eb830d413e9452813fa8b4

5 years agoMerge "Handle USER_ALL in instant apps call" into qt-dev
TreeHugger Robot [Sat, 22 Jun 2019 21:27:12 +0000 (21:27 +0000)]
Merge "Handle USER_ALL in instant apps call" into qt-dev

5 years agoMerge "Unregister listeners and reset wake lock" into qt-dev
Lucas Dupin [Sat, 22 Jun 2019 20:12:26 +0000 (20:12 +0000)]
Merge "Unregister listeners and reset wake lock" into qt-dev

5 years agoUnregister listeners and reset wake lock
Lucas Dupin [Thu, 20 Jun 2019 21:07:57 +0000 (14:07 -0700)]
Unregister listeners and reset wake lock

The ContentProvider might be recreated by the system, so we it's
not necessarily a singleton. We need to cleanup listener registration
and alarms before reattributing the static variable.

Change-Id: I227842d7272d1edeaa67d776950f369aedb01a91
Merged-In: I227842d7272d1edeaa67d776950f369aedb01a91
Fixes: 135344397
Fixes: 135582651
Test: bind and unbind slice various times
Test: atest KeyguardSliceProviderTest

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Sat, 22 Jun 2019 17:24:18 +0000 (17:24 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "DO NOT MERGE Allow the new BrightLineFalsingManager to be enabled via PhenoTyp...
Dave Mankoff [Sat, 22 Jun 2019 15:41:14 +0000 (15:41 +0000)]
Merge "DO NOT MERGE Allow the new BrightLineFalsingManager to be enabled via PhenoType." into qt-dev

5 years agoDO NOT MERGE Allow the new BrightLineFalsingManager to be enabled via PhenoType.
Dave Mankoff [Fri, 21 Jun 2019 18:24:43 +0000 (14:24 -0400)]
DO NOT MERGE Allow the new BrightLineFalsingManager to be enabled via PhenoType.

Test: atest SystemUITests
Bug: 111394067
Change-Id: I0ab9a72d66bf56a56df2de2ad2d247f299d1b748
Merged-In: I0ab9a72d66bf56a56df2de2ad2d247f299d1b748

5 years agoMerge "Fade away wallpapers when long pulse" into qt-dev
TreeHugger Robot [Sat, 22 Jun 2019 11:59:49 +0000 (11:59 +0000)]
Merge "Fade away wallpapers when long pulse" into qt-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 22 Jun 2019 05:51:00 +0000 (22:51 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I62581a342971f2c72fbf24ecd285060a35c6d863

5 years agoFix excessive entrance animation duration + delay
Ned Burns [Thu, 18 Apr 2019 02:22:24 +0000 (22:22 -0400)]
Fix excessive entrance animation duration + delay

We were previously staggering animations by using the child's
notGoneIndex, but that can lead to strange results in the case of groups
that have many (~40) children. The children count towards the
notGoneIndex, causing unexpected discontinuities between notifs that are
visually right next to each other. Instead we just use a simple stagger
counter that gets reset on every pass and incremented for each new
entrance animation.

Fixes: 130259081
Test: Manual
Change-Id: I3c8519a8f9b7fcb661b2c4c4f8e85db0a717bc01

5 years agoMerge "Add carrier config for conference participants data support" into qt-dev
TreeHugger Robot [Sat, 22 Jun 2019 00:12:34 +0000 (00:12 +0000)]
Merge "Add carrier config for conference participants data support" into qt-dev

5 years agoMerge "ViewRootImpl: Ensure layout when configuration changes." into qt-dev
TreeHugger Robot [Sat, 22 Jun 2019 00:04:19 +0000 (00:04 +0000)]
Merge "ViewRootImpl: Ensure layout when configuration changes." into qt-dev

5 years agoAdd carrier config for conference participants data support
Youming Ye [Tue, 21 May 2019 20:10:48 +0000 (13:10 -0700)]
Add carrier config for conference participants data support

Bug: 132312382
Test: Manual
Change-Id: I88edd5a590f46b961c986ef0bf24585b3c2cf4a1
Merged-In: I88edd5a590f46b961c986ef0bf24585b3c2cf4a1

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Fri, 21 Jun 2019 22:05:31 +0000 (22:05 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Fix conflict between metrics_constants and settings_enums." into qt-dev
TreeHugger Robot [Fri, 21 Jun 2019 22:00:47 +0000 (22:00 +0000)]
Merge "Fix conflict between metrics_constants and settings_enums." into qt-dev

5 years agoMerge "media: clarify frame dropping behavior for decoder output" into qt-dev
Lajos Molnar [Fri, 21 Jun 2019 19:38:17 +0000 (19:38 +0000)]
Merge "media: clarify frame dropping behavior for decoder output" into qt-dev

5 years agoFix conflict between metrics_constants and settings_enums.
Aran Ink [Fri, 21 Jun 2019 14:39:23 +0000 (10:39 -0400)]
Fix conflict between metrics_constants and settings_enums.

Change-Id: I483bf6b26f2f258f2e2f6f3d839deee4953c203d
Test: Automated tests pass.
Fixes: 135720071
(cherry picked from commit 08659ccdb72b4c578e4b83fcc9e549a9c27f4b75)

5 years agoMerge "DO NOT MERGE: Fixed an issue about notification icons on AOD" into qt-dev
TreeHugger Robot [Fri, 21 Jun 2019 18:57:25 +0000 (18:57 +0000)]
Merge "DO NOT MERGE: Fixed an issue about notification icons on AOD" into qt-dev

5 years agoMerge "Prevent loop in PermissionPolicyService" into qt-dev
TreeHugger Robot [Fri, 21 Jun 2019 18:34:53 +0000 (18:34 +0000)]
Merge "Prevent loop in PermissionPolicyService" into qt-dev

5 years agoMerge "Update docs for EXTRA_PROVISIONING_SKIP_EDUCATION_SCREENS." into qt-dev
Antoan Angelov [Fri, 21 Jun 2019 18:07:22 +0000 (18:07 +0000)]
Merge "Update docs for EXTRA_PROVISIONING_SKIP_EDUCATION_SCREENS." into qt-dev

5 years agoMerge "Free up memory in the ZigZagClassifierTest." into qt-dev
Ned Burns [Fri, 21 Jun 2019 17:31:42 +0000 (17:31 +0000)]
Merge "Free up memory in the ZigZagClassifierTest." into qt-dev

5 years agoMerge "Continue with the animation if wallpaper fails to draw" into qt-dev
Winson Chung [Fri, 21 Jun 2019 17:29:27 +0000 (17:29 +0000)]
Merge "Continue with the animation if wallpaper fails to draw" into qt-dev

5 years agoContinue with the animation if wallpaper fails to draw
Winson Chung [Tue, 18 Jun 2019 18:22:53 +0000 (11:22 -0700)]
Continue with the animation if wallpaper fails to draw

- This is preferable to canceling the animation, which the user just
  interprets as the nav gesture not working, and may fix some cases
  where the user may interpret a swipe up as not working if the wallpaper
  is slow to draw.

Bug: 135536076
Bug: 134091263
Test: atest RecentsAnimationTests
Test: atest RecentsAnimationControllerTests
Change-Id: Icf9ed20971a701a254383c65aa1811a99680ba51

5 years agoMerge "audioservice: special mute behavior for BT SCO volume" into qt-dev
Eric Laurent [Fri, 21 Jun 2019 17:10:00 +0000 (17:10 +0000)]
Merge "audioservice: special mute behavior for BT SCO volume" into qt-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 21 Jun 2019 16:04:04 +0000 (09:04 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I992e06fd625131f8b7e838b601f6d31415b1d10f

5 years agoFree up memory in the ZigZagClassifierTest.
Dave Mankoff [Fri, 21 Jun 2019 15:32:27 +0000 (11:32 -0400)]
Free up memory in the ZigZagClassifierTest.

Test: atest SystemUITests
Bug: 135715570
Change-Id: Iddfcf8cc107254c397769b2b3c5251270ec0a3bd

5 years agoAdd logging atom for PermissionApps fragment views
Stanislav Zholnin [Tue, 4 Jun 2019 13:59:21 +0000 (14:59 +0100)]
Add logging atom for PermissionApps fragment views

Test: make statsd_testdrive && ./out/host/linux-x86/bin/statsd_testdrive -p com.google.android.permissioncontroller 218
Bug: 133401502
Bug: 134581123
Change-Id: I8f41d72c8f96a004911ef68491de8a214da4db24
Add logging to PermissionAppsFragment

5 years agoAdd atom for logging of AppPermissionsFragment views.
Stanislav Zholnin [Thu, 6 Jun 2019 17:10:14 +0000 (18:10 +0100)]
Add atom for logging of AppPermissionsFragment views.

Test: make statsd_testdrive && ./out/host/linux-x86/bin/statsd_testdrive -p com.google.android.permissioncontroller 217
Bug: 133401502
Bug: 134581123
Change-Id: I60e500e99a13a4f2dea6d7141fc87f5b8422c3a7

5 years agoHandle USER_ALL in instant apps call
Julia Reynolds [Fri, 21 Jun 2019 14:45:06 +0000 (10:45 -0400)]
Handle USER_ALL in instant apps call

Test: atest
Fixes: 135545393
Change-Id: I1d2d5992876a9445cf0e9fa9447977b89eb85d96

5 years agoAdd atom for logging views in AppPermissionFragment
Stanislav Zholnin [Sun, 2 Jun 2019 19:50:13 +0000 (20:50 +0100)]
Add atom for logging views in AppPermissionFragment

Test: ./out/host/linux-x86/bin/statsd_testdrive -p com.google.android.permissioncontroller 216
Bug: 133401502
Bug: 134581123
Change-Id: I099de3a5ecd7ecf68df618b9738a0428e5792c98

5 years agoDon't update dark boot setting onStart
Beverly [Fri, 21 Jun 2019 14:45:55 +0000 (10:45 -0400)]
Don't update dark boot setting onStart

Checking isPrimaryUser causes a delay in startup.  It's
unnecssary to check the theme on startup and on loading
the setting from settings since we only need the primary user's
dark theme setting.

Now, when persist.sys.theme is empty, we assume this means
to show the light-theme background (same as persist.sys.theme = 0/1).

Test: manual
Test: atest google/perf/boottime/boottime-test -v
Fixes: 135703697
Change-Id: I296eb2492dacf2273d204acc9cc84fc98c0e8827

5 years agoAdd anon RSS + swap metric
Ioannis Ilkos [Tue, 18 Jun 2019 16:42:00 +0000 (17:42 +0100)]
Add anon RSS + swap metric

We are planning to use this metric to detect leaks.

This CL also decouples the actual memory sampling from AM. This means:
- Less time locking the pid list (we used to lock and then read proc)
- Less serialization / deserialization for the parcel
- Simpler to evolve (e.g. removed the HWM-specific method in AM)

Change-Id: I87a7243156dd8c88cfa85038e7e6cf4963e271e1
Test: manual, MemoryStatUtilTest, UidAtomTests
Bug: b/135418017

5 years agoDo not allow adding custom Parcelable in Bundles
Hyundo Moon [Wed, 19 Jun 2019 06:47:54 +0000 (15:47 +0900)]
Do not allow adding custom Parcelable in Bundles

This CL prevents the API users from passing any Bundles with
custom Parcelable to following APIs:
 - MediaSession2.Builder#setExtras()
 - MediaController2.Builder#setConnectionHints()
 - MediaSession constructor

Bug: 135572812
Test: Passed followings tests
  atest CtsMediaTestCases:android.media.cts.MediaSessionTest;
  atest CtsMediaTestCases:android.media.cts.MediaControllerTest;
  atest CtsMediaTestCases:android.media.cts.MediaBrowserTest;
  atest CtsMediaTestCases:android.media.cts.MediaSessionManagerTest;
  atest CtsMediaTestCases:android.media.cts.MediaSession2Test;
  atest CtsMediaTestCases:android.media.cts.MediaController2Test;
  atest CtsMediaTestCases:android.media.cts.MediaSession2ServiceTest;
Change-Id: I703c9fc0b180fb7bb3bf9bbec677f01a2a128c7a

5 years agoAdd logging atoms to record user actions in AppPermissionFragment
Stanislav Zholnin [Thu, 23 May 2019 18:03:55 +0000 (19:03 +0100)]
Add logging atoms to record user actions in AppPermissionFragment
(handheld devices only)

Test: make statsd_testdrive && ./out/host/linux-x86/bin/statsd_testdrive -p com.google.android.permissioncontroller 215
Bug:133401502
Bug:134581123

Change-Id: I2a0b15dfdd6398707a762c48602f970f14534b51

5 years agoMerge "Add logging atoms to record user actions in LocationAccessCheck (handheld...
Stanislav Zholnin [Fri, 21 Jun 2019 04:17:10 +0000 (04:17 +0000)]
Merge "Add logging atoms to record user actions in LocationAccessCheck (handheld devices only)" into qt-dev

5 years agoaudioservice: special mute behavior for BT SCO volume
Eric Laurent [Thu, 13 Jun 2019 00:20:03 +0000 (17:20 -0700)]
audioservice: special mute behavior for BT SCO volume

Allow muting BT SCO volume only from explicit mute request and not
when stream volume index is set to 0. This is to match BT requirement
that the valid SCO volume range is 0 to 15 and let the headset deal with
actual attenuation for index 0.
If explicitly muted via adjustStreamVolume() from an app with permission
MODIFY_PHONE_STATE, then we set the audio policy stream volume to 0 and
effectively mute RX path.

Also change default value of Settings.System.MUTE_STREAMS_AFFECTED
to include AudioManager.STREAM_BLUETOOTH_SCO.

Bug: 111195322
Test: test volume changes in call over BT SCO
Change-Id: I3b6560bbd1bcbb01a29aa746f23bae74329a1fa7

5 years agoMerge "Switch trust agents to extend unlock mode by default." into qt-dev
Vishwath Mohan [Fri, 21 Jun 2019 00:51:23 +0000 (00:51 +0000)]
Merge "Switch trust agents to extend unlock mode by default." into qt-dev

5 years agoMerge "Update boot image profile" into qt-dev
Mathieu Chartier [Fri, 21 Jun 2019 00:01:13 +0000 (00:01 +0000)]
Merge "Update boot image profile" into qt-dev

5 years agoAdd logging atoms to record user actions in LocationAccessCheck
Stanislav Zholnin [Wed, 29 May 2019 12:07:35 +0000 (13:07 +0100)]
Add logging atoms to record user actions in LocationAccessCheck
(handheld devices only)

Test: make statsd_testdrive && ./out/host/linux-x86/bin/statsd_testdrive -p com.google.android.permissioncontroller 214
Bug:133401502
Bug:134581123
Change-Id: I9f35d2b06cf953441e0986ab23cb842cd155144d

5 years agoMerge "Revert "Whitelist START_ACTIVITIES_FROM_BACKGROUND permission for"" into qt-dev
TreeHugger Robot [Thu, 20 Jun 2019 23:49:39 +0000 (23:49 +0000)]
Merge "Revert "Whitelist START_ACTIVITIES_FROM_BACKGROUND permission for"" into qt-dev

5 years agoMerge "Allow permission controller to start background activities" into qt-dev
TreeHugger Robot [Thu, 20 Jun 2019 23:49:39 +0000 (23:49 +0000)]
Merge "Allow permission controller to start background activities" into qt-dev

5 years agoRevert "Whitelist START_ACTIVITIES_FROM_BACKGROUND permission for"
Wenjie Zhou [Wed, 19 Jun 2019 17:35:49 +0000 (17:35 +0000)]
Revert "Whitelist START_ACTIVITIES_FROM_BACKGROUND permission for"

This reverts commit 0999f93e4a00a7991d13cfca185e99b9fbecbc38.

Reason for revert: There is a better choice (ag/8051966) than adding the permission to resolve b/130827484

Bug: 130827484
Change-Id: I1b8fd74a173d4b0ef981e51f7e0a9c5f84d5f416

5 years agoPrevent loop in PermissionPolicyService
Philip P. Moltmann [Thu, 20 Jun 2019 21:51:52 +0000 (14:51 -0700)]
Prevent loop in PermissionPolicyService

The AppOpsModeChangeWatchers call back even if the mode was set to
already set mode. PermissionPolicyService listens to the same app-ops it
changes. I.e. it used to change the mode to default, which then causes a
call-back which made set it to default again, etc...

This exhausts a thread until the app-op is finally set to non-default.
The fix is to prevent the loop by checking if the app-op is already the
correct mode before setting it.

Fixes: 135674928
Test: atest IncidentReportListenerTest CollectorHostsideLibTest on
          cuttlefish and crosshatch
Change-Id: Ic65945e814957ac59495b3da221fabb0f3d42b66

5 years agoDO NOT MERGE: Fixed an issue about notification icons on AOD
Selim Cinek [Thu, 20 Jun 2019 00:24:59 +0000 (17:24 -0700)]
DO NOT MERGE: Fixed an issue about notification icons on AOD

Previously low priority notifications were hidden
on AOD unconditionally which is wrong.

Bug: 135627468
Test: atest SystemUITests
Merged-in: Ia64238f30620d9906aa50c2469121c2653875e8d
Change-Id: Ia64238f30620d9906aa50c2469121c2653875e8d

5 years agoMerge "Add main thread and reentrant asserts to chase down crashes" into qt-dev
TreeHugger Robot [Thu, 20 Jun 2019 23:11:33 +0000 (23:11 +0000)]
Merge "Add main thread and reentrant asserts to chase down crashes" into qt-dev

5 years agoSwitch trust agents to extend unlock mode by default.
Vishwath Mohan [Thu, 20 Jun 2019 00:20:45 +0000 (17:20 -0700)]
Switch trust agents to extend unlock mode by default.

This CL changes the default behavior for trust agents to extend unlock
mode.

The Q droidfood phase allowed trust agent behavior to switch between
active unlock (legacy behavior) and extend unlock modes --- where the
extend unlock mode would prevent a trust agent (such as Smart Lock)
from actively unlocking a locked phone, instead only allowing it to
extend the duration that an already unlocked phone can continue to
stay in the unlocked state. In preparation for Q proper, the developer
options that controlled this toggle are being removed, and extend
unlock mode is the only allowed mode of behavior for trust agents.

Bug: 120871688
Test: Trust agents (like Smart Lock) only extend unlock on Q
Merged-In: Ifad45f90e0f2b5c3d180a74a97a89d45d75cb02a
Change-Id: Ifad45f90e0f2b5c3d180a74a97a89d45d75cb02a

5 years agoMerge "Safeguard against no tiles in QS" into qt-dev
TreeHugger Robot [Thu, 20 Jun 2019 21:42:23 +0000 (21:42 +0000)]
Merge "Safeguard against no tiles in QS" into qt-dev

5 years agoUpdate boot image profile
Mathieu Chartier [Thu, 20 Jun 2019 18:13:10 +0000 (11:13 -0700)]
Update boot image profile

Compiled methods don't get any interpreter activity modifying their
hotness counters. This CL compiles more methods to prevented

Original set of profile is the updated profile with revised thresholds
for image classes. Here we used a 3% threshold.

Additionally, the CL adds imgdiag diagnosed methods that have dirty JIT
counters shortly after boot on the following apps:
system_server
com.android.systemui
com.android.phone
com.android.nfc
com.google.android.networkstack
com.android.bluetooth
com.google.android.apps.nexuslauncher
com.google.android.gms.persistent
com.google.android.as
com.google.process.gservices
com.google.android.gms
com.google.android.inputmethod.latin

Before:
Boot oat size: 32,800,596 bytes
Persistent app .art PSS: 19115K
Persistent app .art Private Dirty: 15356K
System boot .art PSS: 60948K

After:
Boot oat size: 37261124 bytes
Persistent app .art PSS: 12610K
Persistent app .art Private Dirty: 8740K
System boot .art PSS: 50735K

Private dirty savings for persistent apps: 7MB
Net RAM savings: 5MB (10MB dirty .art PSS, 5MB oat size incrase)

Bug: 134776403
Test: Reboot and inspect RAM usage
Change-Id: Ia1c59b4be341a28de02b7d20aedcb6b69815c652

5 years agoMerge "libmedia_jni pulls in libsfplugin_ccodec" into qt-dev
TreeHugger Robot [Thu, 20 Jun 2019 20:27:22 +0000 (20:27 +0000)]
Merge "libmedia_jni pulls in libsfplugin_ccodec" into qt-dev

5 years agoMerge "Use RemoteCallbackList to store registered callbacks" into qt-dev
Mehdi Alizadeh [Thu, 20 Jun 2019 19:58:47 +0000 (19:58 +0000)]
Merge "Use RemoteCallbackList to store registered callbacks" into qt-dev

5 years agoSafeguard against no tiles in QS
Fabian Kozynski [Thu, 20 Jun 2019 18:57:47 +0000 (14:57 -0400)]
Safeguard against no tiles in QS

In PagedTileLayout:
* Make sure that each page displays at least 1 tile (never 0).
* Make sure that there's at least one page (even if it's empty)

In QSTileHost:
* If the new value of sysui_qs_tiles produces no tiles (but it's not set
to empty), set the tile set to the empty default
@string/quick_settings_tiles

Test: adb shell settings put secure sysui_qs_tiles not-a-valid-tile-spec
Test: atest QSTileHostTest
Fixes: 135023694
Fixes: 135677464
Change-Id: I1e5cf4d2688370001ecae87fc0272acecd48af73

5 years agoAdd main thread and reentrant asserts to chase down crashes
Ned Burns [Wed, 19 Jun 2019 23:49:19 +0000 (19:49 -0400)]
Add main thread and reentrant asserts to chase down crashes

We're seeing crashes due to view hierarchy violations that shouldn't be
possible. Adding some guards to make sure we aren't running into
off-thread hierarchy manipulation or re-entrant calls to the update
code.

Test: manual
Bug: 135018709
Change-Id: I4b1f2bd7e3a6f80384486d59b9f56fc3713537cf

5 years agoMerge changes from topic "combine-libhidlbase-libhwbinder" into qt-dev
Steven Moreland [Thu, 20 Jun 2019 19:09:01 +0000 (19:09 +0000)]
Merge changes from topic "combine-libhidlbase-libhwbinder" into qt-dev

* changes:
  libhwbinder users use libhidlbase
  libmedia2_jni: remove libhwbinder_noltopgo ref

5 years agoMerge changes from topic "b111394067-new-falsing-manager" into qt-dev
Dave Mankoff [Thu, 20 Jun 2019 18:05:19 +0000 (18:05 +0000)]
Merge changes from topic "b111394067-new-falsing-manager" into qt-dev

* changes:
  Add ZigZagClassifier to the BrightLineFalsingManager.
  Add ProximityClassifier to the BrightLineFalsingManager
  Add DistanceClassifier to the BrightLineFalsingManager
  Add DiagonalClassifier to the BrightLineFalsingManager.
  Add TypeClassifier to the BrightLineFalsingManager.
  Add PointerCountClassifier to the BrightLineFalsingManager.
  Add base class for new falsing manager and classifiers.

5 years agoMerge "Fix ColorStateListDrawable bounds handling" into qt-dev
TreeHugger Robot [Thu, 20 Jun 2019 17:32:31 +0000 (17:32 +0000)]
Merge "Fix ColorStateListDrawable bounds handling" into qt-dev

5 years agoMerge "Added null checks to LayerDrawable implementation" into qt-dev
TreeHugger Robot [Thu, 20 Jun 2019 16:58:45 +0000 (16:58 +0000)]
Merge "Added null checks to LayerDrawable implementation" into qt-dev

5 years agolibmedia_jni pulls in libsfplugin_ccodec
Ray Essick [Wed, 19 Jun 2019 03:16:39 +0000 (20:16 -0700)]
libmedia_jni pulls in libsfplugin_ccodec

libmedia_jni now pulls in libsfplugin_ccodec instead of deferring it
until an actual reference. This eliminates some codec startup latency
later. this is only "load it", there is no actual use of
libsfplugin_ccodec by libmedia_jni.

Bug: 133186424
Test: boot, logcat, forrest startup timing measurements
Change-Id: Iacf8783cb45d33f5cec67863d4bf89da6dff9c2d

5 years agoUpdate docs for EXTRA_PROVISIONING_SKIP_EDUCATION_SCREENS.
arangelov [Thu, 20 Jun 2019 13:47:06 +0000 (14:47 +0100)]
Update docs for EXTRA_PROVISIONING_SKIP_EDUCATION_SCREENS.

Bug: Fixes: 134391678
Test: manual
Change-Id: I993af4f4a741283294b1754dfc0adc7c6f6f849e

5 years agoMerge "Fix CtsAccessibilityServiceTestCases Fail" into qt-dev
TreeHugger Robot [Thu, 20 Jun 2019 15:20:33 +0000 (15:20 +0000)]
Merge "Fix CtsAccessibilityServiceTestCases Fail" into qt-dev

5 years agoMerge "Fix corner arc computation." into qt-dev
Matt Casey [Thu, 20 Jun 2019 14:16:44 +0000 (14:16 +0000)]
Merge "Fix corner arc computation." into qt-dev

5 years agoDon't dismiss keyguard when enabling it
Ivan Podogov [Thu, 20 Jun 2019 11:49:18 +0000 (12:49 +0100)]
Don't dismiss keyguard when enabling it

Introduced in ag/2664156, dismissing a keyguard when it's being disabled has
also caused it to be shown whenever it's being enabled (or re-enabled, or
calling DPM.setKeyguardDisabled when keyguard is enabled).

This change should stop keyguard randomly popping up.

Bug: 133730775
Test: manual
Change-Id: I49f28714b2d149f13168e7564947aaf09c593117

5 years agoMerge "Move the test of minimum supported keepalive slots to CTS" into qt-dev
Junyu Lai [Thu, 20 Jun 2019 05:35:07 +0000 (05:35 +0000)]
Merge "Move the test of minimum supported keepalive slots to CTS" into qt-dev

5 years agoMerge "Correct value of supported keepalive count for cellular" into qt-dev
Junyu Lai [Thu, 20 Jun 2019 05:35:07 +0000 (05:35 +0000)]
Merge "Correct value of supported keepalive count for cellular" into qt-dev

5 years agoMerge "Expose BIND_NOT_PERCEPTIBLE service flag" into qt-dev
TreeHugger Robot [Thu, 20 Jun 2019 05:34:34 +0000 (05:34 +0000)]
Merge "Expose BIND_NOT_PERCEPTIBLE service flag" into qt-dev

5 years agoMerge "Disable color sampling while navigation bar is hidden" into qt-dev
TreeHugger Robot [Thu, 20 Jun 2019 05:11:20 +0000 (05:11 +0000)]
Merge "Disable color sampling while navigation bar is hidden" into qt-dev

5 years agoCorrect value of supported keepalive count for cellular
Junyu Lai [Wed, 19 Jun 2019 14:28:53 +0000 (07:28 -0700)]
Correct value of supported keepalive count for cellular

Cellular only supports 1 keepalive connection so correct the default
supported value to 1.

Bug: 134037217
Bug: 134352656
Test: - atest FrameworksNetTests
      - atest android.net.cts.ConnectivityManagerTest \
        #testSocketKeepaliveLimitTelephony

Merged-In: Ia3761f2e78d54866bb2e156d58004396bbc8adc3
Change-Id: If833b813ba00eeff913160598f1ea9c74e6e35d8
(cherry picked from commit 680abbb591d9c084d1a1e3f9dea1ed8d4e3b1ae8)

5 years agoMerge "Change dangerous permission log order. https://cs.corp.google.com/piper//...
Stanislav Zholnin [Thu, 20 Jun 2019 03:52:30 +0000 (03:52 +0000)]
Merge "Change dangerous permission log order. https://cs.corp.google.com/piper///depot/google3/logs/proto/wireless/android/stats/platform/westworld/atoms.proto?rcl=253705450&g=0&l=2989 the items in proto is different from what's in the logs." into qt-dev

5 years agoMerge "[DO NOT MERGE] Fix race in AbstractSinglePendingRequestRemoteService" into...
TreeHugger Robot [Thu, 20 Jun 2019 02:58:21 +0000 (02:58 +0000)]
Merge "[DO NOT MERGE] Fix race in AbstractSinglePendingRequestRemoteService" into qt-dev

5 years agoMove the test of minimum supported keepalive slots to CTS
Junyu Lai [Wed, 19 Jun 2019 14:29:11 +0000 (07:29 -0700)]
Move the test of minimum supported keepalive slots to CTS

This change also enables log when keepalive is started.

Bug: 134352656
Test: 1. atest android.net.cts.ConnectivityManagerTest#testSocketKeepaliveLimitTelephony
      2. atest FrameworksNetTests
Merged-In: I408750fa0bceb0c1c26afb5fead4e44fb824fbc1
Change-Id: Ib9b06d3458782a648a2f5b8fd5a9ca1d34bd11f9
(cherry picked from commit aed835f086440f721c279e33d6b5d4b4bc270296)

5 years ago[DO NOT MERGE] Fix race in AbstractSinglePendingRequestRemoteService
Eugene Susla [Wed, 19 Jun 2019 17:26:56 +0000 (10:26 -0700)]
[DO NOT MERGE] Fix race in AbstractSinglePendingRequestRemoteService

Fixes: 135355306
Test: presubmit
Change-Id: I78d9840a9d7e04cd373c967b259a614990153841

5 years agoMerge "Propagate whitelisted perms during install" into qt-dev
TreeHugger Robot [Thu, 20 Jun 2019 01:28:56 +0000 (01:28 +0000)]
Merge "Propagate whitelisted perms during install" into qt-dev

5 years agoMerge "Update documentation for TelephonyManager#getImei" into qt-dev
Hall Liu [Thu, 20 Jun 2019 00:44:39 +0000 (00:44 +0000)]
Merge "Update documentation for TelephonyManager#getImei" into qt-dev