Commit Graph

83195 Commits

Author SHA1 Message Date
Chad Brubaker
71df621252 Merge "Add nsconfig support for WFA CAs" 2018-04-26 20:47:48 +00:00
Chad Brubaker
8bfbc6e710 Add nsconfig support for WFA CAs
Bug: 78643773
Test: manually verified
Change-Id: Ib7d2b24669074b74bbda7ab7163ef25584e95a11
2018-04-26 19:33:06 +00:00
Mika Raento
c3002d2e78 Merge "Systrace support for NNAPI" am: ecb0302ae9 am: ae359622a6
am: 904e3349a6

Change-Id: I2a543b21868094ca658a67bbcabd97f969bd9e17
2018-04-26 11:35:12 -07:00
Mika Raento
904e3349a6 Merge "Systrace support for NNAPI" am: ecb0302ae9
am: ae359622a6

Change-Id: I7e7ae0ff8560368cdb5719550876ea68630eac84
2018-04-26 11:24:39 -07:00
Mika Raento
ae359622a6 Merge "Systrace support for NNAPI"
am: ecb0302ae9

Change-Id: I16dbb15a6139105b7e04761cdbcffff32b8b1706
2018-04-26 11:12:53 -07:00
TreeHugger Robot
0c0739093b Merge "Use PrinterHashMap in MDNSFilteredDiscovery" 2018-04-26 17:49:13 +00:00
Dake Gu
cc24386a86 Merge "Autofill: new UX for TV and support themes" into pi-dev am: 9ea13ca0b6
am: 1c62e1ef27

Change-Id: Iefa843e82fdc4093b478b2a16ecf407d6a46a888
2018-04-26 10:10:58 -07:00
Dake Gu
1c62e1ef27 Merge "Autofill: new UX for TV and support themes" into pi-dev
am: 9ea13ca0b6

Change-Id: Ia0efba56b4568cab3f2f84bd866480cbbc6f5929
2018-04-26 10:00:09 -07:00
Alexey Kuzmin
94babdc406 Merge "Default vibration amplitude resolution added" into pi-dev
am: 39cfdf1325

Change-Id: Ib14c3c9cdaf3e9217bcbd6b6238a8840cb11a8cc
2018-04-26 09:54:14 -07:00
TreeHugger Robot
9ea13ca0b6 Merge "Autofill: new UX for TV and support themes" into pi-dev 2018-04-26 16:40:40 +00:00
Alexey Kuzmin
59efe9734e Default vibration amplitude resolution added
Test: On sailfish, set vibration intensity to High, lock the phone and
unlock with FPS. Vibration should be played.
Bug: 76129874

Change-Id: I546341e55fa0e6de0af1d22c8e8e07d67670f0b9
Merged-In: I546341e55fa0e6de0af1d22c8e8e07d67670f0b9
2018-04-26 16:27:06 +01:00
Mihai Popa
ce357b9ad2 Merge "[Magnifier-40] Always child of main window" into pi-dev am: 977871a96c
am: 420bf9f8c9

Change-Id: I71d3484758849dab7b14632edadccfb14137d3aa
2018-04-26 04:11:09 -07:00
Mihai Popa
420bf9f8c9 Merge "[Magnifier-40] Always child of main window" into pi-dev
am: 977871a96c

Change-Id: I4b4a74dbf13828b3c2f3df479f418c16d561d935
2018-04-26 04:01:44 -07:00
Mihai Popa
977871a96c Merge "[Magnifier-40] Always child of main window" into pi-dev 2018-04-26 10:48:23 +00:00
Mihai Popa
819e90d3f6 [Magnifier-40] Always child of main window
Previously, we were making the magnifier surface a child of the main
window unless the magnified view was a SurfaceView, in which case we
were setting the SurfaceView to be the parent of the magnifier. In
Chrome, where the magnified views are usually SurfaceViews, this caused
the magnifier to be displayed underneath the omnibox, which was a
terrible user experience when trying to magnify the first lines of text
on a page. This was because the omnibox had a higher Z than the
SurfaceView, and therefore a higher Z than all children of the
SurfaceView (including the magnifier).

This CL sets the parent of the magnifier surface to be the main window's
surface when the magnified view is a SurfaceView as well. Therefore, the
magnifier becomes a sibling of the Chrome omnibox and, by giving the
magnifier a higher Z, it ends up being rendered on top.

Bug: 77926365
Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: Ic5b5f6ca687db8b5d842f0ab20eac70f1fd2f85e
2018-04-26 10:58:31 +01:00
Mika Raento
6a30ff8326 Systrace support for NNAPI
Change-Id: Ie73d28937eba33e2d90f1447f17fd6d8e5719a65
Bug: 78137932
Test: mm
2018-04-26 09:34:12 +01:00
Lei Yu
15214bbe42 Merge "Add ADAPTIVE_BATTERY_MANAGEMENT_ENABLED" into pi-dev am: 4620d9b3a3
am: a4940ae0b2

Change-Id: I0c8c974b880a0e0a7cad7edbc1391d578c018599
2018-04-25 17:14:58 -07:00
Lei Yu
a4940ae0b2 Merge "Add ADAPTIVE_BATTERY_MANAGEMENT_ENABLED" into pi-dev
am: 4620d9b3a3

Change-Id: I4890f4b4e1f8dbcf144b2e613165382d67b70de3
2018-04-25 17:02:26 -07:00
TreeHugger Robot
4620d9b3a3 Merge "Add ADAPTIVE_BATTERY_MANAGEMENT_ENABLED" into pi-dev 2018-04-25 23:37:43 +00:00
Makoto Onuki
906bf6c91a Merge "Make "Want to start battery saver?" dialog better." 2018-04-25 23:23:05 +00:00
Dianne Hackborn
0b7bbdb60d Merge "Work on issue #78480444: Start tracking uid state in app ops" into pi-dev am: fcefeb25ac
am: 510aab7583

Change-Id: Idb3a115f87d2abe3974412111b56f8071f7d6dda
2018-04-25 14:21:05 -07:00
Dianne Hackborn
510aab7583 Merge "Work on issue #78480444: Start tracking uid state in app ops" into pi-dev
am: fcefeb25ac

Change-Id: I11aee7e90d9ce9680933e2d3433a0159513c435c
2018-04-25 14:11:58 -07:00
Dianne Hackborn
fcefeb25ac Merge "Work on issue #78480444: Start tracking uid state in app ops" into pi-dev 2018-04-25 20:59:04 +00:00
Makoto Onuki
e8bbf95cdf Make "Want to start battery saver?" dialog better.
- Don't line-break in "Battery" (only in English)
- Add "Learn more" link.

Bug: 78261259

Test: Manual test with:
- adb shell dumpsys battery unplug
- adb shell settings delete secure low_power_warning_acknowledged
- Enable battery saver
- Make sure the link is clickable if a link is set.
- Make sure there's no "learn more" link if the link is not set in strings.xml

Cherry picked I83364f628dd596a4d50bf2aca4db7cbfe7cf4909 and manually resolved conflict.

Change-Id: Icf6d4e62d8cb3556561f992afc45aaea868bce0e
2018-04-25 13:55:48 -07:00
Nathan Harold
37baab43f7 Merge "Rework Exception Handling for IpSecManager" into pi-dev am: 16c671dc9a
am: 23d8eed9de

Change-Id: Ic1f560070d12f3bdeb5c07316aad7ebed9719f6f
2018-04-25 12:01:34 -07:00
Philip P. Moltmann
8f65cc365f Use PrinterHashMap in MDNSFilteredDiscovery
Before MDNSFilteredDiscovery used the ip-addresses to remove printers,
but this did not work as once the nsd service is lost, you cannot resolve
it anymore. Hence do the same thing as the other plugins, and remove a
lost service if the name matches.

Also do not try back when the callbacks are already gone.

Fixes: 70622095
Test: Removed Wifi when print service recommendations were shown and saw
      all recommendations (including samsung) to go away. Without this
      change the samsung service never realized when printers went away.

Change-Id: I7371ef00d626738741d39a2f3669497bfc9fd080
2018-04-25 11:54:38 -07:00
Nathan Harold
23d8eed9de Merge "Rework Exception Handling for IpSecManager" into pi-dev
am: 16c671dc9a

Change-Id: I9c1acdc79053c70a8484935f61a537379b9be927
2018-04-25 11:51:00 -07:00
Derek Sollenberger
c18bcee38f Merge "Temporarily allow StackView to use a canvas.clipRectUnion" into pi-dev am: 7a7b2369fe
am: 8f0335fdec

Change-Id: Id22c0ad948b9aecfc0844ab0ad9b0d9eb376febb
2018-04-25 11:34:51 -07:00
Nathan Harold
16c671dc9a Merge "Rework Exception Handling for IpSecManager" into pi-dev 2018-04-25 18:34:10 +00:00
Phil Weaver
d2b4be098d Merge "Add config value for fingerprint gesture support" into pi-dev am: 3f9aaad4dc
am: 48de181270

Change-Id: Ie857bd953d1005d3e17e17dbf1fb5b0a4234f5d9
2018-04-25 11:28:32 -07:00
Derek Sollenberger
8f0335fdec Merge "Temporarily allow StackView to use a canvas.clipRectUnion" into pi-dev
am: 7a7b2369fe

Change-Id: I537ec61d77a42d2d7ccca11cc3234cd0e18fbf27
2018-04-25 11:09:54 -07:00
Phil Weaver
8228a8997d Merge "Copy links to orginal text in a11y node info" into pi-dev am: 0e90cf29c7
am: 591ab1b8fc

Change-Id: I0a6d47363f3e557ef1b88a4b1ee1a0851e3ade23
2018-04-25 11:05:53 -07:00
Phil Weaver
48de181270 Merge "Add config value for fingerprint gesture support" into pi-dev
am: 3f9aaad4dc

Change-Id: I5256a96fe10bf1d7f23af94281926ae17958640e
2018-04-25 11:00:50 -07:00
Phil Weaver
adf1471ef1 Merge "A11y isHeading takes old API into account" into pi-dev am: c364536807
am: e22eb1d0a3

Change-Id: Ia15ee268abf86293e0859aebc62665ca9a5d38e0
2018-04-25 10:57:47 -07:00
Phil Weaver
591ab1b8fc Merge "Copy links to orginal text in a11y node info" into pi-dev
am: 0e90cf29c7

Change-Id: I6e389c1a89cb3a5534139844843d6c0a2cb7b51c
2018-04-25 10:55:15 -07:00
Dake Gu
36b86c28f8 Autofill: new UX for TV and support themes
1. Define default Themes for autofill window and save dialog.
   (http://go/theme_autofill). Phone uses light themes, TV uses
   dark themes.
2. Apply autofill theme to RemoteViews passed from autofill service.
   So this can make sure the textColor of RemoteViews matches
   the background of autofill theme uses.
   Updated public javadoc that autofill service should not
   hardcode color values.
3. A new TV ux that occupies half screen height (go/autofill-for-tv).
   TV autofill now passes unhandled physical keyevent to app window
   in the same way phone/tablet does.
4. Fixed ATV autofill window to be SYSTEM_DIALOG, so it wont be
   clipped by app activity window (DialogLauncherActivityTest).

Bug: 71720680
Bug: 74072921
Test: CtsAutofillTest

Change-Id: Ib570227b0958b1800e8f0600b8aec36478568d74
2018-04-25 10:49:14 -07:00
Phil Weaver
e22eb1d0a3 Merge "A11y isHeading takes old API into account" into pi-dev
am: c364536807

Change-Id: Id5479bef4a2b173d8388e016a117a68bbe1b062f
2018-04-25 10:47:10 -07:00
TreeHugger Robot
7a7b2369fe Merge "Temporarily allow StackView to use a canvas.clipRectUnion" into pi-dev 2018-04-25 17:36:47 +00:00
Phil Weaver
3f9aaad4dc Merge "Add config value for fingerprint gesture support" into pi-dev 2018-04-25 17:35:28 +00:00
Phil Weaver
0e90cf29c7 Merge "Copy links to orginal text in a11y node info" into pi-dev 2018-04-25 17:35:12 +00:00
Phil Weaver
c364536807 Merge "A11y isHeading takes old API into account" into pi-dev 2018-04-25 17:34:27 +00:00
Makoto Onuki
fc7e2cff84 Merge "DO NOT MERGE Make "Want to start battery saver?" dialog better." into pi-dev
am: 6f79bd0019

Change-Id: I452931c53e1ed5b86b8389f120b9ebb3b4059ca3
2018-04-25 10:13:18 -07:00
TreeHugger Robot
c078e6b6fc Merge "Add @TestApi to KeyEvent.actionToString(..)" 2018-04-25 16:12:56 +00:00
Makoto Onuki
778ce66697 DO NOT MERGE Make "Want to start battery saver?" dialog better.
- Don't line-break in "Battery" (only in English)
- Add "Learn more" link.

Bug: 78261259

Test: Manual test with:
- adb shell dumpsys battery unplug
- adb shell settings delete secure low_power_warning_acknowledged
- Enable battery saver
- Make sure the link is clickable if a link is set.
- Make sure there's no "learn more" link if the link is not set in strings.xml

Change-Id: I83364f628dd596a4d50bf2aca4db7cbfe7cf4909
2018-04-25 15:27:47 +00:00
TreeHugger Robot
cc7dd57414 Merge "Default vibration amplitude resolution added" 2018-04-25 12:39:01 +00:00
Nathan Harold
ddeb90aa9d Rework Exception Handling for IpSecManager
In order to properly support EOPNOTSUPP this CL
applies a consistent approach to handling Exceptions.
Hereafter, all exceptions that aren't of a special
method-specific type (such as SpiUnavailableException)
will all be returned to the calling process unchanged.
At the API call site, the ServiceSpecificException,
which is really an Errno, will be inspected and either
converted to an unchecked exception for types we know,
or it will be converted to an IOException in cases where
that method can return a checked exception. In cases
where we do not expect an errno, we will simply throw
a generic RuntimeException. This means all API calls
will now properly throw UnsupportedOperationException
and may be CTS tested accordingly.

Bug: 72420898
Test: runtest frameworks-net
Change-Id: I4a00e221618896223fcdb4b4279fb14cd14e34d8
2018-04-24 19:04:08 -07:00
Siarhei Vishniakou
4c96a5e2cb Add @TestApi to KeyEvent.actionToString(..)
Currently, it is not possible to use KeyEvent.actionToString(..) in a
CTS test because that API is @hide. However, it would be useful to print
these actions when tests fail. Therefore, add the @TestApi annotation.

Bug: 77803694 36069459
Test: m cts-input-lib CtsHardwareTestCases (under development)
Change-Id: I2d23dbd101cef3f1c6c7a70c521a9dc219797615
2018-04-24 18:02:11 -07:00
Dianne Hackborn
cd1f30b439 Work on issue #78480444: Start tracking uid state in app ops
We now push uid states down from activity manager in to app
ops, and it uses them to keep track of access/reject times for
each uid/package at the various states.

Bug: 78480444
Test: manual
Change-Id: Ia0bc9174b60b4bf0851834961cc48507a6a60951
2018-04-24 16:08:25 -07:00
Lorenzo Colitti
4d121ff87f Merge "Actually @hide unwanted capability methods." into pi-dev am: a09c06a6c1
am: dc86aaa112

Change-Id: I923e5377a1abe761217612452cbfdba752e53de2
2018-04-24 14:50:14 -07:00
Lorenzo Colitti
dc86aaa112 Merge "Actually @hide unwanted capability methods." into pi-dev
am: a09c06a6c1

Change-Id: I80a88123b16c54734306da7e5dc0670972041648
2018-04-24 14:43:06 -07:00