OSDN Git Service
TreeHugger Robot [Wed, 25 Sep 2019 17:57:10 +0000 (17:57 +0000)]
Merge "DO NOT MERGE Allow for HTML styling in mobile data type content descriptions" into qt-qpr1-dev
Evan Laird [Tue, 24 Sep 2019 23:14:05 +0000 (19:14 -0400)]
DO NOT MERGE Allow for HTML styling in mobile data type content descriptions
This CL implements a (somewhat hacky) way to enable HTML attributes in
the mobile data type content description strings. This way we can use
some basic styling in the Quick Settings cellular data tile which uses
it in a TextView.
We do this by assuming that the content description is valid, escaped
HTML, and send two separate CharSequences to all of the listeners, all
of which can then decide if they need the regular content description or
the prettified version.
Test: atest SystemUITests; system ui demo mode
Bug:
141177147
Change-Id: Idf387111b0cdc34ad3762eac0ec6c2b484b393e3
Kevin Hufnagle [Tue, 24 Sep 2019 22:14:14 +0000 (15:14 -0700)]
Merge "docs: Modernized AccessibilityNodeProvider example" into qt-dev am:
e49cbb3a5d
am:
786e8a2849
Change-Id: I71ff61397d44812647124042e73a655a6710ff01
Kevin Hufnagle [Tue, 24 Sep 2019 22:06:18 +0000 (15:06 -0700)]
Merge "docs: Modernized AccessibilityNodeProvider example" into qt-dev
am:
e49cbb3a5d
Change-Id: I24a281dd7194ea5c731ecc02371734fe1fa315f8
Kevin Hufnagle [Tue, 24 Sep 2019 21:18:39 +0000 (21:18 +0000)]
Merge "docs: Modernized AccessibilityNodeProvider example" into qt-dev
Kevin Hufnagle [Mon, 23 Sep 2019 23:19:39 +0000 (16:19 -0700)]
Merge "docs: List BIOMETRIC_WEAK in setPasswordQuality()" into qt-dev am:
2a082b1e9e
am:
096ece8f53
Change-Id: I03b4f71aaa643e08a661fe383f2cff91c7a136f9
Kevin Hufnagle [Mon, 23 Sep 2019 23:08:03 +0000 (16:08 -0700)]
Merge "docs: List BIOMETRIC_WEAK in setPasswordQuality()" into qt-dev
am:
2a082b1e9e
Change-Id: I74d42b68ebed97c2db3a179e92ba3196ffc7a04f
Kevin Hufnagle [Mon, 23 Sep 2019 22:45:45 +0000 (22:45 +0000)]
Merge "docs: List BIOMETRIC_WEAK in setPasswordQuality()" into qt-dev
TreeHugger Robot [Sun, 22 Sep 2019 02:06:50 +0000 (02:06 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev
Bill Yi [Sat, 21 Sep 2019 13:37:27 +0000 (06:37 -0700)]
Import translations. DO NOT MERGE
Change-Id: Ia8bfd64c60f7bfec74773ad3ec13a60040e9eb65
Auto-generated-cl: translation import
Edgar Wang [Sat, 21 Sep 2019 08:54:47 +0000 (08:54 +0000)]
Merge "Add log metrics for Aware Display Settings" into qt-qpr1-dev
TreeHugger Robot [Sat, 21 Sep 2019 01:14:13 +0000 (01:14 +0000)]
Merge "Revert "Fixed default angle to be Orientation.LEFT_RIGHT"" into qt-qpr1-dev
Lorenzo Colitti [Sat, 21 Sep 2019 01:00:55 +0000 (01:00 +0000)]
Merge "notify netd about uid internet permission changes when package replaced" into qt-qpr1-dev
TreeHugger Robot [Sat, 21 Sep 2019 00:59:16 +0000 (00:59 +0000)]
Merge "Apply front scrim to doze pulsing" into qt-qpr1-dev
Nader Jawad [Thu, 19 Sep 2019 22:04:13 +0000 (22:04 +0000)]
Revert "Fixed default angle to be Orientation.LEFT_RIGHT"
This reverts commit
d31d0967209775ae352092d3125adfd59c8040d0.
Reason for revert: Although this change fixed the behavior change for for creation of
GradientDrawables defined in xml, the default value for GradientDrawables defined
programmatically is different. The default orientation for GradientDrawables defined
in xml is LEFT_RIGHT, however, the default orientation for GradientDrawables defined
programmatically is TOP_BOTTOM. Since a fix for AAPT has been made to automatically
insert an angle measurement of 0 if one is not defined, we can revert this CL and target
a proper fix in master.
Change-Id: Ib8983386832fb25f53b5e68e76e9d41d9d26fec9
Merged-In: Ib8983386832fb25f53b5e68e76e9d41d9d26fec9
Philip P. Moltmann [Fri, 20 Sep 2019 23:09:43 +0000 (23:09 +0000)]
Merge "[DO NOT MERGE] Split access-media-storage from read-external-storage" into qt-qpr1-dev
Kevin Hufnagle [Fri, 20 Sep 2019 22:47:23 +0000 (15:47 -0700)]
Merge "docs: Fixed link to material design for ScrollView" into qt-dev am:
80b543b45a
am:
71f8040c3b
Change-Id: I317e75554f4741551e8221bfacb447ad0e914f4e
Kevin Hufnagle [Fri, 20 Sep 2019 22:39:50 +0000 (15:39 -0700)]
Merge "docs: Fixed link to material design for ScrollView" into qt-dev
am:
80b543b45a
Change-Id: Ic7cc4494a88e6feaedf85626270ed1e8057189f5
Kevin Hufnagle [Fri, 20 Sep 2019 22:14:46 +0000 (22:14 +0000)]
Merge "docs: Fixed link to material design for ScrollView" into qt-dev
Philip P. Moltmann [Fri, 20 Sep 2019 20:33:48 +0000 (20:33 +0000)]
Merge "Fix dumpsys for appops proxy field" into qt-qpr1-dev
TreeHugger Robot [Fri, 20 Sep 2019 20:22:59 +0000 (20:22 +0000)]
Merge "Remove 'x' policy for non-default DSDS SIM" into qt-qpr1-dev
TreeHugger Robot [Fri, 20 Sep 2019 19:38:21 +0000 (19:38 +0000)]
Merge "Fixed an issue where the notification icons could overlap the clock" into qt-qpr1-dev
TreeHugger Robot [Fri, 20 Sep 2019 18:58:38 +0000 (18:58 +0000)]
Merge "Fix strings for ConfirmUserCreationActivity." into qt-qpr1-dev
TreeHugger Robot [Fri, 20 Sep 2019 17:49:55 +0000 (17:49 +0000)]
Merge "Hold Display Suspend blocker when going to Doze" into qt-qpr1-dev
TreeHugger Robot [Fri, 20 Sep 2019 17:27:27 +0000 (17:27 +0000)]
Merge "Ensure that handles are hidden and stay hidden when not fully awake" into qt-qpr1-dev
Jason Parks [Wed, 21 Aug 2019 15:18:37 +0000 (10:18 -0500)]
Fix strings for ConfirmUserCreationActivity.
Bug: b/
139790551
Test: Manual
Change-Id: I11eedfca8e5d88c821640b9001099f3392d0a35c
Philip P. Moltmann [Fri, 13 Sep 2019 22:12:34 +0000 (15:12 -0700)]
[DO NOT MERGE] Split access-media-storage from read-external-storage
And also pre-grant it to all apps that currently get any storage
permission pre-granted
Test: atest SplitPermissionTest
m -j gts && gts-tradefed run commandAndExit gts-dev -m GtsPermissionTestCases --test=com.google.android.permission.gts.DefaultPermissionGrantPolicyTest#testDefaultGrantsWithRemoteExceptions
Manual testing:
All combinations of
- App targetSdk = 28 and 29 (and 22 for extra credit)
- App having the <uses-permission> tag for
ACCESS_MEDIA_LOCATION or not
- Upgrade from P->Q-QPR and from vanilla Q->Q-QPR
Further upgrade of targetSdk from 28->29 while on Q-QPR
==> All permission behavior should make sense. Sometimes there
are weird, but expected behaviors. Hence we need to
collect the results and then look at the unexpected ones.
See SplitPermissionTest for some tests I added for the
location-background permission which was split from
the fine/coarse-location permissions
Fixes:
141048840,
140961754
Change-Id: Ib9f50d25c002036f13cf2d42fc4d1b214f20920c
Dave Mankoff [Fri, 20 Sep 2019 16:43:14 +0000 (16:43 +0000)]
Merge "DO NOT MERGE Revert line from master-cp that should be different in qpr1" into qt-qpr1-dev
Dave Mankoff [Fri, 20 Sep 2019 16:05:07 +0000 (12:05 -0400)]
DO NOT MERGE Revert line from master-cp that should be different in qpr1
In master, we retrieve the KeyguardUpdateMonitor through Dependency.get().
This change has not landed in qpr1 and should use a different method of
access.
Bug:
140270231
Test: atest SystemUITests
Change-Id: Icbba30e52d4d011fc01cba13262b18a3a235316c
Matt Casey [Fri, 20 Sep 2019 16:13:42 +0000 (16:13 +0000)]
Merge "Revert "Add shadow to assistant handles"" into qt-qpr1-dev
Santos Cordon [Thu, 19 Sep 2019 15:59:01 +0000 (16:59 +0100)]
Hold Display Suspend blocker when going to Doze
The transition to Doze is asynchronous from the release of the display
suspend blocker. This created a race condition where we could
potentially suspend before Doze service had a chance to transition to
Doze. This change holds the Display Suspend blocker until Doze service
acquires the DOZE lock.
Bug:
138828701
Test: atest PowerManagerService
Test: Manual, verify no repro of the bug. Additional verify the device
does release the Display suspend blocker once we are in DOZE.
Change-Id: I777bc7963b1ab445378164b0f4d3f79113510b81
Evan Laird [Thu, 19 Sep 2019 20:52:58 +0000 (16:52 -0400)]
Remove 'x' policy for non-default DSDS SIM
This CL changes the policy for showing the 'x' on the mobile signal
indicator such that we do not show an 'x' when a subscription has an
icon group of NOT_DEFAULT_DATA, except in the case where mobile data is
turned off on the default subscription
Test: atest SystemUITests; manual
Fixes:
135457552
Change-Id: Ie21462be12a9920d9b2830039f4095c5bd82bd2c
Miranda Kephart [Thu, 19 Sep 2019 16:33:05 +0000 (16:33 +0000)]
Revert "Add shadow to assistant handles"
This reverts commit
c445bbf3eb07ab0282ef94cf666545a9f683b18d.
Reason for revert: Causes memory issues on the GPU (~50mb -> ~70mb)
Test: Memory usage goes back down to 53mb with this revert.
https://sponge.corp.google.com/invocation?tab=Logfile+Index&id=
7643bf50-41bb-45a7-8c93-
d0ddb1f82a04&searchFor=
(last file, search for com.android.systemui#anon-and-swap-avg-median)
Bug:
141187457
Change-Id: Ia48eca3f95097562771abc3a523bd32b74f2d443
TreeHugger Robot [Fri, 20 Sep 2019 11:40:03 +0000 (11:40 +0000)]
Merge "Log display white balance intermediate data" into qt-qpr1-dev
Gavin Corkery [Fri, 20 Sep 2019 10:27:10 +0000 (10:27 +0000)]
Merge "Don't send SESSION_COMMITTED broadcast for staged installs" into qt-qpr1-dev
Edgar Wang [Thu, 19 Sep 2019 11:20:14 +0000 (19:20 +0800)]
Add log metrics for Aware Display Settings
Bug:
136610131
Test: rebuild
Merged-In: I5b96a3a04a1d2c1ba01b9ec1f707dec040a331c3
Change-Id: Ibfdcba4be652cf7885f46e7549c344e12ae11127
wangmingming1 [Wed, 14 Aug 2019 07:38:22 +0000 (15:38 +0800)]
notify netd about uid internet permission changes when package replaced
1. If a previous version of an app doesn't declare internet permission;
2. The User upgraded it to a new version and the new one does declare the
internet permission;
3. The new app are not allowed to access the internet until next boot
Bug:
137864893
Test: Manual, just make sure the onPackageChanged would be executed on package changes
Change-Id: I69cdbb16a027a9c4e974b32371b1f64a23a51a23
Signed-off-by: wangmingming1 <wangmingming1@xiaomi.com>
Joanne Chung [Fri, 20 Sep 2019 02:32:09 +0000 (02:32 +0000)]
Merge "Prevent flicker when typing any character for filter." into qt-qpr1-dev
Kevin Hufnagle [Wed, 18 Sep 2019 01:52:45 +0000 (01:52 +0000)]
docs: Fixed link to material design for ScrollView
Test: make ds-docs -j32
Bug:
141024886
Change-Id: I69d05cdf99d91f74143454c78c000128d1da42ce
Selim Cinek [Thu, 19 Sep 2019 23:43:33 +0000 (16:43 -0700)]
Fixed an issue where the notification icons could overlap the clock
Because we were cancelling an animation but never reseting the translation
we could be stuck in weird transition states.
Fixes:
136117476
Test: lock and unlock quickly with overlapping animations, observe no overlap
Change-Id: Iee389fa77588289417d0e3e5bdc31aeda1aac58a
Philip P. Moltmann [Thu, 19 Sep 2019 21:52:38 +0000 (14:52 -0700)]
Fix dumpsys for appops proxy field
- Make flags is the last parameters in access decipher methods.
All calling code assumes this.
- Get proxyUid info from the appropriate field
- Don't create proxy entries if uid is invalid
- Fixed some incorrect docs
Test: adb shell dumpsys appops now shows proxy information
Fixes:
141328071
Change-Id: I2f94e9b171133141643e628c9224d8d74ec5ad87
Mady Mellor [Thu, 19 Sep 2019 23:11:16 +0000 (23:11 +0000)]
Merge changes from topic "landscape-jeeze" into qt-qpr1-dev
* changes:
Restrict height of expanded view in landscape & fix left / right padding
Restrict the space bubbles are centered in while in landscape
Mady Mellor [Thu, 19 Sep 2019 23:10:44 +0000 (23:10 +0000)]
Merge "Notify display is empty even if it's not the expanded bubble" into qt-qpr1-dev
Anthony Han [Mon, 26 Aug 2019 21:00:28 +0000 (14:00 -0700)]
Log display white balance intermediate data
Bug:
139488234
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/display/color/
Change-Id: Ifb11a6d80391d4629b507030a4db35fb2323b2ed
TreeHugger Robot [Thu, 19 Sep 2019 22:01:07 +0000 (22:01 +0000)]
Merge "SSIN: Use the application's context to load icon resources." into qt-qpr1-dev
Dave Mankoff [Thu, 19 Sep 2019 21:54:03 +0000 (21:54 +0000)]
Merge "Add new ProximitySensor wrapper that automatically uses appropriate sensor." into qt-qpr1-dev
Mingguang Xu [Thu, 19 Sep 2019 21:06:44 +0000 (21:06 +0000)]
Merge "Wifi usability: Change the unit of the threshold for tx/rx throughput from Mbps to Kbps" into qt-qpr1-dev
Eric Laurent [Thu, 19 Sep 2019 18:28:31 +0000 (18:28 +0000)]
Merge "SoundTriggerHelper: fix state after audioserver death" into qt-qpr1-dev
TreeHugger Robot [Thu, 19 Sep 2019 17:57:35 +0000 (17:57 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev
Santos Cordon [Thu, 19 Sep 2019 15:16:01 +0000 (08:16 -0700)]
Merge "Acquire display suspend blocker for DozeService" into qt-dev am:
576a6f4ac5
am:
23da52265b
Change-Id: Ic09e1264f90a41e51018a849949a3bc45a23735b
Santos Cordon [Thu, 19 Sep 2019 15:08:30 +0000 (08:08 -0700)]
Merge "Acquire display suspend blocker for DozeService" into qt-dev
am:
576a6f4ac5
Change-Id: I75471698513cfc72c87f0149d4da891d7156fa3b
TreeHugger Robot [Thu, 19 Sep 2019 14:50:10 +0000 (14:50 +0000)]
Merge "Acquire display suspend blocker for DozeService" into qt-dev
TreeHugger Robot [Thu, 19 Sep 2019 14:13:57 +0000 (14:13 +0000)]
Merge "DO NOT MERGE: Revert "Force FGS notifications to show for a minimum time"" into qt-qpr1-dev
Gavin Corkery [Tue, 17 Sep 2019 17:41:54 +0000 (18:41 +0100)]
Don't send SESSION_COMMITTED broadcast for staged installs
Staged sessions currently send a SESSION_COMMITTED broadcast
when they are created, but not upon activation. Since there
is nobody active at activation to listen to the broadcast,
it should not be sent. This also prevents app shortcuts being
added to the launcher before a new version has been activated.
Bug:
139663018
Test: atest StagedInstallTest
Change-Id: Icf51b5611a1903eee58c3310bfb875eaf737c26f
Evan Laird [Wed, 18 Sep 2019 20:09:34 +0000 (20:09 +0000)]
DO NOT MERGE: Revert "Force FGS notifications to show for a minimum time"
This reverts commit
09843a687bc19f8e360b2f5b0493a1f378bb603b.
Reason for revert: There is possible reentrant behavior when posting the safeToRemove callback after a FGS has been canceled/reposted
Bug:
140948482
Change-Id: I2c5b9135e57a87f412dce8c167147dcb38f6bbae
Ricky Wai [Thu, 19 Sep 2019 10:26:13 +0000 (10:26 +0000)]
Merge "Do not return synthetic launcher activity for completely headless apps" into qt-qpr1-dev
Bill Yi [Thu, 19 Sep 2019 09:44:14 +0000 (02:44 -0700)]
Import translations. DO NOT MERGE
Change-Id: Ia59167fa6651dcbb24c9422864985b5fe58526f7
Auto-generated-cl: translation import
TreeHugger Robot [Thu, 19 Sep 2019 08:41:37 +0000 (08:41 +0000)]
Merge "Use mContext directly, and enforce via logging" into qt-qpr1-dev
TreeHugger Robot [Thu, 19 Sep 2019 08:41:37 +0000 (08:41 +0000)]
Merge "Revert "Use mContext directly"" into qt-qpr1-dev
Mingguang Xu [Thu, 19 Sep 2019 07:37:47 +0000 (00:37 -0700)]
Wifi usability: Change the unit of the threshold for tx/rx throughput from Mbps to Kbps
Data stall event can be triggered if the tx/rx tput is consecutively below a threshold over multiple RSSI polls. Changing the unit of the threshold from Mbps to Kbps allows us to configure a value below 1Mbps, e.g., 400Kbps.
Bug:
141027476
Test: frameworks/base/wifi/tests/runtests.sh
Signed-off-by: Mingguang Xu <mingguangxu@google.com>
Change-Id: Ib7b398fb6975c0d03b09550db9bf68a2bb8bddfb
Merged-In: I76d6338cd2d482d198fde1e5a2d1a0540c087ca6
TreeHugger Robot [Thu, 19 Sep 2019 00:40:59 +0000 (00:40 +0000)]
Merge "No need to use getExpandedBubble for singleTaskDisplayDrawn/Empty callbacks" into qt-qpr1-dev
Kevin Hufnagle [Thu, 19 Sep 2019 00:39:27 +0000 (17:39 -0700)]
Merge "docs: Add condition for hiding synth. activities" into qt-dev am:
00537efd07
am:
12298403b0
Change-Id: I7a71cdb8fd5ecfd008d0e8257185cdd8c5366ce0
Kevin Hufnagle [Thu, 19 Sep 2019 00:32:55 +0000 (17:32 -0700)]
Merge "docs: Add condition for hiding synth. activities" into qt-dev
am:
00537efd07
Change-Id: I1ec3fb8fea7f6b5fe292807b3951fb265a9cbb94
Kevin Hufnagle [Thu, 19 Sep 2019 00:20:47 +0000 (00:20 +0000)]
Merge "docs: Add condition for hiding synth. activities" into qt-dev
Govinda Wasserman [Wed, 18 Sep 2019 18:35:35 +0000 (14:35 -0400)]
Ensure that handles are hidden and stay hidden when not fully awake
Previously handles used either the wakefulness lifecycle or the doze
state to determine whether to hide the handles. This change makes them
use both and hides if either signal indicates that the phone is not
fully awake.
Test: atest google/perf/jank/SystemUI/UbSystemUIJankTests-Lock:android.platform.systemui.tests.jank.SystemUiJankTests#testUnlock -v
Test: atest AssistHandleLikeHomeBehaviorTest
BUG:
141219006
FIX:
141219006
Change-Id: Iedbf5421c369440a3170f1a0b1add66bd289ec7a
Merged-In: Iedbf5421c369440a3170f1a0b1add66bd289ec7a
TreeHugger Robot [Wed, 18 Sep 2019 20:54:27 +0000 (20:54 +0000)]
Merge "Camera: fix NPE from bad requestID" into qt-qpr1-dev
Seigo Nonaka [Wed, 18 Sep 2019 20:30:17 +0000 (13:30 -0700)]
Merge "Do not compute outside given range in TextLine" into qt-dev am:
01082fe6ae
am:
a2778ebe0d
Change-Id: I07c9f4c9a8bd9b6cdfa0f4da215d1b6f63ca9961
Seigo Nonaka [Wed, 18 Sep 2019 20:17:17 +0000 (13:17 -0700)]
Merge "Do not compute outside given range in TextLine" into qt-dev
am:
01082fe6ae
Change-Id: I9d88c47a16747009fda893660fd36d325d212a40
TreeHugger Robot [Wed, 18 Sep 2019 20:05:29 +0000 (20:05 +0000)]
Merge "Do not compute outside given range in TextLine" into qt-dev
Dave Mankoff [Thu, 12 Sep 2019 17:39:42 +0000 (13:39 -0400)]
Add new ProximitySensor wrapper that automatically uses appropriate sensor.
Bug:
140270231
Test: manual && atest SystemUITests
Change-Id: Id151ce8f702f7deadab73ee3904a0a883870b237
Merged-In: Id151ce8f702f7deadab73ee3904a0a883870b237
Mingguang Xu [Wed, 18 Sep 2019 18:28:02 +0000 (18:28 +0000)]
Merge "Wifi usability: Data stall detection based on link layer stats" into qt-qpr1-dev
Yin-Chia Yeh [Mon, 17 Jun 2019 21:44:35 +0000 (14:44 -0700)]
Camera: fix NPE from bad requestID
This avoid NPE exception and accompanying logspam from binder
callbacks.
Test: N/A
Bug:
141250131
Merged-In: I729f4905c94698c95733570abe92ca3ba9163cc5
Change-Id: I729f4905c94698c95733570abe92ca3ba9163cc5
(cherry picked from commit
67bd78ad73dc76086ca5c31f5b9e7ba424dee584)
Lucas Dupin [Wed, 18 Sep 2019 17:42:58 +0000 (17:42 +0000)]
Merge "Avoid going to SHADE_LOCKED when already in SHADE" into qt-qpr1-dev
Lucas Dupin [Tue, 17 Sep 2019 15:19:53 +0000 (11:19 -0400)]
Avoid going to SHADE_LOCKED when already in SHADE
It's not possible for the device to go to SHADE_LOCKED after you're
already unlocked, still it's possible that it would happen.
Added an extra condition to avoid it, and logs to catch the regression
if it happens again.
Fixes:
139259891
Test: pull down notification while authenticating
Change-Id: I5c2b81906fa444dfd07d040b81a527245d4130e6
Ricky Wai [Thu, 5 Sep 2019 17:21:29 +0000 (18:21 +0100)]
Do not return synthetic launcher activity for completely headless apps
Bug:
140477182
Test: Headless app: no icon is shown on launcher
Test: App with launchable activity but disabled by default: no icon
Test: App with launchable activity, enabled by default but then disabled by command: has an icon on launcher
Change-Id: I58a36ac93d34583b2d4e50464b73cced77ce8edb
Merged-In: I58a36ac93d34583b2d4e50464b73cced77ce8edb
(cherry picked from commit
3eb1cc6588b81102732a446a2adcdc799a2cf3d0)
Mingguang Xu [Sat, 14 Sep 2019 00:21:13 +0000 (17:21 -0700)]
Wifi usability: Data stall detection based on link layer stats
This is an effort to define new criterion for triggering Wifi data stall:
(1) Defined data stall criterion based on transmit and/or receive throughput, transmit packet error rate, and CCA level. Data stall is triggered when transmit and/or receive links are consecutively bad over multiple RSSI polls.
(2) Added DeviceConfig flags (that is disabled by default) which may be configured on the server side to tune the thresholds at which data stall gets triggered.
Bug:
141027476
Test: frameworks/base/wifi/tests/runtests.sh
Change-Id: I895fd54cc7ec32815bce1899354ca265d4e93ea9
Signed-off-by: Mingguang Xu <mingguangxu@google.com>
Merged-In: I76d6338cd2d482d198fde1e5a2d1a0540c087ca6
Gustav Sennton [Fri, 13 Sep 2019 11:00:50 +0000 (12:00 +0100)]
SSIN: Use the application's context to load icon resources.
SSIN = Smart Suggestions in Notifications.
When posting a notification with contextual/smart actions app developers
supply their own icons for their actions. These icons can reference
resources from within the application package. Therefore we need to use
a Context from that package to load icon resources.
Before this CL we were using the SystemUi context which doesn't have
access to the same resources as the app context - meaning we were not
able to load the icon the app developer was providing us (unless they
provided an Icon instance rather than just a resource ID for their icon).
Bug:
137044913
Test: atest SmartReplyViewTest
Test: manual - create a notification with a
contextual action whose icon is referenced through a resource ID (not an
Icon instance). Ensure the icon is shown correctly in the notification.
Change-Id: Ia6d7b3689c46b65558437e00a947ba3cd330e4ca
Chris.CC Lee [Mon, 16 Sep 2019 04:17:19 +0000 (12:17 +0800)]
Apply front scrim to doze pulsing
When ambient goes dark, apply the same front scrim opacity during doze
pulsing. The would then be a common behavior to all pulsing reaons.
Bug:
139445074
Test: Manual tests
Test: atest ScrimControllerTest
Change-Id: I3f1f7ca00b9d200ce4a7120b5328527ab9d9fb13
Cheonho Park [Wed, 18 Sep 2019 05:04:12 +0000 (05:04 +0000)]
Merge "Allow signing key rotation" into qt-qpr1-dev
Jaegeuk Kim [Wed, 18 Sep 2019 02:28:03 +0000 (02:28 +0000)]
Merge "IdleMaint: run more frequently during 3AM to 4AM" into qt-qpr1-dev
Mady Mellor [Thu, 22 Aug 2019 00:26:26 +0000 (17:26 -0700)]
Restrict height of expanded view in landscape & fix left / right padding
Previously the height & width of expanded view was not updated when
switching between landscape & portrait. This CL:
* Adjusts max height calculation so it accounts for landscape
* Updates the position, height, & left / right padding of the expanded
view when the orientation changes, also accounting for notches / navbar
* Also accounts display cutout when calculating IME inset for expanded
view
Test: manual - have multiple bubbles with different heights (small & max)
- expand the stack
- go to each bubble and rotate to landscape / portrait
=> in landscape the heights should be restricted & width
of the view shouldn't overlap notches (turn them on/off)
or navbar (turn gesture nav on/off), in portrait
the max height should increase
Bug:
135487618
Change-Id: Iaffcef0a070d3eb2d6b21248be3c94a861d77d5d
Mady Mellor [Thu, 22 Aug 2019 00:25:02 +0000 (17:25 -0700)]
Restrict the space bubbles are centered in while in landscape
In landscape don't use the full screen width, instead, restrict to a
percentage of the screen & enforce a minimum of the width of the screen.
* Updates the displaySize passed to ExpandedAnimationController
to be the "real size", this is consistent with what BubbleExpandedView
uses now
* Alters positioning calculations in ExpandedAnimationController &
accounts for notches / screen decorations
Test: manual - have multiple bubbles
- expand the stack
- rotate the device
=> observe that the bubbles look nicely centered (i.e. not
too much space or too little space) in landscape & portrait
Bug:
135487618
Change-Id: Ief7fc6f762f8cc130e37963d48005f15a1bea743
TreeHugger Robot [Wed, 18 Sep 2019 00:56:12 +0000 (00:56 +0000)]
Merge "Passing caller package name to setBluetoothTethering" into qt-qpr1-dev
TreeHugger Robot [Wed, 18 Sep 2019 00:26:34 +0000 (00:26 +0000)]
Merge "Enter quick doze with non-wakeup alarm." into qt-qpr1-dev
TreeHugger Robot [Wed, 18 Sep 2019 00:21:23 +0000 (00:21 +0000)]
Merge "DO NOT MERGE Use realCallerId to check launch display for Bubbles" into qt-qpr1-dev
Mady Mellor [Tue, 17 Sep 2019 23:07:12 +0000 (16:07 -0700)]
Notify display is empty even if it's not the expanded bubble
onSingleTaskDisplayEmpty occurs when the activity is removed from the
activity view (e.g. app crash). When a bubble'd app crashes we want to
collapse the bubble (if expanded) & notify that it's empty so that next
time it's opened it will try to populate the activity again.
We were only doing this if the crashed app was the currently expanded
bubble, but that's not always the case.
This CL adds a method in BubbleData to clean up the display for a given
displayId & calls that in the non-expanded case.
Also adds some null pointer checks.
Test: manual - modify bubbles test app to have a crash when you click a button
- post some bubbles
- expand / collapse a bubble
- crash the bubbles test app
=> see crash dialog
- expand bubble
=> bubble should be populated
Bug:
138461119
Change-Id: I2fb226766676226980c67dc0536ed37eb43cedf1
Mady Mellor [Tue, 17 Sep 2019 00:55:48 +0000 (17:55 -0700)]
No need to use getExpandedBubble for singleTaskDisplayDrawn/Empty callbacks
getExpandedBubble checks if the shade is expanded or not and returns
null if the shade is expanded, we don't care about that for the display
drawn callbacks.
Test: manual, have a bubble notification on lockscreen, tap it, note
that the bubble is expanded & visible after going through lockscreen
Bug:
138461119
Change-Id: I00dff7cd3301db6a2613a947015ac0408b545202
Daniel Rosenberg [Tue, 27 Aug 2019 02:29:45 +0000 (19:29 -0700)]
Use mContext directly, and enforce via logging
We already have the context saved, so we can just use that.
Add a log statement so we can test for the existence of this patch from
a CTS test.
Test: Edited code to force expection path to be called, confirmed
reboot happens
Bug:
138952436
Bug:
140111727
Change-Id: Iaceec82d4716837158d1233400b4a44cbf67a5e8
Paul Lawrence [Tue, 3 Sep 2019 20:17:22 +0000 (13:17 -0700)]
Revert "Use mContext directly"
This reverts commit
dd3737611c640a764bcc55d8bcea1d13c7ea7989.
Test: None, it's a revert
Bug:
138952436
Change-Id: Ib809ba017e3563c09ea35b1a9056a6a95f4bdfc2
Jaegeuk Kim [Thu, 25 Apr 2019 12:00:36 +0000 (05:00 -0700)]
IdleMaint: run more frequently during 3AM to 4AM
This patch makes IdleMaint trigger multiple times between
3AM and 4AM, if device is idle and power is not low. This
will not trigger until next 3AM.
Bug:
128594671
Change-Id: Id6596be44ff96d39f77fb21dca52c35952f2cf7e
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Lucas Dupin [Tue, 17 Sep 2019 22:46:13 +0000 (22:46 +0000)]
Merge "Fix status bar flickering" into qt-qpr1-dev
Brad Stenning [Tue, 17 Sep 2019 22:23:57 +0000 (22:23 +0000)]
Merge "Adding scrim bubble to car's super_status_bar.xml" into qt-qpr1-dev
Winson Chung [Tue, 17 Sep 2019 20:44:25 +0000 (20:44 +0000)]
Merge "Skip updating exclusion rects unless one is set" into qt-qpr1-dev
Kevin Hufnagle [Tue, 17 Sep 2019 19:32:20 +0000 (12:32 -0700)]
Merge "docs: Fixed contradictory info in IntentFilter" into qt-dev am:
1fe99017eb
am:
1e8492c744
Change-Id: Idbc73307a0c3f4a937a2a964667f01b28aa274ce
Kevin Hufnagle [Tue, 17 Sep 2019 19:19:12 +0000 (12:19 -0700)]
Merge "docs: Fixed contradictory info in IntentFilter" into qt-dev
am:
1fe99017eb
Change-Id: I13ba0297750b5b375f4874640b14b4955d17eeaa
Kevin Hufnagle [Tue, 17 Sep 2019 18:54:20 +0000 (18:54 +0000)]
Merge "docs: Fixed contradictory info in IntentFilter" into qt-dev
Kevin Hufnagle [Fri, 13 Sep 2019 02:18:44 +0000 (02:18 +0000)]
docs: Add condition for hiding synth. activities
If an app doesn't have a launcher activity enabled by default, a
synthesized activity isn't created for that app.
Test: make ds-docs -j32
Bug:
140968734
Change-Id: I2fe8666ee8cde479f404e43c622f03891d96c38f
jovanak [Wed, 4 Sep 2019 02:22:41 +0000 (19:22 -0700)]
Adding scrim bubble to car's super_status_bar.xml
Bug:
140308332
Test: sys ui boots on hawk
Change-Id: I111a5eef67ebe599d65b96687643cf1949d6bfbe
(cherry picked from commit
481a1040258f13ffc99b92ecfca146240a680382)
TreeHugger Robot [Tue, 17 Sep 2019 16:19:23 +0000 (16:19 +0000)]
Merge "Redraw legacy navigation bar paint onLayout" into qt-qpr1-dev
Lucas Dupin [Thu, 12 Sep 2019 18:03:39 +0000 (11:03 -0700)]
Fix status bar flickering
The keyguard status bar would be visible momentarily while the keyguard
is fading out. Let's keep it hidden until the keyguard is gone.
Test: reach, auth, press power, look at status bar: gone
Test: reach, press power, look at status bar: gone
Test: reboot, reach, press power, look at status bar: visible
Test: reach, press power, wait for auth filure, look at status bar: visible
Test: reach, pull down, wait for auth filure, look at status bar: visible
Fixes:
140259100
Change-Id: I0aa705107e11e3ad8182ac8d5b6104c9f86754be