Commit Graph

529523 Commits

Author SHA1 Message Date
Treehugger Robot
1fe717a58a Merge "Tighten up Binder.clearCallingIdentity() usage." 2020-11-25 09:14:23 +00:00
Lorenzo Colitti
d0fa499431 Tighten up Binder.clearCallingIdentity() usage.
Partial cherry-pick of ag/12771225 to avoid merge conflicts.

Test: builds
Bug: 155703208
Merged-In: I832c9d70c3dfcd8d669cf71939d97837becc973a
Change-Id: Iac7c482012639ac45658f9e32fc1b9b152b01532
2020-11-25 15:21:57 +09:00
Baligh Uddin
e72a1eb1eb Merge "Revert^2 "Delete atoms.proto from statsd"" 2020-11-25 04:45:20 +00:00
Jooyung Han
e20137fccd Merge "midi: Use std::optional instead of std::unique_ptr" 2020-11-25 02:47:45 +00:00
Junyu Lai
6ef6648cd9 Merge "Expose getTx/RxBytes in TrafficStats" 2020-11-25 02:35:20 +00:00
Jeffrey Huang
05e50cc991 Revert^2 "Delete atoms.proto from statsd"
e8552cd24a

Change-Id: I202a31ab654ca31ba9e5b73b23c5aa3d22a3e8b2
Merged-In: I81a8287ed5b055e7b6547794d01e7ac897f0f022
2020-11-24 22:47:44 +00:00
Alex Light
3f89c81e39 Merge "Revert "Delete atoms.proto from statsd"" 2020-11-24 21:57:17 +00:00
Jeffrey Huang
e8552cd24a Revert "Delete atoms.proto from statsd"
Revert "Add android bp to proto_logging"

Revert submission 1508746-delete_atoms

Reason for revert: Build Failure
Reverted Changes:
I184cf8bf8:Add android bp to proto_logging
I36ec354d2:Delete atoms.proto from statsd

Change-Id: Ifec6a57d66cbd9c37503ca47847c3ae492f3d343
2020-11-24 21:53:20 +00:00
Jeffrey Huang
b027f4818d Merge "Delete atoms.proto from statsd" 2020-11-24 21:24:22 +00:00
Treehugger Robot
da20982f89 Merge "BatteryStats: explicitly copy the wakeup reasons" 2020-11-24 19:44:56 +00:00
Jeffrey Huang
5d230a2d49 Delete atoms.proto from statsd
Use the atoms.proto in proto_logging as the source of truth. Also
migrates statsd log api gen to use the new atoms.proto

Bug: 167962588
Test: m -j && m CtsStatsdAtomHostTestCases

Change-Id: I36ec354d273dceace5245d7634c68ac63dc5a8cd
Merged-In: I36ec354d273dceace5245d7634c68ac63dc5a8cd
2020-11-24 10:57:06 -08:00
Treehugger Robot
0836d630a5 Merge "Fixed Handler Leak on DistanceClassifier" 2020-11-24 16:57:34 +00:00
Treehugger Robot
2c4a41353a Merge "Initialize mCallback in constructor and make it final." 2020-11-24 15:27:03 +00:00
Almaz Mingaleev
444551f0af Initialize mCallback in constructor and make it final.
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/timedetector/

Change-Id: I62868ad42ec0affe6ca46e5324c5d537239337e8
2020-11-24 13:59:24 +00:00
Michael Sun
2c7efc70d7 BatteryStats: explicitly copy the wakeup reasons
As the wakeup reasons received from binder callback are in const
reference, std::move the parameter will result in a copy operation in
order to fulfill the const restriction. Update to reflect this
explicitly.

Test: adb shell dumpsys batterystats --history
Bug: 173165219
Change-Id: I6ab995cc11600b37123651bacc2015a3bf1a4bf6
2020-11-24 06:50:51 +00:00
junyulai
e2dfbb3b65 Expose getTx/RxBytes in TrafficStats
Test: atest FrameworksNetTests TrafficStatsTest
      atest android.net.cts android.net.wifi.cts
Bug: 164965653
Change-Id: I17b9d0bc2404c5727d4c4530ad941439b7b71a54
2020-11-24 12:11:08 +08:00
Lucas Lin
72cb973ac1 Merge "Ignore verifying canBeSatisfiedBy() on Android Q" 2020-11-24 03:38:34 +00:00
Jiwon Kim
bdabd396f4 Fixed Handler Leak on DistanceClassifier
A VelocityTracker object is not recycled in case of motionEvents.size()<3 at calculateDistances function.

private DistanceVectors calculateDistances() {
    // This code assumes that there will be no missed DOWN or UP events.
    VelocityTracker velocityTracker = VelocityTracker.obtain();
...
    if (motionEvents.size() < 3) {
        logDebug("Only " + motionEvents.size() + " motion events recorded.");
        return new DistanceVectors(0, 0, 0, 0);
	}
...
}

Test: Manual

Signed-off-by: Jiwon Kim <jiwon88.kim@samsung.com>
Change-Id: Ifca0c25411f56a4de79d89d262d2b4e61045a8ed
2020-11-24 10:56:59 +09:00
Baligh Uddin
5e3a035a3d Merge "Add OWNERS block to facilitate in migration" 2020-11-23 18:47:28 +00:00
Sarah Chin
2391403601 Merge "Expose PinResult and ICC PIN/PUK APIs as SystemApi" 2020-11-23 17:50:19 +00:00
lucaslin
8c864592b8 Ignore verifying canBeSatisfiedBy() on Android Q
The method - satisfiedBy() has changed to canBeSatisfiedBy()
starting from Android R, so the method - canBeSatisfiedBy()
cannot be found when running this test on Android Q.
Ignore verifying canBeSatisfiedBy() on Android Q to fix this
problem.

Bug: 173911834
Test: Run MatchAllNetworkSpecifierTest on Android Q, R, S.
Change-Id: Ibe317b56f82d3ea100b1d78c3907dce4f2fd964d
2020-11-23 23:40:23 +08:00
Bram Bonné
6d7e4c43d6 Merge "Adds two missing Keymaster definitions." 2020-11-23 13:02:03 +00:00
Baligh Uddin
9e569671a3 Add OWNERS block to facilitate in migration
BUG: 167962588
Test: TH
Change-Id: Ia8cdeb0c2bd0e98d8d6b8a44f49d42ccd0d04908
2020-11-22 14:59:22 +00:00
Brad Ebinger
48695cb073 Merge "Add subid to SipTransportImplBase#createSipDelegate" 2020-11-21 01:38:42 +00:00
Treehugger Robot
00326a8902 Merge "Update UntaggedSocketViolation StrictMode message to reference TrafficStats.setThreadStatsTag instead of the erroneous TrafficStats.setThreadSocketTag." 2020-11-21 00:42:47 +00:00
James Mattis
2b30cd28ea Merge changes Ibed6cdd4,I51e3c00d,Ibf37f94b
* changes:
  Update toString() to use the correct request
  Update requestsSortedById() to sort by collection
  Allow a way to track the active request in an NRI
2020-11-21 00:24:11 +00:00
Sarah Chin
cafa63af2b Expose PinResult and ICC PIN/PUK APIs as SystemApi
Test: atest TelephonyManagerTest
Fix: 171884262
Change-Id: I9cdc11c49e4ca602cfa1464e5f424c4a96798cfe
Merged-In: I9cdc11c49e4ca602cfa1464e5f424c4a96798cfe
2020-11-20 15:18:03 -08:00
Brad Ebinger
d5c9dc309c Add subid to SipTransportImplBase#createSipDelegate
1) Add subId to the createSipDelegate method to make subId transitions
easier.
2) Add sub id torn down destroy reason
3) Small improvements found during implementation

Bug: b/154763999
Test: atest TeleServiceTests
Change-Id: I2d140ddfde65955a0833f610eeeeaf9d02b0f170
2020-11-20 15:12:05 -08:00
Daniel Bright
3798c10c1d Merge "Add support for pdu session id" 2020-11-20 22:54:19 +00:00
Daniel Bright
926aff5e7b Add support for pdu session id
Added startHandover and cancelHandover to DataService and DataServiceManager
so that it can be called by data connection

Test: Tested that handover still worked with logs.  IWlan -> Cell + Cell -> IWlan
Bug: 155176305
Merged-In: Ia59d7e9bf9a450da4b51a2884166d3b0fa93a7c9
Change-Id: Ia59d7e9bf9a450da4b51a2884166d3b0fa93a7c9
2020-11-20 12:23:43 -08:00
Treehugger Robot
ae44936d6a Merge "Add Audio HAL V7" 2020-11-20 19:39:55 +00:00
Daniel Bright
5b38038d57 Merge "Added global retry support" 2020-11-20 18:48:36 +00:00
Chiachang Wang
1b414d61b4 Merge changes from topic "move_BSCH"
* changes:
  Remove BasicShellCommandHandler from frameworks/base
  Move BasicShellCommandHandler to frameworks/lib/modules-utils
2020-11-20 07:29:56 +00:00
Sarah Chin
0099578124 Merge "Expose get/setCdmaRoamingMode and get/setCdmaSubscriptionMode as system API" 2020-11-20 02:45:35 +00:00
Mikhail Naganov
2a9dae12b0 Add Audio HAL V7
Automatic modifications made by copyHAL.sh script.

Bug: 142480271
Test: m
Change-Id: I134b2151043cc620330619ad5e24a77d59125c1b
Merged-In: I134b2151043cc620330619ad5e24a77d59125c1b
2020-11-20 01:35:11 +00:00
Benedict Wong
4833cf6910 Merge "Expose MIN_MTU_V6 as a public, @hide constant" 2020-11-20 01:30:18 +00:00
Lucas Lin
7ed22093fa Merge "Remove a comment from ConnectivityService" 2020-11-20 01:10:21 +00:00
James Mattis
2d98b978eb Update toString() to use the correct request
Update ConnectivityService.NetworkReassignment#toString to use either
the current satisfier's request otherwise highest priority request when
executing toString(). This is part of the mulilayered request changes.

Bug: 173336774
Bug: 171991028
Test: atest FrameworksNetTests
Change-Id: Ibed6cdd4522133164b2b919f62ecc9411943f026
2020-11-19 17:04:02 -08:00
James Mattis
67087a4dcf Update requestsSortedById() to sort by collection
Update requestsSortedById() to sort NetworkRequestInfo by their
nested collection of NetworkRequest objects vs a single request.
Before the NetworkRequestInfo with the request with the lowest
requestId would be sorted to the top. Now the NetworkRequestInfo
which contains the request with the lowest requestId will be
sorted to the top.

Bug: 173292541
Bug: 171991028
Test: atest FrameworksNetTests
Change-Id: I51e3c00d59443e37ddbf168c423d13df8d14fa64
2020-11-19 17:04:02 -08:00
James Mattis
000865a22e Allow a way to track the active request in an NRI
As we are now allowing for multi-layered requests in NetworkRequestInfo
(NRI), we need a way to track which of those requests ended up being
satisfied. This also includes updates to NetworkRequestInfo itself to
support multilayared requests.

Bug: 173146509
Bug: 171991028
Test: atest FrameworksNetTests
atest FrameworksNetIntegrationTests
atest CtsNetTestCasesLatestSdk
Change-Id: I7bb5a564769c90928871fe28de05195c9cfae6b5

Change-Id: Ibf37f94b53eb2e833821553e00d76fe38bfea266
2020-11-19 17:03:51 -08:00
Sarah Chin
c315bf8c7d Expose get/setCdmaRoamingMode and get/setCdmaSubscriptionMode as system API
Test: atest TelephonyManagerTest
Fix: 171884158
Fix: 171883908
Change-Id: I5fe64d4bfb463af40b6e0ccfad1515266e40f7f6
Merged-In: I5fe64d4bfb463af40b6e0ccfad1515266e40f7f6
2020-11-19 14:37:35 -08:00
Sarah Chin
0b2d583b45 Merge "Add TestApi for getSupportedRadioAccessFamily" 2020-11-19 22:01:46 +00:00
Benedict Wong
da498a524d Merge changes I72976905,I7a637d39
* changes:
  Add VcnTunnel, UnderlyingNetworkTracker skeletons
  Add bug number to stopship comment for VCN Network scores
2020-11-19 22:01:24 +00:00
Sarah Chin
4d8ff9fca7 Merge changes from topic "signalstrength_ctr"
* changes:
  Make SignalStrength constructor public
  Expose SignalStrength copy constructor
2020-11-19 22:01:14 +00:00
Sarah Chin
b6d1f47cf9 Merge changes from topics "cdma_eri_api", "cdma_eri_displaynumber"
* changes:
  Replace IconIndex as DisplayNumber
  Expose CDMA ERI API
2020-11-19 22:00:31 +00:00
Jack Yu
b9b195be23 Added global retry support
The retry timer suggested by the network will persist
accross network requests. Also changed the retry timer
to a 64-bit value to be consistent with types used in
Android time APIs.

Test: FrameworksTelephonytests
Fix: 159672248
Merged-In: I632d4dc07fb545fa04eb3aefb0ff3270ee8f6ff8
Change-Id: I632d4dc07fb545fa04eb3aefb0ff3270ee8f6ff8
2020-11-19 12:09:30 -08:00
Benedict Wong
ebc78a4cb5 Merge "Add VcnContext, Vcn skeletons" 2020-11-19 19:33:06 +00:00
Sarah Chin
9e7ff9a167 Merge "Clarify documentation on TEMP_NOT_METERED API" 2020-11-19 17:50:35 +00:00
Lorenzo Colitti
e191d8d958 Merge "Make MockVpn more realistic and easier to use." 2020-11-19 10:32:19 +00:00
Lorenzo Colitti
cbd6dbc553 Merge changes I3711b362,I49421183,Icc0701cb,I2f5ccc1d
* changes:
  Increase test coverage for VPN info sent to NetworkStatsService.
  Simplify MockVpn.
  Test a VPN with an underlying network that does not yet exist.
  Minor fixes to NetworkCapabilities#toString.
2020-11-19 10:20:00 +00:00