summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Refactoring of the screen magnification feature.Svetoslav Ganov2012-12-031-30/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. The screen magnification feature was implemented entirely as a part of the accessibility manager. To achieve that the window manager had to implement a bunch of hooks for an external client to observe its internal state. This was problematic since it dilutes the window manager interface and allows code that is deeply coupled with the window manager to reside outside of it. Also the observer callbacks were IPCs which cannot be called with the window manager's lock held. To avoid that the window manager had to post messages requesting notification of interested parties which makes the code consuming the callbacks to run asynchronously of the window manager. This causes timing issues and adds unnecessary complexity. Now the magnification logic is split in two halves. The first half that is responsible to track the magnified portion of the screen and serve as a policy which windows can be magnified and it is a part of the window manager. This part exposes higher level APIs allowing interested parties with the right permissions to control the magnification of a given display. The APIs also allow a client to be registered for callbacks on interesting changes such as resize of the magnified region, etc. This part servers as a mediator between magnification controllers and the window manager. The second half is a controller that is responsible to drive the magnification state based on touch interactions. It also presents a highlight when magnified to suggest the magnified potion of the screen. The controller is responsible for auto zooming out in case the user context changes - rotation, new actitivity. The controller also auto pans if a dialog appears and it does not interesect the magnified frame. bug:7410464 2. By design screen magnification and touch exploration work separately and together. If magnification is enabled the user sees a larger version of the widgets and a sub section of the screen content. Accessibility services use the introspection APIs to "see" what is on the screen so they can speak it, navigate to the next item in response to a gesture, etc. Hence, the information returned to accessibility services has to reflect what a sighted user would see on the screen. Therefore, if the screen is magnified we need to adjust the bounds and position of the infos describing views in a magnified window such that the info bounds are equivalent to what the user sees. To improve performance we keep accessibility node info caches in the client process. However, when magnification state changes we have to clear these caches since the bounds of the cached infos no longer reflect the screen content which just got smaller or larger. This patch propagates not only the window scale as before but also the X/Y pan and the bounds of the magnified portion of the screen to the introspected app. This information is used to adjust the bounds of the node infos coming from this window such that the reported bounds are the same as the user sees not as the app thinks they are. Note that if magnification is enabled we zoom the content and pan it along the X and Y axis. Also recomputed is the isVisibleToUser property of the reported info since in a magnified state the user sees a subset of the window content and the views not in the magnified viewport should be reported as not visible to the user. bug:7344059 Change-Id: I6f7832c7a6a65c5368b390eb1f1518d0c7afd7d2
* | | | am e659cea6: am d51ffbea: am faeabc7b: Merge "Cache resource ID lookups in aapt"Christopher Tate2012-11-274-5/+148
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit 'e659cea645c55fb6ecc744881e288007d53fc9a2': Cache resource ID lookups in aapt
| * | | Cache resource ID lookups in aaptChristopher Tate2012-11-274-5/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This speeds up certain workloads considerably, particularly those involved in buildling apps via the SDK. Windows-based use should particularly benefit from the change. Change-Id: I29f4b3a77400b201ee219729cc28a5e359c0c5e8
* | | | am 061b4fae: am a2bf6181: am 2c29deaa: am 6be441c5: Merge "Add mechanism to ↵Jim Miller2012-11-081-0/+5
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | kick keyguard to show the assistant" into jb-mr1-lockscreen-dev * commit '061b4fae3daf40c90b46e16b12e7f22142eb498c': Add mechanism to kick keyguard to show the assistant
| * | | am a2bf6181: am 2c29deaa: am 6be441c5: Merge "Add mechanism to kick keyguard ↵Jim Miller2012-11-081-0/+5
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | to show the assistant" into jb-mr1-lockscreen-dev * commit 'a2bf6181dfca0f93461fc041f2bd2444551a4515': Add mechanism to kick keyguard to show the assistant
| | * | am 2c29deaa: am 6be441c5: Merge "Add mechanism to kick keyguard to show the ↵Jim Miller2012-11-081-0/+5
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | assistant" into jb-mr1-lockscreen-dev * commit '2c29deaa2650091d9206b8fa93f8a447ee247d52': Add mechanism to kick keyguard to show the assistant
| | | * Add mechanism to kick keyguard to show the assistantJim Miller2012-11-081-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | Fixes bug 7499778 Change-Id: Ic9ea514feb489feeee6716f40bdb9792842f9515
* | | | am bef82757: am c7dc250d: am fe7e94a0: am 088fb915: Merge "Add ↵Jim Miller2012-11-081-0/+5
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | isSafeModeEnabled() API to WindowManagerService" into jb-mr1-lockscreen-dev * commit 'bef827572ce9644253ea42ab91b11b8107d2300f': Add isSafeModeEnabled() API to WindowManagerService
| * | | am c7dc250d: am fe7e94a0: am 088fb915: Merge "Add isSafeModeEnabled() API to ↵Jim Miller2012-11-081-0/+5
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | WindowManagerService" into jb-mr1-lockscreen-dev * commit 'c7dc250d5a3dab93ff87e9986a71ae58ff124399': Add isSafeModeEnabled() API to WindowManagerService
| | * | am fe7e94a0: am 088fb915: Merge "Add isSafeModeEnabled() API to ↵Jim Miller2012-11-071-0/+5
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | WindowManagerService" into jb-mr1-lockscreen-dev * commit 'fe7e94a094746b608eb926fadc3ee1446bbb0d58': Add isSafeModeEnabled() API to WindowManagerService
| | | * Add isSafeModeEnabled() API to WindowManagerServiceJim Miller2012-11-051-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a means of determining when the device is in safe mode, as required by keyguard to disabled some features. Change-Id: I31d357e6738c92e1837f9e0263e5f3f4de66315a
* | | | am 58ed5d74: am 768d9e1a: Merge "Correct executable bit for source files"Kenny Root2012-11-078-0/+0
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit '58ed5d748c0b9b64845975ef5844ad313de7c3f6': Correct executable bit for source files
| * | | am 768d9e1a: Merge "Correct executable bit for source files"Kenny Root2012-11-078-0/+0
| |\ \ \ | | | | | | | | | | | | | | | | | | | | * commit '768d9e1a72ceee7d4a5f608776b87b62d6ce4a04': Correct executable bit for source files
| | * | | Correct executable bit for source filesKenny Root2012-11-078-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Many media files and source code files were marked as executable in Git. Remove those. Also a shell script and python script were not marked as executable. Change-Id: Ieb51bafb46c895a21d2e83696f5a901ba752b2c5
| | * | | am fb34490f: Merge "Fix writing text version of styleable IDs."Xavier Ducrohet2012-09-261-1/+1
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * commit 'fb34490f4dca7aac623fb9a80fe9a2371107a786': Fix writing text version of styleable IDs.
| | | * | | Fix writing text version of styleable IDs.Xavier Ducrohet2012-09-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I3f2614689a597de3fd46628c020cf649a808c82f
* | | | | | Merge "Enhance AIDL to take an explicit id for methods"Maurice Chu2012-10-195-4/+132
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Enhance AIDL to take an explicit id for methodsMaurice Chu2012-10-185-4/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds an annotation to methods in AIDL of the form "void myMethod() = 3;" to explicitly set the onTransact id for the method. Either all methods must have explicitly annotated id's or none of them should be explicitly annotated. There is error checking in the AIDL compiler for duplicate id's and id's outside of the valid range. Bug: 7353910 Change-Id: I868045e3f112c9a279c573cea368a621116cbf77
* | | | | | am 26d76606: am d8149b03: Merge "Layoutlib: Read and close XML files as soon ↵Xavier Ducrohet2012-10-181-3/+68
|\ \ \ \ \ \ | | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | as possible." into jb-mr1-dev * commit '26d76606aff48680fc61f9decaeddff3a568ca58': Layoutlib: Read and close XML files as soon as possible.
| * | | | | am d8149b03: Merge "Layoutlib: Read and close XML files as soon as ↵Xavier Ducrohet2012-10-181-3/+68
| |\ \ \ \ \ | | | |_|_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | possible." into jb-mr1-dev * commit 'd8149b03a8676a49f6ca500eecafe79fadf046a7': Layoutlib: Read and close XML files as soon as possible.
| | * | | | Layoutlib: Read and close XML files as soon as possible.Xavier Ducrohet2012-10-181-3/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because passing an InputStream to KXML does not close the stream after the file has been parsed, the files are staying locked on windows until the gc and finalizers are run. This change preload the XML files and close their stream, and then pass the content in a stream to the parser. Change-Id: Iabe27989dc616ec9e7de88e52b1ec3af9f007f7c
* | | | | | am 441f0672: am 9c474738: Merge "Update layoutlib for jb mr1." into jb-mr1-devXavier Ducrohet2012-10-1729-95/+184
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | * commit '441f0672ed65feead06c4a05d7e6bf894ab2a982': Update layoutlib for jb mr1.
| * | | | | am 9c474738: Merge "Update layoutlib for jb mr1." into jb-mr1-devXavier Ducrohet2012-10-1729-95/+184
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | * commit '9c474738a29f77359a461035855d6e9b3935ade1': Update layoutlib for jb mr1.
| | * | | | Update layoutlib for jb mr1.Xavier Ducrohet2012-10-1729-95/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Status bar displayed on all devices. Update logic for displaying nav bar to whether or not device has soft button. Update navigation buttons to new look. Remove battery and signal from navigation bar. Change-Id: I8241d71269a17126218a3062ba727e379a8e6c25
* | | | | | am 136bd7c6: am 477687c1: Merge "Fix SDK layout rendering in Eclipse." into ↵Xavier Ducrohet2012-10-159-28/+186
|\ \ \ \ \ \ | |/ / / / / | | | / / / | |_|/ / / |/| | | | | | | | | | | | | | jb-mr1-dev * commit '136bd7c6aef8767dc208811ad87f90956333e78f': Fix SDK layout rendering in Eclipse.
| * | | | am 477687c1: Merge "Fix SDK layout rendering in Eclipse." into jb-mr1-devXavier Ducrohet2012-10-159-28/+186
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | * commit '477687c1eb1919c54e2bffba2a740df3b4af6668': Fix SDK layout rendering in Eclipse.
| | * | | Fix SDK layout rendering in Eclipse.Xavier Ducrohet2012-10-159-28/+186
| | | | | | | | | | | | | | | | | | | | Change-Id: I0e9e85632012c0929b987ee9d0ccf7c25eece322
* | | | | am 8ee7ac22: am 33877e15: Merge "Adds showWhenLocked attribute to ↵Craig Mautner2012-10-071-1/+2
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | Activities." into jb-mr1-dev * commit '8ee7ac22e6aec5df5405a3e2130d593c50bc39b2': Adds showWhenLocked attribute to Activities.
| * | | | am 33877e15: Merge "Adds showWhenLocked attribute to Activities." into ↵Craig Mautner2012-10-071-1/+2
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | jb-mr1-dev * commit '33877e15b8bfc50bd874027689a4794aa93b923d': Adds showWhenLocked attribute to Activities.
| | * | | Merge "Adds showWhenLocked attribute to Activities." into jb-mr1-devCraig Mautner2012-10-071-1/+2
| | |\ \ \
| | | * | | Adds showWhenLocked attribute to Activities.Craig Mautner2012-10-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new attribute allows an Activity such as the alarm to appear on all users screens. Bug: 7213805 fixed. Change-Id: If7866b13d88c04af07debc69e0e875d0adc6050a
* | | | | | am 513b8ea1: am 3f1246a2: Merge "Coordinate screen on with the window ↵Jeff Brown2012-10-051-2/+2
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | manager." into jb-mr1-dev * commit '513b8ea16fdedd7b6debd718798c0220edd61d7f': Coordinate screen on with the window manager.
| * | | | | am 3f1246a2: Merge "Coordinate screen on with the window manager." into ↵Jeff Brown2012-10-051-2/+2
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | jb-mr1-dev * commit '3f1246a29b58cf78ebe674ec0905ad1795027aac': Coordinate screen on with the window manager.
| | * | | | Coordinate screen on with the window manager.Jeff Brown2012-10-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 7267457 Change-Id: Ic2c322253639e1f0b2e4e72a7b145025d0240f93
* | | | | | am a39c5c36: am 327424d6: Merge "Plumbing to allow keyguard to be shown with ↵Adam Cohen2012-10-041-1/+2
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | user switcher (issue 7175023)" into jb-mr1-dev * commit 'a39c5c369af24cc25f77b9ac97dfffae41c73eb6': Plumbing to allow keyguard to be shown with user switcher (issue 7175023)
| * | | | | am 327424d6: Merge "Plumbing to allow keyguard to be shown with user ↵Adam Cohen2012-10-041-1/+2
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | switcher (issue 7175023)" into jb-mr1-dev * commit '327424d69b99213e872e91f05feba2d0a137d6c7': Plumbing to allow keyguard to be shown with user switcher (issue 7175023)
| | * | | | Plumbing to allow keyguard to be shown with user switcher (issue 7175023)Adam Cohen2012-10-041-1/+2
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | -> Also reduced calls to lockNow, and moved this call in ActivityManagerService Change-Id: I9ba34ca902f7c0f71fa4ec302104688ca8d11f55
* | | | | am cd09cb8f: am 6fb7fd3a: Merge "Fix issue #7267494, issue #7212347" into ↵Dianne Hackborn2012-10-031-1/+6
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | jb-mr1-dev * commit 'cd09cb8fb79442aa22018db9134ef1ef22059360': Fix issue #7267494, issue #7212347
| * | | | am 6fb7fd3a: Merge "Fix issue #7267494, issue #7212347" into jb-mr1-devDianne Hackborn2012-10-031-1/+6
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | * commit '6fb7fd3a0939413d8968fc0d404ed499d7f7dc52': Fix issue #7267494, issue #7212347
| | * | | Fix issue #7267494, issue #7212347Dianne Hackborn2012-10-031-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7267494 Calendar is not syncing Check for whether a content provider is dead before returning it. This is kind-of a band-aid, but probably the right thing to do; I'm just not sure exactly the full details of why this problem is happening. Hopefully this "fixes" it, though I don't have a way to repro to tell. 7212347 System power off dialog is only visible to user 0 Make it visible. Also turn on some battery debugging stuff and clean it up so we can just keep it. Change-Id: I5add25bf2a763c8dfe1df23bc5c753a9ea5d157a
* | | | | am cd781ce2: am cb6f950f: Merge "New internal API to eliminate poke locks." ↵Jeff Brown2012-10-011-5/+0
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | into jb-mr1-dev * commit 'cd781ce2ebc104cf83d630889ae330a980635c9e': New internal API to eliminate poke locks.
| * | | | am cb6f950f: Merge "New internal API to eliminate poke locks." into jb-mr1-devJeff Brown2012-10-011-5/+0
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | * commit 'cb6f950f15919794d26a55c20090fe5dacd11e4a': New internal API to eliminate poke locks.
| | * | | New internal API to eliminate poke locks.Jeff Brown2012-10-011-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added a new WindowManager.LayoutParams inputFeatures flag to disable automatic user activity behavior when an input event is sent to a window. Added a new WindowManager.LayoutParams field userActivityTimeout. Bug: 7165399 Change-Id: I204eafa37ef26aacc2c52a1ba1ecce1eebb0e0d9
* | | | | am 5d359a92: am 5e3dcf72: Merge "Remove clearUserActivityTimeout()." into ↵Jeff Brown2012-10-011-5/+0
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | jb-mr1-dev * commit '5d359a92658d01b0220f77eb294d6124848739bc': Remove clearUserActivityTimeout().
| * | | | am 5e3dcf72: Merge "Remove clearUserActivityTimeout()." into jb-mr1-devJeff Brown2012-10-011-5/+0
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | * commit '5e3dcf7210bed65d8f9aec40d9da078daf76dead': Remove clearUserActivityTimeout().
| | * | | Remove clearUserActivityTimeout().Jeff Brown2012-09-301-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This function is not implemented and not needed. Bug: 7165399 Change-Id: Ib1c50fabad6292ccf670404ba70aeb1242c4614d
* | | | | am 489c1e9f: am 7f813202: Merge "Get rid of preventScreenOn()." into jb-mr1-devJeff Brown2012-10-011-5/+0
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * commit '489c1e9f82250770004ec9080778546b040f6146': Get rid of preventScreenOn().
| * | | | am 7f813202: Merge "Get rid of preventScreenOn()." into jb-mr1-devJeff Brown2012-09-281-5/+0
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | * commit '7f813202cb08a829b59e17be749ffee4a2f482b8': Get rid of preventScreenOn().
| | * | | Get rid of preventScreenOn().Jeff Brown2012-09-281-5/+0
| |/ / / |/| | | | | | | | | | | | | | | Bug: 7165399 Change-Id: I1968265ecd74fff4d85efd2ca03b1983425ea518
| * | | am 0c9bbf4e: Merge "Make DreamManagerService more robust." into jb-mr1-devJeff Brown2012-09-261-0/+5
| |\ \ \ | |/ / / |/| | | | | | | | | | | * commit '0c9bbf4e13f2be6a4b930da2379c77e06a68c2cb': Make DreamManagerService more robust.