summaryrefslogtreecommitdiff
path: root/tools/layoutlib/bridge/src
AgeCommit message (Collapse)Author
2017-05-10Removing layout from frameworks/baseDiego Perez
The directory is being moved to its own project in frameworks/layoutlib Bug: 36889565 Test: Built manually Change-Id: I69a1a826d0bac8ede1f9a337c9c1d930bbcd04f3
2017-05-10Merge "Modify font metrics computation to match Android"Jerome Gaillard
2017-05-09Modify font metrics computation to match AndroidJerome Gaillard
On Android, font metrics top and bottom seem 15% larger than ascent and descent. Paint_Delegate is modified to reflect this fact. Test: layoutlib tests updated Bug: 38117115 Change-Id: I4e9995ccbc991fbb857c8e3af45a908ad55db99e
2017-05-09Update Typeface_Delegate following Change Ied73189bJerome Gaillard
Test: layoutlib tests Change-Id: I86ef9794751c6adb3f304ae6e00c5e24428da5dd
2017-05-08Merge "Merge "Fix a NPE with outlineProvider="none"" am: 46a4fbb2e4 am: ↵Sergey Prigogin
65d65ec14b am: a3460f2bb1" into oc-dev-plus-aosp am: 939ba35913 Change-Id: Ib427f57b4a505b1622758773f24c44e1bd69db6d
2017-05-08Merge "Fix a NPE with outlineProvider="none"" am: 46a4fbb2e4 am: 65d65ec14bSergey Prigogin
am: a3460f2bb1 Change-Id: Iccb6dc6a7758abffe2d25bcc8b5dfbb1f600b05c
2017-05-06Merge "Draw rectangle shadow fast in low elevation cases"TreeHugger Robot
2017-05-06Draw rectangle shadow fast in low elevation casesCharlie Tsai
When the elevation is not high, the shadow is similar to just add some dark lines on the edges and corners of rectangle views. Using simple algorithm can also improve the performance and save more memory. Test: The render result of unit test is updated. Bug: 37906145 Change-Id: I28758f868ee6e24e4552368bddfb7ac10fe0a205
2017-05-05Merge "avoid calculate shadow when elevation is 0"TreeHugger Robot
2017-05-04avoid calculate shadow when elevation is 0Charlie Tsai
Test: N/A Bug: 37906145 Change-Id: Ib8dc3f781767271388eb3e6f886267e9d98d67f8
2017-05-02Merge "Ignore density in AdaptiveIconDrawable"Jerome Gaillard
2017-05-02Merge "Update AccessibilityManager in layoutlib following I65db0252"Jerome Gaillard
2017-05-01Merge "SystemApi for dex module registration"Calin Juravle
2017-05-01Merge "Added dialog to notify user of thermal shutdown" into oc-dev am: ↵Salvador Martinez
4d09adcef1 am: ba1cc4bb42 Change-Id: I6d0a0c6dc87bac1470eb4cfccee61c878bed9ee3
2017-04-27SystemApi for dex module registrationCalin Juravle
PackageManager#registerDexModule() allows apps which can call system apis to register a dex module with the Package Manager. The PM may optimize the modules on the spot if needed. This is particular useful for shared dex modules (e.g. chimera modules) which are loaded in multiple processes. Test: adb shell am instrument -e class 'android.content.pm.PackageManagerTests' -w 'com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner' Bug: 37290820 Change-Id: I9ea8f937a76d2549a29e90a6c84c53c2e44a1ee4
2017-04-27Added dialog to notify user of thermal shutdownSalvador Martinez
tldr; Have the phone check when it reboots if it last shut down due to heat. If so, we should show the user an notification and dialog giving them more details. - Added hidden api to allow apps to query system_server for the reason the phone last rebooted - Added notification that is shown when the phone is booted if the last shutdown was due to excessive heat. - Added dialog to provide more details about the shutdown if the notification is tapped. - Added tests to verify that file is read and as expected. - Updated code for high temperature warning that is shown while the phone is running to avoid mixups in the future. Test: FrameworksServiceTests Bug: 30994946 Change-Id: Ic25f42539911c89ba7f1834e206f7931d65c2865
2017-04-25Fix a NPE with outlineProvider="none"Sergey Prigogin
Do not attempt to draw outline when outline provider is null. Test: manually follow the steps in https://b.corp.google.com/issues/37139123#comment1 Bug: https://issuetracker.google.com/37139123 Change-Id: I6e09c187d5a8e1364e2ecbe12bbb5a17ad057965 Signed-off-by: Sergey Prigogin <sprigogin@google.com>
2017-04-25Ignore density in AdaptiveIconDrawableJerome Gaillard
This was introduced in Change Iaa9a5592. Test: layoutlib tests Change-Id: Id4c9f3e75de174106aa086b29cd7d12fa36b0e61
2017-04-25Update AccessibilityManager in layoutlib following I65db0252Jerome Gaillard
Test: layoutlib tests Change-Id: I279754532db1097a65a8683057f8f3893b84af84
2017-04-20Merge "Address API review comments for registerReceiver" into oc-dev am: ↵Chad Brubaker
1f4e053aef am: 46f7f1c245 Change-Id: If4167d8458b144a73deeaceeaa51b1f8d482d6d7
2017-04-20Merge "Address API review comments for registerReceiver" into oc-devChad Brubaker
2017-04-20Merge "Address API council comments" into oc-dev am: fb4fb03cc3Svetoslav Ganov
am: 375d615b30 Change-Id: Ibba72870f4d4da53ab411b5e279a967a86584e19
2017-04-20Merge "Change ANDROID_ID for Instant Apps" into oc-dev am: 904e6cad28Chad Brubaker
am: 97eecf8d09 Change-Id: Ibbea27ef27bfaa43649d0ff86e23f0ffd559d7f6
2017-04-20Merge "Address API council comments" into oc-devTreeHugger Robot
2017-04-19Address API review comments for registerReceiverChad Brubaker
Bug: 37465538 Test: manual; Verified that Instant Apps can send broadcasts to receivers still via the changed API. Change-Id: Ib0f3d0c8ee71234288ccecd07e621554eb9b70ac
2017-04-19Change ANDROID_ID for Instant AppsChad Brubaker
ANDROID_ID for Instant Apps now has the following properties: 1) per-app scoped 2) reset if the user clears the Instant App 3) remains the same if the Instant App gets upgraded to an installed app. Note that if the user goes instant -> installed_1 -> uninstall -> installed_2 the ANDROID_ID at installed_1 will not be the same as installed_2. This was deemed better than the id changing on the upgrade step. Test: manual Change-Id: I532975c50049c94ff80902a897e001dd35a69f9f
2017-04-18Address API council commentsSvetoslav Ganov
Test: cookie CTS tests pass bug:37327624 bug:37325276 bug:37323696 Change-Id: I52b10470759e471629ec6772e115df94482eb341
2017-04-18Update layoutlib following Changes I7cf390d9 and I65e220acJerome Gaillard
Test: layoutlib tests Change-Id: I605a75d23e49d59a50362bbcf575561a613d4156
2017-04-18Merge "Turn down the preliminary foreground service API" into oc-dev am: ↵Christopher Tate
00ed0baca8 am: 663de998e7 Change-Id: I1c70471deaa3991945d2950d1c6e0f5bc90805b4
2017-04-17Turn down the preliminary foreground service APIChristopher Tate
The NotificationManager.startServiceInForeground() experiment is over, and will not ship as API, so it's time to tidy up and get rid of it. Bug 36130212 Test: manual Change-Id: I834d1ce059aa464ff27f69f5e5d3625cc5e61d8a
2017-04-17Merge "expose the instant app installer component" into oc-dev am: 676590d060Todd Kennedy
am: 8d0dacb5b1 Change-Id: Id1df099740c6e108878c8f10aacceb59b42b0041
2017-04-14expose the instant app installer componentTodd Kennedy
Bug: 35873804 Test: TreeHugger Change-Id: I4d962927587bb10833bfe3c3db27fdceab668fc3
2017-04-12Merge "Update Typeface.Builder API to reflect API feedback." into oc-dev am: ↵Seigo Nonaka
1e924df63e am: fa4b862518 Change-Id: I0aa32f46d20a5d46454f2a6057db2ca0e70f1d84
2017-04-12Update Typeface.Builder API to reflect API feedback.Seigo Nonaka
- Stop pooling and remove reset method. - Introduce overloaded constructors instead of setSource methods. - Make italic parameter boolean and treat "not called" as RESOLVE_BY_FONT_TABLE. - Remove constants and move them to Typeface with private static constant. - Fix JavaDoc. Bug: 37082657 Test: android.graphics.cts.TypefaceTest passed Change-Id: I0c50cf3e2d50c0021f7e12bbb7ed7ae89fa1c2a1
2017-04-10Update Bitmap_Delegate following Change I0092fe44Jerome Gaillard
Test: Layoutlib tests Change-Id: I3b1cfb460a6b7ccd6b63bd53194383154a68591c
2017-04-04Merge "Reorganize font enumeration API." into oc-dev am: 2ac9698271Seigo Nonaka
am: de5fa6b3d8 Change-Id: I72a02f3f681b3b5f82cffc317fe0668e842464fe
2017-04-04Fixed Intent parsing error of PreferenceScreenCharlie Tsai
When PreferenceScreen contains the Intent tag with the extra tag, the parsing of xml file is failed and causes the render problem on Layout editor. Test: N/A Bug: http://b.android.com/233302 Change-Id: I987de7aa125299d46fc1b7670f07f3dd4427ee21
2017-04-03Reorganize font enumeration API.Seigo Nonaka
This CL cleans up APIs around font variation settings. - Remove FontConfig and FontManager public API. - Remove FontManagerService from system service. - Extract inner class FontConfig.Axis as top-level class FontVariationAxis. This is used by Typeface.Builder public API to create new Typeface. - Introduce and expose FontVariationAxis utility functions from/to string. - Throws if the invalid font variation settings is passed. Test: android.text.cts.FontVariationAxisTest passes Test: android.graphics.cts.TypefaceTest passes Test: android.graphics.cts.PaintTest passes Change-Id: I9ccafe7a53935960566243e2856e166878ca59ae
2017-04-01Merge "Revert "Layoutlib changes to support the new ResourceUrl"" into oc-devTreeHugger Robot
2017-03-31Merge "Implement issue #36590595: Add ability to associated a ClipData with ↵Dianne Hackborn
JobInfo" into oc-dev am: 2d161b1d3f am: 666fe849e3 Change-Id: I61afc96a01bc8bc5d637d65a3f9a84452babd3ed
2017-03-31Merge "Ensure we show the PiP menu in response to KEYCODE_WINDOW." into ↵Winson Chung
oc-dev am: 2af994ec03 am: da7ef8060d Change-Id: I715e2e79b729d28b856a8eda42b099db56cb0184
2017-03-31Merge "Implement issue #36590595: Add ability to associated a ClipData with ↵TreeHugger Robot
JobInfo" into oc-dev
2017-03-31Ensure we show the PiP menu in response to KEYCODE_WINDOW.Winson Chung
Bug: 36687605 Test: android.server.cts.ActivityManagerPinnedStackTests Test: #testWindowButtonEntersPip Change-Id: I0bb35fd666eb6a438e4676267f6726b44bffb3db
2017-03-31Implement issue #36590595: Add ability to associated a ClipData with JobInfoDianne Hackborn
Yum! Also needed to have a Context.revokeUriPermission() variant that is sane, so reasonable CTS tests can be written. Test: new ClipDataJobTest added. Change-Id: Ia3135ea788a6e32c971bae7dab3a844d0ef4139c
2017-03-31Revert "Layoutlib changes to support the new ResourceUrl"Diego Perez
This reverts commit 9fb4d6876a78fb336cb3650aca84bce723f96ecb. Test: N/A Change-Id: I57a09c6f011b8d8c9c2d054b03536e0a6fcc5688 (cherry picked from commit a4e82144b26ee50fca2739abc4f6c7111dc2f3cb)
2017-03-30API refactor: context.startForegroundService()Christopher Tate
Rather than require an a-priori Notification be supplied in order to start a service directly into the foreground state, we adopt a two-stage compound operation for undertaking ongoing service work even from a background execution state. Context#startForegroundService() is not subject to background restrictions, with the requirement that the service formally enter the foreground state via startForeground() within 5 seconds. If the service does not do so, it is stopped by the OS and the app is blamed with a service ANR. We also introduce a new flavor of PendingIntent that starts a service into this two-stage "promises to call startForeground()" sequence, so that deferred and second-party launches can take advantage of it. Bug 36130212 Test: CTS Change-Id: I96d6b23fcfc27d8fa606827b7d48a093611b2345 (cherry picked from commit 79047c62b58fb0a0ddf28e2b90fe4d17e05bc528)
2017-03-30Merge "API refactor: context.startForegroundService()"Chris Tate
2017-03-30Fix fonts following 455f1bfc05Diego Perez
Test: Fixes broken tests Change-Id: I62d001c6d0ed84fe1d1d9865b1027be0e1cad8b4 (cherry picked from commit de5a95d42c9e5f4fbcf0064ae8eaa33ab5747637)
2017-03-30Merge "Handle the case where no session exists" into oc-dev am: 261dd2305aDiego Perez
am: cd190037af Change-Id: Ic5271f342f90b5b4d5057bffe38def7a4a107b96
2017-03-30Merge "Handle the case where no session exists" into oc-devTreeHugger Robot