Commit Graph

309172 Commits

Author SHA1 Message Date
Bill Yi
493f9c4893 Import translations. DO NOT MERGE
Change-Id: I51010554d0b8e46a3b4541bdce9323cfb01e107d
Auto-generated-cl: translation import
2017-01-30 19:21:33 -08:00
TreeHugger Robot
c869ebff63 Merge "Add instant cookie APIs" 2017-01-31 03:17:49 +00:00
Bill Yi
1727bacc3f Import translations. DO NOT MERGE
Change-Id: If8563cdf20d35e212c7c1a25636973b1da634e12
Auto-generated-cl: translation import
2017-01-30 19:13:28 -08:00
TreeHugger Robot
541af7f696 Merge "Add new api ClipDescription.getTimestamp." 2017-01-31 02:54:38 +00:00
Philip P. Moltmann
2fc44947dd [DO NOT MERGE] Delay SharedPreferences.apply() by 50 ms
... so that multiple applies can be combined into a single write.

Do do this I replaces the executor in the QueuedWork by a more Android-y
handler.

Test: Ran shared preferences CTS tests. Looked at log and saw a lot of
      skipped writes

Bug: 33385963
Bug: 30662828

Change-Id: I8f33df717be7091532930ccf6ca8c48940e4edd4
(cherry picked from commit 3349644872)
2017-01-31 02:50:24 +00:00
TreeHugger Robot
cf7d35e1fd Merge "Add user picker for anchored window. Test: CtsAutoFillServiceTestCases" 2017-01-31 02:47:28 +00:00
Siyamed Sinir
5de4fb641a Don't copy NoCopySpans in SpannableStringInternal
Bug: 34712634
Test: 
Added new tests to cts.SpannableStringTest and cts.SpannedStringTest
android.text.cts.SpannableStringTest
android.text.cts.SpannedStringTest
android.text.cts.SpannableStringBuilderTest
android.text.SpannableStringTest
android.text.SpannedTest

Change-Id: I34e4ef4798b8d26fa8770c0021acb52b4047095e
2017-01-30 18:43:47 -08:00
Suprabh Shukla
8cdc04957a DO NOT MERGE Do not call RecoverySystem with DPMS lock held
Bug 30681079

Change-Id: Ia832bed0f22396998d6307ab46e262dae9463838
2017-01-30 18:26:35 -08:00
Hugo Benichi
4456f33a95 ApfTest: fix flaky testApfFilterRa.
testApfFilterRa is failing with probabiliy 1/10 ~ 1/15 on the following
assert: assertDrop(program, packet, lifetime/6), for lifetime values
that are multiple of 6, where 6 is the hardcoded fraction of RA lifetime
to filter in ApfFilter.java.

When the lifetime is not a multiple of 6, the remainder of 1 to 5
seconds gives enough margin so that when the APF program is simulated
the faked lifetime of the program is less than lifetime/6 away and the
packet is dropped.

However for lifetimes which are exact multiples of 6, this margin is
always 0s and that result in nondeterminism in the result. This is
consistent with the obervation that the only failed assert was for a
lifetime of 300s, the only multiple of 6.

This can be observed by detecting the age limit at which the filter
stops dropping packet oscillating between lifetime/6 and lifetime/6 + 1
for lifetimes which are multiple of 6.

This patch fixes the flakyness by freezing the flow of time in tests so
that the expected filter age threshold is consistent and stable.

Test: no failure observed in 1000 runs.
Bug: 32561414
Change-Id: I5251d047039f34b82ce8a5d20ae46563e1e0cce8
2017-01-31 11:13:44 +09:00
Dianne Hackborn
a09a31f99f Merge "Remove some unused code around process state reporting." 2017-01-31 01:55:58 +00:00
TreeHugger Robot
02f3a5f0e7 Merge "Minor updates to reflect libbinder changes." 2017-01-31 01:53:15 +00:00
Svetoslav Ganov
096d304ae3 Add instant cookie APIs
This change adds APIs for instant apps to store cookie data
that is presisted across instant installs and across the
upgrade from an instant to a standard app. Standard apps
can use the cookie APIs but when they are uninstalled the
cookie is also deleted. The cookies are kept longer than
the instant apps as they are much smaller - 16KB by default.
We can change the cookie size via a system setting i.e.
after we ship we can increase size if needed.

We also add internal APIs to surface information about
installed and uninstalled instant apps which should be
used for showing them in the UI. For this puporse we store
the icon, permissions, and label of uninstalled apps. If
the app is re-installed we drop this meta-data but keep
the cookie around. If we have cookie data stored and the
signing cert of the app changes when it gets re-intalled
we wipe the cookie.

Test: CTS tests pass; hiddent APIs tested manually

Change-Id: If145c0440cc61a5303e2cbb70228d235d36037a5
2017-01-30 17:52:14 -08:00
Peter Qiu
55078c4fa8 hotspot2: enclose conditional statement in parenthesis
Couple unit tests are failing due to conditional statements
not enclosed in the parenthesis, which causes unexpected
returned value for the equals function.  So fix it.

Bug: 34764955
Test: frameworks/base/wifi/tests/runtests.sh
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: Iaf0151803cb62eb8af308e5de40558617f84cd2f
2017-01-30 17:47:53 -08:00
Etan Cohen
9b07338cb2 Merge "[AWARE] Minor hardening of manager." am: d0f1c9d1d3 am: 155d9ba6fc am: 3e8f90a62b
am: 4717b99a9d

Change-Id: Ia87571d271f0dd271b40445b14bba9d05f5b34f1
2017-01-31 01:45:23 +00:00
Etan Cohen
4717b99a9d Merge "[AWARE] Minor hardening of manager." am: d0f1c9d1d3 am: 155d9ba6fc
am: 3e8f90a62b

Change-Id: Ia909905095094f33c536774235d49060ca2d63c3
2017-01-31 01:40:49 +00:00
Etan Cohen
3e8f90a62b Merge "[AWARE] Minor hardening of manager." am: d0f1c9d1d3
am: 155d9ba6fc

Change-Id: I222a30730ec6199a53c91fb6c3fd4b96846ac7d3
2017-01-31 01:36:18 +00:00
Etan Cohen
155d9ba6fc Merge "[AWARE] Minor hardening of manager."
am: d0f1c9d1d3

Change-Id: I182e8c10eea318cf1fd3d3fe4da3275df01f851d
2017-01-31 01:30:24 +00:00
Fyodor Kupolov
669b1d6bfe Merge "Read SystemConfig on a worker thread" 2017-01-31 01:19:54 +00:00
Etan Cohen
d0f1c9d1d3 Merge "[AWARE] Minor hardening of manager." 2017-01-31 01:19:49 +00:00
Sudheer Shanka
09971befd7 Add new api ClipDescription.getTimestamp.
ClipDescription.getTimestamp can be used to know the time
at which the associated ClipData is copied to global clipboard.

Bug: 30873580
Test: cts-tradefed run singleCommand cts-dev --module CtsContentTestCases -t \
      android.content.cts.ClipDescriptionTest
Change-Id: I9486ab3fe0696959d42f6b4c98e40f5becee3019
2017-01-30 17:19:49 -08:00
Jason Long
3922e6a8aa Add user picker for anchored window.
Test: CtsAutoFillServiceTestCases

Bug: 34633695
Change-Id: I274264846358941983183a32f07cade3b26c8c05
2017-01-30 17:17:35 -08:00
Android Build Merger (Role)
895fc78ada Merge "Merge changes I8eca5f24,I9d79c67c am: 54604d9143 am: 276672d192 am: 5445bdda28 am: b67f853f6f" 2017-01-31 01:16:35 +00:00
Jerry Zhang
4a7d848e71 Merge changes I8eca5f24,I9d79c67c am: 54604d9143 am: 276672d192 am: 5445bdda28
am: b67f853f6f

Change-Id: I841123c2ba343a1ff1d0205c239ada0b54622988
2017-01-31 01:15:55 +00:00
Android Build Merger (Role)
a0325c8513 Merge changes from topic 'am-7c11f830c3cc4f4994e740cad00a8e97'
* changes:
  Check and send usb state broadcast when devices boots am: af6d473ab0 am: 061bceafee am: df1df40f91 am: 307a387f38
  Only send usb disconnect intents after boot. am: c1bc0a844d am: dc9c094deb am: 9877c70d9d am: 1064ee66d5
2017-01-31 01:15:29 +00:00
TreeHugger Robot
efdc663569 Merge "Define targetSandboxVersion" 2017-01-31 01:14:44 +00:00
Badhri Jagan Sridharan
26b6130282 Check and send usb state broadcast when devices boots am: af6d473ab0 am: 061bceafee am: df1df40f91
am: 307a387f38

Change-Id: Icf4b4e4f48fea450b71bd7ccd88db7d089ea286e
2017-01-31 01:14:33 +00:00
Jerry Zhang
ed642e81b4 Only send usb disconnect intents after boot. am: c1bc0a844d am: dc9c094deb am: 9877c70d9d
am: 1064ee66d5

Change-Id: If501641b5a7cbb4264f40f3bcf2add35e0851f78
2017-01-31 01:13:20 +00:00
Dmitri Plotnikov
d6bd6b9f64 Enabling low storage notification on Android TV
Bug: 34471528
Test: Test apk attached to the bug
Change-Id: Idc96b913f1d2b67a4c52a2ecd762ee4056802d56
2017-01-30 17:11:13 -08:00
Jerry Zhang
b67f853f6f Merge changes I8eca5f24,I9d79c67c am: 54604d9143 am: 276672d192
am: 5445bdda28

Change-Id: I6f17910b547553571b3b92c60deb5ee8acf6af2a
2017-01-31 01:09:09 +00:00
Badhri Jagan Sridharan
307a387f38 Check and send usb state broadcast when devices boots am: af6d473ab0 am: 061bceafee
am: df1df40f91

Change-Id: I28430b3de3ee91c4eb5dc4e4ef88e5924d56e2b4
2017-01-31 01:08:00 +00:00
Jerry Zhang
1064ee66d5 Only send usb disconnect intents after boot. am: c1bc0a844d am: dc9c094deb
am: 9877c70d9d

Change-Id: I515745dd4f30a979fffcb6c9eea8a38e1bef11ca
2017-01-31 01:06:45 +00:00
Jerry Zhang
5445bdda28 Merge changes I8eca5f24,I9d79c67c am: 54604d9143
am: 276672d192

Change-Id: I74e78d829a718d145fcf1ae06ac9491329544f51
2017-01-31 01:00:16 +00:00
Badhri Jagan Sridharan
df1df40f91 Check and send usb state broadcast when devices boots am: af6d473ab0
am: 061bceafee

Change-Id: Iabb4c7d6c120bb3b45703de084dc52ed958e1dba
2017-01-31 00:59:21 +00:00
Jerry Zhang
9877c70d9d Only send usb disconnect intents after boot. am: c1bc0a844d
am: dc9c094deb

Change-Id: Icfadbbe67ef80977500916bcb84f0c7989941b7c
2017-01-31 00:58:14 +00:00
Jerry Zhang
276672d192 Merge changes I8eca5f24,I9d79c67c
am: 54604d9143

Change-Id: I1e364d21949c9d4c16b14e60c630577399cdce05
2017-01-31 00:52:48 +00:00
Badhri Jagan Sridharan
061bceafee Check and send usb state broadcast when devices boots
am: af6d473ab0

Change-Id: I13b0ea530c0701fd32d50d9c145f1b0e574fc9b0
2017-01-31 00:52:43 +00:00
TreeHugger Robot
5d6facc89d Merge "Don't count hw bitmap's textures in TextureCache" 2017-01-31 00:51:56 +00:00
Jerry Zhang
dc9c094deb Only send usb disconnect intents after boot.
am: c1bc0a844d

Change-Id: Iaa8ff69de80b3efa558f82438cc6071f749a2dc8
2017-01-31 00:51:41 +00:00
sergeyv
3e9999bd86 Explicitly destroy Layer in DeferredLayerUpdater on destroyHardwareResources()
Change-Id: I0987104eabda9a2a302b9e765213aad48f93aea4
Test: refactoring CL. Existing tests still pass
bug:33753499
2017-01-30 16:42:41 -08:00
TreeHugger Robot
f0fac1d1cd Merge "Camera2: Do not throw exception if addSurface size doesn't match" 2017-01-31 00:42:00 +00:00
Jerry Zhang
54604d9143 Merge changes I8eca5f24,I9d79c67c
* changes:
  Check and send usb state broadcast when devices boots
  Only send usb disconnect intents after boot.
2017-01-31 00:41:55 +00:00
Badhri Jagan Sridharan
af6d473ab0 Check and send usb state broadcast when devices boots
Broadcasts are not sent until BOOT_COMPLETED is received.
When the device boots with usb plugged, the UPDATE_STATE
for connted and configured would be received way before
BOOT_COMPLETED is received. Since, devices can continue
to stay in same usb configuration(set through persistent
property trigger), check and send a usb state broadcast
if needed.

BUG: 34451258
Test: Manually checked to verify the broadcasts sent.
Change-Id: I8eca5f241ad758f5c4f1afa6c9807868dfd6195a
2017-01-31 00:41:49 +00:00
Shukang Zhou
9e7f883a43 [Frameworks] Add an 'am' cmd option to enable streaming in profiling.
am: bb44e42de9  -s ours

Change-Id: I91c18d60043d5c56342576951d371c5de0116103
2017-01-31 00:29:11 +00:00
Dmitri Plotnikov
e122c245a9 Merge "Protecting TvExtender from being stripped by lightenPayload()" 2017-01-31 00:17:21 +00:00
sergeyv
00783be809 Don't count hw bitmap's textures in TextureCache
Test: refactoring CL.
bug: 34751775
Change-Id: I0f7c8338817329a5c75cec4e8b944779587d7b7f
2017-01-30 15:13:07 -08:00
TreeHugger Robot
4cedf3064a Merge "Switch how destroyHardwareResources works" 2017-01-30 23:08:35 +00:00
Robert Quattlebaum
9cd7af310c Minor updates to reflect libbinder changes.
* Parcel: Update comment to reflect new file path
* IpPrefix: Update AIDL file to indicate appropriate C++ header

Change-Id: Ia9edccca5e8ef1f36a709b593a768003e1234dfa
2017-01-30 15:05:53 -08:00
Shuzhen Wang
21d63b2836 Camera2: Do not throw exception if addSurface size doesn't match
During addSurface, the surface size may not match the preconfigured
size, because the surface could be asynchronously changing its size.
Only log a warning in this case, and depend on native implementation
of createCaptureSession or finalizeOutputConfigurations to detect the
size mismatch.

This also reverts commit e56e606f82,
and enforce the surfaceSize for deferred OutputConfiguration is not
0.

Test: Camera CTS
Bug: 34737377
Bug: 34697112
Change-Id: I4b66166a9a2739a09a16d635d2599a9bcf5c036b
2017-01-30 14:58:55 -08:00
Todd Kennedy
11e4507522 Define targetSandboxVersion
The new attribute allows both ephemeral and non-ephemeral apps to
opt into a new, tighter security model.

Test: Manual; built app w/ targetSandboxVersion and verified the security domain
Change-Id: I8fcaf84e25f0519b438ba51302f79790e680e025
2017-01-30 14:47:30 -08:00
Jerry Zhang
c1bc0a844d Only send usb disconnect intents after boot.
This prevents cases where the device starts up and attempts
to change the config, but intents cannot yet be sent.

A patch to resend this skipped intent is necessary to
finish fixing the bug.

Bug: 34451258
Test: Check that usb state is properly handled on boot
Change-Id: I9d79c67ce8982fd5b43fa40781b66bb9ae820694
2017-01-30 14:34:57 -08:00