Commit Graph

530366 Commits

Author SHA1 Message Date
dingxiaobo
af48e4d9b2 Avoid MotionEvent no finish raise unnecessary ANR
In Monkey test. if Trackball MotionEvent and FocusEvent come together.
motionEvent will be put to batches , Didn't call onBatchedInputEventPending due to FocusEvent Return early.
So the motionEvent would't be handled and finish, And the related inputChannel would't receive inputevents due to FocusWindow change.
Finally raise unnecessary ANR.

Change-Id: I0d48b28e446dc8bccd98932b4e07200276a38aa8
2020-10-14 15:49:49 +08:00
lucaslin
1305433d33 Fix storing the wrong value of mLockdown in setting
When user is stopped, the Vpn#onUserStopped() will be called and
the value of mLockdown will be set to false then store into
setting.
This is a wrong behavior because user doesn't change it, so for
this kind of case, there is no need to store the value of
mLockdown in setting.
In fact, there is no need to call Vpn#saveAlwaysOnPackage() when
user is stopped because there is nothing changed.

Bug: 168500792
Test: atest FrameworksNetTests
Change-Id: Ie85a347216614b7873bfdf199165d89527ada3a8
Merged-In: Ie85a347216614b7873bfdf199165d89527ada3a8
2020-10-14 14:25:56 +08:00
Chalard Jean
06b3ade011 Fix a typo in a comment
Test: is not necessary for fixing typos in comments
Change-Id: Idf48d2649e728cafda5c1ca32d21102094cf23f5
2020-10-14 04:56:20 +00:00
Taesu Lee
b40a55ccc9 Use TelephonyManager#isEmergencyNumber() instead
Replace deprecated PhoneNumberUtils#isLocalEmergencyNumber() and
isEmergencyNumber() with TelephonyManager#isEmergencyNumber().

Test: Build
Bug: 132703886

Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Change-Id: I232d7f7d23efd963b6d30938f0fa304c90fca8a8
Merged-In: I232d7f7d23efd963b6d30938f0fa304c90fca8a8
2020-10-14 02:31:14 +00:00
Treehugger Robot
9ab252e8ed Merge "Do not send WTF when ETHERNET_SERVICE" am: f03005d5e0 am: e7e458954c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1458804

Change-Id: I7e06f19d39feb659a7345160db443059e4a69912
2020-10-14 01:24:26 +00:00
Treehugger Robot
e7e458954c Merge "Do not send WTF when ETHERNET_SERVICE" am: f03005d5e0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1458804

Change-Id: Ib69c8fde2c2a4daca9ee79de4c14381df8364095
2020-10-14 01:02:24 +00:00
Treehugger Robot
f03005d5e0 Merge "Do not send WTF when ETHERNET_SERVICE" 2020-10-14 00:26:36 +00:00
Wang Han
a5c1ab0cf5 SystemUI: Relax AVC level requirement
* Android only forces AVCLevel 3, and it is common for modern devices
   to use AVCLevel 4. Considered that there is no checks if this level
   is supported, downgrade the requirement to get screen recording work
   on older devices.

Change-Id: I049e72602bdec934470e2313c05f10ca72570c5b
2020-10-14 00:17:13 +00:00
Treehugger Robot
141c011110 Merge "Moved from system API to public API" am: 0a281dd66e am: 5035d227c1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1455152

Change-Id: I9bf4911d7222e62cd33e6b4747ab74a17d5307ad
2020-10-13 22:35:35 +00:00
Andrei Onea
876c40f5b0 Add enabledSince support for compat changes
Keep supporting enabledAfter as well.

Bug: 149103556
Test: atest CompatConfigTest
Test: atest PlatformCompatTest
Test: atest OverrideValidatorImplTest
Change-Id: I7f0d6671430a3548b4a0f297d1db3fca7a49731e
2020-10-13 23:28:16 +01:00
Treehugger Robot
5035d227c1 Merge "Moved from system API to public API" am: 0a281dd66e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1455152

Change-Id: I4e33c54d7f309205e9ade6b361368c7b3bf04759
2020-10-13 22:22:44 +00:00
Treehugger Robot
0a281dd66e Merge "Moved from system API to public API" 2020-10-13 21:51:23 +00:00
Sergii Piatakov
3be6cc03a3 Fix trivial typo in the log message
Test: n/a
Change-Id: I14f59993565e0ee10af7a203a2d76bd617efcefc
Signed-off-by: Sergii Piatakov <sergii.piatakov@globallogic.com>
2020-10-13 21:17:02 +00:00
Makoto Onuki
b547383444 Do not send WTF when ETHERNET_SERVICE
Not all devices have the ETHERNET_SERVICE service, which is expected,
so do not send WTF even when it's not available.

Fix: 169024836
Test: Build

Change-Id: Ia1fa2d1753aa40e1d09996be11082d65afc5458f
2020-10-13 13:17:31 -07:00
Alexander Dorokhine
1e361b9570 Merge "Migrate away from deprecated Truth APIs." am: b65c13a7b9 am: e52360b58f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1457153

Change-Id: I2bee34221667cb52f7a30d54670126c144b31c35
2020-10-13 19:55:35 +00:00
Alexander Dorokhine
e52360b58f Merge "Migrate away from deprecated Truth APIs." am: b65c13a7b9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1457153

Change-Id: I88e2dabdafb941a4f8bab694b3f515fb1d23d7e6
2020-10-13 19:39:20 +00:00
Alexander Dorokhine
b65c13a7b9 Merge "Migrate away from deprecated Truth APIs." 2020-10-13 19:20:53 +00:00
Alexander Dorokhine
6fbec140f2 Migrate away from deprecated Truth APIs.
This is a transitional step towards truth 1.0.1, where these APIs have
been completely removed.

Bug: 168765701
Test: m checkbuild
Exempt-From-Owner-Approval: Cherry-pick of no-op refactor into another branch
Merged-In: I26ab5ab82bb939bbd9553c05387ac8641eb468b4
Change-Id: I26ab5ab82bb939bbd9553c05387ac8641eb468b4
(cherry picked from commit 4697f76edd)
2020-10-13 11:45:45 -07:00
Amy Zhang
ab35de1374 Merge "Add Android Media TV members as owners of the framework/base/media component" am: ce164c0551 am: ef25912ec2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1457758

Change-Id: Ifb2b4900af84c69191a5ee05b77e5b1bdd23d472
2020-10-13 18:18:35 +00:00
Nathan Harold
7e8cbfe8ed Merge "Expose MmTelCapabilities#isCapable() as Public API" am: 784c6a8db2 am: f3fa23f787
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1314566

Change-Id: Ia842bd6f2fd30cdf378b424cf710ba654da06dd4
2020-10-13 18:18:15 +00:00
Amy Zhang
ef25912ec2 Merge "Add Android Media TV members as owners of the framework/base/media component" am: ce164c0551
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1457758

Change-Id: Icd35ce516c9e0e5ce2282d68557ccd772fd4865b
2020-10-13 17:54:47 +00:00
Nathan Harold
f3fa23f787 Merge "Expose MmTelCapabilities#isCapable() as Public API" am: 784c6a8db2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1314566

Change-Id: Id15339f5b11a6f6922ccf57c3e3dac692a889da9
2020-10-13 17:50:25 +00:00
Amy Zhang
ce164c0551 Merge "Add Android Media TV members as owners of the framework/base/media component" 2020-10-13 17:23:35 +00:00
Nathan Harold
784c6a8db2 Merge "Expose MmTelCapabilities#isCapable() as Public API" 2020-10-13 17:14:45 +00:00
Treehugger Robot
71a98897ae Merge "Add Turkish F keyboard layout support" am: b9a205d2ac am: dce913d911
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1457152

Change-Id: I1d09ed0ad21632df32963493e49635f9c2b67d8d
2020-10-13 16:49:34 +00:00
Treehugger Robot
dce913d911 Merge "Add Turkish F keyboard layout support" am: b9a205d2ac
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1457152

Change-Id: I472bb2f57691001a924e2568346bb9607eaf7b17
2020-10-13 16:29:19 +00:00
Treehugger Robot
b9a205d2ac Merge "Add Turkish F keyboard layout support" 2020-10-13 16:16:06 +00:00
Mark Chien
2408daf285 Merge "Allow tethering pick prefix from all of private address range" am: 5b976f3516 am: a303fc56ed
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1436852

Change-Id: Ie44f3b2ebfa51d2c915bd794b6ea0fade0098ecf
2020-10-13 14:01:47 +00:00
Mark Chien
a303fc56ed Merge "Allow tethering pick prefix from all of private address range" am: 5b976f3516
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1436852

Change-Id: Ief2520cd30059542ae3786a36b92198af6739a2a
2020-10-13 13:42:20 +00:00
Mark Chien
5b976f3516 Merge "Allow tethering pick prefix from all of private address range" 2020-10-13 13:12:58 +00:00
Chiachang Wang
2b776052af Merge "Use system api for shell command handling" am: 9c0d523bc0 am: 67daa7f61b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1456126

Change-Id: Id33a233789eb58e6ef5be2d5edf3f504c9b4eb12
2020-10-13 09:50:11 +00:00
Chiachang Wang
67daa7f61b Merge "Use system api for shell command handling" am: 9c0d523bc0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1456126

Change-Id: I322bbe2f711f8c50efe9d50056787c0e60051fbb
2020-10-13 09:29:47 +00:00
markchien
8a8e7e0350 Allow tethering pick prefix from all of private address range
Currently tethering only pick prefix from 192.168.0.0/16. There is no
aviable tethering address if the upstream address is 192.168.x.y/16.
This change allow tethering to pick prefix from any private address
rnages. Now it still pick from 192.168.0.0/16 only to avoid behavior
change. Will have follow up commit to change the configuration.

Bug: 166057846
Bug: 170265597
Test: atest TetheringTests
      atest CtsTetheringTest

Change-Id: Ib6304eb8b4788e9196d0af48e72f00a6bda73a5f
2020-10-13 16:45:09 +08:00
Chiachang Wang
9c0d523bc0 Merge "Use system api for shell command handling" 2020-10-13 08:41:40 +00:00
Chiachang Wang
84dbd61022 Use system api for shell command handling
ConnectivityService should not use ShellCommand since it's @hide
which does not accessible in mainline modules. Replace it with
system api for mainline.

Bug: 170598012
Test: adb shell cmd connectivity airplane-mode enable
Test: adb shell cmd connectivity airplane-mode disable
Change-Id: I47e7a371c19eb18eac643fe9a2ab481bec5743c2
2020-10-13 08:41:24 +00:00
Anton Hansson
03b48e3fbe Remove removed-dex-api generation
Nothing uses these outputs anymore. The compat tools have been
migrated to use a new file in I082d18fc2b8a57ea8c5941d5c955a7970ab9d860.

Bug: 158465496
Test: presubmit
Change-Id: I51a1f3f5e43092f5431358d705379cc33b60b835
2020-10-13 09:38:44 +01:00
Anton Hansson
525db31892 Merge "Remove jdiff_enabled from platform metalava runs" am: 02ca5fcbe7 am: 0e45be9aa5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1454976

Change-Id: Iaba3b83fc0302952408f30bec5f255976510369f
2020-10-13 07:55:35 +00:00
Taesu Lee
16bd38d41a MMS APIs rely on resolveSubscriptionForOperation()
A disambiguation dialog will be shown if default SmsManager is used for
MMS as well.

Bug: 170591590
Test: Manual

Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Change-Id: I86bb70261eb7fecf3e8b72f0df8d2338bab4bb57
2020-10-13 07:26:01 +00:00
Anton Hansson
84ffba267e Have test_current be a union of system and test APIs
Include @SystemApi APIs in the test_current stub jar, while keeping
the @TestApi and @SystemApi API txt files tracked separately.

A side-effect of this change is that string constants of @SystemApi
permissions are no longer inlined in the test api tracking, possibly
because metalava was previously incorrectly peeking at @SystemApi
whereas it is now explicitly forbidden to do so. I don't believe the
API txt change has any practical effects.

Bug: 129133308
Test: presubmit
Change-Id: I23d3c88624ee7599485c3390a0440b78bc18a0a2
Merged-In: I23d3c88624ee7599485c3390a0440b78bc18a0a2
2020-10-13 08:25:03 +01:00
Anton Hansson
0e45be9aa5 Merge "Remove jdiff_enabled from platform metalava runs" am: 02ca5fcbe7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1454976

Change-Id: I474e586e29f50a15a46b0dc66dab48b1871b9f21
2020-10-13 07:24:10 +00:00
Remi NGUYEN VAN
32950484f5 Merge "Use IpUtils, NetworkStackConstants in DadProxyTest" am: 80794b2476 am: 303cd3e30b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440214

Change-Id: I2eb8131309f397a832b16002f7eff702e78dba80
2020-10-13 07:12:10 +00:00
Anton Hansson
02ca5fcbe7 Merge "Remove jdiff_enabled from platform metalava runs" 2020-10-13 07:08:13 +00:00
Remi NGUYEN VAN
303cd3e30b Merge "Use IpUtils, NetworkStackConstants in DadProxyTest" am: 80794b2476
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440214

Change-Id: I2e8d55b7984bccbd5959b7b00fa8c8b24acdb67c
2020-10-13 06:31:32 +00:00
Treehugger Robot
3b458c921c Merge "Add OnLive Universal Controller media buttons mapping." am: 30951b0666 am: 94fc36d8fc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1446730

Change-Id: Ia418515b0c1f4b270cf07885f9c089d8ab146df8
2020-10-13 06:18:37 +00:00
Remi NGUYEN VAN
80794b2476 Merge "Use IpUtils, NetworkStackConstants in DadProxyTest" 2020-10-13 06:14:38 +00:00
Treehugger Robot
94fc36d8fc Merge "Add OnLive Universal Controller media buttons mapping." am: 30951b0666
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1446730

Change-Id: I760c959c891a12b5ea096ed9f8de56209ec45233
2020-10-13 05:59:50 +00:00
Treehugger Robot
30951b0666 Merge "Add OnLive Universal Controller media buttons mapping." 2020-10-13 05:29:15 +00:00
Chris Ye
cba1062ef9 Add Turkish F keyboard layout support
Add keyboard layout support for entering Turkish text. This will be used
for connecting a physical keyboard and typing in Turkishi F layout.

Bug: 141126644
Test: connect USB/Bluetooth keyboard and choose "Turkish F" keyboard
layout, start typing in a input window.

Change-Id: I01eedba03fe961c8e6542ba313849b0344d0e18d
Merged-In: I01eedba03fe961c8e6542ba313849b0344d0e18d
2020-10-12 22:28:11 -07:00
Jack Yu
6f25ca88db Moved from system API to public API
Fix: 170226261
Test: Manual
Change-Id: Icef3bd23dbd79d60c1d8edc5ce8df07e642d146c
2020-10-12 22:25:31 -07:00
TreeHugger Robot
f6470472ca [automerger skipped] Merge "Merge ab/6749736 in stage." into stage-aosp-master am: 1b6030e24c -s ours
am skip reason: Change-Id Iecef31f7bf10ad97b7e0075cf302ae94e248474a with SHA-1 539d92beb7 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12803991

Change-Id: I35256efaa6acc9a9f28371993587f888c1a77252
2020-10-13 03:51:03 +00:00