16584 Commits

Author SHA1 Message Date
Selim Cinek
0fccc729fd The heads up now correctly dissapears when clicking
Bug: 22729955
Change-Id: I977b36823bf936baab527f932b1e5576241f4d71
2015-07-30 23:05:42 +00:00
Selim Cinek
20a5d33175 Merge "Fixed a heads up crash" into mnc-dev 2015-07-30 21:45:55 +00:00
Fyodor Kupolov
4988378cd0 Merge "Introduced android.permission.PEERS_MAC_ADDRESS permission" into mnc-dev 2015-07-30 20:50:04 +00:00
Jim Miller
30c5da9cc2 Don't call cancel() when fingerprint auth fails
KeyguardUpdateMonitor should not call cancel() when fingerprint
auth fails. The life cycle will continue until an actual error
occurs or the maximum number of retries is reached.

Fixes bug 22562277

Change-Id: I36291d025de9c049cc7f7924f692c8c21349bb7b
2015-07-30 04:31:37 +00:00
Daniel Sandler
bbe1682b16 Merge changes from topic 'fix-media-notifications' into mnc-dev
* changes:
  Fully support Icons in Notification actions.
  Fix media notification action icons.
2015-07-30 02:57:06 +00:00
Selim Cinek
acd0df65dd Fixed a heads up crash
Some references to notifications were still
kept around while timing out, leading to small
leaks and sometimes crashes.

Bug: 22819475
Change-Id: I1429b5669366521c6374efbcae6c26d6e407d8cc
2015-07-29 19:09:03 -07:00
Jason Monk
beb3185f01 Merge "Fix touch target for settings icon" into mnc-dev 2015-07-30 00:32:17 +00:00
Jorim Jaggi
26aa04c3c4 Fix state weirdness in the panel
When QS was open while the we started with expansion, we
immediately notified about expansion finsihed again, which led to all
kinds of weird states. The change that introduced these bugs was to
fix another bug in which onExpandingFinished was not call. Make sure
to call in exactly that case and no other case to not risk
regressions.

Bug: 22806817
Bug: 22807359
Bug: 22807372
Change-Id: Id7daf37ef4a772f724971bf79c61084ff4279f31
2015-07-30 00:22:14 +00:00
Billy Lau
a6706627a9 Merge "Bug: 21589105 Rescope WRITE_SETTINGS permission (framework services perm check changes)" into mnc-dev 2015-07-29 22:42:27 +00:00
Billy Lau
6ad2d66072 Bug: 21589105 Rescope WRITE_SETTINGS permission (framework services perm check
changes)

AppOpsManager:
Changed the default operating mode for WRITE_SETTINGS to MODE_DEFAULT from
MODE_ALLOWED.

packages/SettingsProvider:
We no longer do static permission checks for WRITE_SETTINGS in early checks and
defer that to app op when MODE_DEFAULT is returned. For some operations,
checking against WRITE_SECURE_SETTINGS is sufficient.

ActivityManagerService & PowerManagerService:
Incorporated app op checks and handled the MODE_DEFAULT case.

provider/Settings:
Added helper function to do checks on whether app ops protected operations
can be performed by a caller. This includes checks for WRITE_SETTINGS and
SYSTEM_ALERT_WINDOW.
Also added a public API (with javadocs) for apps to query if they can modify
system settings.
Changed the javadocs description for ACTION_MANAGE_WRITE_SETTINGS and
ACTION_MANAGE_OVERLAY_PERMISSION.
Added public API (with javadocs) for apps to query whether they can draw overlays or not,
and also javadocs description on how to use that check.

Change-Id: I7b651fe8af836c2074defdbd6acfec3f32acdbe9
2015-07-29 23:21:26 +01:00
Dan Sandler
25ffc7ad95 Accessibility: Read the time correctly in quick settings.
The problem is that, for 12-hour locales, we cut the "a"
part of the time format out to show it in a separate
TextView so it can be animated independently of the actual
time. Unfortunately, while TTS is smart enough to pronounce
"1:15 AM" as /wʌn fɪftin eɪ ɛm/, "AM" on its own looks like
the English word "am" and is pronounced /æm/.

To fix this, a TextClock must be able to accept separate
formats for its content description than its presentation.
With this capability we can place the complete 12-hour time
format (including am/pm) in one of the views and suppress
the other one, so that the utterance creates an identical
experience to visual inspection: "1:15 AM" for all users.

Bug: 21718000
Change-Id: Ic9920d71ae4d4ad41ba86d7bd96f9a19b07e2108
2015-07-29 22:19:52 +00:00
Adrian Roos
e2cd84196e Merge "Fix pattern lock for accessibility" into mnc-dev 2015-07-29 21:23:25 +00:00
Adrian Roos
d2def94639 Fix pattern lock for accessibility
- remove the content description in Keyguard
- only show virtual views when pattern is in progress
- add a content description when the pattern is not in progress

Bug: 22646748
Change-Id: Id32a37c4c74c82b547cee8861b2856fa0a08c41c
2015-07-29 14:13:53 -07:00
Jason Monk
bd6f1c87a5 Fix touch target for settings icon
Bug: 22808656
Change-Id: I92b77b30bfeadc80d060dab67a51d5fcd96268af
2015-07-29 16:07:39 -04:00
Geoff Mendal
3986360a75 Import translations. DO NOT MERGE
Change-Id: Ic4e540e08175014515a7556425c751de60955005
Auto-generated-cl: translation import
2015-07-29 10:57:52 -07:00
Dan Sandler
68079d54f3 Fix media notification action icons.
In addition to cleaning up some bare references to the icon
slot, we now apply updates to notification RemoteViews in
the context of the supplying app's package. This ensures we
can find the drawables inside any Icon objects that were
constructed without a proper package name, such as is the
case with Actions (because the builder and constructor are
Context-free and so don't know the package name).

This CL also makes clear what was previously only implied:
Non-resource action icons are not actually supported yet
since they can't be pushed to TextView compound drawables
using today's RemoteViews APIs. That will require an API
change.

Bug: 22600607
Change-Id: Ie6b88aed36e4db05be35f843ea3bc1898d4a5c96
2015-07-29 13:50:32 -04:00
Martijn Coenen
50184147fc Merge "Resource for setting default NFC payment component." into mnc-dev 2015-07-29 07:54:29 +00:00
Jason Monk
fbcbad138d Merge "Add sizes to SysUI tests" into mnc-dev 2015-07-29 00:31:16 +00:00
Jorim Jaggi
0d210f6395 Animation for touch, wake and unlock
- Add callback to inform SysUI when the screen has been unblocked
and turned on.
- Cleanup inconsistent messaging about device interactive/screen on
and off.
- Add callbacks to inform SysUI about screen states
- Implement a quick fade for the scrim after touch, wake, and unlock.
  First, start with a black scrim on top of everything, and then fade
  it out.
- Make sure we play the normal unlock animation when device is pulsing
- Override navigation bar animations for touch, wake and unlock: Fade
  in the same manner as the scrim.

Bug: 22571198
Bug: 21855614
Change-Id: I8ff08d72cced1e0f03c78d71ff710d8a4f6b848c
2015-07-28 23:02:54 +00:00
Zach Johnson
5faa033615 Merge "Add filter for personal apps that are not disabled until first use" into mnc-dev 2015-07-28 22:36:30 +00:00
Jason Monk
3506621975 Merge "Fix network name not showing in QS sometimes" into mnc-dev 2015-07-28 18:05:49 +00:00
Jason Monk
e427cb8076 Add sizes to SysUI tests
Change-Id: I27e4a60e2658d3a5db32cdeb73bd0a031865ce86
2015-07-28 10:06:01 -04:00
Jorim Jaggi
965bab2bae Merge "Allow assist gesture when notification shade is expanded" into mnc-dev 2015-07-28 00:36:14 +00:00
Fyodor Kupolov
136a2e7fc9 Introduced android.permission.PEERS_MAC_ADDRESS permission
Introduced signature-level permission android.permission.PEERS_MAC_ADDRESS.
It allows access to MAC addresses of WiFi and Bluetooth peer devices, without
having location permission or even if location is turned off.

Bug: 21852542
Bug: 22728628
Change-Id: If0ff80636e57b38dbedc8fcf5f520a3a6d6f734e
2015-07-27 12:33:43 -07:00
Jason Monk
661794307a Merge "Fix QS switch accessibility problem" into mnc-dev 2015-07-27 19:27:29 +00:00
Svetoslav Ganov
8a54da92ce Merge "Pass correct extras to the custom print options activity" into mnc-dev 2015-07-27 19:23:37 +00:00
Jason Monk
fc2506255f Fix QS switch accessibility problem
Set the switch state so it can be read back correctly.

Bug: 22710906
Change-Id: I2bcba96e53813118eb2be8dcb7e0b7d547767550
2015-07-27 15:17:14 -04:00
Jorim Jaggi
9e49b5d679 Merge "Move PIN/Pattern appear animation to RenderThread (1/2)" into mnc-dev 2015-07-27 18:55:29 +00:00
Martijn Coenen
7ab4b7fd50 Resource for setting default NFC payment component.
Bug: 22756856
Change-Id: If97e0faead995fb95893a128c1890b61bbe86ce5
2015-07-27 16:04:31 +02: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
Erik Kline
a7bdace262 Merge "Change to connectivitycheck.gstatic.com" into mnc-dev 2015-07-27 02:35:09 +00:00
Svet Ganov
f12b393ff4 Pass correct extras to the custom print options activity
bug:22734138

Change-Id: Iea1bc32c3e863072b2021b823bef2cefa54fa540
2015-07-25 12:11:01 -07: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
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
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
Zach Johnson
b6d17ee7ae Add filter for personal apps that are not disabled until first use
Needed for the battery settings UI.

b/22667081

Change-Id: I25ed5c1866dc3027e450c7ce9031de5def4f839a
2015-07-24 15:48:52 -07: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
Adrian Roos
4629f1c58c Merge "Fix janky add guest transition" into mnc-dev 2015-07-24 21:42:46 +00:00
Jorim Jaggi
18976a5195 Allow assist gesture when notification shade is expanded
Bug: 22669852
Change-Id: Icf7cf981ca9b6cd5547b62fb4ae97f13f1033395
2015-07-24 13:20:29 -07: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
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
Julia Reynolds
ea00f320ee Merge "Prevent lockscreen album art from flickering on metadata change." into mnc-dev 2015-07-24 14:34:02 +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
Adrian Roos
0063e0bcd5 Merge "Disable Keyguard affordances before setup is completed" into mnc-dev 2015-07-23 23:56:37 +00:00
Selim Cinek
1fcafc49ad Adapted the behavior when unlocking with fingerprint is not allowed
We now keep the fingerprint running and switch to the bouncer when
the user successfully authenticated.

Bug: 21618072
Change-Id: If00061cb3914afd4d7a7d75964594484c792a890
2015-07-23 15:27:32 -07:00
Adrian Roos
b2f8c716e8 am 50ed152a: am 7f63ef38: am 9b6a6099: Prevent insanely long passwords from crashing SystemUI
* commit '50ed152ab646b00714947a9cf75e01e618b16c02':
  Prevent insanely long passwords from crashing SystemUI
2015-07-23 21:31:41 +00:00
Jason Monk
157ad64dbe Merge "Fix emergency only when no sims" into mnc-dev 2015-07-23 20:24:32 +00:00
Julia Reynolds
c2df1ab48d Merge "Set 'the' media notification to the notification actually playing." into mnc-dev 2015-07-23 20:08:33 +00:00
Fyodor Kupolov
a86101724b Added ACCESS_COARSE_LOCATION permission for BT
It is required to receive BluetoothDevice.ACTION_FOUND intents

Bug: 21852542
Change-Id: I0437c74c753567e8c6beb4bf70a30ddf0aaa4f3b
2015-07-23 12:47:06 -07:00