310599 Commits

Author SHA1 Message Date
Kenny Guy
d49386eaa5 Merge "DO NOT MERGE Clear calling identity before checking if user is running." into nyc-dev am: 2df7f9f9c0 am: c5d86736d3 am: 00b77edec0
am: 11c5ff0399

Change-Id: I649c06ea01b23db5668fa0694528cffd823b8d7b
2017-03-14 12:21:00 +00:00
Kenny Guy
11c5ff0399 Merge "DO NOT MERGE Clear calling identity before checking if user is running." into nyc-dev am: 2df7f9f9c0 am: c5d86736d3
am: 00b77edec0

Change-Id: I16ea6b1c11cde1b9491826d7e95dc9bf3a45458b
2017-03-14 12:16:23 +00:00
Kenny Guy
00b77edec0 Merge "DO NOT MERGE Clear calling identity before checking if user is running." into nyc-dev am: 2df7f9f9c0
am: c5d86736d3

Change-Id: I0886d46f74fec980eb8bd6c99d8b647e294bcb21
2017-03-14 12:11:54 +00:00
Kenny Guy
c5d86736d3 Merge "DO NOT MERGE Clear calling identity before checking if user is running." into nyc-dev
am: 2df7f9f9c0

Change-Id: I9ca23aa395e0120413a60174e9b7ef44d91a90b1
2017-03-14 12:07:26 +00:00
Kenny Guy
2df7f9f9c0 Merge "DO NOT MERGE Clear calling identity before checking if user is running." into nyc-dev 2017-03-14 12:01:57 +00:00
Erik Kline
c6f796aa91 Add comment with packet tracker debugging tip
Test: as follows
    - built (bullhead)
    - flashed
    - booted
    - "runtest frameworks-net" passes
    - "adb shell dumpsys wifi ipmanager" shows the debugging tip

Change-Id: Ifcccbdd81a0fc8beb7801ec7c3f78e8a941bc72b
2017-03-14 20:03:14 +09:00
TreeHugger Robot
376c6471da Merge "Associate rotation watchers with displays" 2017-03-14 08:30:05 +00:00
Ian Pedowitz
b73ea72723 Merge "Revert "remove LinearTransform from libutils"" 2017-03-14 08:15:42 +00:00
Ian Pedowitz
b80f086f69 Revert "remove LinearTransform from libutils"
This reverts commit d4d6167f614a9001d9827a8634a26b5e9445a22c.

Bug: 36206160
Test:  Fugu compiles, didn't before the revert
Change-Id: I2b0d3a05546ee2605555a9aa7ae028f2baeaf439
2017-03-14 08:11:32 +00:00
TreeHugger Robot
1f5c182162 Merge "Fix a few auto fill ussues" 2017-03-14 06:51:02 +00:00
Erik Kline
0df5ea973d Merge "Address some comments on IpManagerTest" am: b2afa1ede5 am: dea2371e71
am: eb04c52063

Change-Id: I8716a2f49c6adec97b260c32d65d53414068e41d
2017-03-14 06:17:39 +00:00
Erik Kline
eb04c52063 Merge "Address some comments on IpManagerTest" am: b2afa1ede5
am: dea2371e71

Change-Id: Iac9eccca662fccc2da7d81c6d86d1623cccef342
2017-03-14 06:13:10 +00:00
Alex Deymo
4c4936f425 Merge "iot: Grant all runtime permissions for installed apks." 2017-03-14 06:09:53 +00:00
Erik Kline
dea2371e71 Merge "Address some comments on IpManagerTest"
am: b2afa1ede5

Change-Id: Ic986c23c693757b8311e0de0c0a94281db67f62d
2017-03-14 06:08:34 +00:00
Joe LaPenna
cf5ce8c27a Merge "Mark NetworkScoreManager.requestRecommendations hidden." 2017-03-14 06:01:59 +00:00
Treehugger Robot
b2afa1ede5 Merge "Address some comments on IpManagerTest" 2017-03-14 06:00:35 +00:00
Svet Ganov
2f8fb1f62f Fix a few auto fill ussues
1. Ensure clicking on a focused view brings up autofill if needed

2. Notify the autofill manager in a couple of cases we missed

3. Renamed the AutofillManager app facing APIs to better reflect what
    they do and added a API for the app to cancel the autofill interaction

4. Fix view structure dispatch where the ordering of children for autofill
    was mixed with ordering of direct view children - the autofill children
    may be indirect as views can be marked not important for autofill

5. Show scrollbars only if there are more fill options than want is shown

6. Show only three fill options and the rest can be accessed with a scroll

7. Remove the list divider to allow fill items to control all fill window content

8. Renamed the autofill manager internal service classes to xxAutofillxx

9. Fixed a comment that was not addressed in a previous CL

10. Showing max three fill options - rest needs a scroll

11. Make sure fill UI shown when filter with no matches is changed
      to filter with some matches

12. Make sure the fill window has a shadow

Test: Autofill CTS tests pass and manual

bug:36038929
bug:36040101
bug:36149166
bug:36034681
bug:36126001
bug:36035654

Change-Id: Ic8726146fc3c0a19d3e536becdd63fb65622136e
2017-03-13 21:57:10 -07:00
TreeHugger Robot
9e9f86199a Merge "Unhide Settings#ACTION_NIGHT_DISPLAY_SETTINGS" 2017-03-14 04:55:46 +00:00
Donghyun Cho
f24d7255c2 Merge "CEC: Revisit the behavior of HDMI_SYSTEM_AUDIO_ENABLED" 2017-03-14 04:54:38 +00:00
TreeHugger Robot
67916b86e9 Merge "Dont dispatch a11y events that have no subscribers" 2017-03-14 04:35:38 +00:00
Jim Miller
4a70267319 Fix fingerprint navigation after entering lockout.
The code was leaving the fingerprint driver in an authenticating state,
which means the sensor will continue looking for a fingerprint and
not enter navigation mode. The fix stops fingerprint when we
detect the lockout state.

Test: manual

Fixes bug 36103875

Change-Id: Ic8dc04e0acb731e19a5f4c6824a61c80bdbbb2c4
2017-03-13 21:18:04 -07:00
Erik Kline
246bc1f795 Address some comments on IpManagerTest
Test: as follows
    - built (bullhead)
    - flashed
    - booted
    - runtest frameworks-net passes
Bug: 26991160
Change-Id: Ib543874188537e31422206d67d1760762a7c85cd
2017-03-14 13:02:49 +09:00
Erik Kline
a93f236c73 Merge "Skeleton of an IpManagerTest" am: db4333a2c2 am: cf07e0d541
am: 4e8ae3eddc

Change-Id: I25dd93146efe7ce1cd9cb81da19dcb44afc96bd3
2017-03-14 03:25:04 +00:00
Erik Kline
4e8ae3eddc Merge "Skeleton of an IpManagerTest" am: db4333a2c2
am: cf07e0d541

Change-Id: I9b0ed1aff8ba7d5465bff3d6fa8f9048153c8a44
2017-03-14 03:19:56 +00:00
Erik Kline
cf07e0d541 Merge "Skeleton of an IpManagerTest"
am: db4333a2c2

Change-Id: I5817c2458c222afb85389deaf22b43d245577b2a
2017-03-14 03:11:15 +00:00
Treehugger Robot
db4333a2c2 Merge "Skeleton of an IpManagerTest" 2017-03-14 03:02:20 +00:00
Calin Juravle
2dfc1b3e12 Add missing return in DexManager
Harmless issue but which can spam the logs.

Test: mostly manual since the check is buried deep inside and cannot be
verified accurately. I added another test to DexManager to stress that
code path and then checked the logs.

Bug: 36117123
Change-Id: I1a878a200f3f726dfaa85f1bed1398acc8dce979
2017-03-13 18:44:11 -07:00
TreeHugger Robot
32d08a1440 Merge "BatteryStats: Prevent double-detaching Counter" 2017-03-14 01:34:26 +00:00
TreeHugger Robot
6bac4bfb1a Merge "Fix java-doc reference" 2017-03-14 01:28:26 +00:00
Andrii Kulian
35fa3c26ad Associate rotation watchers with displays
Displays can be rotated separately and rotation watcher clients
are only interested in rotation of some specific display. This CL
adds displayId to rotation watchers and only informs them about
changes on their display.

Bug: 34242678
Test: Manual and debug.
Change-Id: If0f03804da0392c2b14a4e7c2d6a06068ad8760b
2017-03-13 18:27:24 -07:00
Dmitry Dementyev
5159f439c9 Use opPackageName to filter accounts in getAccountsAsUserForPakage
method.

Allow authenticators use getAccountsByTypeForPackage with null account
type.

Test: manual.
Change-Id: I47679f522a6c03c3d27f814b80b6f10530c31014
2017-03-13 18:24:17 -07:00
Justin Klaassen
058760737f Unhide Settings#ACTION_NIGHT_DISPLAY_SETTINGS
Bug: 35356645
Test: adb shell am start -a "android.settings.NIGHT_DISPLAY_SETTINGS"
Change-Id: I8f725c4e4190e849d9160f09d2ca79f1987fc93a
2017-03-14 01:22:08 +00:00
fionaxu
5b30456b44 Merge "carrier default app notification polish" am: b2bb98e62d am: 921a49f7f8
am: 7c825ee40d

Change-Id: I2542b486de47071837407d1bb94ba89da0fb283a
2017-03-14 01:20:28 +00:00
Erik Kline
aa95ae57ec Skeleton of an IpManagerTest
Test: as follows
    - biult (bullhead)
    - flashed
    - booted
    - runtest frameworks-net passes
Bug: 26991160
Change-Id: Idddddf0c1a7a8d0a8acff8a5526b02a533d5f3ec
2017-03-14 10:19:52 +09:00
fionaxu
7c825ee40d Merge "carrier default app notification polish" am: b2bb98e62d
am: 921a49f7f8

Change-Id: I318953e330252694fb64cde9d2f5e8a540384a1c
2017-03-14 01:15:46 +00:00
fionaxu
921a49f7f8 Merge "carrier default app notification polish"
am: b2bb98e62d

Change-Id: I78101dd7dc4bd7f222c5e6cc095b7179ce03f362
2017-03-14 01:10:51 +00:00
TreeHugger Robot
84505af39b Merge "Provide proper rect in animation spec for transition to assistant stack." 2017-03-14 01:08:33 +00:00
Treehugger Robot
b2bb98e62d Merge "carrier default app notification polish" 2017-03-14 00:55:06 +00:00
Eugene Susla
ef4351cc72 Dont dispatch a11y events that have no subscribers
This allows to avoid A11yManager -> A11yManagerService IPC, when there's no
subscribers to a given event

Test: steps:
  - Enable A11yManager.DEBUG
  - Navigate through a few random activities
  - In logcat, ensure log messages are present, notifying that certain events
  won't be dispatched
Change-Id: Ia019fb66053f10095b3651407d09de8e89cdd227
2017-03-13 17:51:04 -07:00
TreeHugger Robot
b324c25794 Merge "No direct Uri grants from system." 2017-03-14 00:38:14 +00:00
Jean-Michel Trivi
ab2d9315d1 Permission enforcement for A11y volume changes
Make modifying the STREAM_ACCESSIBILITY volume conditional
  to have the BIND_ACCESSIBILITY_SERVICE permission.
Add BIND_ACCESSIBILITY_SERVICE permission to sysUI.

Test: cts-tradefed run cts -m CtsMediaTestCases -t android.media.cts.AudioManagerTest#testAccessibilityVolume
Bug: 34379420
Bug: 30448020
Change-Id: I9f26affccd953bd8473d06822857edf92fef4ba8
2017-03-14 00:26:16 +00:00
Philip P. Moltmann
55223b48f0 Fix java-doc reference
Test: Built
Change-Id: I5171d23145bfddc1e36b8e579c208f73472a0da4
2017-03-13 16:36:32 -07:00
Aurimas Liutikas
9a28a0970d Restore TimePickerDialog#onClick behavior.
onClick used to dismiss the dialog recording the set time.
In ag/1831151 I removed handling of BUTTON_POSITIVE as the button
clicks were now handled via click listener set in show(). However,
onClick can be also called programatically and not just via clicking
the button. This CL restores that behavior. It will skip validation
and use the last valid hour and minute.

Bug: 36037351
Test: TimePickerDialogTest#testOnClick now passes
Change-Id: I15952dadab0c7b73ae5fecb1539edf5ebddec68c
2017-03-13 16:28:05 -07:00
Rob Carr
10dd69794b Merge "SurfaceView: Update matrix when buffer size changes." 2017-03-13 23:22:13 +00:00
TreeHugger Robot
0de9e5ca3d Merge "Lower-overhead version of LockGuard." 2017-03-13 23:21:35 +00:00
fionaxu
7c4ad78907 carrier default app notification polish
change notification string and app name

Bug: 36002256
Test: Manual
Change-Id: Iec2658850522585157bdc7edd7330ac930bf751d
2017-03-13 16:09:43 -07:00
Chad Brubaker
b64daad733 Explicitly disallow Instant App admins
Instant Apps have no business being device admins, reject any attempt to
install one as an admin.

Bug: 33387067
Test: None currently -- Instant apps already cannot request becoming
device admin.

Change-Id: Ia1daaff659990ff25f16e8cbad240747b67242e2
2017-03-13 15:48:42 -07:00
Adam Lesinski
5f212c86a4 BatteryStats: Prevent double-detaching Counter
Detaching a Counter from a TimeBase means you can't use it anymore.
Only newly constructed Counters are automatically attached to a TimeBase.

Bug: 34200689
Test: make FrameworkCoreTests && adb install ... && adb shell am instrument -w -e class com.android.internal.os.BatteryStatsSensorTest com.android.frameworks.coretests
Change-Id: I9309000d5625aa6fe61a3c05f135e5828137d8ce
2017-03-13 22:39:24 +00:00
Ben Lin
227e6e8387 Fix whitespace.
Change-Id: Ie37dc21c629e1bccaed5e338bd8381aa82bc1aec
2017-03-13 15:36:24 -07:00
Robert Carr
511719f567 SurfaceView: Update matrix when buffer size changes.
This restores the N behavior where RT synchronization
was broken for buffer size changes.

Bug: 36180927
Bug: 28866173
Test: Manual. Will follow up once dechaselisted.
Change-Id: I31c4f83858a096af0dd73611ed120861911fc9d9
2017-03-13 15:28:41 -07:00