64 Commits

Author SHA1 Message Date
Sandeep Siddhartha
42c3e02c52 Start using the Hotword recognition APIs
- Gets rid of all assumptions about the hotword service
- Fixes bug where the hotword detection would keep running accidentally
  even when the screen got turned off

Change-Id: Ie86c1a4f4343bdf7e61f7c21114fd3b287bd5401
2013-08-28 23:40:32 +00:00
Sandeep Siddhartha
c4c330156e Temporary disable Hotword on lockscreen
Change-Id: Icdddcc0308b9f3153172e34a8f4d051c58829653
2013-08-27 13:25:40 -07:00
Jim Miller
f45bb40388 Add setting to disable keyguard widgets
This allows disabling keyguard widgets through Settings.
On new devices, the setting is turned off by default.  If the
user currently has widgets in keyguard, then we keep them
and re-enable the setting.

Change-Id: I7258921231d439925ac8627105710efa99309094
2013-08-23 17:36:30 -07:00
Sandeep Siddhartha
f4d922b2d9 Add hotword detection in insecure keyguard
- This talks to a service that's implemented by the Search app
- The AIDL interface may be moved to the framework in a later CL

Change-Id: I26553e46f7d17ba4ac7a952c871b28b261cba975
2013-08-20 14:17:02 -07:00
Baligh Uddin
8a2fc1da30 Import translations. DO NOT MERGE
Change-Id: I521eae27b6864e350d4a81c669b5ada426f150dc
Auto-generated-cl: translation import
2013-08-01 10:24:34 -07:00
Baligh Uddin
09419bb6ad Import translations. DO NOT MERGE
Change-Id: Ia27c9de8bb6e8307f3f1fcaf69bee46eb361ed67
Auto-generated-cl: translation import
2013-07-29 08:24:21 -07:00
Andrew Flynn
a92ce1f32d Keyguard doesn't need new MANAGE_DEVICE_ADMINS permission
Accidentally added in a418cf2

Bug: 9856348
Change-Id: I662fbcc8471b529651701084a703f89dfc642279
2013-07-26 08:26:10 -07:00
Jim Miller
fca3193bbe Merge "Fix layout incompatibility between hdpi vs xhdpi devices" 2013-07-24 21:14:09 +00:00
Jim Miller
c95e5c844a Fix layout incompatibility between hdpi vs xhdpi devices
The xhdpi was using the hdpi spec instead of the default since
it was the closest match.

This allows both devices to work correctly.

Fixes bug 9985496

Change-Id: I03ddf1b6645d5f82e2fba6c39a1c5b3a37e62d45
2013-07-24 13:27:51 -07:00
Amith Yamasani
dc56ceb6a1 Merge "New permission to manage device admins" 2013-07-24 00:06:34 +00:00
Amith Yamasani
a418cf21c9 New permission to manage device admins
The previously used permission was doing double duty as the permission
that device admins to check for to ensure that calls are coming from valid
system components.

MANAGE_DEVICE_ADMINS is system|signature and is now required to add/remove
device admins.

Required for:
Bug: 9856348

Change-Id: I64385d2ec734c3957af21b5a5d9cffd8a3bcd299
2013-07-22 10:42:46 -07:00
Jim Miller
37ee2647d4 Merge "Fix keyguard layout on hdpi devices" 2013-07-20 01:52:08 +00:00
Jim Miller
99054020b8 Fix keyguard layout on hdpi devices
This reduces the size of the security area slightly to give
the widget more room.

Fixes bug 9642579

Change-Id: I58b861def932450901b17d6df74958dde8207769
2013-07-19 18:37:12 -07:00
Jaekyun Seok
bfdad8ecad Add a keycode to switch audio tracks (1/2)
A key to switch audio tracks is general on media devices like blu-ray.

Bug: 9728155
Change-Id: Ib61822b8aa9c143a8febc3cff4707fa775119448
2013-07-12 17:23:29 +09:00
Baligh Uddin
08f8a810d9 Import translations. DO NOT MERGE
Change-Id: I3f2d4b1f5d1ca4bb1f3c0e04757a627ad52ae365
Auto-generated-cl: translation import
2013-07-10 18:08:48 -07:00
Jim Miller
cf182aac94 Minor cleanup of KeyguardViewManager
Removed unused code and redundant check for high-end graphics.

Change-Id: I750d3918e5448760e622a4b3d1781b375bdc66db
2013-06-28 16:55:56 -07:00
Jim Miller
e51cf7aeb6 Simplify wake management code in keyguard.
Removes onWakeKey/Motion handling from keyguard since it's no longer used.
The legacy code was originally intended to have keyguard filter wake events
which is now done in PhoneWindowManager. Ultimately it just needs to call
PowerManager.wakeUp() since keyguard no longer filters these keys.

Change-Id: I5b8ef9b422abf850a85b57f21944e5eb09fbedc2
2013-06-27 15:58:29 -07:00
Baligh Uddin
8060677ba8 Import translations. DO NOT MERGE
Change-Id: I5612800c2b9deb0a0e653b86478bedfe45b729dd
Auto-generated-cl: translation import
2013-06-24 16:54:37 -07:00
Jim Miller
e42d4111c1 Fix alpha animation bug in keyguard
The setters/getters were being stripped by proguard, resulting
in janky transitions in keyguard alpha animations.

Change-Id: Ifd4574d9b64eb2b038acac41bfc8418745ee12a2
2013-06-20 18:41:07 -07:00
Jim Miller
9512953c66 Move Keyguard to the systemui process.
This should save some memory on devices with limited amounts of RAM
by allowing it to share the graphics context with systemui.

Initially, adding this to the systemui process triggered a bug where
the shared process id didn't exist in the table yet. The change to
ActiveServices tries to work around this by explicitly adding the package in
attachApplicationLocked().

Change-Id: I9e97d5d69ddd15d7f16aca83a57bdf381811a13b
2013-06-18 15:28:28 -07:00
Christopher Tate
ccbf84f44c Some system apps are more system than others
"signatureOrSystem" permissions are no longer available to all apps
residing en the /system partition.  Instead, there is a new /system/priv-app
directory, and only apps whose APKs are in that directory are allowed
to use signatureOrSystem permissions without sharing the platform cert.
This will reduce the surface area for possible exploits of system-
bundled applications to try to gain access to permission-guarded
operations.

The ApplicationInfo.FLAG_SYSTEM flag continues to mean what it is
says in the documentation: it indicates that the application apk was
bundled on the /system partition.  A new hidden flag FLAG_PRIVILEGED
has been introduced that reflects the actual right to access these
permissions.

At some point the "system" permission category will be
renamed to "privileged".

Bug 8765951

Change-Id: I6f0fd9cdb9170e076dfc66d83ecea76f8dd7335d
2013-06-17 12:47:35 -07:00
Baligh Uddin
66b9cb2549 Import translations. DO NOT MERGE
Change-Id: Ib7914f77925d5edb99c62999ff3ae29856adf399
Auto-generated-cl: translation import
2013-06-12 09:50:05 -07:00
Jim Miller
e77737f4cd am 2542fd54: am 00d4c946: Merge "Fix keyguard issue where an incoming SMS would switch widget" into jb-mr2-dev
* commit '2542fd54ac943002cb7537029404dcc80a6491ac':
  Fix keyguard issue where an incoming SMS would switch widget
2013-06-01 09:51:40 -07:00
Baligh Uddin
bb0a7f5010 Import translations. DO NOT MERGE
Change-Id: I7d29ef01bf03a1640cabf0a179fc0b05d0e53b3a
Auto-generated-cl: translation import
2013-05-27 09:53:06 -07:00
Jim Miller
a62996e3c5 am 2f567679: am 2f48c4a7: Merge "Check for invalid pointer index in PagedView" into jb-mr2-dev
* commit '2f567679f40ad0580928502972308ec540eeba3f':
  Check for invalid pointer index in PagedView
2013-05-23 14:08:18 -07:00
Amith Yamasani
99f7fae55c Fix user icon loading
Was broken by a recent merge from mr2.

Change-Id: I063e0a5e08615f7b47d3861796985f4aeec23537
2013-05-13 16:08:31 -07:00
Jim Miller
08763af07e am 8f1b2e0b: am 00553835: Merge "Attempt to fix NPE in keyguard" into jb-mr2-dev
* commit '8f1b2e0b7fdb1de3537fe3f45ba634fb74a94b4e':
  Attempt to fix NPE in keyguard
2013-05-10 03:06:38 -07:00
Amith Yamasani
e8e93a143e Fix build error due to incorrect merge
Keyguard package was moved, so a new file didn't get to the right directory.

Change-Id: I2cdf2d9ef785ca7852c38278f51b5af9f96320f7
2013-05-09 18:12:30 -07:00
Amith Yamasani
ecd5afe1ef resolved conflicts for merge of 069d7e9b to master
Change-Id: Ia8fd5de3d4cc275fd358132bcb2c198d1e7b6877
2013-05-09 17:07:08 -07:00
Baligh Uddin
4946128d64 Import translations. DO NOT MERGE
Change-Id: I247665db04a208df5ea3681001855b1321341a55
Auto-generated-cl: translation import
2013-05-01 08:18:40 -07:00
Jim Miller
c0b676dcc2 Add keyguard background scrim and protection around keyguard APIs
With this change, the system process will put up a scrim in the
event keyguard crashes to protect underlying content.

It also adds permission checks to prevent unathorized access
through the binder APIs.

Cleaned up KeyguardTestActivity to build separately.

Removed unused resources.

Change-Id: I9e370c6bfb7dca68eae9eae304c815fb84a753d2
2013-04-26 14:34:21 -07:00
Svetoslav
afab4fd00b am c6eeacd9: am c38bc5ab: Merge "Lockscreen widgets not always announced." into jb-mr2-dev
* commit 'c6eeacd9341c0348c2eb29d1808eb17ea08464f4':
  Lockscreen widgets not always announced.
2013-04-25 17:14:33 -07:00
Baligh Uddin
d5070c395d Import translations. DO NOT MERGE
Change-Id: Id5f09e8ba9f64db6c57687316f02dfa6ac94390a
Auto-generated-cl: translation import
2013-04-24 08:16:57 -07:00
Baligh Uddin
cf49808697 Import translations. DO NOT MERGE
Change-Id: Ia0c52e6aef99399156b84920f185d03b55f746b1
Auto-generated-cl: translation import
2013-04-22 08:45:25 -07:00
Winson Chung
6168317f31 resolved conflicts for merge of 7b2ad857 to master
Change-Id: I72472e56b2303aa6ccabd784fadc7da4eabcb0e8
2013-04-19 14:25:58 -07:00
Jim Miller
3569e9e50c resolved conflicts for merge of 2f6a2526 to master
Change-Id: Ie51d3a63f4d4d5bad7ef16ad84ef6ad5acdaa64a
2013-04-17 14:18:56 -07:00
Baligh Uddin
9f7fd99c94 Import translations. DO NOT MERGE
Change-Id: I912a433cb92359b877eaee39eae0a9da6679eb8f
Auto-generated-cl: translation import
2013-04-17 08:52:28 -07:00
Brian Colonna
647e4b82fe am df6db6ad: am 3f1375e5: Merge "Enabling Face Unlock for user switching (bug 8495282)" into jb-mr2-dev
* commit 'df6db6adc2fd09da77a028539e802e69d0a8d6a1':
  Enabling Face Unlock for user switching (bug 8495282)
2013-04-15 14:27:40 -07:00
Jim Miller
c8c0d0964e am cce961c1: am 22626107: Merge "Fix bug where transport shows all the time in keyguard" into jb-mr2-dev
* commit 'cce961c13417eeafba78fd5f785984b54997d897':
  Fix bug where transport shows all the time in keyguard
2013-04-11 15:43:49 -07:00
Jim Miller
3f4e82b190 am 3ef8f64d: am 5c58a916: Merge "Fix missing clock in keyguard" into jb-mr2-dev
* commit '3ef8f64d3faac1b110c737e69472be710d07d158':
  Fix missing clock in keyguard
2013-04-10 17:25:11 -07:00
Baligh Uddin
206a36d226 Import translations. DO NOT MERGE
Change-Id: I54f852f5d08f3a64b0bb1f95b620374bb81472e4
Auto-generated-cl: translation import
2013-04-05 08:48:56 -07:00
Jean-Michel Trivi
314b25d0fd resolved conflicts for merge of ca762bee to master
Change-Id: Ib57124c30352b4f6ed66f384b386eb6f49b505c1
2013-04-03 14:58:48 -07:00
Jim Miller
f0426c6a44 am e884f6b8: am dbd9c337: Merge "Change time format for default clock in keyguard" into jb-mr2-dev
* commit 'e884f6b8505520f6f745cc51358154bf5d89f101':
  Change time format for default clock in keyguard
2013-04-02 19:25:17 -07:00
Brian Colonna
c849fbcf3d resolved conflicts for merge of 5856ee4b to master
Change-Id: I60ba85bc246b9cf25d467b2099535aad47f82ca7
2013-04-02 17:16:55 -04:00
Jean-Michel Trivi
7678a7beea resolved conflicts for merge of 99bd302c to master
Change-Id: I858f67d0c61f6403b336c82a300f69027fc16bd1
2013-03-29 14:30:34 -07:00
Baligh Uddin
07ab08ce7a Import translations. DO NOT MERGE
Change-Id: Iee0ac6623e8460cfa8d18874fe30dccb42b3c45a
Auto-generated-cl: translation import
2013-03-27 08:32:14 -07:00
John Spurlock
5245248452 resolved conflicts for merge of 2d9305cc to master
Change-Id: I9a9672314ef95af09e3f416fa1dc200f7a9d8d4e
2013-03-21 08:27:58 -04:00
Baligh Uddin
fad02f88ca Import translations. DO NOT MERGE
Change-Id: I4f294c5a4807247f8a38fa4374b873a523d3d67f
Auto-generated-cl: translation import
2013-03-20 09:02:30 -07:00
Jim Miller
5950bf3a47 resolved conflicts for merge of 7d7443bc to master
Change-Id: I5d777dad0fb4019c1f718c4109c5c973eeac8840
2013-03-19 17:37:43 -07:00
Baligh Uddin
8c4d38ec93 Import translations. DO NOT MERGE
Change-Id: Icda106767529acfdf497b233371e55912ad0e2dd
Auto-generated-cl: translation import
2013-03-18 09:12:18 -07:00