308353 Commits

Author SHA1 Message Date
Bill Yi
4f4d095c90 Import translations. DO NOT MERGE
Change-Id: Ic31eb1a90bdd0d4f3f64c99b10d766202979077f
Auto-generated-cl: translation import
2017-02-22 04:57:10 -08:00
Daniel Nishi
b902a835a3 Don't crash when primary volume is null in AppCollector. am: d54f3a487b
am: e13bfbde1a

Change-Id: I8b35924b59938f84502b0afaa8165ebf1fc2e4d4
2017-02-22 06:01:01 +00:00
Hugo Benichi
a06ede044f Merge "ConnectivityManager: allow custom Handlers" am: ef69246260 am: cb47118af1
am: 0f99e5367b

Change-Id: I9f7fc64c2d3d6f88344c9547b8e1ac17cf3d1104
2017-02-22 05:59:44 +00:00
Jack Yu
0fa73d857a Merge "Added telephony manager set sim power state API" am: cbffe38631 am: d1f5b4245f
am: c2543c5357

Change-Id: I9a42b2543d3158ded2a7a5a5bbe4331a4c3d708a
2017-02-22 05:58:35 +00:00
TreeHugger Robot
fb924fa981 Merge "Fix 'Modifying dpm.setSecureSetting call for install_non_market_apps'" 2017-02-22 05:37:37 +00:00
Daniel Nishi
e13bfbde1a Don't crash when primary volume is null in AppCollector.
am: d54f3a487b

Change-Id: I77e27f4a7e901e98995039bcfd68453bec83a6cd
2017-02-22 04:04:38 +00:00
Hugo Benichi
0f99e5367b Merge "ConnectivityManager: allow custom Handlers" am: ef69246260
am: cb47118af1

Change-Id: I04171173890b161c053c41a2a5c7e1602e510b8c
2017-02-22 03:51:08 +00:00
TreeHugger Robot
2f837e7b2d Merge "tv_cec HAL uses "default" service name" 2017-02-22 03:49:19 +00:00
Hugo Benichi
cb47118af1 Merge "ConnectivityManager: allow custom Handlers"
am: ef69246260

Change-Id: I8da5540f6561cdef4adc91bbeeb9c21a91c08d49
2017-02-22 03:48:10 +00:00
Hugo Benichi
ef69246260 Merge "ConnectivityManager: allow custom Handlers" 2017-02-22 03:42:15 +00:00
TreeHugger Robot
f92a582c1f Merge "Move the presentation view to proper location." 2017-02-22 03:31:53 +00:00
TreeHugger Robot
24dfce2fbe Merge "Mark some system intents as SystemApi" 2017-02-22 03:07:46 +00:00
Phil Burk
2dfa6d121c Merge "bluetoothmidiservice: fix timestamp for BLE-MIDI transmitted packets" 2017-02-22 03:03:30 +00:00
Jack Yu
c2543c5357 Merge "Added telephony manager set sim power state API" am: cbffe38631
am: d1f5b4245f

Change-Id: I0db1ff82aa80b3719efa9c0bdc2ca0a6f39347a5
2017-02-22 02:56:44 +00:00
Jack Yu
d1f5b4245f Merge "Added telephony manager set sim power state API"
am: cbffe38631

Change-Id: I9fbe161505905c3d3c1c431d1589248324fb3e4f
2017-02-22 02:50:29 +00:00
TreeHugger Robot
397a7d813c Merge "Fixing regression in entering PiP over keyguard." 2017-02-22 02:47:38 +00:00
Treehugger Robot
cbffe38631 Merge "Added telephony manager set sim power state API" 2017-02-22 02:45:18 +00:00
Suprabh Shukla
0b1356ff1f Fix 'Modifying dpm.setSecureSetting call for install_non_market_apps'
The previous change was reverted as it broke work profile provisioning.
Clearing binder calling identity before calling into settings provider
should fix the issue.

Test: runtest managed-provisioning
Test: runtest -x services/tests/servicestests/src/com/android/server/devicepolicy/DevicePolicyManagerTest.java
Test: Manually tested that work profile is inflated with expected values
of install_non_market_apps

Bug: 33947615
Bug: 35590590

Change-Id: I3c31a73fef0c25c0e682e18f637272adad39b28d
2017-02-21 18:36:28 -08:00
TreeHugger Robot
527e886704 Merge "Avoid copying NoCopySpans." 2017-02-22 02:14:05 +00:00
TreeHugger Robot
d2876544fb Merge "Deprecate "speak passwords" setting." 2017-02-22 01:57:45 +00:00
Svet Ganov
eb49515abd Move the presentation view to proper location.
Test: Auto-fill tests pass

bug:33550221

Change-Id: I041a084800e761859c67b962fb4aefafce8956d8
2017-02-21 17:47:11 -08:00
TreeHugger Robot
0df2b375a3 Merge "BitmapFactory: Leave the P3 color space on wide gamut bitmaps" 2017-02-22 01:46:19 +00:00
Jack Yu
e25a4dfb6a Added telephony manager set sim power state API
The new API can be used to power up/down the SIM. This is equivalent
to inserting and removing the card.

Test: Telephony sanity tests
bug: 32224755

Change-Id: Ib82ab1eff613946e7c31c9b2131183a40d09af80
2017-02-21 17:36:45 -08:00
Amith Yamasani
cbabb8dddc Mark some system intents as SystemApi
These intents are handled by some system apps and use the
android.* namespace. So mark them as SystemApi for CTS verification
purposes.

Fixes some of the CTS signature tests.

Change-Id: I18664b3e92bb24a5cf96d89cf47d6abb88b13220
Fixes: 35253923
Test: cts-tradefed run cts-dev -m CtsSignatureTestCases
2017-02-22 01:27:38 +00:00
TreeHugger Robot
f7d364d820 Merge "Optimize AutoFillManager calls" 2017-02-22 01:27:16 +00:00
TreeHugger Robot
e7473fae80 Merge "Handle location enabled setting null value" 2017-02-22 01:26:57 +00:00
Daniel Nishi
d54f3a487b Don't crash when primary volume is null in AppCollector.
getPrimaryStorageCurrentVolume() may return a null value. I did
not plan for this case in the AppCollector. This case occurs when
the primary storage is not mounted when the function is called.

By adding in a null check after getPrimaryStorageCurrentVolume()
and adding in preconditions to verify the non-nullness of the
volume as it propagates through the AppCollector, we ensure that
there should be no more NPE crashes for this reason.

Bug: 35636901
Test: FrameworkServicesTests
Change-Id: I4009e55502f71b8f14dd917ddd00caef3551aafd
2017-02-22 01:14:35 +00:00
Svetoslav Ganov
acfa5ee00a Optimize AutoFillManager calls
AutoFillManager needs to handle calls for value changes and
reset only if there was a focus change reported, hence the
APIs for value change and reset do not need to connect to
the backing service to determine the enabled state.

Test: Auto-fill CTS tests pass

bug:35641424

Change-Id: I50e449925034c54257e35aa78e066e2a0fa53c03
2017-02-22 00:54:02 +00:00
TreeHugger Robot
8a51023605 Merge "Allow default permission exceptions to be read from vendor partition" 2017-02-22 00:38:19 +00:00
Phil Weaver
0ebe6bd5da Avoid copying NoCopySpans.
Move from Spannable to SpannableStringBuilder, as the latter doesn't
copy NoCopySpans.

Bug: 34712634
Test: CTS tests that verify clickable spans still work.
Change-Id: I0ab029a7c79cb7d0b48724890c5cabe841390f4a
2017-02-21 16:24:31 -08:00
Hugo Benichi
2583ef0239 ConnectivityManager: allow custom Handlers
This patch adds overloaded version of registerDefaultNetworkCallback
registerNetworkCallback, and requestNetwork with an additional Handler
argument that is used for running the caller provided NetworkCallback.

It also clarifies the documentation of the existing methods that
implicitly uses the internal singleton ConnectivityThread about which
internal Handler is used for running NetworkCallbacks.

Test: build, flashed, booted device
Bug: 32130437
Change-Id: Iae15f81e47e2dc0355baf2f2c1679b77e56af299
2017-02-22 09:24:01 +09:00
Phil Burk
94ec584bed bluetoothmidiservice: fix timestamp for BLE-MIDI transmitted packets
Transmitted packets that contained multiple MIDI messages and that did not
use running status were missing a timestamp! This CL fixes that bug.

Bug: 34708799
Test: a manual test using MidiMatrix is described in the bug report
Change-Id: Iddb55e01c60625787c5907fe8e4b202ef1415e59
Signed-off-by: Phil Burk <philburk@google.com>
2017-02-21 16:15:33 -08:00
TreeHugger Robot
2ce1160ed6 Merge "Revert "Update display contents when metrics change"" 2017-02-22 00:13:52 +00:00
TreeHugger Robot
43031861a0 Merge "Use ArrayList instead of ArraySet for FillResponse.getDatasets()..." 2017-02-22 00:12:08 +00:00
Jack Yu
90065e6e8c Merge "Added telephony manager set sim power state API" 2017-02-21 23:58:30 +00:00
Colin Cross
56ff7d9e73 Merge "Revert "Remove outdated emulator check which causes BT to not start"" am: 375ea2ae71 am: ebc05de919
am: cfbf226165  -s ours

Change-Id: I278d5afab4e15535dd2fc7b3501f805934e58f28
2017-02-21 23:42:06 +00:00
Colin Cross
cfbf226165 Merge "Revert "Remove outdated emulator check which causes BT to not start"" am: 375ea2ae71
am: ebc05de919

Change-Id: Id61ee53f3147d90d8fbca053633e3115b69d3065
2017-02-21 23:37:01 +00:00
Andreas Gampe
8822f7f6e9 Merge "Graphics: Make SurfaceTexture compile-time initializable" 2017-02-21 23:34:36 +00:00
Colin Cross
ebc05de919 Merge "Revert "Remove outdated emulator check which causes BT to not start""
am: 375ea2ae71

Change-Id: I3d5abc52abf3f7c01ba4fbee47d7e487e99f5dda
2017-02-21 23:32:32 +00:00
TreeHugger Robot
947008300b Merge "Mark new settings as being blacklisted for backup." 2017-02-21 23:31:10 +00:00
Colin Cross
375ea2ae71 Merge "Revert "Remove outdated emulator check which causes BT to not start"" 2017-02-21 23:25:07 +00:00
Phil Weaver
385912ee2d Deprecate "speak passwords" setting.
This will now be controlled by individual accessibility services.
We'll provide the password information to them, and they can
present or hide the information as it makes sense for their users.

Password information was anyway provided when a headset was
connected.

Bug: 28139568
Test: Manually verified that TalkBack now speaks passwords on the
lock screen and in text views. Since I'm removing functionality
that didn't have tests, it's tricky to have specific tests.
Change-Id: Ic3c724ccce5762ee9dcd9e7dcbd4eae6734dd05e
2017-02-21 15:24:54 -08:00
TreeHugger Robot
eb0a2901cc Merge "Set default wait-for-network timeout to 0." 2017-02-21 23:09:15 +00:00
TreeHugger Robot
d66bf57743 Merge "Add metrics for default assist/voice input pickers" 2017-02-21 23:02:26 +00:00
TreeHugger Robot
5159f77c22 Merge "Correct out of range error in getTopVisibleActivities." 2017-02-21 23:01:02 +00:00
TreeHugger Robot
e12011c1eb Merge "Notify NPMS when uid becomes active or idle." 2017-02-21 22:57:27 +00:00
Matt Sarett
6c382572e3 BitmapFactory: Leave the P3 color space on wide gamut bitmaps
Test: Built, flashed, cts

Change-Id: I242952cf690b821056dd5c13ec13f59120f573b5
2017-02-21 17:42:45 -05:00
TreeHugger Robot
a55b7c5558 Merge "AOD: Don't use doze states when unsupported" 2017-02-21 22:34:16 +00:00
Felipe Leme
fe35e69d96 Use ArrayList instead of ArraySet for FillResponse.getDatasets()...
...otherwise it might not preserve the order.

Test: manual verification
BUG: 35348724

Change-Id: Ib19d364253ea4f0cbbeca8a73b08800482e74820
2017-02-21 14:32:14 -08:00
Fyodor Kupolov
21edf1976c Merge "Check bounds in offsetToPtr" 2017-02-21 22:29:35 +00:00