summaryrefslogtreecommitdiffstats
path: root/core/java/android/app
Commit message (Collapse)AuthorAgeFilesLines
* am 4907d1d5: am 0c6cbf41: Merge "Better compat mode part one: start scaling ↵Dianne Hackborn2011-05-097-79/+217
|\ | | | | | | | | | | | | windows." into honeycomb-mr2 * commit '4907d1d5e2c7d244b07579b8c52153df69754e85': Better compat mode part one: start scaling windows.
| * am 0c6cbf41: Merge "Better compat mode part one: start scaling windows." ↵Dianne Hackborn2011-05-097-79/+217
| |\ | | | | | | | | | | | | | | | | | | into honeycomb-mr2 * commit '0c6cbf410a642f6e9cea7cca0a6e53a4a3cdd324': Better compat mode part one: start scaling windows.
| | * Better compat mode part one: start scaling windows.Dianne Hackborn2011-05-097-79/+217
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First step of improving app screen size compatibility mode. When running in compat mode, an application's windows are scaled up on the screen rather than being small with 1:1 pixels. Currently we scale the application to fill the entire screen, so don't use an even pixel scaling. Though this may have some negative impact on the appearance (it looks okay to me), it has a big benefit of allowing us to now treat these apps as normal full-screens apps and do the normal transition animations as you move in and out and around in them. This introduces fun stuff in the input system to take care of modifying pointer coordinates to account for the app window surface scaling. The input dispatcher is told about the scale that is being applied to each window and, when there is one, adjusts pointer events appropriately as they are being sent to the transport. Also modified is CompatibilityInfo, which has been greatly simplified to not be so insane and incomprehendible. It is now simple -- when constructed it determines if the given app is compatible with the current screen size and density, and that is that. There are new APIs on ActivityManagerService to put applications that we would traditionally consider compatible with larger screens in compatibility mode. This is the start of a facility to have a UI affordance for a user to switch apps in and out of compatibility. To test switching of modes, there is a new variation of the "am" command to do this: am screen-compat [on|off] [package] This mode switching has the fundamentals of restarting activities when it is changed, though the state still needs to be persisted and the overall mode switch cleaned up. For the few small apps I have tested, things mostly seem to be working well. I know of one problem with the text selection handles being drawn at the wrong position because at some point the window offset is being scaled incorrectly. There are probably other similar issues around the interaction between two windows because the different window coordinate spaces are done in a hacky way instead of being formally integrated into the window manager layout process. Change-Id: Ie038e3746b448135117bd860859d74e360938557
* | | am 1a846ab0: am b1578d85: Merge "Fix startSearch condition on Dialog, ↵Conley Owens2011-04-291-1/+1
|\ \ \ | |/ / |/| | | | | | | | | | | | | | because pressing search key causes ANR popup. If search key is pressed on Dialog and there is no search item then do nothing. How to reproduce the issue: Settings > About phone > Legal information > * commit '1a846ab089878a6b342c6bc3e8850fc2e0ef3080': Fix startSearch condition on Dialog, because pressing search key causes ANR popup. If search key is pressed on Dialog and there is no search item then do nothing. How to reproduce the issue: Settings > About phone > Legal information > Google legal > Press search key > Touch list item or press back key > ANR popup is shown
| * | Merge "Fix startSearch condition on Dialog, because pressing search key ↵Conley Owens2011-04-291-1/+1
| |\ \ | | | | | | | | | | | | causes ANR popup. If search key is pressed on Dialog and there is no search item then do nothing. How to reproduce the issue: Settings > About phone > Legal information > Google legal > Press search key > Touch list item or press back key > ANR popup is shown"
| | * | Fix startSearch condition on Dialog, because pressing search key causes ANR ↵lge-aosp2011-03-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | popup. If search key is pressed on Dialog and there is no search item then do nothing. How to reproduce the issue: Settings > About phone > Legal information > Google legal > Press search key > Touch list item or press back key > ANR popup is shown Change-Id: I9c24d83ca3b7c20976bb7daebeff7fd694ce3a2f
* | | | resolved conflicts for merge of ceae9983 to honeycomb-plus-aospBrad Fitzpatrick2011-03-151-1/+1
|\ \ \ \ | |/ / / | | | / | |_|/ |/| | Change-Id: Ic677e58dcc182908ae1fde33047b3fda013a37c3
| * | am 9a01a2f2: Merge "Fixing self-assignment in cloning code."Brad Fitzpatrick2011-03-151-1/+1
| |\ \ | | | | | | | | | | | | | | | | * commit '9a01a2f2720632aa9cc230a4ebb0ed7aee762eec': Fixing self-assignment in cloning code.
| | * \ Merge "Fixing self-assignment in cloning code."Brad Fitzpatrick2011-03-151-1/+1
| | |\ \
| | | * | Fixing self-assignment in cloning code.Jozef BABJAK2011-02-221-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I6c918c0c7345678cbb171905eccfca50e59ae41a
| * | | | am b37f7e59: Merge changes I81fc2f90,I5e7fd759Brad Fitzpatrick2011-03-151-1/+1
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | * commit 'b37f7e59ee38472bdd3ca5fe66cc847890c862e2': Using proper key for removing from map. Removing wrong equals method in comparator.
| | * | | Merge changes I81fc2f90,I5e7fd759Brad Fitzpatrick2011-03-151-1/+1
| | |\ \ \ | | | |_|/ | | |/| | | | | | | | | | | | | | | | | * changes: Using proper key for removing from map. Removing wrong equals method in comparator.
| | | * | Using proper key for removing from map.Jozef BABJAK2011-02-211-1/+1
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Window object was improperly used as a key for removing record from map. This was silenly ignored, because remove() method accepts Object. However, the ID should be used there which is type of String, i.e. the same ID which was used for lookup. Change-Id: I81fc2f90926a34414bf9042ddf4a2edff4c1fda1
| * | | am 78b8e1be: Merge "DO NOT MERGE: backport recent USB accessory changes from ↵Mike Lockwood2011-03-141-1/+1
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | honeycomb" into gingerbread * commit '78b8e1be97c61f7e0b28b145fadd0c646fd1c46b': DO NOT MERGE: backport recent USB accessory changes from honeycomb
| | * | | DO NOT MERGE: backport recent USB accessory changes from honeycombMike Lockwood2011-03-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 4082651 Change-Id: Ie7c2fc796dd3c64f803acbd14210e5949683f4ed Signed-off-by: Mike Lockwood <lockwood@android.com>
| * | | | am 40bbf929: DO NOT MERGE: Backport USB accessory support to gingerbreadMike Lockwood2011-03-021-0/+16
| |\ \ \ \ | | |/ / / | | | / / | | |/ / | |/| | * commit '40bbf9295d5245d3917629ce15f7b37670aef1ac': DO NOT MERGE: Backport USB accessory support to gingerbread
| | * | DO NOT MERGE: Backport USB accessory support to gingerbreadMike Lockwood2011-03-011-0/+16
| | | | | | | | | | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | | Fix issues #4087362 and #4087356Dianne Hackborn2011-03-111-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4087362: Provide a safer way to call DialogFragment.dismiss() 4087356: PreferenceActivity.invalidateHeaders() can cause IllegalStateException: Can not perform this action after onSaveInstanceState These are very safe; the first is just a new public API that allows you to use an existing feature in DialogFragment, and the second just uses the version of commit that avoids the failure if happening at a point where the operation would be lost if restored from the last state (which is no big deal for preferences). Change-Id: I53971c9fb1efdcd599694cdcd4585b81afc156b8
* | | | Broaden the filter for wallpaper restoreChristopher Tate2011-03-101-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tweak the filter parameters so that we now use any restored wallpaper image that is larger than our ideal size, and will reject any smaller images only if they are *much* smaller than our ideal size. The specific threshold used here will just barely reject Nexus One or Droid sized wallpapers for restore onto a Xoom, but will pass anything larger. Bug 4070129 Change-Id: I889bdb3ef5011343b2fccb2f81c6abc2f4603ee2
* | | | Merge "Fix issue #4066157: ActivityManager.getMemoryClass() returning large ↵Dianne Hackborn2011-03-091-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | memory class" into honeycomb-mr1
| * | | | Fix issue #4066157: ActivityManager.getMemoryClass() returning large memory ↵Dianne Hackborn2011-03-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | class Change-Id: I1970252e07f703087ac96378410ae2b6e6e4c2d3
* | | | | Merge changes Ib517e5e4,I93be7695,I49bf22a4 into honeycomb-mr1Mike Lockwood2011-03-091-3/+3
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Close USB dialogs if their corresponding accessory or device has disconnected USB: Add API and dialog for apps to request permissions for USB devices and accessories UsbService: Automatically use system apps by default if it is the only choice
| * | | | | USB: Add API and dialog for apps to request permissions for USB devices and ↵Mike Lockwood2011-03-081-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | accessories New APIs: UsbManager.hasPermission returns true if the caller has permission for the given device or accessory UsbManager.requestPermission poses a dialog to allow the user to give the caller permission for the device or accessory. Result is returned via a PendingIntent. No dialog is displayed if the caller already has permission. Also moved UsbResolverActivity to SystemUI package BUG: 4069037 Change-Id: I93be769501a8776b49ac26e468af19f8fa2114c9
* | | | | | Clarify rules about encryption of emulated storage.Andy Stadler2011-03-071-2/+6
|/ / / / / | | | | | | | | | | | | | | | | | | | | Bug: 3351426 Change-Id: I3a8fcd369862f3eab1781699108e29fe7ab474a0
* | | | | bug:3513950 Rename "completedDownload" to "addCompletedDownload"Vasu Nori2011-03-071-3/+3
|/ / / / | | | | | | | | | | | | Change-Id: I28b33a0268309d74fd2512b5bdb599f38ff3a96d
* | | | Merge "Fix Fragment.onInflate() to actually work correctly." into honeycomb-mr1Dianne Hackborn2011-03-033-16/+47
|\ \ \ \
| * | | | Fix Fragment.onInflate() to actually work correctly.Dianne Hackborn2011-03-033-16/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Like, um, it needs to be given the Activity since this is called before the activity is attached. And it was called after the entire fragment and its *view* was created when being restored from saved state. And the documentation was whacked. Also fix the IME selector to dismiss when you tap outside of it. Change-Id: Icbcafe7558965a570bdef9cda3441b1f0f7a317c
* | | | | Propagating core settings to the system process.Svetoslav Ganov2011-03-031-15/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug:3511123 Now the core settins are stored in the ActivityThread instad in the AppBindData of the currently bound app. Also the settings are pushed to the system process on init. Change-Id: I100bb7dc80d0d4548def22c328427bbef1694eb7
* | | | | NPE in in AppGlobals#getIntCoreSettingSvetoslav Ganov2011-03-031-1/+6
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug:3508658 It ActivityThread#currentActivityThread() is called when the ActivityThread is not attached it returns null and AppGlobals#getIntCoreSetting was not checking for that. Change-Id: I5e00d1947a161ad1e52ecfaa12cbbac3b534a0db
* | | | Merge "Pass AppData to the app from SearchDialog queries."Bjorn Bringert2011-03-031-0/+1
|\ \ \ \
| * | | | Pass AppData to the app from SearchDialog queries.Amith Yamasani2011-03-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 3494468 During migration of SearchDialog to use SearchView, the appdata was not passed along. This fixes the loss. Change-Id: Ia754086d2bb95294e1d29650a72e4fdddec9c899
* | | | | Merge "Fixed NPE in ActivityManager's launch count service."Bjorn Bringert2011-03-031-1/+6
|\ \ \ \ \
| * | | | | Fixed NPE in ActivityManager's launch count service.Peter Visontay2011-03-021-1/+6
| |/ / / / | | | | | | | | | | | | | | | | | | | | Bug: 3497127 Change-Id: I38661fb0654e807f05cc57e43cff912de8d39096
* | | | | Merge "Fix issue #3485923: Gmail crash"Dianne Hackborn2011-03-022-3/+5
|\ \ \ \ \
| * | | | | Fix issue #3485923: Gmail crashDianne Hackborn2011-03-022-3/+5
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow application to try to recover if a surface OOM error happens on the client side. Change-Id: I0308bd99647a35e4bcac448340b7fc6330a828f6
* | | | | Add system wide management of core settingsSvetoslav Ganov2011-03-024-7/+69
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug:3505060 Since we want to have some settings that are used very frequently by many applications (long-press timeout is one example) these should be managed efficiently to reduce lookups from different processes because in the case of a cache miss a disk I/O is performed. Now the system manages such core settings and propagates them to the application processes. Change-Id: Ie793211baf8770f2181ac8ba9d7c2609dfaa32a7
* | | | Merge "Fix issue #3405957 com.android.settings: ↵Dianne Hackborn2011-03-011-9/+56
|\ \ \ \ | | | | | | | | | | | | | | | java.lang.NullPointerException..."
| * | | | Fix issue #3405957 com.android.settings: java.lang.NullPointerException...Dianne Hackborn2011-03-011-9/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...at android.app.DialogFragment.dismissInternal(DialogFragment.java:264) Don't allow a DialogFragment to be dismissed twice. Change-Id: Id2e9e3be1046b0d7862492c57c36001d8fd44a69
* | | | | Merge "Fix issue #3411615: Crash when getting dialog layout inflator."Dianne Hackborn2011-03-011-1/+5
|\ \ \ \ \
| * | | | | Fix issue #3411615: Crash when getting dialog layout inflator.Dianne Hackborn2011-03-011-1/+5
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Well, I'm not sure it is right for onCreateDialog() to return a null dialog, but if it does, let's not crash here. Change-Id: I5ff49b9b3c326d9005f70a01435c01bfc7307343
* | | | | Merge "Fix issue #3495749: Crash on choosing to open the downloaded images"Dianne Hackborn2011-03-011-0/+8
|\ \ \ \ \
| * | | | | Fix issue #3495749: Crash on choosing to open the downloaded imagesDianne Hackborn2011-03-011-0/+8
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is due to the window doing a relayout after its activity is stopped, at which point it may need to interact with the adapter to load data. The fix here is to tell ViewRoot about an activity being stopped and, if in this state, hold off on doing any new measurements and layouts of the hierarchy until it is no longer stopped. In this case the relayout was happening due to the cursor being deactivated, with causes the adapter to invalidate its data. Because this is now in a dialog window, this allows the window to actually be resized smaller (unlike when in a full screen activity), and boom. Change-Id: I26442b4679819b4a4e6bc56289afd3445526750b
* | | | | Merge "Move USB framework support from android.hardware to ↵Mike Lockwood2011-03-011-2/+2
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | android.hardware.usb package"
| * | | | | Move USB framework support from android.hardware to android.hardware.usb packageMike Lockwood2011-03-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I00fd4f0caaa4aebe48f71c576bb211b5f38bf88d Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | | | | Fix a bug where the lazy-initialized ActionBar object was being too lazy.Adam Powell2011-03-011-0/+1
|/ / / / / | | | | | | | | | | | | | | | Change-Id: I80dc06deffd1df8cc8ae96fd878d66a101a17086
* | | | | Merge "Make sure to properly default the screen size during wallpaper restore"Christopher Tate2011-02-281-0/+9
|\ \ \ \ \
| * | | | | Make sure to properly default the screen size during wallpaper restoreChristopher Tate2011-02-281-0/+9
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The wallpaper service claims a desired width/height of (-1,-1) during initial setup, so look to the default display's metrics if necessary. Change-Id: I341f12fb7b0b9d6b7761c277f23fc68fa5355256
* | | | | Remove a stale line in a JavaDoc.Ben Komalo2011-02-281-4/+3
|/ / / / | | | | | | | | | | | | Change-Id: I2d98bf5aaa2d47adef2b31903761db3d9f7e1ac1
* | | | fix javadoc on downloadmanager.remove()Vasu Nori2011-02-281-2/+2
| | | | | | | | | | | | | | | | Change-Id: Id48389acd12343b4dcc18ed3f77ab068b2bc5f85
* | | | Merge "bug:3474580 fix javadoc"Vasu Nori2011-02-271-1/+1
|\ \ \ \