summaryrefslogtreecommitdiffstats
path: root/core/java/android/content/ContextWrapper.java
Commit message (Collapse)AuthorAgeFilesLines
* New external storage APIs.Dianne Hackborn2010-02-091-0/+10
| | | | | | | | | | | This implements the spec for external storage organization, and properly reflects how the media scanner organizes the files it finds. Also includes package manager support for removing app private files from external storage when the application is uninstalled. For the new APIs and paths, the main place to look is Environment and Context.
* Add API to send an ordered sticky broadcast.Dianne Hackborn2009-09-191-0/+10
| | | | Change-Id: Ida7081204e226db0cd07ff618c08e308a909ec0c
* Fix issue #2093608: Calendar widget takes a few seconds to launchDianne Hackborn2009-09-171-0/+8
| | | | | | | | | | | Avert your eyes! The key change here is that RemoteViews can now call a Context API to start its pending intent, which inside of the activity manager we can use to determine to cancel the timeout delay for external entities to disrupt the home screen. Change-Id: If097cf7478cbed7a3c04a304050bd7fd5703d197
* Updates from API review.Dianne Hackborn2009-07-281-0/+1
| | | | | | | | | | | | * AccessibilityService -- document onBind() to not be implemented. * GestureLibrary.getLearner() -- needs to be hidden. * IntentSender -- remove protected constructors, document that it is retrieved from a PendingIntent. * Hide permissions: SHUTDOWN, STOP_APP_SWITCHES. * Context -- hide BACKUP_SERVICE. * ContextWrapper -- hide getSharedPrefs bla h blah * Intent.parseUri() -- fix docs. * ApplicationInfo.FLAG_TEST_ONLY?!? * Hide MockContext.getSharedPrefs blah blah
* Fixes #1963229. Introduces Context#isRestricted().Romain Guy2009-07-061-0/+5
| | | | | | | A restricted Context is a special type of Context that prevents specific features from being used. For instance, android:onClick, used by View, can be dangerous when used from within apps widgets. By using a restricted Context to inflate apps widgets, widgets providers are prevented from using android:onClick.
* Fix targetSdkVersion, make resize mode a flag, delayed dexopt, easy ↵Dianne Hackborn2009-06-181-0/+6
| | | | | | | | | | | | | | | | | | | | ApplicationInfo. - Fix a bug where targetSdkVersion could not be set if minSdkVersion. Stupid, stupid. Also make sure to fail if minSdkVersion is for a code name. Really stupid. - Change the API for resize compatibility mode to be a bit in the flags field, instead of a separate boolean. - Implement delayed dexopting, to avoid the looong full dexopt during boot. This is only enabled for "eng" builds. When in this mode, the activity manager will make sure that a dexopt has been done before loading an .apk into a process, and will try to avoid displaying ANRs if they are due to the dexopt causing some operation to take longer than it normally would (though I make no guarantees about this totally working). - Add API to Context to get the ApplicationInfo for its package, for easy access to things like targetSdkVersion.
* Fix SharedPrefsBackupHelper so it doesn't hard code the paths to the files.Joe Onorato2009-06-111-0/+5
| | | | This took quite a bit of refactoring.
* * Moved supports-density tag under manifestMitsuru Oshima2009-06-031-8/+0
| | | | | | | | | | | * Refactored Compatibility code * Added CompatibilityInfo class * Removed getApplicationScale from Context * Added Resources#getCompatibilityInfo so that RootView can get the compatibility info w/o going through Context * Expandable support * Added expandable tag under manifest * Old application w/o expandable is given the default screen size ([320, 480] x density). * The non-expandable window is centered.
* AI 147976: Compatibility mode support. Part 2.Mitsuru Oshima2009-04-281-0/+8
| | | | | | | | | | | | | | | | | * Introduced ApplicationScale (may not be good name. CompatibilityScale? CanvasScale? Pls let me know if you have better idea) * Changes to RootView / SurfaceView - Makes the app believe it's running in the supported density/resolution. - Makes the window manager believe it's running at the right density/resolution. * Added methods to Rect/Event for scaling up/down. Known issues: * certain kind of images (such as nine patch for buttons) seesm to be loaded not by app, thus does not take the scale into account, which, in turn, is causing layout issue. * ZoomButton in MapView is rendered in wrong place * Transparent region on Surface is not correct * Specifying different densities in one process is not working. BUG=1770627 Automated import of CL 147976
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+422
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-422/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+422