OSDN Git Service

android-x86/frameworks-base.git
6 years agoDispatch global settings changes to all users.
Svet Ganov [Mon, 19 Mar 2018 17:29:44 +0000 (10:29 -0700)]
Dispatch global settings changes to all users.

Test: manual

Bug: 74547258

Change-Id: Ia42381e8a74ff70b21d511764dd71f6107807060

6 years agoMerge "Auto zen rules reset for some upgrading users" into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 16:51:10 +0000 (16:51 +0000)]
Merge "Auto zen rules reset for some upgrading users" into pi-dev

6 years agoMerge "Scale up in ImageDecoder based on API level" into pi-dev
Leon Scroggins [Tue, 20 Mar 2018 16:44:44 +0000 (16:44 +0000)]
Merge "Scale up in ImageDecoder based on API level" into pi-dev

6 years agoMerge "Make carrier text size in footer match qs label." into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 16:41:59 +0000 (16:41 +0000)]
Merge "Make carrier text size in footer match qs label." into pi-dev

6 years agoMerge "DisplayCutout: Properly letterbox bottom-only cutouts" into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 16:13:17 +0000 (16:13 +0000)]
Merge "DisplayCutout: Properly letterbox bottom-only cutouts" into pi-dev

6 years agoMerge "Fix QSTileImpl NPE on startup." into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 15:40:28 +0000 (15:40 +0000)]
Merge "Fix QSTileImpl NPE on startup." into pi-dev

6 years agoMerge "Add an asset source for ImageDecoder" into pi-dev
Leon Scroggins [Tue, 20 Mar 2018 14:33:43 +0000 (14:33 +0000)]
Merge "Add an asset source for ImageDecoder" into pi-dev

6 years agoScale up in ImageDecoder based on API level
Leon Scroggins III [Mon, 19 Mar 2018 14:51:44 +0000 (10:51 -0400)]
Scale up in ImageDecoder based on API level

Bug: 74061412
Bug: 73893665
Test: Manual, I5669a97c70d726826c5c00bc1413c2f97d95d88c

ImageDecoder typically does not scale a Bitmap up to handle density.
This saves memory, and we already handle the density by scaling at
draw time. But some apps rely on the size of the Bitmap without taking
density into account. For backwards compatibility, on apps that are
built for a pre-P version of Android, scale up in ImageDecoder.

Change-Id: I9991d1286e386b47fc57bcfbf0c6652beb1a53ef

6 years agoAdd missing "android:" prefix to some app op constants.
Peter Visontay [Fri, 16 Mar 2018 16:06:57 +0000 (16:06 +0000)]
Add missing "android:" prefix to some app op constants.

Bug: 75253734
Test: none
Change-Id: Ie91b4bee938b9c834c2cb3c831e3473fab0f534c

6 years agoDisplayCutout: Properly letterbox bottom-only cutouts
Adrian Roos [Mon, 19 Mar 2018 16:01:05 +0000 (17:01 +0100)]
DisplayCutout: Properly letterbox bottom-only cutouts

Fixes an issue where bottom cutouts where not
letterboxed if there is no need to letterbox the top

Instead, the need to letterbox is derived from the
bounds.

Change-Id: I6053053066473bd78f21df978e6704043a85e80b
Fixes: 75024814
Test: Receive incoming call in double cutout mode, verify bottom of dialer is letterboxed.

6 years agoFix QSTileImpl NPE on startup.
Amin Shaikh [Tue, 20 Mar 2018 13:09:17 +0000 (09:09 -0400)]
Fix QSTileImpl NPE on startup.

Do not call protected methods before the object is fully instantiated.
Remove paranoid null check for private final nonnull fields for
sublasses of QSTileImpl.

Fixes: 75995708
Test: runtest systemui
Change-Id: I0a11131d796e08d598d696babdf3d7db30e02149

6 years agoAuto zen rules reset for some upgrading users
Beverly [Fri, 16 Mar 2018 19:43:49 +0000 (15:43 -0400)]
Auto zen rules reset for some upgrading users

Automatic zen rules will be set to the undeletable,
default rules for for fresh P devices and for upgrading users
who didn't have any zen automatic rules enabled on upgrade

Bug: 74381638
Test: atest ZenModeHelperTest
Change-Id: Icfa7dfe6c99cb9d67821df0034d5e9a3457b2ef4

6 years agoOnly animate text on wired charging, not wireless
Beverly [Mon, 19 Mar 2018 15:18:51 +0000 (11:18 -0400)]
Only animate text on wired charging, not wireless

Test: manual
Change-Id: I8369914f198aab6711ca8aac39acd8e7216877f7
Fixes: 75849709

6 years agoMerge "Update system notification channels" into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 13:13:36 +0000 (13:13 +0000)]
Merge "Update system notification channels" into pi-dev

6 years agoMerge "Camera: Populate Image tranformation in reader and writer" into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 12:33:37 +0000 (12:33 +0000)]
Merge "Camera: Populate Image tranformation in reader and writer" into pi-dev

6 years agoMerge "Do not display <unknown ssid>." into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 12:23:28 +0000 (12:23 +0000)]
Merge "Do not display <unknown ssid>." into pi-dev

6 years agoMerge "Update mobile data type icons." into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 12:19:29 +0000 (12:19 +0000)]
Merge "Update mobile data type icons." into pi-dev

6 years agoDo not display <unknown ssid>.
Amin Shaikh [Fri, 9 Mar 2018 21:07:09 +0000 (16:07 -0500)]
Do not display <unknown ssid>.

Fixes: 73853121
Test: runtest systemui
Change-Id: Ib16a63cb9edfbd287724500adf515287f12c0d07

6 years agoMerge "@ignore flaky test" into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 07:47:54 +0000 (07:47 +0000)]
Merge "@ignore flaky test" into pi-dev

6 years agoMerge "Frameworks: Handle exceptions in SystemProperties callbacks" into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 05:37:44 +0000 (05:37 +0000)]
Merge "Frameworks: Handle exceptions in SystemProperties callbacks" into pi-dev

6 years agodocs: fixing typo, bug 36909553
kopriva [Tue, 20 Mar 2018 04:12:47 +0000 (04:12 +0000)]
docs: fixing typo, bug 36909553
am: 4dddc63ee7

Change-Id: Ib943321651422b55b928b90617145a871a0d0460

6 years agoFrameworks: Handle exceptions in SystemProperties callbacks
Andreas Gampe [Fri, 16 Mar 2018 23:14:29 +0000 (16:14 -0700)]
Frameworks: Handle exceptions in SystemProperties callbacks

When notifying callbacks, catch thrown exceptions.

(cherry picked from commit 7074e6fd4c6289e016666bb21e7eee2f78219141)

Bug: 73058952
Test: m
Test: atest SystemPropertiesTest
Merged-In: I1c61e11b833e8ddd30d80b9859b20a9fb3185a33
Change-Id: I1c61e11b833e8ddd30d80b9859b20a9fb3185a33

6 years agoMerge "Ease out clock translation" into pi-dev
Lucas Dupin [Tue, 20 Mar 2018 03:31:00 +0000 (03:31 +0000)]
Merge "Ease out clock translation" into pi-dev

6 years agoMerge "Expose remaining READ_PHONE_STATE and SEND_SMS APIs to carrier apps." into...
TreeHugger Robot [Tue, 20 Mar 2018 02:47:50 +0000 (02:47 +0000)]
Merge "Expose remaining READ_PHONE_STATE and SEND_SMS APIs to carrier apps." into pi-dev

6 years agoMerge "Updating java doc for requestPinAppWidget" into pi-dev
Sunny Goyal [Tue, 20 Mar 2018 02:07:48 +0000 (02:07 +0000)]
Merge "Updating java doc for requestPinAppWidget" into pi-dev

6 years agoEase out clock translation
Lucas Dupin [Tue, 20 Mar 2018 00:21:52 +0000 (17:21 -0700)]
Ease out clock translation

Test: visual
Bug: 73830624
Bug: 74586970
Change-Id: I896778b00d85252a8ac606e71ea20e9b4384bbb0

6 years agoMerge "Ensure pause when turnScreenOn flag is removed" into pi-dev
Chavi Weingarten [Tue, 20 Mar 2018 01:10:53 +0000 (01:10 +0000)]
Merge "Ensure pause when turnScreenOn flag is removed" into pi-dev

6 years agoMerge changes I0c466350,I09a9cd43,I8b2a0819 into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 00:16:57 +0000 (00:16 +0000)]
Merge changes I0c466350,I09a9cd43,I8b2a0819 into pi-dev

* changes:
  Reset dummy stack view tasks after computing transition into Recents
  Don't update onboarding if there is no valid running task.
  Only check screen pinning state on touch down.

6 years agoMerge "Don't ANR if a broadcast recipient is sitting at a breakpoint" into pi-dev
Chris Tate [Tue, 20 Mar 2018 00:09:59 +0000 (00:09 +0000)]
Merge "Don't ANR if a broadcast recipient is sitting at a breakpoint" into pi-dev

6 years agoMake carrier text size in footer match qs label.
Amin Shaikh [Mon, 19 Mar 2018 23:29:14 +0000 (19:29 -0400)]
Make carrier text size in footer match qs label.

Change-Id: I6d2bd73a788a7a7c5362a49d22e8a8e94a7a372a
Fixes: 74986260
Test: visual

6 years agoMerge "Add metric for battery tip action" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 23:17:00 +0000 (23:17 +0000)]
Merge "Add metric for battery tip action" into pi-dev

6 years agoUpdate mobile data type icons.
Amin Shaikh [Mon, 19 Mar 2018 19:22:43 +0000 (15:22 -0400)]
Update mobile data type icons.

- These icons have a different style and are narrower.
- Remove concept of wide data type icons since they are all drawn in
their own space.

Fixes: 74113108
Test: visual
Change-Id: Ibf33d3acb94d033c6e315ab936ce3d1703cca7c4

6 years agoMerge "Fix a UidMap crash." into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 23:07:06 +0000 (23:07 +0000)]
Merge "Fix a UidMap crash." into pi-dev

6 years agoMerge "Fix the binder calling identity in setVrMode" into pi-dev
Karthik Ravi Shankar [Mon, 19 Mar 2018 22:55:52 +0000 (22:55 +0000)]
Merge "Fix the binder calling identity in setVrMode" into pi-dev

6 years agoMerge "Revert "Add setting for enabling CPU frequency scaling."" into pi-dev
Alice Sheng [Mon, 19 Mar 2018 22:38:25 +0000 (22:38 +0000)]
Merge "Revert "Add setting for enabling CPU frequency scaling."" into pi-dev

6 years agoRevert "Add setting for enabling CPU frequency scaling."
Alice Sheng [Mon, 19 Mar 2018 22:36:12 +0000 (22:36 +0000)]
Revert "Add setting for enabling CPU frequency scaling."

This reverts commit 2e8afd8736cba3352bcbf585461becb20a7c7600.

Reason for revert: SELinux Boot crash
Bug: 75974893

Change-Id: I4751530a1b460842130a495efe688aaf19b92638

6 years agoMerge "Settings: Remove unused bg scan throttle settings" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 22:24:04 +0000 (22:24 +0000)]
Merge "Settings: Remove unused bg scan throttle settings" into pi-dev

6 years agoReset dummy stack view tasks after computing transition into Recents
Winson Chung [Mon, 19 Mar 2018 22:08:13 +0000 (15:08 -0700)]
Reset dummy stack view tasks after computing transition into Recents

- Also clear up references from the app transition spec future to the
  parent implementation, which can also leak memory.

Bug: 73961798
Test: Enter recents, ensure that dummy stack view holds no task refs
Change-Id: I0c466350c1c1dd490f8776ca23f13de0d698e060

6 years agoMerge "Fix rounding error related to autoSize" into pi-dev
Siyamed Sinir [Mon, 19 Mar 2018 22:15:31 +0000 (22:15 +0000)]
Merge "Fix rounding error related to autoSize" into pi-dev

6 years agoMerge "Removing the settings-based IncidentReportArgs method." into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 22:15:11 +0000 (22:15 +0000)]
Merge "Removing the settings-based IncidentReportArgs method." into pi-dev

6 years agoMerge "Work around incorrect Skia gamma" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 22:10:31 +0000 (22:10 +0000)]
Merge "Work around incorrect Skia gamma" into pi-dev

6 years agoDon't update onboarding if there is no valid running task.
Winson Chung [Mon, 19 Mar 2018 22:04:56 +0000 (15:04 -0700)]
Don't update onboarding if there is no valid running task.

Bug: 75974298
Test: Manual, just a null check
Change-Id: I09a9cd435854846c62ea2ef42e8c91e727a81f04

6 years agoMerge "Camera2: Use Set for physical camera IDs" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 22:02:58 +0000 (22:02 +0000)]
Merge "Camera2: Use Set for physical camera IDs" into pi-dev

6 years agoMerge "Add '?' to permission group requests." into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 21:59:15 +0000 (21:59 +0000)]
Merge "Add '?' to permission group requests." into pi-dev

6 years agoMerge "Fix up brightness docs." into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 21:47:22 +0000 (21:47 +0000)]
Merge "Fix up brightness docs." into pi-dev

6 years agoMerge "Move trusted CA certs to core" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 21:44:23 +0000 (21:44 +0000)]
Merge "Move trusted CA certs to core" into pi-dev

6 years agoMerge "Added strings used by car keyguard overlay" into pi-dev
Jian Jin [Mon, 19 Mar 2018 21:40:41 +0000 (21:40 +0000)]
Merge "Added strings used by car keyguard overlay" into pi-dev

6 years agoMerge "Frameworks: Fix Binder.joinThreadPool" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 21:40:37 +0000 (21:40 +0000)]
Merge "Frameworks: Fix Binder.joinThreadPool" into pi-dev

6 years agoMerge "Add setupwizard personalisation state to Settings" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 21:26:37 +0000 (21:26 +0000)]
Merge "Add setupwizard personalisation state to Settings" into pi-dev

6 years agodocs: fixing typo, bug 36909553
kopriva [Mon, 19 Mar 2018 21:13:08 +0000 (14:13 -0700)]
docs: fixing typo, bug 36909553

Test: make ds-docs

Bug: 36909553
Change-Id: I6e6842fe555690d97b954c370b777b25c6f5e54e

6 years agoMerge "Allow system apps to make channels that bypass DND" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 21:23:58 +0000 (21:23 +0000)]
Merge "Allow system apps to make channels that bypass DND" into pi-dev

6 years agoOnly check screen pinning state on touch down.
Winson Chung [Mon, 19 Mar 2018 21:19:41 +0000 (14:19 -0700)]
Only check screen pinning state on touch down.

Bug: 74997742
Test: Swipe up, check systrace
Change-Id: I8b2a0819bc839b2bc76775c99df0840ab889a96e

6 years agoMerge "Move roaming icon to upper left." into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 21:15:52 +0000 (21:15 +0000)]
Merge "Move roaming icon to upper left." into pi-dev

6 years agoMerge "Remove IMS Emergency Calling availability API" into pi-dev
Brad Ebinger [Mon, 19 Mar 2018 21:12:43 +0000 (21:12 +0000)]
Merge "Remove IMS Emergency Calling availability API" into pi-dev

6 years agoMerge "Dispatching display list recreations also to transient views" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 21:09:31 +0000 (21:09 +0000)]
Merge "Dispatching display list recreations also to transient views" into pi-dev

6 years agoMerge "Add factory methods for async Handlers" into pi-dev
Adam Powell [Mon, 19 Mar 2018 21:09:01 +0000 (21:09 +0000)]
Merge "Add factory methods for async Handlers" into pi-dev

6 years agoMerge "Small fixes to StatsManager API." into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 21:04:39 +0000 (21:04 +0000)]
Merge "Small fixes to StatsManager API." into pi-dev

6 years agoMerge "Set application info flags prior to scanning" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 21:01:30 +0000 (21:01 +0000)]
Merge "Set application info flags prior to scanning" into pi-dev

6 years agoMerge "TelephonyManager System APIs process" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 20:55:18 +0000 (20:55 +0000)]
Merge "TelephonyManager System APIs process" into pi-dev

6 years agoMerge "Atoms: Mobile Connection" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 20:45:55 +0000 (20:45 +0000)]
Merge "Atoms: Mobile Connection" into pi-dev

6 years agoFix a UidMap crash.
Yao Chen [Mon, 19 Mar 2018 20:43:29 +0000 (13:43 -0700)]
Fix a UidMap crash.

Bug: 75968717

Test: CTS with sanitizer
Change-Id: I9516d3b59f72816159c9fc1fe75ca64bfe21d799

6 years agoMerge "SurfaceView: Expose hook for subclass to position child surfaces." into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 20:32:35 +0000 (20:32 +0000)]
Merge "SurfaceView: Expose hook for subclass to position child surfaces." into pi-dev

6 years agoMerge "Fix the test failure of LogSection, don't consider read log msg error as a...
TreeHugger Robot [Mon, 19 Mar 2018 20:29:59 +0000 (20:29 +0000)]
Merge "Fix the test failure of LogSection, don't consider read log msg error as a failure since it is used to signal EOF." into pi-dev

6 years agoMerge "Move default pip position to right above the shelf." into pi-dev
Tracy Zhou [Mon, 19 Mar 2018 20:15:14 +0000 (20:15 +0000)]
Merge "Move default pip position to right above the shelf." into pi-dev

6 years agoMerge "Fixed isVisibleToUserForAutofill() again." into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 19:57:14 +0000 (19:57 +0000)]
Merge "Fixed isVisibleToUserForAutofill() again." into pi-dev

6 years agoMerge "Listen to task stack only when AuthenticationClient is running" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 19:45:23 +0000 (19:45 +0000)]
Merge "Listen to task stack only when AuthenticationClient is running" into pi-dev

6 years agoMerge "Revert "Break down jank between frame drops vs. triple buffered"" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 19:44:14 +0000 (19:44 +0000)]
Merge "Revert "Break down jank between frame drops vs. triple buffered"" into pi-dev

6 years agoMerge "Add ImageDecoder.Source for resources" into pi-dev
Leon Scroggins [Mon, 19 Mar 2018 19:28:09 +0000 (19:28 +0000)]
Merge "Add ImageDecoder.Source for resources" into pi-dev

6 years agoMerge "Update system notification text" into pi-dev
Julia Reynolds [Mon, 19 Mar 2018 19:18:47 +0000 (19:18 +0000)]
Merge "Update system notification text" into pi-dev

6 years agoMerge "Remove unneeded sysui notifications" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 19:16:55 +0000 (19:16 +0000)]
Merge "Remove unneeded sysui notifications" into pi-dev

6 years agoMerge "Disabler AppStateTracker debug log" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 19:10:16 +0000 (19:10 +0000)]
Merge "Disabler AppStateTracker debug log" into pi-dev

6 years agoMerge "Revert "Make PrecomputedText Spannable for supporting selection"" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 19:02:34 +0000 (19:02 +0000)]
Merge "Revert "Make PrecomputedText Spannable for supporting selection"" into pi-dev

6 years agoMove roaming icon to upper left.
Amin Shaikh [Thu, 8 Mar 2018 16:20:41 +0000 (11:20 -0500)]
Move roaming icon to upper left.

- Update stat_sys_roaming to the new M2 icon
- Move the R icon to be displayed in the upper left corner of the signal
icon instead of centered to the right
- Also remove unncessary extra SignalDrawable in SignalClusterView

Fixes: 72540392
Test: visual
Change-Id: I4ac0e160b0f262bf6912f61f0817b778634be1ad

6 years agoMerge changes Ifc6355e2,Ia8afa338 into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 18:48:32 +0000 (18:48 +0000)]
Merge changes Ifc6355e2,Ia8afa338 into pi-dev

* changes:
  DisplayCutout: Correctly apply light status bar
  Letterboxing: ensure bar contrast

6 years agoMerge "Cosmetic changes on Field Classification TODOs and docs." into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 18:44:24 +0000 (18:44 +0000)]
Merge "Cosmetic changes on Field Classification TODOs and docs." into pi-dev

6 years agoMerge "Add setting for enabling CPU frequency scaling." into pi-dev
Alice Sheng [Mon, 19 Mar 2018 18:41:40 +0000 (18:41 +0000)]
Merge "Add setting for enabling CPU frequency scaling." into pi-dev

6 years agoAdd metric for battery tip action
Lei Yu [Mon, 12 Mar 2018 18:28:40 +0000 (11:28 -0700)]
Add metric for battery tip action

Add metrics for different kind of battery actions. Also
add a field to specify the type of anomaly.

Bug: 73888115
Test: Build
Change-Id: I2e4d912a5e25b8fe92ec000d5086e44b0e9f190d

6 years agoTelephonyManager System APIs process
sqian [Fri, 9 Mar 2018 01:03:35 +0000 (17:03 -0800)]
TelephonyManager System APIs process

- lock down some TelephonyManager APIs with system permission
- deprecate some TelephonyManager APIs due to its equivalents
- introduce an aidl interface that handles the current
getPhoneType() functions

The doc: https://docs.google.com/spreadsheets/d/1OJ6EXJ-Zys21mZ1BHgJeWkcfLq0pPxBR765r46ck80U/edit#gid=0

Bug: 62346128
Test: Compile
Change-Id: I5367372f3304e5ad368d0d4775f6e96168243aa3
Merged-In: I5367372f3304e5ad368d0d4775f6e96168243aa3
(cherry picked from commit 3b991aee47d7c46c7ae708636e268b0c7709b3e2)

6 years agoMerge "Bluetooth: preserve one advertisement slot for GMS core" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 18:28:28 +0000 (18:28 +0000)]
Merge "Bluetooth: preserve one advertisement slot for GMS core" into pi-dev

6 years agoMerge "Fixed AutofillManager.isAutofillUiShowing()" into pi-dev
Felipe Leme [Mon, 19 Mar 2018 18:27:20 +0000 (18:27 +0000)]
Merge "Fixed AutofillManager.isAutofillUiShowing()" into pi-dev

6 years agoFixed AutofillManager.isAutofillUiShowing()
Felipe Leme [Mon, 19 Mar 2018 18:15:00 +0000 (11:15 -0700)]
Fixed AutofillManager.isAutofillUiShowing()

It was using & instead of &&

Test: not really
Bug: 75652829
Bug: 74527545

Change-Id: Ib8ca79ba6ec35d2fc97f042db2152b03d334ce30

6 years agoMerge "Fix Javadoc of DevicePolicyManager#setStorageEncryption to reflect that it...
Alex Kershaw [Mon, 19 Mar 2018 18:17:23 +0000 (18:17 +0000)]
Merge "Fix Javadoc of DevicePolicyManager#setStorageEncryption to reflect that it's a no-op (and silent fail) when called from a non-system user." into pi-dev

6 years agoMerge "Deletes default allowed_log_sources in statsd." into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 18:14:18 +0000 (18:14 +0000)]
Merge "Deletes default allowed_log_sources in statsd." into pi-dev

6 years agoMerge "Display that MAC is randomized in About Phones" into pi-dev
Jong Wook Kim [Mon, 19 Mar 2018 18:14:08 +0000 (18:14 +0000)]
Merge "Display that MAC is randomized in About Phones" into pi-dev

6 years agoEnsure pause when turnScreenOn flag is removed
chaviw [Fri, 16 Mar 2018 22:33:43 +0000 (15:33 -0700)]
Ensure pause when turnScreenOn flag is removed

Because of Id5a7e04a354032ad10cf285f8d6b26d666734e6e,
inResumeTopActivity will always be true. This was preventing the
activity from getting paused when it did not have the turnScreenOn flag.

Change-Id: I483b1a50dee1dd99d0e0b1bb49d2deb7b2d0d9a6
Fixes: 74775193
Test: testTurnScreenOnAttrRemove

6 years agoRemove IMS Emergency Calling availability API
Brad Ebinger [Fri, 9 Mar 2018 00:21:42 +0000 (16:21 -0800)]
Remove IMS Emergency Calling availability API

Moving to an async update model for updating
IMS emergency calling availability, so this
API is unneeded.

Bug: 74389647
Test: Telephony ImsService testapp
Merged-In: I6b8ba0608c540113ce7303907ec632989c6422bc
Change-Id: Ib7b7dc5b1438f038b370ae9faf152fb15ed4acd5

6 years agoMerge "Fix PackageParser tests" into pi-dev
Adrian Roos [Mon, 19 Mar 2018 18:02:22 +0000 (18:02 +0000)]
Merge "Fix PackageParser tests" into pi-dev

6 years agoMerge "Resolve STATSD and batterystats race condition" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 18:00:40 +0000 (18:00 +0000)]
Merge "Resolve STATSD and batterystats race condition" into pi-dev

6 years agoMerge "Don't use IPC in isolateProcess" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 17:56:14 +0000 (17:56 +0000)]
Merge "Don't use IPC in isolateProcess" into pi-dev

6 years agoRevert "Break down jank between frame drops vs. triple buffered"
Aaron Whyte [Mon, 19 Mar 2018 17:46:54 +0000 (17:46 +0000)]
Revert "Break down jank between frame drops vs. triple buffered"

This reverts commit 09979fbee7201b46158c2c033194529e4284ea13.

Reason for revert: Based on stacktraces and change history, I think this is causing a cluster of P crashes.
https://b.corp.google.com/issues?q=(%22android%22%20%22:uirenderer::JankTracker::finishFrame%22)
Bug: 75566601
Bug: 75811585
Bug: 75407175
Bug: 75736222
Bug: 75391447
Bug: 75659839

Change-Id: I59a8c2d8906d347210c77fb3628f5801bc299bfb

6 years agoCamera2: Use Set for physical camera IDs
Shuzhen Wang [Mon, 19 Mar 2018 17:30:45 +0000 (10:30 -0700)]
Camera2: Use Set for physical camera IDs

Because physical camera IDs are not ordered, use Set instead.

Test: Camera CTS
Bug: 74838822
Change-Id: I2ca73ba42f4517283f4c0048f9369498b11eea66

6 years agoMove default pip position to right above the shelf.
Tracy Zhou [Fri, 9 Mar 2018 05:58:36 +0000 (21:58 -0800)]
Move default pip position to right above the shelf.

This change takes care of the flow from WindowManagerService to
PinnedStackController, all the way to PipTouchHandler. It also
introduces a WindowManager hook that allows Launcher to pass in
shelf visibility and height. A separate change is made to send
signals from Launcher to SysUI. (ag/3724896)

Bug: 73961893
Change-Id: I2ff54e78bc2dc35c806b902464048b051a4d6394
Test: atest CtsActivityManagerDeviceTestCases:ActivityManagerPinnedStackTests

6 years agoMerge changes I72119772,I124e4cc0,I462d4dfc into pi-dev
Chavi Weingarten [Mon, 19 Mar 2018 17:40:31 +0000 (17:40 +0000)]
Merge changes I72119772,I124e4cc0,I462d4dfc into pi-dev

* changes:
  Clear all options from Task when any ActivityRecord consumes the options.
  Revert "Set options on startingActivity instead of topActivity"
  Revert "Set options for activity being brought to front."

6 years agoSettings: Remove unused bg scan throttle settings
Roshan Pius [Fri, 2 Mar 2018 22:54:13 +0000 (14:54 -0800)]
Settings: Remove unused bg scan throttle settings

Bug: 68987915
Test: Compiles
Change-Id: I49b213f0d63f2a639e45c2239506787d31ae866a
Merged-In: Id878daa0f782ddc751e726ee19cdc1c8e5ea1bc2

6 years agoSet application info flags prior to scanning
Todd Kennedy [Fri, 16 Mar 2018 22:44:04 +0000 (15:44 -0700)]
Set application info flags prior to scanning

In the case where an app is updated with a version greater
than what's on the /system partition, we still attempt to
scan the version on the /system partition to ensure we have
the most up-to-date information [since it may have been
changed during an OTA]. However, we mistakenly did not
apply any package policy prior to scanning. This left
package data only partially set [eg. the application info
object in the package was missing the fact that it was a
system package] and prevented us from scanning the package
correctly.

Scanning _should_ be completely self contained. The two
scan methods should be merged and made static. Any writing
or changing of service structures [eg. commiting the
scanned package settings or creating a shared user setting]
should be handled outside of the scan method, in the add()
method.

Change-Id: I8d5404a4f0f074ee02d26449c0b01e7a3c949334
Fixes: 62980149
Test: flash O MR1
Test: install latest chrome pkg [version > than what's on P]
Test: flash P
Test: see that the disabled version of chrome still has its ABI set
(cherry picked from commit fcd5279c9e43c169e52768f1be8bc2e391b027ac)

6 years agoSmall fixes to StatsManager API.
David Chen [Thu, 22 Feb 2018 02:58:23 +0000 (18:58 -0800)]
Small fixes to StatsManager API.

Adds some annotations, deletes an unused API method, and adds some
comments.

Test: Flashed onto marlin-eng and verified there are no crashes.
Bug: 72562867
Change-Id: I6c93ee4aeeacf6842795256c76551cfb1c28888d

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 17:24:17 +0000 (17:24 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years ago@ignore flaky test
Alison Cichowlas [Mon, 19 Mar 2018 17:09:11 +0000 (13:09 -0400)]
@ignore flaky test

Bug: 75303426
Test: this is it
Change-Id: Iad3a571131d6acce232cc8000a1e01b7d6eeba98

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 17:22:52 +0000 (17:22 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Fix KeyButtonDrawable dark intensity logic error" into pi-dev
Mike Digman [Mon, 19 Mar 2018 17:22:39 +0000 (17:22 +0000)]
Merge "Fix KeyButtonDrawable dark intensity logic error" into pi-dev