Elliott Hughes
08f7be5495
Merge "Set $TMPDIR as well as java.io.tmpdir." am: 1353c41379 am: 76aa934468 am: 522439015a
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1821337
Change-Id: I9fc35b7f44f00bed5d31b02ecb6ebb9164a2651c
2021-09-14 18:03:45 +00:00
Elliott Hughes
522439015a
Merge "Set $TMPDIR as well as java.io.tmpdir." am: 1353c41379 am: 76aa934468
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1821337
Change-Id: Ic0e27081f97e0d08e062133e43b8a1145f6c839d
2021-09-14 17:25:26 +00:00
Elliott Hughes
76aa934468
Merge "Set $TMPDIR as well as java.io.tmpdir." am: 1353c41379
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1821337
Change-Id: Ib98b38571754781102093c67d15ac3364c5dc029
2021-09-14 17:08:20 +00:00
Ahan Wu
3f6e834493
DO NOT MERGE: Fix temporary black after setting a new image wallpaper am: 7af300eea6
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15639322
Change-Id: I1e49bd3cc098339d2d51744dae1816fcc42fe88e
2021-09-13 16:09:47 +00:00
Ahan Wu
7af300eea6
DO NOT MERGE: Fix temporary black after setting a new image wallpaper
...
Sometimes see temporary black wallpaper after setting a new image
wallpaper because of:
- decode bitmap twice, results in long latency until drawing.
- the set wallpaper apis didn't sync with wallpaper rendering well.
Solutions:
- Only decode bitmap when necessary.
- Make set wallpaper apis wait for image wallpaper rendering finished.
Bug: 194080642
Test: see b/194080642#comment3
Test: atest WallpaperManagerServiceTests --iterations 50
Test: atest SystemUITests
Change-Id: I369eff5195571161cf286b3ec97175481b02eed7
2021-09-13 18:53:27 +08:00
Jeff DeCew
5ff3a6c538
Merge changes I0fc3b7ae,I712e6d6b into sc-qpr1-dev am: 2f0616bd79
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15795789
Change-Id: I6260a6c0df1d2de5765d9ee9488ec10995cfd64a
2021-09-10 15:58:22 +00:00
Jeff DeCew
2f0616bd79
Merge changes I0fc3b7ae,I712e6d6b into sc-qpr1-dev
...
* changes:
Reduce the color contrast requirements for the emphasized action button fill color.
Refactor the color span code inside Notification.java and add tests.
2021-09-10 15:28:37 +00:00
Jeff DeCew
050a0d0d64
Reduce the color contrast requirements for the emphasized action button fill color.
...
This reduces the contrast requirement between the notification background and the button fill from 3:1 to 1.3:1
Fixes: 196393060
Test: manual testing using the go/notify2-apk and the CallStyle color customizer
Test: android.app.NotificationTest
Change-Id: I0fc3b7ae1ede7afd28974c59fa2a58d7fea2e9de
2021-09-09 15:00:00 -04:00
Jeff DeCew
5cb7307ebb
Refactor the color span code inside Notification.java and add tests.
...
* This makes it easy to reduce the contrast requirement between the notification background and the button fill in another review.
* This also fixes a bug where partial-length color spans within the emphasized buttons would be contrast-adjusted only with the notification background color rather than the button fill color.
Bug: 196393060
Fixes: 197572220
Test: manual testing using the go/notify2-apk and the CallStyle color customizer
Test: android.app.NotificationTest
Change-Id: I712e6d6b2da1de89afeacda7bd2fc4ad24632811
2021-09-09 14:59:59 -04:00
Elliott Hughes
d5ccb038f6
Set $TMPDIR as well as java.io.tmpdir.
...
This helps functions like tmpnam() and tmpfile() to "just work", like
their Java equivalents.
Bug: https://issuetracker.google.com/36991167
Bug: http://b/174682340
Test: atest FrameworksCoreTests:android.app.activity.ActivityThreadTest
Change-Id: Ife785f0ca69a34ba2c6b5d1e8e23f8b883d8fc8f
2021-09-08 12:31:25 -07:00
Treehugger Robot
77e597ff19
Merge "Fix guide link to bg execution limits" am: 42d6f9b7b2 am: b8c969cb48 am: aa06446560
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1820532
Change-Id: I6497684224197b48b11ee004f6fbb0ce22bf2684
2021-09-08 07:07:49 +00:00
Treehugger Robot
aa06446560
Merge "Fix guide link to bg execution limits" am: 42d6f9b7b2 am: b8c969cb48
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1820532
Change-Id: I182aa6a65b15aa2731d67929ca103d1c73752ecf
2021-09-08 06:54:19 +00:00
Treehugger Robot
b8c969cb48
Merge "Fix guide link to bg execution limits" am: 42d6f9b7b2
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1820532
Change-Id: I3aacda36b23caef5858de25b97355a1603e112d3
2021-09-08 06:37:32 +00:00
Christopher Tate
7ad31eb3f4
Fix guide link to bg execution limits
...
Bug: 157788333
Test: m offline-sdk-docs
Change-Id: I9258aeaa549b63960669d4bed9ea8fb03392146b
2021-09-07 11:36:20 -07:00
Hyunyoung Song
b92a3cfce8
Merge "fix a bug that extra is not actually set to the query." into sc-qpr1-dev am: c0992e4ec4
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15537322
Change-Id: If057735d8f6cc917a7f62d689bd3154716fe281a
2021-09-03 03:44:14 +00:00
Hyunyoung Song
c0992e4ec4
Merge "fix a bug that extra is not actually set to the query." into sc-qpr1-dev
2021-09-03 03:28:43 +00:00
Jooyung Han
2063fecc3a
Merge "Revert "AIDL: use typed Map"" am: 01da4566ee am: 16c2faf6e1 am: 161105be0a
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1806796
Change-Id: Ic9dec9ce6dd18c96e42e9f1ddc1f68ab24a3d6ec
2021-09-01 01:06:42 +00:00
Jooyung Han
161105be0a
Merge "Revert "AIDL: use typed Map"" am: 01da4566ee am: 16c2faf6e1
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1806796
Change-Id: If93a01cbff96ab90c54bc35fdeb2ac298914df33
2021-09-01 00:50:56 +00:00
Jooyung Han
16c2faf6e1
Merge "Revert "AIDL: use typed Map"" am: 01da4566ee
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1806796
Change-Id: Idc267d0189a2efcae7d4e5437e31106aa3a4b3ea
2021-09-01 00:37:33 +00:00
Tim Van Patten
b5e834ae05
Merge "Enable ANGLE as a Game Dashboard Intervention" into sc-qpr1-dev am: 4de992c9cb
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15697303
Change-Id: Ie8e87583f02be4b7def95e355e39ac609dc18744
2021-09-01 00:34:07 +00:00
Jooyung Han
01da4566ee
Merge "Revert "AIDL: use typed Map""
2021-09-01 00:20:02 +00:00
Tim Van Patten
4de992c9cb
Merge "Enable ANGLE as a Game Dashboard Intervention" into sc-qpr1-dev
2021-09-01 00:10:33 +00:00
Tim Van Patten
08c3f5b379
Enable ANGLE as a Game Dashboard Intervention
...
Enable ANGLE as a Game Dashboard intervention via Phenotype.
Bug: b/188475576
Test: GameManagerServiceTests
Change-Id: I91894a76b8dcf7a97244cff679a501001734f671
Merged-In: I91894a76b8dcf7a97244cff679a501001734f671
(cherry picked from commit acf3851b8f )
2021-08-31 15:08:38 -06:00
Jing Ji
c868ea13d0
Merge "Use ArrayMap instead of SparseArray to manage the ProviderKey" into sc-dev am: d5ea86eaf0 am: 637bdf9b9a
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15664720
Change-Id: I3c80aadc2ba932acd9f4e36276f95c46925295d2
2021-08-31 06:12:48 +00:00
Jing Ji
9fd02e1b76
Merge "Use ArrayMap instead of SparseArray to manage the ProviderKey" into sc-dev am: d5ea86eaf0
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15664720
Change-Id: Ic1e72abe6ee64f763ec67c8c84de88c386943791
2021-08-31 06:04:45 +00:00
Jing Ji
637bdf9b9a
Merge "Use ArrayMap instead of SparseArray to manage the ProviderKey" into sc-dev am: d5ea86eaf0
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15664720
Change-Id: I93062f5aec80be58bc53118c6a7af8550252d0d1
2021-08-31 06:03:51 +00:00
Jing Ji
d5ea86eaf0
Merge "Use ArrayMap instead of SparseArray to manage the ProviderKey" into sc-dev
2021-08-31 05:48:08 +00:00
Jooyung Han
f306e46365
Revert "AIDL: use typed Map"
...
This reverts commit 553c027bbf .
Reason for revert: b/197550396
Change-Id: I3c59d132985a3d21a11b55ba1546ed9f46f6e474
2021-08-31 00:49:37 +00:00
Julia Reynolds
0ac599c60d
Revert "Don't restore notification channel if its sound is unavailable" am: cc547d33e5
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15718202
Change-Id: Idab066ce636daf8bdcd784717714dc0c98d7143f
2021-08-30 23:20:06 +00:00
Julia Reynolds
cc547d33e5
Revert "Don't restore notification channel if its sound is unavailable"
...
This reverts commit 6a5ca92e75 .
Reason for revert: This is affecting notification channels that are using the system sound and is resulting in users losing most of their notification settings
Change-Id: I350cf8190eec6296a597bef38b711900336ddf75
Fixes: 197129198
2021-08-30 20:30:57 +00:00
Chilun
ea50dfc348
[RESTRICT AUTOMERGE] Workaround to dump error log instead of exception am: f8fc1326f7 am: bb77ce0eaf
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15690060
Change-Id: I73b7bed211ebd9127d7152c3414d2bf0626610d5
2021-08-29 16:36:25 +00:00
Chilun
e6692e20e6
[RESTRICT AUTOMERGE] Workaround to dump error log instead of exception am: f8fc1326f7
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15690060
Change-Id: I8107e094cd6182434683d359a52d9e0855c48221
2021-08-29 16:27:20 +00:00
Chilun
bb77ce0eaf
[RESTRICT AUTOMERGE] Workaround to dump error log instead of exception am: f8fc1326f7
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15690060
Change-Id: Ie96d965bbdbc58e111f1907636771263f4b23e41
2021-08-29 16:25:50 +00:00
Chilun
f8fc1326f7
[RESTRICT AUTOMERGE] Workaround to dump error log instead of exception
...
This is a short-term workaround to dump error log instead of throwing
the exception to unblock the test.
Bug: 197484331
Test: build pass
Change-Id: I2ece3b9d85edc1ae43038e6f69b35f59b160a3dd
2021-08-27 10:41:41 +00:00
Jing Ji
119dd01b49
Use ArrayMap instead of SparseArray to manage the ProviderKey
...
As the ArrayMap handles the hash code collision properly.
Bug: 197647956
Test: atest CtsContentTestCases:android.content.cts
Change-Id: Ibb57a22c08b0fa5462505d586d5fb0aaf908c80f
2021-08-24 11:42:58 -07:00
Jooyung Han
07db6330cb
devicepolicy: use typed List<String> in AIDL
...
Bug: 192615532
Test: m
Merged-In: I0ea1c35f7ce4dd6f6bde02874e02ed190fa2e904
Change-Id: I0ea1c35f7ce4dd6f6bde02874e02ed190fa2e904
(cherry picked from commit 57fe5105df )
2021-08-24 03:16:54 +00:00
TreeHugger Robot
b8838ca0e6
Merge "devicepolicy: use typed List<String> in AIDL" into sc-dev-plus-aosp am: 233890d702
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15623884
Change-Id: I5da0698d0cc1571092f477b44de3f3e731f1c317
2021-08-24 00:22:05 +00:00
Jooyung Han
4d9fc0aea9
devicepolicy: use typed List<String> in AIDL
...
Bug: 192615532
Test: m
Merged-In: I0ea1c35f7ce4dd6f6bde02874e02ed190fa2e904
Change-Id: I0ea1c35f7ce4dd6f6bde02874e02ed190fa2e904
2021-08-24 09:11:54 +09:00
TreeHugger Robot
233890d702
Merge "devicepolicy: use typed List<String> in AIDL" into sc-dev-plus-aosp
2021-08-24 00:09:44 +00:00
Makoto Onuki
b18647fb90
Merge "Change Shallow Copy to Deep Copy in UsageStats" am: f4d7116b49 am: be46bb90ac am: c1caced3ce
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1796513
Change-Id: I2f6b65fc6044f0be0887a7d5d81ee725f75bf2c9
2021-08-23 20:18:02 +00:00
Makoto Onuki
be46bb90ac
Merge "Change Shallow Copy to Deep Copy in UsageStats" am: f4d7116b49
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1796513
Change-Id: If0a979f9b0b39387bdd854859187b8b14ae9e4bd
2021-08-23 19:47:58 +00:00
Makoto Onuki
f4d7116b49
Merge "Change Shallow Copy to Deep Copy in UsageStats"
2021-08-23 19:17:38 +00:00
Jooyung Han
57fe5105df
devicepolicy: use typed List<String> in AIDL
...
Bug: 192615532
Test: m
Change-Id: I0ea1c35f7ce4dd6f6bde02874e02ed190fa2e904
2021-08-20 06:19:42 +09:00
Govinda Wasserman
80f10784d0
Merge "Allow BackupHelper to be overridden" into sc-qpr1-dev am: 3de2a1e721
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15596703
Change-Id: Ib18924265fe44ee038f53ce7a95ad94bfa9de564
2021-08-19 18:37:02 +00:00
Govinda Wasserman
8de1c313e6
Allow BackupHelper to be overridden
...
This will allow vendor versions of System UI to backup their
vendor-specific data.
Test: Tested locally
BUG: 195548201
Change-Id: Iebf512104be2a8fa0dfb614af12d95ed6a3625eb
2021-08-19 12:30:40 -04:00
Jeff DeCew
e5a0d109ef
Merge "Make foreground color selection in SmartReplyView and RemoteInputView match Notification." into sc-qpr1-dev am: 0c43fe4e92
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15549415
Change-Id: I37f3da149d54e593ddb3ef2cc4ae3ed2a89dc4da
2021-08-17 19:39:54 +00:00
Jeff DeCew
0c43fe4e92
Merge "Make foreground color selection in SmartReplyView and RemoteInputView match Notification." into sc-qpr1-dev
2021-08-17 18:59:51 +00:00
zhuyunyi
afcd22acaa
Change Shallow Copy to Deep Copy in UsageStats
...
There are three reference type members in UsageStats's constructor, when using "new UsageStats(stats)" to copy, it will be a Shallow Copy, which may cause concurrent modify problem.
For example, in UserUsageStatsService.java, the sUsageStatsCombiner is using "new UsageStats(stats.packageStats.valueAt(i)" to copy, and the value is passing to the computeCacheQuotaHints in
CacheQuotaStrategy.java. If we change the UsageStats.mForegroundServices at the same time, IndexOutOfBounds Exception will happen.
Therefore, it is necessary to modify the way of copying of the UsageStats.
Signed-off-by: zhuyunyi <zhuyunyi@xiaomi.com >
Change-Id: I58a54d17aad6ef5213e52658ee3387f3069339af
2021-08-17 14:10:39 +08:00
Jeff DeCew
2de4373e93
Merge changes I09b3999a,I590be0ba into sc-qpr1-dev am: 10c7e2b811
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15549414
Change-Id: I09ff92b8debe78859e621fd6ac013d8281959d07
2021-08-16 19:38:06 +00:00
Jeff DeCew
2bd5f502fd
Make foreground color selection in SmartReplyView and RemoteInputView match Notification.
...
Fixes: 196585371
Test: post colorized notification with luminance between .2 and .5; validate that smart replies and remote input use black text to match the notification.
Change-Id: I5ea69181755ed5c2b48352a0379ae4e898202e21
Merged-In: I5ea69181755ed5c2b48352a0379ae4e898202e21
2021-08-16 14:37:42 +00:00