Commit Graph

559439 Commits

Author SHA1 Message Date
Benedict Wong
db8cf2a13d Pull VcnNetworkProvider out into a separate class
This change makes the VcnNetworkProvider a separate class, and caches
all NetworkRequest(s) to ensure that VcnTunnel(s) satisfy all requests
that they can accept.

Bug: 163431879
Test: atest FrameworksVcnTests
Change-Id: I3b7695628d0153a33f7e7f40d839df1463d58b07
2021-01-07 17:13:39 -08:00
Benedict Wong
9cb5807845 Verify carrier privileges for VCN-providing packages
This change adds and verifies packages in the VcnManagmentService,
ensuring that carrier privilege gain/loss correctly starts/tears down
VCN instances.

Bug: 163431877
Test: atest FrameworksNetTests
Change-Id: I63203188c57fdde1cfc58aaf1108aa3e70eb4a50
2021-01-07 17:13:37 -08:00
Benedict Wong
6153723db5 Add TelephonySubscriptionTracker to VcnMgmtSvc
This changes adds the TelephonySubscriptionTracker to
VcnManagementService, ensuring that VCN Instances are only ever started
once a relevant Subscription has been loaded in Telephony

Bug: 163430955
Test: New VcnManagementService tests added, passing
Change-Id: Ia9396d66b41fadc0a5ed7aa66306e6223a2d29b8
2021-01-07 17:00:15 -08:00
Benedict Wong
1fe26df538 Add basic VcnMgmtSvc --> Vcn signals (startup, teardown, NetworkReq)
This change adds the relevant calls to ensure that the VcnMgmtSvc
starts, updates and stops a Vcn instance when configs are set/removed

Additionally, this change ensures that upon new network requests, the
Vcn instance is notified.

Bug: 163432852
Test: atest FrameworksVcnTests
Change-Id: Ifec34fad8282a3d64b540d24f643f546463f4379
2021-01-07 17:00:12 -08:00
Treehugger Robot
e4f60f7dff Merge "Import translations. DO NOT MERGE ANYWHERE" 2021-01-02 07:32:31 +00:00
Treehugger Robot
fd89d91847 Merge "Import translations. DO NOT MERGE ANYWHERE" 2021-01-02 07:31:51 +00:00
Bill Yi
a111adcf57 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I2c6caefa550e2466ec206a12a5733885a2e0979d
2021-01-02 06:32:28 +00:00
Bill Yi
9baab17dd3 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I5e3813caa85f8b5082344fb4e70e63b3fa8534a8
2021-01-02 05:25:40 +00:00
Treehugger Robot
7b26ef1fb6 Merge "Import translations. DO NOT MERGE ANYWHERE" 2021-01-02 03:30:54 +00:00
Treehugger Robot
96d6087254 Merge "Import translations. DO NOT MERGE ANYWHERE" 2021-01-02 03:23:04 +00:00
Treehugger Robot
1692104cc0 Merge "Import translations. DO NOT MERGE ANYWHERE" 2021-01-02 03:19:54 +00:00
Treehugger Robot
2c556eee02 Merge "Import translations. DO NOT MERGE ANYWHERE" 2021-01-02 03:19:15 +00:00
Bill Yi
2a5253325e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I67d9ab0d073f8de1701414999a0ddd24b02fba7c
2021-01-02 00:03:33 +00:00
Bill Yi
8d9531e414 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib708925798cc05fdd16ef5a7e21c763136dd5895
2021-01-01 21:03:44 +00:00
Bill Yi
4e29727003 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I26434a90b689d369d1b6759097abc57598d3fde4
2021-01-01 19:42:37 +00:00
Bill Yi
efa3ba89ca Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I794414b55fdf3199567ae41122969e18615abbd0
2021-01-01 17:59:08 +00:00
Anton Hansson
9f2c15890c Merge "Extend RollbackManagerService to handle S extensions" 2020-12-31 11:01:21 +00:00
Yo Chiang
93e3644f88 Merge "Refactor InstallationAsyncTask.Progress" 2020-12-31 03:18:26 +00:00
Henry Fang
8212f52f44 Merge "Don't open frontend device if it's a shared frontend" 2020-12-31 00:31:08 +00:00
Treehugger Robot
1d4bf166d4 Merge "Support blink scan" 2020-12-30 23:17:56 +00:00
Treehugger Robot
a4f4128f10 Merge "free weakref to linearblock when it is destroy" 2020-12-30 23:17:48 +00:00
Treehugger Robot
f8d7645571 Merge "Change resource claim to sync to avoid resource conflict" 2020-12-30 23:16:54 +00:00
Treehugger Robot
d7275581e1 Merge "Add thread protection for Filter/Descrambler table Use weak reference in the tables to allow objects released by caller" 2020-12-30 23:14:45 +00:00
Henry Fang
3d9490c218 Don't open frontend device if it's a shared frontend
bug: 175255961
Test: manual
Change-Id: Ib8c9704ebd1c518a84b8526172ca2fe3d087db87
Merged-In: Ib8c9704ebd1c518a84b8526172ca2fe3d087db87
2020-12-30 18:56:58 +00:00
Henry Fang
06eab7931a Add thread protection for Filter/Descrambler table
Use weak reference in the tables to allow objects released by caller

bug: 174685399
bug: 174711353
Test: manual
Change-Id: I760d0a77ad9efe2709a14f0fb8a669f8f16652e1
Merged-In: I760d0a77ad9efe2709a14f0fb8a669f8f16652e1
2020-12-30 18:50:58 +00:00
Henry Fang
49c7e865d7 Support blink scan
Allow scan again if callback and executor are same as before.

bug: 173239634
Test: atest -c TunerTest
Change-Id: Iec5ba453b3d3d40c0d96fda5c7288b79898d9aea
Merged-In: Iec5ba453b3d3d40c0d96fda5c7288b79898d9aea
2020-12-30 18:43:52 +00:00
Henry Fang
0dbb710556 Change resource claim to sync to avoid resource conflict
bug: 174544018
Test: manual
Change-Id: Ib2688da2a85cdad896f9f2814828ce7659c8a695
Merged-In: Ib2688da2a85cdad896f9f2814828ce7659c8a695
2020-12-30 18:41:13 +00:00
Henry Fang
6002ecda62 free weakref to linearblock when it is destroy
bug: 168331789
Test: Manual
Change-Id: Iee1b2618bd5c970b728dbc0301b84ff43debde58
Merged-In: Iee1b2618bd5c970b728dbc0301b84ff43debde58
2020-12-30 18:33:03 +00:00
Henry Fang
ba032abd1a Merge "Tuner JNI: fix the DATA_READY and DATA_CONSUMED flags" 2020-12-30 17:44:58 +00:00
Henry Fang
de8ca7332b Merge "add offset to calculate buffer size" 2020-12-30 17:44:32 +00:00
Michael Sun
4f1774283c Merge "Revert "Add more logging for wakelock stats inquiries"" 2020-12-30 17:38:41 +00:00
Suren Baghdasaryan
50a824abf7 Merge "Add total GPU usage report into dumpsys meminfo output" 2020-12-30 17:35:09 +00:00
Suren Baghdasaryan
aee45ee0bc Add total GPU usage report into dumpsys meminfo output
With latest kernel changes, total GPU memory usage is reported and can
be obtained via a BPF program. Create JNI interface to query it and
report inside dumpsys meminfo output.

Bug: 171261987
Test: dumpsys meminfo
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Merged-In: I949a13836d5b5bc87fc43f60871b4fbf2add6480
Change-Id: I949a13836d5b5bc87fc43f60871b4fbf2add6480
2020-12-30 17:32:10 +00:00
Treehugger Robot
4c7a71448d Merge "Add OWNERS file for packages/DynamicSystemInstallationService" 2020-12-30 15:12:02 +00:00
Yo Chiang
e6271f5c16 Add OWNERS file for packages/DynamicSystemInstallationService
Bug: 165925766
Test: No
Change-Id: I816bcfdaa960af08269ae6c864fd2d33b631bedd
2020-12-30 20:51:04 +08:00
Yo Chiang
0a63f5592c Refactor InstallationAsyncTask.Progress
Instead of passing a number around as the number of installed
partitions, track the number in a member field in InstallationAsyncTask.
This makes installing partitions after installImages() had returned
possible.

Bug: 165925766
Test: TH
Change-Id: Iec45c9fa1a39f0bcc4eeaa00e44d3394d55087d3
2020-12-30 20:08:42 +08:00
Treehugger Robot
0da9856837 Merge "Complete shareFrontend API implementation in TunerResourceManagerService" 2020-12-30 11:45:14 +00:00
Treehugger Robot
6d1582be99 Merge "Fix typo to get correct innerFec and Annex for cable signal" 2020-12-30 11:44:24 +00:00
Treehugger Robot
4249ba1059 Merge "Use a randomly generated UUID as the TvInputSessionId" 2020-12-30 11:40:15 +00:00
Treehugger Robot
55a580b253 Merge "Tuner JNI: Correct memcpy of C2DataIdInfo" 2020-12-30 11:40:00 +00:00
Treehugger Robot
eb709b6d88 Merge "Release resource before send MSG_RESOURCE_LOST message to TIS" 2020-12-30 11:38:59 +00:00
Treehugger Robot
d70c636ad4 Merge "Fix issue which Ion handle are free twice." 2020-12-30 11:37:59 +00:00
Treehugger Robot
cb5c02da8b Merge "mkdir .incomplete in backing storage to fix CTS/GTS failures" 2020-12-30 11:05:06 +00:00
Anton Hansson
3dd7ca7fa5 Extend RollbackManagerService to handle S extensions
Bug: 173114427
Test: RollbackUnitTest covers this
Change-Id: I2de18f67f21ea6c57d612829749edeaa11378f41
Merged-In: I2de18f67f21ea6c57d612829749edeaa11378f41
2020-12-30 10:43:51 +00:00
Paul Hu
72b76f301a Merge "Use system API to obtain IDnsResolver IBinder" 2020-12-30 06:35:05 +00:00
David Su
804240d840 Merge "frameworks/base/wifi: configure TEST_MAPPING" 2020-12-30 03:26:18 +00:00
Henry Fang
9651b006ac Fix typo to get correct innerFec and Annex for cable signal
bug: 165808730
Test: manual
Change-Id: I9213246c87512480cb08ab10b102b26f9fd9f681
Merged-In: I9213246c87512480cb08ab10b102b26f9fd9f681
2020-12-30 02:18:46 +00:00
Amy Zhang
67da3fdf52 Complete shareFrontend API implementation in TunerResourceManagerService
Note that we need to consider share frontend situation in the following
processes:

1. Request Frontend: to compare with the highest priority among all the
share fe clients.

2. Reclaim resources: This only happens on the primary owner of a fe, we
need to reclaim all the resources under the share fe clients also.

3. Remove client: when remove the primary owner, it should be treated
the same way as reclaiming. When remove the share fe clients, we can
just remove it from the share owner list.

4. Release resource: this only happens on the primary owner, we need to
release the fe under the share fe clients also.

Test: atest com.android.server.tv.tunerresourcemanager
Bug: 163395799
Change-Id: I46b209cd9d7b28ac2d93f6ec297669484ff46cf6
Merged-In: I46b209cd9d7b28ac2d93f6ec297669484ff46cf6
2020-12-30 01:48:02 +00:00
David Su
3e167c1243 frameworks/base/wifi: configure TEST_MAPPING
Run FrameworksWifiNonUpdatableApiTests

Bug: 176260047
Test: presubmit
Change-Id: Ic2a10e992263bfbc62a9012a2739060d5f4c9ff1
2020-12-30 00:38:48 +00:00
Amy Zhang
d50746529c Use a randomly generated UUID as the TvInputSessionId
The current implementation uses uid, pid and the resolvedUser to create
the sessionId. But it's not unique when the same app uses the same
TvInputService to create multiple input sessions.

Also this leaks pid/uid information.

Fix this by using a randomly generated UUID instead.

Test: make
Bug: 163855754
Change-Id: I4369e2645b50d44803f2d393798fa5ea6d1c22bd
Merged-In: I4369e2645b50d44803f2d393798fa5ea6d1c22bd
2020-12-29 21:05:34 +00:00