- Dec 28, 2020
-
-
Junyu Lai authored
-
Remi NGUYEN VAN authored
-
Chiachang Wang authored
-
- Dec 25, 2020
-
-
Serik Beketayev authored
-
- Dec 24, 2020
-
-
Sudheer Shanka authored
-
Serik Beketayev authored
Bug: 173455434 Test: atest FrameworksNetTests Change-Id: I924aed710b62a0c91b888a9e04ac2c90cdfd88d0
-
Aaron Huang authored
-
Baligh Uddin authored
-
junyulai authored
Currently, when the caller increment operation count, the count will be blamed on the active default network even though the traffic is all generated on other networks. This is kind of weird. But in order to change the behavior, extend test coverage first. Test: atest com.android.server.net.NetworkStatsServiceTest#testOperationCount_nondefault_traffic Bug: 174123988 Change-Id: Ia5b5aa3601de15bb9ee5a29f6d184d122f1c5352
-
Sudheer Shanka authored
In a previous change (https://r.android.com/1394342), we did a mass update of whitelist->allowlist and blacklist->denylist in network policy related code. Updating some usages of those (like allowlisted to allowed) to make them sound natural. Test: atest services/tests/servicestests/src/com/android/server/net/NetworkPolicyManagerServiceTest.java Test: atest services/tests/servicestests/src/com/android/server/NetworkManagementInternalTest.java Test: atest hostsidetests/net/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java Change-Id: I6d34b0bd3cdb64d5872874fd9378bfc962a24f8d
-
Remi NGUYEN VAN authored
-
- Dec 23, 2020
-
-
Baligh Uddin authored
Migrate to packages/modules/Wifi. This CL will be presubmit tested once migration is complete. This CL drops the code from frameworks/base/wifi and migrated to packages/modules/Wifi. Also adjusts visibility rules in frameworks/base/Android.bp Bug: 137323948 Test: TH Merged-In: I9031a37c84e17c2cf5c0552d1b33e8fd59216b92 Change-Id: I4ad80b1584f9f80dffed7786739b80f3aaf88cdc
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Roshan Pius authored
-
Roshan Pius authored
The multi STA concurrency API is not present in AOSP. Bug: 162602799 Test: None Change-Id: Iaecedf42890777f6d4507bb81d359e67270ebebb
-
Roshan Pius authored
* changes: WifiInfo: Add equals implementation Convert WifiInfo to TransportInfo
-
Juneup Park authored
When device changes from SCREEN_OFF to SCREEN_ON, AlarmManagerService deliver non-wakeup alarms. If there is TIME_TICK alarm in mPendingNonWakeupAlarms, TIME_TICK alarm is rescheduled. While TIME_TICK alarm is set again, it is removed from mPendingNonWakeupAlarms. Because removing alarm from mPendingNonWakeupAlarms change size of mPendingNonWakeupAlarms, last alarm in mPendingNonWakeupAlarms is not delivered. Test: build / boot Change-Id: If0ab601248b4833855e03157cc47ffc678b3b974 Merged-In: I5228c323bb9698864c467e9e4c400459ca404b3c
-
Chi Zhang authored
-
Anton Hansson authored
-
Jeff DeCew authored
Change-Id: Ifa4a11780bb934f7b644ad150f3c09493b23f9f4
-
Aaron Huang authored
To make connectivity service mainline, this patch makes MultipathPolicyTracker as a submodule of NetworkPolicyManagerService to remove the dependencies of ConnectivityService. Bug: 175015282 Test: FrameworksNetTests Change-Id: I82a7c62069ffd0683deb2f5ce2f99de120a2a16f
-
Anton Hansson authored
These were used temporarily before merged stubs were ready, but they are not used anymore. Test: m Change-Id: I517f64353749ffd8d92b8ddbc1dd8b7af75f2176
-
Anton Hansson authored
-
Baligh Uddin authored
-
Nikita Ioffe authored
-
Andrei-Valentin Onea authored
-
Eric Laurent authored
* changes: Audio: use preferred device for strategy for communication route AudioManager: Add communication device management APIs AudioService: refactor communication route control
-
Chiachang Wang authored
The argument type of interfaceClassDataActivityChanged takes a string for the network type. It requires both the receivers and NMS to do type transformation. The transformation is a redundant work. Update it to take integer directly and rename to understandable naming. Bug: 170598012 Test: atest FrameworksNetTests Change-Id: Ibe9fa7a1b71af2dab916b5d615742e77e4174c39
-
Eric Laurent authored
Replaced use of forced usage for communication by set preferred device for strategy to control communication route in audio policy manager. Also do not use forced usage for record which was redundant with forced usage for communication. Bug: 161358428 Test: audio smoke tests Change-Id: I665257fc5903b663096104b0424781d9799635a5 Merged-In: I665257fc5903b663096104b0424781d9799635a5
-
Eric Laurent authored
Add new APIs to manage the audio device used for communication use cases (Cellular calls, VoIP and Video calls). These APIs are meant to replace specific APIs like setSpeakerPhoneOn() and provide a single generic way of configuring the audio device selected for calls. They will be used for newly added device types (e.g. BLE audio) instead of adding new specific APIs. They will also offer more options like for instance allowing to select the earpiece (handset) device when a wired headset is connected. The new APIs are: - boolean setDeviceForCommunication(AudioDeviceInfo) - void clearDeviceForCommunication() - AudioDeviceInfo getDeviceForCommunication() A listener is also added for applications to monitor current communication device selection: - OnCommunicationDeviceChangedListener As well as listener registration and unregistration APIs: - addOnCommunicationDeviceChangedListener() - removeOnCommunicationDeviceChangedListener() Bug: 161358428 Test: make && atest AudioCommunicationDeviceTest Change-Id: I8028d842e4a8ca1abe0f87d03e3c5d57c46b9362 Merged-In: I8028d842e4a8ca1abe0f87d03e3c5d57c46b9362
-
Eric Laurent authored
Audio routing for communication use cases (cell, video and VoIP calls) is controlled by separate APIs: setSpeakerPhoneOn(), startBluetoothSco() and stopBluetoothSco(). Requests for speakerphone and bluetooth are managed by separate client stacks although in the end they control a single routing state in audio policy manager, which creates problems in case of conflicting requests and race conditions. This CL refactors the implementation by regrouping the Bluetooth Sco and Speaker client stacks into a single one. This makes sure that no conflicting routing request exist for a given client. It also makes handling of race conditions and prioritization between clients easier. Finally, it prepares the introduction of a new API that will be the single entry point for communication route control. Also in this CL: - Option to enable more debug log for communication route - Fixes in BtHelper.receiveBtEvent() 1) Fix intent broadcast missing in case of transition from external activation to internal activation. 2) Do not clear SCO requests when SCO audio is disconnected: this can happen because current active communication route request is different from SCO but pending requests must stay in the stack. 3) Do not clear SCO requests when the audio mode owner changes. Any Active communication route requested by new audio mode owner will be honored and pending requests will be restored when mode owner changes again. Test: regression tests with cell and VoIP calls Change-Id: If9d2f24b9def78ccd791294ed42d95ce30f0ba8b Merged-In: If9d2f24b9def78ccd791294ed42d95ce30f0ba8b
-
Eric Laurent authored
-
Roshan Pius authored
This is needed for connectivity to compare TransportInfo instances. Bug: 162602799 Test: atest android.net.wifi Change-Id: I215b769339f68b76a1b2fa15f66c4527d184b696 Merged-In: I215b769339f68b76a1b2fa15f66c4527d184b696
-
Roshan Pius authored
Also, deprecate WifiManager.getConnectionInfo() and add a note to help apps to migrate. The deprecation is purely cosmetic, no plans to remove any existing functionality from the WifiManager API. Bug: 162602799 Test: Compiles Change-Id: I12c473185dc5518f5684e83c2f49e07271738cb5 Merged-In: I12c473185dc5518f5684e83c2f49e07271738cb5
-
Chiachang Wang authored
-
Chiachang Wang authored
-
Chiachang Wang authored
-
Baligh Uddin authored
Add paths to visibility needed for tests. Soong allows specifying paths w/o validation. Once the migration is complete, we can remove the old path in visibility rules. BUG: 137323948 Test: TH Change-Id: I81c053c79dd82d7059bc7fb67be82accc3254e97
-
Remi NGUYEN VAN authored
-