197619 Commits

Author SHA1 Message Date
Deepanshu Gupta
671b7f9b99 Fix imports.
Also remove null checks on return value of ReflectionUtils.getMethod()
as the method always return non null.

Change-Id: Ib476302c2cf0504a0f54db4e795955ad10e5df3f
2015-07-29 15:34:48 -07:00
Deepanshu Gupta
9bf4b6f8c0 Add MockView constructor used by LayoutInflater.
Change-Id: I0aede28866c1b87fb66c8a416c5026a9b2cb04fe
2015-07-29 15:34:47 -07:00
Deepanshu Gupta
78aa664b02 Poor implementation of Path.approximate()
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
2015-07-29 15:34:38 -07:00
Deepanshu Gupta
214466c777 Include EpicenterTranslateClipReveal in LayoutLib
Needed by Spinner to create transitions that are then ignored :)

Change-Id: Ibe7167a643ecb186e97c9af446c0e1d2eb2d6f86
2015-07-29 14:30:05 -07:00
Deepanshu Gupta
4a6ee98d39 Fix theme namespace in tests.
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
2015-07-29 14:27:02 -07:00
Deepanshu Gupta
6e8d8ad2b7 LayoutLib: fix layout when nav bar is absent.
Change-Id: I0d3ee6fd5a4656156a630d3b298533ea13eb8415
2015-07-28 18:30:48 -07:00
Deepanshu Gupta
e3f9834ebd LayoutLib: Fix Status/Navigation Bar color.
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
2015-07-27 11:54:49 -07:00
George Mount
9c450936aa am c571a9a1: am 6397ae6a: Merge "Update data binding for RC1." into mnc-preview-docs
* commit 'c571a9a1d026cbf262cf36a5348f99d1ca0ec835':
  Update data binding for RC1.
2015-07-27 14:49:16 +00:00
George Mount
c0231f26fe am a29cfefe: (-s ours) am 95e6ae3a: (-s ours) Merge "DO NOT MERGE ANYWHERE. Add data binding to built javadoc." into mnc-preview-docs
* commit 'a29cfefe2c157a28b256771b1dce4653d405dcf1':
  DO NOT MERGE ANYWHERE. Add data binding to built javadoc.
2015-07-27 14:49:11 +00:00
George Mount
c571a9a1d0 am 6397ae6a: Merge "Update data binding for RC1." into mnc-preview-docs
* commit '6397ae6a0aedb8c7d085bb8907fc46a0e5bd7065':
  Update data binding for RC1.
2015-07-27 14:35:50 +00:00
George Mount
a29cfefe2c am 95e6ae3a: (-s ours) Merge "DO NOT MERGE ANYWHERE. Add data binding to built javadoc." into mnc-preview-docs
* commit '95e6ae3ad1ba8647494f0b5007b7beee76493e03':
  DO NOT MERGE ANYWHERE. Add data binding to built javadoc.
2015-07-27 14:35:45 +00:00
George Mount
6397ae6a0a Merge "Update data binding for RC1." into mnc-preview-docs 2015-07-27 14:24:34 +00:00
George Mount
95e6ae3ad1 Merge "DO NOT MERGE ANYWHERE. Add data binding to built javadoc." into mnc-preview-docs 2015-07-27 14:24:17 +00:00
Chris Wren
11f4cb1bcc Merge "decide interruptions based on current data, not previous data." into mnc-dev 2015-07-27 13:10:11 +00:00
Chris Wren
45a0bb18fe Merge "add ticker to enqueue message for easier debugging" into mnc-dev 2015-07-27 13:09:15 +00:00
Erik Kline
a7bdace262 Merge "Change to connectivitycheck.gstatic.com" into mnc-dev 2015-07-27 02:35:09 +00:00
Jeff Sharkey
8be305dd65 Merge "Also check app-ops on path-permissions." into mnc-dev 2015-07-25 02:05:56 +00:00
Selim Cinek
d9f1a0c3a4 Merge "Fixed wake to unlock when the device has never been unlocked" into mnc-dev 2015-07-25 01:48:16 +00:00
Jorim Jaggi
f325548992 Fix ambient display
Due to a refactoring for touch, wake and unlock for fingerprint
devices PhoneWindowManager now waits for Keyguard to draw its first
frame in all cases, including when screen turns on for pulsing.
However, since in this case the device is not awake, we need to check
for screen on instead of awakeness when proceeding with the wake-up
sequence. Without this change, screen on was blocked forever in the
pulsing case.

Bug: 22605235
Change-Id: Ib6089fd14b673e62347f2c9108d9a6783caa26b7
2015-07-25 01:42:29 +00:00
Selim Cinek
ad7310f013 Fixed wake to unlock when the device has never been unlocked
Previously the fingerprint could still unlock the device
when waking up with the fingerprint sensor, since we were not
checking if it is allowed.

Bug: 22622999
Change-Id: I039a4e0701c1f161f227cf6f1d25e8147548db47
2015-07-24 18:15:43 -07:00
Adam Lesinski
2a493532e6 Merge "BatteryStats: Decode wakeup reasons in Java" into mnc-dev 2015-07-25 01:14:07 +00:00
Selim Cinek
f8acd1d8d6 Merge "Adapted the behavior when unlocking with fingerprint is not allowed" into mnc-dev 2015-07-25 00:33:14 +00:00
Chris Banes
c174de0ab3 am 5442932a: am 7b099152: Merge "v22.2.1 support api diff" into mnc-preview-docs
* commit '5442932a4befd66394fb155ae95a2eaadd2001a9':
  v22.2.1 support api diff
2015-07-24 22:41:35 +00:00
Adrian Roos
384b5d20b6 am a65de4fd: am b2f8c716: am 50ed152a: am 7f63ef38: am 9b6a6099: Prevent insanely long passwords from crashing SystemUI
* commit 'a65de4fde99c84ae7c7cab242e8e1e46ee6c0a5d':
  Prevent insanely long passwords from crashing SystemUI
2015-07-24 22:41:26 +00:00
Jeff Sharkey
0e621c3921 Also check app-ops on path-permissions.
Any place that we check permissions we also need to check any
app-ops associated with those permissions.  In the case of providers
with both <provider> and <path-permission> permissions, track and
report the strongest app-ops denial.

Bug: 22718722
Change-Id: I45e62de39b04d16d071558ad980b701667cfcb9a
2015-07-24 15:16:11 -07:00
John Reck
68fbd6a496 Merge "Use process state to filter >= UI_HIDDEN" into mnc-dev 2015-07-24 22:15:47 +00:00
Adrian Roos
4629f1c58c Merge "Fix janky add guest transition" into mnc-dev 2015-07-24 21:42:46 +00:00
Andreas Gampe
9a755e3650 Merge "Frameworks/base: Hand fingerprint to ART" into mnc-dev 2015-07-24 21:25:09 +00:00
Andreas Gampe
e60825033f Frameworks/base: Hand fingerprint to ART
To allow ANR dumps to be symbolized easily, hand the build
fingerprint to the runtime.

Bug: 22693991
Change-Id: Ibd3d3b3bd65dce84acfb97a487807d6f280a9508
2015-07-24 14:19:44 -07:00
Chris Banes
5442932a4b am 7b099152: Merge "v22.2.1 support api diff" into mnc-preview-docs
* commit '7b099152b6bd5844c30464a7c08dde2e22124491':
  v22.2.1 support api diff
2015-07-24 20:19:09 +00:00
Adam Lesinski
515702c29e BatteryStats: Decode wakeup reasons in Java
Wakeup reasons come from drivers and sometimes are malformed UTF-8.
Decode them in Java so we can easily replace malformed characters
and still have user visible strings.

Bug:22368519
Change-Id: Ifade1a7fcdf6545e7e344d74390200c329430e14
2015-07-24 12:56:37 -07:00
Robert Greenwalt
f0bead2801 Merge "DO NOT MERGE Enhance local log." into mnc-dev 2015-07-24 19:54:07 +00:00
Adrian Roos
a65de4fde9 am b2f8c716: am 50ed152a: am 7f63ef38: am 9b6a6099: Prevent insanely long passwords from crashing SystemUI
* commit 'b2f8c716e8d2cf575c690b5a360c4efdd9f06bc8':
  Prevent insanely long passwords from crashing SystemUI
2015-07-24 19:45:24 +00:00
Robert Greenwalt
dd6f844129 DO NOT MERGE Enhance local log.
to be reverted with ag/733658
bug:22632129

Change-Id: Id3899ee8e987ccc469394dd4d0c41465c48dc37e
2015-07-24 12:44:03 -07:00
Amith Yamasani
2c5aeeaaaa Merge "Require permission for internal broadcast" into mnc-dev 2015-07-24 19:12:16 +00:00
Fyodor Kupolov
a5e25f33a5 Merge "Added ACCESS_COARSE_LOCATION permission for BT" into mnc-dev 2015-07-24 17:54:14 +00:00
Andrei Stingaceanu
4579491003 Merge "Disallow dragging text in extracted mode" into mnc-dev 2015-07-24 14:35:48 +00:00
Julia Reynolds
ea00f320ee Merge "Prevent lockscreen album art from flickering on metadata change." into mnc-dev 2015-07-24 14:34:02 +00:00
Jim Miller
abd35bfc81 Merge "Add FEATURE_FINGERPRINT to PackageManager's feature list" into mnc-dev 2015-07-24 02:41:00 +00:00
John Reck
c5dce0169b Use process state to filter >= UI_HIDDEN
Bug: 22701182
Change-Id: Ia192016397c8115a19a0dca409aa70dea154c41e
2015-07-24 01:28:04 +00:00
Amith Yamasani
d81f8270be Require permission for internal broadcast
It was possible for other apps to request removal of the guest user
that was handled by an internal receiver in SystemUI.

Fix requires the broadcast sender to have an internal permission
so that only SystemUI can send that broadcast (PendingIntent).

Bug: 22671268
Change-Id: I63a8ced692e6d1cb2872b962ad247a827dbafbc6
2015-07-23 17:59:41 -07:00
Jean-Michel Trivi
7b9968538b Merge "MediaPlayer subtitle controller: use debug log instead of warning" into mnc-dev 2015-07-24 00:46:15 +00:00
John Reck
6b66a4a8a3 use findProcess instead of getProcess
Bug: 22701182
Change-Id: I2ec56c55c49401f2f213bbd318e867fd73b37672
2015-07-24 00:37:23 +00:00
Amit Mahajan
eea9892d9e Merge "UICC : discard language setting of SIM" into mnc-dev 2015-07-23 23:59:40 +00:00
Adrian Roos
0063e0bcd5 Merge "Disable Keyguard affordances before setup is completed" into mnc-dev 2015-07-23 23:56:37 +00:00
Svetoslav Ganov
28762e61e2 Merge "Keep default permission grants uninstalling a sys package upgrade" into mnc-dev 2015-07-23 23:56:31 +00:00
John Reck
8b1154c487 Merge "Move updateMatrix() call to animateCommon" into mnc-dev 2015-07-23 23:48:40 +00:00
Svet Ganov
315c4ac1b6 Keep default permission grants uninstalling a sys package upgrade
bug:22665508

Change-Id: I1cb1e53a8643ddad77f0be9e40d5b504501e06de
2015-07-23 16:47:40 -07:00
Deepanshu Gupta
f199ac84f3 Merge "Set support flag for custom layouts for RecyclerView." into mnc-dev 2015-07-23 23:47:10 +00:00
Deepanshu Gupta
f7712d3524 Set support flag for custom layouts for RecyclerView.
Change-Id: I3a0349c0482ae45e226b2016a0f24707c85edff4
2015-07-23 16:40:23 -07:00