summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge "Restore session params "no decoration" flag" into mnc-devDiego Perez2015-08-031-3/+6
|\ \ \
| * | | Restore session params "no decoration" flagDiego Perez2015-08-031-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This seems to have removed from a previous version and the theme editor relies on it to remove the decoration around the preview. Change-Id: Ifab99e9c1689bfe44ca593e8c66c24e57c3e8c4c
* | | | Revert to using AppTheme for LayoutLib tests.Deepanshu Gupta2015-08-032-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use AppTheme for all tests other than testExpand. AppTheme contains an attribute needed by testArrayCheck. Also, since the AppTheme extends Theme.Material.Light.DarkActionBar, other tests should be unaffected. Also, update the golden image for the testArrayCheck. Change-Id: Ib5f53f3b029c5aceef2b622e5ac63952d6b1972a
* | | | Fix Matrix_Delegate.native_getValues()Deepanshu Gupta2015-08-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The bug manifested itself by not rendering the wifi icon in the status bar. Change-Id: I7debf3eef387965d774bf66e856812e67c8552a7
* | | | Update test image for upated nav icons.Deepanshu Gupta2015-07-311-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The image shows the nav icons to be separated by a significant distance. This is because the switch to wide-screen layout happens based on shortest width. The layout has a small shortest width and hence it uses the phone layout for a horizontal nav bar and it doesn't look nice. Real devices will never have this config, so it's okay. Change-Id: Ic494ee7fdfb1116db39bcab6d6ee7a1e514b23df
* | | | Fix typo: s/FullScreen/Fullscreen/ in LayoutLib.Deepanshu Gupta2015-07-311-1/+1
| | | | | | | | | | | | | | | | Change-Id: Ia8d223ae01f08df945ab05615b07075b98a54a32
* | | | Fix bugs introduced in 78aa664.Deepanshu Gupta2015-07-311-9/+8
|/ / / | | | | | | | | | | | | | | | | | | | | | Fix a couple of bugs (ArrayIndexOutOfBoundsException due to miscalculation and a typo - swapped src and dst) introduced in the CL: 78aa664 Poor implementation of Path.approximate() Change-Id: Iff7dbbf66d2714df51699ddb9a4169c38feefa7b
* | | Fix build.Dianne Hackborn2015-07-311-2/+2
| | | | | | | | | | | | Change-Id: I9c6b6cd354039ff2914837cfe97a783564ded66f
* | | Merge "AAPT: Fix resource versioning" into mnc-devAdam Lesinski2015-07-311-18/+52
|\ \ \
| * | | AAPT: Fix resource versioningAdam Lesinski2015-07-281-18/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resource generation was greedy, so when an attribute with sdk level 21 was used in a resource with v1, and a different attribute with sdk level 21 was used in a resource with v11, a v21 resource would be synthesized, but it would contain the attribute from v1 instead of v11. This change fixes the issue, having the higher versioned resource take precedence. Bug:22793816 Change-Id: Ia687f56b0d9969e424111477d55d9804255b22e9
* | | | Merge changes I4c215676,Ib476302c,I0aede288,I9241dec7,Ibe7167a6, ... into ↵Deepanshu Gupta2015-07-309-44/+112
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mnc-dev * changes: Update status bar time. Fix imports. Add MockView constructor used by LayoutInflater. Poor implementation of Path.approximate() Include EpicenterTranslateClipReveal in LayoutLib Fix theme namespace in tests. LayoutLib: fix layout when nav bar is absent. LayoutLib: Fix Status/Navigation Bar color.
| * | | | Update status bar time.Deepanshu Gupta2015-07-291-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Copy the value from the demo mode (commit 33b60bb45f) Change-Id: I4c215676e7ae26a68aa370e99db005226d8a05d9
| * | | | Fix imports.Deepanshu Gupta2015-07-293-23/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also remove null checks on return value of ReflectionUtils.getMethod() as the method always return non null. Change-Id: Ib476302c2cf0504a0f54db4e795955ad10e5df3f
| * | | | Add MockView constructor used by LayoutInflater.Deepanshu Gupta2015-07-291-0/+4
| | | | | | | | | | | | | | | | | | | | Change-Id: I0aede28866c1b87fb66c8a416c5026a9b2cb04fe
| * | | | Poor implementation of Path.approximate()Deepanshu Gupta2015-07-291-3/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Include a very poor implementation of Path.approximate() in LayoutLib that only returns the first and last coordinate of the path. This avoids crashing the rendering when certain assumptions are made on the value returned from the method. Also change the error to a warning. Change-Id: I9241dec734d4df90a9eebd1e6de8b3e443eee3c8
| * | | | Include EpicenterTranslateClipReveal in LayoutLibDeepanshu Gupta2015-07-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Needed by Spinner to create transitions that are then ignored :) Change-Id: Ibe7167a643ecb186e97c9af446c0e1d2eb2d6f86
| * | | | Fix theme namespace in tests.Deepanshu Gupta2015-07-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The tests used framework theme (Material), but the ResourceResolver was created with project theme. This caused tests to fail becasue of missing resources. Change-Id: Ia17ee19054f6689f85e3423e83c1f47a2cc4364f
| * | | | LayoutLib: fix layout when nav bar is absent.Deepanshu Gupta2015-07-281-12/+19
| | | | | | | | | | | | | | | | | | | | Change-Id: I0d3ee6fd5a4656156a630d3b298533ea13eb8415
| * | | | LayoutLib: Fix Status/Navigation Bar color.Deepanshu Gupta2015-07-271-2/+16
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the color value for status bar or navigation bar is declared directly in the theme (i.e. doesn't reference a color resource via @color/foo), the ResourceType for the attribute is not assigned by the IDE. LayoutLib used to ignore resources that were not of type color. This change fixes the issue by also checking the resources without a type. Change-Id: I94735ec225415282db06ab9db5c3233ad89c052f
* | | | Remove dependencies on the package installer's package nameSvet Ganov2015-07-291-0/+5
|/ / / | | | | | | | | | | | | | | | bug:22700053 Change-Id: I8540eb8577fbec84e1a67e31e1c31ba654c828a4
* | | Merge "Set support flag for custom layouts for RecyclerView." into mnc-devDeepanshu Gupta2015-07-231-1/+1
|\ \ \
| * | | Set support flag for custom layouts for RecyclerView.Deepanshu Gupta2015-07-231-1/+1
| | | | | | | | | | | | | | | | Change-Id: I3a0349c0482ae45e226b2016a0f24707c85edff4
* | | | Merge changes I9c294329,Ie4db5d28 into mnc-devDeepanshu Gupta2015-07-2312-509/+581
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | * changes: LayoutLib: translucent sys ui bars Move the layout code out of RenderSessionImpl.
| * | | LayoutLib: translucent sys ui barsDeepanshu Gupta2015-07-236-62/+113
| | | | | | | | | | | | | | | | Change-Id: I9c294329fc78418c505a5115bc9c07da29595af2
| * | | Move the layout code out of RenderSessionImpl.Deepanshu Gupta2015-07-2311-490/+511
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, switch to using a RelativeLayout from a LinearLayout. The change will help in future when enabling transparent status and nav bar. Change-Id: Ie4db5d28313f1c5ef775603788598a56409f92c7
* | | | Merge "CalendarView rendering: use R.styleable to find attr." into mnc-devDeepanshu Gupta2015-07-231-19/+123
|\ \ \ \ | |/ / /
| * | | CalendarView rendering: use R.styleable to find attr.Deepanshu Gupta2015-07-231-19/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not all attr are added to R.attr. This results in some attr not being found and hence a broken rendering. Fix the issue by adding all attr referenced in R.styleable to the map of attr before adding any remaining values from R.attr. Change-Id: I1ebf8a394b9e1edbf7490e011833d20a00d38317
* | | | 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.