summaryrefslogtreecommitdiff
path: root/core/java/android/app/ContextImpl.java
Commit message (Collapse)AuthorAgeFilesLines
* Add excludedPackages parameter to broadcastEvan Severson2022-05-111-23/+24
| | | | | | | | | | | | | | | This parameter is useful for when a broadcast's intent is not targeting specific package and it is not wanted to be delievered to a specific one. Test: Install two apps and create shell command argument to exlude packages, verify the correct packages can receive or get skipped. Verified with manifest and registered receivers. Bug: 231635380 Bug: 210118427 Merged-In: I9a331f71c7052b294d4eada0f0f658dba989d881 Change-Id: I9a331f71c7052b294d4eada0f0f658dba989d881
* Merge "Capture the contents of a single task" into tm-devNaomi Musgrave2022-03-171-0/+6
|\
| * Capture the contents of a single taskNaomi Musgrave2022-03-151-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduces layer mirorring of a single task, given the task is both identified (future work - dependency on setup flow in SysUI) and the flag is enabled (currently disabled). Error handling (tearing down the VirtualDisplay if task recording setup failed) will come in a future change Bug: 216625226 Test: atest WmTests:DisplayContentTests Test: atest WmTests:ContentRecorderTests Change-Id: I16abd55ce75537ff8fbbb379e4970668ea02a230
* | Rename revokeOwnPermissionsOnKill to revokeSelfPermissionsOnKillThomas Vannet2022-03-161-2/+2
| | | | | | | | | | | | Bug: 215555831 Test: atest android.permission.cts.RevokeSelfPermissionTest Change-Id: I887e2b8a86868352e772537addd8cd20ef305d7b
* | Self-revocation: Call PermissionControllerManager directly from ContextThomas Vannet2022-03-161-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a bug where self-revocation didn't work in multi-user settings. Now the correct context is used throughout the call stack and the permission for the calling user will be revoked. Also added a checked IllegalArgumentException (previously unchecked SecurityException) when trying to revoke a permission that is not currently granted. Test: manual using two users and atest android.permission.cts.RevokeOwnPermissionTest Bug: 218788609 Change-Id: I3dce34b8b956b4d1eb0ac1e34b6fdbf1795aa269
* | Set correct storage path for SDK sandboxSanjana Sunil2022-03-101-1/+1
|/ | | | | | | | | | | | | For WebView to run in an sdk sandbox process, Context.getDataDir() needs to return the shared sandbox storage. This CL sets the value in LoadedApk while binding the application and modifies bindSdkSandbox API to take in the client app package name to use in the path. Test: Manual, check that WebView in sandbox tries to access sandbox shared storage Bug: 216284889 Change-Id: I1f8bb7e533d155050710866b80047ec849a98f35
* KeyguardManager#isDeviceSecure()Xu Cao2022-02-101-0/+8
| | | | | | | | | KeyguardManager#isDeviceSecure() shall return false when called on a virtual display Bug: 210153811 Test: atest CtsVirtualDevicesTestCases:DefaultDisplayIsDeviceSecureTest CtsVirtualDevicesTestCases:StreamedAppBehaviorTest#isDeviceSecure_shouldReturnFalseOnVirtualDisplay Change-Id: I5149b08fde8d3a09e484ea965035bd5e7d2bff7b
* Modify bindSupplementalProcess parametersSanjana Sunil2022-02-081-1/+1
| | | | | | | | | | | | Allow to pass different flags to the API as opposed to setting it to BIND_AUTO_CREATE by default. The API is renamed to bindSupplementalProcess accordingly. Additionally, the process name is allowed to be passed from the caller side. Test: Manual, install suplemental process test apps and see processes Bug: 218314884 Bug: 209058402 Change-Id: I0809f824c64d2512feff44e131c40f0ea8bc8ed3
* Add support for spawning multiple service processesSanjana Sunil2022-02-011-5/+6
| | | | | | | | | | | | | | | | | | | | | Modify activity manager code to allow for multiple processes to be spawned for the same service (non-isolated) having different instance names. A new API is introduced similar to bindService where the app UID associated with the supplemental process service is used as the instance name. The main changes involve distinguishing it from isolated service processes with instance name, removing a check that allows only isolated services to have instance names and using distinguishing process names in the ServiceRecord for the different processes running that service. Bug: 203670795 Bug: 209058402 Test: Manual, installing two Supplemental client apps and attempting to load code from each and examining new processes created. Automated tests are WIP. Change-Id: I2e349412338e6f0cc9cabaefb77fe2413f5850e0
* Rename selfRevokePermissions to revokeOwnPermissionsOnKillThomas Vannet2022-01-211-2/+2
| | | | | | | | Test: atest android.permission.cts.RevokeOwnPermissionTest Bug: 215555831 Bug: 210575642 Bug: 210387494 Change-Id: I94e29f66d13ac76669fab2ccc08879c30c26b7ea
* Merge "Fix IME shrunk by WindowTokenClient mis-detach" into sc-v2-dev am: ↵TreeHugger Robot2022-01-151-1/+10
|\ | | | | | | | | | | | | | | ff6577fd10 am: 4b30a3ee91 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16598426 Change-Id: I7c73497ab7770240e8aadc96c3ef64e5c219cf75
| * Merge "Fix IME shrunk by WindowTokenClient mis-detach" into sc-v2-dev am: ↵TreeHugger Robot2022-01-151-1/+10
| |\ | | | | | | | | | | | | | | | | | | | | | ff6577fd10 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16598426 Change-Id: I2e7b34abfe7769160c383a0774cf3bb9635c46e2
| | * Merge "Fix IME shrunk by WindowTokenClient mis-detach" into sc-v2-devTreeHugger Robot2022-01-151-1/+10
| | |\
| | | * Fix IME shrunk by WindowTokenClient mis-detachMing-Shin Lu2022-01-141-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As CL[1] introduced WindowTokenClient for WindowProviderService (aka the parent class of InputMethodService starts from CL[2]) as a token that IME context can associate with the windowContainer of the InputMethod window in server side. Like the activity context, IME context can adopt configuration/resources update when the IME window changed by display/window changes. And, the IME context caller can also create another type of context with wrapping IME context (i.e. calling createDisplayContext to create a display context), that makes this context can be mixed the window token of WindowProviderService since it's the base context. However, the finalization of the context mixed WindowTokenClient will detach the token when the attached context type is non-window context, this action will mis-detach the token when it managed by WindowProviderService. So like SoftKeyboard previously using createDisplayContext in CL[3] to workaround context resources issues, will in-directly expose this mis-detach token issue as the above. Beside, the handling of WindowTokenClient#{onConfigurationChange, onWindowTokenRemoved} does not thread-safe since this is called from IPC. As the result, the fix is to ignore the check in ContextImpl#finalize to not detach the token when it managed by WindowProviderService, also make sure to post to the main handler when received onConfigurationChanged/onWindowTokenRemoved in WindowTokenClient. Note that this fix could help to resolve "The Window Context should have been attached to a DisplayArea." exception if the token has been detached as the above case that happens before the next WindowProviderService#attachToWindowToken invoked. [1]: I64a1614f32d097785915f6105b1813a929e0fe32 [2]: Ie565e30ed5dd3f2cfe27355a6dded76dc3adc14b [3]: Ic592a1d2fb2da149220c8b503b522b3e864bcc77 Bug: 213118079 Bug: 211062619 Test: manual as steps: 1) adb install -r EditTextVariations.apk 2) adb install -r SoftKeyboard.apk 3) adb shell ime enable com.example.android.softkeyboard/.SoftKeyboard 4) adb shell ime set com.example.android.softkeyboard/.SoftKeyboard5 5) Enable screen auto-rotation 6) Launch EditTextVariations from launcher's shortcut 7) Tap the first EditText field to show IME 8) Rotate the device to the landscape mode 9) Expect the IME should not be shrunk Change-Id: I7beb7a122af93e596239a36db62073233cea0726
* | | | Add self revocation public APIThomas Vannet2022-01-111-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: Manual test using a non-privileged app, atest android.permission.cts.SelfRevokeRuntimePermissionTest When calling the API, the permission (along with any other permissions from the same group) for the current package is downgraded to a one-time permission, and a one-time permission session is started. Bug: 210387494 Change-Id: I9f061cbc8c3db720127c96200fe94a644246b6d7
* | | | Merge "Revert "Adding client side logging for receivers.""TreeHugger Robot2022-01-071-4/+0
|\ \ \ \
| * | | | Revert "Adding client side logging for receivers."Jacob Hobbie2022-01-061-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 2c34dcd95606389ba8b9f9f88de244d640312db1. Reason for revert: Not WAI, logging on user-debug builds (not just eng) and not logging across the binder appropriately Droidfood blocking bug:213406883 Change-Id: Ifff533d280cce22fbf877dd265e4910ab9230943
* | | | | Merge "Adding client side logging for receivers."Jacob Hobbie2022-01-051-0/+4
|\| | | |
| * | | | Adding client side logging for receivers.Jacob Hobbie2021-12-221-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding logging so that we can log wtfs and know where they are coming from without the trace being swallowed by the binder. This will help track down locations where receivers are being registered for non-system broadcasts but aren't specifying the necessary flags. Bug: 161145287 Bug: 207378016 Test: Just adding logging that will be deleted Change-Id: Ib20c4015caf76ae946bbf2a7fc434777856c18fe
* | | | | Merge "Configure allowed/excluded permission list with BroadcastOptions"Oscar Shu2021-12-141-1/+11
|\ \ \ \ \
| * | | | | Configure allowed/excluded permission list with BroadcastOptionsxshu2021-12-071-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add new BroadcastOptions to allow configuring the allowed permission list and excluded permission list. Bug: 197776854 Test: compile Change-Id: I20bca985eb39e199edbbae99cd54f1472dfaf399
* | | | | | Reduce cost of WindowTokenClient config change am: 778c95ce7c am: b6a1d36a9aRiddle Hsu2021-12-131-0/+4
|\ \ \ \ \ \ | |/ / / / / |/| | / / / | | |/ / / | |/| | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16439833 Change-Id: I419e9c42305f3ad271fcb3f774e12474cdf3baaf
| * | | | Reduce cost of WindowTokenClient config change am: 778c95ce7cRiddle Hsu2021-12-131-0/+4
| |\ \ \ \ | | | |/ / | | |/| | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16439833 Change-Id: I61df558230334d1fb9279c69ac91a106f3daec25
| | * | | Reduce cost of WindowTokenClient config changeRiddle Hsu2021-12-131-0/+4
| | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The SizeConfigurationBuckets was used to avoid activity relaunch by insignificant configuration change. Because WindowTokenClient doesn't have relaunch operation, it is unnecessary to use it. Especially Resources#getSizeConfigurations() is a heavy invocation, which may create hundreds of temporal Configuration when calling it in system server. Also fix leakage of SystemUiContext if it is detached, e.g. the associated display is removed. Bug: 207620458 Test: atest WindowContextControllerTest Change-Id: I8388a2ab25f3deed2e29eb5636c4b2130f4f1b87
* | | | Merge "ForegroundServiceDidNotStartInTimeException now has..." into ↵Makoto Onuki2021-11-301-0/+8
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sc-v2-dev am: b344d33561 am: 9a6b5025ce Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16288923 Change-Id: Icf21bafa8aa64bc7f9dd5234fb4f38c50a3a9aef
| * | | Merge "ForegroundServiceDidNotStartInTimeException now has..." into ↵Makoto Onuki2021-11-301-0/+8
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sc-v2-dev am: b344d33561 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16288923 Change-Id: I3c126dd07f78fe8c464dcb7114ea2511925c72e4
| | * | Merge "ForegroundServiceDidNotStartInTimeException now has..." into sc-v2-devMakoto Onuki2021-11-301-0/+8
| | |\ \
| | | * | ForegroundServiceDidNotStartInTimeException now has...Makoto Onuki2021-11-181-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | an inner exception that captures the stacktrace where Context.startForegroundService() was called last time, from the same process. Bug: 124137635 Test: Manual test with a tesapp. 1: when startForegroundService() is called by the same process: ``` 11-17 17:00:12.483 10241 9545 9545 E AndroidRuntime: FATAL EXCEPTION: main 11-17 17:00:12.483 10241 9545 9545 E AndroidRuntime: Process: com.google.omakoto.testapp, PID: 9545 11-17 17:00:12.483 10241 9545 9545 E AndroidRuntime: android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{e7674af u0 com.google.omakoto.testapp/.MyFgs3} 11-17 17:00:12.483 10241 9545 9545 E AndroidRuntime: at android.app.ActivityThread.generateForegroundServiceDidNotStartInTimeException(ActivityThread.java:1965) 11-17 17:00:12.483 10241 9545 9545 E AndroidRuntime: at android.app.ActivityThread.throwRemoteServiceException(ActivityThread.java:1934) 11-17 17:00:12.483 10241 9545 9545 E AndroidRuntime: at android.app.ActivityThread.access$2700(ActivityThread.java:255) 11-17 17:00:12.483 10241 9545 9545 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2190) 11-17 17:00:12.483 10241 9545 9545 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106) 11-17 17:00:12.483 10241 9545 9545 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:201) 11-17 17:00:12.483 10241 9545 9545 E AndroidRuntime: at android.os.Looper.loop(Looper.java:288) 11-17 17:00:12.483 10241 9545 9545 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7839) 11-17 17:00:12.483 10241 9545 9545 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 11-17 17:00:12.483 10241 9545 9545 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) 11-17 17:00:12.483 10241 9545 9545 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003) 11-17 17:00:12.483 10241 9545 9545 E AndroidRuntime: Caused by: android.app.StackTrace: Last startServiceCommon() call for this service was made here 11-17 17:00:12.483 10241 9545 9545 E AndroidRuntime: at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1868) 11-17 17:00:12.483 10241 9545 9545 E AndroidRuntime: at android.app.ContextImpl.startForegroundService(ContextImpl.java:1823) 11-17 17:00:12.483 10241 9545 9545 E AndroidRuntime: at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:779) 11-17 17:00:12.483 10241 9545 9545 E AndroidRuntime: at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:779) 11-17 17:00:12.483 10241 9545 9545 E AndroidRuntime: at com.google.omakoto.testapp.MyReceiver.onReceive(MyReceiver.java:53) 11-17 17:00:12.483 10241 9545 9545 E AndroidRuntime: at android.app.ActivityThread.handleReceiver(ActivityThread.java:4345) 11-17 17:00:12.483 10241 9545 9545 E AndroidRuntime: at android.app.ActivityThread.access$1600(ActivityThread.java:255) 11-17 17:00:12.483 10241 9545 9545 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2102) 11-17 17:00:12.483 10241 9545 9545 E AndroidRuntime: ... 7 more ``` Test: Manual test with a tesapp. 1: when startForegroundService() is called by another process: ``` 11-17 16:59:34.456 10241 9432 9432 E AndroidRuntime: FATAL EXCEPTION: main 11-17 16:59:34.456 10241 9432 9432 E AndroidRuntime: Process: com.google.omakoto.testapp:second, PID: 9432 11-17 16:59:34.456 10241 9432 9432 E AndroidRuntime: android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{dcaa127 u0 com.google.omakoto.testapp/.MyFgs3} 11-17 16:59:34.456 10241 9432 9432 E AndroidRuntime: at android.app.ActivityThread.generateForegroundServiceDidNotStartInTimeException(ActivityThread.java:1965) 11-17 16:59:34.456 10241 9432 9432 E AndroidRuntime: at android.app.ActivityThread.throwRemoteServiceException(ActivityThread.java:1934) 11-17 16:59:34.456 10241 9432 9432 E AndroidRuntime: at android.app.ActivityThread.access$2700(ActivityThread.java:255) 11-17 16:59:34.456 10241 9432 9432 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2190) 11-17 16:59:34.456 10241 9432 9432 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106) 11-17 16:59:34.456 10241 9432 9432 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:201) 11-17 16:59:34.456 10241 9432 9432 E AndroidRuntime: at android.os.Looper.loop(Looper.java:288) 11-17 16:59:34.456 10241 9432 9432 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7839) 11-17 16:59:34.456 10241 9432 9432 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 11-17 16:59:34.456 10241 9432 9432 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) 11-17 16:59:34.456 10241 9432 9432 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003) ``` Change-Id: I2dd8ec76213d53728eaa8fcc3760813d82a328a5
| * | | | [RESTRICT AUTOMERGE] Associate SystemUiContext with DisplayContent am: ↵Charles Chen2021-11-221-24/+35
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 082403816a Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16259164 Change-Id: I5f4fa53bdd66b01d491a7c1ac6dbac1e8ce2bc9e
| | * | | [RESTRICT AUTOMERGE] Associate SystemUiContext with DisplayContentCharles Chen2021-11-181-24/+35
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this CL, SystemUiContexts were fixed to the Display metrics when the SystemUiContexts were created. It is the same mechanism as DisplayContext but applies to SystemUiContexts unexpectedly. This CL makes SystemUiContexts associate with DisplayContent with the corresponding display ID. In this way, SystemUiContext would receive updates when there is a Display property change. Bug: 194262507 Bug: 191064581 Bug: 205859784 Test: atest InputMethodMenuControllerTest WindowContextControllerTest Test: atest NexusLauncherTests Change-Id: I64a1614f32d097785915f6105b1813a929e0fe32
| * | | Revert "[RESTRICT AUTOMERGE] Associate SystemUiContext with DisplayContent" ↵Alex Chau2021-11-111-33/+24
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 930739c45a Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16238819 Change-Id: Ib98b2e6427a789067b25a1cb28fc189ec5a9e368
| | * | Revert "[RESTRICT AUTOMERGE] Associate SystemUiContext with DisplayContent"Alex Chau2021-11-111-33/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 71b2172abc534e43a842e5834b0cf6636e0a63c3. Reason for revert: See b/205859784, breaks launcher tests Bug: 205859784 Bug: 194262507 Bug: 191064581 Change-Id: Iaac32bd4142c0539300725dc2f6e4255fefc8b2f
| * | | [RESTRICT AUTOMERGE] Associate SystemUiContext with DisplayContent am: ↵Charles Chen2021-11-101-24/+33
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 71b2172abc Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15879397 Change-Id: I722c5a2fd21c0d0969c849650b477e0105f7a1b2
| | * | [RESTRICT AUTOMERGE] Associate SystemUiContext with DisplayContentCharles Chen2021-11-101-24/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this CL, SystemUiContexts were fixed to the Display metrics when the SystemUiContexts were created. It is the same mechanism as DisplayContext but applies to SystemUiContexts unexpectedly. This CL makes SystemUiContexts associate with DisplayContent with the corresponding display ID. In this way, SystemUiContext would receive updates when there is a Display property change. Bug: 194262507 Bug: 191064581 Test: atest InputMethodMenuControllerTest WindowContextControllerTest Change-Id: Idd74da965c18bdbf8912bd45e89be21f652dcf93
* | | | Associate SystemUiContext with DisplayContentCharles Chen2021-11-231-24/+35
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this CL, SystemUiContexts were fixed to the Display metrics when the SystemUiContexts were created. It is the same mechanism as DisplayContext but applies to SystemUiContexts unexpectedly. This CL makes SystemUiContexts associate with DisplayContent with the corresponding display ID. In this way, SystemUiContext would receive updates when there is a Display property change. Bug: 194262507 Bug: 191064581 Bug: 205859784 Test: atest InputMethodMenuControllerTest WindowContextControllerTest Test: atest NexusLauncherTests Change-Id: I64a1614f32d097785915f6105b1813a929e0fe32
* | | Merge "Fix ClassLoader issue of WindowContext" into sc-v2-dev am: a9efae988e ↵Charles Chen2021-10-281-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | am: 778e0bc013 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16102159 Change-Id: I0cbdc3be27f6fbb1df912eaf238f898b63586cc3
| * | Merge "Fix ClassLoader issue of WindowContext" into sc-v2-dev am: a9efae988eCharles Chen2021-10-281-1/+1
| |\| | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16102159 Change-Id: Ic67fdb922f1abd974b72c3ec029d10e3653180a7
| | * Fix ClassLoader issue of WindowContextCharles Chen2021-10-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The root cause of this issue is that we pass mClassLoader to new created Resources, but it may be null if we don't set ClassLoader from container. This CL fixes this issue by use ContextImpl#getClassLoader instead. Bug: 203027987 Test: reproducible steps mentioned in bug Change-Id: Ic88a351b3e9bbcf8382b9aefea63e2be2f190cb6
| | * Merge "Copy ContentCaptureOptions into derived Contexts" into sc-dev am: ↵Ahaan Ugale2021-07-281-1/+2
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2db19f5679 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15352571 Change-Id: Ib07e5a19501d5d54e4dfa4732cf2cb3ce119a898
* | | | Merge "Revert "Revert "Cherrypicking flags and override methods for all..."" ↵Alex Johnston2021-10-051-0/+14
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5c35d3bce6 am: c8c3e89dce am: 82b82e3a73 am: 60be94ef59 am: fc56413956 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1845059 Change-Id: I2776316788a1f5b751a7710dcc8e7f638efd9a13
| * | | Merge "Revert "Revert "Cherrypicking flags and override methods for all..."" ↵Alex Johnston2021-10-051-0/+14
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5c35d3bce6 am: c8c3e89dce am: 82b82e3a73 am: 60be94ef59 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1845059 Change-Id: I35c83a5cc36ea49d4c39f384a4e76c5da6bdb0ab
| | * \ \ Merge "Revert "Revert "Cherrypicking flags and override methods for all..."" ↵Alex Johnston2021-10-051-0/+14
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5c35d3bce6 am: c8c3e89dce am: 82b82e3a73 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1845059 Change-Id: I042c8fbba177a506068183be34fe8a3d053ada99
| | | * \ \ Merge "Revert "Revert "Cherrypicking flags and override methods for all..."" ↵Alex Johnston2021-10-051-0/+14
| | | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 5c35d3bce6 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1845059 Change-Id: I90e8a4d567fe2de9ab765806fc7bd3aba4fe0845
| | | | * | | Revert "Revert "Cherrypicking flags and override methods for all..."Alex Johnston2021-10-051-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert "Revert "Required change for adding overload method for r..." Revert submission 1842720-revert-1836473-receiverChangesinAOSP-FWJQDTADTI Reason for revert: DroidMonitor-triggered revert due to breakage, bug b/202144225 Reverted Changes: I03409ea39:Revert "Required change for adding overload method... I583a11d2a:Revert "Cherrypicking flags and override methods f... Change-Id: I5cdf9c74d51a259fdaa43dfdc9423d22145eac60
* | | | | | | Merge "Revert "Cherrypicking flags and override methods for allowing dy..."" ↵Jacky Kao2021-10-051-14/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 98ff8ecdaa am: 1a894180c9 am: 9403386966 am: c3404a20aa am: d393be2b1a Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1842721 Change-Id: Ied92ecef9f3ad12e0d943c82a3cbe9fd9f206f16
| * | | | | | Merge "Revert "Cherrypicking flags and override methods for allowing dy..."" ↵Jacky Kao2021-10-051-14/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 98ff8ecdaa am: 1a894180c9 am: 9403386966 am: c3404a20aa Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1842721 Change-Id: I726d14661ab9ae6907b36d136c70c44608801550
| | * | | | | Merge "Revert "Cherrypicking flags and override methods for allowing dy..."" ↵Jacky Kao2021-10-051-14/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 98ff8ecdaa am: 1a894180c9 am: 9403386966 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1842721 Change-Id: I2bf6d7e1885ac56e79111263f6de6e44dbf1e18c
| | | * | | | Merge "Revert "Cherrypicking flags and override methods for allowing dy..."" ↵Jacky Kao2021-10-051-14/+0
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 98ff8ecdaa Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1842721 Change-Id: Ieaed4fcc2fa97db551a70f4a3076b4237acfb8ab
| | | | * | | Revert "Cherrypicking flags and override methods for allowing dy..."Jacky Kao2021-10-051-14/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert "Required change for adding overload method for registerR..." Revert submission 1836473-receiverChangesinAOSP Reason for revert: <INSERT REASONING HERE> Reverted Changes:Making build break I906ce9eb0:Required change for adding overload method for reg... I9a16f566c:Cherrypicking flags and override methods for allow... Change-Id: I583a11d2a23651db24acde303d522a5faae15c6b
| * | | | | | Merge "Cherrypicking flags and override methods for allowing dynamically ↵Jacob Hobbie2021-10-051-0/+14
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | registered receivers to mark themselves explicitly as exported or not exported." am: 316e0e8336 am: 7e5da1ee2e am: 060b377211 am: 56fe73076c Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1836473 Change-Id: Id69fafd0715aa4237c3bd84310217a6ea0f8e248