191821 Commits

Author SHA1 Message Date
Dan Sandler
7edddb4961 Tests for Notification object construction and parceling.
The tests use the new hidden Parcel APIs (if available on
the running platform) to emit statistics about ashmem usage.

Bug: 20153922
Bug: 20079551
Change-Id: I400d2a932f297e582c335389570f93c0d4a19fc9
2015-05-11 23:32:08 -04:00
Christopher Tate
d5748b8fac Deprecate Context.MODE_MULTI_PROCESS
It has never worked the way people expect.

Change-Id: I0633aacc5ed171495d9c3b51201b7ba86b666dc5
2015-05-11 19:39:26 -07:00
Chris Craik
8d34aaff3c Shrink default path cache size
Change-Id: Id9139945837d41cc1822b796cb9837591686fcbf
2015-05-11 19:18:11 -07:00
Chris Craik
42455fc918 Remove usage of Texture::cleanup in PathCache
bug:21039605

Was causing double-deletes, is unneeded.

Change-Id: I5c0a21d076fae7039d777ca09b21492f97fea98b
2015-05-11 19:10:24 -07:00
Jim Miller
eeb60bc7bb Merge "Fingerprint: Add Set Active Group" into mnc-dev 2015-05-12 01:22:16 +00:00
Chris Craik
2f957893a4 Merge "Fix ViewGroup caching defaults" into mnc-dev 2015-05-12 01:18:32 +00:00
Christopher Tate
afd883f8a3 During early boot, send LOCALE_CHANGED only to registered receivers
Bug 20855725
Bug 19060618

Change-Id: I368660ecc6ee97a0c2a2f627fa1b09288bc92bd1
2015-05-11 18:00:45 -07:00
Fabrice Di Meglio
e2f43948d1 Merge "Add user selectable Default Browser feature - part 6" into mnc-dev 2015-05-12 00:52:58 +00:00
Fabrice Di Meglio
3453e081e0 Add user selectable Default Browser feature - part 6
- if a default Browser is not defined and if a Browser App
is selected into the disambiguation dialog, then make it as
the default Browser
- clear default Browser saved data (package name) when
the default Browser App is removed

See bug #20144393

Change-Id: Ia8621d7a61ec2cb60deded9d70f75f1e1d88d123
2015-05-11 17:46:23 -07:00
Amith Yamasani
06bf824628 Idle timebase
Use screen on time as timebase for idling out apps
that have been inactive.

Store the time when an app was last active as an additional
package state in UsageStats. Compare it to screenOnTime to decide
if it's inactive.

Exclude device idle whitelist from apps that can go inactive.

Bug: 20066058

Change-Id: I709f9f31a9affa7ca6e1ae3e4c5729c5fb221669
2015-05-11 17:46:14 -07:00
Selim Cinek
7c4b054ebf Gave more context on an accesibility string
Bug: 21024091
Change-Id: I298786cc71a7368298df620d699a49ef29adec06
2015-05-12 00:45:34 +00:00
Jeff Hao
c5ced5d354 Fix prototype for startMethodTracingSampling in profiling docs.
Change-Id: I1bb48be7d154ef2d513c8f611c52a7c89414737c
(cherry picked from commit 3755c3d8bcc3d0f22eb7a775ec7a689feb7e1725)
2015-05-12 00:43:47 +00:00
Selim Cinek
35b7771fcb Fixed a bug that the user could not drag down on the heads up
Change-Id: I4a806c88d9b2bf4d176dab32ed793c1105ffd237
(cherry picked from commit dcc3138db295c513aeda322a447f9dd1295e180e)
2015-05-12 00:42:26 +00:00
Jeff Hao
6e88f0b7bb Merge "Fix prototype for startMethodTracingSampling in profiling docs." into mnc-dev 2015-05-12 00:42:15 +00:00
Selim Cinek
b05f5739bb Fixed a crash with the voice interaction service
Bug: 20925281
Change-Id: I136014ebc12c3afcb154722a8fec44b1d5f003e9
(cherry picked from commit 64904d39f8062b026c2d4c09c9a5a26532e60bb6)
2015-05-12 00:41:15 +00:00
Selim Cinek
737bff3476 Fixed a bug where the HUN would interfere with the normal touches
When a hun came in or went away, the touchable regions were not
enforced correctly due to a race condition. This lead to the user
grabing the notification panel unintentionally and ripping him
out of the normal touch state.
Also fixed a small bug where the alpha was not correctly animating
sometimes and the HUN shadow would still draw.

Bug: 20956211
Change-Id: Iae1fef5825b3d2b8b4128cc8c3272019194cd819
(cherry picked from commit 8b4a06e9e269140c93c1a9ef5add008f7610d1a4)
2015-05-12 00:39:36 +00:00
Jeff Hao
3755c3d8bc Fix prototype for startMethodTracingSampling in profiling docs.
Change-Id: I1bb48be7d154ef2d513c8f611c52a7c89414737c
2015-05-11 17:33:49 -07:00
Svet Ganov
981de3c57c Merge "Add permission meta-state flags to support grant/revoke permission policy." into mnc-dev 2015-05-12 00:15:37 +00:00
Svet Ganov
8c7f700a59 Add permission meta-state flags to support grant/revoke permission policy.
We now maintain a mata-state with each permission in the form of flags
specyfying the policy for this permission. This enables support of the
following use cases:

1. The user denies a permission with prejudice in which case an app cannot
   request the permission at runtime. If an app requests such a permssion
   it gets a denial unless the user grants the permission from settings.

2. A legacy app with disabled app-ops being upgraded to support runtime
   permissions. The disabled app ops are converted to permission revocations.
   The app ops manager is a part of the activity manger which sits on top
   of the package manager, hence the latter cannot have a dependency on the
   former. To avoid this the package installer which is the global
   permission managment authority marks the permission as revoked on
   upgrade and the package manager revokes it on upgrade.

3. A device policy fixing a permission in a granted or revoked state. This
   additional information is folded in the meta-state flags and neither
   apps can request such permissions if revoked not the user can change
   the permission state in the UI.

Change-Id: I443e8a7bb94bfcb4ff6003d158e1408c26149811
2015-05-11 17:13:57 -07:00
Jeff Hao
5496514639 am 70159dfe: am 55c4816f: am cf6a3b91: Update ddms and profiling docs to include sample profiling.
* commit '70159dfeb6bde35cb001e25240c7e676bf87932f':
  Update ddms and profiling docs to include sample profiling.
2015-05-12 00:06:55 +00:00
Jeff Hao
70159dfeb6 am 55c4816f: am cf6a3b91: Update ddms and profiling docs to include sample profiling.
* commit '55c4816fb2aa8ea54231de6dbcb4fa22642bb75e':
  Update ddms and profiling docs to include sample profiling.
2015-05-11 23:57:32 +00:00
Rich Slogar
2d488eb8c7 docs: studio 1.2.1.1 updates
Change-Id: I0e0f25873b06a135e6fd68f1a2aad463d204c4e5
2015-05-11 16:54:55 -07:00
Jeff Hao
55c4816fb2 am cf6a3b91: Update ddms and profiling docs to include sample profiling.
* commit 'cf6a3b915c2984ae573b27a46dd732811d642427':
  Update ddms and profiling docs to include sample profiling.
2015-05-11 23:44:15 +00:00
Jean-Michel Trivi
cbcbb828e8 Merge "Prevent NPE in MediaSessionService" into mnc-dev 2015-05-11 22:57:03 +00:00
Chris Craik
f6ce8fd4f3 Fix ViewGroup caching defaults
bug:20718535

Revert to established defaults of these two properties.

Change-Id: I798cfa2e53b26eafd30b191ad6e3b721fe6bd249
2015-05-11 15:33:12 -07:00
Jeff Hao
a4492b418d Merge "Update ddms and profiling docs to include sample profiling." into mnc-dev 2015-05-11 22:30:58 +00:00
Jeff Hao
cf6a3b915c Update ddms and profiling docs to include sample profiling.
Bug: 5866094

Change-Id: Ib97990ee2fc823416b3f41856b815d4092818f98
2015-05-11 22:30:20 +00:00
John Spurlock
ceacb51e04 Merge "Zen: Distinct icon for DND = total silence." into mnc-dev 2015-05-11 22:30:14 +00:00
Dianne Hackborn
9c8600e1af Merge "Implement device idle in power manager." into mnc-dev 2015-05-11 22:22:36 +00:00
Dianne Hackborn
8d66b3fbf5 Implement device idle in power manager.
When in device idle mode, we now prevent most apps
from being able to hold partial wake locks.  The
device idle controller now pushes its white list of
app uids into the power manager, so it can apply this
policy correctly to only apps that are not whitelisted.

The implementation adds a new "disabled" flag to a wake
lock which is set when we want to apply this policy.  When
set, we ensure that we tell battery stats that the wake lock
is not being held and ignore that wake lock when computing
the power state summary.

Also add new SDK APIs to schedule alarms that are allowed
to execute while in idle mode.

Finally add new dumpsys commands to the device idle controller
to completely disable and re-enable its operation, to use
for testing.

Change-Id: I1f16672c6ac06d03bb538f9854d5843db9aa6f27
2015-05-11 15:16:47 -07:00
Quddus Chong
b98e07129c am ce4408a1: am a7577843: am d43ec638: am 174dc3ba: Merge "docs: Added training docs for Android unit testing tools and APIs. This training covers techniques for running unit tests on local machines, using mock objects in local unit tests, and building instrumented un
* commit 'ce4408a104300006a3296bfd2f2aad9c0f2fd9dc':
  docs: Added training docs for Android unit testing tools and APIs. This training covers techniques for running unit tests on local machines, using mock objects in local unit tests, and building instrumented unit tests to run on a device or emulator.
2015-05-11 22:16:36 +00:00
Quddus Chong
ce4408a104 am a7577843: am d43ec638: am 174dc3ba: Merge "docs: Added training docs for Android unit testing tools and APIs. This training covers techniques for running unit tests on local machines, using mock objects in local unit tests, and building instrumented unit tests to r
* commit 'a75778438fde2e7ec5322a69930ff49ded48f4c1':
  docs: Added training docs for Android unit testing tools and APIs. This training covers techniques for running unit tests on local machines, using mock objects in local unit tests, and building instrumented unit tests to run on a device or emulator.
2015-05-11 22:02:42 +00:00
P.Y. Laligand
b3b9eb3cfc DO NOT MERGE - Display mode switches.
Knowledge of the various modes of a display is now available to apps, and they can request a specific mode for their windows.

b/18241736

Change-Id: I8eb16ff713e878512faca3ca6662254f08a9be7f
(cherry picked from commit 5c7773d86484aac5737667c604bd8fe8150c2136)
2015-05-11 15:02:07 -07:00
Quddus Chong
a75778438f am d43ec638: am 174dc3ba: Merge "docs: Added training docs for Android unit testing tools and APIs. This training covers techniques for running unit tests on local machines, using mock objects in local unit tests, and building instrumented unit tests to run on a devic
* commit 'd43ec6380ce04f4c0830cd35d1dbd7b3050799d4':
  docs: Added training docs for Android unit testing tools and APIs. This training covers techniques for running unit tests on local machines, using mock objects in local unit tests, and building instrumented unit tests to run on a device or emulator.
2015-05-11 21:51:50 +00:00
John Spurlock
4ec8b60295 Zen: Distinct icon for DND = total silence.
Bug: 21032320
Change-Id: I0c7b8564c38b420081ee60ee244058b8039febf7
2015-05-11 17:49:36 -04:00
Quddus Chong
d43ec6380c am 174dc3ba: Merge "docs: Added training docs for Android unit testing tools and APIs. This training covers techniques for running unit tests on local machines, using mock objects in local unit tests, and building instrumented unit tests to run on a device or emulator
* commit '174dc3ba607965cf1dd0578f83ce373fa74d0f65':
  docs: Added training docs for Android unit testing tools and APIs. This training covers techniques for running unit tests on local machines, using mock objects in local unit tests, and building instrumented unit tests to run on a device or emulator.
2015-05-11 21:38:46 +00:00
Jean-Michel Trivi
e492d43512 Prevent NPE in MediaSessionService
Guard against null UserRecord when dispatching a media key event.

Change-Id: I0c4a60b9c35f51a2c93baeecb80106633740de8b
2015-05-11 14:36:27 -07:00
Doris Liu
a2f043822b Merge "Use ArrayMap instead of HashMap for storing relavant nodes" into mnc-dev 2015-05-11 21:31:42 +00:00
John Reck
5742b9770a Increase HISTORY_SIZE for GraphicsStatsService
The history size of 10 is a bit cramped, bump it

Change-Id: I4d0d72cf9bc167b395223d0c3e2a66fd4208e67c
2015-05-11 14:29:55 -07:00
Jean-Michel Trivi
4c08bc0f61 Merge "AudioRecord.Builder works with no or partial parameters" into mnc-dev 2015-05-11 21:28:34 +00:00
Quddus Chong
174dc3ba60 Merge "docs: Added training docs for Android unit testing tools and APIs. This training covers techniques for running unit tests on local machines, using mock objects in local unit tests, and building instrumented unit tests to run on a device or emulator." into lmp-docs 2015-05-11 21:23:43 +00:00
Yang Ni
552518e3c1 Merge "Moved limit constants for kernel and script group" into mnc-dev 2015-05-11 21:14:32 +00:00
Miao Wang
cb556e0d25 Merge "[RenderScript] hide Allocation.copyToFieldPacker()" into mnc-dev 2015-05-11 21:13:47 +00:00
Quddus Chong
4bc762a919 docs: Added training docs for Android unit testing tools and APIs.
This training covers techniques for running unit tests on local
machines, using mock objects in local unit tests, and building
instrumented unit tests to run on a device or emulator.

Change-Id: I9fee9ac3bd7382fb158145600b1850775edb687d
2015-05-11 14:09:25 -07:00
Fyodor Kupolov
51506326d1 Merge "Fix errors during user switching" into mnc-dev 2015-05-11 21:03:27 +00:00
John Spurlock
fb9a664b2b Merge "Zen: Reset zen + ringer modes on upgrades to M." into mnc-dev 2015-05-11 20:42:52 +00:00
Sasha Levitskiy
80db9baf97 Fingerprint: Add Set Active Group
Change-Id: Ie9d63c5f948c9610bd6b19a76bffab5ae0070620
Signed-off-by: Sasha Levitskiy <sanek@google.com>
2015-05-11 13:42:19 -07:00
Alex Klyubin
e3049dc953 Link to magic constants used by AndroidKeyStore API.
This updates the Javadocs of AndroidKeyStore methods which take
constants defined in KeyStoreKeyProperties to contain a link to
the corresponding set of constants and an example of a couple of
accepted constants, to make it easier to understand and find out
what constants to use.

Bug: 18088752
Change-Id: I338134ef136db62a7caca782cb59dbebdc996670
2015-05-11 13:39:41 -07:00
Fyodor Kupolov
bcb6c1eb9e Fix errors during user switching
Fix NPE in getHomeActivityForUser. Skip system processes in
killBackgroundUserProcessesWithRecordAudioPermission.

Bug: 21016983
Change-Id: I97f9ca362f4dbf0a659e3d5d7ae6cd8dbeb6404a
2015-05-11 13:39:22 -07:00
Doris Liu
d7444427d9 Use ArrayMap instead of HashMap for storing relavant nodes
This fix is to take advantage of ArrayMap, which is a key-value
mapping data structure that is more memory efficient than HashMap.

Bug: 11604254
Change-Id: I57006880de570a4d7f3899e274cf0a06355d116b
2015-05-11 13:23:31 -07:00