306639 Commits

Author SHA1 Message Date
Felipe Leme
0221887e6a Get rid of VirtualViewDelegate.
VirtualViewDelegate was used by views providing virtual children to:
- auto-fill the chidren
- notify system about children changes

Since the notification logic moved to the AutoFillManager class, it's
kind of an overkill to provide a delegate just for autoFill(); instead,
it's simpler to add a new autoFillVirtual(virtualId, value) method on
View.

BUG: 31001899

Test: manual verification
Test: CtsAutoFillServiceTestCases passes

Change-Id: Ia7670aa665918496a009017a11c3de72c4ed3fa2
2017-02-07 20:05:51 -08:00
Felipe Leme
1bdf3f070b Set autofill id on virtual structures.
ViewStructure.newChild(virtualId) uses the AutoFillId of the parent,
which was not set anymore due do a previous refactoring, and was
causing this method to crash a custom view when
onProvideAutoFillVirtualStructure() was called on it.

Test: manual verification
Bug: 31001899

Change-Id: I602b421b0ec3a926ffdd52253d5b2498c4217d02
2017-02-07 13:50:53 -08:00
Felipe Leme
fb0f360222 Merge "Refined session management so Save can be automatically called." 2017-02-07 17:50:29 +00:00
Bill Yi
7f01089aae Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev am: 7e61e7c585 -s ours
am: fdb6ec0314  -s ours

Change-Id: Ie5eb63649ee976737b3287c19b4c8238e9eb84d7
2017-02-07 17:33:18 +00:00
Bill Yi
750f29ae93 Import translations. DO NOT MERGE am: ca2ead63c9 -s ours
am: 2192d06b21  -s ours

Change-Id: I5d6efc9f948b01823d854393bb4e319866aaa458
2017-02-07 17:32:16 +00:00
Bill Yi
fdb6ec0314 Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev
am: 7e61e7c585  -s ours

Change-Id: I541c140a9244f7671b3a09f19a4e0ff7acef4f0f
2017-02-07 17:28:13 +00:00
Bill Yi
2192d06b21 Import translations. DO NOT MERGE
am: ca2ead63c9  -s ours

Change-Id: I0411d2408480cd60d32c40db1e5c5f59a9d98609
2017-02-07 17:28:07 +00:00
TreeHugger Robot
7e61e7c585 Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev 2017-02-07 17:21:09 +00:00
Makoto Onuki
f34f9736a9 Merge "Fix PSS/USS Average in procstats" 2017-02-07 17:11:45 +00:00
Delphine Martin
3f7bf2e96c Merge "Fix incorrect syntax in Proguard flags" 2017-02-07 15:41:04 +00:00
Clara Bayarri
5edceec2cc Merge "Cache Downloaded Fonts in Typeface" 2017-02-07 15:36:28 +00:00
Esteban Talavera
84e706fb9b Merge "Unhide getLockTaskPackages" 2017-02-07 15:04:48 +00:00
Filip Pavlis
8874d6efda Merge "Fix transitions between single and multi-pane." 2017-02-07 14:46:54 +00:00
Rubin Xu
f810cc9a5b Merge "Fix uri permission grant on remote bug report uri" 2017-02-07 14:40:17 +00:00
Bill Yi
63bfc8312c Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev am: 6654edae49 -s ours
am: 5e1652a7c9  -s ours

Change-Id: I12564fcecc14484b8cf32c669f77bf5f11c0fa87
2017-02-07 14:20:39 +00:00
Bill Yi
b01f312dd0 Import translations. DO NOT MERGE am: 446a66d235 -s ours
am: 9e1b6881a6  -s ours

Change-Id: I5583afd8f110c57fd8cbaa43ca23457b91073b93
2017-02-07 14:19:39 +00:00
Bill Yi
a2dd05c284 Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev am: f3f4f78dc7 -s ours
am: 0e4a8f5f41  -s ours

Change-Id: Ic0894bfb2f8e5d5c9850caf6110e4e24959e6bac
2017-02-07 14:18:49 +00:00
Bill Yi
0cc5fe37a6 Import translations. DO NOT MERGE am: b83f6b6f44 -s ours
am: f8f731cbe6  -s ours

Change-Id: I135bddc74ce28a227a4c2197305be7b5379b2152
2017-02-07 14:17:56 +00:00
Charles He
d2aa0bb0d3 Merge "Fingerprint: get auth id for non-current user." into nyc-mr2-dev am: 15b8313d1b
am: d7d9c0241f  -s ours

Change-Id: I54e46e945fa45b35932efb697b65a3afce34782d
2017-02-07 14:17:06 +00:00
Charles He
f6387d8a51 Fingerprint: get auth id for non-current user. am: aae60473e1
am: 9b734a7c4c  -s ours

Change-Id: I1d37dbf2d5348ed1caa2260a01e0d8449311c6b3
2017-02-07 14:16:05 +00:00
Andreas Huber
74400b2ef4 Merge "Fixes Treble marshaling of strings embedded in structures from Java" am: 97fca8c035 am: 0bae9b1406 am: 0e686542e6
am: 390cd6ceda

Change-Id: I0b1ba7490adaaec8f4eaa7e4afada7425f8c1129
2017-02-07 14:12:09 +00:00
Pavlin Radoslavov
489ce07b81 Merge "Add a mechanism to configure the default A2DP codec priorities" am: acf34d8b62 am: cd6e0ee19d am: b7067e2b6c
am: 537eaf0f6e

Change-Id: I42186a561d59decb0d811b3f5b8d5bf96df53152
2017-02-07 14:05:43 +00:00
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
TreeHugger Robot
c15add0040 Merge "Extend permissions of cameraserver" 2017-02-07 10:13:09 +00: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
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