Commit Graph

120082 Commits

Author SHA1 Message Date
Robert Chou
69d78722b5 Merge "Unregistering PackageMonitor only when has registered it" am: 132f17ca3e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1456123

Change-Id: I6fdb78c24cf3c09433a2b183dd74c25fd991ec4f
2020-10-15 12:50:05 +00:00
Mathew Inwood
ab5ea0c1c5 Merge "Add HIDDEN_API_POLICY to @TestApi.i" am: c6b54a3a9c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1460404

Change-Id: I735c10c108f33ebb92448dc14bd79e6f4ef50ff5
2020-10-15 12:43:12 +00:00
Robert Chou
132f17ca3e Merge "Unregistering PackageMonitor only when has registered it" 2020-10-15 12:41:10 +00:00
Mathew Inwood
c6b54a3a9c Merge "Add HIDDEN_API_POLICY to @TestApi.i" 2020-10-15 12:03:55 +00:00
Treehugger Robot
f88f3c9f08 Merge "Add imports to networking test mapping" am: f184d40178
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1461982

Change-Id: I835d9c17377cee5adcc5f44cff3e1d4f0774aaa2
2020-10-15 11:07:41 +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
Mathew Inwood
bb935c1c24 Add HIDDEN_API_POLICY to @TestApi.i
This is a cherry-pick from internal master.

Test: cd cts/tests/signature; atest
Bug: 170428909
Bug: 169987505
Merged-In: I68231850a000243cd01ba066585322cab7608884
Change-Id: I68231850a000243cd01ba066585322cab7608884
2020-10-14 13:57:55 +00:00
Treehugger Robot
bcc6e4f4e6 Merge "Fix a typo in a comment" am: 0e10d126a3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1459885

Change-Id: I9174acc91209d83526901587bf4603d61aa30acc
2020-10-14 11:24:43 +00:00
Treehugger Robot
0e10d126a3 Merge "Fix a typo in a comment" 2020-10-14 10:54:25 +00: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
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
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
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
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
TreeHugger Robot
1b6030e24c Merge "Merge ab/6749736 in stage." into stage-aosp-master 2020-10-13 03:31:35 +00:00
Zhuying Li
a67424cf96 Unregistering PackageMonitor only when has registered it
Do not unregistering PackageMonitor when it does not register.

Bug: 162302943
Change-Id: I9496196e80bff8b669539c9c54d39dbbf6ad2dba
2020-10-12 11:13:42 +08:00
Xin Li
986e6eeddf Merge ab/6749736 in stage.
Bug: 167233921
Merged-In: Iecef31f7bf10ad97b7e0075cf302ae94e248474a
Change-Id: I9e9c873bc2e05a0cfe3af0bf74725500f3f108db
2020-10-10 20:38:57 -07:00
Treehugger Robot
64add27a7c Merge "Fix non-inclusive terms in framework device policy logic" 2020-10-09 16:19:46 +00:00
Alison Cichowlas
9e388035c9 Merge "Fix handling of bad image previews." 2020-10-09 13:35:43 +00:00
Remi NGUYEN VAN
e842db3548 Merge "Move IpUtils to frameworks/libs/net" 2020-10-09 00:13:40 +00:00
Brian Stack
2c48ea2f87 Merge "Add UwbManager API Stubs" 2020-10-08 21:53:49 +00:00
Alison Cichowlas
446548446a Fix handling of bad image previews.
When the image preview fails (eg for permissions or timeout) the entire
system area is removed. This prevents the user from using Nearby.

Instead, when the image preview fails, we should hide only the image
preview and leave the rest of the system area intact.

Bug: 168557188
Test: ChooserActivityTest; manual inspection
Change-Id: I49190c1fbc4e25b3d2e2802a90de355bff297f7e
Merged-In: I49190c1fbc4e25b3d2e2802a90de355bff297f7e
2020-10-08 21:03:14 +00:00
Brian Stack
0b216e365c Add UwbManager API Stubs
Adds the initial API stubs for checking a device's Ultra Wideband
capabilities.

Bug: 170323306
Test: Builds

Change-Id: I6bd58a5fcee1deb151f2120ad3b18f5f7554ae8f
2020-10-08 11:51:36 -07:00
Rubin Xu
d40199b5b2 Fix non-inclusive terms in framework device policy logic
Bug: 170188829
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Merged-In: I8b8ab1442c3f592a4e3ce70852025b1b169d5f18
Change-Id: I8b8ab1442c3f592a4e3ce70852025b1b169d5f18
2020-10-08 14:22:47 +00:00
Jakub Pawlowski
9b46151ead Bluetooth: make it possible to advertise service solicitation UUID
Bug: 159827149
Tag: #feature
Test: called the API in test app, verified advertisement content
Change-Id: I3ab43e39bb7fd8fef97e141eeb981419aa3ec35a
2020-10-08 07:26:01 +00:00
Nate Jiang
36d1da8f62 Merge "Update javaDoc to make it consistent" 2020-10-07 22:16:58 +00:00
Treehugger Robot
e7899bcd32 Merge "Bluetooth: Spell mandatory correctly" 2020-10-05 19:55:21 +00:00
Myles Watson
70b5ba179c Bluetooth: Spell mandatory correctly
Bug: 169654068
Test: compilation
Change-Id: Ibb0046180760e27d6991ae17849a7405738b6f01
2020-10-05 11:23:24 -07:00
Remi NGUYEN VAN
6387974158 Move IpUtils to frameworks/libs/net
The utility classes are useful for mainline modules and their tests, for
example IpClientIntegrationTest.

Bug: 168868607
Test: m && atest NetworkStaticLibTests
Change-Id: If2b1613aa18a7990391e2d31cc2951ca93f1cf3c
2020-10-05 14:38:19 +09:00
Steven Moreland
1f125fcd66 Merge "Move AIDL files to declared packages." 2020-10-02 16:37:24 +00:00
Rick Yiu
fe6160ab9c Merge "Revert "Refine documentation for Process.setThreadPriority"" 2020-10-02 12:23:53 +00:00
Rick Yiu
b01d0fe127 Merge "Revert "Implement the ThreadPrioritySetter interface"" 2020-10-02 12:23:53 +00:00
Treehugger Robot
e80c7cb69a Merge "FileBridge: fix fd ownership mismanagement." 2020-10-01 22:35:55 +00:00
Treehugger Robot
403f00bfb8 Merge "Parcel interface token methods @NonNull." 2020-10-01 22:29:23 +00:00
Steven Moreland
844bd1dd1e Move AIDL files to declared packages.
There was a regression in the AIDL compiler recently that removed the
requirement that, like in Java, .aidl unstructured parcelables (these
parcelable declarations) are in directories and files which match their
packages and file names. This CL moves relevant files to the correct
directory required by their type.

Bug: N/A
Test: build
Change-Id: I71f6f714e98e184a02b6bbf3d4f8b0b8c8aee30b
2020-10-01 21:17:52 +00:00
Steven Moreland
414da7912c Parcel interface token methods @NonNull.
These functions have always aborted when there is a null argument
(before, because they used GetStringCritical). Noticed while working
on b/169674485.

Bug: N/A
Test: N/A
Change-Id: Ic24bd26b4c0323fa3ebee78ccf60bbba4627b565
2020-10-01 19:36:14 +00:00
Patrick Baumann
48afc4448c Expose grantImplicitAccess in IPackageManager
This change exposes the method to grant implicit visibility access via
IPackageManager and as a hidden API in PackageManager. This variant of
the method takes a recipient UID and the authority that it should see
and limits access to only the contacts provider on device.

Bug: 158688602
Test: PackageManagerTests
Change-Id: I0050593e4aa734af1a69a40a60746f7cf0ea72df
Merged-In: I0050593e4aa734af1a69a40a60746f7cf0ea72df
Merged-In: I2c80513a5dffa7ad92963e376ea85217f127f39a
2020-09-30 17:52:37 +00:00
Jayant Chowdhary
c681633836 Merge changes I6de585de,Id0f9b5a9
* changes:
  camera2: Remove partial result nodes for error frames.
  camera2: Improve code readability for FrameNumberTracker.
2020-09-28 22:41:56 +00:00
Rick Yiu
e5ae45f7b0 Revert "Implement the ThreadPrioritySetter interface"
Revert submission 1202786-setpriority

Reason for revert: will cause lock contention

Bug: 139521784
Test: build pass
Change-Id: I863fd0c1623ad7fe73a192400389d25bf9e75e90
2020-09-27 03:13:13 +00:00
Rick Yiu
b551e63ea7 Revert "Refine documentation for Process.setThreadPriority"
This reverts commit c3648a82f1.

Reason for revert: will cause lock contention

Bug: 139521784
Test: build pass
Change-Id: Ic10951493ec8dda4e5a5adcbd1c3cb3be3b64782
2020-09-27 03:09:54 +00:00
Jakub Pawlowski
2c1d2c21cf Make BluetoothGattCallback.onServiceChanged public
Bug: 154056389
Test: proper CTS test will be provided
Change-Id: I2c9264910b65d62124c75c3ee3fd0b5bd18a2006
2020-09-26 15:50:37 +00:00
Jayant Chowdhary
47a455af03 camera2: Remove partial result nodes for error frames.
When there's an capture error reported for a frame, remove its nodes in
mPartialResults map node, since they'll not be used by clients of
FrameTracker. This should also reduce slow memory pressure build up
because of mPartialResult growth as and when there are error frames
which have some partial results as well.

Bug: 167944895

Test: GCA on Pixel2, constant mode changes don't show steady state increase in
      mPartialResults map size (Basic validity)

Change-Id: I6de585deb24039321310ddbd5dccd9119b25b23d
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
(cherry picked from commit 91e64e2d3a)
2020-09-25 19:23:34 +00:00
Jayant Chowdhary
9fa99145a9 camera2: Improve code readability for FrameNumberTracker.
Bug: 168713666

Test: builds
Test: GCA (basic validity)

Change-Id: Id0f9b5a9a6363f40daa9384ee5f01b47d36ad139
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
(cherry picked from commit 91f7bc0b3b)
2020-09-25 19:14:19 +00:00
Steven Moreland
9ff2444ba7 Merge "ServiceManager: add getDeclaredInstances" 2020-09-25 18:25:55 +00:00
Treehugger Robot
8b6aa74d6b Merge "Fix unique identifiers best practices links in device ID API docs" 2020-09-25 04:32:42 +00:00
Jack Yu
24f4fce2df Merge changes from topics "pdcs_builder", "pdcs_cleanup", "refactor_pdcs", "remove_apn_name_types", "transport_type_and_id"
* changes:
  Added hashcode for ApnSetting class
  Refactored precise data connection state
  Added transport type and id in precise data connection state
  Removed APN name and types from PreciseDataConnectionState
  Added builder for PreciseDataConnectionState
  Remove Deprecated-At-Birth APIs from PDCS
2020-09-25 04:18:21 +00:00
HsingYuan Lo
199d2c7384 Merge "Expose service changed event to application (2/3)" 2020-09-25 04:04:19 +00:00
Michael Groover
a73539128d Fix unique identifiers best practices links in device ID API docs
Bug: 168447060
Test: m docs
Change-Id: I483e0cf4915862254461200deb5d3dc7302bafb4
Merged-In: I483e0cf4915862254461200deb5d3dc7302bafb4
2020-09-24 17:36:32 -07:00
Thierry Strudel
dee14d2d86 Merge "BatteryStatsImpl: Add mBatteryTimeToFull to parcel" 2020-09-24 22:00:37 +00:00
Jack Yu
4f2a849e25 Refactored precise data connection state
Instead of triggering the data connection state changed
event from outside, now the event is triggering from
DataConnection. Whenever detecting data connection
state changes, the event will be triggered. This significantly
reduced the unnecessary redundant events sent to telephony registry,
even though it has a duplicate detection mechanism.

This are also two behavioral changes.

1. Previously if a data connection supports multiple APN types,
there will be multiple data connection state changed event for
each APN type. Now there is only one. The listener should use
PreciseDataConnectionState.getApnSetting().getApnTypeBitmask()
to check which APN types this data connection supports.

2. If setup data call fails before a data connection instance
can be created, there won't be any event with fail cause.

Fix: 161572838
Test: FrameworksTelephonyTests and manual
Merged-In: I9723d5284c2a8fbae9f63179dc30ddc42da1d0fc
Change-Id: I9723d5284c2a8fbae9f63179dc30ddc42da1d0fc
(cherry picked from commit 34a09a4cbd)
2020-09-24 09:57:50 -07:00