307954 Commits

Author SHA1 Message Date
Diego Perez
c5a8e06f2e Merge "Add dynamic font support" 2017-02-15 10:36:22 +00:00
Narayan Kamath
669afcc9d0 Zygote: Add support for explicit preloading of resources.
Add a --preload-default command that instructs the zygote to preload
resources. The command is a no-op if resources have already been
preloaded.

Test: manual.
Change-Id: I4a846a7d911fa929af472d9071ffbff6df424176
2017-02-15 10:25:48 +00:00
Narayan Kamath
83e0faf2cc Merge "Zygote: Reset niceness if lazy preloading is enabled." 2017-02-15 10:15:16 +00:00
Hyunyoung Song
816540180f Merge "Remove color attribute from MaskableIconDrawable foreground/background tag Test: manual test" 2017-02-15 09:33:11 +00:00
Sergio Sancho
b662231125 Merge "Ensure we set the notification marker position by calling updateMarker() just after the AudioTrack is initialized. This solve the issue with cached synthesis in which updateMarker was called before AudioTracker initialization and we never got the callbacks." 2017-02-15 09:31:29 +00:00
Hugo Benichi
d22edc28f5 IP connectivity metrics: delete obsolete logger service
Test: - runtest frameworks-net
      - manually verified $ adb shell dumpsys connmetrics
Bug: 32648597

Change-Id: I69f7dee5871508398d7f7209658a00c768e2d18e
2017-02-15 17:12:58 +09:00
Felipe Leme
a45eb7eb12 Merge "Enable auto-fill when activity is marked as FLAG_SECURE." 2017-02-15 07:48:48 +00:00
Yohei Yukawa
278f2ab11b Access IMMS#mSettings only inside the lock
This is a preparation CL before addresssing Bug 35361128.

IMMS.MyPackageMonitor#isChangingPackagesOfCurrentUser() needs to be
called after taking a lock for IMMS#mMethodMap because it internally
relies on InputMethodManagerService#mSettings.

Test: Made sure that the device can boot and the IME is available.
Bug: 35361128
Change-Id: I66752a275f20f6ba33bc211ffb8d6fd269250c0d
2017-02-14 19:51:33 -08:00
Selim Cinek
d4776a52b4 Made the notificationViewStates static
We shouldn't hold an implicit reference to the
row, let's fix that.

Bug: 35345204
Test: runtest systemui
Change-Id: Ifa0ba0bd07850ae575059b6368791d60d1091616
2017-02-14 18:50:16 -08:00
Stephen Chen
fde900dbbd Fail safely on invalid ScanResults when creating NetworkKey
Added tests for NetworkKey#createFromScanResult

Bug: 34671341
Test: runtest --path
frameworks/base/core/tests/coretests/src/android/net/NetworkKeyTest.java
runtest --path
frameworks/base/services/tests/servicestests/src/com/android/server/NetworkScoreServiceTest.java

Change-Id: Ideac1615917649cd3934421228a82aeed37e7ad1
2017-02-14 18:39:57 -08:00
Sudheer Shanka
f88ebeb250 Use correct packageName for checking if it belongs to callingUid.
In AccountManagerService.getAccountsAsUser, we check if opPackageName
belongs to calling uid by calling AppOpsManager.checkPackage. But when
AccountManagerService.getAccountsAsUser is called from
AccountManagerService.addSharedAccountsFromParentUser, we're using the
opPackageName from system context instead of calling context.

Bug: 35258008
Test: cts-tradefed run singleCommand cts-dev --module CtsMultiUserHostTestCases \
      -t android.host.multiuser.CreateUsersPermissionTest#testCanCreateRestrictedUser
Change-Id: I5c425d9314beb86f7c64a5b5c64b7d879711879a
2017-02-14 18:35:05 -08:00
Michael Rosenfeld
286839e40d Add functionality to overwrite the /etc/preloaded-classes file.
* Requires root, disable-verity, reboot, root before use.

Test: manual through UI and sequencing
Change-Id: I68965334776e130b8220a5814b2525109cf96800
2017-02-14 18:33:42 -08:00
Calin Juravle
aae35767b6 Skip class path checking for secondary dex files
Pass '&' marker to dex2oat classpath when compiling secondary dex files.
This will skip class path checking when loading the oat files.

Test: adb shell cmd package compile -m speed -f --secondary-dex com.google.android.gms
      oatdump --header-only --oat-
file=/data/user/0/com.google.android.gms/app_chimera/m/00000006/oat/arm64/DynamiteModulesC_GmsCore_prodmnc_alldpi_release
      check that the class path contains the special '&' marker

Bug: 32871170
Change-Id: If0628aeb4e3f5717604bfc4a87a4b1d438e5fa65
2017-02-14 18:20:45 -08:00
Felipe Leme
71377a4ae2 Enable auto-fill when activity is marked as FLAG_SECURE.
BUG: 34077687
Test: CtsAutoFillServiceTestCases passes
Change-Id: I2d7a565a53a32792d6daeceba3f3a7beebdf052c
2017-02-14 18:19:08 -08:00
Eric Laurent
e0ac9dabc7 Merge "audio: deprecate AudioManager.isBluetoothA2dpOn()" 2017-02-15 02:13:22 +00:00
Hall Liu
8f613fb4d6 Add extra key for app-specified outgoing call timeout
Bug: 34474757
Test: manual
Change-Id: Ia93d68d6a01308b0b93b88977daf983a0ed3a22c
2017-02-14 18:11:11 -08:00
Selim Cinek
1534b978fd Merge "Fix bad automerge" 2017-02-15 01:36:26 +00:00
Jean-Michel Trivi
743d07e6db Merge "Player activity notification: SoundPool not ready for activity reporting" 2017-02-15 01:32:27 +00:00
Jeff Vander Stoep
1a13a01ae8 Fix bad automerge
Test: Marlin builds again!
Change-Id: Ic0034a5006d22f758daef92994338fdfb00210fc
2017-02-14 17:32:18 -08:00
Hugo Benichi
849e24866d Merge "ConnectivityManager: fix potential NPE" am: b688dd18ab am: ab453cd565 am: 7c9cc1f9e5
am: f648c98762

Change-Id: I628fdf36a5a80a2d93ff4c4785253cb16a9e4ad2
2017-02-15 01:29:31 +00:00
Selim Cinek
875ba9bd8e Fixed a few coloring issues
The color of the icon was happening in a
non-animated way. We're now animating the
color properly.
This also fixes an issue where the action
bar could be fully black.

Test: add colorized notification, observe animation
Fixes: 35308322
Change-Id: I4fbc1794fc027efb42eee3ee8f06fd9d8c513456
2017-02-14 17:28:15 -08:00
Hugo Benichi
f648c98762 Merge "ConnectivityManager: fix potential NPE" am: b688dd18ab am: ab453cd565
am: 7c9cc1f9e5

Change-Id: I6f487ce9da656610c939ddc78e834ac8ef5f8135
2017-02-15 01:24:29 +00:00
Sujith Ramakrishnan
1331d26142 Transition from Activity to Broadcast for TV Search
- For TV search, initiate a directed broadcast to default
      search service.
    - Earlier, an activity in the default search package was
      initiated after checking that the in-focus activity
      did not want to handle this intent.
    - Now, the in-focus activity does not get a chance at this
      intent.

Test: Manually tested with test apk which had the correct intent.
Test: Will test again with default search apk, once that code is
submitted.
b/35290250

Change-Id: I9da4c90a45624cdbe876357176b0c0636e2777bf
2017-02-14 17:13:17 -08:00
Erik Kline
cfa9c5b495 Merge "Split chooseUpstreamType() into two separate functions" am: 7a42d3ad83 am: f6d55d7e9e am: 8eb1fbf1bc
am: f51d562627

Change-Id: Id2e6f20d79f088d27593953ec39112a84a8ba5f0
2017-02-15 01:11:30 +00:00
Erik Kline
aada49a397 Merge "Slightly simplify mTryCell and requestUpstreamMobileConnection() usage" am: 63445824d6 am: 4650762557 am: 23d077318c
am: 0f5cf47489

Change-Id: Ib883c6772bc51c3f6670139de44f66067d746355
2017-02-15 01:10:23 +00:00
Hugo Benichi
7c9cc1f9e5 Merge "ConnectivityManager: fix potential NPE" am: b688dd18ab
am: ab453cd565

Change-Id: I72e114037ce6a0ec53863749b8ffa34513c9fdce
2017-02-15 01:09:58 +00:00
Hugo Benichi
ab453cd565 Merge "ConnectivityManager: fix potential NPE"
am: b688dd18ab

Change-Id: If562fc6a921569ad9d3141cac72b6f395a30da9e
2017-02-15 01:05:24 +00:00
Erik Kline
f51d562627 Merge "Split chooseUpstreamType() into two separate functions" am: 7a42d3ad83 am: f6d55d7e9e
am: 8eb1fbf1bc

Change-Id: Ia8fd663404f1d0a70243ab9c9bd853ac6d51d68f
2017-02-15 01:04:44 +00:00
Erik Kline
0f5cf47489 Merge "Slightly simplify mTryCell and requestUpstreamMobileConnection() usage" am: 63445824d6 am: 4650762557
am: 23d077318c

Change-Id: I19f92ac6160702233832a190aeeaeff06391ce9e
2017-02-15 01:03:49 +00:00
Philip P. Moltmann
82b902204f Revert accidential merge 492a058d58e991445996cb8cc8dcb24494ac20c5
Test: Clean revert
Change-Id: I61d339bb85936e1d50742be1e4c6dab781f3a4e7
2017-02-14 17:02:50 -08:00
Amith Yamasani
dd757883c2 Merge "Fix NPE in handleBindApplication" 2017-02-15 00:55:01 +00:00
Erik Kline
8eb1fbf1bc Merge "Split chooseUpstreamType() into two separate functions" am: 7a42d3ad83
am: f6d55d7e9e

Change-Id: Ibd6b1fae52ec31ae488484be727b5261820e6ecb
2017-02-15 00:54:07 +00:00
Hugo Benichi
b688dd18ab Merge "ConnectivityManager: fix potential NPE" 2017-02-15 00:53:44 +00:00
Amith Yamasani
5e2714ea7a Merge "Kernel mapping for package scope by user" 2017-02-15 00:53:25 +00:00
Erik Kline
23d077318c Merge "Slightly simplify mTryCell and requestUpstreamMobileConnection() usage" am: 63445824d6
am: 4650762557

Change-Id: Ie004da6fe1252ddec90204637ff17c3ed73f2923
2017-02-15 00:52:57 +00:00
Phil Weaver
7eec37989f Suppress a11y shortcut on emergency dialer
Suppressing whenever the keyguard is locked, not just when
it's showing. This should reduce false triggering.

Bug: 34820720
Test: Verfied that shortcut no longer activates on emergency
dialer or lock screen.

Change-Id: Ic43c11798f04217c2871efe7d0fa21dbf61fd953
2017-02-14 16:51:55 -08:00
Erik Kline
f6d55d7e9e Merge "Split chooseUpstreamType() into two separate functions"
am: 7a42d3ad83

Change-Id: I77649e11e74140ec985dcdadab226e3e73e67642
2017-02-15 00:49:20 +00:00
Erik Kline
4650762557 Merge "Slightly simplify mTryCell and requestUpstreamMobileConnection() usage"
am: 63445824d6

Change-Id: Ie921ee1a2f1dbdd338c9f0700b24808e1cb6435e
2017-02-15 00:48:24 +00:00
Erik Kline
7a42d3ad83 Merge "Split chooseUpstreamType() into two separate functions" 2017-02-15 00:38:50 +00:00
Erik Kline
63445824d6 Merge "Slightly simplify mTryCell and requestUpstreamMobileConnection() usage" 2017-02-15 00:38:32 +00:00
Michael Peck
0d954a080f Merge "Pass targetSdkVersion specifier for SELinux labeling" am: 4516240b47 am: f8cefed995 am: 5493749d64
am: fa030e505d

Change-Id: Ie6b6bba24490f0ca2db738aa46d2bbc2c6f9387c
2017-02-15 00:05:40 +00:00
Michael Peck
fa030e505d Merge "Pass targetSdkVersion specifier for SELinux labeling" am: 4516240b47 am: f8cefed995
am: 5493749d64

Change-Id: I731220c719cf29d94e11698906dfb7f049a90a55
2017-02-15 00:00:11 +00:00
Michael Peck
5493749d64 Merge "Pass targetSdkVersion specifier for SELinux labeling" am: 4516240b47
am: f8cefed995

Change-Id: Ie71368e7b4571d209d8c3a824bbf1a8c738f56a8
2017-02-14 23:55:07 +00:00
Michael Peck
f8cefed995 Merge "Pass targetSdkVersion specifier for SELinux labeling"
am: 4516240b47

Change-Id: Ic61c4dc30f075d01a85d8b60cfe4ae1de773aa09
2017-02-14 23:50:17 +00:00
Treehugger Robot
4516240b47 Merge "Pass targetSdkVersion specifier for SELinux labeling" 2017-02-14 23:42:59 +00:00
Amith Yamasani
336d29d409 Fix NPE in handleBindApplication
Use getPackageManager(), as sPackageManager might not be initialized
yet.

Bug: 35359850
Test: manual
Change-Id: I16f5af613e9f6a6dc776bd2da74779e509899541
2017-02-14 15:14:09 -08:00
Winson Chung
2c02bd1cf0 Merge "Disable fetching of thumbnails when using snapshots." 2017-02-14 23:11:05 +00:00
TreeHugger Robot
7ad2067f98 Merge "Add API to track package changes" 2017-02-14 23:10:59 +00:00
Michael Kwan
e46fa2b486 Merge "Fix incorrect values for VelocityTracker in SwipeDismissLayout." into cw-f-dev am: c61cd1a635 am: 34c98becbd
am: c8630e5feb

Change-Id: I932e24a961b7f499734b37838e7a7c2aeb1d05f6
2017-02-14 23:06:52 +00:00
Michael Kwan
0bf608ee82 Merge "Fix incorrect values for VelocityTracker in SwipeDismissLayout." into cw-f-dev am: c61cd1a635 am: 83b072c48c
am: e7c91f721c

Change-Id: I0a3d2214a46f804681dde460bd9a6024fbc859f7
2017-02-14 23:02:18 +00:00