10113 Commits

Author SHA1 Message Date
Tim Kilbourn
487cdebd90 am 8f1ea834: Handle the -a flag for dumpsys appops.
* commit '8f1ea834f9af5ccf6cea1f529f63e727cd13b6a8':
  Handle the -a flag for dumpsys appops.
2015-08-27 01:15:58 +00:00
Tim Kilbourn
8f1ea834f9 Handle the -a flag for dumpsys appops.
Bug: 23017449
Change-Id: I6ce9ac368e2739153867c246893eb544d052834f
2015-08-26 15:07:37 -07:00
Selim Cinek
e67268e66d Merge "Migrate camera vibration to the systemUI" into mnc-dr-dev 2015-08-26 18:25:07 +00:00
Daniel Estrada Alva
8ff73b596e Merge "Cherry-pick: Add callback-based support for HW Activity Recognition." into mnc-dr-dev 2015-08-26 17:30:09 +00:00
Selim Cinek
a07177f0ad Merge "Launching the camera now from systemUI including animations" into mnc-dr-dev 2015-08-26 17:20:50 +00:00
Selim Cinek
69ff8afcee Migrate camera vibration to the systemUI
Also make sure the device is awake before vibrating.

Bug: 23200352
Change-Id: I63d04a82a4b8d9fa3e8f9deff5dd71295c82c930
2015-08-26 10:12:19 -07:00
Selim Cinek
372d1bdd54 Launching the camera now from systemUI including animations
The GestureLaunchService now informs systemUI that a launch
has been requested and the systemUI, depending on its state
will launch the Camera in the correct mode, including
animations.

Bug: 22957192
Bug: 22958025
Change-Id: I815437c8bd33638245ac61a750f64af74fe3e1e3
2015-08-26 10:12:06 -07:00
Michael Wright
09952195f8 Merge "Update rotation without holding the WOL lock." into mnc-dr-dev 2015-08-26 13:08:25 +00:00
Adrian Roos
d56892da19 Merge "Disable fingerprint after user lockout" into mnc-dr-dev 2015-08-26 00:43:31 +00:00
Todd Kennedy
81d0325ffe am 5983ae7b: Merge "Allow extra slop in battery stats" into mnc-dev
* commit '5983ae7b98bbe16b8a0a5ffe9203baa1ed58a8fb':
  Allow extra slop in battery stats
2015-08-26 00:35:42 +00:00
Todd Kennedy
5983ae7b98 Merge "Allow extra slop in battery stats" into mnc-dev 2015-08-26 00:27:46 +00:00
Todd Kennedy
590da11a85 Allow extra slop in battery stats
Current slop of 30ms was causing too many WTFs to be thrown. Increase the slop
to 750ms.

Bug: 23391894
Change-Id: Ica5be9b00745bfe58872d43be8c32f8c147075ed
2015-08-25 17:27:03 -07:00
Jim Miller
01c5bf5470 Merge "Handle driver errors from remove, enroll and auth." into mnc-dr-dev 2015-08-25 23:22:29 +00:00
Adrian Roos
873010dfee Disable fingerprint after user lockout
Bug: 22677859
Change-Id: I38b918d2e40b5bb423f2e5c171fe65bed8d440a6
2015-08-25 15:59:00 -07:00
Michael Wright
74f6c79b51 Update rotation without holding the WOL lock.
We need to make sure to only ever update the orientation of the
device from WindowOrientationListener when we're not holding the WOL
class lock, otherwise we can deadlock when WMS calls into us to set
the orientation based on an apps preference.

Bug: 23491348
Change-Id: Ifeded4d5d1dc923fa2ce0473bc4b7fe950dc0cfd
2015-08-25 21:15:12 +01:00
Nicolas Prevot
26b555d42c am d34ecae4: Don\'t set a null filter to a cross-profile ResolveInfo.
* commit 'd34ecae444867b78be06bb5a6b0fb2a66c2e30aa':
  Don't set a null filter to a cross-profile ResolveInfo.
2015-08-25 17:39:24 +00:00
Chris Wren
83d83194c3 Merge "instrument fingerprint crypto token service" into mnc-dr-dev 2015-08-25 14:10:20 +00:00
Nicolas Prevot
d34ecae444 Don't set a null filter to a cross-profile ResolveInfo.
ResolverActivity expects the filter not to be null.

BUG:23395395
Change-Id: Ie7081daba1ad138b1a3903ef9dd1b649806c8d0e
2015-08-25 13:03:37 +01:00
Jorim Jaggi
d94d3a2aa5 Fix issues with light status bar and fp wake-and-unlock
- When wake-and-unlocking, make sure to skip the light status bar
transition.
- Fix race condition with window manager when unlocking when device
is interactive for supplying the timings for the light status bar
transition.
- Fix media artwork when wake-and-unlocking while pulsing.

Bug: 23365544
Change-Id: I209ca1e6684811f5f313354ca1614a0ebd49388c
2015-08-24 21:49:49 +00:00
Adrian Roos
8a8885b91d am def6896d: Fix shifted wallpaper after OTA
* commit 'def6896d10ce4869831bf91eb73709e8a9714b27':
  Fix shifted wallpaper after OTA
2015-08-24 21:41:43 +00:00
Adrian Roos
def6896d10 Fix shifted wallpaper after OTA
Fixes a bug where WindowManager's and SurfaceFlinger's
view of the wallpaper's position could get out of sync.

Bug: 13020924
Change-Id: Iad17b0f516fffacd2877ceac40fcc8e2647c06b2
2015-08-24 20:52:21 +00:00
Jorim Jaggi
414985c422 Remove window from mWaitingForDrawn when policy hidden
When doing a wake-and-unlock sequence and the app underneath hides
the status bar, we are dismissing Keyguard, the app gets focus, the
app hides the status bar BUT we haven't finished drawn yet, so we
are waiting until the timeout because w.hasDrawnLw() always returns
false. Remove window from pending list if it gets policy hidden.

Bug: 23431343
Change-Id: I27e8c6d4efb435a4d3b632a4a37c0de5b021c2e7
2015-08-24 20:47:41 +00:00
Chris Wren
9521231031 instrument fingerprint crypto token service
Histogram counts number of calls with and without a token.

Bug: 22951001
Change-Id: Idaabee389bfa33eb009d48bb9a0edae146bcc217
2015-08-24 16:19:03 -04:00
destradaa
e1a5144a1d Cherry-pick: Add callback-based support for HW Activity Recognition.
Add a callback-based mechanism for GmsCore to connect to Hardware Activity
Recognition. This allows GmsCore to stop polling to identify if the Android
platform supports the functionality or not.

Bug: 17112184
Change-Id: I8f9459cbd15eecd70f6919c6551e6f7a663c732f
2015-08-24 11:43:27 -07:00
Jim Miller
827afdab0e Handle driver errors from remove, enroll and auth.
FingerprintService expects callbacks from the HAL to happen over
the provided notify() method.  However, there are some circumstances
when errors can't be propagated (i.e. the driver cannot be loaded).

In this case, the call to the method (remove(), enroll(), authenticate())
fails and we get a return status != 0. When this happens, FingerprintService
now sends an error response to the client. In general, this will mean
the driver is unavailable, so we send FINGERPRINT_ERROR_HW_UNAVAILABLE.

Fixes bug 23183484

Change-Id: Ifb40ba6fb1d960810043749fd8478ba37c968405
2015-08-21 18:56:37 -07:00
Eino-Ville Talvala
2e3215c9f6 Camera: Add support for notifying NFC stack when camera is active
On some devices, NFC full poll operation and camera operation
interfere.  Add a system property ro.camera.notify_nfc.  When set to >
0, the NFC adapter will be notified to disable polling whenever the
camera is active.

Bug: 23393557
Change-Id: I7e22018900970cbbd3d34bd8b3974e0b1cc98a8d
2015-08-21 17:41:47 -07:00
Trevor Bunker
fbcd78e6ed Merge "Add support for new window orientation sensor." into mnc-dr-dev 2015-08-21 21:14:00 +00:00
Adrian Roos
b5e4722891 Add StrongAuthTracker
Bug: 22846469
Bug: 22115393
Change-Id: I6ef5322d02e540fc043e7f20d3aabf595ce7c224
2015-08-21 13:28:00 -07:00
Jorim Jaggi
ab45a217b0 Make wake-and-unlock faster
- Scrims: When dismissing Keyguard, don't wait until the next frame
to start the animation. Saves 16ms
- Scrims: Skip first frame, because it's completely black anyways.
Saves 16ms.
- Don't wait with navigation bar to show until the screen has turned
on. Window manager is blocked on DisplayPowerController anyways, so
the animation will exactly be started when the screen turns on. Fixes
some jank as well.
- Window manager: Don't wait for the window below Keyguard for draw
completion until turning on screen. Saves a lot of time depending on
how the app is behaving.

Bug: 23401557
Change-Id: I9734f9a12143f0e3c0647e9aa066831a29a6de63
2015-08-21 19:29:30 +00:00
Michael Wright
814de9b0a4 Add support for new window orientation sensor.
If we have a window orientation sensor available then we can defer
our orientation calculation to it and potentially let the AP go into
XO shutdown.

By default we'll use the typical accelerometer-based sensor unless
the device tells us the name of the sensor to look for.

Bug: 23038651
Change-Id: I94f02e0639956a7a6a3ab85710aa0f2537fbf7f3
2015-08-20 23:47:55 +01:00
Jorim Jaggi
2364af2083 Merge "Save interactive/screen-on state in KeyguardServiceDelegate" into mnc-dr-dev 2015-08-20 02:18:36 +00:00
Dianne Hackborn
2af6ec5198 am c14cbac4: Merge "Fix issue #23361510: Increase assist timeout from 500ms to 1 second" into mnc-dev
* commit 'c14cbac4a3e76d924621b34367cc8b6bcf977908':
  Fix issue #23361510: Increase assist timeout from 500ms to 1 second
2015-08-20 02:03:31 +00:00
Dianne Hackborn
c14cbac4a3 Merge "Fix issue #23361510: Increase assist timeout from 500ms to 1 second" into mnc-dev 2015-08-20 01:56:02 +00:00
Dianne Hackborn
cf836079cd Fix issue #23361510: Increase assist timeout from 500ms to 1 second
Actually, timeout is okay, but need to schedule it on UI thread.

Change-Id: I5b4ffa7caa33815a5223e3ddd08d4809bc7cf7b6
2015-08-19 18:54:38 -07:00
Jorim Jaggi
c049607331 Save interactive/screen-on state in KeyguardServiceDelegate
So when SystemUI/Keyguard crashes, we only call onStartedWakingUp and
onScreenTurnedOn when the device is interactive and/or the screen is
on.

Bug: 23344236
Change-Id: I0d0be91ff15d6c552304659956770ab88bb26ba4
2015-08-19 18:46:48 -07:00
Amith Yamasani
e1df482c17 am e3de6c5d: Merge "Fix crashes when removing work profile" into mnc-dev
* commit 'e3de6c5df5a94e627c5ee0f188cbb066233a3dd0':
  Fix crashes when removing work profile
2015-08-19 20:19:28 +00:00
Amith Yamasani
e3de6c5df5 Merge "Fix crashes when removing work profile" into mnc-dev 2015-08-19 20:10:30 +00:00
Dianne Hackborn
5c577bab3b am 29cd8808: Merge "Fix issue #23326715: Clarify --checkin/-c options in batterystats" into mnc-dev
* commit '29cd880890825ce15a1b2da977bcb1796db6f4e3':
  Fix issue #23326715: Clarify --checkin/-c options in batterystats
2015-08-19 18:31:20 +00:00
Zhentao Sun
f2f0114848 Merge "Launched camera in the correct user." into mnc-dr-dev 2015-08-19 16:12:25 +00:00
Adam Lesinski
bda9b324c8 am 886e7a63: Merge "Change default cellular activity timeout to 10" into mnc-dev
* commit '886e7a63b122a30c69c663d32e3e5f880a07593e':
  Change default cellular activity timeout to 10
2015-08-19 00:53:35 +00:00
Dianne Hackborn
865b79b43b Fix issue #23326715: Clarify --checkin/-c options in batterystats
Change-Id: I3f026447ba7c6d2c3f9ef065269c31a78cf73512
2015-08-18 17:33:00 -07:00
Zhentao Sun
4354a05f85 Launched camera in the correct user.
Fixed b/23325974.
The camera was always launched in the device owner's profile. Now it can
work with secondary users.

Change-Id: I826b341a7e73a9dd603dd5df7aa31bfaf4d440c4
2015-08-18 17:05:37 -07:00
Amith Yamasani
236b2b5d28 Fix crashes when removing work profile
This isn't specific to work profile. When multiple user
deletions happen in sequence, a race causes a dying user
to lose permissions prematurely. This fix delays removal of
user state until the user is completely cleaned up and all the
processes have been killed.

Bug: 23178833
Change-Id: I1636bc2022416359a25f19a3f65d113c05289cd3
2015-08-18 16:48:55 -07:00
Jim Miller
bea9d7b94c Merge "Reset fingerprint lockout timer when strong auth is used." into mnc-dr-dev 2015-08-18 23:12:18 +00:00
Adam Lesinski
886e7a63b1 Merge "Change default cellular activity timeout to 10" into mnc-dev 2015-08-18 20:43:34 +00:00
Jim Miller
33a5c80773 resolved conflicts for merge of 448216e7 to mnc-dr-dev
Change-Id: Ic83b34ab6114e2ffe6e08961eaea07110efc5cc5
2015-08-18 13:07:25 -07:00
Jim Miller
e0507bbbf9 Reset fingerprint lockout timer when strong auth is used.
Fixes bug 22565462

Change-Id: I4842877839845e7fe103396d8ca8104928568c04
2015-08-18 13:01:31 -07:00
Jim Miller
448216e7b8 Merge "Revert "Disable fingerprint when remotely reset by DPM"" into mnc-dev 2015-08-18 19:32:01 +00:00
Adam Lesinski
ed6160d299 Change default cellular activity timeout to 10
LTE radios take 10 seconds to power down, so we should set the
activity timeout to 10 seconds.

Bug:23294704
Change-Id: I7478b77f134b0fe2d82e39acd5c370add12735ca
2015-08-18 11:47:07 -07:00
Filip Gruszczynski
eb2f302d11 am 610008c0: Merge "Clear old clip rect when creating new surface." into mnc-dev
* commit '610008c0ebf5ea4556b4825eac521b2b16f1a66c':
  Clear old clip rect when creating new surface.
2015-08-18 02:12:47 +00:00