Commit Graph

98385 Commits

Author SHA1 Message Date
TreeHugger Robot
d6b38783fd Merge "Rename PO Device IDs access -> Org Owned device" 2019-11-26 18:59:48 +00:00
TreeHugger Robot
4da9fbe356 Merge "Secure FRP : Add a secure bit to know when the device is in secure FRP mode." 2019-11-26 17:56:45 +00:00
Jayachandran Chinnakkannu
f6166035c4 Merge "Remove usage of hidden API TelephonyManager.getNetworkTypeName(int)" am: 9dcbd6de87 am: c0ea72cf10
am: f72d5dbbf1

Change-Id: I8a7f28feb66265be2379beda7bc3fce732e4a294
2019-11-26 09:37:25 -08:00
Jayachandran Chinnakkannu
f72d5dbbf1 Merge "Remove usage of hidden API TelephonyManager.getNetworkTypeName(int)" am: 9dcbd6de87
am: c0ea72cf10

Change-Id: I916e810b6350be9c1a6b24f2a652e05a1fa444fa
2019-11-26 09:31:33 -08:00
Jayachandran Chinnakkannu
c0ea72cf10 Merge "Remove usage of hidden API TelephonyManager.getNetworkTypeName(int)"
am: 9dcbd6de87

Change-Id: Iada558f0d94e08281b6e41825946e5b807618da6
2019-11-26 09:26:07 -08:00
Jayachandran Chinnakkannu
9dcbd6de87 Merge "Remove usage of hidden API TelephonyManager.getNetworkTypeName(int)" 2019-11-26 17:17:38 +00:00
Eran Messeri
18d21312ca Rename PO Device IDs access -> Org Owned device
Repurpose the "Profile Owner was granted access to device identifiers"
to "Profile Owner of an Organization-owned device".

The old method now throws an exception, as it should not be called by
anything other than ManagedProvisioning (which is changed in this topic).

The new method now provides the functionality the old method provided,
and there's a new permission associated with it.

No functionality has been added or removed in this CL beyond that.

Bug: 138709470
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Test: atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testDeviceIdAttestationForProfileOwner
Change-Id: I9914e8220213898d0c6b3499af8897e3a6f23819
2019-11-26 14:57:30 +00:00
Eran Messeri
804d53c6f2 Merge "Wiping and relinquishing org-owned devices" 2019-11-26 14:50:38 +00:00
Simranjit Singh Kohli
2cebd529f3 Secure FRP : Add a secure bit to know when the device is in secure FRP mode.
Bug: 141262900
Test: atest SettingsProviderTest
Change-Id: Iabc1f699d6afd6a1524b37f992314b9b20463bc2
2019-11-26 06:34:12 -08:00
Eran Messeri
b8c46e0862 Wiping and relinquishing org-owned devices
Add the following functionality, on devices with a managed profile
created during provisionining (and as such, considered
organization-owned):

* Let the Profile Owner relinquish a device by calling
  DevicePolicyManager.wipeData. The device then transitions
  to a fully-personal device.
* Let the Profile Owner wipe the entire device by calling
  wipeData on the parent profile DevicePolicyManager instance.

Bug: 138709470
Test: Manual with TestDPC.
Test: atest CtsDevicePolicyManagerTestCases:com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest
Test: atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testDeviceIdAttestationForProfileOwner
Change-Id: If3cc9741079592cb07bc1ef5ccca8fb2b57a52e9
2019-11-26 09:33:03 +00:00
Dieter Hsu
2574b4a1dd Update test mappings for CtsAccessibilityServiceSdk29TestCases
Bug: 145096015
Test: make checkbuild
Change-Id: I45462071dfce5dca3df97c50a784c38e02b83ad6
2019-11-26 03:09:17 +00:00
Jayachandran C
f823445e53 Remove usage of hidden API TelephonyManager.getNetworkTypeName(int)
This CL deletes the reference to this API as its used in a dead code
which is used for debugging only.

Bug: 140908357
Test: Build
Change-Id: I9fa1996ab5fdb5ab884128d06c2e92bab164dea7
2019-11-25 15:19:47 -08:00
TreeHugger Robot
6636ea6da3 Merge "Allow adding EmbeddedWindows without host windows" 2019-11-25 21:44:46 +00:00
TreeHugger Robot
fa1d8bc360 Merge "Address API feedback." 2019-11-25 19:46:04 +00:00
Neil Fuller
882bc94f6f Merge "Remove dead code from SystemServer" am: 05eeef4188 am: 01d1dd28f1
am: 18e458ef00

Change-Id: Ibb828d6acea117032d9dbb1e6669c119768f5cf3
2019-11-25 10:40:53 -08:00
Meng Wang
ec606bd492 Merge "System API: Context#registerReceiverForAllUsers" am: 9e590914cb
am: 5eda192492

Change-Id: Ia177e20dd70a6db34accd01dfa1e4c59f264cbc1
2019-11-25 10:16:28 -08:00
Meng Wang
5eda192492 Merge "System API: Context#registerReceiverForAllUsers"
am: 9e590914cb

Change-Id: I2d98300ad4958d19e69dcdfda83e9d5df086d43a
2019-11-25 10:07:43 -08:00
Meng Wang
9e590914cb Merge "System API: Context#registerReceiverForAllUsers" 2019-11-25 17:53:53 +00:00
Kweku Adams
ed1cfed835 Address API feedback.
Add @param and @return to new SparseArray.contains() method.

Bug: N/A
Test: N/A
Change-Id: I81460524f29628a4ce1e47b1510c2887fa51717d
2019-11-25 09:53:51 -08:00
Charles Munger
ccce5e7915 Merge "Deprecate FileUtils.closeQuietly" am: e4b84f3475 am: 769cf05c56
am: 17fac19d82

Change-Id: Iccafa4d1eda9861d99f80f90652b87833387f571
2019-11-25 07:33:11 -08:00
Rahul Sabnis
fe521bfca6 Merge "Resolve API dependencies on BluetoothPan" am: bad5a30d4f am: e89625113d
am: 8c6b4a1938

Change-Id: I1fbeb090cff73c1902ee676bfb2e0848d1ac5988
2019-11-25 07:31:07 -08:00
Charles Munger
b773ec723d Merge "Deprecate ListActivity and ExpandableListActivity" am: 0600b03d46 am: 87119ab3e2
am: e28f085137

Change-Id: If95dea203b5563252785802ba19df8288a162589
2019-11-25 07:29:17 -08:00
Charles Munger
6562afcd52 Merge "Deprecate TimingLogger" am: aec0ab99d4 am: 416618a591
am: d1c3f26e59

Change-Id: I28aeac2c4ebad13a23b20e22ff31674f61ba17c7
2019-11-25 07:28:40 -08:00
Charles Munger
718b71bdca Merge "Deprecate Looper.prepareMainLooper" am: b1f69203e7 am: 8292d73554
am: d2db9aeebc

Change-Id: Id49e8ee1bcce156f6efe9da590eb1aac476f2726
2019-11-25 07:28:01 -08:00
David Castro
530c32a56e Merge "Removes reference to deprecated code sample, https://github.com/googlesamples/android-CustomChoiceList." into qt-dev am: 3b74a86752 am: 3a6d5555cd am: 56be7c0b58
am: 1294b8b570

Change-Id: I687031198545e945dcd72950d3c195d312c2d338
2019-11-25 07:22:29 -08:00
Chalard Jean
839ff7dded Merge changes I195d894e,I7069c111 am: 87ed7d7816 am: aab1364ef9
am: eb24ef664f

Change-Id: I3a8926f3b444f19b6db200c361ce348da25dbcb8
2019-11-25 07:20:17 -08:00
Aaron Huang
fde6552f0c Merge "Expose IpConfiguration and ProxyInfo APIs" am: 920a4a5b1b am: 4082917f46
am: d78b2a0b67

Change-Id: Iebd6cdd25f61a2255f1e17984bafda4c79a7d518
2019-11-25 07:16:49 -08:00
Neil Fuller
18e458ef00 Merge "Remove dead code from SystemServer" am: 05eeef4188
am: 01d1dd28f1

Change-Id: Ifa10a6e2b48f596bfa6854e1a950cec060253c76
2019-11-25 06:28:07 -08:00
Neil Fuller
01d1dd28f1 Merge "Remove dead code from SystemServer"
am: 05eeef4188

Change-Id: I910fb0ac35c8de8fd500b3df0253c65b6b201fb4
2019-11-25 06:12:57 -08:00
Roshan Pius
126fb85c29 Merge "NetworkScoreManager: Add @SystemApi for wifi mainline module" am: 5b57190f08
am: 0564779e76

Change-Id: I04580ad32eefb2ce4c8df8f1037b8457238c30eb
2019-11-25 06:05:07 -08:00
Neil Fuller
05eeef4188 Merge "Remove dead code from SystemServer" 2019-11-25 13:53:15 +00:00
Roshan Pius
0564779e76 Merge "NetworkScoreManager: Add @SystemApi for wifi mainline module"
am: 5b57190f08

Change-Id: I73c98d9dcb43f2db1e74f6d431f07ac90ee813e6
2019-11-25 05:50:08 -08:00
Oli Lan
129a2c09ac Wait for available rollbacks in RollbackTest. am: 77a40731f8
am: 170a519878

Change-Id: I8a40c818a3ea6499f28b096a2d342b26e7153080
2019-11-25 05:43:32 -08:00
Oli Lan
eb559106bd Include NewRollbacks in result of getAvailableRollbacks. am: dc4a36105b
am: b63dfa2d3b

Change-Id: I4f35f5098c650288db33bf304ba8adbac14f4ed6
2019-11-25 05:43:25 -08:00
Oli Lan
ab81c07bb0 Remove INSTALLED_USERS extra from ACTION_PACKAGE_ENABLE_ROLLBACK. am: 87a504d1fc
am: 682e501c2a

Change-Id: Icad482e10141258d65b9bbc380830418e17486e8
2019-11-25 05:43:12 -08:00
Richard Uhler
38467d7eef Cleanup some obsolete TODOs and unused code. am: cda1a17516
am: 01178b4f9d

Change-Id: I8077abf3a2262e13a0c638bb2c7f8c052d22a7f6
2019-11-25 05:42:44 -08:00
Alan Stokes
0f2b7fd29a Merge "Delete PACKAGE_VERIFIER_USER_CONSENT from Settings." 2019-11-25 13:41:49 +00:00
Oli Lan
170a519878 Wait for available rollbacks in RollbackTest.
am: 77a40731f8

Change-Id: I83b8f07f333e318bb7fd31b2bec3f868b1848c6c
2019-11-25 05:35:57 -08:00
Oli Lan
b63dfa2d3b Include NewRollbacks in result of getAvailableRollbacks.
am: dc4a36105b

Change-Id: I6d45d8a2c408e4d8def25895846d6b7c3bf0de29
2019-11-25 05:35:35 -08:00
Oli Lan
682e501c2a Remove INSTALLED_USERS extra from ACTION_PACKAGE_ENABLE_ROLLBACK.
am: 87a504d1fc

Change-Id: I8636d29038d10d3f4182e130de08ad8efa294a8e
2019-11-25 05:34:25 -08:00
Dan Sandler
486ad0d659 Action chips in share sheet. (DO NOT MERGE)
am: 0d3e358628

Change-Id: I0df785ea4279811fe4f556f67dde8e3c6cef98b0
2019-11-25 05:28:10 -08:00
Richard Uhler
01178b4f9d Cleanup some obsolete TODOs and unused code.
am: cda1a17516

Change-Id: I56bce126042670678002ddbbfcf14ff9f94860c3
2019-11-25 05:24:46 -08:00
Sergej Salnikov
f2c2a1b595 Merge "Delete SearchManager.launchAssistService and convert SearchManager.launchAssist into @SystemApi method that handles both phone and TV devices." 2019-11-25 12:08:08 +00:00
Treehugger Robot
5b57190f08 Merge "NetworkScoreManager: Add @SystemApi for wifi mainline module" 2019-11-25 06:39:04 +00:00
Rhed Jao
a7ac868de8 Merge "Accessibility shortcut improvement (4/n)" 2019-11-25 03:53:24 +00:00
Rhed Jao
9acdb42cc9 Merge "Fix legacy a11y service fail to update a11y button flag" 2019-11-25 03:52:45 +00:00
Bill Lin
63e6d6af01 Merge changes from topic "migrate_CtsStagedInstallTest_RollbackTest"
* changes:
  Add multi-user test for the general non-staged case
  Increase timeout in testNativeWatchdogTriggersRollback
  Fix flaky testEnableRollbackTimeoutFailsRollback test
  Wait for available rollbacks in RollbackTest.
  Include NewRollbacks in result of getAvailableRollbacks.
  Rename RollbackData to Rollback.
  Remove INSTALLED_USERS extra from ACTION_PACKAGE_ENABLE_ROLLBACK.
  Update to new RollbackUtils.sendCrashBroadcast API.
  Extend ROLLBACK_COMMITTED broadcast for the multi-user case
  Fix NullPointerException.
  Cleanup some obsolete TODOs and unused code.
  Test Native Watchdog triggers RollbackManager rollback
  Uninstall testapps before running SecondaryUserRollbackTest
  delete ENABLING rollback if we can't get session info for it.
  Add test for rollback of userdata with multiple rollbacks
  Load rollback data in RollbackManagerServiceImpl constructor.
  Use "commit" for rollbacks instead of "execute".
  Add TestApi to block the RollbackManagerHandlerThread.
  Use Slog in RollbackManager, not Log
  Make setRequestDowngrade @TestApi
  Migrate RollbackTest and StagedRollbackTest to cts utils
  Add .apex suffix to apex files during validation
  Add host side test for secondary user rollback
  Reduce ENABLE_ROLLBACK timeout to 0 for timeout test.
2019-11-25 02:56:10 +00:00
Dan Sandler
0d3e358628 Action chips in share sheet. (DO NOT MERGE)
Move the Copy button to a new row of chips below the
(now larger) preview. Optionally, if a proximity-sharing
service is installed, show that chip as well.

Bug: 143229724
Fixes: 144290152
Test: atest SystemUITests frameworks/base/core/tests/coretests
Change-Id: I0d6457df85bc937f72ca97da6b4b84b634a90daf
2019-11-24 23:39:49 +00:00
Roshan Pius
9518866c53 NetworkScoreManager: Add @SystemApi for wifi mainline module
Add formal API's for API's that the wifi mainline module uses:
a) NetworkScoreManager.requestNetworkScores - Request new network scores.
b) NetworkScoreManager.registerNetworkScoreCallback - @SystemApi wrapper
over the existing registerNetworkScoreCache.
c) NetworkKey.createFromScanResult - Create NetworkKey from ScanResult.

Also,
a) Converted the existing WifiNetworkScoreCache callback implementation to
support both the new @SystemApi (used by wifi) and the old @hide API
(used by settings).
b) Stopped invoking dump on all the callbacks from NetworkScoreService.
The dump of each callback should be invoked at their client site (i.e
wifi service should dump state of the callback it registers with the
service).
c) Added a helper method |dumpWithLatestScanResults| to help dump the
state of the WifiNetworkScoreCache from wifi service.

Bug: 144487252
Test: a) Device boots up and connects to wifi network.
b) Manually verified that network scores are being requested & updated
with the new interface.

Change-Id: Id5a66189150e7a088127519373a832f63bdd12ac
Merged-In: Id5a66189150e7a088127519373a832f63bdd12ac
(cherry-picked from c278f80c28)
2019-11-24 07:04:30 +00:00
Roshan Pius
61069abccb Merge "NetworkScoreManager: Add @SystemApi for wifi mainline module" 2019-11-24 06:57:07 +00:00