Commit Graph

4965 Commits

Author SHA1 Message Date
Stanislav Zholnin
bbe1969596 Merge "Add logging when parsing fails in DeviceConfig API getters." 2019-03-13 10:10:13 +00:00
Nadav Bar
21f2ecfaaa Merge "Adding the on-device captions service toggle into the volume rocker." 2019-03-13 04:54:28 +00:00
TreeHugger Robot
c91fa25bee Merge "Always suppress font error during resource loading" 2019-03-13 01:05:39 +00:00
Matt Pape
5bb71f49b3 Merge "Remove interface for dex_boot." 2019-03-12 21:58:01 +00:00
Seigo Nonaka
96e93959fb Always suppress font error during resource loading
I suppressed the font error during resource loading only if the
targetSdkVersion is API 28 or before, but it turned out that this
makes developers hard to use font resources since:
- We don't give a list of supported font files and OEM may extend/shrink
  the font support.
- There is no way to resolve this error during layout inflation.

So, now always supress the IllegalArgumentException during building
Typeface in resource loading.

Bug: 127714175
Test: atest CtsTextTestCases
Test: atest CtsGraphicsTestCases
Test: atest FontsContractTest
Test: atest CtsWidgetTestCases
Change-Id: I08b9f27aaf25ff491fa36d0a4befb3c6e64abfcf
2019-03-12 12:13:14 -07:00
Stanislav Zholnin
ffea1de0c7 Add logging when parsing fails in DeviceConfig API getters.
Test: atest FrameworksCoreTests:DeviceConfigTest
Change-Id: I04aee32561f8c2c3ab5fd966f49b608f1e47ae03
2019-03-12 17:10:12 +00:00
TreeHugger Robot
fbdd7930a0 Merge changes I72e979ce,I183b8a48
* changes:
  Add @IntDef for status of committed rollback.
  Use test stubs for RollbackTests, not system stubs.
2019-03-12 16:25:25 +00:00
Richard Uhler
8a9774550d Use test stubs for RollbackTests, not system stubs.
Adds @TestApi for all system apis needed for RollbackTests.

Removes @SystemApi for RollbackManager.expireRollbackForPackage and
RollbackManager.reloadPersistedData, which were always intended to be
used solely for testing.

Bug: 127282563
Test: atest RollbackTest StagedRollbackTest
Change-Id: I183b8a484b4a08f36fc19d64241ab408d28c64ca
2019-03-12 12:14:37 +00:00
yuemingw
9d73faef7d Improve the javadoc for cross profile calendar uris.
Test: manual
Bug: 123625889
Change-Id: If3015774428aa772801871a56c582c16935a7d63
Bu: 126904569
Bug: 126700505
2019-03-12 05:25:34 +00:00
Matt Pape
2933d3df56 Remove interface for dex_boot.
Per API council feedback, we are making changes to include only the
namespace in the system API defined in DeviceConfig.java. Strings which
define property names should be defined in code local to the feature
instead.

Bug: 126411407
Test: atest FrameworksCoreTests:DeviceConfigTest
      atest FrameworksServicesTests:DexManagerTests

Change-Id: I6af1b6f2d0071f800fa33efa2a548577635dd013
2019-03-11 15:56:02 -07:00
Matt Pape
79f2408ef7 Merge "Add DeviceConfig.onPropertiesChangedListener." 2019-03-11 21:33:22 +00:00
Anthony Tripaldi
a404da31ef Adding the on-device captions service toggle into the volume rocker.
Change-Id: Iec78b07a7df0c22f7f505cab7910315b7ea07d6b
Bug: 126956988
Test: manually
2019-03-11 16:55:28 -04:00
Matt Pape
ea9881d881 Add DeviceConfig.onPropertiesChangedListener.
Add a listener which replies with an object containing one or many flags
as well as parsing methods. This should replace the previous listener,
but we need to keep the old one around for now because Google Play
services is reliant on it.

Bug: 126414261
Test: atest FrameworksCoreTests:DeviceConfigTest

Change-Id: Ie8d32eced077a8df17be824e94271bd6b15fae3d
2019-03-11 11:43:49 -07:00
TreeHugger Robot
5c6d4ea6d2 Merge "Fixed Settings.ACTION_REQUEST_ENABLE_CONTENT_CAPTURE javadoc" 2019-03-11 17:20:48 +00:00
Jeff Sharkey
07842bc7d5 Merge "Updated API docs." 2019-03-09 02:02:21 +00:00
Felipe Leme
a248e8193a Fixed Settings.ACTION_REQUEST_ENABLE_CONTENT_CAPTURE javadoc
Test: echo 'In TreeHugger we trust!'
Bug: 119264902

Change-Id: I8855509b96a060483cdfada9cd0e3e10662a2c69
2019-03-08 14:34:55 -08:00
Jeff Sharkey
fd66ed0980 Updated API docs.
Bug: 121324710
Test: manual
Change-Id: I79eabd16bb87428800e5654f117227160b496132
2019-03-08 15:09:21 -07:00
Beverly Tai
422b097b97 Merge "Store gesture counts in Secure Settings" 2019-03-08 19:41:29 +00:00
TreeHugger Robot
99cf0e8e17 Merge "Add Wifi Settings Panel API" 2019-03-08 19:13:09 +00:00
Dan Shi
6c00005e22 Merge "Revert "Run settings tests when adding settings"" 2019-03-08 18:43:42 +00:00
Dan Shi
b7ecd9b6ef Revert "Run settings tests when adding settings"
This reverts commit 569be7df9d.

Reason for revert: b/124346411
Please use package filter for now. A mix of class and package filter is not supported by AJUR as of now. Once that bug is fixed, we can revert the revert.

Change-Id: I12981a97e392a3bc5e0027b3c53cf915b7d480e1
2019-03-08 18:33:56 +00:00
Shafik Nassar
ae742e8a4e Merge "API cleanup: DeviceConfig.Rollback documentation" 2019-03-08 17:57:51 +00:00
Lucas Dupin
c5c616455b Merge "Setting to bypass lock screen upon face unlock" 2019-03-08 17:12:04 +00:00
shafik
508c3d5d91 API cleanup: DeviceConfig.Rollback documentation
Added documentation for the different namespaces in
DeviceConfig.Rollback with emphasis on the difference between them.

Added flag type and namespace to the documentation of each flag.

Fixes: 127282774
Test: build
Change-Id: If62a94a0d2775d709af5aebc07b82154842853bc
2019-03-08 15:54:33 +00:00
Philip P. Moltmann
dcc5789ce6 Merge "Run settings tests when adding settings" 2019-03-08 02:57:41 +00:00
Lucas Dupin
c94963fd90 Setting to bypass lock screen upon face unlock
Test: atest BiometricsUnlockControllerTest
Test: adb shell settings put secure face_unlock_dismisses_keyguard 0
Test: adb shell settings put secure face_unlock_dismisses_keyguard 1
Bug: 111414690
Change-Id: Id3b112644017bcacf2529717e1ae4b019b00a822
2019-03-07 15:00:27 -08:00
Philip P. Moltmann
279e84697d Merge changes from topic "revokeLocOnUpgrade"
* changes:
  Control revoke-on-upgrade behavior for loc perm
  Revoke location permissions on upgrade from Pre-Q
  No special case for location permission
  Inherit flags when inheriting permission state
2019-03-07 20:42:38 +00:00
Beverly
5be52486e2 Store gesture counts in Secure Settings
- Add settings to secure.proto

Test: manual
Bug: 127341029
Change-Id: I7843fe55930a3f20100693cfdcf9636e941dfed3
2019-03-07 13:58:56 -05:00
TreeHugger Robot
69ea91828c Merge "Improved how content capture is disabled by settings." 2019-03-07 18:44:31 +00:00
Xiao Ma
d11f62d9ba Merge "add networking connectivity namespace." 2019-03-07 09:28:03 +00:00
Xiao Ma
61089ea8b5 add networking connectivity namespace.
Bug: 112869080
Test: m -j passed
Change-Id: I617257a1d8f2f0f4336e526d7fab6f8d12143d3b
2019-03-07 14:51:52 +09:00
Yiwen Chen
71c2da8aa2 Merge "Add default value for apply_ramping_ringer." 2019-03-07 03:52:00 +00:00
Philip P. Moltmann
569be7df9d Run settings tests when adding settings
Test: atest --test-mapping frameworks/base/core/java/android/provider/
Change-Id: Ia3af3fc7cf8f57e04d5978d4303c2ad0712f7515
2019-03-06 19:50:32 -08:00
Philip P. Moltmann
e5d998f9fb Control revoke-on-upgrade behavior for loc perm
By default: Revoke on upgrade, but can be disabled by setting the
location_permissions_upgrade_to_Q_mode to anything but 0.

Fixes: 127285709
Test: Upgraded from P to Q with and without
      location_permissions_upgrade_to_Q_mode set
      atest --test-mapping frameworks/base/core/java/android/provider:presubmit
Change-Id: I4dd1772e78f46c881a5f747fcf61583beec2d6a2
2019-03-06 19:50:32 -08:00
Felipe Leme
8db0036c21 Improved how content capture is disabled by settings.
- Use 1/0 instead of true/false for the settings value.
- Improved logging / internal logic by splitting disabled by settings and device config.
- Other minor fixes.

Test: atest CtsContentCaptureServiceTestCases

Bug: 119264902

Change-Id: I51b99588f823c4e1eaf496841efd45757e4258be
2019-03-06 17:59:02 -08:00
Matt Pape
d926ae08d6 Merge "Add DeviceConfig.Properties and return it from change listener." 2019-03-06 21:41:58 +00:00
TreeHugger Robot
9a5663c787 Merge "Migrate to DeviceConfig in TextClassifier" 2019-03-06 19:51:53 +00:00
Matt Pape
1013d298a2 Add DeviceConfig.Properties and return it from change listener.
Add a second method to the OnPropertyChangedListener which returns a
Properties object instead of a single flag. This object will hold only
one flag for now (Q) but easily supports multiple flags at a time when
we are ready to support atomic writes (R). This Properties object also
contains typed getters, so we don't force every single client to
dupliate the parsing and default value logic.

For now, the new method in the change listener has a default
implementation which calls the old method. This ensures that no one's
code is broken (because they aren't implementing the new method) and no
one's feature stops working (the old method is still being called).

This is part 1 of a 4 step migration from the single flag callback to
the new Properties callback.

Part 2 will update the OneTimeDeviceConfigListener in the gts/ repo to
override both the old and new callback methods.

Part 3 will update the DeviceConfig.OnPropertyChangedListener to provide
a default implementation for the old method instead of a default
implementation for the new method. At the same time, all implementations
of DeviceConfig.OnPropertyChangedListener in the core repo will be
updated to implement the new method instead of the old method.

Part 4 will update the OneTimeDeviceConfigListener in the gts/ repo to
override only the new callback method and delete the implementation of
the old callback method.

These 4 parts have to happen in order.

Bug: 126414261
Test: atest FrameworksCoreTests:DeviceConfigTest

Change-Id: If75bce326dcdbc38e22d95982e57ad466cbecdb6
2019-03-06 11:15:55 -08:00
David Su
80421043ad Merge "Link Probing: Update comment to reflect that link probing is enabled by default" 2019-03-06 17:35:02 +00:00
Jeff Sharkey
715b34be65 Merge "Add trivial nullability annotations." 2019-03-06 16:17:56 +00:00
Ivan Chiang
ffba15565f Update Nullability of Apis
Update Nullability of apis in DocumentsContract,
DocumentsProvider.

Test: make
Change-Id: Icc81333707bbeb9fe6d410ee35ade761e2d3b254
Fix: 126700626
Fix: 126702360
Fix: 126700352
2019-03-06 15:04:49 +08:00
Chiachang Wang
5df93de035 Merge "Update description based on API feedback" am: f397b39442 am: 784556da5b
am: d12b6c929e

Change-Id: Iae04c9f13a9bdd12b69e7780381f202a55bfc44f
2019-03-05 19:23:19 -08:00
Jeff Sharkey
ba4acd5575 Add trivial nullability annotations.
Bug: 126702077, 126701263, 126700858, 126700497
Test: manual
Change-Id: Ic6599f59e6e079097a35cb2bf24c59a87627c8b7
Exempt-From-Owner-Approval: Trivial API annotations
2019-03-05 19:48:55 -07:00
David Su
a171efbefb Link Probing: Update comment to reflect that link probing is enabled by default
Link Probing: Update comment to reflect that link probing is enabled by default

Bug: 112029045
Test: compiles
Change-Id: I40f79aec2a0898a74b2a8b9073990635c3a3009a
2019-03-05 12:38:24 -08:00
Yiwen Chen
0305b57a33 Add default value for apply_ramping_ringer.
Bug: 120789399
Test: Tested on device
Change-Id: I14a13e3c13e90a744ea52a847a93fa3140ac8184
2019-03-05 11:50:52 -08:00
Matthew Fritze
20caff697e Add Wifi Settings Panel API
Wifi Panel is the fourth Settings Panel, which hosts Wifi related settings.
Currently the panel only holds the Wifi slice, but is open to future
additions.

Also add metrics constants for panel logging.

Test: atest SettingsPanelTest
Bug: 126894142
Change-Id: Ie72b3b52ea89047dfde77daa35ff2f95c655dbb7
2019-03-05 10:43:28 -08:00
Kevin Chyn
81ebf42e2e Merge "Update BiometricPrompt API naming" 2019-03-05 18:25:27 +00:00
Tony Mak
fc374578b7 Migrate to DeviceConfig in TextClassifier
ConfigParser is introduced to read the flags from DeviceConfig.
If the flag is missing, fallback to Settings.

Also, adds a new setting key: TEXT_CLASSIFIER_ACTION_MODEL_PARAMS

Test: atest frameworks/base/core/tests/coretests/src/android/view/textclassifier/
Test: adb shell cmd device_config put textclassifier system_textclassifier_enabled  false
      adb shell dumpsys textclassification, observed that the flag is updated.

BUG: 123389900
Change-Id: Icbd26ec7ed223e40b60696d12327cb123b96c4fd
2019-03-05 14:57:53 +00:00
Michal Karpinski
666631b28e Add temporary packageName-based whitelist for allowing
background activity launches

Necessary for early stages of enabling the feature in
enforcing mode - we'll need to temporarily whitelist
apps like Duo, so dogfooders can still use them.

Bug: 123354556
Test: atest WmTests:ActivityStarterTests
Test: adb shell settings put global background_activity_starts_package_names_whitelist com.ejc.bbc:com.whatever.dude
Change-Id: I2515b8ba334e87e7f201569ba5a6bb1b79395354
2019-03-05 14:30:43 +00:00
Chiachang Wang
4349dc08c9 Update description based on API feedback
Bug: 126883311
Test: Build pass
      atest NetworkStackTests
Change-Id: If3d21829bbe98d125215abe96247ca7d5a66d1f3
2019-03-05 20:31:57 +08:00