Commit Graph

309172 Commits

Author SHA1 Message Date
Yuichi Araki
fd62c58ede Merge "Fix doc for setReparentWithOverlay" 2017-02-07 07:35:48 +00:00
Tyler Gunn
18dfc36012 Add support for wait-on-handlers command.
Add support for wait on handlers adb telecom command.  Used in CTS
tests to ensure work is completed once all Telecom handlers have finished
their current work.

Test: CTS, Manual
Bug: 34159263
Change-Id: I14acc0a04710b445c172629c2327813ee73a5a55
2017-02-06 20:47:04 -08:00
Jeff Sharkey
6f754e48e9 DO NOT MERGE. Grant MMS Uri permissions as the calling UID.
A recent security fix prevents the system UID from handing out Uri
permission grants directly from itself.  Instead, services need to
issue grants as the original calling UID to ensure that the caller
actually has access to the Uris.

Test: builds, boots, send/recv MMS works in primary/secondary users
Bug: 33231106
Change-Id: Ia9fe19843b52977c8a94ee5349b907beda1882fc
(cherry picked from commit 7ff418d9a9)
2017-02-07 04:46:19 +00:00
Jeff Sharkey
3f3da42ef9 DO NOT MERGE. Grant MMS Uri permissions as the calling UID.
A recent security fix prevents the system UID from handing out Uri
permission grants directly from itself.  Instead, services need to
issue grants as the original calling UID to ensure that the caller
actually has access to the Uris.

Test: builds, boots, send/recv MMS works in primary/secondary users
Bug: 33231106
Change-Id: Ia9fe19843b52977c8a94ee5349b907beda1882fc
(cherry picked from commit 7ff418d9a9)
2017-02-07 04:43:24 +00:00
Bill Yi
5e1652a7c9 Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev
am: 6654edae49  -s ours

Change-Id: If56de402cfaf73f7ac75e1253b79345e58bc1710
2017-02-07 04:39:57 +00:00
Bill Yi
9e1b6881a6 Import translations. DO NOT MERGE
am: 446a66d235  -s ours

Change-Id: I9297388b7b115d9da3083c388aeb25341acd7560
2017-02-07 04:39:53 +00:00
TreeHugger Robot
86613acaac Merge "Import translations. DO NOT MERGE" 2017-02-07 04:31:15 +00:00
TreeHugger Robot
27d151749f Merge "Import translations. DO NOT MERGE" 2017-02-07 04:30:39 +00:00
TreeHugger Robot
6654edae49 Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev 2017-02-07 04:30:06 +00:00
Bill Yi
0e4a8f5f41 Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev
am: f3f4f78dc7  -s ours

Change-Id: Ifda84719fb488b46456723973b76ce59caef0aa6
2017-02-07 04:27:54 +00:00
Bill Yi
f8f731cbe6 Import translations. DO NOT MERGE
am: b83f6b6f44  -s ours

Change-Id: I7e228f66a17fbdede843865827fc91f4c6790509
2017-02-07 04:27:50 +00:00
TreeHugger Robot
f3f4f78dc7 Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev 2017-02-07 04:21:45 +00:00
Jeff Sharkey
a78841ebd4 DO NOT MERGE. Grant MMS Uri permissions as the calling UID.
A recent security fix prevents the system UID from handing out Uri
permission grants directly from itself.  Instead, services need to
issue grants as the original calling UID to ensure that the caller
actually has access to the Uris.

Test: builds, boots, send/recv MMS works in primary/secondary users
Bug: 33231106
Change-Id: Ia9fe19843b52977c8a94ee5349b907beda1882fc
(cherry picked from commit 7ff418d9a9)
2017-02-07 04:04:15 +00:00
Mathias Agopian
589d9ab06d moved GraphicEnv from libgui to libui
Test: compiled and booted a device
Change-Id: I31d2fdc6633c35bbc53759c5e5589f4416c8e117
2017-02-06 18:50:40 -08:00
Felipe Leme
bab851c7c9 Refined session management so Save can be automatically called.
This is yet another big refactoring:

- AutoFillManager keeps track of its current AutoFillSession.
- Views call AFM.startSession(View) when they can trigger autofill.
  (virtual views can call it as well). At this point, the manager
  sets an AutoFillSession, gets the activity token, and passes it to
  the service.
- Subsequent calls to AFM.start() will be ignored since the session
  is set.
- When the Activity is gone, it calls AFM.finishSession().
- Simlilarly, virtual views could call it as well.
- Added getAutoFillValue() to View.
- Removed AFM.updateAutoFillInput(childId): virtual views should now
  call startSession(childId) to start a session, and use the
  VirtualViewListener callbacks for updates.
- Change AutoFillValue to use String (which is immutable) instead of
  CharSequence for text values.
- Check if view is enabled before auto-filling.
- Removed 'cmd autofill fill' since it would require the appCallback
- Automatically dismiss the snack bar after 30s
- Moved the "don't change autofill value when autofilling" Inception
  logic into the service side.
- Etc...

BUG: 34819567
BUG: 33269702
BUG: 31001899

Test: manual verification
Test: CtsAutoFillServiceTestCases passes

Change-Id: I5fad928d4d666701302049d142026a1efa7291cd
2017-02-06 18:22:03 -08:00
Soroosh Mariooryad
e622690efa Merge "Modifying SuggestionParser to support dismiss logic of smart suggestions." 2017-02-07 02:12:58 +00:00
TreeHugger Robot
ad8cab3892 Merge "Show saved networks before scored networks." 2017-02-07 02:06:33 +00:00
TreeHugger Robot
f546dbf39d Merge "Fix NetworkPolicyManagerServiceTest." 2017-02-07 01:56:18 +00:00
Doris Ling
93d53bc578 Merge "Remove category key SYSTEM_INPUT" 2017-02-07 01:51:19 +00:00
Soroosh Mariooryad
56ce766e92 Modifying SuggestionParser to support dismiss logic of smart
suggestions.

Test: RunSettingsLibRoboTests
Fixes: 35059823
Change-Id: I8c257f4f89f7dbc179aee85e013bdaecc8c3c09c
2017-02-06 17:37:49 -08:00
Makoto Onuki
34a6e84456 Fix PSS/USS Average in procstats
It was broken in I4bf6ac8d, meaning it was broken for the whole NYC.

Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l DEBUG -m CtsDumpsysHostTestCases -t android.dumpsys.cts.ProcessStatsDumpsysTest
Bug 34228624

Change-Id: I0f6c984e6902e688f00442cbc8b999b397a25aaf
2017-02-06 17:32:29 -08:00
Jason Monk
8cb6669f75 resolve merge conflicts of a800795a15 to master
Test: treehugger
Change-Id: I1f4743288021546344966c2b3ca1ee33c73667a8
2017-02-06 20:25:11 -05:00
Jeff Sharkey
3eddf40675 DO NOT MERGE. Grant MMS Uri permissions as the calling UID.
A recent security fix prevents the system UID from handing out Uri
permission grants directly from itself.  Instead, services need to
issue grants as the original calling UID to ensure that the caller
actually has access to the Uris.

Test: builds, boots, send/recv MMS works in primary/secondary users
Bug: 33231106
Change-Id: Ia9fe19843b52977c8a94ee5349b907beda1882fc
(cherry picked from commit 7ff418d9a9)
2017-02-07 01:23:32 +00:00
Charles He
d7d9c0241f Merge "Fingerprint: get auth id for non-current user." into nyc-mr2-dev
am: 15b8313d1b

Change-Id: I2d2eca47ab2eb548e48dad733a7956be83511252
2017-02-07 01:20:49 +00:00
Charles He
9b734a7c4c Fingerprint: get auth id for non-current user.
am: aae60473e1

Change-Id: I547076caaa27d86d682addc14106a344a1b4cec9
2017-02-07 01:20:42 +00:00
Charles He
15b8313d1b Merge "Fingerprint: get auth id for non-current user." into nyc-mr2-dev 2017-02-07 01:15:24 +00:00
Amin Shaikh
d4196c9e8b Remove unnecessary if-else statement from TextUtils#isEmpty.
Test: runtest frameworks-core

Change-Id: Ibcdc67130570775650fe8affda961227319c6641
2017-02-07 01:13:31 +00:00
Charles He
aae60473e1 Fingerprint: get auth id for non-current user.
Previously, getAuthenticatorId() simply returns the authenticator id
corresponding to the currently active user in FingerprintService.
However, this can cause bugs when, for example, KeyStore calls the
method before storing a fingerprint-bound key for a non-current user. In
such cases, the authenticator id of the calling user is desired, which
is not necessarily the same as the "current user" in FingerprintService.
This CL ensures the FingerprintService always returns the authenticator
id of the calling user.

Bug: 33459191
Test: manual
Change-Id: Ia9d6b869d16bd37f45358ba839cd12901ebc1076
Merged-In: I35c5a3a7082cffb8941eeaa219c8e20948ad41a9
2017-02-07 01:02:51 +00:00
Dongwon Kang
c6eb54ce43 TIF: add BaseProgramColumns in TvContract
Programs and RecordedPrograms have a lot in common. This change
introduces BaseProgramColumns which removes the duplicates.
This will be also helpful for the further clean-up.

Test: build & passes CtsTvTestCases without modification
Bug: 34853064
Change-Id: I4ad352a9a904e7fef57c56acec5583df92b4226c
2017-02-06 16:59:29 -08:00
Android Build Merger (Role)
56d70eec4a Merge "Merge "Remove uncessary dependency of libhwui" am: df36be5f17 am: eebd7d7970 am: 558e5dac4d am: ffa46b2053" 2017-02-07 00:58:38 +00:00
TreeHugger Robot
f69ffd24b8 Merge "Fingerprint: get auth id for non-current user." 2017-02-07 00:58:17 +00:00
Miao Wang
deaff9a411 Merge "Remove uncessary dependency of libhwui" am: df36be5f17 am: eebd7d7970 am: 558e5dac4d
am: ffa46b2053

Change-Id: I9018e4e53e84373efda8772db48f9d2446629d53
2017-02-07 00:58:02 +00:00
Jack Yu
73bfa1a87a Merge "Renamed voiceNetworkStateChanged and dataNetworkStateChanged" am: 84f97e21b2 am: 7eac8ec7c1 am: 84e84a73b7
am: 46c9c133e0  -s ours

Change-Id: I79cb760c9b67874ed3b610743727a28f55bbe2c6
2017-02-07 00:56:23 +00:00
Tyler Gunn
eb4613371c Merge "Self managed CS implementation." am: d736a6b2c2 am: 6bd991b3d2 am: 6a643c3a60
am: efeae9bca4  -s ours

Change-Id: I0f30285eb2f851fd0c5ab1a3e94a40a426251ba1
2017-02-07 00:55:16 +00:00
Selim Cinek
d755dd0e72 Merge "Fixed test failures for notification comparator" 2017-02-07 00:43:46 +00:00
Bill Yi
b83f6b6f44 Import translations. DO NOT MERGE
Change-Id: Id83eff0bcff1cfadadc4e91ce2d9d58a3f31194e
Auto-generated-cl: translation import
2017-02-06 16:42:58 -08:00
Bill Yi
937d76709a Import translations. DO NOT MERGE
Change-Id: I4a3fd082ba4daf3316928edc33563bbbb284ffe9
Auto-generated-cl: translation import
2017-02-06 16:33:05 -08:00
Andreas Huber
390cd6ceda Merge "Fixes Treble marshaling of strings embedded in structures from Java" am: 97fca8c035 am: 0bae9b1406
am: 0e686542e6

Change-Id: I145b206fc2af5dee4271b94640476507a49f7dbd
2017-02-07 00:20:19 +00:00
Pavlin Radoslavov
537eaf0f6e Merge "Add a mechanism to configure the default A2DP codec priorities" am: acf34d8b62 am: cd6e0ee19d
am: b7067e2b6c

Change-Id: I459480c5bf8e512340d95452c491e9e2986a84a8
2017-02-07 00:18:40 +00:00
Jason Monk
a800795a15 Merge "Hotspot Tile: longclick should open Tethering settings" am: 96c4f1a21e am: 4e82bf6c51
am: 55345f5c30

Change-Id: I7874cfc1e034577390d5d77ebbdb22358de57b47
2017-02-07 00:17:43 +00:00
Casey Burkhardt
edb54686c2 Merge "Initial implementation of Nav Bar Accessibility Button" 2017-02-07 00:14:49 +00:00
Miao Wang
ffa46b2053 Merge "Remove uncessary dependency of libhwui" am: df36be5f17 am: eebd7d7970
am: 558e5dac4d

Change-Id: I99b2fded709c63c71fd9d9f02020a986e3025fa6
2017-02-07 00:12:49 +00:00
Andreas Huber
0e686542e6 Merge "Fixes Treble marshaling of strings embedded in structures from Java" am: 97fca8c035
am: 0bae9b1406

Change-Id: I0eb29e3e80243a958aa2520924ea9ad859034cdf
2017-02-07 00:12:13 +00:00
Pavlin Radoslavov
b7067e2b6c Merge "Add a mechanism to configure the default A2DP codec priorities" am: acf34d8b62
am: cd6e0ee19d

Change-Id: I6fb8a3a35451cf2d1e228466ef4a4d4e89d1d4ca
2017-02-07 00:10:21 +00:00
Jason Monk
55345f5c30 Merge "Hotspot Tile: longclick should open Tethering settings" am: 96c4f1a21e
am: 4e82bf6c51

Change-Id: I39d311e1b455a7a3e53ac8c1b12d1d67b07972ee
2017-02-07 00:09:14 +00:00
Jack Yu
46c9c133e0 Merge "Renamed voiceNetworkStateChanged and dataNetworkStateChanged" am: 84f97e21b2 am: 7eac8ec7c1
am: 84e84a73b7

Change-Id: I9aab25b14a5774ff5c7d64c5bc6a8aa5490d9ec0
2017-02-07 00:08:12 +00:00
Miao Wang
558e5dac4d Merge "Remove uncessary dependency of libhwui" am: df36be5f17
am: eebd7d7970

Change-Id: I3e7b282340259eaad71569e8a15f5028852852ee
2017-02-07 00:08:05 +00:00
Suprabh Shukla
e3745eed8b Deprecating secure setting install_non_market_apps
Apps targetting Android O or higher should use the new api
canRequestPackageInstalls in package manager. The secure setting
INSTALL_NON_MARKET_APPS which was used is set to 1 to make the
change transparent to apps who are already querying for this setting's
value.

Test: adb shell am instrument -e class\
'com.android.providers.settings.InstallNonMarketAppsDeprecationTest' -w\
'com.android.providers.setting.test/android.support.test.runner.AndroidJUnitRunner'

Bug: 33947615

Change-Id: Ie38d130bfccd022483a566270fce071acbdb00b7
2017-02-06 16:08:00 -08:00
Tyler Gunn
efeae9bca4 Merge "Self managed CS implementation." am: d736a6b2c2 am: 6bd991b3d2
am: 6a643c3a60

Change-Id: I43f59846ecc7601730aa3a15b106292d7ace0df0
2017-02-07 00:05:09 +00:00
Selim Cinek
9212de8f87 Moved the scrolling logic away from the onDraw
Having the scrolling animation in onDraw and directly
Updating the notifications there could lead to multiple
issues:
1. Certain state might not be up to date since a layout
Was still pending
2. The logic for drawAsSrc could lead to schmutz on the
Screen since the scrim view has already drawn.

Test: add notifications scroll
Change-Id: Id9ae562c1e4b353d269de755f491900a6073c5d8
Fixes: 34631572
2017-02-06 16:04:28 -08:00