OSDN Git Service

android-x86/frameworks-base.git
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 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 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 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 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 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 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 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 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

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

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

6 years agoFix the binder calling identity in setVrMode
Karthik Ravi Shankar [Thu, 7 Dec 2017 02:06:21 +0000 (18:06 -0800)]
Fix the binder calling identity in setVrMode

When an app calls setVrMode, we end up moving the task stack which needs
MANAGE_ACTIVITY_STACKS permission which the app can never get. So, clear
the binder identity of the app while making this call.

Testing: android.vr.cts.VrSetFIFOThreadTest
Bug: 65743448

Change-Id: Id37968f4fb5531edadb0726e5fc04b2470d2d0e5
Signed-off-by: Karthik Ravi Shankar <karthikrs@google.com>
(cherry picked from commit ac214bbfa2ebd8863cb36e3f002760ef3293b0da)

6 years agoMerge "Add disable2 flag for rotate suggestions" into pi-dev
Mike Digman [Mon, 19 Mar 2018 17:13:30 +0000 (17:13 +0000)]
Merge "Add disable2 flag for rotate suggestions" into pi-dev

6 years agoMerge "Light greylist additions." into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 17:08:45 +0000 (17:08 +0000)]
Merge "Light greylist additions." into pi-dev

6 years agoRevert "Make PrecomputedText Spannable for supporting selection"
Seigo Nonaka [Mon, 19 Mar 2018 17:04:30 +0000 (17:04 +0000)]
Revert "Make PrecomputedText Spannable for supporting selection"

Crash on Sheets APp
This reverts commit 80ed5a35a90b62b8070d861b9755e230bd679951.

Bug: 75652829
Change-Id: I40ddd1b9754e74fbd90d7a029cce9c6a7ede0777
Test: Manual

6 years agoAdd ImageDecoder.Source for resources
Leon Scroggins III [Fri, 16 Mar 2018 19:04:04 +0000 (15:04 -0400)]
Add ImageDecoder.Source for resources

Bug: 74545298
Test: Ibc283c2e8aee999e951de51f3a43b581a765aaf5

Although resources can already be accessed with ContentResolver + URI,
this allows a simple method to do the same.

Change-Id: I1bf698f36d5540f6de7cb9957e4223123d0f4331

6 years agoMerge "Update mobile data off dialog." into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 16:58:23 +0000 (16:58 +0000)]
Merge "Update mobile data off dialog." into pi-dev

6 years agoFixed isVisibleToUserForAutofill() again.
Felipe Leme [Sat, 17 Mar 2018 01:02:16 +0000 (18:02 -0700)]
Fixed isVisibleToUserForAutofill() again.

This method should return false when the accessibility provider does not have
an accessibility info for a node. Otherwise, the Save UI is not triggered on
compat mode.

Bug: 75017711
Test: manual verification

Change-Id: Ic1759520a43b4333aef9f8f0e1d93f8d378b131c

6 years agoDisplayCutout: Correctly apply light status bar
Adrian Roos [Mon, 19 Mar 2018 16:47:12 +0000 (17:47 +0100)]
DisplayCutout: Correctly apply light status bar

Fixes an issue where light navigation bar was not
properly applied in landscape where the letterbox
does not overlap with the status bar.

This removes a hack that is no longer necessary
now that we track exactly if the letterbox overlaps
the system bars and put them into black-background
mode if so.

Bug: 72696928
Test: Open API Demos > Activity > Max Aspect Ratio > Any; rotate to landscape, verify that status bar is light.
Change-Id: Ifc6355e2eeadf0821c9ac82ce78c812916de5034

6 years agoMerge "Enable cleartext for captive portal apps" into pi-dev
Lorenzo Colitti [Mon, 19 Mar 2018 16:49:47 +0000 (16:49 +0000)]
Merge "Enable cleartext for captive portal apps" into pi-dev

6 years agoAllow system apps to make channels that bypass DND
Julia Reynolds [Mon, 19 Mar 2018 14:26:32 +0000 (10:26 -0400)]
Allow system apps to make channels that bypass DND

Test: runtest systemui-notification
Bug: 75429403
Change-Id: I3168eb7e7313b85c2c56935adb4eeea7880d4ef3

6 years agoAtoms: Mobile Connection
Tej Singh [Thu, 8 Mar 2018 03:28:05 +0000 (19:28 -0800)]
Atoms: Mobile Connection

Atom definitions for MobileConnectionStateChanged and
MobileRadioTechnologyChanged

Also cleans up batterystats.

Bug: b/72320589
Test: verified logs appear in adb logcat -b stats
Change-Id: I9feb258cf6dd4a8c8bf1cffc9566b5d0a851a9fa

6 years agoMerge "Frameworks: Make MockUtils more robust" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 16:47:30 +0000 (16:47 +0000)]
Merge "Frameworks: Make MockUtils more robust" into pi-dev

6 years agoMerge "Removed flaky annotation from testFocusedWindowMultipleDisplays" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 16:46:19 +0000 (16:46 +0000)]
Merge "Removed flaky annotation from testFocusedWindowMultipleDisplays" into pi-dev

6 years agoMerge "Whitelist FullBackupDataOutput" into pi-dev
Sarah Edris [Mon, 19 Mar 2018 16:42:39 +0000 (16:42 +0000)]
Merge "Whitelist FullBackupDataOutput" into pi-dev

6 years agoDisabler AppStateTracker debug log
Makoto Onuki [Mon, 19 Mar 2018 16:39:56 +0000 (09:39 -0700)]
Disabler AppStateTracker debug log

Bug: 75934261
Change-Id: I0c09472073b90366441e6f63f8621c12b99265b2
Fix: 75934261
Test: boot
Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/AppStateTrackerTest.java

6 years agoUpdate system notification text
Julia Reynolds [Sun, 18 Mar 2018 19:25:19 +0000 (15:25 -0400)]
Update system notification text

Test: atest SystemUITests
Bug: 75436062
Change-Id: I91dbc9d02d9997133bb9001de493a28b8afbbb2e

6 years agoRemove unneeded sysui notifications
Julia Reynolds [Sun, 18 Mar 2018 18:54:27 +0000 (14:54 -0400)]
Remove unneeded sysui notifications

Test: atest SystemUITests
Bug: 75436062
Change-Id: I45810c494f9f55595d3b0aeda7f23493411f4f71

6 years agoMerge "Softens one of the battery strings per UI request" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 16:27:41 +0000 (16:27 +0000)]
Merge "Softens one of the battery strings per UI request" into pi-dev

6 years agoMove trusted CA certs to core
Robert Berry [Mon, 19 Mar 2018 12:11:20 +0000 (12:11 +0000)]
Move trusted CA certs to core

Android Security team asked us to do this.

Bug: 74621071
Test: runtest frameworks-core -p android.security.backup
Change-Id: Ieae1649b82d0143fd5d560195f74b9fc10316d02

6 years agoMerge "StatsManager log lines should be in logcat" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 16:18:53 +0000 (16:18 +0000)]
Merge "StatsManager log lines should be in logcat" into pi-dev

6 years agoAdd '?' to permission group requests.
Philip P. Moltmann [Mon, 19 Mar 2018 15:58:37 +0000 (08:58 -0700)]
Add '?' to permission group requests.

Test: Looked at permission request for location (when starting camera
      app)
Fixes: 74363789
Change-Id: I7b7225890dba99cf99ef9373224da3a903a981f7

6 years agoAdd factory methods for async Handlers
Adam Powell [Wed, 21 Feb 2018 18:18:25 +0000 (10:18 -0800)]
Add factory methods for async Handlers

Message.setAsynchronous is already public and this makes working
with posted messages that do not interact with UIs quite a bit nicer.

Added as factory methods for better integration with support shims
as well as generally encouraging the use of the handler callback
instead of subclassing for working with custom messages.

Bug: 73124158

Change-Id: I1210e7dc524fdf771e7af19297d5a822fdbd502c

6 years agoDisplay that MAC is randomized in About Phones
Jong Wook Kim [Wed, 14 Mar 2018 18:16:06 +0000 (11:16 -0700)]
Display that MAC is randomized in About Phones

When Connected MAC Randomization is enabled and the device is
disconnected, there isn't a valid MAC address to display since we don't
know what the device's next MAC address is going to be.

In such cases, display "MAC address is randomized" instead of an invalid
MAC address in About Phones page.

Bug: 73663275
Test: make RunSettingsLibRoboTests -j40
Change-Id: I0a4df2b1b0823632b26f90e097c26f47dd5a0a67

6 years agoMerge "Insert correct app transition events for recents anim" into pi-dev
Jorim Jaggi [Mon, 19 Mar 2018 15:36:05 +0000 (15:36 +0000)]
Merge "Insert correct app transition events for recents anim" into pi-dev

6 years agoMerge "Fix SyncResutl.delayUntil javadoc" into pi-dev
Makoto Onuki [Mon, 19 Mar 2018 15:12:36 +0000 (15:12 +0000)]
Merge "Fix SyncResutl.delayUntil javadoc" into pi-dev

6 years agoLetterboxing: ensure bar contrast
Adrian Roos [Thu, 15 Mar 2018 14:41:13 +0000 (15:41 +0100)]
Letterboxing: ensure bar contrast

Ensures that any bars that draw over a letterbox draw their own
background such that they always have contrast.

This fixes an issue, where if a light status / navigation bar app was
letterboxed, the bar would still draw dark icons over the now black
letterbox, making the icons unreadable.

To do so, splits the letterbox into a layout and an apply surface
changes phase.

Change-Id: Ia8afa3386d75d9a72434d701b867c3ebc35cc36f
Fixes: 72696928
Test: Open a letterboxed app with a white navigation bar, verify it is visible
Test: ApiDemos > App > Activity > Max Aspect Ratio > 1:1, verify navbar is visible

6 years agoInsert correct app transition events for recents anim
Jorim Jaggi [Thu, 15 Mar 2018 14:51:32 +0000 (15:51 +0100)]
Insert correct app transition events for recents anim

The transition delay will be the latency until all the leashes
were created etc. Thus, the actual latency is going to be in
WINDOWS_DRAWN_DELAY.

Also fix an issue where we inadvertently started a transition,
and then the transition logger was hanging.

Bug: 72967764
Test: Swipe up from home button, observe eventlog
Change-Id: I2b1fb7d9d694a629a33653c1fa3d5ed47f53de6b

6 years agoUpdate mobile data off dialog.
Amin Shaikh [Fri, 9 Mar 2018 19:50:59 +0000 (14:50 -0500)]
Update mobile data off dialog.

Show the mobile data turn off dialog until the user taps the turn off
button. All subsequent toggles will immediately toggle data on/off. Also
update the message copy.

Fixes: 74072757
Test: runtest systemui && manual
Change-Id: I489d5c3c19d52a6f531b1b925b3210019412243b

6 years agoLight greylist additions.
Mathew Inwood [Mon, 19 Mar 2018 14:31:17 +0000 (14:31 +0000)]
Light greylist additions.

Gathered from dogfood bugreports.

Test: m

Bug: 74940461
Change-Id: I08a450f987ae0e87ab6f7306e9d89a7ca3368f70

6 years agoFix PackageParser tests
Adrian Roos [Mon, 19 Mar 2018 13:51:02 +0000 (14:51 +0100)]
Fix PackageParser tests

Also adds the well-known-fields test to presubmit to prevent
similar breakage in the future.

Change-Id: I717396802b5978b2da9de78a6203303082663d38
Fixes: 75450512
Test: atest PackageParserTest

6 years agoRemoved flaky annotation from testFocusedWindowMultipleDisplays
Wale Ogunwale [Mon, 19 Mar 2018 14:35:32 +0000 (07:35 -0700)]
Removed flaky annotation from testFocusedWindowMultipleDisplays

No longer flaky

https://dashboards.corp.google.com/google::_550f6bcf_09dd_4963_b94c_d243e37d002f?f=class_name:in:com.android.server.wm.DisplayContentTests&f=test_name:in:com.android.server.wm.DisplayContentTests.testFocusedWindowMultipleDisplays&f=run_date_usec:eq:(null)&f=presubmit:in:false&f=build_id:eq:(null)

Change-Id: I10504a24144e7636ab7205a079415f6d4eeba043
Fixes: 37908381
Test: self

6 years agoMerge "ConfirmationDialog: Fail if accessibility services are running." into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 14:27:16 +0000 (14:27 +0000)]
Merge "ConfirmationDialog: Fail if accessibility services are running." into pi-dev

6 years agoWhitelist FullBackupDataOutput
Sarah Edris [Mon, 19 Mar 2018 12:48:28 +0000 (12:48 +0000)]
Whitelist FullBackupDataOutput

Bug: 74424953
Test: N/A
Change-Id: I3b0386fa004352ef32cb03ba2c53a53bd0f6e1f1

6 years agoMerge "Fix test failure" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 14:02:13 +0000 (14:02 +0000)]
Merge "Fix test failure" into pi-dev