Commit Graph

4993 Commits

Author SHA1 Message Date
Matt Pape
09eb96c4c7 Merge "Remove interface for Scheduler." 2019-03-19 20:35:52 +00:00
TreeHugger Robot
b7006711a7 Merge "Add intent action constant to manage domain URLs." 2019-03-19 18:25:29 +00:00
Matt Pape
f095f3cef9 Remove interface for Scheduler.
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
Change-Id: If793ef6e91cca798556da5c7f2b09210b98293c1
2019-03-19 10:11:49 -07:00
Matt Pape
417059b13e Merge "Remove interface for Rollback and Rollback Boot." 2019-03-19 16:14:05 +00:00
Andrei-Valentin Onea
1949d289c6 Merge "Add app_compat namespace" 2019-03-19 16:01:17 +00:00
Andrei Onea
3b433f538b Add app_compat namespace
Test: m
Bug: 119217680
Change-Id: I8bcc9013c80f7e4cb2df36676427671c05ce0952
2019-03-19 13:17:17 +00:00
Hai Zhang
34034de9eb Add intent action constant to manage domain URLs.
This will be used by the new Default apps screen inside
PermissionController.

Bug: 124452117
Test: build
Change-Id: Ia7c2eb277a77c293eba4daf3365977f3b1d2232b
2019-03-19 01:25:49 -07:00
Soonil Nagarkar
09a3ce7c44 Revert API removal
Bug: 128842115
Test: manual
Change-Id: Iff8e1a1c4c9dd6d089d0af6527bdd74ee38fa421
2019-03-18 13:53:33 -07:00
Matt Pape
12187ae675 Remove interface for Rollback and Rollback 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:PackageManagerServiceTest

Change-Id: Ie3b0539f51a582fb7583ece88e5d3bde0cc1efd7
2019-03-18 13:20:44 -07:00
Mathieu Chartier
4b8b202c8e Merge "Add extra docs for RUNTIME_NATIVE" 2019-03-16 03:04:33 +00:00
TreeHugger Robot
8ae1fcaf8d Merge "Revert "Always suppress font error during resource loading"" 2019-03-15 23:27:35 +00:00
Seigo Nonaka
848e83f663 Revert "Always suppress font error during resource loading"
This reverts commit 96e93959fb.

Reason for revert: 
This breaks CTS. Looks like even in old devices, we tells errors to
developers. Just suppression is not a right solution here.

Change-Id: Ia1b1916d94d115174afe8e822fc669b37e5f3937
2019-03-15 21:07:44 +00:00
Mathieu Chartier
881c7a9dab Add extra docs for RUNTIME_NATIVE
Added description for RUNTIME and RUNTIME_NATIVE.

Test: make
Bug: 126190051
Change-Id: Ie951dd2da649ff6ce333afd762185c5fcf1df0cb
2019-03-15 11:27:28 -07:00
Matt Pape
d3d144323b Merge "Remove interface for AttentionManagerService." 2019-03-14 20:08:38 +00:00
Matt Pape
64e8dd211a Merge "Remove interfaces for runtime and runtime_native namespaces." 2019-03-14 20:07:46 +00:00
Matt Pape
e9b680a3ae Remove interfaces for runtime and runtime_native namespaces.
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

Change-Id: I73157c127a246719afb37eca65cabf2e3d24b38a
2019-03-14 10:07:41 -07:00
TreeHugger Robot
9c5458edb7 Merge "Remove deprecated Settings APIs." 2019-03-14 17:06:04 +00:00
TreeHugger Robot
5004517c65 Merge "Using LangID to detect the language of the text and pass it to annotator" 2019-03-14 15:30:13 +00:00
Matt Pape
1015f3f6b6 Merge "Add nullable and nonnullable annotations to DeviceConfig." 2019-03-14 15:23:25 +00:00
Tony Mak
159f028b5f Using LangID to detect the language of the text and pass it to annotator
1. Use LangID to detect the language tags, and pass the result to
   the native side.
2. Have feature flags to turn off "detectLanguageTagsFromText" and
   foreign action for classification respectively.

Test: Select a non-english word, no more "define" action.
Test: atest frameworks/base/core/tests/coretests/src/android/view/textclassifier/

BUG: 123705564
BUG: 128413589

Change-Id: I6a68caca1e0709e63319907acbf8d776894f555b
2019-03-14 11:27:50 +00:00
Fan Zhang
8359ede79b Update ringer setting API visibility per council feeedback
- Remove MANUAL_RINGER_TOGGLE_COUNT from SystemAPI
- Make VOLUME_HUSH_* SystemAPI to align with VOLUME_HUSH_GESTURE

Bug: 113323148
Test: make update-api
Change-Id: I19b9cbfb0489889b4747e1102566c3a8cb60817f
2019-03-13 13:47:21 -07:00
Matt Pape
c4ed9b3223 Add nullable and nonnullable annotations to DeviceConfig.
Also test coverage for those methods.

Bug: 126360191
Bug: 126699440
Bug: 126702152
Bug: 126702160
Test: atest FrameworksCoreTests:DeviceConfigTest
Change-Id: I9ecb1be76c88d0e61b8f68375d6659249449c564
2019-03-13 13:30:52 -07:00
Matt Pape
aea28318e4 Remove interface for AttentionManagerService.
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
Change-Id: Ic24db2f74d6b3b476265dd3e0719965d8c36156c
2019-03-13 13:20:46 -07:00
Matt Pape
5471638fb1 Merge "Remove interface for Intelligence_Attention." 2019-03-13 18:43:18 +00:00
Soonil Nagarkar
6dac9d1bf5 Remove deprecated Settings APIs.
Bug: 128348646
Test: manual
Change-Id: I40dbfc78ee983ffacc56a68d2c5ba2aefb16357f
2019-03-13 10:13:31 -07:00
Matt Pape
f82bb8b082 Remove interface for Intelligence_Attention.
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

Change-Id: Ia51733a0fcb061e754ea16c8496100fad338b614
2019-03-13 09:12:43 -07:00
Michal Karpinski
681db90b5a Merge "Add new BIND_ALLOW_BACKGROUND_ACTIVITY_STARTS binding flag and the mechanism to use it" 2019-03-13 13:44:02 +00:00
Michal Karpinski
e069b0022f Add new BIND_ALLOW_BACKGROUND_ACTIVITY_STARTS binding flag
and the mechanism to use it

Since both starts and bindings might be contributing to the service
being whitelisted, track the state in ServiceRecord and update
the parent process accordingly when changes happen.

While we're at it, add that flag for bindings to accessibility
services, voice interaction services and QSTiles.

Also, make the timeout constant configurable for start-based
whitelisting.

Bug: 124298522
Bug: 123495976 (accessibility services)
Bug: 123337181 (paying via NFC, like Google Pay)
Bug: 122887611 (binding to InCallService)
Bug: 127774234 (binding to QSTile)
Bug: 124288681 (binding to voice interaction services)
Test: atest WmTests:ActivityStarterTests
Test: atest AccessibilityServiceConnectionTest
Test: manual with:
1) notifications from calendar and dynamite to test service starts
whitelisting
2) enabling talkback and livetranscribe to test service bindings
whitelisting
3) adding the LastPass QSTile and clicking on it
Change-Id: I8b6f23f999683920411ca40ab5b25c688a4f7055
2019-03-13 11:29:12 +00:00
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