306791 Commits

Author SHA1 Message Date
Jason Monk
f5c7778c7d Merge "resolve merge conflicts of a800795a1520 to master" 2017-02-07 14:02:22 +00:00
Esteban Talavera
bfb666da53 Unhide getLockTaskPackages
getLockTaskPackages is currently hidden, and can only be
called by a device or profile owner, which doesn't make
much sense. Unhidding it to be consistent with the rest
of the DevicePolicyManager APIs that have a getter for
each setter.

Bug: 34614754
Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testLockTask_affiliatedSecondaryUser
Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testLockTask_unaffiliatedUser
Test: Test:  cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testLockTask_deviceOwnerUser
Change-Id: I6e03c2f47c0f9e7a635e798a1bf7f131a8e37c65
2017-02-07 12:01:20 +00:00
Filip Pavlis
61fc0d47ff Fix transitions between single and multi-pane.
Transitions in and out of multi-window were causing navigation history
losses + incorrect views to be displayed. The history loss was caused by
the fact that single-pane mode was using Activities but multi-pane mode
was using Fragments. Translating history between those two would be
challenging. Because of that Fragment approach was also applied to
single-pane mode. That required some changes in back press handling and
initial logic when creating the PreferenceActivity.

Test: Separate CTS CL being submitted along this one, see the topic.
Bug: 32201932
Change-Id: I5e6a6a21c34e813d1c3522ae7f5e33f43887c602
2017-02-07 11:51:51 +00:00
Rubin Xu
7226c7dc9f Fix uri permission grant on remote bug report uri
System server is no longer allowed to grant uri permission directly. As a result
we use grantUriPermissionFromIntent() to grant permission from the shell UID,
who is the owner of the bug report content.

Also fix a security bug where the broadcast to notify user consent of remote
bug report mismatches the <protected-broadcast> definition, causing it to be
sendable by anyone.

Bug: 34159108
Test: manual - Install TestDPC and request bugreport, try accept and decline
      once the report is ready (Bullhead).

Change-Id: I66e3f2a16d4547549f09d3c96d52aed2330caedf
2017-02-07 11:30:20 +00:00
Andrei Stingaceanu
155c3a88ac Merge "Clickable spans - trigger onClick onSingleTapUp" 2017-02-07 11:19:53 +00:00
Diego Perez
c0919ba4cb Upgrade thumbnails size by 4x
Test: Updates existing tests
Change-Id: I822ea4b35ee56b8c2e193b7123e6e99719499359
2017-02-07 11:10:57 +00:00
Diego Perez
abb080d749 Fix support for enum attributes in BridgeContext
Test: Updated BridgeXmlPullAttributesTest
Bug: http://b.android.com/231347
Change-Id: I5fd8b46155ccea6c9b65787f311a0887fa4b4806
2017-02-07 10:29:09 +00:00
TreeHugger Robot
c15add0040 Merge "Extend permissions of cameraserver" 2017-02-07 10:13:09 +00:00
Yohei Yukawa
87ca8406d4 Propagate StartInputReason to attachNewInputLocked
As a preaparation to work on Bug 35079353, this CL makes it clear that
IMS#startInput()/IMS#restartInput() can be also be triggered by
IMMS#onSessionCreated().

By doing this, we can now assume that each
IMS#startInput()/IMS#restartInput() event has always one corresponding
StartInputReason. In a subsequent CL, we will pass this to the IME
process (and to the app process) for further traceability.

Test: no behavior change.
Bug: 35079353
Change-Id: I604e35b023d27b77126cd70fe068dc6b5edc2611
2017-02-07 00:13:14 -08:00
Jaewan Kim
620f72841f Merge "Add oneway keyword for the IOnMediaKeyListener" 2017-02-07 07:59:25 +00:00
Yuichi Araki
fd62c58ede Merge "Fix doc for setReparentWithOverlay" 2017-02-07 07:35:48 +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
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 a800795a1520 to master
Test: treehugger
Change-Id: I1f4743288021546344966c2b3ca1ee33c73667a8
2017-02-06 20:25:11 -05: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