summaryrefslogtreecommitdiff
path: root/core/java/android/view/ContextThemeWrapper.java
Commit message (Collapse)AuthorAgeFilesLines
* Use new UnsupportedAppUsage annotation.Artur Satayev2019-12-181-1/+1
| | | | | | | | 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: I5be7335b23a92b8ac80d2fd890198273b66ad644
* Annotated mTheme field on ContextThemeWrapper with maxTargetSdk PNader Jawad2019-02-151-1/+12
| | | | | | | | | Added ContextThemeWrapper#setTheme(Theme) method to programmatically assign the theme without using a resource id Change-Id: I043253e65a535abdf8d89d9421d2cff2b41bdb05 Fixes: 123768723 Test: Added CTS test to verify setTheme
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-201-0/+7
| | | | | | | | | | | | | | | | | | | | | | For packages: android.view.textservice android.view.textclassifier.logging android.view.textclassifier android.view.inputmethod android.view.autofill android.view.accessibility android.view 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: I4147b038ed7adf0311ee9918b44766f82a057eaf
* API refactor: context.startForegroundService()Christopher Tate2017-03-291-2/+2
| | | | | | | | | | | | | | | | | | | | Rather than require an a-priori Notification be supplied in order to start a service directly into the foreground state, we adopt a two-stage compound operation for undertaking ongoing service work even from a background execution state. Context#startForegroundService() is not subject to background restrictions, with the requirement that the service formally enter the foreground state via startForeground() within 5 seconds. If the service does not do so, it is stopped by the OS and the app is blamed with a service ANR. We also introduce a new flavor of PendingIntent that starts a service into this two-stage "promises to call startForeground()" sequence, so that deferred and second-party launches can take advantage of it. Bug 36130212 Test: CTS Change-Id: I96d6b23fcfc27d8fa606827b7d48a093611b2345
* Fix issue with overridden configuration in onConfigurationChangedAdam Lesinski2016-04-041-0/+9
| | | | | | | | | | When using applyOverrideConfiguration, subsequent callbacks to onConfigurationChanged didn't take into account the locally overridden configuration. This patches the incoming configuration to match what is expected by the application. Bug:27644297 Change-Id: I3a090e9862a56470d999aa0aa4d5bae29f533a11
* Don't call public non-final getResources() from getAssets()Alan Viverette2015-12-161-2/+5
| | | | | | | | | Refactors to getResourcesInternal() and calls that from both methods. Adds documentation on Context.getResources() and getAssets() that the instances returned should be consistent with each other. Bug: 26228895 Change-Id: I41b09f1e9a3a0315bcdf1c08a7b431a9a697bb6f
* Clean up ContextThemeWrapperAlan Viverette2015-08-251-26/+54
| | | | | | Fix trailing white space, use of final, comments. Change-Id: Iacc034acd46a651c35c32f2efbc0fe5fb58e1209
* Return asset manager with correct config from ContextThemeWrapperAlan Viverette2015-08-251-2/+10
| | | | | Bug: 23416037 Change-Id: Ia87bebbe6f23214c892bc2ca19d4112853023235
* Allow ContextImpl.setTheme(int) to be called after getTheme()Alan Viverette2015-05-011-3/+6
| | | | | | | | | | | | Previously the theme could only be set if it had never been obtained, which was inconsistent with the documentation for Context.setTheme() and the behavior of ContextThemeWrapper. Also prevents double-apply of themes in setTheme(). Bug: 20756250 Bug: 20230451 Change-Id: I2566b3e4546cd1c68db79f10f01a5a1256fd439c
* Add resource type annotations to some APIsTor Norbye2015-03-131-1/+2
| | | | Change-Id: I37c8afdaea455aa92bc8270bb2dfd60616c5f9bc
* Add popup theme for Spinner, use for actionBarPopupTheme defaultAlan Viverette2015-01-141-4/+10
| | | | | | | | Also adds methods for setting the context used to inflate drop-down views in several adapters. Bug: 17625714 Change-Id: Id267afa4901c1d46ceb3bc3b10fc642cea1799fe
* Partial revert "Load device default theme mapping from resources"Alan Viverette2014-05-051-1/+1
| | | | | | This reverts commit e4ab72d54cf41d16819b72e94d9b0d0d51289647. Change-Id: Id17170312c75993fc1f7859d52c7e050b2aeaf80
* Load device default theme mapping from resourcesAlan Viverette2014-05-011-1/+1
| | | | | | | Also adds a few missing styles and reorganizes some XML files. Makes stackViewStyle public since it's defined in DeviceDefault. Change-Id: I8f6a0f93410948b38619594474d60dc40ece5917
* Cleanup ContextThemeWrapperFabrice Di Meglio2014-03-071-6/+3
| | | | | | | - remove reference to base Context as we can get it thru getBaseContext() call Change-Id: I2687c15db12624243fadba44d624e2e4bdae240d
* Remove unused imports from frameworks/base.John Spurlock2013-11-201-1/+0
| | | | Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
* Add API to create new contexts with custom configurations.Dianne Hackborn2012-08-141-0/+38
| | | | | | | | | | | | | This allows you to, say, make a Context whose configuration is set to a different density than the actual density of the device. The main API is Context.createConfigurationContext(). There is also a new API on ContextThemeWrapper that allows you to apply an override context before its resources are retrieved, which addresses some feature requests from developers to be able to customize the context their app is running in. Change-Id: I88364986660088521e24b567e2fda22fb7042819
* Add Holo theme for IMEs.Dianne Hackborn2011-01-141-6/+2
| | | | | | Also clean up theme selection code to get rid of duplication. Change-Id: Idf7b21db70ee83fce24756ead877169bd08b77a9
* Implement issue # 3255887 could CursorLoader offer...Dianne Hackborn2011-01-081-0/+6
| | | | | | | | | | | | | | | | | | ...to throttle contentobserver-based requeries Why yes, I guess it could. This also reworks AsyncTaskLoader to not generate multiple concurrent tasks if it is getting change notifications before the last background task is complete. And removes some of the old APIs that had been deprecated but need to be gone for final release. And fixes a few little problems with applying the wrong theme in system code. Change-Id: Ic7a665b666d0fb9d348e5f23595532191065884f
* No longer needed.Dianne Hackborn2011-01-041-1/+5
| | | | Change-Id: Ia2e8264147bb02e29599227d0588e40b1e626358
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+103
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-103/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+103