Commit Graph

253881 Commits

Author SHA1 Message Date
Eino-Ville Talvala
c4faf0cb13 Docs: Note that a Surface acts like a weak reference
This causes frequent programming errors, when developers assume
that holding onto a Surface will keep its associated SurfaceTexture,
ImageReader, etc, also alive.

Bug: 31551063
Test: m offline-sdk-docs, manual viewing of result
Change-Id: I5fb5bb3e3c80c7d5d735417b1697e0fe9a62fc46
2016-09-16 22:58:11 +00:00
Jeff Sharkey
df42d732f8 Merge commit '0a9d537f623b2c11dce707fb9b91fea016fd0e9f' into manual_merge_0a9d537
Change-Id: Ib1a0bbb34edb61666ac5739f0b0eaadbe4c5fe06
2016-09-16 16:57:55 -06:00
TreeHugger Robot
5195e8288d Merge "docs: Clarification for location permissions and location hardware" into nyc-dev 2016-09-16 22:52:41 +00:00
Kylie Jue
3bb89a63e1 Merge "docs: Added v7 Palette library documentation and images to DAC training. https://android-dot-devsite.googleplex.com/training/material/palette-colors.html" into nyc-dev am: eae7f0b513
am: 6e9712663c

Change-Id: I96b5cff9de80098c17cd337e983f5c203697bca8
2016-09-16 22:44:46 +00:00
Hemal Patel
247d1c9ea8 Fixed a typo in the code sample
Bug: 6062536
Change-Id: I1f6a91534cf18b9fba4e00f3a4b84983f2c223a3
2016-09-16 15:28:42 -07:00
Kylie Jue
a31c43134c docs: Added v7 Palette library documentation and images to DAC training. https://android-dot-devsite.googleplex.com/training/material/palette-colors.html am: 70db4fab5c
am: 2c550571c6

Change-Id: Ib3aeef493ccdaa956ee2dfc277d94ca95f65bc11
2016-09-16 22:24:00 +00:00
Tadashi G. Takaoka
97a5d02205 Catch all exceptions when parsing IME meta data am: dddc438e97
am: 4413895132

Change-Id: I7b8826109b5bf7a84087b28242eb2397796cc23a
2016-09-16 22:18:25 +00:00
Kylie Jue
6e9712663c Merge "docs: Added v7 Palette library documentation and images to DAC training. https://android-dot-devsite.googleplex.com/training/material/palette-colors.html" into nyc-dev
am: eae7f0b513

Change-Id: I316f068ab36de551622ef6c06f237ba75f783754
2016-09-16 22:13:19 +00:00
Kylie Jue
2c550571c6 docs: Added v7 Palette library documentation and images to DAC training. https://android-dot-devsite.googleplex.com/training/material/palette-colors.html
am: 70db4fab5c

Change-Id: I314b0958c386f5954751cd4af82ce6a8c9258b8f
2016-09-16 22:13:16 +00:00
Tyler Gunn
9c2c583ad7 Fix potential NPE in RemoteConnection.
When creating an instance of RemoteConnection, the code does not properly
handle the case where the video provider is null.  This could cause a
RemoteConnection.VideoProvider to be created for a non-existent binder.

Bug: 31372624
Change-Id: I990084e2d2d68cdf2dda426cb58ad68785b35422
2016-09-16 15:08:50 -07:00
Jeff Sharkey
0a9d537f62 Use "all_downloads" instead of "my_downloads". am: 1547194418 am: f6d7c1ed15
am: 6db572cf00

Change-Id: I687a883d528cc260aad3ee3da5600d3e0542c940
2016-09-16 22:07:27 +00:00
Tadashi G. Takaoka
4413895132 Catch all exceptions when parsing IME meta data
am: dddc438e97

Change-Id: I9f804f593e7435d5efff120c861353a9841bd479
2016-09-16 22:05:04 +00:00
Chris Craik
244fc18987 Merge "Slow RecyclerView item binding benchmark" into nyc-mr1-dev 2016-09-16 22:01:40 +00:00
Jeff Sharkey
6db572cf00 Use "all_downloads" instead of "my_downloads". am: 1547194418
am: f6d7c1ed15

Change-Id: Icb352ec7b0e746264a6311b5fba1fc1272b627b0
2016-09-16 21:53:37 +00:00
Kylie Jue
eae7f0b513 Merge "docs: Added v7 Palette library documentation and images to DAC training. https://android-dot-devsite.googleplex.com/training/material/palette-colors.html" into nyc-dev 2016-09-16 21:51:18 +00:00
Jeff Sharkey
f6d7c1ed15 Use "all_downloads" instead of "my_downloads".
am: 1547194418

Change-Id: I6dabba1f82ef1989eb2a52c3c493127a174ff315
2016-09-16 21:48:24 +00:00
Joe Fernandez
1294dde183 docs: Clarification for location permissions and location hardware
b/28052540

Change-Id: I54fa08a3339c1d373164a003a02adeed156fa331
2016-09-16 14:35:05 -07:00
Amit Mahajan
923963ff31 Added new config to indicate read-only apn types.
Bug: 31074581
Change-Id: Ib0b19ef038d8c99380364eb81c4f7dd24bcc27fa
2016-09-16 12:35:36 -07:00
Tianjie Xu
492450c88a Collect status on uncrypt time cost
Read and report time cost of uncrypt (in seconds) from last_install.

Bug: 31383361

Change-Id: I283970c33b2a0324f2f51cde328e3e527eff7c58
(cherry picked from commit 3477efce30)
2016-09-16 12:13:49 -07:00
Makoto Onuki
845096ffa3 Merge "Don't update publisher version code without scanning manifest" into nyc-mr1-dev 2016-09-16 18:50:27 +00:00
Vadim Tryshev
1edc6daf1d Eliminating the “black hole” effect with location/drop events.
Currently, a container view that doesn’t accept events, but has a
child that accepts events, prevents its parent from receiving
LOCATION/DROP events while the drag is over the container (but not
the child). This is a bug.

With this fix, such a container will prevent the parent from
invoking a (second) LOCATION/DROP event only if the event was really
delivered to any of its descendants.

To know whether the event was delivered, I added
DragEvent.mEventHandlerWasCalled member.

EXITED/ENTERED events are now generated upon delivery of the event
that has coordinates in it.

Current view that has drag focus is now global to reflect the fact
that it’s one per process.

Bug: 31469490
Change-Id: I248e8d1de87b7734853136eb4719f7571cea91d5
2016-09-16 11:20:16 -07:00
Julia Reynolds
53c934cb75 Null check action cloning.
Bug: 31275706
Change-Id: I7f8c14a5863d2f787b9090ef740e80ce0c4b9335
2016-09-16 18:07:36 +00:00
Jeff Sharkey
1547194418 Use "all_downloads" instead of "my_downloads".
We can no longer return the "my_downloads" paths: if those Uris were
shared beyond the app that requested the download, access would be
denied.  Instead, we need to switch to using "all_downloads" Uris so
that permission grants can be issued to third-party viewer apps.

Since an app requesting a download doesn't normally have permission
to "all_downloads" paths, DownloadProvider now issues narrow grants
toward the owner of each download, both at device boot and when new
downloads are started.

Bug: 30537115, 30945409
Change-Id: I533125b36444877f54373d88922f2acc777e250b
2016-09-16 12:04:05 -06:00
Yohei Yukawa
9603bc398a Merge "Remove synchronization from getCurrentInputMethodSubtype()" into nyc-mr1-dev 2016-09-16 17:34:49 +00:00
Lorenzo Colitti
2633c31689 Update the avoid bad wifi settings on the handler thread.
am: 2618c1b7f0

Change-Id: I595949881353f5779ed2bb55ff05f27b513cd6de
2016-09-16 17:32:09 +00:00
Kylie Jue
70db4fab5c docs: Added v7 Palette library documentation and images to DAC training.
https://android-dot-devsite.googleplex.com/training/material/palette-colors.html

Bug: 30034142

Change-Id: I1e82b82a84def6ef72e0401418085694d5bbeee2
2016-09-16 10:22:40 -07:00
Makoto Onuki
d6f06df5ec Merge "Fix system crash due to mismatching begin/finishBroadcast()" into nyc-mr1-dev 2016-09-16 17:13:18 +00:00
Lorenzo Colitti
2618c1b7f0 Update the avoid bad wifi settings on the handler thread.
Currently, every call to avoidBadWifi fetches the current value
of the config variable and setting whenever it is called. This
means that the score of an unvalidated wifi network can
unpredictably change at any time, creating a data race.

Instead, persist the value and only update it when something
changes.

Bug: 31075769
Change-Id: I0f4e0e742c91ef77fabc95d3ebb494338396aca5
2016-09-17 00:57:38 +09:00
Hugo Benichi
bce7e65b36 Disable network switching toasts on Verizon.
am: 8041e897de

Change-Id: I561309ef9878d712ece49337ee835954869f8864
2016-09-16 13:03:21 +00:00
Hugo Benichi
8041e897de Disable network switching toasts on Verizon.
Bug: 31025214
Bug: 31075769
Change-Id: I08fb351b713734f29b9c2caf69dfba2e1d73ca05
2016-09-16 15:45:00 +09:00
Gopal Krishna Shukla
d33c07550f Remove synchronization from getCurrentInputMethodSubtype()
getCurrentInputMethodSubtype() acquires InputManagerService.mMethodMap
within its body. There seems to be no reason for holding
InputMethodManager.mH to call getCurrentInputMethodSubtype(). Holding mH
can cause potential deadlock b/w two threads acquiring mH and mMethodMap
in different orders.

Bug: 31247871
Bug: 31273203
Bug: b.android.com/218423
Change-Id: I20cf2c20f49b1b02c0f7a18257b49d4bcc081b5d
2016-09-15 23:20:05 -07:00
Tadashi G. Takaoka
7bb4c82558 DO NOT MERGE: Catch all exceptions when parsing IME meta data
Bug: 30568284
Change-Id: I0b613f8ce0f014320c5ac1bf445699ea2702a0a2
(manually cherry picked from 9b2997d22e6ce2a15065d8e7608dd77b316c2065)
2016-09-16 06:03:42 +00:00
Tadashi G. Takaoka
43f4980e77 DO NOT MERGE: Catch all exceptions when parsing IME meta data
Bug: 30568284
Change-Id: I0b613f8ce0f014320c5ac1bf445699ea2702a0a2
(manually cherry picked from 9b2997d22e6ce2a15065d8e7608dd77b316c2065)
2016-09-16 06:02:18 +00:00
Tadashi G. Takaoka
c6fc6c3b55 DO NOT MERGE: Catch all exceptions when parsing IME meta data
Bug: 30568284
Change-Id: I0b613f8ce0f014320c5ac1bf445699ea2702a0a2
(manually cherry picked from 9b2997d22e6ce2a15065d8e7608dd77b316c2065)
2016-09-16 13:57:05 +09:00
Tadashi G. Takaoka
f71d2cddf1 DO NOT MERGE: Catch all exceptions when parsing IME meta data
Bug: 30568284
Change-Id: I0b613f8ce0f014320c5ac1bf445699ea2702a0a2
(manually cherry picked from 9b2997d22e6ce2a15065d8e7608dd77b316c2065)
2016-09-16 13:51:43 +09:00
Tadashi G. Takaoka
dddc438e97 Catch all exceptions when parsing IME meta data
Bug: 30568284
Change-Id: I0b613f8ce0f014320c5ac1bf445699ea2702a0a2
2016-09-16 04:40:34 +00:00
Sudheer Shanka
dce4be63bb DO NOT MERGE: Fix deadlock in AcitivityManagerService.
Don't hold mPidsSelfLocked lock when calling
cleanUpApplicationRecordLocked.

Bug: 31463143
Change-Id: I1fddd06f5e35b67fea041741f5746c57a39208ba
2016-09-15 19:00:43 -07:00
Sudheer Shanka
b59e73613b DO NOT MERGE: Fix deadlock in AcitivityManagerService.
Don't hold mPidsSelfLocked lock when calling
cleanUpApplicationRecordLocked.

Bug: 31463143
Change-Id: I421962cbfd7c466662edcef805c3e27321dc5a98
2016-09-15 18:01:44 -07:00
Sudheer Shanka
e8340a9ed5 DO NOT MERGE: Fix deadlock in AcitivityManagerService.
Don't hold mPidsSelfLocked lock when calling
cleanUpApplicationRecordLocked.

Bug: 31463143
Change-Id: I421962cbfd7c466662edcef805c3e27321dc5a98
2016-09-15 18:00:51 -07:00
Sudheer Shanka
2d608378f4 DO NOT MERGE: Fix deadlock in AcitivityManagerService.
Don't hold mPidsSelfLocked lock when calling
cleanUpApplicationRecordLocked.

Bug: 31463143
Change-Id: I421962cbfd7c466662edcef805c3e27321dc5a98
2016-09-15 17:59:52 -07:00
Wei Jia
b5cc0b55e3 Merge "MediaPlayer: add comments of restriction for setNextMediaPlayer." into nyc-mr1-dev 2016-09-16 00:24:16 +00:00
Winson
a4fab41e8b Workaround for not showing previous tasks when time is set.
Bug: 28908500
Change-Id: I32201d4ce1af0bca1c73c2e0c7862771dac7a8d7
2016-09-15 17:18:40 -07:00
Ricardo Garcia
d5a6febfc4 Merge "Fix scope for visualizer object release" into nyc-mr1-dev 2016-09-15 23:22:23 +00:00
TreeHugger Robot
eeb90153c1 Merge "Do not show roaming icon for Personal operator of Argentina" into nyc-mr1-dev 2016-09-15 22:48:44 +00:00
TreeHugger Robot
8045bbcaf9 Merge "Handle charging state separately from temporary parole" into nyc-mr1-dev 2016-09-15 22:01:43 +00:00
Wei Jia
295e727545 MediaPlayer: add comments of restriction for setNextMediaPlayer.
Bug: 31517393
Change-Id: I50d1c6cb45d2544b0dcc8f0a3e7cc5818fcd024e
2016-09-15 14:54:35 -07:00
Patrick Baumann
4a0b061ff6 Merge "Adding advanced pattern support to PatternMatcher" into nyc-mr1-dev 2016-09-15 21:20:35 +00:00
Sungmin Choi
905943f3d4 Do not show roaming icon for Personal operator of Argentina
Bug: 30344976
Change-Id: I99d6f42c56c48f9700c6b26d0090fa5ed6737b0c
2016-09-15 14:06:57 -07:00
Todd Kennedy
d15bb75af6 Add remote control of Instant Apps
Bug: 31470039
Test: manual
Change-Id: I82eb47f4d24fb88d0f264eca1176aec55364867c
2016-09-15 13:55:56 -07:00
Amith Yamasani
693d869b32 Handle charging state separately from temporary parole
Don't use the parole state to deal with the plugged-in trigger.
Otherwise standby apps will only be paroled for a few minutes
after plugging in to charge and not the entire duration.

Use a different intent for charging state, since the CHARGING
intent takes several seconds to be received.

A refactor some time ago changed the charging state behavior
that caused this regression.

Bug: 31399882
Change-Id: Ic036de5e136b3151b225473d0c3f440adb3b48e7
2016-09-15 13:38:43 -07:00