Commit Graph

24193 Commits

Author SHA1 Message Date
Hui Wu
8ad644d560 Merge "Remove impl of cloudsearch api" into tm-qpr-dev am: aa0ffaee0d am: 9af4e0bd3d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20019599

Change-Id: I39d3d6c07594b2e99d773a0feb46127dfa19e55d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-23 07:42:46 +00:00
Hui Wu
9af4e0bd3d Merge "Remove impl of cloudsearch api" into tm-qpr-dev am: aa0ffaee0d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20019599

Change-Id: I8475cd36abd09908238d7e996dcc9f5dbf14b784
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-22 22:50:42 +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
Jeff Chang
80e44b8292 Merge "Remove duplicated white space in ContextImpl when throw AndroidRuntimeException" am: 67d1bacd75 am: 5998e8c203 am: 96b69de42f am: e302eeec12 am: 1c5e0a84df
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2219559

Change-Id: I657072269483725ca7ebe6a1c6ce82abe24631f3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-22 15:23:58 +00:00
Jeff Chang
1c5e0a84df Merge "Remove duplicated white space in ContextImpl when throw AndroidRuntimeException" am: 67d1bacd75 am: 5998e8c203 am: 96b69de42f am: e302eeec12
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2219559

Change-Id: Icb4ba4d67c5587f1276ccdc3a66130bd1be4a6d3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-22 14:32:07 +00:00
Jeff Chang
e302eeec12 Merge "Remove duplicated white space in ContextImpl when throw AndroidRuntimeException" am: 67d1bacd75 am: 5998e8c203 am: 96b69de42f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2219559

Change-Id: Ia6f1ae30a094fe827736e5eeb8614e650ce927b8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-22 13:21:11 +00:00
Jeff Chang
96b69de42f Merge "Remove duplicated white space in ContextImpl when throw AndroidRuntimeException" am: 67d1bacd75 am: 5998e8c203
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2219559

Change-Id: Id12ed0e37db2e537f1990092648fce39d7c057da
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-22 12:35:40 +00:00
Jeff Sharkey
1f139a5b73 Merge changes from topic "sep21"
* changes:
  Initial pass at "Snowbird" broadcast queue.
  [9/?] Reduce BroadcastQueue interface complexity.
2022-09-21 18:24:31 +00:00
Riddle Hsu
7735233e30 Merge "Print duration in event log of major activity lifecycle" 2022-09-20 12:54:32 +00:00
Riddle Hsu
9ae09bc232 Print duration in event log of major activity lifecycle
To distinguish the cost in the implementation of application.

Bug: 206872204
Test: Launch activity and check "adb logcat -b events | grep wm_on"
Change-Id: Id8254de3ec1b0629f6322722c1f84703efbc3a62
2022-09-20 16:52:43 +08:00
Nate Myren
bac52cf51e Merge "Revert "Revert "Add GET_USAGE_STATS to RUNTIME_AND_APPOP_PERMISS..."" 2022-09-19 21:10:58 +00:00
Julia Reynolds
abe1d6ae9e Merge "Unhide CallStyle call type" 2022-09-19 17:08:58 +00:00
Shen Lin
f6ca5e5fbf Remove duplicated white space in ContextImpl when throw AndroidRuntimeException
Change-Id: Ica74e4a6754256efeec07ddbdb37536004a25867
Test: atest CtsActivityManagerDeviceTestCases:StartActivityTests
Bug: 247465690
2022-09-19 09:03:03 +00:00
Julia Reynolds
e672bbf79b Unhide CallStyle call type
Test: cts NotificationTest
Bug: 242995647
Change-Id: I4a83cb340b4f1a09a6744c628814b1600244cbb1
2022-09-16 15:34:11 -04:00
TreeHugger Robot
5cb56048cb Merge "More minor improvements on users on secondary display APIs." 2022-09-16 18:13:19 +00:00
Jeff Sharkey
f577ac06c6 [9/?] Reduce BroadcastQueue interface complexity.
Adds some additional methods to BroadcastRecord to aid in upcoming
per-process queue changes.

Add UidObserver with default no-op implementation to aid readability
of child classes.

Updates unit tests to acquire relevant locks.

Bug: 243656033
Test: atest CtsContentTestCases:BroadcastReceiverTest
Test: atest FrameworksMockingServicesTests:BroadcastQueueTest
Change-Id: I2ff1e868586861e4dcd6586ad22139ba84eaf39c
2022-09-16 11:45:15 -06:00
Christophe Pinelli
8378ff9423 Merge "Revert^2 "Verify that the component is exported"" 2022-09-16 15:00:46 +00:00
Sally Yuen
60650c6ea7 Merge "Improve pane javadocs" 2022-09-15 20:41:43 +00:00
Christophe Pinelli
f3ef712a28 Revert^2 "Verify that the component is exported"
d84de83dcd

Change-Id: Ie9bf69a7549205b36924e1bb2c450e0961579ecd
2022-09-15 19:53:35 +00:00
Felipe Leme
5cb4bf9d74 More minor improvements on users on secondary display APIs.
- Removed warning on UserManagerService.getUserAssignedToDisplay().
- Improved javadocs on UserManagerInternal and ActivityManager.
- Explicitly throws a UnsupportedOperationException on
  ActivityManager.startUserInBackgroundOnSecondaryDisplay() when it's
  not supported (and add a CTS test for it)
- Don't allow user to be assigned to multiple displays.

Bug: 244644281
Test: atest CtsMultiUserTestCases:android.multiuser.cts.UserManagerTest#testStartUserInBackgroundOnSecondaryDisplay \
            MultipleUsersOnMultipleDisplaysTest:android.multiuser.cts.UserManagerTest#testStartUserInBackgroundOnSecondaryDisplay

Change-Id: I01375d70b746148f99c4a5ff1eea6faf83154a86
2022-09-15 10:54:23 -07:00
Evan Severson
1a68c61814 Merge changes I0cab94ba,I73672b59
* changes:
  Add event log for uid state tracker in dumpsys
  Extract uid state foreground logic from AppOpsService
2022-09-15 17:54:05 +00:00
Chavi Weingarten
4960560d62 Merge "Migrate screen capture code to ScreenCapture file" 2022-09-15 17:35:56 +00:00
Lee Shombert
0c76fb1185 Merge "Refactor PropertyInvalidatedCache locks" into tm-qpr-dev am: ab5c609adb am: 21085953e7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19903012

Change-Id: I756ac1192fdbefe56d82fb3334bbe2ef1a0cf730
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-15 16:29:08 +00:00
Darrell Shi
3a8fcd0b27 DO NOT MERGE: add interim startDream api. am: 93e654d66c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19901885

Change-Id: I9a71dac740cb498ed64aaecf2e6c7556bf6fc57e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-15 16:11:48 +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
21085953e7 Merge "Refactor PropertyInvalidatedCache locks" into tm-qpr-dev am: ab5c609adb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19903012

Change-Id: Ic9e62660a7e336afff16eb3cb50e682f7be44067
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-15 15:57:26 +00:00
Zimuzo Ezeozue
c8287e3b44 Merge "Clean up binder txn tracking special case" 2022-09-15 07:29:07 +00:00
TreeHugger Robot
830d58784a Merge "Add shouldForceCollectOp to appOpInfo" 2022-09-15 05:22:31 +00:00
Lili Zou
0db6084004 Merge "Unhide constant AmbientContextEvent.EVENT_BACK_DOUBLE_TAP." 2022-09-15 05:20:49 +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
Evan Severson
b574e1c62f Extract uid state foreground logic from AppOpsService
Bug: 241447638
Test: CtsAppOpsTestCases, CtsAppOpsTestCases2
Change-Id: I73672b592f6b8548fb33692f63aca8dcb83a85c9
2022-09-14 16:53:18 -07:00
Nate Myren
9453f928c8 Add shouldForceCollectOp to appOpInfo
This allows us to manually specify which app op should have noteOp
events collected for them, if applicable

Bug: 44518166
Test: manual
Change-Id: I3988679fd9b8ccedde37a47cacc0ac2c276b78e6
2022-09-14 16:14:27 -07:00
Sam Saccone
ae74c8cc34 Merge "Revert "Verify that the component is exported"" 2022-09-14 23:11:10 +00:00
Domen Su
d84de83dcd Revert "Verify that the component is exported"
Revert submission 19776394-safer-implicit-intents

Reason for revert: DroidMonitor: Potential culprit for Bug b/246818637 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.
Reverted Changes:
I66227a4fa:Update PackageManager test in Car to adapt to safe...
I779f3d6ee:CTS tests for safer implicit intents
I41c48a412:Verify that the component is exported

Change-Id: I8484d317afc9a1d845b3394828062615b5fd2066
2022-09-14 22:49:12 +00:00
Treehugger Robot
05156295d8 Merge "Fix error log message for rename(2) workaround" am: 4ed8f88e27 am: b9d3702636 am: 095a630735 am: 1d028b0638 am: 943c159a3a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2205599

Change-Id: Ic593adc6112f41e7f2cf043be1ea93aa8ec4f3c2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-14 20:49:00 +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
Christophe Pinelli
44c0ac96b9 Merge "Verify that the component is exported" 2022-09-14 17:03:56 +00:00
Chavi Weingarten
2b7f2aee30 Migrate screen capture code to ScreenCapture file
Test: ScreenshotTests
Bug: 242714168
Change-Id: I8061f1717cc4e293ee07672d6d415c2c36010ccd
2022-09-14 15:35:46 +00:00
Lili Zou
09e6beedf5 Unhide constant AmbientContextEvent.EVENT_BACK_DOUBLE_TAP.
Test: local build mma
Test: "atest CtsAmbientContextServiceTestCases",
Test: "atest FrameworksServicesTests:AmbientContextManagerServiceTest"
BUG: 242480433
Change-Id: I0c73ad5d416523cdb90300c8aa00ad22f901342d
2022-09-14 10:08:18 +08:00
Treehugger Robot
943c159a3a Merge "Fix error log message for rename(2) workaround" am: 4ed8f88e27 am: b9d3702636 am: 095a630735 am: 1d028b0638
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2205599

Change-Id: If41a6e82816609a1fd3c9e0b345c32476cf66b89
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-13 23:34:51 +00:00
Treehugger Robot
1d028b0638 Merge "Fix error log message for rename(2) workaround" am: 4ed8f88e27 am: b9d3702636 am: 095a630735
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2205599

Change-Id: I5dee42414f2f57d4e094052e835f8d9fff233be1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-13 23:05:34 +00:00
Treehugger Robot
095a630735 Merge "Fix error log message for rename(2) workaround" am: 4ed8f88e27 am: b9d3702636
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2205599

Change-Id: I9a2bdfbdce92d1e1869e87344ecf032524576006
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-13 22:38:11 +00:00
Zim
fe43ff2732 Clean up binder txn tracking special case
Previously, binder txns were only traced for txns from sysui/launcher
to system_server.

ag/Iffc4bb534d239c07d2e4d43ab43a9ed76abe7496 enabled binder txn tracking
more broadly

Removed the special case for sysui/launcher and cleaned up the code

Test: Manual
Bug: 161393989
Change-Id: I9d46d2362ca0ca33bc2477d68092f7ba5fe9c8ac
2022-09-13 15:18:55 +01:00
Han Wang
b18b1084b3 Fix error log message for rename(2) workaround
Change-Id: I36e8bf415a767078e9c5e8fa0c93d608711d8882
2022-09-13 13:45:13 +00:00
Sally Yuen
2577cc6ceb Improve pane javadocs
Suggest activity titles in setAccessibilityPane
Reference panes in Fragment

Bug: 244788390
Test: n/a
Change-Id: I8d12fe3879d2d05f49e68660af3b181d1dfca229
2022-09-12 23:53:24 +00:00
Nate Myren
ae4f3b3f48 Revert "Revert "Add GET_USAGE_STATS to RUNTIME_AND_APPOP_PERMISS..."
Revert submission 19731948-revert-19682544-usage-stats-KQUAEDTEBI

Reason for revert: reimplementing
Reverted Changes:
I9f2da8d32:Revert "Add GET_USAGE_STATS to RUNTIME_AND_APPOP_P...
I2cdd6f7fa:Revert "Add test for app op permission mappings"

Change-Id: I3612c73c66bc43226367b987ad3c456a9892daad
2022-09-12 10:27:19 -07:00
TreeHugger Robot
4fadc17018 Merge "Only use return transition when requested." into tm-qpr-dev am: efff8e9f03 am: b1b41f1887
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19682832

Change-Id: Ia35e92375d0305e078caaccd290357017490fbbd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-10 01:04:50 +00:00
TreeHugger Robot
b1b41f1887 Merge "Only use return transition when requested." into tm-qpr-dev am: efff8e9f03
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19682832

Change-Id: Iaa38ede6dd41b165b2690ac46ce7ffd3fb9d5a86
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-10 00:34:39 +00:00
TreeHugger Robot
efff8e9f03 Merge "Only use return transition when requested." into tm-qpr-dev 2022-09-10 00:00:16 +00:00
TreeHugger Robot
863434e464 Merge "Change getWifiSsidPolicy Java Doc" 2022-09-09 22:16:02 +00:00