Commit Graph

253881 Commits

Author SHA1 Message Date
Todd Kennedy
1f397f4e7b Define deprecated fields in IntDef's
Tools need all of the valid constants to handle legacy apps; even
though we want developers to use the new constant names.

Bug: 29824931
Change-Id: I5f8055d50d1d3f32cfbed7459d8a497cfbd3661e
2016-06-28 12:14:11 -07:00
TreeHugger Robot
a98e3e3ede Merge "Default minSdkVersion to '1'" into nyc-dev 2016-06-28 19:12:49 +00:00
Jeff Sharkey
508b4e6de8 Skip screenshots when user storage is locked.
Screenshots are written to shared storage, which isn't available
until after the user unlocks their device for the first time.  So
instead of showing a misleading animation and then the "failed to
persist" notification, skip the screenshot completely when storage
is locked.

Bug: 27208608
Change-Id: I654c6688f68b2395f6e6065aa716551948f302b3
2016-06-28 13:07:48 -06:00
TreeHugger Robot
41f0e20739 Merge "media: document format keys for MediaExtractor/CodecCapabilities" into nyc-mr1-dev 2016-06-28 18:54:24 +00:00
Jeff Sharkey
c4bcacb98e Show notification while PRE_BOOT receivers run.
Awhile back, we switched to running PRE_BOOT receivers after the user
is unlocked.  Since these receivers include providers like Contacts
and MediaStore that can take a long time to upgrade, it may result in
apps like Dialer or Photos appearing to hang, so we need to help the
user understand that the system is still upgrading in the background.

Bug: 28164677
Change-Id: I18448534b6067f8508b1ffb2d43c106c02c265a0
2016-06-28 12:51:58 -06:00
Felipe Leme
dd85da6e94 Remove redundant setPendingIntentWhitelistDuration() calls.
Since all pending intents are stored on a Set in the Notication object,
there is no need to individually check for specific pending intents.

BUG: 29480440
Change-Id: I27a18bb535a9a4bb6cb4e76bdc189e6c315a684a
2016-06-28 11:34:54 -07:00
Mark Lu
8b739903a9 docs: fixed broken link in UsbManager javadocs
Bug: 29236606
Change-Id: I07fc82d741c106b6a679b7881757d4293359d384
2016-06-28 11:27:23 -07:00
TreeHugger Robot
694acb1e36 Merge "Clip GradientDrawable's saveLayer" into nyc-mr1-dev 2016-06-28 18:24:25 +00:00
Philip P. Moltmann
fd28d8ebd1 Merge "Always reload print services" into nyc-mr1-dev 2016-06-28 18:15:38 +00:00
Julia Reynolds
81a560a90d Always apply config updates.
In case the config and global settings are mismatched.

Bug: 29617474
Change-Id: I3a3ae338dce45c7c7e579d56f6d05b581e0dd8f7
2016-06-28 14:08:17 -04:00
Felipe Leme
a7778b0654 Fixed whitelistManager set on unbindServiceLocked()
It must call updateWhitelistManagerLocked() because the app might have
other services with the whitelistManager set, in which case the process
record should not have whitelistManager reset.

Fixes: 29480440

Change-Id: I268278c646aaa89a352f02178b294c02c3c11d35
2016-06-28 10:41:45 -07:00
Lajos Molnar
4461356ea8 media: document rotation and scaling issues for MediaCodec
Bug: 23709311
Bug: 28512795
Change-Id: Iddebd13b4cd4c50bca8736d3aca71571ad16633a
2016-06-28 10:38:34 -07:00
Chris Craik
754ea612ec Merge "Fix savelayer rounding" into nyc-mr1-dev 2016-06-28 17:33:27 +00:00
Todd Kennedy
4f6570878c Default minSdkVersion to '1'
Exception when targetSdkVersion is a letter API [eg 'N']. While this
is technically not according to the external docs, it's the behaviour
with prior platforms.

Bug: 29817839
Change-Id: I8382909dbe62de7b2ddfb7995ce11d5c2f43372e
2016-06-28 10:31:05 -07:00
Allen Hair
fb20170c0f Merge \"Add a flag to enable instrumentation of the framework classes.\" into nyc-dev
am: 15783f0073

Change-Id: I9439934c0fff5c0e23fe0000252c8781f0540a81
2016-06-28 17:30:21 +00:00
Allen Hair
15783f0073 Merge "Add a flag to enable instrumentation of the framework classes." into nyc-dev 2016-06-28 17:23:55 +00:00
Lajos Molnar
db56549ff2 media: document format keys for MediaExtractor/CodecCapabilities
Bug: 29618892
Change-Id: I78049997c153fe00fbcf4475eeefdc937de284dd
2016-06-28 17:20:09 +00:00
Chris Craik
e4f6d968f5 Fix savelayer rounding
bug:29456451

Change-Id: I8022163d2c004510da5db74efdca27582484224d
2016-06-28 09:53:04 -07:00
Chris Craik
1e5d428b3f Clip GradientDrawable's saveLayer
bug:29456451

Avoid using very expensive unclipped saveLayer codepath.

Change-Id: Ib96a46169faa89eda6889b16813a7941ab402779
2016-06-28 09:45:35 -07:00
Daniel Yu
82bd5246e7 Merge \"resolve merge conflicts of ac5b340 to nyc-dev\" into nyc-dev
am: 6ec78a6458

Change-Id: Ie77c87f366c21acb05afcf5d03ddc6d75e9b950a
2016-06-28 16:28:24 +00:00
Dan Yu
6ec78a6458 Merge "resolve merge conflicts of ac5b340 to nyc-dev" into nyc-dev 2016-06-28 16:21:57 +00:00
Philip P. Moltmann
c7c647bbf0 Merge "Syncronize renderPage vs. onServiceDisconnected" into nyc-mr1-dev 2016-06-28 16:14:32 +00:00
TreeHugger Robot
5b2fd818a0 Merge "media: document VP9 CSD for MediaCodec" into nyc-mr1-dev 2016-06-28 15:56:42 +00:00
Shreyas Basarge
5098fe97d6 Merge \"SyncOperation float cast fix\" into nyc-dev
am: 5f72b129c4

Change-Id: I50ab6249e81ff7523a82f26bd39b52bb362f4ae4
2016-06-28 15:43:00 +00:00
Shreyas Basarge
5f72b129c4 Merge "SyncOperation float cast fix" into nyc-dev 2016-06-28 15:38:07 +00:00
Lajos Molnar
671da98e2d media: document VP9 CSD for MediaCodec
Also document that concatenated CSD is only supported for AVC.

Bug: 10672559
Change-Id: I54867655068802ef35f92a6341f8b5bb068555ee
2016-06-28 14:20:31 +00:00
Jaewan Kim
efd92a34e2 MediaResourceMonitor: Send broadcast to current users
Multiple users can be running foreground if work profile is enabled,
so we need to send broadcast to all of them.

Bug: 29788027
Change-Id: I80b21c97cec857bebc5fd05f0c04ca134542b4d3
2016-06-28 17:07:21 +09:00
fionaxu
0fffbcb158 DO NOT MERGE revert public api loadSafeLabel
Bug: 28557603
Change-Id: I61f4939864228fb50112502044da599b9cec2430
2016-06-28 00:43:35 -07:00
Dan Sandler
0e792f567a Purr.
am: 610f6ede25

Change-Id: I252d53781fbe151b21909617ecb92ab9f2e9187a
2016-06-28 07:07:24 +00:00
Dan Sandler
d930306e13 One final tweak to the platlogo.
am: 4b7e415803

Change-Id: Ibbe66c569c0be5fc1801d8af9b5810ac997854d8
2016-06-28 07:07:22 +00:00
Dan Sandler
33a199e241 Fix SuperNotCalledException.
am: 04f8cc2bb3

Change-Id: I52977c00a41ec0db599b67cdc2617f1c602667a6
2016-06-28 07:07:20 +00:00
fionaxu
f44c73abb2 DO NOT MERGE revert public api loadSafeLabel
Bug: 28557603
Change-Id: Ic9d9ae0b59fe86f70aaea311380cacf222ee3a0c
2016-06-27 23:52:19 -07:00
Dan Sandler
610f6ede25 Purr.
Bug: 27376882
Change-Id: I071d00c9a7847b8ff9b263ffd17581079b78a432
2016-06-28 01:25:08 -04:00
Dan Sandler
4b7e415803 One final tweak to the platlogo.
Bug: 27376882
Change-Id: Ie60600018204f48593975b947d6fc10f4dd8a69f
2016-06-27 22:59:24 -04:00
Dan Sandler
04f8cc2bb3 Fix SuperNotCalledException.
Q. Dan, how did you make such a basic newbie mistake?
A. new phone who dis

Bug: 29779845
Change-Id: Iecba53effcf6252df228afd2cc80df43b2afaa59
2016-06-27 22:59:24 -04:00
Hugo Benichi
a4abd91a73 Add tests for MetricsLoggerService
Bug: 29035129
Change-Id: I9b4e55c20f4ed3a2a642419369a5d95efbbcb54d
2016-06-28 11:43:03 +09:00
Hugo Benichi
3bba249c47 Tests for IpConnectivityMetricsLog
Bug: 28204408
Bug: 29035129
Change-Id: I429562a00904188947b11da9928ec5c01296ff97
2016-06-28 11:43:03 +09:00
Hall Liu
2cd8281a23 Merge "Add disable add call during video call extra and carrier config key" into nyc-mr1-dev 2016-06-28 02:29:05 +00:00
TreeHugger Robot
8701bff9ba Merge "Fix SurfaceViewPositionListener race bugs" into nyc-mr1-dev 2016-06-28 01:26:43 +00:00
Mark Lu
92f003ff64 docs: Fixed logic for determining image sample size
The code sample in the "Load a Scaled Down Version into Memory"
section on the "Loading Large Bitmaps Efficiently" page now handles
corner cases correctly when determining how to downscale an image by
a factor that is equal to a power of 2.

Bug: 25944661
Change-Id: I971f90fb5d153abec4bc1d96ae465e3910e82efa
2016-06-27 18:14:44 -07:00
Amith Yamasani
30a2b43f6d Merge "Add tron logging for retail demo session counters" into nyc-mr1-dev 2016-06-28 01:03:17 +00:00
Svet Ganov
7878e736f7 Merge \"Mark app pending intents in notification extras\" into nyc-dev
am: b2cd9c95bf

Change-Id: Idb515255f224c23d60a513713d9e4f93decd7a9c
2016-06-28 00:46:55 +00:00
Svetoslav Ganov
b2cd9c95bf Merge "Mark app pending intents in notification extras" into nyc-dev 2016-06-28 00:42:24 +00:00
Svet Ganov
ddb948896c Mark app pending intents in notification extras
We need to make every peniding intent that went in the notification
system to allow special handling of such intents when fired by a
notification listener. If a pending intent from a notification
is sent from a notification listener, we white-list the source app
to run in data saver mode for a short period of time. The problem is
that actions and the notificaion can have extras which bundles may
contain pending intents but the system cannot look into the bundles
as they may contain custom parcelable objects. To address this we
keep a list of all pending intents in the notification allowing
the system to access them without touching the bundle. Currently
the pending intents are written to the parcel twice, once in the
bundle and once as the explicit list. We can come up with a scheme
to optimize this but since pending itents are just a binder pointer
it is not worth the excecise.

bug:29480440

Change-Id: I7328a47017ca226117adf7054900836619f5679b
2016-06-27 17:32:25 -07:00
Allen Hair
0e4f014c20 Add a flag to enable instrumentation of the framework classes.
Bug: 29777843
Change-Id: I0f3639ad1303a9b2cc612f99cde427dedff4874f
2016-06-27 17:20:24 -07:00
Hall Liu
10208661cd Add disable add call during video call extra and carrier config key
Bug: 29047863

Change-Id: I977041ec72968bdccc69a706e27dd4b5ec336ba7
2016-06-27 17:19:59 -07:00
Dianne Hackborn
91df8559c0 Merge \"Fix bug where process whitelist manager state would not be correct.\" into nyc-dev
am: a39d380651

Change-Id: Ideb81a07d14e1fff71593cec822f3120c4f523f6
2016-06-27 23:56:58 +00:00
Dianne Hackborn
a39d380651 Merge "Fix bug where process whitelist manager state would not be correct." into nyc-dev 2016-06-27 23:52:01 +00:00
TreeHugger Robot
d06f87399b Merge "Frameworks/base: Add new flow to OtaDexoptService" into nyc-mr1-dev 2016-06-27 23:50:37 +00:00
Pavlin Radoslavov
d09f7d0edc Merge \"Add extra waiting when switching users\" into nyc-dev
am: 4d6be6b308

Change-Id: Ibf3fc8f0176e2d02fe3548146928c9b66986e428
2016-06-27 23:46:27 +00:00