| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |\ \
| | | |/
| | | |
| | | |
| | | |
| | | |
| | | | |
NOT MERGE]
* commit '8bfc5a9d14000a436e54350099bd460f55418f27':
Implement tools:list_item for RecyclerView. [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
It's now possible to use tools:list_item attribute for RecyclerView to
point to a default layout, rather than always using a TextView.
Change-Id: I5d522b2f0ca38b420fddfcb0f73a26d95707da79
(cherry picked from commit 61f23e9bf7d784e7a52168196758c4f6c6853e77)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | | |
* commit '67b73b60bf9c9f433ed282abdc3691ee0cc6dda0':
Support AppBar from Material Design. [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This CL is a start for making the design able to render the AppBar.
We are still missing support for: system menu and the app icon.
Change-Id: I19600f8ee1e7e6492186a0b7ae7fb38c82e15c02
(cherry picked from commit 4dfe4d43ce5634f059a3ba669e3cac4551c3a3ee)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | | |
* commit '6f5709ca97b27db9877c2fc65b083783d3f41e02':
Update tests per new layoutlib_api [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Change-Id: Idc89ffceaf171abcf2b579f4e934b514ef209210
(cherry picked from commit d7b846c1814de34f2cea8507907f70618ec7cae0)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | | |
* commit '9a13b1e7502734fbe54d6f0e1c386f5382dfa662':
Add missing resolveResValue call. [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Bug: http://b.android.com/178504
Change-Id: I7dde8094cf762893e4f7ea0d3de87a281c9602cd
(cherry picked from commit 5d1eaf4a197130f561b16c4ed083cf016b20ab92)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | |
| | | |
| | | | |
MERGE]
* commit 'ad16968d506840a1c1824c4ab6b5c181c8e04086':
LayoutLib: Skip classes from java package. [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Classes in "java" package can't be defined at runtime anyway. No use
including them in LayoutLib.
Change-Id: I7e7c46f0d74e32c893b23093828569b4fa5e3a73
(cherry picked from commit 86caef1892e1ce063e0e880396c8deaa3a6a171d)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | |
| | | |
| | | | |
NOT MERGE]
* commit '15e549a81f59daf016f29c6ed6f1aa3d5f65d41c':
Skip warnings for some unresolved references. [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Some applications rename the newer RTL attributes to the older
attributes in order to target RTL locales, but not need to include two
attributes everywhere it's needed. For example, iosched renames
paddingStart to paddingLeft (among other attributes) for API 17 and
above. This leads to hundreds of warnings about missing attributes.
This change suppresses such warnings.
Also, skip adding unresolved attributes to the typed array. This is more
in line with the actual implementation on device, and prevents
unexpected warnings/errors/crashes later.
Change-Id: Iee616fa6295aa9731ede0cf9dcd6dd2bd1fe8f20
(cherry picked from commit b3e872be9e634c8d1f34d07778ea753880bbf2d9)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | | |
* commit '669e4969a7245cf9d1febc5d4e67a0f2063e87fb':
Fix import order. [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Change-Id: I50bfbf4011290683a1c6adb94e0b6fa301dcc75b
(cherry picked from commit b9b8aef94e5bad8f5f03f686a2d3d8a09c045a7b)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | |
| | | |
| | | | |
MERGE]
* commit 'c0fd131642f21eabec570147cf9f4116c900e8a0':
Fix ParserFactory not initialized error. [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Bug: http://b.android.com/175129
Change-Id: I2111673767e0f62ee910560022b559a177d55abd
(cherry picked from commit 996458b76c944f78eee26d7bd8cb4d39303b9119)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | |
| | | |
| | | | |
[DO NOT MERGE]
* commit '6b836cd06b1a2ebe5d31336486bb1b54e42439df':
Fix NPE in BridgeContext.obtainStyledAttributes() [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Replace direct member access with getter that checks for nullness.
Change-Id: I4a56a0ee903ae7d8c89b91d74b128302e1965586
(cherry picked from commit d758e042ce08c46712db3db2d63fc84795028dfe)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | | |
* commit '91e456d235256c385a7da1e45f098386bc68e86a':
Fix BridgeTypedArray.getType() [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Also includes some fixes for BridgeTypedArray.getInt() - when value is a
color, when value is an octal int, when value is true/false.
Bug: http://b.android.com/162438
Change-Id: I0b985ea3437be8018d0e116e7a599843cc7aacd6
(cherry picked from commit 5779ad71eabed3aabaefef1e4749693f8320816e)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | | |
* commit '8a6295e82a2aed91eb26fa15479bf295c2bd79d7':
Include Shapes in LayoutLib. [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Change-Id: Ifb32882c478f8d407ad904e224b67fe2bd65dc08
(cherry picked from commit 59164ec0551aa49f497acca81222f304cf4f344b)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | |
| | | |
| | | | |
NOT MERGE]
* commit '66d5f24df0c3627028812ee23da8d4f08cc83e5c':
LayoutLib: Support getting resource arrays. [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
- Don't crash when Resources.get<Type>Array() is called.
- If the IDE supports it, actually return the value.
- Add tests for getArray.
- Update test app to latest gradle plugin version.
- Switch to using AppTheme for tests, since the tests depend on some
custom theme attributes. The AppTheme now inherits from
Material.Light.DarkActionBar, so other tests should be unaffected.
Depends on a newer version of sdk-common, which fixes the parsing of
array resource in value files.
Bug: 12372031
Change-Id: I313b61511e98ac1402d75056ebfdeeb005ebb96d
(cherry picked from commit 642cff50f8f7a67eed09eac1e56d7133b26a192c)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | | |
* commit 'b32e44ff0c5fd410720bb28c87bc9cea83556edf':
LayoutLib: Change nullity annotations. [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Switch from using tools nullity annotations (com.android.annotations)
to android framework annotations (android.annotation).
A new sdk-common prebuilt is required for LayoutLib tests. The new
sdk-common requires an updated tools-common. The updated tools-common
doesn't have nullity annotations. So, instead of adding the annotation
dependency, just reuse the platform ones. This also paves the way to
include other platform annotations like IdRes etc.
Change-Id: I87b8f767d3681d914abe7d1329e26a87f49f50a7
(cherry picked from commit 476e582d2ffdf25102d4c55f8c242baa3d21d37f)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | |
| | | |
| | | | |
[DO NOT MERGE]
* commit '1754824c2835d6f3a17c4a2c0ab668991797fcf9':
Add documentation about hack in commit: f8ea750455 [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Change-Id: I9ce871a67fb67e02e0c4df1eb5c3261ea52a914b
(cherry picked from commit 6330971ed293a2777bbdab09288f90ea4b2d0255)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | |
| | | |
| | | | |
fix). [DO NOT MERGE]
* commit '678f0ea2ba47f06387670e9f75b13637a6446899':
Make DatePicker rendering not fail (style search fix). [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Only cherry picked for the style not found fix.
Change-Id: Ied2b71de5b32bcb640bf4ec445e8a39509f800e9
(cherry picked from commit d5b82845450beac2d3c7db9cd80e9fc34d43a297)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | |
| | | |
| | | | |
[DO NOT MERGE]
* commit '2e57c1e23f43bb0ede6280720559ccc1e866024b':
Inject anonymous inner classes of injected classes [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
When injecting classes in LayoutLib (eg. CreateInfo), so that LayoutLib
can refer back to the changes, also inject the anonymous inner classes.
Without this, the injected classes are not loadable. Although, LayoutLib
itself doesn't load these classes, but some tests do.
Change-Id: Ib5f6b779ef4d79dec8d614d3dbb26eeac88a1064
(cherry picked from commit bfc9c3bcbe3b7056d3330f754811c1506f181b88)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | | |
* commit '899daf759e02bef0de14dc1a14b96b4d71f0b9fc':
Update platformDir search in tests. [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
When trying to find the SDK Platform Dir for LayoutLib tests, also
test if the dir from which the tests are run is module dir.
Change-Id: Id5c6038d07ebbb122e38f907ad488ed1f2bcde32
(cherry picked from commit 612a05e7e15184b21437731b9aa5db2d1d4fc54c)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | | |
* commit '2f50403fe0a8a035757b047af00c7520fadb9015':
Make Context.getClassLoader() work. [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Context.getClassLoader() is used by the LayoutInflater and can be used
by custom views. However, when called from the LayoutInflater, this
needs to return only the Framework classes. This is so that the IDE gets
a chance to instantiate the custom views, which helps in better error
reporting and better fallback in case of exceptions, like MockView.
To workaround this need of the same method returning different results
based on where it's called from, the method call in LayoutInflater is
renamed to getFrameworkClassLoader() and the new method is injected in
Context. The implementation of getFrameworkClassLoader() maintains the
existing behaviour of getClassLoader().
Context.getClassLoader() is now modified to return classes from both
Framework and the app namespace.
Also, update the list of packages to search for Framework views.
Change-Id: I1a6be4aa1fc5c1c5520b5440a348a52f10b6eb3b
(cherry picked from commit f8ea750455eec81e4e6d877b3e18e29a86d4ec95)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | | |
* commit 'de3ac8f9fc5987ac1f1223da02b4275fdbae3d56':
Fix include tag rendering. [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
A missing catch clause caused rendering to be failed when there is an
include tag that doesn't specify layout_width and layout_height. Also
improve the error messages to make debugging easier next time.
Change-Id: I617762636973a010b34da167c7b5fcd328b7d178
(cherry picked from commit 21b564573327b1ed2f7e06146b8a01c47ede3089)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | |
| | | |
| | | | |
found. [DO NOT MERGE]
* commit '50e1406a4ad668179a9a3d28c58d68c0eee44237':
Show better error message for color attr not found. [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Change-Id: I1ca32989522d30fec336eb607ee81f9e5cb5f48f
(cherry picked from commit 5f1bf496948fb6383ae17e5467a26a00489d7564)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | | |
* commit '81990c3f988369c755590288b93508e30024c56c':
Fix build: udpate parser factory method [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Change-Id: I78ad55bc924427b44451ec32fbd1032d6cd77544
(cherry picked from commit 3dc19883c571a829c36aa603c04a55c91b00dd57)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | |
| | | |
| | | | |
MERGE]
* commit '0a07bb95a1dd94c3457860a934d3ee546919cff2':
Don't keep LayoutlibCallback reference. [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Switch to the newer API that enables keeping a reference only to the
ParserFactory which is a much leaner object as compared to
LayoutlibCallback.
Conflicts:
tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/android/BridgeXmlBlockParserTest.java
Change-Id: I9b7afd93226db23786a00b2951cbf5ae5b8f3e5f
(cherry picked from commit f2d408b51debadca830eefbf8131185ac55ce699)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | | |
* commit 'bbbdc2ad8939c28828a8441c0b24812c53a9eb66':
Remove kxml dependency [DO NOT MERGE]
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Create XmlPullParser using callback provided by the client. This enables
clients to choose which XmlPullParser implementation they want.
Change-Id: I9ad97a4777820cdbe5c8fc3716f74ddec9065c70
(cherry picked from commit 78af25584633462e4ab8cf9bafe10f43e7cb2d83)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Squashed commit of:
power: Add CPU boosting interface
* Boosts CPU using Power HAL for the given duration.
* Duration is given in microseconds.
* Power HAL must implement POWER_HINT_CPU_BOOST.
Add CPU boosting hooks
* Send boost hint during scrolling
* Still relevant on even high-end hardware
perf: Send a boost hint when a key on the navbar is pressed
* A lot of stuff happens, especially when invoking recents.
* Get ahead of the storm by sending a boost hint before
kicking off the animations.
perf: Send boost hint during initial launch
perf: Per-app performance profiles
* Performance Profiles is going to grow into a much more powerful
feature which can apply advanced optimizations or power saving
techniques depending on both the state of the hardware as well
as the current applications in use.
* Refactor the original code and move it into PowerManager so
that it's managed from the same place.
* Implement "automatic performance profiles". This feature will
automatically select a profile when specific activities are
running. Currently this list is static and engages performance
mode for several benchmarks (trollface).
* Added support for a new power hint, POWER_HINT_SET_PROFILE.
Currently, these profiles are fired using a property trigger
in init. This is easy, but the PowerHAL can do more.
* Moved the setting to Settings.Secure and also wrapped calls
to the service in the DEVICE_POWER permission. Nobody should
mess with this stuff except the system.
* Powersave profile will automatically activate Android's built-in
low power mode.
* Original patch by Jorge Ruesga
TODO:
* Implement API for per-app configuration by user
* Quicksettings tile
perf: Boost during animations
* Reduce animation jank by preemptively boostin the CPUs.
* Original idea taken from CodeAurora, modified for CM perf control.
systemui: Boost when expanding the notification shade
power: Add a new power hint for application launches
* Some devices may prefer a different behavior when launching apps,
particularly to avoid priority inversion issues. Add support
for a new LAUNCH_BOOST hint which can be handled in the PowerHAL.
power: Boost improvements
* Boost when opening the panelview
* Adjust launch boost to handle relaunch correctly
PowerManager: change performance profile when disabling battery saver
We need to be sure to update the performance profile when the system
disables battery saver mode.
This fixes the perf tile becoming out of sync - changing it to low power
mode triggers power saver, but turning power saver off does not trigger
the tile.
Ref: CYNGNOS-1156
Signed-off-by: Roman Birg <roman@cyngn.com>
base: cache power profiles support
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
perf: Add support for additional power profiles
* Add support for bias power (efficiency) and bias performance (quick)
modes if supported by a device.
Change-Id: Id3a53eaacdaf6ae93ee899835cfcb21279d35ad4
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* Add support for duplicate methods in AIDL when they have different
ids, only when ids have been manually assigned to all methods.
* This is useful for backwards compatibility.
Change-Id: I9612d1633c48e31fe65b966777366a9a6b3ebf5c
|
| | | |
| | | |
| | | |
| | | | |
Change-Id: I9666cb18120675d65ccdf1c1eba2f4bbf6707041
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Always delete your shit!
Change-Id: If14ecedd6cced46c96bbe670b1e337def0a7edf5
REF: CYNGNOS-701
|