summaryrefslogtreecommitdiffstats
path: root/tools/layoutlib
Commit message (Collapse)AuthorAgeFilesLines
* Add isPremultiplied option to Bitmap_Delegate in LayoutLibDeepanshu Gupta2013-09-042-14/+88
| | | | Change-Id: Id06921d8db2fe898fdc60ef9d05d05f8dfe3f94a
* Merge "Add CancellationSignal support to file operations." into klp-devJeff Sharkey2013-08-231-3/+5
|\
| * Add CancellationSignal support to file operations.Jeff Sharkey2013-08-231-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since ContentProvider file operations can end up doing substantial network I/O before returning the file, allow clients to cancel their file requests with CancellationSignal. Ideally this would only be needed for openFile(), but ContentResolver heavily relies on openAssetFile() and openTypedAssetFile() for common cases. Also improve documentation to mention reliable ParcelFileDescriptors and encourage developers to move away from "rw" combination modes, since they restrict provider flexibility. Mention more about places where pipes or socket pairs could be returned. Improve DocumentsContract documentation. Bug: 10329944 Change-Id: I49b2825ea433eb051624c4da3b77612fe3ffc99c
* | DO NOT MERGE. Fix test breakagesatok2013-08-231-0/+6
| | | | | | | | Change-Id: I0b2b7ce4b9f50910b4795cb480aa86a662b16f7d
* | Add inPremutiplied option to BitmapFactory.Options, functionality in BitmapChris Craik2013-08-201-2/+4
|/ | | | | | bug:2248948 Change-Id: I8fdd649332667598504a1076d5a447572bd53086
* Merge "Bring along BridgeContext for the ride." into klp-devJeff Sharkey2013-08-121-0/+18
|\
| * Bring along BridgeContext for the ride.Jeff Sharkey2013-08-111-0/+18
| | | | | | | | Change-Id: Ic11c0df447c82be3922d529f18a290cfdfec6b05
* | Refactor Canvas.drawPicture() to delegate to PictureJonathan Dixon2013-08-081-8/+0
|/ | | | | | | | | Bug: 9814370 To allow WebView.capturePicture() to return a subclass, we need to ensure the subclass is always consulted when being drawn into a canvas. Change-Id: Ia0357f95b6fafb3ac81e6bcfaef05739e619897a
* Reduce the transaction fee of getEnabledInputMethodSubtypeListSatoshi Kataoka2013-08-081-1/+1
| | | | | Bug: 8467480 Change-Id: If18cce8fbe567df51f29adcdcedff3f743460b8b
* Merge "Fix home activity and user switch interactions."Craig Mautner2013-07-191-1/+1
|\
| * Fix home activity and user switch interactions.Craig Mautner2013-07-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | - Make sure Home activity goes in the correct task and on the correct stack. - Do not allow different users to be in the same task. - Do not set stacks aside for each user. Fixes bug 9775492. Change-Id: I0e7954e917aac8482a1015a36923e02914e2b692
* | am 388f85eb: am a2f41b23: am bf8be2ee: Merge "Add orientation to ↵Deepanshu Gupta2013-07-191-0/+18
|\ \ | | | | | | | | | | | | | | | | | | configuration for layoutlib." into jb-mr2-dev * commit '388f85eb451bd0b61c8f48b500de5db6bca941f1': Add orientation to configuration for layoutlib.
| * | Add orientation to configuration for layoutlib.Deepanshu Gupta2013-07-121-0/+18
| | | | | | | | | | | | | | | | | | Update the configuration with the device orientation before rendering. Change-Id: Icd40901204fd13f90b18353e53a15e25e5b2176c
* | | Fix build.Jeff Brown2013-07-181-2/+2
| |/ |/| | | | | Change-Id: Ie83f51ab4b8fddceda8d4f0ac24c532eab7458b8
* | Fix build.Craig Mautner2013-06-241-2/+2
| | | | | | | | Change-Id: Icdfc6bcbe8603cf9bd3f8982a595336c0407e7d6
* | Remove concept of system bar from window manager.John Spurlock2013-06-142-10/+2
| | | | | | | | | | | | It was already hardcoded to false, this change removes the dead code. Change-Id: I5e543344e60f69cb9882a70ba29f7c09404ad9fc
* | Fix a bug resolving the correct icon/logo in action barsAdam Powell2013-05-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | Remove some abstraction-breaking magic in ActionBarView and replace it with proper resolution of the icon/logo when creating a window. The old implementation relied on the ActionBarView's context being an Activity. Bug 9171554 Change-Id: Idbbb1942622195dcb55e8119f2d64287b07bb509
* | am fc691f9d: am 417e512b: Merge "Add missing native methods." into jb-mr2-devDeepanshu Gupta2013-05-246-36/+94
|\ \ | |/ | | | | | | * commit 'fc691f9df0392a661c4d1708c905f82d50c17f27': Add missing native methods.
| * Add missing native methods.Deepanshu Gupta2013-05-236-36/+94
| | | | | | | | Change-Id: I7b34e2ec0164520efc658053a80f307791a992b1
* | Fix build.Dianne Hackborn2013-05-211-1/+1
| | | | | | | | Change-Id: I3dc503a3cd30276ac10582db44732d96b68230ee
* | resolved conflicts for merge of 21dffd5d to masterJeff Brown2013-04-083-23/+10
|\ \ | |/ | | | | Change-Id: I37c48dee471c9d43f19c1fe4a01f70db53e2441f
| * Queues, queues, queues and input.Jeff Brown2013-04-083-23/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Redesigned how ViewRootImpl delivers input events to views, the IME and to native activities to fix several issues. The prior change to make IME input event delegation use InputChannels failed to take into account that InputMethodManager is a singleton attached to the main looper whereas UI may be attached to any looper. Consequently interactions with the InputChannel might occur on the wrong thread. Fixed this problem by checking the current thread and posting input events or callbacks to the correct looper when necessary. NativeActivity has also been broken for a while because the default event handling logic for joysticks and touch navigation was unable to dispatch events back into the native activity. In particular, this meant that DPad synthesis from touch navigation would not work in any native activity. The plan is to fix this problem by passing all events through ViewRootImpl as usual then forwarding them to native activity as needed. This should greatly simplify IME pre-dispatch and system key handling and make everything more robust overall. Fixed issues related to when input events are synthesized. In particular, added a more robust mechanism to ensure that synthetic events are canceled appropriately when we discover that events are no longer being resynthesized (because the application or IME is handling or dropping them). The new design is structured as a pipeline with a chain of responsibility consisting of InputStage objects. Each InputStage is responsible for some part of handling each input event such as dispatching to the view hierarchy or to the IME. As a stage processes an input event, it has the option of finishing the event, forwarding the event to the next stage or handling the event asynchronously. Some queueing logic takes care to ensure that events are forwarded downstream in the correct order even if they are handled out of order by a given stage. Cleaned up the InputMethodManager singleton initialization logic to make it clearer that it must be attached to the main looper. We don't actually need to pass this looper around. Deleted the LatencyTimer class since no one uses it and we have better ways of measuring latency these days using systrace. Added a hidden helper to Looper to determine whether the current thread is the indicated Looper thread. Note: NativeActivity's IME dispatch is broken by this patch. This will be fixed later in another patch. Bug: 8473020 Change-Id: Iac2a1277545195a7a0137bbbdf04514c29165c60
* | resolved conflicts for merge of 5856ee4b to masterBrian Colonna2013-04-021-0/+4
|\ \ | |/ | | | | Change-Id: I60ba85bc246b9cf25d467b2099535aad47f82ca7
| * FUL now restarts when flipping tablet 180 (bug 7484464)Brian Colonna2013-03-291-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a tablet rotates, FUL must be stopped and restarted in a new position. 90 degree rotations cause a configuration change, causing FUL to be automatically reconstructed in the new location. However, a 180 degree rotation is not a configuration change, so FUL was not restarting. A 180 degree rotation happens more often than one might think. If you set the tablet down and later picked it up in the opposite orientation, FUL would not work prior to this fix. This change adds a rotation watcher to KeyguardFaceUnlockView. It watches for 180 degree rotations and stops and restarts FUL accordingly. The rotation watcher callback must be unregistered when KeyguardFaceUnlockView is recreated (as during 90 degree rotation changes), otherwise the number of rotation watcher callbacks will keep growing and they will never go away. This is a problem not just because there are many callbacks hanging around, but also because the old callbacks end up trying to access biometric unlock views that no longer exist, resulting in crashes. So, a simple function was added to the window manager to unregister a rotation watcher. Change-Id: Ie1ef20a9a22b8f4e39918987dff2b8ad444fcfd1
* | am 483ac9a7: am b404ecc9: Merge "Fix build." into jb-mr2-devDianne Hackborn2013-03-261-0/+21
|\ \ | |/ | | | | | | * commit '483ac9a779af452d7ef4007d0e24c569ee894557': Fix build.
| * Fix build.Dianne Hackborn2013-03-261-0/+21
| | | | | | | | Change-Id: I51b87ee5f0b7f396aad7e239893d9f0764f04bb6
* | Update layoutlib to latest interface.Craig Mautner2013-03-181-2/+2
| | | | | | | | | | | | Fix build.. Change-Id: I3504e8b8e8431ad76333e852cf42494b2404f8ad
* | am 892e0782: am ad4a174b: Merge "Fix build." into jb-mr2-devDianne Hackborn2013-03-051-0/+7
|\ \ | |/ | | | | | | * commit '892e07829414fda01594f52c54352c8dbbd37499': Fix build.
| * Fix build.Dianne Hackborn2013-03-051-0/+7
| | | | | | | | Change-Id: Iaa70b05a3cfd372518ec35aa8bcea2f9d78b8292
| * Revert ActivityManager changes for tasks. DO NOT MERGECraig Mautner2013-02-251-0/+18
|/ | | | | | | | | | | | | | | | | | | | | | | Keeping all activity=>task changes in master and removing them from jb-mr2. Revert "Update histories simultaneously." Revert "Add null check to setAppGroupId." Revert "Fix crashing bug in validator." Revert "Switch topRunning* and moveTaskTo*" Revert "Begin switch over to task based history." Revert "Reset and reuse Iterators and don't new() one." Revert "Remove AppWindowToken lists." Revert "Fix build." Revert "Remove unused App methods." Revert "Stop using AppToken movement and start using Task." Revert "Replace access to mAppTokens with AppTokenIterator" Revert "Refactor setAppOpVisibility implementation." Revert "Add AppWindowTokens to TaskList." Revert "Make ActivityStack.mHistory private." Revert "Migrate AppWindowToken lists into DisplayContent." Change-Id: I5722c9a4956dccb52864207e2967690bc58e4ebb
* Formalize overscan metrics.Dianne Hackborn2013-02-222-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The window manager now maintains and reports a new formal "overscan insets" for each window, much like the existing content and visible insets. This is used to correctly position the various UI elements in the various combination of layout options. In particular, this allows us to have an activity that is using fitSystemWindows to have the content of its UI extend out to the visible content part of the screen while still positioning its fixed UI elements inside the standard content rect (and the entire window extending all the way into the overscan area to fill the screen as desired). Okay, maybe that is not written so clearly. Well, it made my head hurt too, so suffer! The key thing is that windows now need to know about three rectangles: the overall rectangle of the window, the rectangle inside of the overscan area, and the rectangle inside of the content area. The FLAG_LAYOUT_IN_OVERSCAN option controls whether the second rectangle is pushed out to fill the entire overscan area. Also did some improvements to debug dumping in the window manager. Change-Id: Ib2368c4aff5709d00662c799507c37b6826929fd
* am ec6156f9: Merge "Fix the build."Jim Miller2013-02-201-0/+8
|\ | | | | | | | | * commit 'ec6156f9e884ba85c76a9c4683f83f18b3f64afa': Fix the build.
| * Fix the build.Jim Miller2013-02-201-0/+8
| | | | | | | | Change-Id: If53878937fe1ca01ad8db9f9d201d0f9aaaec81b
* | am ee973c27: Fix build.Dianne Hackborn2013-02-191-0/+6
|\ \ | |/ | | | | | | * commit 'ee973c27e339a23e0b93d816a97b33954af66bea': Fix build.
| * Fix build.Dianne Hackborn2013-02-191-0/+6
| | | | | | | | Change-Id: I277de38a70f3a2e5c1997a3fe5c2e825692ae9e1
* | am 534d136a: Merge "Remove unused App methods."Craig Mautner2013-02-141-18/+0
|\ \ | |/ | | | | | | | | # Via Android (Google) Code Review (1) and Craig Mautner (1) * commit '534d136aa66fb13f7c1b482513627de45c218c29': Remove unused App methods.
| * Remove unused App methods.Craig Mautner2013-02-131-18/+0
| | | | | | | | | | | | | | Now that the Task methods have replaced the App methods remove the App methods. Change-Id: I0e7432f2c6f99708759ed8c871d20eb5bd38c3c2
| * Merge "Revert "Merge remote-tracking branch 'goog/master-chromium' into ↵Chris Craik2013-02-131-0/+5
| |\ |/ / | | | | 'goog/master'" DO NOT MERGE"
| * Revert "Merge remote-tracking branch 'goog/master-chromium' into ↵Chris Craik2013-02-131-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | 'goog/master'" DO NOT MERGE This reverts commit 6c0307dd0aefe9a08794b155fc03ee60ebd14f25, reversing changes made to a2cd828b749c444d55c2c41c7dbb85088ff94b9f. Conflicts: packages/SystemUI/res/values-sv/strings.xml Change-Id: Ia178efe8b14751583d47b2826bfe3d3d5463dd2e
* | am 36ee5485: am 5d5c05de: am b7a4aed9: am f70b8c1c: Merge "Fix DateFormat ↵Xavier Ducrohet2013-02-122-0/+38
|\ \ | |/ |/| | | | | | | | | | | for layoutlib." into jb-mr1.1-dev # Via Android Git Automerger (3) and others * commit '36ee5485b85e34008dc31e0f7bace1b2516c5db5': Fix DateFormat for layoutlib.
| * am 5d5c05de: am b7a4aed9: am f70b8c1c: Merge "Fix DateFormat for layoutlib." ↵Xavier Ducrohet2013-02-122-0/+38
| |\ | | | | | | | | | | | | | | | | | | | | | into jb-mr1.1-dev # Via Android Git Automerger (2) and others * commit '5d5c05dee9911eaf8add2d4298641e60f2a113d5': Fix DateFormat for layoutlib.
| | * Fix DateFormat for layoutlib.Xavier Ducrohet2013-02-122-0/+38
| | | | | | | | | | | | Change-Id: I389c9d106b93b9f81dd3614398a5b66ba2b39a70
| * | am 23307cbb: am e0a676a3: Merge "Fix issue #7649590: Background windows ↵Dianne Hackborn2012-12-031-1/+1
| |\ \ | | |/ | | | | | | | | | | | | | | | sometimes not being hidden for secondary users" into jb-mr1.1-dev * commit '23307cbb6b432b658b0fd7437dacfedd6298af94': Fix issue #7649590: Background windows sometimes not being hidden for secondary users
| | * Fix issue #7649590: Background windows sometimes not being hidden for ↵Dianne Hackborn2012-12-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | secondary users There are two things going on here: (1) In secondary users, some times theme information such as whether the window is full screen opaque was not being retrieved, so the window manager didn't know that it could hide the windows behind the app. This would just be a performance problem, except that: (2) There appear to be a number of applications that declare that they are full screen opaque, when in fact they are not. Instead they are using window surfaces with an alpha channel, and setting some pixels in their window to a non-opaque alpha level. This will allow you to see whatever is behind the app. If the system happens to completely remove the windows behind the app, and somebody is filling the frame buffer with black, then you will see what the app intends -- those parts of its UI blended with black. If one of those cases doesn't hold (and though we have never guaranteed they would, in practice this is generally what happens), then you will see something else. At any rate, if nothing else than for performance reasons, we need to fix issue #1. It turns out what is happening here is that the AttributeCache used by the activity manager and window manager to retreive theme and other information about applications has not yet been updated for multi-user. One of the things we retrieve from this is the theme information telling the window manager whether an application's window should be treated as full screen opaque, allowing it to hide any windows behind it. In the current implementation, the AttributeCache always retrieves this information about the application as the primary user (user 0). So, if you have an application that is installed on a secondary user but not installed on the primary user, when the AttributeCache tries to retrieve the requested information for it, then from the perspective of the primary user it considers the application not installed, and is not able to retrieve that info. The change here makes AttributeCache multi-user aware, keeping all of its data separately per-user, and requiring that callers now provide the user they want to retrieve information for. Activity manager and window manager are updated to be able to pass in the user when needed. This required some fiddling of the window manager to have that information available -- in particular it needs to be associated with the AppWindowToken. Change-Id: I4b50b4b3a41bab9d4689e61f3584778e451343c8
* | | Merge "Merge remote-tracking branch 'goog/master-chromium' into 'goog/master'"Derek Sollenberger2013-02-061-5/+0
|\ \ \
| * \ \ am 573a18cc: Merge "Fixing the build"Svetoslav2013-01-291-0/+6
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | # Via Android (Google) Code Review (1) and Svetoslav (1) * commit '573a18ccd883d18046dea600855d34f5c9a57fa8': Fixing the build
| * \ \ \ am 8fea4e72: Merge "Rework ParceledListSlice to be much easier to use."Dianne Hackborn2013-01-181-0/+6
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * commit '8fea4e72e4dcff9fa76168b9e26cf5907102f70b': Rework ParceledListSlice to be much easier to use.
| * \ \ \ \ am 35654b61: More work on App Ops service.Dianne Hackborn2013-01-161-15/+19
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '35654b61e8fe7bc85afcb076ddbb590d51c5865f': More work on App Ops service.
| * \ \ \ \ \ am 72c6137a: Handle empty flag attributes, such as gravity=""Tor Norbye2013-01-041-1/+1
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '72c6137a7aa5e5ada6a4aeca52f33d060742beb6': Handle empty flag attributes, such as gravity=""
| * \ \ \ \ \ \ Merge "Update framework to support r5967 of Skia." into master-chromiumDerek Sollenberger2012-12-191-5/+0
| |\ \ \ \ \ \ \