Commit Graph

91386 Commits

Author SHA1 Message Date
Yohei Yukawa
b1845f317c Deprecate private AsciiCapable protocol
The concept "AsciiCapable InputMethodSubtype" was initially introduced
as a private protocol based on a magic keyword "AsciiCapable"
specified in "imeSubtypeExtraValue" attribute in API level 15 [1],
then became a public API "isAsciiCapable" attribute in API 19 [2].

However, it turns out that there remains one place in InputMethodUtils
where the previous private protocol is still used.

With this CL, InputMethodUtils stop relying on the previous private
AsciiCapable.

 [1]: I1a83b227498073c47567f73566043c273809adc9
      c36905673a
 [2]: Ic3ace4b6e0432d56696bcbc0be336aec1dc744a5
      dc8abf6cee

Fix: 78537996
Test: make doc-comment-check-docs -j
Test: atest InputMethodPreferenceTest InputMethodUtilsTest
Change-Id: I56c0c19878657a41882c2d784e1ac96a52ab33f6
2018-04-24 18:36:23 -07:00
Rubin Xu
43a33477d9 Merge "Make password history hashing more secure" into pi-dev am: 66b6d1c3bc
am: 1e90f0135f

Change-Id: Ie67bb7caa2c1fec8c58d876171586ee88d16409f
2018-04-24 06:32:58 -07:00
Rubin Xu
1e90f0135f Merge "Make password history hashing more secure" into pi-dev
am: 66b6d1c3bc

Change-Id: Iae4f9ca93a193d24b23410c92659d35a50506b4b
2018-04-24 06:22:16 -07:00
TreeHugger Robot
66b6d1c3bc Merge "Make password history hashing more secure" into pi-dev 2018-04-24 13:06:57 +00: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
Selim Cinek
4717d862a0 Updated the color of the reply button to be more neutral
The primaryTextColor wasn't a good fit, because it was
drawing too much attention being pure black. We're now
taking the default color instead. It's also used for
active permissions now.

Test: add notification, look at reply button.
Change-Id: If390c66e927a92a1115250abb7254fafe81b054c
Fixes: 72750728
2018-04-24 13:05:56 +08:00
Selim Cinek
d83203cde4 Disabled reply action when pending intents are cancelled
Previously the user could open inline reply even when the
action was already cancelled. This also enables listening
to pending intent cancellations.

Test: manual
Fixes: 77811784
Change-Id: I4ae164081c6abdeb60a8e78d61bf5e4f26cca1d3
2018-04-24 13:05:53 +08:00
TreeHugger Robot
3efd16607a Merge "Add @NonNull annotation to getDecorView()" 2018-04-24 04:19:19 +00:00
TreeHugger Robot
0827873c47 Merge "Removed applyColorMod method in favor of individually setting properties." 2018-04-24 00:48:54 +00:00
Winson Chung
7f12b45892 Merge "Expose API to hide the IME during a recents animation" into pi-dev am: 6fab40d82c
am: bd41ceda0b

Change-Id: Ieb8eaa08dc2477ca75b7ba58a8e3e715463462e5
2018-04-23 17:35:00 -07:00
Winson Chung
bd41ceda0b Merge "Expose API to hide the IME during a recents animation" into pi-dev
am: 6fab40d82c

Change-Id: I8e70b7ae5d74d3dd85461bb13fcbff16f718d2c0
2018-04-23 17:24:36 -07:00
Fyodor Kupolov
e3d1fd3b79 Merge "Reset binder call stats along with batterystats" into pi-dev am: 46c2b1451c
am: 1494d2b825

Change-Id: Icf345379ab1716cd0398e7eca017ecbbe09f9517
2018-04-23 16:46:23 -07:00
Fyodor Kupolov
1494d2b825 Merge "Reset binder call stats along with batterystats" into pi-dev
am: 46c2b1451c

Change-Id: Icc1749b2e67a9b7015a08dd7ddfb481337531aa9
2018-04-23 16:33:15 -07:00
Winson Chung
a840c328e7 Expose API to hide the IME during a recents animation
Bug: 73285089
Test: Swipe up from app with IME open, ensure that it closes
Change-Id: I95ce59291f11285c853e8b3029638119c21f7e38
2018-04-23 16:20:27 -07:00
TreeHugger Robot
46c2b1451c Merge "Reset binder call stats along with batterystats" into pi-dev 2018-04-23 23:05:31 +00:00
Nader Jawad
e6a6321a92 Removed applyColorMod method in favor of individually setting
properties.

Created dedicated applyXfermode, applyColorFilter and applyAlpha methods
to ensure that properties are not being overwritten unnecessarily

Fixes: 30167384
Test: Re-ran atest CtsWidgeTestCases:ImageViewTest

Change-Id: Ie4a18172dbf222559ace1b740a6c6fdfe33f4dfe
2018-04-23 16:00:49 -07:00
Winson Chung
131ac05712 Merge "Add windowing mode to task snapshot." into pi-dev am: 167710981c
am: ec1e188e67

Change-Id: If2193c37570deb762d7ae74fcbda4c3d9fd61729
2018-04-23 15:46:34 -07:00
Winson Chung
ec1e188e67 Merge "Add windowing mode to task snapshot." into pi-dev
am: 167710981c

Change-Id: I0348be9f7e096e7effc1476f5015d33263a163fe
2018-04-23 15:30:23 -07:00
Winson Chung
167710981c Merge "Add windowing mode to task snapshot." into pi-dev 2018-04-23 22:16:01 +00:00
Sudheer Shanka
53370a7894 Merge "Rate limit battery external stats collection in takeUidSnapshot(s)." into pi-dev am: 6bc6e21be7
am: ec9e20a1d9

Change-Id: Ifbc3b63ce0173c7f066ed3f5a360c0cca53f1814
2018-04-23 15:08:39 -07:00
Sudheer Shanka
ec9e20a1d9 Merge "Rate limit battery external stats collection in takeUidSnapshot(s)." into pi-dev
am: 6bc6e21be7

Change-Id: I50eba3f8c2171c511e0b1ecd3d0e605956e97d24
2018-04-23 14:52:01 -07:00
Sudheer Shanka
6bc6e21be7 Merge "Rate limit battery external stats collection in takeUidSnapshot(s)." into pi-dev 2018-04-23 21:34:57 +00:00
Victor Hsieh
a81b3fec24 Merge "Verify best signature algorithms of all signers" into pi-dev
am: c17a171a7b

Change-Id: I05d0dd847c93fdcd594880bc7743fe31a55d2855
2018-04-23 14:26:41 -07:00
Fyodor Kupolov
8aa51245e9 Reset binder call stats along with batterystats
Test: dumpsys batterystats --reset && dumpsys binder_calls_stats
Bug: 75318418
Change-Id: Ibdbd95468bba876b1f91357b86f7a8d45af2daed
2018-04-23 14:21:20 -07:00
Rob Carr
c593d45451 Merge "ViewRoot: Check Surface validity before initializing renderer from draw()." into pi-dev am: cef96f69d7
am: c595c5c044

Change-Id: I7d364bdb71b47d1400a5db1775966fe6a6daa02b
2018-04-23 13:07:12 -07:00
Rob Carr
c595c5c044 Merge "ViewRoot: Check Surface validity before initializing renderer from draw()." into pi-dev
am: cef96f69d7

Change-Id: I3d7857f31bfe9bba3bde78bef67f08c7b24338c6
2018-04-23 12:43:23 -07:00
Jake Wharton
fe16dfe76d Avoid internal method call and its branching.
This is a simple check that can be done locally.

Test: TextUtilsTest.java
Change-Id: I00f2a4fd087aa98ece2c3aa032e106496663b13f
2018-04-23 15:34:57 -04:00
Winson Chung
a4fa8d5bd4 Add windowing mode to task snapshot.
Bug: 78155683
Test: atest FrameworksServicesTests:TaskSnapshotPersisterLoaderTest
Change-Id: I4e562d818416a30d6759baef37c74b6d9c514a00
2018-04-23 12:25:38 -07:00
Victor Hsieh
8d1553b9b1 Verify best signature algorithms of all signers
The previous implementation does not verify signature algorithms of all
signers.  It's possible that the attacker can take an old apk (with
digest and signature of old algorithm) and add their own signer block
with new/P digest and signature.  In this case, the old implementation
only verifies the attacker's signature, thus the attacker can change apk
content easily.

The solution here is to verify digests of all best signature algorithms
by all signers.

It is expected to increase verification time, if the apk does have
multiple signers with different type of digests.

Test: apks still install
Bug: 78359754
Change-Id: I607edf219c25a2a7adfa27a21a94e9bfefbb6cec
Merged-In: I607edf219c25a2a7adfa27a21a94e9bfefbb6cec
(cherry picked from commit 2f2ced93e3)
2018-04-23 19:22:28 +00:00
Rob Carr
cef96f69d7 Merge "ViewRoot: Check Surface validity before initializing renderer from draw()." into pi-dev 2018-04-23 19:22:18 +00:00
TreeHugger Robot
d0cf9774b0 Merge "Verify best signature algorithms of all signers" 2018-04-23 19:14:21 +00:00
Siyamed Sinir
742c26c07e Merge "Update Emoji.java for emoji 11" into pi-dev
am: 5ee0f5c1d7

Change-Id: Ide0fbd74e531f401b6e3a22b0cb84fb083486994
2018-04-23 11:53:25 -07:00
Sudheer Shanka
e56013aa31 Rate limit battery external stats collection in takeUidSnapshot(s).
Bug: 74146897
Test: atest cts/tests/tests/os/src/android/os/health/cts/SystemHealthManagerTest.java
Test: atest core/tests/coretests/src/com/android/internal/os/BatteryStatsTests.java
Change-Id: I2e01146718c3ce65d230308097622b958cb2897a
2018-04-23 11:38:36 -07:00
Siyamed Sinir
5ee0f5c1d7 Merge "Update Emoji.java for emoji 11" into pi-dev 2018-04-23 18:19:22 +00:00
Fyodor Kupolov
b0ad3dd2c6 Merge "Enabled aggregated per-uid stats collection by default" into pi-dev am: 981d61ddf8
am: adb9a96b8e

Change-Id: I76eb5d2c94af5138232142ef603f7da6c088b2fa
2018-04-23 11:09:00 -07:00
Fyodor Kupolov
adb9a96b8e Merge "Enabled aggregated per-uid stats collection by default" into pi-dev
am: 981d61ddf8

Change-Id: Ibb574c2d32c34e900287de2173a0212aa20ed715
2018-04-23 10:59:49 -07:00