Commit Graph

23886 Commits

Author SHA1 Message Date
Louis Chang
e20ffee9dd Merge "Move the task to back while pressing back on the last activity" into tm-qpr-dev am: b73cda834c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20278150

Change-Id: I2b133d0cd5ea3dcb8ce038f1972f778c30048006
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-17 00:45:22 +00:00
Louis Chang
b73cda834c Merge "Move the task to back while pressing back on the last activity" into tm-qpr-dev 2022-11-17 00:21:08 +00:00
Andrew Solovay
2494f41663 docs: Removed suggestion to use deprecated API am: 3fa450061e am: b5b166299e am: ee98ff1a41
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20328313

Change-Id: I0978c1a472f03ad5080d575de840cc179fb58dbd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-16 19:29:37 +00:00
Andrew Solovay
ee98ff1a41 docs: Removed suggestion to use deprecated API am: 3fa450061e am: b5b166299e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20328313

Change-Id: Ib07ff1782e0effb7274175d297f13548fc7e020e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-16 18:59:23 +00:00
Andrew Solovay
b5b166299e docs: Removed suggestion to use deprecated API am: 3fa450061e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20328313

Change-Id: I931090d7ec257ef1f757fe7496a579999e7f4bb3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-16 18:38:20 +00:00
Andrew Solovay
3fa450061e docs: Removed suggestion to use deprecated API
IntentService is deprecated, and had suggested devs use WorkManager or JobIntentService instead, but IntentService is now deprecated too. Per communication with WorkManager owner, just deleted the reference to JobIntentService.

Per Bart, it's okay to submit docs-only changes to tm-dev so they go live before the U preview.

Change-Id: I57aacc8f55f93edf0a1d76bf6fa3fc73974a50af
Test: [go/abtd docs build]
Bug: 256197684
2022-11-16 18:18:07 +00:00
Brad Hinegardner
b41c8457fc Merge changes I2888dd87,I3390a5ba,I957a504c into tm-qpr-dev am: 215df5f35b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20469936

Change-Id: Ib9643d9d861e0e0e2dd96af9037315e250d9ea56
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-16 15:46:38 +00:00
Brad Hinegardner
215df5f35b Merge changes I2888dd87,I3390a5ba,I957a504c into tm-qpr-dev
* changes:
  Change source of camera quick affordance launch
  Add additional Camera Launch Source to StatusBarManager to not conflict with camera double tap gesture source
  Create Camera Prebuilt quick affordance
2022-11-16 15:30:21 +00:00
Louis Chang
99b9449724 Move the task to back while pressing back on the last activity
... of the secondary (or the primary) container.

The primary container was removed along with the secondary container
while the last Activity in the secondary container was finished by
back event. Therefore, starting window will be shown if starting the
app again from Launcher.

However, the last Activity in the secondary container should be
considered as a relative task root if the Activity is displayed
adjacently or being a companion with the task root activity.
The task should be moved to back vs. finishes the Activities to
speed up the launch next time, like commit 2dec42fa does.

Bug: 240669850
Test: launch Settings
Test: atest WindowOrganizerTests
Change-Id: I13b33afb8602f63062f6b33742453c3e93fdfc20
2022-11-16 02:26:37 +00:00
TreeHugger Robot
774a787a80 Merge "Add IPC latency in extras." into tm-qpr-dev am: 9d3dbd19c6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20446695

Change-Id: I535746872431fbec2b6ac5bcbccc0dd73fe3c419
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-16 01:25:25 +00:00
Holly Sun
955c845301 Add IPC latency in extras.
Bug: 255527960
Test: build and flash to phone
Change-Id: I5ad830d96e9aa2f3b285fd7ed59f67e0070c4dcf
2022-11-15 14:08:08 -08:00
Cole Faust
d3c499dabc Merge "Fix errorprone warnings that should be errors" am: 677d6cd780 am: f9df26ae3c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2256563

Change-Id: I8090e254f06a3b5fc7e9b23fdae6c5bd3db230c5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-15 19:37:15 +00:00
Cole Faust
f9df26ae3c Merge "Fix errorprone warnings that should be errors" am: 677d6cd780
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2256563

Change-Id: I0e9c5077610407a117ee34ff688b40b52e161a03
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-15 19:11:55 +00:00
Brad Hinegardner
cee121b9ee Add additional Camera Launch Source to StatusBarManager to not conflict with camera double tap gesture source
Bug: 254333599
Test: New Unit test, verified manually via toggling flag and activating camera quick affordance
Change-Id: I3390a5baabc20a194198b8b81481aee9debde8ba
2022-11-15 12:29:01 -05:00
Cole Faust
7da659bb6c Fix errorprone warnings that should be errors
This commit is part of a large scale change to fix errorprone
errors that have been downgraded to warnings in the android
source tree, so that they can be promoted to errors again.
The full list of changes include the following, but not all
will be present in any one individual commit:

BadAnnotationImplementation
BadShiftAmount
BanJNDI
BoxedPrimitiveEquality
ComparableType
ComplexBooleanConstant
CollectionToArraySafeParameter
ConditionalExpressionNumericPromotion
DangerousLiteralNull
DoubleBraceInitialization
DurationFrom
DurationTemporalUnit
EmptyTopLevelDeclaration
EqualsNull
EqualsReference
FormatString
FromTemporalAccessor
GetClassOnAnnotation
GetClassOnClass
HashtableContains
IdentityBinaryExpression
IdentityHashMapBoxing
InstantTemporalUnit
InvalidTimeZoneID
InvalidZoneId
IsInstanceIncompatibleType
JUnitParameterMethodNotFound
LockOnBoxedPrimitive
MathRoundIntLong
MislabeledAndroidString
MisusedDayOfYear
MissingSuperCall
MisusedWeekYear
ModifyingCollectionWithItself
NoCanIgnoreReturnValueOnClasses
NonRuntimeAnnotation
NullableOnContainingClass
NullTernary
OverridesJavaxInjectableMethod
ParcelableCreator
PeriodFrom
PreconditionsInvalidPlaceholder
ProtoBuilderReturnValueIgnored
ProtoFieldNullComparison
RandomModInteger
RectIntersectReturnValueIgnored
ReturnValueIgnored
SelfAssignment
SelfComparison
SelfEquals
SizeGreaterThanOrEqualsZero
StringBuilderInitWithChar
TreeToString
TryFailThrowable
UnnecessaryCheckNotNull
UnusedCollectionModifiedInPlace
XorPower

See https://errorprone.info/bugpatterns for more
information on the checks.

Bug: 253827323
Test: m RUN_ERROR_PRONE=true javac-check
Change-Id: I8446f9076a45ebf7e7ffa06cb0d4ddb1001b6c00
2022-11-14 17:57:30 -08:00
Jeff Sharkey
d5251a46f2 Merge "Expand UiAutomation OWNERS to include IUiAutomation AIDL." am: 709357213d am: ae4b67dc4e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2295981

Change-Id: I408d368796c06c495ae26308474a5f34136bae8d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-10 16:54:24 +00:00
Jeff Sharkey
ae4b67dc4e Merge "Expand UiAutomation OWNERS to include IUiAutomation AIDL." am: 709357213d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2295981

Change-Id: I5c9ab1046ca79be349f7989fa6788cfd4c3da96f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-10 16:12:37 +00:00
Jeff Sharkey
709357213d Merge "Expand UiAutomation OWNERS to include IUiAutomation AIDL." 2022-11-10 15:46:10 +00:00
Xiang Wang
9599675847 Merge "Add owners to GameMode* files" am: 4ca2015e9f am: 644aaa561e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2292606

Change-Id: Ia06103f0326c05fd8cef8e0e6a9e90e47ba10c7e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-10 13:00:09 +00:00
Bill Yi
3760f9b7db Merge "Merge TP1A.221105.002 to aosp-master - DO NOT MERGE" 2022-11-09 22:54:28 +00:00
Daniel Norman
686c971ece Expand UiAutomation OWNERS to include IUiAutomation AIDL.
Change-Id: I4cb112a47309d66be2c578740861004b505fda29
2022-11-09 22:13:03 +00:00
Xiang Wang
644aaa561e Merge "Add owners to GameMode* files" am: 4ca2015e9f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2292606

Change-Id: I73fb98159634a2f21df790e7cd1d84706276ff2d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-09 19:52:12 +00:00
Xiang Wang
4ca2015e9f Merge "Add owners to GameMode* files" 2022-11-09 19:18:55 +00:00
Chris Poultney
9d4472b7e8 Merge "Lock screen live wallpaper: add home/lock screen flag as argument." into tm-qpr-dev am: ff75ef23a2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20404658

Change-Id: Ia1a2de7c9ac9c26c3768b3dc0b6586c2ffcfa4b5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-09 16:11:36 +00:00
Chris Poultney
ff75ef23a2 Merge "Lock screen live wallpaper: add home/lock screen flag as argument." into tm-qpr-dev 2022-11-09 15:46:08 +00:00
Bill Yi
0de01a9871 Merge TP1A.221105.002 to aosp-master - DO NOT MERGE
Merged-In: I7caa2e966bae2ec146ca77b36d2a467d746e2531
Merged-In: I361e8838571ab7b3f19778833b820f0b1b584d94
Merged-In: I361e8838571ab7b3f19778833b820f0b1b584d94

Change-Id: Ic9224a1948b26c8703a272aa3b26337e0586f3e3
2022-11-09 06:33:42 +00:00
Xiang Wang
1f24e88039 Add owners to GameMode* files
Bug: b/243448953
Test: n/a
Change-Id: I8f5dd5e01a16afea8d0d9c8133dd096287469fc8
2022-11-08 18:09:47 -08:00
Chris Poultney
ad3d3b20ec Lock screen live wallpaper: add home/lock screen flag as argument.
Adds home/lock screen flag to getWallpaperComponent methods. These
implementations are stubs and will be implemented in master.

Bug: 253481667
Test: TreeHugger
Change-Id: Ia032b78cfa3acb1895e9d74f1793859ef8468c20
2022-11-08 18:58:38 +00:00
Joanne Chung
cca384ebb2 Merge "Dump App exit reason if the remote service died." into tm-qpr-dev am: 055796e826
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20392455

Change-Id: I83fa75898fcd5894e4dcc8d659e5035b4afce60d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-08 11:15:12 +00:00
Jeff Sharkey
27fdefde74 Merge "Add OWNERs for the android.app.ForegroundService*" am: 793ebebfe1 am: 946f42e249
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2290479

Change-Id: Ia6a2f1a3f4a7c5bf0fbc094c6c54673f637fc706
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-07 23:39:37 +00:00
Jeff Sharkey
946f42e249 Merge "Add OWNERs for the android.app.ForegroundService*" am: 793ebebfe1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2290479

Change-Id: I2fa90b84a5bcdfb1d3f3d537e9f7ef08863734c0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-07 23:12:20 +00:00
Jing Ji
78e6de07b0 Add OWNERs for the android.app.ForegroundService*
Test: m
Change-Id: If7acf753b3bd9cbe2a6f07518e4a88ef552c379d
2022-11-07 14:16:05 -08:00
Joanne
908ee5ed9d Dump App exit reason if the remote service died.
We received many bugs the ContentCaptureService entered zombie
state but we don't know the reason why the process died. The issue
timing didn't be captured in bugreport.

Currently, the AbstractRemoteService will enter an odd state if the
service cannot be reconnected. This state does not allow the requests
be sent until the service be reconnected again on an unknown timing.
In some cases, it is expected the service will not be reconnected.
e.g. app stop from settings. We should fix the problem in the
AbstractRemoteService but before doing this, we try to add debugging
signal in bugreport to help us understand if the existing issues come
from this odd state for reasonable reasons.

The change was merged in master so skip automerge. The minor change
here will have a seperate change in master.

Bug: 248218072
Bug: 250859760
Test: disable app and dumpsys content_capture
Change-Id: Ia33462006a3925754001562b0d80540b9b0bc45d
Merged-in: Ia33462006a3925754001562b0d80540b9b0bc45d
(cherry picked from commit d060ed5697)
2022-11-07 12:40:48 +00:00
TreeHugger Robot
7273e4b03b Merge "Inform Assistant visible activity when the stage of activity lifecycle is invoked." into tm-qpr-dev am: d35150f907
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20308987

Change-Id: I87b31354db0a112cb2481e1d1654d2e5ca1a7c95
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-03 04:59:14 +00:00
TreeHugger Robot
d35150f907 Merge "Inform Assistant visible activity when the stage of activity lifecycle is invoked." into tm-qpr-dev 2022-11-03 04:11:11 +00:00
Thiébaud Weksteen
c0c3bb836c Add PermissionEnforcer class am: ec0d763059 am: 0c93fbab73
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2272966

Change-Id: I1d14cb0d037e5aee44447b057867e09ce781c0d6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-03 00:05:22 +00:00
Thiébaud Weksteen
0c93fbab73 Add PermissionEnforcer class am: ec0d763059
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2272966

Change-Id: If59d54d09ee650643d28b26ef41c245acea74f2a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-02 23:36:55 +00:00
TreeHugger Robot
49c3053dbf Merge "Add topActivity to the list of states that task organizer cares." into tm-qpr-dev am: ed12a6b75e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20341413

Change-Id: Ic58651238801f83decca97823635c1e1cb500164
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-02 00:17:47 +00:00
Josh Yang
453585f2b2 Add topActivity to the list of states that task organizer cares.
Bug: 256215798
Test: manual test
Change-Id: I4f9a3d6feed7dfbac9f53659a850ec3d237cebaf
2022-11-01 17:21:16 +00:00
Peter Li
eedc06b463 Inform Assistant visible activity when the stage of activity lifecycle is invoked.
By the original design, we register the activity event in the
ActivityManagerService. After getting the activity event, we will
query current visible activities and report them to Assistant.
Assistant will start to get direct actions of those visible
activities. But sometimes they can not get the direct actions
due to the stage of activity lifecycle before onStart().

We change the logic to make sure that the stage of visible
activity that we reported to the Assistant is after onStart().

Bug: 235296082
Test: atest VoiceInteractionSessionVisibleActivityTest
Test: atest android.app.activity.ActivityThreadClientTest
Test: atest android.view.DisplayTest
Test: atest android.window.ConfigurationHelperTest
Test: atest android.window.SizeConfigurationBucketsTest
Change-Id: Ie439ff3706dab35e875c1eb995a67fa73aec4d76
(cherry picked from commit 29bb3a3428)
Merged-In: Ie439ff3706dab35e875c1eb995a67fa73aec4d76
2022-11-01 09:19:51 +00:00
TreeHugger Robot
b0a9462be1 Merge "Add logs for wallpaper set completion" into tm-qpr-dev am: e91f8da432
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20291664

Change-Id: Ie291947b6c9cfa2c449065be03b47e1b97d87454
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-01 05:24:29 +00:00
Thiébaud Weksteen
ec0d763059 Add PermissionEnforcer class
Defines a new PermissionEnforcer class used to check permission as part
of the @EnforcePermission AIDL annotation. It is registered as a system
service to avoid the cost of creating a new object for each new client.

Bug: 234083358
Test: TH
Change-Id: I2bd23f62a0d207ddac6bbe69666ced96e77ba16f
Merged-In: I2bd23f62a0d207ddac6bbe69666ced96e77ba16f
2022-10-27 12:12:11 +11:00
Ahan Wu
dfc876bef7 Add logs for wallpaper set completion
Add logs to see the whole process of wallpaper set completion.

Bug: 248842910
Test: manually checking logs
Change-Id: I4f68407ee9d20497a748d01efc76ca25c7dbebf9
2022-10-26 17:03:43 +00:00
Riddle Hsu
ada9d7accb Merge "Only set locale in config for updating locale" into tm-qpr-dev am: b553c74619
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20235235

Change-Id: I1cb0b923aa4673e4d04abbf65f143d142cdb0ac5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-25 13:40:11 +00:00
Riddle Hsu
b553c74619 Merge "Only set locale in config for updating locale" into tm-qpr-dev 2022-10-25 13:07:32 +00:00
Julia Reynolds
33f3cd67e7 Merge "Fix notification tests" into tm-qpr-dev am: 79cf8d64b7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20239847

Change-Id: Iacaf775a80e36d067a3ef6190c8bfeca8d9d52d1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-21 14:10:33 +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
Zimuzo Ezeozue
13067850e6 Merge changes from topic "aidl_trace" am: e75a6f8696 am: 7a54741e61
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2254718

Change-Id: I876702d1964ac6e065e4f829a5c06a4ea32a4b84
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-19 18:12:51 +00:00
Zimuzo Ezeozue
7a54741e61 Merge changes from topic "aidl_trace" am: e75a6f8696
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2254718

Change-Id: Iaa231773191a436e176730d0fb5ae1a9965d71ff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-19 17:45:02 +00:00