Commit Graph

468813 Commits

Author SHA1 Message Date
Chiachang Wang
a1b805852e Add permission check for CaptivePortal#reevaluateNetwork
CaptivePortal#reevaluateNetwork is added as a system API which
requires a proper permission check.

Bug: 148379628
Test: Manually check with captive portal
Test: atest FrameworksNetTests
Test: make test-api-stubs-docs-update-current-api \
      system-api-stubs-docs-update-current-api

Change-Id: I559d42089aeb09801d14c251c5165fca793c3cb3
2020-02-12 11:28:55 +00:00
hughchen
8175bf2b80 Use CopyOnWriteArrayList to avoid ConcurrentModificationException
Bug: 149362541
Test: make -j42 RunSettingsLibRoboTests
Change-Id: I9bed14c0141a896ec91d2354df09bb5aaa432dfb
2020-02-12 18:52:34 +08:00
Yotam Aron
0a7e4a2129 Merge "Add atoms for publishing ban state." 2020-02-12 10:36:12 +00:00
TreeHugger Robot
95f80a7998 Merge "Handle prefix when dumping ApplicationInfo#crossProfile" 2020-02-12 10:33:03 +00:00
Automerger Merge Worker
5ff740f15b [automerger skipped] Merge "Expose NETWORK_STACK permission for system and test API" am: 97c24fb167 am: 23fa19dce9 am: 4bf451c321 -s ours
am skip reason: Change-Id I27061280b0c49677fa651c6f9799e48b78e4c109 with SHA-1 b73c737ffc is in history

Change-Id: I58b0d00abbf0c598e0683f9599acb8340575b9e8
2020-02-12 10:17:09 +00:00
Automerger Merge Worker
4bf451c321 Merge "Expose NETWORK_STACK permission for system and test API" am: 97c24fb167 am: 23fa19dce9
Change-Id: I98ee22e6f3c7284a1951fa450203503f8eae3d0c
2020-02-12 10:07:02 +00:00
TreeHugger Robot
806bb8bb38 Merge "Apply Insets animation when hw acceleration unavailable" 2020-02-12 10:02:29 +00:00
TreeHugger Robot
d3c418aa09 Merge "Check to start the PiP animation early." 2020-02-12 09:57:24 +00:00
Tiger Huang
c47b26f038 Remove redundant mFocusedApp from DisplayPolicy
We don't really use mFocusedApp in DisplayPolicy, but just print it out.
It may confuse the reader because we already have one in DisplayContent.
And these mFocusedApp fields can reference to different apps, because
the one in DisplayPolicy will stop updating while the DisplayPolicy
doesn't have a focused window.

Fix: 141869496
Test: Manual and presubmit
Change-Id: Ic6edbade2af24135ee86d4bd9b6d8965e61fa664
2020-02-12 09:55:14 +00:00
Automerger Merge Worker
23fa19dce9 Merge "Expose NETWORK_STACK permission for system and test API" am: 97c24fb167
Change-Id: I46ddde0f99b5444ca8ffc6df1adbcdc9b5317c35
2020-02-12 09:48:27 +00:00
Chiachang Wang
97c24fb167 Merge "Expose NETWORK_STACK permission for system and test API" 2020-02-12 09:28:24 +00:00
JW Wang
d617d2ffbe Extract common code to a lib (4/n)
Bug: 147785893
Test: atest StagedRollbackTest NetworkStagedRollbackTest
Change-Id: I98da9f6287680691eb17afcd931b51c215da213c
2020-02-12 17:22:00 +08:00
Felka Chang
1980c9a893 Disable storage crates functionalities
The Storage Crates functionalities is disabled by default. In order to
make the android system more secure, the crate function should throw
exception to tell the caller that the crate function is disabled until
it addes more tests such as benchmark and memory regression tests.

Bug: 148179319
Fixes: 149366046
Test: atest \
         CtsOsTestCases:android.os.storage.cts.StorageCrateTest \
         CtsOsTestCases:android.os.storage.cts.StorageStatsManagerTest \
         CtsOsTestCases:android.os.storage.cts.CrateInfoTest
Test: adb root ;\
      adb shell setprop fw.storage_crates 1 ;\
      atest \
        CtsOsTestCases:android.os.storage.cts.StorageCrateTest \
        CtsOsTestCases:android.os.storage.cts.StorageStatsManagerTest \
        CtsOsTestCases:android.os.storage.cts.CrateInfoTest
Change-Id: I7bfbdcbde5a90ecad7ef690a9d9a62e5ed0ad5eb
2020-02-12 17:15:26 +08:00
Alex Johnston
3e7916ef18 Merge "Update COPE metrics" 2020-02-12 09:11:15 +00:00
TreeHugger Robot
65abef2f2b Merge "Fix issue #148305913 Upon upgrading ... stuck on G logo" 2020-02-12 08:53:22 +00:00
Bram Bonné
628045a49d Merge "Adds RestrictedStoragePermissionTest to CtsPermission2TestCases." 2020-02-12 08:35:12 +00:00
Jack Yu
e8600a7632 Added comments for each TD-SCDMA bands
Fix: 149316445
Test: Build
Change-Id: I99b8fecc3f588c7cfda6c90cf6e2da570a4dca0b
2020-02-12 08:27:25 +00:00
Kyunglyul Hyun
8239e3f35a Merge "MediaRouter2: Add group volume" 2020-02-12 08:20:50 +00:00
Martijn Coenen
ca8106f200 Merge "Give installers/DownloadManager/MTP correct GIDs." 2020-02-12 08:14:19 +00:00
TreeHugger Robot
5f212d0010 Merge "Revert "enable dynamic binding in AppPredictionSession"" 2020-02-12 08:05:03 +00:00
JW Wang
1d069de945 Merge "Move testNetworkPassedDoesNotRollback (3/n)" 2020-02-12 08:00:00 +00:00
Pierre Barbier de Reuille
1858482e49 Add manifest broadcasts for profile (un-)available.
This mean both switch on/off and add/remove profiles.

The broadcasts already exists for registered receivers, this adds them
for manifest receivers with INTERACT_ACROSS_PROFILES permission and
crossProfile attribute.

The MANAGED_PROFILE_REMOVED broadcast is sent to all application with
android:crossProfile="true". Any cross profile app may be impacted, and
there is no possible transfer of information as the account is already
deleted at the time the signal is emitted.

Change-Id: I17fb9a01b70b28845c5d6aacdcdd497a82391474
Fix: 145135525, 145598120
Test: Demo-app using Digital Wellbeing (automated test underway).
Test: atest com.android.cts.devicepolicy.CrossProfileAppsPermissionHostSideTest
Test: atest 'com.android.cts.devicepolicy.QuietModeHostsideTest#testBroadcastManagedProfileAvailable_withCrossProfileAppsOp'
Test: atest 'com.android.cts.devicepolicy.QuietModeHostsideTest#testBroadcastManagedProfileAvailable_withoutCrossProfileAppsOp'
2020-02-12 07:44:23 +00:00
Automerger Merge Worker
725becc7fe [automerger skipped] Merge changes Ibc9b1965,I288ea32f am: 7fa63afe6d am: 6185ee9556 am: b02723fb0a -s ours
am skip reason: Change-Id I35fc4a814238635fa95981649c27230dda319afa with SHA-1 fad31b5a0a is in history

Change-Id: I12a9deb9ada16ad5438844a1b057047188ecc05b
2020-02-12 06:51:35 +00:00
Automerger Merge Worker
03a6ef9f68 [automerger skipped] Add a systemapi constructor for NetworkAgent am: 6dc9854996 am: b9e9fcbc88 am: 9460f658e4 -s ours
am skip reason: Change-Id I288ea32fac07a9a486e2ea451a2c9b098446a74c with SHA-1 3b680ae1e6 is in history

Change-Id: I5e28684a0aa3734b53b1316823b179b9895d0793
2020-02-12 06:51:31 +00:00
Automerger Merge Worker
b02723fb0a Merge changes Ibc9b1965,I288ea32f am: 7fa63afe6d am: 6185ee9556
Change-Id: Ie9e18056da529defae5c5a0065607cd972d30b80
2020-02-12 06:35:42 +00:00
Automerger Merge Worker
9460f658e4 Add a systemapi constructor for NetworkAgent am: 6dc9854996 am: b9e9fcbc88
Change-Id: I091a6c7d8e92c22ca9393b5c974fcda5356d4102
2020-02-12 06:35:39 +00:00
Tiger Huang
7eb03b6068 Merge "Test more about InsetsSourceProvider.updateControlForTarget" 2020-02-12 06:33:30 +00:00
Automerger Merge Worker
6185ee9556 Merge changes Ibc9b1965,I288ea32f am: 7fa63afe6d
Change-Id: I6eb675ddfa609dcc3031e916ce49959e42cf53f6
2020-02-12 06:25:49 +00:00
Automerger Merge Worker
b9e9fcbc88 Add a systemapi constructor for NetworkAgent am: 6dc9854996
Change-Id: I3fa3ec32d3c580ba0b7f2d515e08d27dd6af5bcd
2020-02-12 06:25:42 +00:00
TreeHugger Robot
7d36a8d3ae Merge "Add equals/hashcode for GnssStatus" 2020-02-12 06:19:54 +00:00
Chalard Jean
7fa63afe6d Merge changes Ibc9b1965,I288ea32f
* changes:
  Fix invalid usage of javadoc
  Add a systemapi constructor for NetworkAgent
2020-02-12 06:10:32 +00:00
Aaron Huang
9be870d8bd Fix invalid usage of javadoc
CP from ag/10125651

Test: this change removes invalid usage
Change-Id: Ibc9b1965ec7aa545c0dae71d741c3802d3a9fa12
Merged-In: I35fc4a814238635fa95981649c27230dda319afa
2020-02-12 06:10:10 +00:00
Shawn Lin
328e659c2d Merge "Make SHORT_EDGES mode only extends on the short edges" 2020-02-12 06:09:19 +00:00
TreeHugger Robot
60df8553d1 Merge "Add a new feature flag for Settings Schedules" 2020-02-12 06:06:56 +00:00
Sudheer Shanka
65ddd82e54 Merge "Update BlobStoreManager javadoc." 2020-02-12 06:01:22 +00:00
Sudheer Shanka
13dee55833 Merge "Fix a grammatical mistake in javadoc." 2020-02-12 06:00:25 +00:00
Chiachang Wang
d643862a46 Expose NETWORK_STACK permission for system and test API
NETWORK_STACK permission is used for system and test API
permission check which should also be system API. Expose
as it is.

Bug: 148379628
Test: make test-api-stubs-docs-update-current-api \
      system-api-stubs-docs-update-current-api

Change-Id: I87db8568f20f26eabf236f76a8e281a63bf25114
Merged-In: I27061280b0c49677fa651c6f9799e48b78e4c109
2020-02-12 13:44:23 +08:00
Rambo Wang
e85e8e7cd3 Update javadoc of deprecated UICC APIs
b/146360599 is used to deprecate some UICC APIs but leaving TODO
comments as the replacement APIs in SeureElement is not ready.
With SecureElement APIs settle down, the javadocs are updated
to link to specific replacement APIs.

Bug: 148981423
Test: make offline-sdk-docs
Change-Id: I5646ea25daa514023f808a0abc4065b85e55d4ef
2020-02-11 21:39:40 -08:00
wilsonshih
f587b63147 Move the view inflation outside of constructor.
Move the view inflation operation from the constructor of
NotificationShadeWindowController to StatusBar#start.

Fix: 149326478
Test: atest SystemUITests
Change-Id: I34386e30ac0777d7b2ba93142ad69e6ff43dbc82
2020-02-12 13:30:18 +08:00
Automerger Merge Worker
8869427bbb Merge "[SP10] Add IntDef annotations for system api of NetworkStats" am: 0f19f99cf6 am: b5b5ebd1a9 am: 9e1ab88bd0
Change-Id: I0e7322090364fc1724797641276416c07277d0bc
2020-02-12 05:27:01 +00:00
Automerger Merge Worker
9e1ab88bd0 Merge "[SP10] Add IntDef annotations for system api of NetworkStats" am: 0f19f99cf6 am: b5b5ebd1a9
Change-Id: Icc69f682437baf209aa537820201be45db6ccf3a
2020-02-12 05:11:59 +00:00
Automerger Merge Worker
b5b5ebd1a9 Merge "[SP10] Add IntDef annotations for system api of NetworkStats" am: 0f19f99cf6
Change-Id: I4d352ed54671ce77ebbcaa9f0808a0ef703d3c6f
2020-02-12 04:54:02 +00:00
TreeHugger Robot
260ffabb43 Merge "Fix CTS flakes caused by creating duplicated inputconsumer" 2020-02-12 04:53:38 +00:00
Roshan Pius
3e63df535a NetworkRequest: Embed requestor uid & packageName
Add the requestorUid & requestorPackageName fields to
NetworkCapabilities. This is populated by CS when
a new network request is received.
These 2 requestor fields are also optionally used for network
matching. All of the regular app initiated requests will have the
requestor uid and package name set by connectivity service. Network
agents can optionally set the requestorUid and requestorPackageName
to restrict the network created only to the app that requested the network.

This will help removing the necessity for the various specifiers to embed
the uid & package name info in the specifier for network matching.

Note: NetworkSpecifier.assertValidFromUid() is deprecated & removed in
favor of setting the uid/package name on the agent to restrict the
network to a certain app (useful for wifi peer to peer API & wifi aware).

Bug: 144102365
Test: Verified that wifi network request related CTS verifier tests
pass.
Test: Device boots up and connects to wifi networks
Change-Id: I207c446108afdac7ee2c25e6bbcbc37c4e3f6529
Merged-In: I207c446108afdac7ee2c25e6bbcbc37c4e3f6529
2020-02-12 04:42:58 +00:00
Jeff Sharkey
1758e2fb7a Merge "Add column for indexed XMP metadata." 2020-02-12 04:41:46 +00:00
Treehugger Robot
0f19f99cf6 Merge "[SP10] Add IntDef annotations for system api of NetworkStats" 2020-02-12 04:37:55 +00:00
shubang
c8736b787e Tuner JNI: frontendCallback
Test: mannual
Change-Id: I514a4068660e043c7349a0f2d471cf4b11968eed
2020-02-11 20:10:28 -08:00
Automerger Merge Worker
15bee94b77 Merge "[GWP-ASan] Scan GWP-ASan regions for native allocations." am: b666519a50 am: 9346552f89 am: 044bf6dd61
Change-Id: I37d4876344d9d016658e8ea698c715b0ef51d60f
2020-02-12 04:00:51 +00:00
Soonil Nagarkar
23fcf56454 Add equals/hashcode for GnssStatus
Will help substantially with testing.

Test: presubmits
Change-Id: If1e5a3214c17b75a4cd47de85cfc0af5e62f9866
2020-02-11 19:53:44 -08:00
Automerger Merge Worker
044bf6dd61 Merge "[GWP-ASan] Scan GWP-ASan regions for native allocations." am: b666519a50 am: 9346552f89
Change-Id: Id9cc755abedce482599d3803608f5f1694bfe3bd
2020-02-12 03:51:16 +00:00