summaryrefslogtreecommitdiff
path: root/core/java/android/app/Presentation.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix IME switch dialog crash on Dual rootDA displayCharles Chen2021-05-071-2/+3
| | | | | | | | | | | | | | | | | | The crash is because when the IME switch dialog created window token is removed, it should switch back to listen to ImeContainer. However, previous CL use the wrong API findAreaForToken, which only finds the DisplayArea.Token under mAreaForLayer list. In this scenario, we cannot find one because ImeContainer is moved to its sub-RootDisplayArea. This CL updates the naming and add more javaDoc to prevent from confusion. Test: atest WindowContextListenerControllerTests Test: manual - repro steps in b/186366728#comment1 fixes: 186366728 Change-Id: I50d3247b0a158e83d09be893d31802d673a60697
* Migrate Presentation to WindowContextCharles Chen2020-10-121-81/+59
| | | | | | | | | | | | | | | | After [1], display context had not been regarded as an UI context even if it is derived from an UI context. Thus, we need to migrate Presentation to use WindowContext to obtain UI components accesses and also receive configuration changes from the server side. Also remove isConfigurationStillValid() related logic since now the configuration gets updated if the property of the display changes. [1]: 3c0078e80f393c2daffec5ef1a34a9c89abccd87 Test: atest PresentationTest VirtualDisplayTest KeyguardPresentationTest Bug: 167462327 Change-Id: Ib5c4a33eeba0e0a6213960300dd4c0a18047686b
* Revert "Try to reland Ib3ee007bc"Darryl Johnson2020-04-241-3/+3
| | | | | | | | | | | This reverts commit b6415618f1c5e72c44bf342cf4bd8667ebb8abff. Reason for revert: Caused regression of b/149213586 Bug: 148639826 Bug: 149213586 Change-Id: I5248e03b42e3f24a6e2abb134d0bf339e77f484b
* Try to reland Ib3ee007bcwilsonshih2020-04-171-3/+3
| | | | | | | | | | Don't let process configuration change application configuration, but allow to update non-default display configuration while initialize since the context is focus on different display. Bug: 148639826 Test: atest PresentationTest ActivityThreadTest AppConfigurationTests Change-Id: I16ba4eee64406d097b7ff0b7ff5c45175623663a
* Use TYPE_PRIVATE_PRESENTATION for private presentationsLinus Tufvesson2020-04-061-1/+6
| | | | | | | | | | | Detect if the Presenation is targeting a private virtual display, and if they are use the windowType TYPE_PRIVATE_PRESENTATION. Bug: 152652348 Bug: 141745510 Test: atest CtsWindowManagerDeviceTestCases:PresentationTest Test: atest CtsDisplayTestCases:android.display.cts.VirtualDisplayTest Change-Id: I58834636e092f992e403342e36b475dc60e8f20a
* Block TYPE_PRESENTATION windows on default displayLinus Tufvesson2020-02-171-2/+4
| | | | | | | | | ... and any other display that isn't considered a public presentation display, as per Display.isPublicPresentation() Bug: 141745510 Test: atest CtsWindowManagerDeviceTestCases:PresentationTest Change-Id: I2aaab1903dee54190338f7b6e49888aa51437108
* Use new UnsupportedAppUsage annotation.Artur Satayev2019-12-181-6/+6
| | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I8789f8499d4dca08580672e9e45ed9a7026dd686
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | For packages: android.app.usage android.app.trust android.app.timezonedetector android.app.timezone android.app.timedetector android.app.job android.app.backup android.app.assist android.app.admin android.app This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: I618c5dc4462ae990d9df45c3e9ed3f092cc5138c
* Added support for window TYPE_PRESENTATIONWale Ogunwale2016-11-021-4/+18
| | | | | | | | | | | Switched presentation feature to use new window TYPE_PRESENTATION and also add its own window token to the display the presentation is running on. This is needed as window manager no longer allows tokens to have windows on multiple displays. Bug: 32566372 Test: Presentation mode works. Change-Id: I9c2998311b65640743b8e23ec4f10bf1ffbfd785
* ContextImpl: Keep DisplayAdjustments and Display in syncAdam Lesinski2016-06-211-1/+1
| | | | | | | | Make sure that when our Resources get updated, that DisplayAdjustment and Display properly reflect the potentially new screen dimensions. Bug:28388969 Change-Id: I340550ea094ece87abc8790dd46aaa60ab3cedd3
* Support 4K overlay displays.Jeff Brown2015-06-091-1/+3
| | | | | Bug: 18241736 Change-Id: Ibd479f2ea47ed49a507e7265bdce83afc214b19c
* Fix issue #7585876: When changing the font settings, the movie...Dianne Hackborn2012-11-291-1/+1
| | | | | | ...just keeps attempting to load and doesn't play on the TV Change-Id: Ifcdc969a037a113224632f907d55f60a168dd05a
* docs: fix markup errorScott Main2012-11-051-10/+8
| | | | | | bug: 7456071 Change-Id: I3d34a2d6741784d9b33af54afd6d97803720264d
* Add MediaRouter API to get presentation display.Jeff Brown2012-10-251-1/+88
| | | | | | | | | | | | | | | This new API makes it possible for an application to ask on which Display it should show a Presentation based on the currently selected media route. Also added a new API on DisplayManager to query displays that support a certain category of uses. Improved the documentation of the Presentation class to explain how to choose an appropriate Display for presentation. Bug: 7409073 Change-Id: Iab451215e570ae55f3718fc228303143c800fe51
* Add throwing InvalidDisplayException from addView.Craig Mautner2012-10-231-0/+10
| | | | | | | | | | | | | | | Throw an InvalidDisplayException to addView if the display being added to has been removed. Handle this exception in Dialog.show() by removing the view after it has been added and rethrow the exception from there. Add javadoc to ViewManager.addView and Presentation.show explaining the new exception and how best to handle it. Bug: 7368565 partially fixed. It remains for the Videos app to handle Presentation.show throwing the InvalidDisplayException. Change-Id: Ib4303c9b3f7bf7a0cfa95d19bd60a0c128658c48
* Fix javadoc.Jeff Brown2012-09-201-5/+7
| | | | | Bug: 7172727 Change-Id: I55ee0099ea2e61f5f0a9de7b434fb8fb858ad5f9
* Initial draft of high-level multi-display APIs.Jeff Brown2012-08-311-0/+256
This patch introduces the ability to create a Context that is bound to a Display. The context gets its configuration and metrics from that display and is able to provide a WindowManager that is bound to the display. To make it easier to use, we also add a new kind of Dialog called a Presentation. Presentation takes care of setting up the context as needed and watches for significant changes in the display configuration. If the display is removed, then the presentation simply dismisses itself. Change-Id: Idc54b4ec84b1ff91505cfb78910cf8cd09696d7d