Commit Graph

23597 Commits

Author SHA1 Message Date
Riddle Hsu
b553c74619 Merge "Only set locale in config for updating locale" into tm-qpr-dev 2022-10-25 13:07:32 +00:00
Riddle Hsu
03f0f57e6b Only set locale in config for updating locale
To update locale, it doesn't need a full configuration because
system only applied the diff of config from non-undefined fields.

IActivityManager#getConfiguration actually gets the configuration
according to the pid, which is process configuration. And process
configuration can be overridden by the activity running in its
process. So the returned value shouldn't be used to update the
system persistent configuration.

Therefore it is enough to use a new Configuration instance with
setting the necessary fields. This is also more efficient that
saves a binder call to system.

Bug: 253386061
Test: atest LocaleManagerTests
Change-Id: Icdce437fcf1a3bef0562cfc4dd5ad3ba52ea08ef
2022-10-20 14:41:47 +00:00
Julia Reynolds
1c897114d8 Fix notification tests
- Fix method incorrectly marked test
- Fix access to non-@hide methods
- Fix a logic error in Notification.java
- Move the 'core' notification test that were in the services suite to
the 'core' suite

Test: atest NotificationTest
Fixes: 254459150
Change-Id: Ib2793badb6b0616097bb837d7fd2c7504a43e186
(cherry picked from commit a4d04b1534)
2022-10-20 13:55:09 +00:00
Chris Poultney
0f8f2d726b Merge "Lock screen live wallpaper: adds home/lock screen flag as argument." into tm-qpr-dev 2022-10-18 15:06:21 +00:00
Louis Chang
f17bbfbb72 Embed the bundle states into exception message
... in order to help developers debug the binder transaction
failure due to TransactionTooLargeException.

Bug: 253942493
Test: verified locally
Change-Id: I3c048cc31165de4a0e2fde1ffa7a58eab1d642f3
2022-10-17 02:21:35 +00:00
András Kurucz
e58df67a4f Merge "Update Action button order in CallStyle Notifications" into tm-qpr-dev 2022-10-14 15:00:06 +00:00
Chris Poultney
43a06cf7e3 Lock screen live wallpaper: adds home/lock screen flag as argument.
Adds flag to wallpaper setting methods to allow specifying
home/lock/both. This will be implemented in master.

Bug: 253481667
Test: TreeHugger
Change-Id: I590b2972b102fba672726633a86727b167a4b02b
2022-10-13 21:37:46 +00:00
Andrew Solovay
8cdf457b51 docs: Fixing badly-formatted doc comment am: d80824b57d am: c5c0567f59
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20157157

Change-Id: Ida0d44fe5a13067294735409cdf3be26738f42a9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-12 20:09:39 +00:00
Andrew Solovay
c5c0567f59 docs: Fixing badly-formatted doc comment am: d80824b57d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20157157

Change-Id: Ia7a6926f97bbce0d8b3371033c6d35f7e751098b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-12 19:40:31 +00:00
Behnam Heydarshahi
1387d8d4ac Merge "Separate notification/ring volume sliders in UI" into tm-qpr-dev 2022-10-12 19:37:25 +00:00
András Kurucz
d6e8b78159 Update Action button order in CallStyle Notifications
Always show the negative action at the first place.

Bug: 245558391
Test: atest android.app.NotificationTest
Change-Id: I52982efc1d554749d743ecaf5c7ec85be2f85953
2022-10-12 15:36:16 +00:00
Pat Manning
67b139b04e Merge "Allow to disable showing starting window when start from recents" into tm-qpr-dev 2022-10-12 11:34:34 +00:00
Gautam Shende
cdcefab351 Merge "Set dimensional logging info to null for media pass." into tm-qpr-dev 2022-10-12 01:06:03 +00:00
Andrew Solovay
d80824b57d docs: Fixing badly-formatted doc comment
The Javadoc specification doesn't actually define a {@more}
tag. The Java-reference engine interpreted it as a paragraph
break, but the Kotlin doc engine (more properly) passed the
tag through verbatim.

Replaced it with a <p> to make it a paragraph break in both
languages.

Bug: 247563816
Test: (docs build)
Change-Id: Ib7bb4c2628141b7479c338f1d3fb28da503b847f
2022-10-10 16:55:46 -07:00
TreeHugger Robot
f76ce81e85 Merge "Stop managed profile owner granting READ_SMS" into qt-dev am: 62044e5099 am: 676cefb0ee am: 539fea38c2 am: e13c6379fb am: e456e2f66e am: fe2c3c269b am: e7253363d2 am: 4e8fadf947 am: 45ee517849
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15982545

Change-Id: I5a28b7335a19bdea9cfa660cb503e92674ad3a47
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-08 16:09:14 +00:00
TreeHugger Robot
45ee517849 Merge "Stop managed profile owner granting READ_SMS" into qt-dev am: 62044e5099 am: 676cefb0ee am: 539fea38c2 am: e13c6379fb am: e456e2f66e am: fe2c3c269b am: e7253363d2 am: 4e8fadf947
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15982545

Change-Id: I0ee23dd054e2e2a0ce52b36860baa463a6a052d7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-08 15:39:16 +00:00
TreeHugger Robot
4e8fadf947 Merge "Stop managed profile owner granting READ_SMS" into qt-dev am: 62044e5099 am: 676cefb0ee am: 539fea38c2 am: e13c6379fb am: e456e2f66e am: fe2c3c269b am: e7253363d2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15982545

Change-Id: Ie9d40b28095b1977179a0d5c1a853f82bcdd9a91
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-08 15:05:45 +00:00
TreeHugger Robot
e7253363d2 Merge "Stop managed profile owner granting READ_SMS" into qt-dev am: 62044e5099 am: 676cefb0ee am: 539fea38c2 am: e13c6379fb am: e456e2f66e am: fe2c3c269b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15982545

Change-Id: If587b4877ea448484e5e5d1c9f1428d0bb458f62
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-08 14:39:05 +00:00
TreeHugger Robot
fe2c3c269b Merge "Stop managed profile owner granting READ_SMS" into qt-dev am: 62044e5099 am: 676cefb0ee am: 539fea38c2 am: e13c6379fb am: e456e2f66e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15982545

Change-Id: I4cb1023e1b292806706574119291a2480bed2fe7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-08 14:08:37 +00:00
TreeHugger Robot
e456e2f66e Merge "Stop managed profile owner granting READ_SMS" into qt-dev am: 62044e5099 am: 676cefb0ee am: 539fea38c2 am: e13c6379fb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15982545

Change-Id: I83dfe3ce05718113bd6acb1daed09b51f5b60a0c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-08 13:38:01 +00:00
TreeHugger Robot
e13c6379fb Merge "Stop managed profile owner granting READ_SMS" into qt-dev am: 62044e5099 am: 676cefb0ee am: 539fea38c2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15982545

Change-Id: Ia131a4e9679f0aa1e0a3f508cf98383f4f27be21
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-08 13:06:31 +00:00
TreeHugger Robot
539fea38c2 Merge "Stop managed profile owner granting READ_SMS" into qt-dev am: 62044e5099 am: 676cefb0ee
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15982545

Change-Id: I7a377d2787cb077e3d717558da0b21e297699112
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-08 12:36:21 +00:00
TreeHugger Robot
676cefb0ee Merge "Stop managed profile owner granting READ_SMS" into qt-dev am: 62044e5099
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15982545

Change-Id: I3bf51cd6e7046c7e128f1008ed830c5e02603f88
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-08 12:05:20 +00:00
TreeHugger Robot
62044e5099 Merge "Stop managed profile owner granting READ_SMS" into qt-dev 2022-10-08 11:41:10 +00:00
John Wu
576b93c7fe Merge "Do not resolve ActivityInfo in navigateUpTo" into tm-qpr-dev 2022-10-05 16:36:10 +00:00
Behnam Heydarshahi
60cd96f8da Separate notification/ring volume sliders in UI
Separate the logic between notification slider and ring slider in
setting through new logic in SeekBarVolumizer when ring is not aliased
with notification in config.xml.

Start the notif/ring separation code but hide it in the new SysUI volume dialog.

Bug: b/38477228

Test: manual
      (1) With ring/notif alias set to false, in the Sound Settings, drag ring volume to zero. Verify notification volume snaps to zero as well. Then drag the notification volume out of zero. Verify that notification volume is stable at the new value and does not wrongly snap back to zero.
      (2) With the alias set to false, drag media volume to zero, midpoint, and max. Verify the slider control is stable, and that the audio level corresponds relative to the level on UI.
      (3) Repeat test 2 with the alias set to true.

Change-Id: Ifff4c06a952ba13dc6d6830fea5fe47651fa5b2e
2022-10-05 15:52:17 +00:00
Suprabh Shukla
8fcf1d63c6 Add push messaging as a trigger for proc start
Adding identification for process starts when the trigger was a
push_message.
When the push_message was over quota it may be deferred, but counting it
separately is still useful, as it could still cause cold process starts.

Test: Manual:
Run `./out/host/linux-x86/bin/statsd_testdrive 169`
Then use a sample app to send it an FCM message when it is not running.

Bug: 242928495
Change-Id: I55c56601af4eb60173ae039d8de7f9e7916c81e8
Merged-In: I55c56601af4eb60173ae039d8de7f9e7916c81e8
(cherry picked from commit 84c7a05dbb)
2022-10-04 19:38:36 +00:00
John Wu
d75844cf9a Do not resolve ActivityInfo in navigateUpTo
During navigateUpTo, it will first resolve the activity before creating
the ActivityStarter. This bypasses the explicit intent filter
enforcement introduced in T, exposing a security flaw that allows
non-matching intents to be delivered to components.

Bug: 238602879
Test: atest CtsWindowManagerDeviceTestCases
Change-Id: I9aa3e27f753f2f809e74a8f421f8b68e4d610702
Merged-In: I9aa3e27f753f2f809e74a8f421f8b68e4d610702
2022-10-04 08:23:17 +00:00
Alexander Roederer
502dbc10a7 Document fullScreenIntent requires IMPORTANCE_HIGH
Adds documentation mentioning that full screen intent requires
not just calling setFullScreenIntent, but also posting the
notification to a channel with importance set to IMPORTANCE_HIGH.
This is currently checked by NotificationInterruptStateProviderImpl,
in shouldLaunchFullScreenIntentWhenAdded.

Bug: 232793248
Test: Only documentation change
Change-Id: Ia9f90464c6f1125339e5d4ebef791c449d01febc
2022-09-29 00:40:21 +00:00
Gautam Shende
4eae272a4f Set dimensional logging info to null for media pass.
Also adds logging only value to template type enum.

Bug: 235615616
Test: Unit-tests.
Change-Id: If526ee4233ad3983956c4e156b20a7e4a3c9f9bc
changekind: TRIVIAL_REBASE
2022-09-27 20:32:29 +00:00
wilsonshih
597e72635f Allow to disable showing starting window when start from recents
For now only support startActivityFromRecents.
Use ActivityOptions#setDisableStartingWindow to disable showing the
starting window for current launch.

Bug: 202826469
Test: call setDisableStartingWindow in TaskView#launchTask, verify no
starting window for that launch.

Change-Id: I6151c1b4c45f424b46a957846539e3345d919de8
2022-09-27 20:02:26 +08:00
Joanne Chung
990b2f2682 Merge "[DO NOT MERGE] Revert "Revert "[DO NOT MERGE] Remove selection toolbar code from build time""" into tm-qpr-dev 2022-09-23 09:05:50 +00:00
Hui Wu
1a25dca0bc Remove impl of cloudsearch api
Bug: 246376638
Test: Manually Tested
Change-Id: I1740d5e1a0fb25a0fedea0a92e8a901684e35635
2022-09-22 15:08:56 -07:00
Julia Reynolds
23ffc379fe Merge "Fix NPE" into qt-dev am: 261b601d25
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19886859

Change-Id: I1d34705e2995a26c7f396fef7027031d62010990
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-22 19:31:57 +00:00
Julia Reynolds
812f10cff1 Merge "Fix NPE" into sc-v2-dev am: 70cc3c99d3 am: 1cdad7c9ae
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19886854

Change-Id: I6f175a177d4dca48cd383782617cfbf975e58790
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-22 17:25:27 +00:00
Julia Reynolds
1cdad7c9ae Merge "Fix NPE" into sc-v2-dev am: 70cc3c99d3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19886854

Change-Id: Id6b047d1c50f922da3b54cfc00a5251c1df711e9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-22 17:21:09 +00:00
Joanne Chung
8be1773964 [DO NOT MERGE] Revert "Revert "[DO NOT MERGE] Remove selection toolbar code from build time""
This reverts commit 888e79f7a0.

Reason for revert: The feature is planned in QPR2. This should be removed before QPR1 deadline.

Change-Id: I8af811935171d7ff51d9ba2a9ea60437695d7966
2022-09-20 02:23:28 +00:00
Darrell Shi
05dfa43c03 Merge "DO NOT MERGE: add interim startDream api." into tm-qpr-dev 2022-09-15 16:00:34 +00:00
Lee Shombert
a6b4f410f2 Refactor PropertyInvalidatedCache locks
Bug: 241763149

Refactor the sCorkLock into sCorkLock, which protects code that
specifically supports corking, and sGlobalLock, which protects all
other code that touches global objects (like the list of all caches).

Deadlock was not actually observed in the bug and has never been
reported, but the possibility was identified and is being fixed here.

Bypass the bulk of disableLocal(name) if the name has already been
bypassed.  This speeds repeated calls to disableLocal() by not
iterating over sCaches.

Many threads were terminated by a watchdog while iterating over
sCaches inside disableLocal().  It is not known why this block of code
was running so often when the time out expired.

An open question is whether or not disabled caches should be removed
from the sCaches array.  The only reason to leave them in the array is
to report on them during dumpsys, but this seems like a small benefit

Test: atest
 * FrameworksCoreTests:IpcDataCacheTest
 * FrameworksCoreTests:PropertyInvalidatedCacheTests
 * CtsOsTestCases:IpcDataCacheTest
Change-Id: I4c298f380044c0be93cdb47d66d7d7e2b260004f
2022-09-14 23:59:46 +00:00
Darrell Shi
93e654d66c DO NOT MERGE: add interim startDream api.
DreamManager#startDream has been updated on QPR and master which removes
the unnecessary component name parameter, but it breaks TM CTS tests.
The interim api added in this change will prevent breakage on TM, and
should not be merged downstream.

Test: atest DreamManagerServiceTests
Fix: 245223722
Fix: 245058392
Fix: 245070240
Change-Id: Id9e8cc67003da9fc3e03bffd6ec50643d10652b5
2022-09-14 20:42:20 +00:00
TreeHugger Robot
efff8e9f03 Merge "Only use return transition when requested." into tm-qpr-dev 2022-09-10 00:00:16 +00:00
Julia Reynolds
e51c402650 Fix NPE
Test: NotificationChannelGroupTest
Test: view notification settings for an app that doesn't use groups
Fixes: 244574602
Bug: 241764350
Bug: 241764340
Bug: 241764135
Bug: 242702935
Bug: 242703118
Bug: 242703202
Bug: 242702851
Bug: 242703217
Bug: 242703556
Change-Id: I9c681106f6d645e62b0e44903d40aa523fee0e95
(cherry picked from commit 6f02c07176)
Merged-In: I9c681106f6d645e62b0e44903d40aa523fee0e95
2022-09-08 20:51:08 +00:00
Julia Reynolds
a375542897 Fix NPE
Test: NotificationChannelGroupTest
Test: view notification settings for an app that doesn't use groups
Fixes: 244574602
Bug: 241764350
Bug: 241764340
Bug: 241764135
Bug: 242702935
Bug: 242703118
Bug: 242703202
Bug: 242702851
Bug: 242703217
Bug: 242703556
Change-Id: I9c681106f6d645e62b0e44903d40aa523fee0e95
(cherry picked from commit 6f02c07176)
2022-09-08 14:05:01 +00:00
Julia Reynolds
ad30b85784 Fix NPE
Test: NotificationChannelGroupTest
Test: view notification settings for an app that doesn't use groups
Fixes: 244574602
Bug: 241764350
Bug: 241764340
Bug: 241764135
Bug: 242702935
Bug: 242703118
Bug: 242703202
Bug: 242702851
Bug: 242703217
Bug: 242703556
Change-Id: I9c681106f6d645e62b0e44903d40aa523fee0e95
(cherry picked from commit 6f02c07176)
2022-09-08 14:04:25 +00:00
Julia Reynolds
02e177caeb Fix NPE
Test: NotificationChannelGroupTest
Test: view notification settings for an app that doesn't use groups
Fixes: 244574602
Bug: 241764350
Bug: 241764340
Bug: 241764135
Bug: 242702935
Bug: 242703118
Bug: 242703202
Bug: 242702851
Bug: 242703217
Bug: 242703556
Change-Id: I9c681106f6d645e62b0e44903d40aa523fee0e95
(cherry picked from commit 6f02c07176)
2022-09-08 14:03:53 +00:00
Julia Reynolds
410a197948 Fix NPE
Test: NotificationChannelGroupTest
Test: view notification settings for an app that doesn't use groups
Fixes: 244574602
Bug: 241764350
Bug: 241764340
Bug: 241764135
Bug: 242702935
Bug: 242703118
Bug: 242703202
Bug: 242702851
Bug: 242703217
Bug: 242703556
Change-Id: I9c681106f6d645e62b0e44903d40aa523fee0e95
(cherry picked from commit 6f02c07176)
2022-09-08 14:03:27 +00:00
Julia Reynolds
c23f14f874 Fix NPE
Test: NotificationChannelGroupTest
Test: view notification settings for an app that doesn't use groups
Fixes: 244574602
Bug: 241764350
Bug: 241764340
Bug: 241764135
Bug: 242702935
Bug: 242703118
Bug: 242703202
Bug: 242702851
Bug: 242703217
Bug: 242703556
Change-Id: I9c681106f6d645e62b0e44903d40aa523fee0e95
(cherry picked from commit 6f02c07176)
2022-09-08 14:02:17 +00:00
Julia Reynolds
6527863444 Merge "Fix NPE" into tm-qpr-dev 2022-09-08 14:01:08 +00:00
Yuri Lin
e5fdd7f0de Merge "Trim any long string inputs that come in to AutomaticZenRule" into qt-dev am: 380ec03dee
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19816794

Change-Id: I86c52b898436188c231a44b342c0ccd1672e07dd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-06 23:34:37 +00:00
Yuri Lin
bb36470dd7 Merge "Trim any long string inputs that come in to AutomaticZenRule" into tm-dev am: de7b49d170
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19816377

Change-Id: I8e5403cb24fa43ff6bedadab41d14470c1884b2e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-06 23:22:43 +00:00