summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* resolved conflicts for merge of 112d8a36 to mnc-devDiego Perez2015-07-219-11/+132
|\ | | | | | | Change-Id: Ic9511a57db8a96f54dba0704800789a8602b9dd2
| * am d6f2a9ef: am 7720eb18: Merge "Render to measured size when using expand ↵Diego Perez2015-07-218-11/+131
| |\ | | | | | | | | | | | | | | | | | | mode" into lmp-mr1-dev * commit 'd6f2a9efbb0e0525f6cf970fd9c9b9b7082b19f9': Render to measured size when using expand mode
| | * Merge "Render to measured size when using expand mode" into lmp-mr1-devDiego Perez2015-07-218-11/+131
| | |\
| | | * Render to measured size when using expand modeDiego Perez2015-06-028-11/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using RenderingMode.V_SCROLL or RenderingMode.H_SCROLL, if the screen size is smaller than the measured size but as large as the desired size, the layout will render incorrectly and won't expand. This changes that to expand to at least the size of the screen. Added tests for the V_SCROLL and H_SCROLL modes. Bug: http://b.android.com/174928 Change-Id: I22686903560775e2e4f362af1d7b50c9b985467d
* | | | Merge "Add tools:openDrawer to open a DrawerLayout." into mnc-devDeepanshu Gupta2015-07-166-6/+111
|\ \ \ \
| * | | | Add tools:openDrawer to open a DrawerLayout.Deepanshu Gupta2015-07-156-6/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Store a list of drawer layouts with tools:openDrawer encountered and call openDrawer on them during the post-inflation processing. Change-Id: Idee299a9af1bb106509a03bb2e8424c372b93dc5
* | | | | Merge "Change tools:list_item to listitem." into mnc-devDeepanshu Gupta2015-07-161-1/+3
|\ \ \ \ \ | |/ / / /
| * | | | Change tools:list_item to listitem.Deepanshu Gupta2015-07-151-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The listitem is already in use for ListView. Reuse the same attribute for RecyclerView rather than creating a new one. Change-Id: I82aabe7d04fbe3e61645bc427a81c14c454d03c5
* | | | | Fix build.Dianne Hackborn2015-07-151-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: Ib165c32d1d87e971902b4dd7300ccebd65e71a7d
* | | | | Fix issue #21626564: MMS should be receivied while DozingDianne Hackborn2015-07-141-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We now place whoever is receiving the MMS on the temporary whitelist while doing so, so they can get network access to download it. There was also an issue that needed to be fixed where we were no longer updating the list of allowed uids while dozing based on their proc states... we now do that. Also did a bit of optimization of the temp white list update path do the network policy manager, instead of going through a broadcast we now directly call in to the network policy manager. This also allows us to have a synchronous version of updating the list, so we can know the app has network access before we tell it to do anything. Finally added battery stats events for things going on and off the whitelist so we can diagnose the behavior there. Change-Id: Ic7fe010af680034d9f8cb014bb135b2addef7455
* | | | | Added sendBroadcastMultiplePermissions methodFyodor Kupolov2015-07-141-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added Context.sendBroadcastMultiplePermissions(Intent intent, String[] receiverPermissions) method, which allows an array of required permissions to be enforced. Bug: 21852542 Change-Id: I27c9130e8f004b428452501ebc8a36aabde1f343
* | | | | Revert "Allow array of required permissions in sendBroadcast"Fyodor Kupolov2015-07-141-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit b4e7283c9afd9fb15ebd63f6ce9b75c9c1af658b. Change-Id: Ie8390964bda5bdfa869cee8f46584043d8e7c664
* | | | | Allow array of required permissions in sendBroadcastFyodor Kupolov2015-07-141-0/+6
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added Context.sendBroadcast(Intent intent, String[] receiverPermissions) method, which allows an array of required permissions to be enforced. Bug: 21852542 Change-Id: I3b8ff258fa9f3249c344bb8093b820b24eef00c0
* | | | Fix the build.Bart Sears2015-07-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Correct a typo. Change-Id: I16131cf7c0ce17fa09dedc67264e8199482cd27e
* | | | Fix buildSvetoslav2015-07-091-1/+5
| | | | | | | | | | | | | | | | Change-Id: I1b56c07aa5b85662f25158156d2c0eff115e9544
* | | | Fix Paint_Delegate.native_getRunAdvance()Deepanshu Gupta2015-07-071-1/+2
| | | | | | | | | | | | | | | | | | | | Bug: 22249573 Change-Id: I29f7abe6448f439059547e1c1e310d3d651ac2d8
* | | | Add a default PackageManager to BridgeContext.Deepanshu Gupta2015-07-072-6/+778
| | | | | | | | | | | | | | | | | | | | | | | | Needed for EditText. Change-Id: I6c831467659ce814e86c13e928a2b77c14e1c139
* | | | Revert "Replace infinite loop with foreach."Deepanshu Gupta2015-07-071-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit c77f9c76e4142db8dd76a28ad99b8f0395b82eba. Class.getDeclaredClasses() doesn't return anonymous inner class and hence the change was wrong. The revert doesn't undo the typo fixed in the original change. Change-Id: Id0595c4bc3db1185dd1ce39808a6b8c3610a1e11
* | | | Update intellij project for tools-common sources.Deepanshu Gupta2015-07-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the sources.jar for tools-common instead of the environment variable. Change-Id: Ia1a3e8c32f66610e761bacce08c7eb5915e7ed0f
* | | | Implement tools:list_item for RecyclerView.Deepanshu Gupta2015-07-075-51/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Add roundess to configurationDeepanshu Gupta2015-07-061-0/+20
| | | | | | | | | | | | | | | | Change-Id: Icc85b38dd091fc5aa13092d6abb06ac169f7b0b5
* | | | Update tests per new layoutlib_apiDeepanshu Gupta2015-07-061-1/+1
| | | | | | | | | | | | | | | | Change-Id: Idc89ffceaf171abcf2b579f4e934b514ef209210
* | | | am 3ce79f6c: am 96496e2d: Merge "Build fix after changing IWindowSession." ↵Filip Gruszczynski2015-07-011-1/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | into cw-d-mr1-dev * commit '3ce79f6c0c3435eca05ea34c5a8b34ac59bcb992': Build fix after changing IWindowSession.
| * | | am 96496e2d: Merge "Build fix after changing IWindowSession." into cw-d-mr1-devFilip Gruszczynski2015-06-301-1/+1
| |\ \ \ | | | | | | | | | | | | | | | | | | | | * commit '96496e2d17607a8bfa944461c2458b0dcdeee872': Build fix after changing IWindowSession.
| | * | | Build fix after changing IWindowSession.Filip Gruszczynski2015-06-301-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I339fecb0138e8b8907fc53372b694021f6327260
* | | | | Replace infinite loop with foreach.Deepanshu Gupta2015-06-302-9/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A method call exists to find all inner classes. Use it instead of manually enumerating the possibilities and checking. Also fix a typo. Change-Id: I2af678e92ea0c11b53617b247d8cda324391c185
* | | | | Add missing resolveResValue call.Deepanshu Gupta2015-06-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b.android.com/178504 Change-Id: I7dde8094cf762893e4f7ea0d3de87a281c9602cd
* | | | | ICU format support for pseudolocalizes.Igor Viarheichyk2015-06-255-67/+419
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Custom parser can handle nested ICU messages even if they are split into multiple fragments. Code reworked to encapsulate all pseudolocalization logic in Pseudolocalizer and PseudoMethods classes. To minimize a changelist size, some static functions remained. Fake BiDi pseudolocalization method is reimplemented to handle word boundaries correctly. Unit tests added. (cherry picked from commit cbb1e676b56677ae3585c067f29646dddffb4857) bug: 22060509 Change-Id: I11968d81984d99501a4d9334ff2e7453a1eb7a00
* | | | | Merge "AAPT2: Remove the need for specifying package name in compile phase" ↵Adam Lesinski2015-06-187-62/+74
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | into mnc-dev
| * | | | | AAPT2: Remove the need for specifying package name in compile phaseAdam Lesinski2015-06-127-62/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The compile phase doesn't use the AndroidManifest, so we had to specify the package name on the command line. We can omit the package name, since we don't resolve external references in the compile phase. Packages that reference the current package will be encoded with no package name. When loaded by the link phase, the package name will be supplied and all the references with no package name will use that one. Change-Id: I9fe4902b747b06899b45c968f30ba1aa05c5cd69
* | | | | | Fix issue #21814207 and issue #21814212 (alarm manager)Dianne Hackborn2015-06-171-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #21814207: AlarmManager.setAndAllowWhileIdle should also allow wake locks. Introduce a whole new infrastructure for providing options when sending broadcasts, much like ActivityOptions. There is a single option right now, asking the activity manager to apply a tempory whitelist to each receiver of the broadcast. Issue #21814212: Need to allow configuration of alarm manager parameters The various alarm manager timing configurations are not modifiable through settings, much like DeviceIdleController. Also did a few tweaks in the existing DeviceIdleController impl. Change-Id: Ifd01013185acc4de668617b1e46e78e30ebed041
* | | | | | am fa794eb0: am 2f710356: am 13c06d6c: am 1f33bdad: am 5e50e00c: Merge "Fix ↵Diego Perez2015-06-152-2/+6
|\ \ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | for shadows on theme editor" into lmp-mr1-dev * commit 'fa794eb0025dbec6c1b90135495081d42f06bdaf': Fix for shadows on theme editor
| * | | | | am 2f710356: am 13c06d6c: am 1f33bdad: am 5e50e00c: Merge "Fix for shadows ↵Diego Perez2015-06-152-2/+6
| |\ \ \ \ \ | | | |/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | on theme editor" into lmp-mr1-dev * commit '2f7103565cf1732d6d1281195cfa49a1564751d7': Fix for shadows on theme editor
| | * | | | am 13c06d6c: am 1f33bdad: am 5e50e00c: Merge "Fix for shadows on theme ↵Diego Perez2015-06-152-2/+6
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | editor" into lmp-mr1-dev * commit '13c06d6c91e67962b7ffdf92c56e3b01125e4a8d': Fix for shadows on theme editor
| | | * \ \ \ am 1f33bdad: am 5e50e00c: Merge "Fix for shadows on theme editor" into ↵Diego Perez2015-06-152-2/+6
| | | |\ \ \ \ | | | | | |/ / | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lmp-mr1-dev * commit '1f33bdad98dd5138f887642d39c9495e1d7df14b': Fix for shadows on theme editor
| | | | * | | Merge "Fix for shadows on theme editor" into lmp-mr1-devDiego Perez2015-06-152-2/+6
| | | | |\ \ \
| | | | | * | | Fix for shadows on theme editorDiego Perez2015-06-022-2/+6
| | | | | | |/ | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the preferred ColorModel doesn't support alpha, the shadows are incorrectly rendered. In the theme editor on Linux, the graphics device object doesn't support alpha so we need to use a different color model. We default to ARGB which works fine. Change-Id: I3e71e3d086fa4975a9149d36792e574813f37dfd
* | | | | | | am 40a216d9: am df6f63ba: am 2422011d: am b2411c62: am ead59b0d: Merge "Fix ↵Diego Perez2015-06-151-2/+13
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GcSnapshot drawInLayer when clipping is used." into lmp-mr1-dev * commit '40a216d95973bb897ee0d755ef260a616f176798': Fix GcSnapshot drawInLayer when clipping is used.
| * | | | | | am df6f63ba: am 2422011d: am b2411c62: am ead59b0d: Merge "Fix GcSnapshot ↵Diego Perez2015-06-151-2/+13
| |\ \ \ \ \ \ | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | drawInLayer when clipping is used." into lmp-mr1-dev * commit 'df6f63badfe2572284dad8e34f152fd1c24a873e': Fix GcSnapshot drawInLayer when clipping is used.
| | * | | | | am 2422011d: am b2411c62: am ead59b0d: Merge "Fix GcSnapshot drawInLayer ↵Diego Perez2015-06-151-2/+13
| | |\ \ \ \ \ | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | when clipping is used." into lmp-mr1-dev * commit '2422011d867f4d4516605148641bbeb7d9c2501b': Fix GcSnapshot drawInLayer when clipping is used.
| | | * | | | am b2411c62: am ead59b0d: Merge "Fix GcSnapshot drawInLayer when clipping is ↵Diego Perez2015-06-151-2/+13
| | | |\ \ \ \ | | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | used." into lmp-mr1-dev * commit 'b2411c622cf9124f6af5f70d416adb179f9c88bb': Fix GcSnapshot drawInLayer when clipping is used.
| | | | * | | Merge "Fix GcSnapshot drawInLayer when clipping is used." into lmp-mr1-devDiego Perez2015-06-151-2/+13
| | | | |\ \ \
| | | | | * | | Fix GcSnapshot drawInLayer when clipping is used.Diego Perez2015-05-071-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GcSnapshot only allocates an image for tinting that is the size of the current clipping area. When drawing to that image, the wrong coordinate system was used since now we are dealing with only the clipping rect we need to translate -clipX, -clipY the drawing so it's painted at 0,0 of the new BufferedImage. Change-Id: Id8639d5ea9bef36ac07743df332161d6eadc6a81
* | | | | | | | am ce5a79da: am d717682d: am 5c597c1d: am a8854564: am ce4a9d91: Merge "New ↵Diego Perez2015-06-157-2/+357
|\ \ \ \ \ \ \ \ | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | custom widgets library" into lmp-mr1-dev * commit 'ce5a79dacfb152317429cb69c28fe8bb39c02f4c': New custom widgets library
| * | | | | | | am d717682d: am 5c597c1d: am a8854564: am ce4a9d91: Merge "New custom ↵Diego Perez2015-06-127-2/+357
| |\ \ \ \ \ \ \ | | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | widgets library" into lmp-mr1-dev * commit 'd717682df97e812d4a25f93b0c9e84548767d8e1': New custom widgets library
| | * | | | | | am 5c597c1d: am a8854564: am ce4a9d91: Merge "New custom widgets library" ↵Diego Perez2015-06-127-2/+357
| | |\ \ \ \ \ \ | | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into lmp-mr1-dev * commit '5c597c1d89c529675096c2d326c452145403979d': New custom widgets library
| | | * | | | | am a8854564: am ce4a9d91: Merge "New custom widgets library" into lmp-mr1-devDiego Perez2015-06-127-2/+357
| | | |\ \ \ \ \ | | | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | * commit 'a885456426ec267d37c6a527285d965f81e14f9d': New custom widgets library
| | | | * | | | Merge "New custom widgets library" into lmp-mr1-devDiego Perez2015-06-127-2/+357
| | | | |\ \ \ \
| | | | | * | | | New custom widgets libraryDiego Perez2015-05-147-2/+357
| | | | | | |/ / | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds the widgets needed by the theme editor as a jar file that will be linked from AS. The controls currently are: - ThemePreviewLayout: A custom layout that allows to dynamically reflow cards that display the theme preview. - PressedButton: Custom button to display in a pressed state (currently we can only do it programatically). - ErrorCatcher: View that can wrap other view and stops a view throwing exceptions that will break the theme editor rendering. This is currently used to wrap the custom controls loaded from the source code. The new library currently depends on bridge to be able to use the logger for the ErrorCatcher view. The ErrorCatcher view is a temporary solution that will be replaced in a future CL and the dependency will be removed. Change-Id: I832c447e22e1381abff74c46c4282921b3f6fa23
* | | | | | | | resolved conflicts for merge of 5a53816b to mnc-devDiego Perez2015-06-151-3/+7
|\ \ \ \ \ \ \ \ | |/ / / / / / / | | | | | | | / | |_|_|_|_|_|/ |/| | | | | | Change-Id: Ice1ba8cb9793432e18635e77f4e3309f50bb7b3f