Commit Graph

83177 Commits

Author SHA1 Message Date
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
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
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
Lorenzo Colitti
a09c06a6c1 Merge "Actually @hide unwanted capability methods." into pi-dev 2018-04-24 21:20:25 +00:00
Phil Weaver
6f8ec1fd8c Copy links to orginal text in a11y node info
Not doing this copy results in us keeping
mOriginalText around. That is a CharSequence that
can contains Spans that reference other Views and
other expensive stuff.

Fixes: 78511639
Fixes: 75602764

Test: make
Change-Id: I977646311167f8d13e1c4a5c8fc38372e6d1ff3c
2018-04-24 10:13:12 -07:00
Alexey Kuzmin
55bdc59c53 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-24 15:25:59 +01:00
Bernardo Rufino
d2e2c3a6e4 Merge "Check self permission in BackupManager#isBackupServiceActive" into pi-dev am: ad8159bea0
am: e348c14524

Change-Id: Ic31eabf98521d0823b6329914809dcfd937e33fe
2018-04-24 05:29:34 -07:00
Bernardo Rufino
e348c14524 Merge "Check self permission in BackupManager#isBackupServiceActive" into pi-dev
am: ad8159bea0

Change-Id: I3500ed3ae311d5df2ddf265a7132ac05d7eb536c
2018-04-24 05:20:29 -07:00
TreeHugger Robot
ad8159bea0 Merge "Check self permission in BackupManager#isBackupServiceActive" into pi-dev 2018-04-24 12:12:53 +00:00
Rubin Xu
b4c0d951bc Merge "Clarify SystemUpdatePolicy" into pi-dev am: 4019c39405
am: 5fbc0e59f5

Change-Id: Ia4f9475bac63504d9332bf576d9e12517e89d23a
2018-04-24 04:20:14 -07:00
Rubin Xu
5fbc0e59f5 Merge "Clarify SystemUpdatePolicy" into pi-dev
am: 4019c39405

Change-Id: I7d9129aaa404940391139acf2f40eca97fda9165
2018-04-24 04:10:58 -07:00
TreeHugger Robot
4019c39405 Merge "Clarify SystemUpdatePolicy" into pi-dev 2018-04-24 10:59:50 +00:00
Bernardo Rufino
2bf65c6e5c Check self permission in BackupManager#isBackupServiceActive
Old method only checked for IPC caller, method isn't an IPC, adding
check for self permission as well.

Bug: 78467264
Test: atest com.google.android.gts.devicepolicy.DeviceOwnerTest#testBackupServiceActive
Change-Id: If9eed90f2deaaf1a4f2376fdf1881e62ee8954fb
2018-04-24 11:41:13 +01:00
TreeHugger Robot
8e2b316e52 Merge "Avoid internal method call and its branching." 2018-04-24 09:43:27 +00:00
Selim Cinek
fe5e954e9e Merge changes from topic "notification_reply_action" into pi-dev am: 53790c1c8f
am: 0744f1d4b1

Change-Id: Ic0fdf693f31edc0402c43451610c051b2d8571cf
2018-04-24 02:37:39 -07:00
Selim Cinek
0744f1d4b1 Merge changes from topic "notification_reply_action" into pi-dev
am: 53790c1c8f

Change-Id: Ia6f227ca49a2004a2346da91cfea4f9a3fa65c47
2018-04-24 02:26:30 -07:00
Kenny Guy
d79d5c9bd6 Merge "Add spinner for smart replies." into pi-dev am: 5f18904a00
am: 06c4122c74

Change-Id: I5a2d775500b0a43eea281592f2325add233e7de1
2018-04-24 02:11:49 -07:00
Selim Cinek
53790c1c8f Merge changes from topic "notification_reply_action" into pi-dev
* changes:
  Cleaned up the paddings of the messaging layout and smart replies
  Changed the size of the largeIcon
  Moved the disabling from alpha to manual color blending
  Updated the color of the reply button to be more neutral
  Updated the reply icon
  Disabled reply action when pending intents are cancelled
  Split the reply icon permanently from the right icon
2018-04-24 09:10:38 +00:00
Kenny Guy
06c4122c74 Merge "Add spinner for smart replies." into pi-dev
am: 5f18904a00

Change-Id: I2eed8580057fe6565674c376ffd5cbdc5aaf0dcd
2018-04-24 02:02:47 -07:00
TreeHugger Robot
5f18904a00 Merge "Add spinner for smart replies." into pi-dev 2018-04-24 08:51:56 +00:00
Selim Cinek
1c72fa0249 Cleaned up the paddings of the messaging layout and smart replies
Refactored the code such that the reply icon's inset was substracted
from the overall paddings to make all of them consistent. This
will also help in the future as we don't have to update those
paddings manually anymore.

Test: test all sorts of combinations with Notify
Change-Id: I8c6c9951bc73c88d95cb443c8e618c7adca7ebd3
Fixes: 78441535
2018-04-24 14:33:29 +08:00