OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "DO NOT MERGE: Temporarily disable unsupported sdk warning for P during finali...
TreeHugger Robot [Tue, 10 Apr 2018 21:49:17 +0000 (21:49 +0000)]
Merge "DO NOT MERGE:  Temporarily disable unsupported sdk warning for P during finalization" into pi-dev

6 years agoMerge "Don't return from loop" into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 21:34:19 +0000 (21:34 +0000)]
Merge "Don't return from loop" into pi-dev

6 years agoMerge "[DO NOT MERGE] Fix focusable a11y overlay obstructing introspection" into...
TreeHugger Robot [Tue, 10 Apr 2018 21:26:31 +0000 (21:26 +0000)]
Merge "[DO NOT MERGE] Fix focusable a11y overlay obstructing introspection" into pi-dev

6 years agoMerge "Alignment of pulsing notifications" into pi-dev
Lucas Dupin [Tue, 10 Apr 2018 21:05:18 +0000 (21:05 +0000)]
Merge "Alignment of pulsing notifications" into pi-dev

6 years agoMerge "Bouncer animation and message" into pi-dev
Lucas Dupin [Tue, 10 Apr 2018 20:45:13 +0000 (20:45 +0000)]
Merge "Bouncer animation and message" into pi-dev

6 years agoMerge "Fix {Spanned|Spannable}StringNoCopyTest test cases" into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 20:32:20 +0000 (20:32 +0000)]
Merge "Fix {Spanned|Spannable}StringNoCopyTest test cases" into pi-dev

6 years agoDO NOT MERGE: Temporarily disable unsupported sdk warning for P during finalization
Ian Pedowitz [Tue, 10 Apr 2018 20:31:50 +0000 (13:31 -0700)]
DO NOT MERGE:  Temporarily disable unsupported sdk warning for P during finalization

This effectively cherrypicks 2830dd7 from master to pi-dev.  Will be reverted

Bug: 77862563
Test: see app warnings without the patch. no app warnings visible when
patch is applied. for example: flash device, launch apps from appbar:
messages, play, chrome, camera.

Change-Id: I6f4a54a8370c87a7b2e89bb8fb6d4ff5b51d95b4

6 years agoMerge "[DO NOT MERGE] Avoid sending content changed a11y events from wrong views...
Eugene Susla [Tue, 10 Apr 2018 20:18:09 +0000 (20:18 +0000)]
Merge "[DO NOT MERGE] Avoid sending content changed a11y events from wrong views" into pi-dev

6 years agoMerge changes I3a35ed86,I74a9c767 into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 20:17:28 +0000 (20:17 +0000)]
Merge changes I3a35ed86,I74a9c767 into pi-dev

* changes:
  Update incorrect documentation
  Ringer toggle should obey theme color

6 years agoMerge "setPackagesSuspended now overwrites all the state" into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 20:15:24 +0000 (20:15 +0000)]
Merge "setPackagesSuspended now overwrites all the state" into pi-dev

6 years agoMerge "Clear out tuner prefs since it is disabled" into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 19:56:23 +0000 (19:56 +0000)]
Merge "Clear out tuner prefs since it is disabled" into pi-dev

6 years agoMerge "Slice permissions++" into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 19:41:41 +0000 (19:41 +0000)]
Merge "Slice permissions++" into pi-dev

6 years agoMerge "Update JNI interface of GetBounds in PrecomputedText" into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 19:06:51 +0000 (19:06 +0000)]
Merge "Update JNI interface of GetBounds in PrecomputedText" into pi-dev

6 years agoMerge "[Notif] Show block message for notif with multiple channels" into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 19:06:42 +0000 (19:06 +0000)]
Merge "[Notif] Show block message for notif with multiple channels" into pi-dev

6 years agoUpdate incorrect documentation
Julia Reynolds [Tue, 10 Apr 2018 18:59:19 +0000 (14:59 -0400)]
Update incorrect documentation

Test: make
Change-Id: I3a35ed86600b3b12ced4aecc35a0415e8e05a502
Fixes: 77862126

6 years agoAlignment of pulsing notifications
Lucas Dupin [Tue, 10 Apr 2018 18:49:18 +0000 (11:49 -0700)]
Alignment of pulsing notifications

Test: visual
Change-Id: I1f42cfa26c80ed3f84682d807336477d19b64ec4
Fixes: 77278905

6 years agoClear out tuner prefs since it is disabled
Jason Monk [Tue, 10 Apr 2018 18:39:47 +0000 (14:39 -0400)]
Clear out tuner prefs since it is disabled

Test: manual
Change-Id: Iff383557761fee92e37de4c4f3fcc10cff333299
Fixes: 74851117

6 years agoMerge "Hiding clear all when replying now" into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 18:33:29 +0000 (18:33 +0000)]
Merge "Hiding clear all when replying now" into pi-dev

6 years ago[automerger skipped] RESTRICT AUTOMERGE: Prevent reporting fake package name - framew...
akirilov [Tue, 10 Apr 2018 18:30:03 +0000 (11:30 -0700)]
[automerger skipped] RESTRICT AUTOMERGE: Prevent reporting fake package name - framework (backport to oc-dev) am: e5776af814 am: 531975da75  -s ours
am: a06c7b7a5c  -s ours

Change-Id: I98aaeeb13d38d4ab4ac0bddb096f6e9ba3e89181

6 years ago[automerger skipped] RESTRICT AUTOMERGE: Prevent reporting fake package name - framew...
akirilov [Tue, 10 Apr 2018 18:23:14 +0000 (11:23 -0700)]
[automerger skipped] RESTRICT AUTOMERGE: Prevent reporting fake package name - framework (backport to oc-dev) am: e5776af814
am: 531975da75  -s ours

Change-Id: I3df7a9b0722b57c3059ec86ede4e93652404df61

6 years agoRESTRICT AUTOMERGE: Prevent reporting fake package name - framework (backport to...
akirilov [Tue, 10 Apr 2018 18:11:53 +0000 (11:11 -0700)]
RESTRICT AUTOMERGE: Prevent reporting fake package name - framework (backport to oc-dev)
am: e5776af814

Change-Id: If7a7b5f316cbf8640e0760e590b279494e5341ac

6 years agoRESTRICT AUTOMERGE: Prevent reporting fake package name - framework (backport to...
akirilov [Tue, 27 Mar 2018 20:08:47 +0000 (13:08 -0700)]
RESTRICT AUTOMERGE: Prevent reporting fake package name - framework (backport to oc-dev)

Test: added AccessibilityEndToEndTest#testPackageNameCannotBeFaked
      cts-tradefed run cts -m CtsAccessibilityServiceTestCases
      cts-tradefed run cts -m CtsAccessibilityTestCases

Bug: 69981755
Change-Id: I187e3e9839f654cea9e06e5de93e10e4d1de3109
Merged-In: If3752e106aa7fdee4645dc9852289af471ceff18

6 years agoMerge "Cache display height in QSContainerImpl." into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 17:55:41 +0000 (17:55 +0000)]
Merge "Cache display height in QSContainerImpl." into pi-dev

6 years agoMerge "WindowLayout: Layout IN_SCREEN floating windows in screen" into pi-dev
Adrian Roos [Tue, 10 Apr 2018 17:53:32 +0000 (17:53 +0000)]
Merge "WindowLayout: Layout IN_SCREEN floating windows in screen" into pi-dev

6 years agoMerge "AnimationControllers: Only unlinkToDeath if previously linked" into pi-dev
Adrian Roos [Tue, 10 Apr 2018 17:52:00 +0000 (17:52 +0000)]
Merge "AnimationControllers: Only unlinkToDeath if previously linked" into pi-dev

6 years agoMerge "Update battery saver string" into pi-dev
Lei Yu [Tue, 10 Apr 2018 17:38:30 +0000 (17:38 +0000)]
Merge "Update battery saver string" into pi-dev

6 years agoHiding clear all when replying now
Selim Cinek [Tue, 10 Apr 2018 01:27:13 +0000 (18:27 -0700)]
Hiding clear all when replying now

Change-Id: Id08084776967f85101b07d3a56b5dffe80af6dbc
Fixes: 75984847
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarTest.java

6 years ago[Notif] Show block message for notif with multiple channels
Rohan Shah [Fri, 30 Mar 2018 22:18:27 +0000 (15:18 -0700)]
[Notif] Show block message for notif with multiple channels

Showing blocking message on notifications with multiple channels. Also,
the blocking helper was never committing the saveImportance logic...
Updated so it does that again.

Moved binder calls over to bg (for committing block/minimize rules).

Change-Id: I5042cf51a4700958c3cedbf5619fd1cbcb944a03
Fixes: 77320402
Test: Visually, atest {ENR|NotifInfo}Test

6 years agoMerge "Update mobile data QS tile subtext." into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 17:15:29 +0000 (17:15 +0000)]
Merge "Update mobile data QS tile subtext." into pi-dev

6 years agoMerge "Do not generate watchlist test report in production config" into pi-dev
Ricky Wai [Tue, 10 Apr 2018 17:14:49 +0000 (17:14 +0000)]
Merge "Do not generate watchlist test report in production config" into pi-dev

6 years agoBouncer animation and message
Lucas Dupin [Tue, 10 Apr 2018 03:49:41 +0000 (20:49 -0700)]
Bouncer animation and message

- Do not run security container animation if the device was unlocked
- Do not erase message field after swiping up

Test: go/sysui-bouncer-tests
Change-Id: I7e0ccca0877e0cd29f7b2b65e8bff11f279c4b39
Fixes: 77810996
Bug: 76453411

6 years agoMerge "Exempt tests for hidden APIs." into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 16:34:05 +0000 (16:34 +0000)]
Merge "Exempt tests for hidden APIs." into pi-dev

6 years agoMerge "Remove clock binder call" into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 16:27:42 +0000 (16:27 +0000)]
Merge "Remove clock binder call" into pi-dev

6 years agoMerge "Hide QS panel upon DISABLE2_QUICK_SETTINGS." into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 16:21:34 +0000 (16:21 +0000)]
Merge "Hide QS panel upon DISABLE2_QUICK_SETTINGS." into pi-dev

6 years agoMerge "Revert "DisplayCutout: Add back always resource"" into pi-dev
Adrian Roos [Tue, 10 Apr 2018 16:21:29 +0000 (16:21 +0000)]
Merge "Revert "DisplayCutout: Add back always resource"" into pi-dev

6 years agoMerge "Fix javadoc xrefs." into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 15:56:28 +0000 (15:56 +0000)]
Merge "Fix javadoc xrefs." into pi-dev

6 years agoUpdate mobile data QS tile subtext.
Amin Shaikh [Tue, 10 Apr 2018 15:44:36 +0000 (11:44 -0400)]
Update mobile data QS tile subtext.

Display 1X, H, and H+ as mobile data subtext when their respective
mobile signal icons are displayed in the status bar.

Change-Id: I6b34700f6935d0f676d251459e405b629f68213f
Fixes: 77597792
Test: visual

6 years agoMerge "Add a condition in AppWidgetHost to honor config_enableAppWidgetService."...
TreeHugger Robot [Tue, 10 Apr 2018 15:32:44 +0000 (15:32 +0000)]
Merge "Add a condition in AppWidgetHost to honor config_enableAppWidgetService." into pi-dev

6 years agoMerge "Offer to format data sizes in either IEC or SI." into pi-dev
Jeff Sharkey [Tue, 10 Apr 2018 15:02:23 +0000 (15:02 +0000)]
Merge "Offer to format data sizes in either IEC or SI." into pi-dev

6 years agoHide QS panel upon DISABLE2_QUICK_SETTINGS.
Amin Shaikh [Fri, 6 Apr 2018 21:32:45 +0000 (17:32 -0400)]
Hide QS panel upon DISABLE2_QUICK_SETTINGS.

Hide the entire QS panel (footer, QQS, QQS status icons) when
StatusBarManager.DISABLE2_QUICK_SETTINGS is flagged on.

Change-Id: Ie51707239bf7db566458864d61fd6d419c5d6901
Fixes: 72739219
Test: visual

6 years agoSlice permissions++
Jason Monk [Fri, 6 Apr 2018 00:56:42 +0000 (20:56 -0400)]
Slice permissions++

New permissions system for slices. Its up a little disk space at the
optimization of CPU/Mem usage, and most importantly doesn't have a
limit on the number that can exist.

Test: runtest --path frameworks/base/services/tests/uiservicestests
Test: runtest --path cts/tests/tests/slices
Test: manual grant through SliceBrowser
Bug: 77323760
Change-Id: Ie601bca042a7b28113a511383ca7e3a35c7c8c71

6 years agoCache display height in QSContainerImpl.
Amin Shaikh [Tue, 10 Apr 2018 14:50:22 +0000 (10:50 -0400)]
Cache display height in QSContainerImpl.

Change-Id: If1d7ba59476afadd022ece328bc4303c603bba26
Fixes: 77831576
Test: manual

6 years agoMerge "Add link to onboarding screen" into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 14:35:44 +0000 (14:35 +0000)]
Merge "Add link to onboarding screen" into pi-dev

6 years agoMerge "Fixes task behavior on AIA launch" into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 14:22:29 +0000 (14:22 +0000)]
Merge "Fixes task behavior on AIA launch" into pi-dev

6 years agoMerge "Metrics constants for zen onboarding." into pi-dev
Julia Reynolds [Tue, 10 Apr 2018 14:13:56 +0000 (14:13 +0000)]
Merge "Metrics constants for zen onboarding." into pi-dev

6 years agoMerge "Fix the wrong tint state of Nav buttons" into pi-dev
Sanry Huang [Tue, 10 Apr 2018 13:39:04 +0000 (13:39 +0000)]
Merge "Fix the wrong tint state of Nav buttons" into pi-dev

6 years agoRinger toggle should obey theme color
Julia Reynolds [Tue, 10 Apr 2018 13:20:41 +0000 (09:20 -0400)]
Ringer toggle should obey theme color

Test: manual
Bug: 77805969
Change-Id: I74a9c767e87a8db721a37ad7b031d93b5bfec4ca

6 years agoMerge "Fix issues with duplicate starting window add requests" into pi-dev
Jorim Jaggi [Tue, 10 Apr 2018 13:13:34 +0000 (13:13 +0000)]
Merge "Fix issues with duplicate starting window add requests" into pi-dev

6 years agoMerge "Fix unintended deletion of reused weaver slots during user removal" into pi-dev
Rubin Xu [Tue, 10 Apr 2018 13:13:26 +0000 (13:13 +0000)]
Merge "Fix unintended deletion of reused weaver slots during user removal" into pi-dev

6 years agoMerge "Different hidden API enforcement policy for P & pre-P." into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 13:07:41 +0000 (13:07 +0000)]
Merge "Different hidden API enforcement policy for P & pre-P." into pi-dev

6 years agoMerge "Fix IME target after rotation" into pi-dev
Jorim Jaggi [Tue, 10 Apr 2018 13:04:43 +0000 (13:04 +0000)]
Merge "Fix IME target after rotation" into pi-dev

6 years agoAdd link to onboarding screen
Julia Reynolds [Mon, 9 Apr 2018 15:31:15 +0000 (11:31 -0400)]
Add link to onboarding screen

Test: runtest systemui-notification
Bug: 77658931
Change-Id: I70210b5d5e0de27ff38a6b2f5d8201266b6ec4d6

6 years agoMetrics constants for zen onboarding.
Julia Reynolds [Mon, 9 Apr 2018 17:57:21 +0000 (13:57 -0400)]
Metrics constants for zen onboarding.

Bug: 77658931
Test: make
Change-Id: Id11f68bd6cc132d7c53004d2ea31d869f64379b8

6 years agoMerge "Fixed auto-brightness when ALS malfunctions." into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 12:03:23 +0000 (12:03 +0000)]
Merge "Fixed auto-brightness when ALS malfunctions." into pi-dev

6 years agoMerge "Added system-wide minimum brightness curve." into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 11:28:44 +0000 (11:28 +0000)]
Merge "Added system-wide minimum brightness curve." into pi-dev

6 years agoFix unintended deletion of reused weaver slots during user removal
Rubin Xu [Tue, 10 Apr 2018 08:44:18 +0000 (09:44 +0100)]
Fix unintended deletion of reused weaver slots during user removal

During user deletion, getNextAvailableWeaverSlot() might return a slot
that's currently taken by the to-be-removed user, because the user is
marked as partial so it's not returned from UserManager in the list of
users and SyntheticPasswordManager will not attempt to track which slot
that user has used. This slot might then be reused by a newly-created
user. Meanwhile SyntheticPasswordManager will also try to explicitly
delete slots for the deleted user during ACTION_USER_REMOVED, and if this
happens after the slot is reused by the new user, the weaver slot will
be corrupted, leading to failure to unlock the new user later.

Quick fix by double checking if slot is reused during user deletion.

Test: Add device lock; create work profile; reboot device; delete the
      current profile and quickly re-create one. Verify the new profile
      can still be unlocked after another reboot
Bug: 76134651
Change-Id: I89769b7cbcf64f2562717c98e3f15ab0fbb38bf0

6 years agoFixed auto-brightness when ALS malfunctions.
Dan Gittik [Thu, 5 Apr 2018 11:30:38 +0000 (12:30 +0100)]
Fixed auto-brightness when ALS malfunctions.

When the ALS is broken or misbehaving, auto-brightness might get
stuck in a state where it completely ignores user data points;
this fixes the issue, and reverts to manual brightness whenever
auto-brightness can't be used reliably.

Test: manual.

Change-Id: I5eb80b99dbf7cc25229dc217732515b2a4ac1b79
Fixes: 77280930

6 years agoMerge "Greylist APIs which apps can resolve to at runtime" into pi-dev
David Brazdil [Tue, 10 Apr 2018 10:26:04 +0000 (10:26 +0000)]
Merge "Greylist APIs which apps can resolve to at runtime" into pi-dev

6 years agoGreylist APIs which apps can resolve to at runtime
David Brazdil [Mon, 9 Apr 2018 16:32:19 +0000 (17:32 +0100)]
Greylist APIs which apps can resolve to at runtime

This applies to SpannableString methods:
 - charAt(I)C
 - getChars(II[CI)V
 - getSpanEnd(Ljava/lang/Object;)I
 - getSpanFlags(Ljava/lang/Object;)I
 - getSpanStart(Ljava/lang/Object;)I
 - getSpans(IILjava/lang/Class;)[Ljava/lang/Object;
 - length()I
 - nextSpanTransition(IILjava/lang/Class;)I
(these are all already in the greylist)

and one method from android.app.backup.FileBackupHelperBase:
 - writeNewStateDescription(Landroid/os/ParcelFileDescriptor;)V
(added in this CL).

We won't fix this properly in P, so greylist the uses for now.

Bug: 64382372
Bug: 76424618
Test: make
Change-Id: I4c4ef13338b1fa2f7f21c07c63d88d3559d10341

6 years agoMerge changes I35eddd24,Ia2c7093a into pi-dev
David Brazdil [Tue, 10 Apr 2018 10:22:20 +0000 (10:22 +0000)]
Merge changes I35eddd24,Ia2c7093a into pi-dev

* changes:
  Add more hidden API to light greylist
  Add more hidden API to light greylist

6 years agoMerge "Clamp multipath quota to 0 if roaming." into pi-dev
Remi NGUYEN VAN [Tue, 10 Apr 2018 10:12:56 +0000 (10:12 +0000)]
Merge "Clamp multipath quota to 0 if roaming." into pi-dev

6 years agoDifferent hidden API enforcement policy for P & pre-P.
Mathew Inwood [Tue, 3 Apr 2018 13:47:26 +0000 (14:47 +0100)]
Different hidden API enforcement policy for P & pre-P.

Also make these configurable so we have the flexibility to change it if
necessary.

Setting the policy inside ActivityManagerService is not ideal, as that
means that AMS is the only place where the policy in ApplicationInfo is
correct. It should really be set inside PackageManagerService. However,
if it's set there, it would get out of date when the settings change, and
we'd have to update inside AMS anyway. So putting it only here seems ok
for now.

Test: $ adb shell settings put global hidden_api_policy_pre_p_apps 2
Test: $ adb shell settings put global hidden_api_policy_p_apps 2
Bug: 64382372
Change-Id: Ic4cbbb1e6464623e90c17ae08c0b6cbbe0dfa125

6 years agoMerge "Trigger NetworkCallback events when private DNS usage has changed." into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 07:38:21 +0000 (07:38 +0000)]
Merge "Trigger NetworkCallback events when private DNS usage has changed." into pi-dev

6 years agoRemove clock binder call
Lucas Dupin [Tue, 10 Apr 2018 05:44:17 +0000 (22:44 -0700)]
Remove clock binder call

Change-Id: I773663174d0aa7a02989f3389ff0ed67135a16ac
Fixes: 77832075
Test: wait for clock to update, switch user, repeat

6 years agoMerge "Fix issue #77721907: Add global setting to hide all error dialogs" into pi-dev
Dianne Hackborn [Tue, 10 Apr 2018 06:24:50 +0000 (06:24 +0000)]
Merge "Fix issue #77721907: Add global setting to hide all error dialogs" into pi-dev

6 years agoClamp multipath quota to 0 if roaming.
Remi NGUYEN VAN [Wed, 4 Apr 2018 02:12:51 +0000 (11:12 +0900)]
Clamp multipath quota to 0 if roaming.

Also adding tests for getSubscriptionOppportunisticQuota.

Bug: b/72631572
Change-Id: Iafc1ae1e0c0d58c027b5a42fa04b841a2739cff9
Fixes: b/72631572
Test: atest com.android.server.NetworkPolicyManagerServiceTest

6 years agoMerge "Fix error color for SystemUI" into pi-dev
Jyun LuoLai [Tue, 10 Apr 2018 06:11:37 +0000 (06:11 +0000)]
Merge "Fix error color for SystemUI" into pi-dev

6 years agoTrigger NetworkCallback events when private DNS usage has changed.
dalyk [Mon, 5 Mar 2018 17:42:22 +0000 (12:42 -0500)]
Trigger NetworkCallback events when private DNS usage has changed.

Relies on events sent from netd in aosp/578162.

Test: Added tests to ConnectivityServiceTest. Added a new test
class DnsManagerTest. Built a simple app that appears to
receive onLinkProperties events correctly upon manual changes
to the private DNS settings on a Pixel.
Bug: 71828272

Merged-In: I1e6c54ba016f6a165a302bd135a29d9332aaa235
Merged-In: I7705412803fb9aa707a18ae5a1c50292e084d851
Change-Id: I3223c1285a73d5d531c5051ce70007857caa57e3
(cherry picked from commit 7301aa4140baefb549a737f033fc512e87c55692)

6 years agoMerge "Workaround fetching user's package resources" into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 04:36:29 +0000 (04:36 +0000)]
Merge "Workaround fetching user's package resources" into pi-dev

6 years agoMerge "Fix regression in removing recent tasks by package name." into pi-dev
Winson Chung [Tue, 10 Apr 2018 03:23:39 +0000 (03:23 +0000)]
Merge "Fix regression in removing recent tasks by package name." into pi-dev

6 years agoMerge "Remove prohibition on switching to user 0 in demo" into pi-dev
Christine Franks [Tue, 10 Apr 2018 03:03:43 +0000 (03:03 +0000)]
Merge "Remove prohibition on switching to user 0 in demo" into pi-dev

6 years agoFix the wrong tint state of Nav buttons
shawnlin [Mon, 9 Apr 2018 11:49:48 +0000 (19:49 +0800)]
Fix the wrong tint state of Nav buttons

Update the aphla value of scrimBehind in setPanelExpansion to display
the correct tint state of Nav buttons.

Test: runtest systemui
Change-Id: Ia17bbe71106900b764ec2f5ac4729b9770eac4bc
Fixes: 74578143

6 years agoOffer to format data sizes in either IEC or SI.
Jeff Sharkey [Mon, 9 Apr 2018 17:04:07 +0000 (11:04 -0600)]
Offer to format data sizes in either IEC or SI.

Add flags to let callers specify if they want IEC (power-of-two) or
SI (power-of-ten) units when formatting bytes.

Continue using SI units by default, since certain folks seem to have
strong opinions about that.

Bug: 76159924
Test: atest android.text.format.FormatterTest
Exempt-From-Owner-Approval: previous PS approved
Change-Id: I0074bb2578c2230e938b3f39c2564b1083feb825

6 years agoMerge "Add Cancel button in Car Keyguard" into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 01:41:22 +0000 (01:41 +0000)]
Merge "Add Cancel button in Car Keyguard" into pi-dev

6 years agoMerge "Check permissions only against packagesettings" into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 01:38:48 +0000 (01:38 +0000)]
Merge "Check permissions only against packagesettings" into pi-dev

6 years agoWorkaround fetching user's package resources
Winson Chung [Tue, 10 Apr 2018 01:35:52 +0000 (18:35 -0700)]
Workaround fetching user's package resources

Bug: 77747389
Test: Manual, create work profile user, create an apk with an icon resource
      in its task description, and ensure that launcher can load the icon.

Change-Id: I33c7eaca9481fe44440b4b584b64531835e2fe9e

6 years agoMerge "Remove FIELD_MOBILE_NETWORK in proto." into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 01:27:34 +0000 (01:27 +0000)]
Merge "Remove FIELD_MOBILE_NETWORK in proto." into pi-dev

6 years agoMerge "[Notif] Disable "Customize" for blocking helper" into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 01:25:40 +0000 (01:25 +0000)]
Merge "[Notif] Disable "Customize" for blocking helper" into pi-dev

6 years agosetPackagesSuspended now overwrites all the state
Suprabh Shukla [Tue, 10 Apr 2018 00:33:53 +0000 (17:33 -0700)]
setPackagesSuspended now overwrites all the state

Earlier setPackagesSuspended ignored the rest of the paramters when
suspend state did not change. This was a problem because then there was
no good way to update the other parameters without unsuspending the app,
which is not desirable.
Removed setSuspendedPackageAppExtras as now they can be update with this
api.
Also sending broadcasts when packages get unsuspended due to suspending
package removed.

Test: Existing tests pass:
atest com.android.server.pm.PackageUserStateTest
atest com.android.server.pm.SuspendPackagesTest
atest com.android.server.pm.PackageManagerSettingsTests

Bug: 77522553
Change-Id: I72a3c228d3d65c430e242da97b2bc6997ec6a135

6 years agoAdd Cancel button in Car Keyguard
Jian Jin [Fri, 6 Apr 2018 19:40:50 +0000 (12:40 -0700)]
Add Cancel button in Car Keyguard

Change-Id: I0c44f3583fe1dadade1e1b01229571ab7eb29643
Fixes: 74964857
Test:  Manually tested on Mojave

6 years ago[automerger skipped] Merge "RESTRICT AUTOMERGE: Prevent reporting fake package name...
akirilov [Tue, 10 Apr 2018 00:25:18 +0000 (17:25 -0700)]
[automerger skipped] Merge "RESTRICT AUTOMERGE: Prevent reporting fake package name - framework (backport to oc-mr1-dev)" into oc-mr1-dev
am: edc22bf307  -s ours

Change-Id: I18a76bcf21c07d53fd1c0d50bf547aa4aa764f05

6 years agoMerge "Whitelist DISPLAY_COLOR_MODE setting for B&R" into pi-dev
Christine Franks [Tue, 10 Apr 2018 00:16:02 +0000 (00:16 +0000)]
Merge "Whitelist DISPLAY_COLOR_MODE setting for B&R" into pi-dev

6 years agoMerge "Update storage wizard to latest UX mocks." into pi-dev
Jeff Sharkey [Mon, 9 Apr 2018 23:58:34 +0000 (23:58 +0000)]
Merge "Update storage wizard to latest UX mocks." into pi-dev

6 years agoMerge "Disable roaming sanity checking." into pi-dev
Jeff Sharkey [Mon, 9 Apr 2018 23:57:28 +0000 (23:57 +0000)]
Merge "Disable roaming sanity checking." into pi-dev

6 years agoMerge "Make isSameTrustConfiguration public API" into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 23:53:18 +0000 (23:53 +0000)]
Merge "Make isSameTrustConfiguration public API" into pi-dev

6 years agoMerge "RESTRICT AUTOMERGE: Prevent reporting fake package name - framework (backport...
TreeHugger Robot [Mon, 9 Apr 2018 23:43:01 +0000 (23:43 +0000)]
Merge "RESTRICT AUTOMERGE: Prevent reporting fake package name - framework (backport to oc-mr1-dev)" into oc-mr1-dev

6 years agoMerge "ResStringPool: Fix security vulnerability" into pi-dev
Ryan Mitchell [Mon, 9 Apr 2018 23:38:37 +0000 (23:38 +0000)]
Merge "ResStringPool: Fix security vulnerability" into pi-dev

6 years agoMerge "soundpool: fix muted channel" into pi-dev
Eric Laurent [Mon, 9 Apr 2018 23:26:35 +0000 (23:26 +0000)]
Merge "soundpool: fix muted channel" into pi-dev

6 years agoMerge "AudioAttributes: handle unknown usage like media" into pi-dev
Jean-Michel Trivi [Mon, 9 Apr 2018 23:21:51 +0000 (23:21 +0000)]
Merge "AudioAttributes: handle unknown usage like media" into pi-dev

6 years agoMerge "API council requested tweaks to SubscriptionPlan." into pi-dev
Jeff Sharkey [Mon, 9 Apr 2018 23:20:43 +0000 (23:20 +0000)]
Merge "API council requested tweaks to SubscriptionPlan." into pi-dev

6 years agoMerge "Disable onboarding on P devices" into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 23:11:01 +0000 (23:11 +0000)]
Merge "Disable onboarding on P devices" into pi-dev

6 years agoAnimationControllers: Only unlinkToDeath if previously linked
Adrian Roos [Mon, 9 Apr 2018 21:12:46 +0000 (14:12 -0700)]
AnimationControllers: Only unlinkToDeath if previously linked

Fixes crashes when we unlink to the runners if the animation was
cancelled prior to linking to the death of the runners.

Change-Id: Ic52c8bea0985bce8a2abfd61d8b54ab6fff9e288
Fixes: 77756198
Test: make

6 years agoWindowLayout: Layout IN_SCREEN floating windows in screen
Adrian Roos [Thu, 29 Mar 2018 17:41:30 +0000 (19:41 +0200)]
WindowLayout: Layout IN_SCREEN floating windows in screen

Uses screen coordinates when placing floating LAYOUT_IN_SCREEN
windows, even when there is a cutout. Making sure that the window
does not overlap the cutout area is instead made sure by the
clip/shift-to-displayFrame logic in WindowState.

Change-Id: Ic485b8f191db737bb7a10b1694a489111afd5f2c
Fixes: 76199703
Test: Run CalcyIV, make sure that the expanded window is properly attached to the non-expanded window.

6 years ago[automerger skipped] [automerger] RESTRICT AUTOMERGE: Prevent reporting fake package...
akirilov [Mon, 9 Apr 2018 23:00:53 +0000 (16:00 -0700)]
[automerger skipped] [automerger] RESTRICT AUTOMERGE: Prevent reporting fake package name - framework (backport to nyc-dev) am: 33c37cb37c am: 93d9547b61 am: 5ddeef7116 am: 1890afd456 skipped: bae1ea6478 am: 840e366d50 am: 1e4dfe7d71
am: c2e58d97da  -s ours

Change-Id: If0f1048d19a806f8f0275ae627ded64de6d2bad3

6 years agoMerge "Add null check to confirm there is a quick settings panel" into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 22:56:35 +0000 (22:56 +0000)]
Merge "Add null check to confirm there is a quick settings panel" into pi-dev

6 years agoMerge "Clarify PackageManager.hasSigningCertificate docs." into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 22:56:23 +0000 (22:56 +0000)]
Merge "Clarify PackageManager.hasSigningCertificate docs." into pi-dev

6 years ago[automerger] RESTRICT AUTOMERGE: Prevent reporting fake package name - framework...
akirilov [Mon, 9 Apr 2018 22:54:48 +0000 (15:54 -0700)]
[automerger] RESTRICT AUTOMERGE: Prevent reporting fake package name - framework (backport to nyc-dev) am: 33c37cb37c am: 93d9547b61 am: 5ddeef7116 am: 1890afd456 skipped: bae1ea6478 am: 840e366d50
am: 1e4dfe7d71

Change-Id: I9947716a6cd7ba5e6b8de63e3036b4d21d139691

6 years ago[automerger skipped] [automerger] RESTRICT AUTOMERGE: Prevent reporting fake package...
akirilov [Mon, 9 Apr 2018 22:42:40 +0000 (15:42 -0700)]
[automerger skipped] [automerger] RESTRICT AUTOMERGE: Prevent reporting fake package name - framework (backport to mnc-dev) am: de71ee469a am: d672eef559 am: 86f5488521 skipped: 0df0b30be9 am: 815008072e am: aa20944ca4 am: 569ad1b287 am: 20a5009e23 skipped: 4fbc80f05b am: dc5ccd8d30 am: 70cff3248e
am: 9f040f4540  -s ours

Change-Id: I2a90f97f608bfb8637eeaa90d3b73cce4967f892

6 years ago[automerger] RESTRICT AUTOMERGE: Prevent reporting fake package name - framework...
akirilov [Mon, 9 Apr 2018 22:40:46 +0000 (15:40 -0700)]
[automerger] RESTRICT AUTOMERGE: Prevent reporting fake package name - framework (backport to nyc-dev) am: 33c37cb37c am: 93d9547b61 am: 5ddeef7116 am: 1890afd456 skipped: bae1ea6478
am: 840e366d50

Change-Id: I920dc967f00b4197dcb5702111efc9fda0e930de

6 years agoMerge "Add GTS test APIs for testing ImsService" into pi-dev
Brad Ebinger [Mon, 9 Apr 2018 22:40:13 +0000 (22:40 +0000)]
Merge "Add GTS test APIs for testing ImsService" into pi-dev