Commit Graph

509162 Commits

Author SHA1 Message Date
Inseob Kim
419b49ade3 Update sysprop_library API txt
Internal props are no longer stored in the txt file.

Bug: 170693240
Test: m
Change-Id: I698b55d7b22afed71c94ee18fe76f409abc18baa
Merged-In: I698b55d7b22afed71c94ee18fe76f409abc18baa
2020-10-15 10:38:36 +00:00
Treehugger Robot
f184d40178 Merge "Add imports to networking test mapping" 2020-10-15 10:21:25 +00:00
Remi NGUYEN VAN
4ea8a1fbae Add imports to networking test mapping
Ensure that appropriate networking tests are triggered when submitting
changes in the frameworks/base directories.

Change-Id: Ibf8b567fa7721299120b0a6c6836dd770d92a9fc
Test: treehugger runs TEST_MAPPING tests
2020-10-15 09:16:40 +00:00
Woody Lin
16402fc4c3 Merge "Watchdog: break timeout loop via system fatal crash" 2020-10-15 06:44:52 +00:00
Siarhei Vishniakou
0749905967 Merge "Avoid MotionEvent no finish raise unnecessary ANR" 2020-10-14 22:17:19 +00:00
Philip P. Moltmann
9ba1a0d576 Merge "fix broadcast receivers overflow for system_server" 2020-10-14 20:55:14 +00:00
Brad Ebinger
e0ae42884d Merge "MMS APIs rely on resolveSubscriptionForOperation()" 2020-10-14 18:28:48 +00:00
Shuo Qian
1963c4b1c6 Merge "Use TelephonyManager#isEmergencyNumber() instead" 2020-10-14 17:41:18 +00:00
Anton Hansson
ae26decc8e Merge "Have test_current be a union of system and test APIs" 2020-10-14 14:43:03 +00:00
Treehugger Robot
b7aee190a5 Merge "Test conflict notification work when using cached address" 2020-10-14 13:18:58 +00:00
Anton Hansson
83d9ddc6cb Merge "Remove removed-dex-api generation" 2020-10-14 11:48:56 +00:00
Treehugger Robot
59ce8cd45c Merge "Fix storing the wrong value of mLockdown in setting" 2020-10-14 10:57:44 +00:00
Treehugger Robot
0e10d126a3 Merge "Fix a typo in a comment" 2020-10-14 10:54:25 +00:00
markchien
7d5c2cf25a Test conflict notification work when using cached address
This test catch the regression introduced in r.android.com/1432958.

Bug: 1432958
Test: atest TetheringTest

Change-Id: Id0c1afb5563954ffee1f598a3a5de6a245d77a0e
2020-10-14 17:02:29 +08:00
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
f03005d5e0 Merge "Do not send WTF when ETHERNET_SERVICE" 2020-10-14 00:26:36 +00:00
Treehugger Robot
0a281dd66e Merge "Moved from system API to public API" 2020-10-13 21:51:23 +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
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
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
b9a205d2ac Merge "Add Turkish F keyboard layout support" 2020-10-13 16:16:06 +00:00
Mark Chien
5b976f3516 Merge "Allow tethering pick prefix from all of private address range" 2020-10-13 13:12:58 +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
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
02ca5fcbe7 Merge "Remove jdiff_enabled from platform metalava runs" 2020-10-13 07:08:13 +00:00
Remi NGUYEN VAN
80794b2476 Merge "Use IpUtils, NetworkStackConstants in DadProxyTest" 2020-10-13 06:14:38 +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
Woody Lin
c1125934ec Watchdog: break timeout loop via system fatal crash
Request system fatal crash via SysRq when a watchdog timeout loop is
detected. This escapes automatically the device hanging symptom and also
preserves context of system server in memory snapshot.

More details and background: go/break-sys-watchdog-loop

Bug: 141948707
Test: Insert 'sleep_forever()' to block BinderThreadMonitor to reproduce
      watchdog timeout.
Change-Id: I3ae4b33b0d7811764c61663ac3718311b55fd048
2020-10-13 11:15:28 +08:00
Junyu Lai
5d2e89e03d Merge "Support dynamically update IMSI" 2020-10-13 02:41:47 +00:00
Remi NGUYEN VAN
55b503d725 Use IpUtils, NetworkStackConstants in DadProxyTest
The test had TODOs to address to use IpUtils and NetworkStackConstants
classes once they were moved to frameworks/libs/net. This is now done,
so using the new classes.

Bug: 158042941
Test: atest TetheringPrivilegedTests
Change-Id: I536b4506dbc3b42547ba9cb4e7c3c7a3e9459dd1
2020-10-13 11:30:03 +09:00
Treehugger Robot
d4baac7702 Merge changes Ife0b17c2,If37e5c6c
* changes:
  Remove dead code for AnomalyAlarm
  Remove alarm manager dependency from anomalyalarms
2020-10-13 00:28:41 +00:00
Amy Zhang
b02aa376d1 Add Android Media TV members as owners of the framework/base/media
component

Test: make -j44 dist
Bug: 159058358
Bug: 158816517
Change-Id: Ibf6eb62de0b17b9a568941108b49ab54ae577c1c
2020-10-12 16:42:30 -07:00
Sudheer Shanka
114124c348 Merge "Check UID's process state before restricting its network." 2020-10-12 23:31:17 +00:00
Nathan Harold
1ebbc47c0e Expose MmTelCapabilities#isCapable() as Public API
Expose the MmTelCapabilities#isCapable() API to complete
a chain of APIs exposed for debuggability in Android RVC.

Without this API, there is no (public) way for a caller that
receives a capability callback to determine whether a particular
MMTel feature is enabled for a particular IMS Connection.

Bug: 156107100
Test: make update-api && make offline-sdk-docs && make
Test: cts - ImsServiceTest#testCapabilityStatusCallback()
Merged-In: I0a0d72897112460370e6981ae33cef4da6e3ce4b
Change-Id: I0a0d72897112460370e6981ae33cef4da6e3ce4b
(cherry picked from commit 21157d56a9)
2020-10-12 15:11:59 -07:00
Treehugger Robot
9c0f722e2e Merge "Update docs and add nullability annotations" 2020-10-12 22:09:38 +00:00
Brad Ebinger
d70fa41860 Merge "Add READ_PRIVILEGED_PHONE_STATE to TestApi" 2020-10-12 21:53:27 +00:00
Hall Liu
1dc684e4fc Update docs and add nullability annotations
Fixes: 125463584
Test: docs only
Change-Id: I8c39d0e11278d99c6a7364c09b0584797f749b2a
2020-10-12 11:47:50 -07:00
Anton Hansson
374c51141a Remove jdiff_enabled from platform metalava runs
The official API differences report is not produced from the
artifacts this rule creates, but by manually running metalava
with the right txt files.

As there are no other known users of these jdiff files, remove them
for now.

Bug: 158465496
Test: m
Change-Id: Iee9dd1a5d5543f3f629e3631c8224e6bfe4dddcb
2020-10-12 18:49:44 +01:00
Treehugger Robot
a35917822d Merge "Fix guest icon is not clickable after adding user" 2020-10-12 16:14:57 +00:00