Commit Graph

21754 Commits

Author SHA1 Message Date
Jeff Sharkey
f660c012b0 Merge "Add support for "Audiobooks"." 2018-12-04 16:58:17 +00:00
TreeHugger Robot
2a2896c280 Merge "Make getUnderlineColor public." 2018-12-04 16:25:19 +00:00
Jeff Sharkey
628d2e6888 Merge "Redact location Exif tags when no permission." 2018-12-04 01:28:37 +00:00
Felipe Leme
ecb08be22e Split IntelligenceManager / IntelligenceService.
This name is too generic, so we split it in 2 parts:

- ContentCaptureManager: the public API used by views and apps to report their
  structure.
- SmartSuggestionsServiec: the system service use to consume these events and
  provide autofill suggestions.

This CL also:

- Optimizes ContentCaptureManager allocation so they are not created on contexts that are not
  capturing events (such as views from the system server).
- Uses a generic ContentCaptureEventsRequest (rather than a list of events) to make it easier
  to be extended.
- Fixed IntelligencePerUserService so it clears the sessions when the
  implementation changes.

Test: manual verification

Bug: 119776618
Bug: 117944706
Bug: 119638877

Change-Id: I069bcd23dda94afe18b2781fd3981b8b555afa56
2018-12-03 15:29:07 -08:00
Ahmed ElArabawy
390de008b0 Merge "Support of Low Latency mode for WifiLocks" 2018-12-03 22:26:35 +00:00
qqd
3cdaa2488f Make getUnderlineColor public.
Bug: 117521361
Test: atest CtsTextTestCases:android.text.style.cts.SuggestionSpanTest
Change-Id: Iafc7fa65b495e5cc5e69809c94c15c947ceab9ca
2018-12-03 14:12:42 -08:00
Philip P. Moltmann
7208efc83b Merge changes from topic "LocationAccessCheck"
* changes:
  New settings for testing permission controller
  Expose API needed for apps to use work profiles.
2018-12-03 19:59:03 +00:00
Jeff Sharkey
cb39499354 Redact location Exif tags when no permission.
When the caller doesn't hold the ACCESS_MEDIA_LOCATION permission,
any location Exif tags should be redacted for privacy reasons.  We
still allow unredacted raw file access if the media is owned by the
calling app, since they should be able to see data they contributed.

Certain backup apps really want to see the original contents without
any redaction, so provide them a setRequireOriginal() API so they
get a strong exception whenever the original bits can't be provided.

Add the ability to open a redacted file for read/write access by
stopping redaction for any ranges that have been overwritten with
new data, along with tests to verify this behavior.

Extend "content" tool to bind null values.

Bug: 111892141
Test: atest android.os.RedactingFileDescriptorTest
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: I47b220036a712d9d49547196b90e031b10760f84
2018-12-03 12:57:09 -07:00
TreeHugger Robot
cee08bd900 Merge "Revert getMatchingOsuProviders(List<ScanResult>) API referencing hidden type" 2018-12-03 19:29:32 +00:00
Andrew Scull
d968016172 Merge "Complete OemLockService API." 2018-12-03 17:43:51 +00:00
Soonil Nagarkar
5494113f67 Merge "Add ignoreLocationSettings to WifiScanner" 2018-12-03 16:26:39 +00:00
Julia Reynolds
b56135964d Merge "Require a permission for Q apps using full screen intents" 2018-12-03 16:13:59 +00:00
Andrey Kulikov
c7f839b720 Merge "Restrict unsupported API usage to View.setFrame" 2018-12-03 15:54:19 +00:00
Adrian Roos
68877da9bb Revert getMatchingOsuProviders(List<ScanResult>) API referencing hidden type
This partially reverts commit 8561aa3281 because
the added API references the OsuProvider type which is not part of the API.

Bug: 119556446
Test: make droid
Change-Id: Id13857bcb52e715148b06d27cf4096d08f751d37
Exempt-From-Owner-Approval: API only change
2018-12-03 16:48:21 +01:00
TreeHugger Robot
87a81049d2 Merge "Made View#setTransitionAlpha(),getTransitionAlpha() public" 2018-12-03 15:28:05 +00:00
Roshan Pius
4762f45bb4 Merge "WifiManager: Set a max limit on num of suggestions" 2018-12-03 14:51:22 +00:00
Andrey Kulikov
c5713cbf62 Made View#setTransitionAlpha(),getTransitionAlpha() public
It will allow to call this methods in AndroidX Transition without reflection.

Bug: 117521009
Bug: 117519704
Test: a new test
Change-Id: I68f33365337a3c21c0914e8a02bef47e430d8e46
2018-12-03 13:49:02 +00:00
Andrey Kulikov
470564c977 Restrict unsupported API usage to View.setFrame
Developers should use setLeftTopRightBottom() instead. Also making setLeftTopRightBottom final.

Bug: 117520377
Test: none
Change-Id: I67d196e4950d4ef43c9b15dbd00a7dc5d72a59d5
2018-12-03 13:48:21 +00:00
Andrey Kulikov
5754598e83 Makes View#setAnimationMatrix public
Bug: 117520374
Test: None. There is no getter for it so it's not easy to test. Probably it should be tested on RenderNode side instead.
Change-Id: I399ebb772e557c849b02a1d71be7821121a9ce8a
2018-12-03 11:34:39 +00:00
Andrey Kulikov
4bcd414ea9 Merge "Made ViewGroup.suppressLayout/isLayoutSuppressed public" 2018-12-03 11:32:48 +00:00
Ahmed ElArabawy
0008fa8d5c Support of Low Latency mode for WifiLocks
This commit is part of adding the support for low latency mode
wakelocks. It adds the new WifiLock for low latency
This commit also deprecates the FULL, and SCAN_ONLY wifilocks.

Bug: 34905427
Test: No Test- This commit is just the api definition

Change-Id: Id47294867d8000517601dd48a2fcf5a345779ddb
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
2018-12-03 04:39:14 +00:00
Philip P. Moltmann
9e5fccc81a Merge "Give platform permissions a dummy group" 2018-12-02 01:28:26 +00:00
Philip P. Moltmann
c9907ce3e8 New settings for testing permission controller
The settings are used to reduce the runtime of the location access
permission controller tests.

Bug: 120303361
Test: atest CtsPermissionTestCases:android.permission.cts.LocationAccessCheckTest
      atest --test-mapping frameworks/base/core/java/android/provider/:presubmit
Change-Id: I47ed218dc0a300f73a1c0308fce60b61e6a423b0
2018-12-01 17:03:31 -08:00
Jeff Sharkey
2ea404fd2a Merge "Method to determine isolated storage mode." 2018-12-01 22:37:35 +00:00
Philip P. Moltmann
a3e358cf9f Expose API needed for apps to use work profiles.
Bug: 120303361
Test: Built
Change-Id: I5e4cd1450bb284321711558a4475e872d14022ff
2018-12-01 09:32:12 -08:00
Philip P. Moltmann
2a01ddbb4e Give platform permissions a dummy group
We still don't want apps to deal with permissions groups but many apps
crash if the group is not set.

Test: android.permission2.cts.PermissionPolicyTest#testPlatformPermissionPolicyUnaltered
Change-Id: Ibc817d4d44a9a76a1c5fac170f8e76f96a9e4201
Fixes: 119836955
2018-12-01 07:58:25 -08:00
TreeHugger Robot
4a18273991 Merge "Deprecate getPreferredPackages() and related APIs" 2018-12-01 05:50:31 +00:00
TreeHugger Robot
031eef2fef Merge "Expose RenderNode#getUniqueId() as View#getUniqueDrawingId()" 2018-12-01 05:44:59 +00:00
TreeHugger Robot
5cf6abedcb Merge "Make TextView.isSingleLine public" 2018-11-30 22:42:28 +00:00
Nikita Dubrovsky
18a87693a0 Deprecate getPreferredPackages() and related APIs
The APIs for "preferred" packages and activites have been superseded
by modern activity-based preferences.

Bug: 120291723
Test: build (javadoc-only change)
Change-Id: I4242a10e1612f7e203256e4c26c5e8c518cc7656
2018-11-30 21:25:13 +00:00
Soonil Nagarkar
1e59a5f3e9 Add ignoreLocationSettings to WifiScanner
Give WifiScanner an API to ignore location settings while wifi scanning
for certain requests.

Bug: 119140584
Test: manually
Change-Id: I9bc4cf38c3ea720193dcc87f2c8494afd89a36ec
2018-11-30 13:18:59 -08:00
TreeHugger Robot
e444d218b7 Merge "Revert "Allow location provider to deep link into permissions UI"" 2018-11-30 21:04:35 +00:00
Jeff Sharkey
10887d5e5a Add support for "Audiobooks".
Bug: 113356944
Test: manual
Change-Id: Ifed54c41a533ed2d556dc6561ea498ec293991a6
2018-11-30 13:53:19 -07:00
Shuo Qian
0893c2e31d Merge "Add Emergency service categories in ImsCallProfile" 2018-11-30 20:22:01 +00:00
Pengquan Meng
3ce70560d8 Merge "Add 5G rat type" 2018-11-30 20:10:04 +00:00
Ashley Rose
752828f92f Expose RenderNode#getUniqueId() as View#getUniqueDrawingId()
Test: atest ViewTest
Bug: 120282501
Change-Id: I797fbbc6ac40869fea4e29ce55697cfafd8bafef
2018-11-30 14:34:42 -05:00
Daniel Solomon
94da729e42 Merge "Add a public chromatic adaptation API to ColorSpace" 2018-11-30 18:38:15 +00:00
Jeff Sharkey
10ec9d8a42 Method to determine isolated storage mode.
Mostly designed for use by tests, but start using it elsewhere in OS
for consistency.

Bug: 119713234
Test: manual
Change-Id: I803671fd84547b75337bebf00c2fa2bdaf0f72e7
2018-11-30 10:52:02 -07:00
Clara Bayarri
370a1b508f Fix unsupported api usage in NumberPicker
There is unsupported access to the divider. Exposing the
drawable will be tricky as the widget counts on the drawable
being a certain shape and have certain attributes. However we can
easily expose the thickness as a new attribute and document that
you can customize the divider color via XML.

Bug: 117520784
Test: atest NumberPickerTest (with new test)
Change-Id: Ib7a65c055df3b1f68c8327943fa887c89f57e00c
2018-11-30 11:07:08 +00:00
Jimmy Chen
0d7a9a2789 Merge "p2p: WiFi Direct API for Group Creation" 2018-11-30 06:19:21 +00:00
Jaewan Kim
c188069fa8 Merge "AML: Make Context#getOpPackageName() public" 2018-11-30 04:49:09 +00:00
TreeHugger Robot
5f0c9331cc Merge "Make AudioManager.FLAG_FROM_KEY as @SystemApi" 2018-11-30 04:03:30 +00:00
qqd
153257115a Make TextView.isSingleLine public
Bug: 117521096
Test: Added new CTS tests under cts.TextViewTest
Test: atest CtsWidgetTestCases:android.widget.cts.TextViewTest
Change-Id: Ib19277767c69fb2bf92d2387738dbb228f31f502
2018-11-30 01:31:22 +00:00
Jimmy Chen
ab4a8d2eb7 Merge "p2p: add WifiP2pConfig builder for new API" 2018-11-29 22:37:39 +00:00
Roshan Pius
d1a4a56bd4 WifiManager: Set a max limit on num of suggestions
Also, changed the return of add/removeNetworkSuggestions to clearly
indicate the error encountered.

Bug: 119210573
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I06eff1aad584ed9939ba905a1008a7565909d148
2018-11-29 13:50:10 -08:00
Lucas Dupin
54ff93c6b2 Merge "Ambient wallpaper API feedback" 2018-11-29 20:44:13 +00:00
Roshan Pius
f8d769ef29 Merge changes from topics "system_api_setup_wizard", "deprecate_apis"
* changes:
  WifiManager: Mark all settings/setupwizard custom APIs @SystemApi
  WifiManager: Deprecate API implementation
2018-11-29 20:41:20 +00:00
John Reck
fd45bee176 Merge "Add a unique ID to rendernode" 2018-11-29 20:39:08 +00:00
TreeHugger Robot
362a3caaf1 Merge "Make Drawable#isProjected public" 2018-11-29 20:21:27 +00:00
Chad Brubaker
1a4c431e26 Merge "Add permission usage information" 2018-11-29 20:10:41 +00:00