660523 Commits

Author SHA1 Message Date
Junyu Lai
a668e90292 Merge "[MS17.1] Remove getNetworkTotalBytes dependencies from MultipathPolicyTracker" 2022-01-07 14:17:03 +00:00
Lais Andrade
9303fb5c6c Add missing vibrator owners files
Change-Id: I2fe7230380a7807f1e31c9c221dcb150c42f0ef4
2022-01-07 14:12:52 +00:00
chapin
279b828fd8 Merge "Revert "gtbs: Add Generic Telephone Bearer Service support"" 2022-01-07 14:08:23 +00:00
Treehugger Robot
8ed7defe20 Merge "Add necessary parcelables of metadata" 2022-01-07 13:07:11 +00:00
Junyu Lai
f39d76370c [MS39.1] Remove the looper from NetworkStatsSubscriptionMonitor
OnSubscriptionsChangedListenerHandler(Looper looper) is
hidden, there is no way to pass a looper to it in the test.
This change partially revert aosp/1340040 to fix hidden
API dependency. And will use a different approach to address
this problem in later stages.

Test: atest NetworkStatsSubscriptionMonitorTest
Bug: 204830222
Bug: 213280079
Change-Id: I429be3578d599de9a5a3f78b02387c20744b37d3
2022-01-07 12:55:02 +00:00
Treehugger Robot
81589202e5 Merge "[MS22] Move NetworkManagementSocketTagger into the module" 2022-01-07 12:07:53 +00:00
Junyu Lai
f5d70f014d [MS17.1] Remove getNetworkTotalBytes dependencies from MultipathPolicyTracker
Replace getNetworkTotalBytes with API that is about to expose.

Test: atest MultipathPolicyTrackerTest
Bug: 204830222

Change-Id: I300440eacd4eb87cd03c351445f22b0fc2e17754
2022-01-07 09:57:15 +00:00
Junyu Lai
b7d0199763 [MS22] Move NetworkManagementSocketTagger into the module
This is heavily used by TrafficStats, and no other modules
are using it. Hence it should be moved to the module as well.

Test: TH
Bug: 204830222

Change-Id: I7ea1ccb916e796c786c29d53e4ecf3970a8af6dd
2022-01-07 09:57:15 +00:00
Bill Yi
6042a19c72 Merge sc-qpr1 to aosp-master - DO NOT MERGE
Merged-In: I90ca5ccbf686a975f479c2488ff34f82af12946a
Merged-In: I128f5ed6c1bad350ea449bba5da21123de3ea31b
Change-Id: Ib18c8042f735dceeee5e6ab9f1c963cf630913a6
2022-01-06 18:38:32 -08:00
Chiachang Wang
f9868455f9 Allow excludeLocalRoutes set only in bypassable profile
If excludeLocalRoutes is set, it means the VPN is not fully-routed.
The bypassable bit should also be set to reflect the behavior
in the VPN profile. Thus, verify it in the constructor to ensure
the behavior.

Bug: 184750836
Test: atest FrameworksNetTests
Change-Id: I5d2c7bea2e0d5e77f9241c1efc295b3929e1dae3
2022-01-07 02:32:12 +00:00
Jack He
78f425ff07 Revert "gtbs: Add Generic Telephone Bearer Service support"
Revert "gtbs: Add Generic Telephone Bearer Service implementation"

Revert submission 1873900-gtbs

Reason for revert: broke cellular call over BT, see b/213412267
Reverted Changes:
I284ddacfc:gtbs: Add Generic Telephone Bearer Service impleme...
I8264ade4b:gtbs: Add Generic Telephone Bearer Service support...
I996cd5ff9:Add support for Generic Telephone Bearer service (...

Bug: 213412267
Tag: #feature
Test: answer cellular call by pressing button on HFP headset
Change-Id: I9c6b12b794b7378fd852238ad06890f46922c095
2022-01-07 00:34:04 +00:00
Meng Wang
886bf03a2d Merge changes from topic "phonenumber"
* changes:
  Update javadocs based on API council feedback.
  Deprecate get/setLine1Number in favor of get/setPhoneNumber
2022-01-07 00:31:23 +00:00
Treehugger Robot
d35cd459d6 Merge "Bluetooth: add LE Audio COD constant definition" 2022-01-06 23:47:54 +00:00
Qasim Javed
bfad455280 Merge "Add BluetoothLeBroadcastAssistantCallback." 2022-01-06 23:00:35 +00:00
Yan Yan
451df7d904 Expose APIs to configure underlying network priority
This commit expose VcnUnderlyingNetworkTemplate classes
and methods to configure those objects in VcnGatewayConnectionConfig.

Those APIs allow callers to configure the underlying network priority
for VCN gateway when VCN is doing route selection. Callers can
construct VcnUnderlyingNeworkTemplate with network requirements and
then set VcnUnderlyingNeworkTemplate list from most preffered to least
preffered in VcnGatewayConnectionConfig.

Bug: 205343355
CTS-Coverage-Bug: 209498272
Test: atest FrameworksVcnTests, CtsVcnTestCases
Test: make update-api
Change-Id: Ib7d51cf1ce562a1acbcb767ec569d7e11c861a1d
2022-01-06 14:51:54 -08:00
Grace Jia
e43f70afc7 Merge "Add new API for new feature of display name." 2022-01-06 18:59:37 +00:00
Yan Yan
1161a591e7 Update setter/getters to configure underlying network priority
- Update setters for configuring meteredness, roaming and
  opportunistic to take an int instead of a boolean
- Update NetworkPriorityClassifier and tests accordingly

Bug: 206044122
Test: atest FrameworksVcnTests, CtsVcnTestCases
Change-Id: I92bd2831cc42d634d73b842c42d18fa93a4ed46c
2022-01-06 10:52:39 -08:00
Yan Yan
a9eec89e4b Rename VcnUnderlyingNetworkPrioirty to VcnUnderlyingNetworkTemplate
Rename the classes' names as well as the test files.

Bug: 206044122
Test: atest FrameworksVcnTests, CtsVcnTestCases
Change-Id: I19d13acf0e46921a7254a39dff2af332c36ab2b2
2022-01-06 10:52:26 -08:00
Qasim Javed
0809c7789f Add BluetoothLeBroadcastAssistantCallback.
Bug: 205174140
Bug: 208222452
Tag: #feature
Test: gd/cert/run

Change-Id: I302f2d22e6f295db27c4309b7a30dd867a264439
2022-01-06 18:39:53 +00:00
Joel Galenson
986216053d Remove self from OWNERS
Test: None
Change-Id: Ibe3e35fc09b719b639f9df474c02de54f632b6c2
2022-01-06 10:21:00 -08:00
Taras Antoshchuk
5b1d7c2ead Revert "Revert "Add APIs that allow to exclude routes from VPN""
This reverts commit 487b2e645a4d159c48033b335ec6f929214ad27e.

Reason for revert: failing build target configuration is fixed

Change-Id: I7c69b7244b4262336e427e4c671aaebb70ddc6ed
2022-01-06 14:49:02 +00:00
Junyu Lai
ac674f3b41 Merge "[MS32.1] Remove TetheringManager#ACTION_TETHER_STATE_CHANGED usage" 2022-01-06 13:57:12 +00:00
Junyu Lai
beb9fb3cc8 Merge changes from topics "ms34-tm", "ms40-clock"
* changes:
  [MS09] Expose NetworkTemplate APIs which are needed by NetworkPolicy
  [MS34.1] Replace TelephonyManager#getSubscriberId(subId) with public API
  [MS40.1] Remove Clock dependencies from NetworkStatsService
  [MS27] Expose noteUntaggedSocket SystemApi
2022-01-06 13:56:39 +00:00
Treehugger Robot
ff35093684 Merge "Remove ParcelFileDescriptor hidden API usage from IpSecService" 2022-01-06 13:40:26 +00:00
Aaron Huang
4a6276d0dc Remove ParcelFileDescriptor hidden API usage from IpSecService
IpSec service is going to be a part of Connectivity mainline module
and ParcelFileDescriptor(FileDescriptor) is a hidden API that cannot
be used by mainline module.

Therefore, use ParcelFileDescriptor.dup(FileDescriptor) to get a
ParcelFileDescriptor instead.

Bug: 204153604
Test: FrameworksNetTests
Change-Id: I0ccabdfc5060f4b635e9a7009a67fbd5d32002fd
2022-01-06 19:16:43 +08:00
Treehugger Robot
61ca5d7c56 Merge "Explicit cast from android::Base::Errno to status_t" 2022-01-06 11:11:17 +00:00
Treehugger Robot
e5fb36cbf2 Merge "Add BluetoothLeBroadcastSourceInfo." 2022-01-06 10:32:39 +00:00
Junyu Lai
d8684a2fa9 [MS32.1] Remove TetheringManager#ACTION_TETHER_STATE_CHANGED usage
Replace intent receiver with callback listener.

Test: atest com.android.server.net.NetworkStatsServiceTest
Bug: 204830222
Change-Id: I585b2bb471b59cbca3cce1c01ce527dff87f42da
2022-01-06 09:22:53 +00:00
Junyu Lai
64c6943777 [MS09] Expose NetworkTemplate APIs which are needed by NetworkPolicy
This change also remove getWifiNetworkKey which should not be exposed
as system API.

Test: atest NetworkTemplateTest
Bug: 204830222
Change-Id: I924f62025a8672167f778ff790cd208c74eed878
2022-01-06 09:22:52 +00:00
Junyu Lai
27c9adb058 [MS34.1] Replace TelephonyManager#getSubscriberId(subId) with public API
Test: atest com.android.server.net.NetworkStatsSubscriptionsMonitorTest
Bug: 204830222
Change-Id: I57aa4470aea1715217fa7d74f2c9067b096d1bae
2022-01-06 09:22:52 +00:00
Junyu Lai
2aa7b9ec4d [MS40.1] Remove Clock dependencies from NetworkStatsService
This includes:
1. Re-implement the BestClock in the static library.
2. Expose SystemClock#currentNetworkTimeClock as public Api

Test: TH
Bug: 204830222
CTS-Coverage-Bug: 213393821
Exempt-From-Owner-Approval: 1. Owner approved the change with
  explicitly granted submission after adderessing the
  straight-forward comment. 2. Owner is OOO for 3 months.
Change-Id: I08c0162a7101cc6184f3eca3d4a59211183fb843
2022-01-06 08:49:59 +00:00
Junyu Lai
0cf9e87c79 [MS27] Expose noteUntaggedSocket SystemApi
While Data usage related codes are moving to mainline module,
StrictMode#vmUntaggedSocketEnabled() and onUntaggedSocket()
can no longer be accessed from NetworkManagementSocketTagger.

Thus, expose alternative SystemApi to allow invocations from
the module.

Test: TH
Bug: 204830222
Exempt-From-Owner-Approval: 1. Owner approved the change with
  explicitly granted submission after adderessing the
  straight-forward comment. 2. Owner is OOO for 3 months.
Change-Id: Ib54ff54ce3617ae0d04080a1740e78b086bbb039
2022-01-06 08:49:46 +00:00
Josh Wu
04a84760b2 Add necessary parcelables of metadata
This change partial upstream necessary
a.m.audio.common.types for aosp/1936041.

Bug: 203490261
Test: m android.hardware.audio.common
Change-Id: Ice160b3eb642245daaa47394b156fd1ebafab82b
Merged-In: I3331d7e3d76db50f5b3c4db57891a20e4f935ad8
2022-01-06 06:36:52 +00:00
Andriy Naborskyy
d5e7c4d04e le advertisement address type settings
add api to request public or random address type for advertisements.

bug: 155993389
Bug: 199827901
Tag: #feature
Test: atest BluetoothInstrumentationTests
Test: ACTS, SL4A, IOP and BCST, CTS, GTS
Change-Id: I4a2b9918e0f0cc31649e3c1952d9ba34f78d337f
2022-01-06 14:23:34 +08:00
Meng Wang
72afc76a69 Update javadocs based on API council feedback.
Bug: 206743433
Bug: 193539271
Test: make
Change-Id: I24f5ebf228bf1ae28f4d7b32ddef222482114eae
Merged-In: I24f5ebf228bf1ae28f4d7b32ddef222482114eae
(cherry picked from commit bbb01fcb43764ec870cdc90d9b48930cf19ec91c)
2022-01-05 23:41:32 +00:00
Meng Wang
3e436616c6 Deprecate get/setLine1Number in favor of get/setPhoneNumber
Bug: 193539271
Test: make
Change-Id: I09bcdca9d44d6b6a6d4ca00b6d0bba4c45a39bac
Merged-In: I09bcdca9d44d6b6a6d4ca00b6d0bba4c45a39bac
(cherry picked from commit 8665b5105ecc4da80dd60296bac7f3e630edeef5)
2022-01-05 23:41:26 +00:00
weisu
90d3fb6354 Write files in a temporary directory
Avoid writing test files in the build output directory which fails when
run with Bazel. This happens because Bazel's sandboxing environment
ensures that the test's working directory is unwritable.

See https://docs.bazel.build/versions/main/sandboxing.html for more
information.

Bug: 209687942
Test: atest --bazel-mode aapt2_tests
Test: atest aapt2_tests

Change-Id: I0fce701bbac255c3e308ad5c85aa27230c3b620b
2022-01-05 23:05:14 +00:00
Meng Wang
692533e342 Merge "Add getPhoneNumber/setPhoneNumber API" 2022-01-05 23:04:27 +00:00
Jakub Pawlowski
c201914d57 Bluetooth: add LE Audio COD constant definition
Tag: #feature
Test: compilation
Bug: 150670922
Change-Id: Ic68cd1e9ce4f10d7c2388eeeabe67acad5e555ea
2022-01-05 23:04:04 +01:00
Treehugger Robot
d5bd847275 Merge "Reduce blocking time when waiting for CharacteristicWrite queue to clear up." 2022-01-05 21:13:56 +00:00
Qasim Javed
63d5150d7d Add BluetoothLeBroadcastSourceInfo.
Bug: 205174140
Bug: 208222452
Tag: #feature
Test: gd/cert/run

Change-Id: I5d129d8b230ab564387212ebe83eb3c4398c7b21
2022-01-05 12:52:01 -08:00
Sarah Chin
569fbec7ef Merge "Add Constants for UsageSetting" 2022-01-05 20:06:20 +00:00
Treehugger Robot
ae6b04cf84 Merge "Remove separate_platform_variant entries." 2022-01-05 19:16:16 +00:00
Treehugger Robot
b0c148971a Merge "Update MULTIUSER_OWNERS." 2022-01-05 14:48:01 +00:00
William Escande
f3a2e55ff7 Merge "Add SystemApi tag on getLastAudibleStreamVolume" 2022-01-05 14:41:52 +00:00
Oli Lan
dac61a84be Update MULTIUSER_OWNERS.
Test: N/A
Change-Id: I7d3e55926f1ca9b4ed26116c2f97e143a872c6a8
2022-01-05 13:13:50 +00:00
Giulio Fiscella
0a9079431b Merge "Add i18n to "module_current"" 2022-01-05 11:01:14 +00:00
Treehugger Robot
eefefd1255 Merge "[MS33.1] Remove NetdService dependency" 2022-01-05 10:39:13 +00:00
Treehugger Robot
cb64b957f7 Merge "gtbs: Add Generic Telephone Bearer Service support" 2022-01-05 09:58:55 +00:00
Alan Stokes
3281d1b876 Merge "Simplify ApexInfo classpath info" 2022-01-05 08:57:50 +00:00