25010 Commits

Author SHA1 Message Date
Adam Lesinski
f55187767e Merge "Fix issue where pruned UsageStats files would not be removed from index" 2015-03-02 22:23:44 +00:00
Adam Lesinski
a4005662c7 Merge "Add generic "INTERACTION" event type to UsageStatsManager" 2015-03-02 22:22:58 +00:00
Adam Lesinski
3a0831bfe6 Fix issue where pruned UsageStats files would not be removed from index
This would cause an exception to be thrown when querying stats
that included a deleted file and cause only in-memory stats to be
returned.

This change now re-indexes after deleting files.

Furthermore, we continue reading UsageStats files in order
to return more useful data if some other issue (file corruption)
leads us to fail reading a file.

Change-Id: I4a52739624d68e719e3d7d324a0b16709a62ac7a
2015-03-02 13:06:46 -08:00
Adam Lesinski
978a1ed5aa Add generic "INTERACTION" event type to UsageStatsManager
This will allow for updating a package's last time used
property for packages that are interacted in ways other than
launching their activities (interacting with notifications, etc.)

Change-Id: Ic6f9519f46fa04abd37ea6fc9475bcd9ea721003
2015-03-02 12:54:14 -08:00
John Spurlock
7b91c55b3f Merge "Remove unused imports in frameworks/base." 2015-03-02 20:43:50 +00:00
John Spurlock
4b69ac70a1 Merge "AudioService: Migrate index map to SparseIntArray." 2015-03-02 20:07:04 +00:00
John Spurlock
2bb02ec6a9 AudioService: Migrate index map to SparseIntArray.
- Use SparseIntArray instead of a generic hash map.
 - Avoids unnecessary boxing/unboxing.
 - Avoids unnecessary allocation for iterator temp objects.
 - Provides deterministic dumping (by ascending device order).

Change-Id: If5ca5edd94af90cfed65ecbbbc1f4929f50ab6e9
2015-03-02 13:13:06 -05:00
Amith Yamasani
d65ed88144 Merge "Avoid NPE when quickly toggling USB debugging state" 2015-03-02 18:07:58 +00:00
Amith Yamasani
f6197e8fa2 Avoid NPE when quickly toggling USB debugging state
If you try to disable USB debugging before the socket
to listen is opened in the thread, it will end up
with an NPE.

Do some locking around socket creation and closing
to avoid this.

Bug: 18708503
Change-Id: Iac43e4806fff1e411772b1ba1a070d8a7c776fcb
2015-03-02 09:14:23 -08:00
John Spurlock
59dc9c1d19 AudioService: Fix typo in constant.
Change-Id: I66dba8ffbbe59ab82f97c989163db04741c9a1d1
2015-03-02 11:20:15 -05:00
John Spurlock
08c7116ab9 Remove unused imports in frameworks/base.
Change-Id: I031443de83f93eb57a98863001826671b18f3b17
2015-02-28 14:47:49 -05:00
Jim Miller
ba67aee02c Add fingerprint settings support to the framework
- cleanup thread issue and simplify native FingerprintService methods
- add new permissions and enforce them
- add fingerprint hardware detection API

Change-Id: I87c2243ea2412061f1e85b044138480d0161bcdf
2015-02-27 12:03:32 -08:00
Mike Lockwood
238cba3593 Merge "Move ALSA utilities to com.android.internal.alsa package" 2015-02-27 18:42:13 +00:00
Edward Cunningham
690f78adf1 Fix UsageStats to report correct endTime from XML
Bug: 19529542
Change-Id: Iacb1a245a40c6b88ae15740797217f59d5fca1e6
2015-02-27 00:33:30 +01:00
Mike Lockwood
464c655871 Move ALSA utilities to com.android.internal.alsa package
Change-Id: Icbd45ec97a942e44e60f8d4ba0bb58c97f85b55f
2015-02-26 13:50:08 -08:00
Amit Mahajan
4c98b2cdd6 Merge "Adding logging to debug SignalStrength callback missing issue." 2015-02-26 19:00:05 +00:00
Dianne Hackborn
93ec05ca47 Merge "Rework voice interaction session lifecycle." 2015-02-26 18:59:57 +00:00
Amit Mahajan
6ba726f825 Adding logging to debug SignalStrength callback missing issue.
This is a temporary change. Needs to be reverted.

Bug: 19323020
Change-Id: Ifdc2b14f4da6cd5a28e85c3bce35ddf0e975b6f4
2015-02-26 10:52:49 -08:00
Wale Ogunwale
7659ce4ee8 Merge "Account for IME and screen decors when laying out a resized window." 2015-02-26 18:44:49 +00:00
Wale Ogunwale
fe6b349144 Merge "Revert "Revert "Have AMS.setFocusedActivityLocked() move the focus stack to the front""" 2015-02-26 18:43:01 +00:00
Wale Ogunwale
f9c814978e Account for IME and screen decors when laying out a resized window.
* Adjust position of target IME resized window if it is been obscured
by the IME.
* Make sure resized window frame is within content frame so it doesn't
extend to the screen decoration regions.

Bug: 19424276
Bug: 19500488
Change-Id: I561338101697e10ea5072ee65a180dd0155d0da4
2015-02-26 10:41:59 -08:00
Wale Ogunwale
cb82f30186 Revert "Revert "Have AMS.setFocusedActivityLocked() move the focus stack to the front""
This reverts commit 3426b72cff7f8eeea4c802f4f0fcae4b995e177a
and fixes bugs 19505341 19507107

Bug: 19219490
Bug: 19507107
Bug: 19505341
Change-Id: I7d6fc9fa41ed03bb7834facbb4c453e2561f13c9
2015-02-26 10:29:24 -08:00
Fyodor Kupolov
8b8423e0c9 Merge "Extracted a separate class to run dexopt on packages" 2015-02-26 17:51:31 +00:00
Nicolas Prevot
abc03c7ae8 Merge "Fail silently when changing BLUETOOTH_ON/WIFI_ON directly" 2015-02-26 16:51:56 +00:00
Nicolas Prevot
41916d492c Fail silently when changing BLUETOOTH_ON/WIFI_ON directly
If the device owner tries to change BLUETOOTH_ON or WIFI_ON via
DevicePolicyManager.setGlobalSetting, fail silently.

There was not much point for the device owner to do it since it can
also change bluetooth/wifi state via normal bluetooth and wifi apis.

BUG:19311992

Change-Id: Ifba163800aa413865b8a2877cb21aacfa5cfc6c8
2015-02-26 11:57:29 +00:00
Dianne Hackborn
ffeecb1bfb Rework voice interaction session lifecycle.
We now have a formal concept of the session being shown and
hidden, with it being able to continue running while hidden
as long as there is enough RAM.

This changes the flow that a VoiceInteractionSession will
see: onCreate() is when it is first created, onCreateContentView()
is when its UI first needs to be built, onShow() is called each
time it needs to be shown and has the arguments given when the
show request was made (which has been renamed from startSession to
showSession), and then onHide() will be called when the UI is
no longer shown.

The methods show() and hide() now allow a VoiceInteractionSession
subclass to control when it is shown and hidden, working with the
shown state being maintained by the system.

Change-Id: Ic4a430ec7e8bf76a5441fd0425e2932806170fcc
2015-02-25 17:36:17 -08:00
Jeff Brown
37df39a93d Add missing headers.
Change-Id: Ida86e14986e6391e6f65581ef0987ad8d16576f9
2015-02-25 15:43:17 -08:00
Filip Gruszczynski
c045208fef Fix build.
Change-Id: I76c4a2755e2ae4bf9d59f854a2adb7fd4ef0ffab
2015-02-25 15:43:17 -08:00
Filip Gruszczynski
cfb3185a27 am 0fbcc708: am 1e74b5d6: Merge "Burn in protection." into lmp-mr1-modular-dev
* commit '0fbcc7086fe742e641915ed5f097119d01613cb5':
  Burn in protection.
2015-02-25 21:47:12 +00:00
Filip Gruszczynski
0fbcc7086f am 1e74b5d6: Merge "Burn in protection." into lmp-mr1-modular-dev
* commit '1e74b5d6b0e964b7a9e58e64b45f50aec15b1178':
  Burn in protection.
2015-02-25 21:40:38 +00:00
Filip Gruszczynski
1e74b5d6b0 Merge "Burn in protection." into lmp-mr1-modular-dev 2015-02-25 21:31:53 +00:00
Filip Gruszczynski
d2e8640c2c Burn in protection.
Bug: 19373758
Change-Id: I7242f73acadd21bdee03262b4205c8af0734fccb
2015-02-25 12:22:49 -08:00
Griff Hazen
4e01b4c3f4 am 892609ad: am aeffc9ce: Merge "Always draw the circular emulator overlay with square dimensions" into lmp-mr1-modular-dev
* commit '892609ad34145e6418e42c683428f1a880b4c874':
  Always draw the circular emulator overlay with square dimensions
2015-02-25 19:53:09 +00:00
Griff Hazen
892609ad34 am aeffc9ce: Merge "Always draw the circular emulator overlay with square dimensions" into lmp-mr1-modular-dev
* commit 'aeffc9cebd4e97889f5b2f61de38c60b83535ffa':
  Always draw the circular emulator overlay with square dimensions
2015-02-25 19:47:12 +00:00
Griff Hazen
aeffc9cebd Merge "Always draw the circular emulator overlay with square dimensions" into lmp-mr1-modular-dev 2015-02-25 19:39:56 +00:00
Filip Gruszczynski
924a18baa2 am cf8c112e: am 01dd0e86: Merge "Force translucency from windowIsTranslucent on SwipeDismissLayout." into lmp-mr1-modular-dev
* commit 'cf8c112ed87752d79a869de9426b5c5a950b5c43':
  Force translucency from windowIsTranslucent on SwipeDismissLayout.
2015-02-25 18:52:02 +00:00
Filip Gruszczynski
cf8c112ed8 am 01dd0e86: Merge "Force translucency from windowIsTranslucent on SwipeDismissLayout." into lmp-mr1-modular-dev
* commit '01dd0e86546a5bf815dd9a6e7cd4b7bf8e8f5719':
  Force translucency from windowIsTranslucent on SwipeDismissLayout.
2015-02-25 18:44:57 +00:00
Fyodor Kupolov
eeea67b8c3 Extracted a separate class to run dexopt on packages
performDexOptLibsLI and related methods were extracted to PackageDexOptimizer
class. Minor refactoring of PackageManagerService.

This is a non-functional change. It should simplify further work to allow
storing OAT files inside package dir.

Change-Id: I3494a2da70605362bb6fb4625ffbee1cbe1cd457
2015-02-25 10:00:51 -08:00
Esteban Talavera
c718455cc1 Merge "Allow setting a Device Owner via ADB on unprovisioned device with preinstalled account" 2015-02-25 17:58:16 +00:00
John Spurlock
12485098d7 Merge "AudioService: Use the foreground broadcast queue for fired intents." 2015-02-25 17:48:39 +00:00
Esteban Talavera
4b7656f183 Allow setting a Device Owner via ADB on unprovisioned device with preinstalled account
Some devices come from carriers with a preinstalled account. This
means that we couldn't set a device owner via "adb shell dpm"
commands, while the regular device owner flow worked (as the
latter just checked whether the device was provisioned).

Bug: 18354022
Change-Id: I9a677de9d34d073e218b9179ec4b0f5b4b82adc9
2015-02-25 17:48:39 +00:00
John Spurlock
864908620e AudioService: Use the foreground broadcast queue for fired intents.
Minimize delay for receivers, assume they are providing volume UI.

Change-Id: I054bac4292ad7c608cd46543409595dcea6a7731
2015-02-25 11:22:52 -05:00
Wale Ogunwale
3426b72cff Revert "Have AMS.setFocusedActivityLocked() move the focus stack to the front"
This reverts commit af0e44885992b0675d7881c391caeff88414695f.

Unblock the release while I figure-out how the change broke things...

Bug: 19505341
Bug: 19507107
2015-02-25 15:39:06 +00:00
Adrian Roos
e377c5011f Merge "Prevent regular processes from accessing the password history" 2015-02-25 13:27:05 +00:00
Christopher Tate
6a873711cd Merge "Don't crash when backup timeout races with agent completion" 2015-02-25 02:30:37 +00:00
Wale Ogunwale
fa9ec310d8 Merge "Have AMS.setFocusedActivityLocked() move the focus stack to the front" 2015-02-25 01:55:32 +00:00
Christopher Tate
12f783d6c6 Don't crash when backup timeout races with agent completion
There's a narrow window of time in which an agent reporting that its
operation has completed races with timeouts such that we wind up
handling the completion callback just after certain fundamental state
has been reset.  Detect this race and proceed gracefully instead of
crashing.

Bug 19498669

Change-Id: I5a475527db1a55a8e567366ddfb10112e427682e
2015-02-24 17:37:54 -08:00
Wale Ogunwale
af0e448859 Have AMS.setFocusedActivityLocked() move the focus stack to the front
Bug: 19219490
Change-Id: I089c42a6cf6277f5975064103c9804c2ab05dcd6
2015-02-24 17:37:29 -08:00
Christopher Tate
e266a9f8d1 Merge "Check DUMP permission in the backup service trampoline" 2015-02-25 01:11:34 +00:00
Filip Gruszczynski
23958c6e2f Force translucency from windowIsTranslucent on SwipeDismissLayout.
Bug: 18799741

Change-Id: Ifb05869f1bf080d7555d7728dc085c41cc2c277c
2015-02-24 16:59:45 -08:00