Commit Graph

5006 Commits

Author SHA1 Message Date
Matt Pape
48d81faf16 Merge "Remove DeviceConfig.Telephony interface from System API." 2019-03-21 05:28:16 +00:00
danielle cohen
b67cb62204 Add ODI_CAPTIONS_OPTED_OUT to secure settings.
Test: none
Bug: 128978908
Change-Id: I3d49ea4e071ace0e457f29fc1a19ef0a279e51f9
2019-03-21 04:05:37 +00:00
Matt Pape
38ed4e7f31 Remove DeviceConfig.Telephony interface from System API.
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: I8d5b1f2dab84a1fe1f645cad508bebbc86f2c9c5
2019-03-20 15:04:02 -07:00
TreeHugger Robot
be1d460a88 Merge "Revive the old behavior of unsupported filed in public APIs" 2019-03-20 20:11:14 +00:00
Nadav Bar
67122808dc Merge "Annotate ODI_CAPTIONS_ENABLED with @SystemApi" 2019-03-20 19:32:06 +00:00
Matt Pape
8b7b17b8f9 Merge "Remove interface for Storage." 2019-03-20 19:15:52 +00:00
Seigo Nonaka
7d3d2aa286 Revive the old behavior of unsupported filed in public APIs
The behavior of the Typeface creating function when unsuppoted font
files are passed has changed unexpectedly. This CL revives the old
behaviors. Here is the list of public APIs and expected behaviors.

Resources#getFont for unsupported font
  Exception: Resources#NotFoundException
Resources#getFont for unsupported font in XML
  Exception: Resources#NotFoundException
Resources#getFont for unsupported font from provider
  No Exception: Typeface.DEFAULT is returned

Typeface#Builder for unsupported font
  No Exception: null is returned
Typeface#Builder for unavailable font
  No Exception: null is returned

Typeface#createFromAsset for unsupported font
  Not Exception: Typeface.DEFAULT is returned
Typeface#createFromAsset for unavailable font
  Exception: RuntimeExcetpion

FontsContract#buildTypeface for unspported font
  No Exception: null is returned
FontsContract#buildTypeface for unspported font in XML
  No Exception: null is returned
FontsContract#buildTypeface for unspported font from provider
  No Exception: null is returned

TextView inflation for unsupported font
  No Exception: Typeface.DEFAULT is set
TextView inflation for unsupported font in XML
  No Exception: Typeface.DEFAULT is set
TextView inflation for unsupported font from provider
  No Exception: Typeface.DEFAULT is set

Bug: 127714175
Test: Manually done
Change-Id: Iaab037f4168546409ead67ed8eee7340418418ed
2019-03-20 10:22:55 -07:00
danielle cohen
2577712683 Annotate ODI_CAPTIONS_ENABLED with @SystemApi
Test: none
Bug: 128974602
Change-Id: I46a339819c86bef0925873025ca3cf59cd968081
2019-03-20 16:14:13 +02:00
Stanley Wang
7bf4ac26a4 Merge "Add error handling for SearchIndexablesProvider." 2019-03-20 06:01:14 +00:00
Stanley Wang
c3bdef0996 Add error handling for SearchIndexablesProvider.
Catch exception to avoid the client process killed.

Bug: 127906747
Test: rebuild

Change-Id: I595b0ed9ca62579f0b5f90d8e85adffbaa3bd611
2019-03-20 10:45:14 +08:00
TreeHugger Robot
c0bf5132df Merge "Clarifying LOW_POWER_MODE_TRIGGER_LEVEL comment." 2019-03-19 23:40:19 +00:00
Matt Pape
19ea8a6aa4 Remove interface for Storage.
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: I751254a183c8a9d150022d964539fb997c1d89fa
2019-03-19 14:52:52 -07:00
Matt Pape
09eb96c4c7 Merge "Remove interface for Scheduler." 2019-03-19 20:35:52 +00:00
Kweku Adams
5e13b9428b Clarifying LOW_POWER_MODE_TRIGGER_LEVEL comment.
The comment made it sound like 0 isn't used to turn it off in Q anymore,
however, 0 is still used to turn it off.

Bug: N/A
Test: N/A
Change-Id: I17262bd7087de9ae8cbbcd7433fcbccfbc6b66b2
2019-03-19 12:48:35 -07: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