Commit Graph

632138 Commits

Author SHA1 Message Date
Lucas Lin
df6aaa94f4 [automerger skipped] Merge "Remove the usage of hidden API - setIsAvailable() from Vpn" am: 93b20febd4 am: 961a73e0c3 am: 172bc952aa -s ours
am skip reason: skip tag Change-Id I3b88f22fffde3dd4000d28342ed07209c7121a37 with SHA-1 02ec9e9d4a is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1653934

Change-Id: Ia5e3703fea761ffa0b2f04316c4398fc87075841
2021-03-25 13:09:50 +00:00
Lucas Lin
9326ba6115 [automerger skipped] Merge changes Ic2357dcf,Iddf8c71a am: 1ff9b10f74 am: e3d28b9ad0 am: c9dddc84c0 -s ours
am skip reason: skip tag Change-Id Ic2357dcfff3233e0dd17b48b0e376a5095ef60fa with SHA-1 ae04f625fe is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1653939

Change-Id: Ib7ed1d9c595b30fadf6efee2ab2614197e156ce1
2021-03-25 13:08:16 +00:00
lucaslin
32aca8849a [automerger skipped] Expose NetworkScore to external caller am: 5aea42137f am: f53af56d1a am: e2dfce5a08 -s ours
am skip reason: skip tag Change-Id Iddf8c71a5f51a40bc6ff78626b3e8ee530d1b7eb with SHA-1 b90ff160cc is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1653938

Change-Id: If0f542ea1a8a5dfe422cfc560f68abe7de05fb37
2021-03-25 13:07:51 +00:00
Lucas Lin
8750dd182e [automerger skipped] Merge changes I6d5dd0a8,I106b3e4f am: 276f8e6a70 am: db4eb02ecd am: b96e8a1c55 -s ours
am skip reason: skip tag Change-Id I6d5dd0a8c3879df7bdc1d58e36022045c303bb40 with SHA-1 83ca710aff is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1653932

Change-Id: I3d8237e0619f7a63e3290609b9c9158d47d5830d
2021-03-25 13:06:52 +00:00
lucaslin
ce093c913f [automerger skipped] Remove unused import IConnectivityManager am: 6642bda243 am: 307a73be5b am: ab2da1d535 -s ours
am skip reason: skip tag Change-Id I106b3e4f68b4e5610a238931aa3e81afdd927422 with SHA-1 cda16ed7ae is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1653931

Change-Id: Ieda65b79b54a9f01f7c50b4c6c01c8cd9a0e34a8
2021-03-25 13:06:43 +00:00
Lucas Lin
300013aa1c [automerger skipped] Merge "Use getAllInterfaceNames to get all interface names" am: c4c056b647 am: ab9c3f219f am: b2ae343b9c -s ours
am skip reason: skip tag Change-Id Id2b19dc5099355af69d23a6d99d2b7e6c0e1e88a with SHA-1 e7ee038a65 is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1653937

Change-Id: I42520f8831d37b49a4c8d96d0db0092b9ed90ad0
2021-03-25 13:05:36 +00:00
TreeHugger Robot
037ab3a91a Merge "DMD: Also consider no votes when calculating specs" into sc-dev 2021-03-25 12:54:25 +00:00
Chiachang Wang
d41da28087 Merge "Add network disconnected callback" into sc-dev 2021-03-25 12:24:20 +00:00
Lucas Lin
172bc952aa Merge "Remove the usage of hidden API - setIsAvailable() from Vpn" am: 93b20febd4 am: 961a73e0c3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1653934

Change-Id: I577c40b2d5dfb4bb6c1d2471a66e47a95ddd1d77
2021-03-25 12:23:32 +00:00
Lucas Lin
c9dddc84c0 Merge changes Ic2357dcf,Iddf8c71a am: 1ff9b10f74 am: e3d28b9ad0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1653939

Change-Id: Icf3acbfb071fc2d24f0d31c719446604567e2281
2021-03-25 12:23:01 +00:00
lucaslin
e2dfce5a08 Expose NetworkScore to external caller am: 5aea42137f am: f53af56d1a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1653938

Change-Id: I807cae8d95e8d5fb1f017b1ba11d800772ba3e9c
2021-03-25 12:22:59 +00:00
Lucas Lin
b96e8a1c55 Merge changes I6d5dd0a8,I106b3e4f am: 276f8e6a70 am: db4eb02ecd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1653932

Change-Id: Ic04621eaa36aa0b2837dced4730d32f415f8dc13
2021-03-25 12:22:16 +00:00
lucaslin
ab2da1d535 Remove unused import IConnectivityManager am: 6642bda243 am: 307a73be5b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1653931

Change-Id: Iea7b4df0ca9d04195e7e38220f2dec11d0a29a8f
2021-03-25 12:22:14 +00:00
Lucas Lin
b2ae343b9c Merge "Use getAllInterfaceNames to get all interface names" am: c4c056b647 am: ab9c3f219f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1653937

Change-Id: I2a51fc361a3ef6fe7a99fe70e8c47fdffa2903bd
2021-03-25 12:21:20 +00:00
Matt Pietal
9ada0484ad Merge "Keyguard error color" into sc-dev 2021-03-25 12:18:02 +00:00
Matt Casey
af29800df0 Merge "Add setting for touch gesture and long-press home assistant invocations" into sc-dev 2021-03-25 12:15:09 +00:00
Lucas Lin
961a73e0c3 Merge "Remove the usage of hidden API - setIsAvailable() from Vpn" am: 93b20febd4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1653934

Change-Id: Ib83932369dbdf7f04529643cbb91330ea71a4175
2021-03-25 12:13:04 +00:00
Lucas Lin
e3d28b9ad0 Merge changes Ic2357dcf,Iddf8c71a am: 1ff9b10f74
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1653939

Change-Id: I9c5f96893488f1e103cba740a0bbfb474ffe90b9
2021-03-25 12:07:49 +00:00
lucaslin
f53af56d1a Expose NetworkScore to external caller am: 5aea42137f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1653938

Change-Id: I5f2fb6bb6f2de4d81fb3b750053ee5abbe82caeb
2021-03-25 11:53:29 +00:00
Lucas Lin
db4eb02ecd Merge changes I6d5dd0a8,I106b3e4f am: 276f8e6a70
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1653932

Change-Id: Ife29dba8549f9b86cfe757a59fd4c8e61e55738f
2021-03-25 11:46:03 +00:00
lucaslin
307a73be5b Remove unused import IConnectivityManager am: 6642bda243
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1653931

Change-Id: I252a363cf9415b5e956e0427b6fe4dd5a8045930
2021-03-25 11:43:32 +00:00
Lucas Lin
612a4a78c0 Merge "Add static for constant" into sc-dev 2021-03-25 11:34:09 +00:00
Lucas Lin
ab9c3f219f Merge "Use getAllInterfaceNames to get all interface names" am: c4c056b647
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1653937

Change-Id: I42de5ac3508b7947ac3b53717f1133ea6aa8588c
2021-03-25 11:30:31 +00:00
Lucas Lin
93b20febd4 Merge "Remove the usage of hidden API - setIsAvailable() from Vpn" 2021-03-25 11:29:04 +00:00
Lucas Lin
1ff9b10f74 Merge changes Ic2357dcf,Iddf8c71a
* changes:
  Expose NetworkAgent constructor taking a NetworkScore parameter
  Expose NetworkScore to external caller
2021-03-25 11:28:28 +00:00
Sunny Shao
a7540ad2ae Merge "Add a new api "isDefaultBrowser" for new Intent Picker" into sc-dev 2021-03-25 10:58:22 +00:00
Lucas Lin
276f8e6a70 Merge changes I6d5dd0a8,I106b3e4f
* changes:
  Use public API Network#getNetId() to get netid
  Remove unused import IConnectivityManager
2021-03-25 10:49:35 +00:00
lucaslin
c3f7c8fd3c Use public API Network#getNetId() to get netid
Network class will be a part of mainline module, external callers
cannot call its hidden constant. Use public API - getNetId() to
get netid instead.

Bug: 182963397
Test: m
Change-Id: I6d5dd0a8c3879df7bdc1d58e36022045c303bb40
Merged-In: I6d5dd0a8c3879df7bdc1d58e36022045c303bb40
  (cherry-picked from ag/13927649)
2021-03-25 10:48:55 +00:00
Lucas Lin
c4c056b647 Merge "Use getAllInterfaceNames to get all interface names" 2021-03-25 10:44:51 +00:00
Adrian Roos
c33d71d602 Merge "Fix unexpected IME show because of stale requestedVisibleAwaitingControl" into sc-dev 2021-03-25 10:37:09 +00:00
Anna Zappone
0207f0791c Merge "Merge Missed calls onto tiles by Contact Uri" into sc-dev 2021-03-25 10:32:21 +00:00
lucaslin
6642bda243 Remove unused import IConnectivityManager
Bug: 182963397
Test: m
Change-Id: I106b3e4f68b4e5610a238931aa3e81afdd927422
Merged-In: I106b3e4f68b4e5610a238931aa3e81afdd927422
  (cherry-picked from ag/13921812)
2021-03-25 10:22:40 +00:00
Chiachang Wang
3d80507917 Add network disconnected callback
Create a network callback to notify network agent after the
native network being destroyed by netd which means the network
is fully disconnected. The NetworkAgent may handle this event
after sending disconnect state to ConnectivityService to proceed
its pending works that have to be done after it.

Bug: 178725261
Test: make update-api
Change-Id: I602ff2c688909473b03b72c9407d4286608cff4c
CTS-Coverage-Bug: 178725261
2021-03-25 09:58:48 +00:00
Shan Huang
6230fca3d9 Merge "Add charging ripple to wireless charging animation." into sc-dev 2021-03-25 09:46:58 +00:00
Chalard Jean
4dd008b5e7 Merge "[NS04.8] Address comments from NS04 and NS04.5" into sc-dev 2021-03-25 09:34:05 +00:00
Philip Junker
451405eb17 Merge "Add IntDef for system sound effect constants" into sc-dev 2021-03-25 09:31:09 +00:00
Karthik Bharadwaj
05dfc3d849 Merge "Refactor Global Mic Disable" into sc-dev 2021-03-25 09:24:09 +00:00
TYM Tsai
8fe0541d85 Merge "Update the content capture text changed event merge logic" into sc-dev 2021-03-25 09:19:16 +00:00
Arc Wang
18227fa3fd Merge "Fix resource problem in PrivateVolumeForgetTest" into sc-dev 2021-03-25 09:17:59 +00:00
Suprabh Shukla
ea1decfcda Merge "Add an API for a prioritized alarm" into sc-dev 2021-03-25 09:01:57 +00:00
TreeHugger Robot
0e414a7878 Merge "Add network created callback support" into sc-dev 2021-03-25 08:52:56 +00:00
Chiachang Wang
4e0db4bb65 Expose NetworkAgent constructor taking a NetworkScore parameter
Vpn constructs NetworkAgent with this exposed NetworkAgent
constructor. Given NetworkAgent is moving into the incoming
connectivity module, Vpn which is outside the module will not
be able to access it if it's not in the API surface. Thus,
expose it to allow Vpn to use it.

Bug: 182963397
Test: make update-api
Change-Id: Ic2357dcfff3233e0dd17b48b0e376a5095ef60fa
Merged-In: Ic2357dcfff3233e0dd17b48b0e376a5095ef60fa
CTS-Coverage-Bug: 172183305
  (cherry-picked from ag/13966707)
2021-03-25 08:40:27 +00:00
Fiona Campbell
acc5fbcb39 Merge "Store Brightness Per Display" into sc-dev 2021-03-25 08:40:15 +00:00
lucaslin
5aea42137f Expose NetworkScore to external caller
NetworkScore will be a part of mainline module, so the external
callers cannot call its hidden APIs. Expose needed APIs to
the external callers.

CTS-Coverage-Bug: 182963397
Bug: 182963397
Test: m
Change-Id: Iddf8c71a5f51a40bc6ff78626b3e8ee530d1b7eb
Merged-In: Iddf8c71a5f51a40bc6ff78626b3e8ee530d1b7eb
  (cherry-picked from ag/13947595)
2021-03-25 08:15:09 +00:00
lucaslin
03005f9e0c Use getAllInterfaceNames to get all interface names
The current design is using hidden API - getStackedLinks() to
get LinkProperties then call getInterfaceName() to get the
interface name. In fact, this behavior could be replaced by
system API - getAllInterfaceNames().

Bug: 182963397
Test: atest FrameworksNetTests
Test: atest CtsNetTestCases
Change-Id: Id2b19dc5099355af69d23a6d99d2b7e6c0e1e88a
Merged-In: Id2b19dc5099355af69d23a6d99d2b7e6c0e1e88a
  (cherry-picked from ag/13927660)
2021-03-25 08:10:28 +00:00
Hyundo Moon
30b3a36edc Merge "System MR2: Supplement Javadoc for startScan/stopScan" into sc-dev 2021-03-25 08:02:51 +00:00
lucaslin
8a96b31b4c Remove the usage of hidden API - setIsAvailable() from Vpn
In fact, NetworkAgent#getLegacyNetworkInfo() will call this API,
so VPN doesn't need to call it.
Remove the redundant behavior and the usage of hidden API.

Bug: 182963397
Test: m
Change-Id: I3b88f22fffde3dd4000d28342ed07209c7121a37
Merged-In: I3b88f22fffde3dd4000d28342ed07209c7121a37
  (cherry-picked from ag/13929100)
2021-03-25 08:00:49 +00:00
TreeHugger Robot
0c805c2516 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev am: 32c1220518 -s ours am: 47efb227cf -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13989851

Change-Id: I25ce3c45cd83aa2fcef1bc4e11cddd397521326f
2021-03-25 07:32:43 +00:00
Dorin Drimus
9c523065f9 Merge "Adapt first time VPN connection warning to TV form factor" am: 2af1306a77 am: 601e1dd64c am: dd6a619444
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1652319

Change-Id: I8bafe3ec70b1b0fa3fe49d195ced8841da57863f
2021-03-25 07:32:17 +00:00
TreeHugger Robot
230fac1c9c Merge "Make TypedArray implement AutoCloseable" into sc-dev 2021-03-25 07:10:52 +00:00