Commit Graph

5026 Commits

Author SHA1 Message Date
Jeff Sharkey
fb0756fa40 Merge "Clean up scan calls used for testing." 2019-03-25 20:57:22 +00:00
Winson Chung
30115c998c Merge changes from topic "nav-bar-mode-fw-overlay"
* changes:
  Overlaying the nav bar frame dimens
  Check the overlay state for updating sysui
  Removing old resources
  Remove the swipe up setting from system
2019-03-25 16:58:11 +00:00
Jeff Sharkey
4b457c3915 Clean up scan calls used for testing.
We've converged on explicit scanVolume() and scanFile() methods
which tests should be calling.  These are more robust than the
previous broadcast-based events, which could hang for a long time.

Bug: 127323913
Test: atest --test-mapping packages/apps/MediaProvider
Change-Id: I4f7918c70a67bcafab69ae2a71ee8e4bdaff01eb
2019-03-25 10:55:18 -06:00
Stanislav Zholnin
5579950a80 Add READ_DEVICE_CONFIG permission check to DeviceConfig API.
Test: atest FrameworksCoreTests:DeviceConfigTest
      atest FrameworksCoreTests:SettingsProviderTest
      atest SettingsProviderTest:DeviceConfigServiceTest

Bug:117663715
Change-Id: I04226876ddf910945bf343d25fa3dd04ba8eab31
2019-03-25 11:14:07 +00:00
Jeff Sharkey
ff200957fd Query specific collections for properties.
We're now enforcing the public API schema, so clients like MTP need
to query specific collections when asking for properties that are
specific to those media types.

Also refactor MediaScanner calls to go through MediaProvider, so
they can be handled by ModernMediaScanner.  We no longer directly
try inserting items, and instead rely completely on the scanner.

Bug: 127625964, 122263824
Test: atest MediaProviderTests
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: Ic86982766606a619afafe725f9c60013a5671840
2019-03-24 14:21:01 -06:00
Winson Chung
85e745929f Remove the swipe up setting from system
Bug: 127366543
Test: adb shell dumpsys setting

Change-Id: I3a1a716a73d91048886b67444b574abdfc61323e
2019-03-23 22:28:22 -07:00
Jeff Sharkey
788f9d3847 Merge "Helper methods for constructing MediaStore Uris." 2019-03-23 19:31:56 +00:00
Jeff Sharkey
f9ebfc9af0 Helper methods for constructing MediaStore Uris.
Bug: 128787096
Test: atest MediaProviderTests
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: I2848feb616df1c4df0b1bb71544769f61b9d84e8
2019-03-23 11:54:45 -06:00
TreeHugger Robot
f09c91b279 Merge "Converting EXTRA_PACKAGE_NAME to a link tag" 2019-03-23 06:19:42 +00:00
Salvador Martinez
13bfe4a789 Merge "Update names of dynamic power saver mode APIs" 2019-03-22 20:52:13 +00:00
Salvador Martinez
b85a9f8db4 Update names of dynamic power saver mode APIs
There was some confusion caused by the names so this CL
changes them to make the differentiation more clear hopefully.

Test: robotests pass, build runs, functionality of clients intact
Bug: 126944845
Change-Id: I626dd8e38c59fb5c061e4d0fdcf8c81701c459a3
2019-03-22 10:12:42 -07:00
Jeff Sharkey
310ad26a82 Merge "Respond to API feedback on DIRECTORY columns." 2019-03-22 15:28:17 +00:00
Jeff Sharkey
40a5092b46 Merge "Documentation based on API council feedback." 2019-03-22 15:04:50 +00:00
TreeHugger Robot
6e7a60c85c Merge "Add intent action constant to zen access setting page" 2019-03-22 06:37:36 +00:00
Michael Groover
c640422ad5 Merge "Add Sensors Off QS tile and display status bar icon when active" 2019-03-22 00:34:22 +00:00
Jeff Sharkey
e1a39c173a Documentation based on API council feedback.
Bug: 128414269
Test: none
Change-Id: I5c72dbb9bfb626d1a26aea88fcd6b5fc38cb6f01
2019-03-21 14:34:11 -06:00
Fan Zhang
a9b145de21 Add intent action constant to zen access setting page
Bug: 128547723
Test: build
Change-Id: Ifa918f2c532e60eced27621d802d56bc0e680c25
2019-03-21 12:33:06 -07:00
Jeff Sharkey
f998670075 Respond to API feedback on DIRECTORY columns.
Internal feedback asked for more documentation, and feedback from
external teams (at least Photos and Camera) was the ability to store
files at arbitrary directory depths.

We now offer a single PATH column, which gives callers more precise
control over file placement.  The old DIRECTORY columns remain
intact for now, and are temporarily accepted to support apps
developing against the preview SDKs.

Bug: 127657692, 123967243
Test: atest MediaProviderTests
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: Icd90d7c89d066d4ab68aa2f543ccc6fbc3b4f596
2019-03-21 11:52:01 -06:00
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
Michael Groover
a51ea81f44 Add Sensors Off QS tile and display status bar icon when active
This CL will replace the SensorPrivacyTile with a new tile that can be
enabled from the developer settings. When this new tile is enabled only
the camera, mic, and sensors controlled by the SensorManager will be
disabled; the location and airplane mode tiles will not be modified.
The user will be notified when this tile is enabled with the sensors
off icon in the status bar.

Fixes: 126618519
Test: Manually verified airplane and location are not modified when sensors
      off is enabled; also verified icon is displayed when mode is active.

Change-Id: Iabf099d0d76c015015ce9859edc0b225ec554020
2019-03-20 11:48:23 -07: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
vadimt
4fac5ac724 Converting EXTRA_PACKAGE_NAME to a link tag
Bug: 128903468
Test: presubmit
Change-Id: I0f7cfa7ca4b264d3cc2a9a5c599a0f711240323d
2019-03-19 18:44:57 -07: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