7566d76c618a48b8dcc981dac3cab1e42f864063 |
|
30-Mar-2017 |
Bryce Lee <brycelee@google.com> |
Add app bounds to configuration. The system previously overrode the display size for a specific scope (task/activity/etc.) by setting the associated Configuration's screenWidthDp/screenHeightDp. This leads to two issues. First, the conversion of screen size from pixels to display independent pixels and then upconverting later on leads to rounding errors. Secondly, the screenWidthDp and screenHeightDp values account for insets, such as the status bar. These however are not reflected in the display size when returned from Display#getMetrics/getSize. This changelist addresses the issue by adding a Rect value to Configuration which stores the app display bounds. This is always set at the display level and overridden as appropriate. As the proper app insets are accounted for at the root configuration, all overrides (outside of specific exceptions) are the result of the intersection between the requested bound and the parent bound. Change-Id: I2c4fcd0bee92af12aabbca258de05b4ec061d0e1 Fixes: 34338931 Bug: 36812336 Bug: 36676979 Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsAppTestCases android.app.cts.AspectRatioTests Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerDisplayTests Test: bit FrameworksServicesTests:com.android.server.wm.AppBoundsTests
/frameworks/base/graphics/java/android/graphics/Rect.java
|
d253797588f6847d582078bc6a4171e3dc5d8405 |
|
23-Mar-2016 |
Sergey Vasilinets <sergeyv@google.com> |
Fix NinePatch insets scaling bug:27323867 Change-Id: I33c0007eb9259703c73d2e3672ae1427a2155037
/frameworks/base/graphics/java/android/graphics/Rect.java
|
ccdc3ebb9c9bf67ec8e0e30ab117c82bf8485663 |
|
15-Mar-2016 |
Chris Craik <ccraik@google.com> |
Document that Rect right/bottom are exclusive bug:22254401 Change-Id: I891e73404937b4b67210f0ac180f4cef952f8f16
/frameworks/base/graphics/java/android/graphics/Rect.java
|
0a932141980b576e0b9bcec9a077f55b7b269a02 |
|
02-Feb-2016 |
Jorim Jaggi <jjaggi@google.com> |
Exclude stable insets from task config When a app is in fullscreen, we exclude navigation bar and status bar size when calculating the config. However, when in multi-window, and the task was almost fullscreen, the height/width reported to the app was actually larger than when it was in fullscreen. In order to fix this, exclude the stable insets when calculating the task configuration, and also fix a bug when calculating the screen layout. Change-Id: I843ae012fb3050c79643d125550aacb6e73d27da
/frameworks/base/graphics/java/android/graphics/Rect.java
|
c6c89a82144f59475242c75d67529fed943ae30b |
|
29-Jan-2016 |
Jorim Jaggi <jjaggi@google.com> |
Fix transition to recents in docked mode Transition for non-compatible apps will be handled in a separate CL. Change-Id: I9c474f7aa394e4f3eacd1845c78bee5874bd8a59
/frameworks/base/graphics/java/android/graphics/Rect.java
|
5b3edbde20b446ecbfebe5d6ad0dcd735473ac75 |
|
23-Apr-2015 |
Chet Haase <chet@google.com> |
Add annotation to Rect.intersect() Failing to check the return result from intersect() can cause artifacts because the developer may assume that the rect has been changed to the intersection. In particular, when the two rects do not overlap, there is no change made to the source rect. Instead, the method simply returns false. When developers do not check that return value, they may use the source rect and get undefined results. This change adds the @CheckResults annotation that will cause a Lint warning when developers call this method without checking the return value. Change-Id: I476367d74e712038c248c2379fb124734298fcc1
/frameworks/base/graphics/java/android/graphics/Rect.java
|
47cd8e921db73e894f94ec4729ade90da50996f5 |
|
09-Jul-2014 |
Chris Craik <ccraik@google.com> |
Implement outline support for nine patches b/15856895 Nine patches now have outline round rect metadata stored as optional png tags. aapt generates these automatically by inspecting the bitmap pixels to estimate outline bounds and round rect radius, based on opacity. Change-Id: I226e328a97873010d9e1adb797ac48f93a31183c
/frameworks/base/graphics/java/android/graphics/Rect.java
|
5d5d14fd97aa8d7adf00911a9b337b9a88da41cd |
|
15-May-2014 |
Ian Rogers <irogers@google.com> |
Move FLATTENED_PATTERN to inner class. Avoid AOT compilation/initialization in ART failing due to regex.Pattern requiring native support. Bug: 14646037 Change-Id: I9d9c7fd9ed9fab7e21d37f9b31c00d037fc5a691
/frameworks/base/graphics/java/android/graphics/Rect.java
|
dd4b1fec4c93c7417314febecebfd91e916f5ff6 |
|
13-Sep-2012 |
Romain Guy <romainguy@google.com> |
Don't crash when copying a null Rect Bug #7158068 Change-Id: I8f5f3ee12b2c4fd1fe28212b0c6de1214f2ce5f9
/frameworks/base/graphics/java/android/graphics/Rect.java
|
852be16790d099f95fb2c4fe7b316455662ee97f |
|
11-May-2012 |
Pin Ting <pinting@google.com> |
Fix typo in javadoc. Change-Id: I0e5d8640764772871e72cb00d117d12f3eaeb64f
/frameworks/base/graphics/java/android/graphics/Rect.java
|
cfef12374c15b11b3c2a1041582be9728152e15d |
|
23-Feb-2012 |
Romain Guy <romainguy@google.com> |
Perform early intersect to avoid unnecessary draws Change-Id: I48d61c4488e622f93733d8e53a50c93e6a20166d
/frameworks/base/graphics/java/android/graphics/Rect.java
|
74d7ca133a6db82abba5c0abe443fb001928e72c |
|
31-Jan-2012 |
Romain Guy <romainguy@google.com> |
Proper equals/hashCode impls in Rect and RectF Change-Id: Ief52d84f134018af4dfd19674de12736c056e3f8
/frameworks/base/graphics/java/android/graphics/Rect.java
|
cc3ec6cdb2b892eb29513e72d8b205acbe997b25 |
|
23-Jun-2010 |
Gilles Debunne <debunne@google.com> |
New cursor controller in TextViews. Editable TextView now display a cursor controller under the insertion point so that it can be precisely moved. Change-Id: Ia2e6ddc57d249647ff6683e10e4226db3df27223
/frameworks/base/graphics/java/android/graphics/Rect.java
|
c7a63eea8d3d346addaaf892b5bbe0aa80651640 |
|
03-Dec-2009 |
Joe Onorato <joeo@android.com> |
Add a new field to Intent that allows you to give a hint about what on screen caused the intent to be sent.
/frameworks/base/graphics/java/android/graphics/Rect.java
|
61324e58c549670c015010d0be14c6af76e3e9f7 |
|
22-Jul-2009 |
Mitsuru Oshima <oshima@google.com> |
cast is floor. Use round instead. This fixes a few layout issues (that was due to smaller widnow size)
/frameworks/base/graphics/java/android/graphics/Rect.java
|
13735a255dedd2c2e3b0cff66f0be2e17671f553 |
|
29-Apr-2009 |
Mitsuru Oshima <> |
Merge branch 'readonly-p4-donut' into donut
|
8169daed2f7a8731d478b884b1f455c747b88478 |
|
29-Apr-2009 |
Mitsuru Oshima <> |
AI 147976: Compatibility mode support. Part 2. * 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
/frameworks/base/graphics/java/android/graphics/Rect.java
|
1d442e0d990b581357f33f5463c7c5cb49b551e8 |
|
21-Apr-2009 |
Dianne Hackborn <hackbod@google.com> |
More optimization of dumpsys output. There are three major classes of changes here: - Avoid writing lines where their values are often empty, false, or some other typical thing. - Use partial writes to the PrintWriter to avoid creating temporary strings. - Use StringBuilder where we need to generate real String objects (and where possible cache the result).
/frameworks/base/graphics/java/android/graphics/Rect.java
|
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/frameworks/base/graphics/java/android/graphics/Rect.java
|
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/frameworks/base/graphics/java/android/graphics/Rect.java
|
f013e1afd1e68af5e3b868c26a653bbfb39538f8 |
|
18-Dec-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Code drop from //branches/cupcake/...@124589
/frameworks/base/graphics/java/android/graphics/Rect.java
|
54b6cfa9a9e5b861a9930af873580d6dc20f773c |
|
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
/frameworks/base/graphics/java/android/graphics/Rect.java
|