Commit Graph

4443 Commits

Author SHA1 Message Date
Peiyong Lin
2d5a2bb0ad Add global property to store opt-in application package name.
We provide a way in developer option to opt-in an application to use updated
graphics driver. To make sure we set up the graphics environment correctly, we
need to access the package name of the selected application. This patch
introduces a global property to store the package name.

BUG: 119221883
Test: Build, flash and boot, verify with prototype
Change-Id: I49dfcccf387169c072fb9345f7a50c00fcdb0737
2018-11-09 11:53:00 -08:00
Andrii Kulian
03faa1467a Merge "Add dev option to force desktop mode" 2018-11-09 19:25:19 +00:00
Rhed Jao
e222fd9063 Merge "Update a11y recommended timeout api." 2018-11-09 05:28:18 +00:00
Jimmy Chen
53f58bc1c7 Merge "p2p: support factory reset for P2P group" 2018-11-09 02:47:08 +00:00
Rhed Jao
41118f33b1 Update a11y recommended timeout api.
Update api name to getRecommendedTimeoutMillis.
Api returns timeout for interactive or non-interactive controls.
Also provide the options for a11y service to specify two kinds of
timeout.

Bug: 111210981
Test: atest SettingsBackupTest
Test: atest AccessibilityManagerTest
Test: atest AccessibilityServiceInfoTest
Change-Id: I37d35796fd72bb4d6628a6bb33b111987f321552
2018-11-09 10:24:07 +08:00
Tony Zhu
6aceee0b7c Merge "[Call Screening]Logging of calls blocked by call blocking feature, call screening app." am: b5e8d45245 am: 20b0ca7ef8
am: f922fb1375

Change-Id: I4c7270d0ae8ea1fd42488e0e3efe2ca1b6d33d94
2018-11-08 10:22:41 -08:00
Tony Zhu
f922fb1375 Merge "[Call Screening]Logging of calls blocked by call blocking feature, call screening app." am: b5e8d45245
am: 20b0ca7ef8

Change-Id: Id2794379c6dd94bd5616ef0c86e6186324c33799
2018-11-08 10:07:13 -08:00
TreeHugger Robot
9ba5646aaf Merge "Replaces binary flag for new interruption model with secure setting." 2018-11-08 17:34:45 +00:00
Tony Zhu
b5e8d45245 Merge "[Call Screening]Logging of calls blocked by call blocking feature, call screening app." 2018-11-08 17:22:43 +00:00
Gus Prevas
415376b97d Replaces binary flag for new interruption model with secure setting.
Bug: 116622974
Test: n/a
Change-Id: I8445e5db49ba3f87046332624c0a705cc082ab59
2018-11-08 11:07:15 -05:00
tonyzhu
9e1d4f86ba [Call Screening]Logging of calls blocked by call blocking feature, call screening app.
Add three call log entries, ALL_SCREENING_COMPONENT_NAME, CALL_SCREENING_APP_NAME,
BLOCK_REASON, and call block reasons. Add new parameter to get the
package name and component name of the implementation of CallScreenService.java.

Bug: 113243596
Test: Build pass
Change-Id: I63debd80d7f4a92278fdbb84b64ff1199591349c
2018-11-08 17:28:34 +08:00
TreeHugger Robot
157edce8a7 Merge "Deprecated scoped directory access." 2018-11-08 02:14:24 +00:00
Andrii Kulian
15cfb42801 Add dev option to force desktop mode
When turned on, this will:
- Enable system decorations on external screens
- Enable freeform windowing mode on external displays
- TODO: Show mouse pointer on external display

Bug: 112451761
Test: DisplaySettingsTests
Test: DesktopModePreferenceControllerTest
Test: FreeformWindowsPreferenceControllerTest
Change-Id: If46399b9d6b8faa2a11fbdf8a4bbfef1284147c8
2018-11-07 15:21:04 -08:00
Michael Groover
6a8af2abef Merge "Enable device identifier check for 3P apps" 2018-11-07 19:32:34 +00:00
Ricky Wai
13b0abe1bc Add feature flag for "show hidden launcher icon apps"
and "install app notification"

Bug: 111214100
Test: CTS test will be submitted with flag enabling commit
Change-Id: I604d75dc48e09039619f571d418a700106cbdd5d
2018-11-07 11:28:49 +00:00
Jimmy Chen
c4240a7ce8 p2p: support factory reset for P2P group
provide system API for Settings

Bug: 109866998
Test: Manual tests
      * manual trigger network reset in below conditions:
        * trigger network reset with P2P on
        * trigger network reset with WiFi on, P2P off
        * trigger network reset with WiFi off
        * trigger network reset with WiFi off then do reboot
      * check groups shown in WiFi Direct page
      * use wpa_cli -i p2p0 list_network
Test: CtsVerifier - WiFi Direct category
Test: Unit tests - atest frameworks/opt/net/wifi/tests/wifitests
Test: Permission check
      * call factoryReset as Guest
      * call factoryReset from 3rd-party application

Change-Id: Id487ebf4564b78b613b550c0f0266effb0ae793e
2018-11-07 09:57:23 +08:00
Michael Groover
3f0267151c Enable device identifier check for 3P apps
Bug: 117781266
Test: cts-tradefed run cts -m CtsTelephony3TestCases
Test: cts-tradefed run cts -m CtsPermissionTestCases -t android.permission.cts.TelephonyManagerPermissionTest
Test: cts-tradefed run cts -m CtsTelephonyTestCases -t android.telephony.cts.TelephonyManagerTest
Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases -t \
      com.android.cts.devicepolicy.DeviceOwnerTest#testDeviceOwnerCanGetDeviceIdentifiers
Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases -t \
      com.android.cts.devicepolicy.ManagedProfileTest#testProfileOwnerCanGetDeviceIdentifiers
Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases -t \
      com.android.cts.devicepolicy.ManagedProfileTest#testProfileOwnerCannotGetDeviceIdentifiersWithoutPermission
Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases -t \
      com.android.cts.devicepolicy.DeviceOwnerTest#testDeviceOwnerCannotGetDeviceIdentifiersWithoutPermission

Change-Id: Ia511d6d566ab1ceacfedcd45f45500a846fcb983
2018-11-06 15:01:46 -08:00
Oscar Shu
28de999efe Merge changes from topic "PnoPipeline"
* changes:
  Pno frequency culling: Settings.Global flag
  Pno frequency culling: add frequencies field
2018-11-06 01:45:19 +00:00
Seigo Nonaka
0a2786cc5d Merge "Refactor Typeface construction logic" 2018-11-05 21:09:23 +00:00
Vadim Tryshev
12c9815347 Merge "Exposing intent action for DWB properties as an API" 2018-11-05 18:42:30 +00:00
Cody Northrop
e4ae7ea03e Merge "Add GLES specific setting for layers" 2018-11-04 17:00:46 +00:00
Jeff Sharkey
e4d87cb722 Merge "First pass at APIs for contributing new media." 2018-11-03 19:42:58 +00:00
Jeff Sharkey
c8e4924b57 First pass at APIs for contributing new media.
MediaStore has long suffered from race conditions around creation
of new media.  For example, if developers write raw files before
inserting the MediaStore item, an in-progress media scan might pick
up the file before they could insert it.  Conversely, if developers
insert the item before writing the files, backup apps get confused
about the file not existing yet.

In addition, the new storage model in Q means that apps can't write
raw files directly to disk, so they need to insert the MediaStore
item first.

To solve this collection of issues, this CL introduces first-class
APIs for contribution of new "pending" media, which includes hiding
the pending media until explicitly published.  Apps can safely
resume pending sessions if they crash and restart, which is useful
when the media item is coming from a flaky network.  Apps can also
publish progress information about pending media, such as when a
panorama is taking several seconds to process.

Bug: 115377970
Test: atest MediaProviderTests
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: I6adee3c4ad1fb9db94906dd1293caaa1a09c6da0
2018-11-03 12:03:07 -06:00
Amin Shaikh
b49cedf0b3 Deprecated scoped directory access.
- Deprecate StorageVolume#createAccessIntent and
Settings#ACTION_STORAGE_VOLUME_ACCESS_SETTINGS
- Delete StorageVolume#ScopedAccessProviderContract

Bug: 111892460
Test: atest \
	cts/tests/providerui/src/android/providerui/cts/MediaStoreUiTest.java \
	cts/tests/tests/os/src/android/os/storage/cts/StorageManagerTest.java \
	cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ScopedDirectoryAccessClientTest.java

Change-Id: I2d0dcc87d5b18a6424cb73384a88cdd2cabe0f4d
2018-11-02 15:13:29 -04:00
Jeff Sharkey
e80ef951cb Merge "APIs for reviewing, listing volumes, hashes." 2018-11-01 20:25:21 +00:00
Cody Northrop
0fa1d220dc Add GLES specific setting for layers
This allows loading layers for GLES and Vulkan at the
same time by adding a GLES specific setting:

  GPU_DEBUG_LAYERS_GLES

which mirrors the existing setting:

  GPU_DEBUG_LAYERS

The Vulkan and GLES loaders now scan distinct layer
lists, correcting an issue that would prevent Vulkan
from loading when it failed to find GLES layers.

Bug: 110883880
Test: Load a GLES layer when running ANGLE with Vulkan backend
Test: cts-tradefed run singleCommand cts -m CtsGpuToolsHostTestCases
Change-Id: I370be4ce6fdde9e95989eb1f274add8b5790263e
2018-11-01 14:15:44 -06:00
xshu
d4b607ce76 Pno frequency culling: Settings.Global flag
Add a flag to enable/disable this feature.

Bug: 64312268
Test: compile
Test: First use "adb shell settings put global wifi_pno_frequency_culling_enabled 1" to test turning on the feature.
Test: Then test "adb shell settings put global
wifi_pno_frequency_culling_enabled garbage" does not turn the feature
off.
Change-Id: Ia6cd0d3c9888d7b2e0513b51fc4ad92c3eb171de
2018-11-01 11:03:41 -07:00
Jeff Sharkey
0fc74ab226 APIs for reviewing, listing volumes, hashes.
As part of creating a "default gallery" app in Q, we need to define
the expected contract of how recently captured media can be reviewed
by the user.  Mirrored off the existing CAPTURE intents.

The Q storage work will start calculating SHA-1 hashes for each
media item to identify them in a stable way.

API to list all available volume names on the device, which includes
all attached shared storage devices, like SD cards.

Clean up all Uri creation to use Uri.Builder to ensure that incoming
volumeName values are escaped correctly.

Bug: 111268862
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: Ib7e5bf814b407f4d611767d2a5d26ccfe6d8d034
2018-11-01 11:07:55 -06:00
Risan
7c8506d6c7 Merge "Add a more flexible queryRecentDocuments" am: 627441218d am: a366edd78d
am: 729067376c

Change-Id: Ie1652bc9dfb413fe22962ee66024acd0d44ed127
2018-11-01 07:02:42 -07:00
Risan
729067376c Merge "Add a more flexible queryRecentDocuments" am: 627441218d
am: a366edd78d

Change-Id: Ib746205cd82634d0d7b821db94c8316e8260689c
2018-11-01 06:43:51 -07:00
Treehugger Robot
627441218d Merge "Add a more flexible queryRecentDocuments" 2018-11-01 13:11:09 +00:00
Sergey Vasilinets
1e5b5d0326 Merge "Revert "APIs for reviewing, listing volumes, hashes."" 2018-11-01 12:08:34 +00:00
Sergey Vasilinets
07dfd0a185 Revert "APIs for reviewing, listing volumes, hashes."
This reverts commit b7634f49ae.

Reason for revert: docs build was broken https://android-build.googleplex.com/builds/submitted/5104251/sdk_phone_armv7-sdk/latest/view/logs/build_error.log

Bug: 111268862
Change-Id: I95967186def8a3c81e7a2e0e2915d4280cd78af4
2018-11-01 12:06:56 +00:00
Varun Shah
d7f381524d Merge "Exposes certain Settings fields as SystemApi for SUW." 2018-11-01 00:36:41 +00:00
Risan
6a4a8f6046 Add a more flexible queryRecentDocuments
The existing queryRecentDocuments have a hard limit 64. However, case
like ARC++ wishes to have a more flexible limit that can be passed as an
extra parameter. This new API will gracefully degrade to the old API to
maintain backward compatibility with old providers.

Bug: 111288304
Test: manual test (patched the MediaDocumentsProvider, and test calling
the new API):
1. Test that passing Bundle with QUERY_ARG_LIMIT=5 is honored and
returned is limited to 5.
2. Test that passing null will release the limit to default 64.
3. Test that removing MediaProvider implementation for new method and
implement the old method will automatically redirect the call to old
method (backward compatible with old providers).

Change-Id: I37b1785b94f3e9cf09128fbf1e8779a4447fe7a9
2018-10-31 23:30:35 +00:00
Jeff Sharkey
b7634f49ae APIs for reviewing, listing volumes, hashes.
As part of creating a "default gallery" app in Q, we need to define
the expected contract of how recently captured media can be reviewed
by the user.  Mirrored off the existing CAPTURE intents.

The Q storage work will start calculating SHA-1 hashes for each
media item to identify them in a stable way.

API to list all available volume names on the device, which includes
all attached shared storage devices, like SD cards.

Clean up all Uri creation to use Uri.Builder to ensure that incoming
volumeName values are escaped correctly.

Bug: 111268862
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: I460593466d85ff052fd157d8fd784e7ac5b25d78
2018-10-31 21:27:04 +00:00
Varun Shah
76c8e68e74 Exposes certain Settings fields as SystemApi for SUW.
User Setup related fields in Settings indicating the setup
personalization state are now exposed.

Global Settings fields indicating whether the device is in demo mode,
a password is required to decrypt the device, and if mobile data is
enabled for provisioning are now exposed.

Various Secure Settings fields are also now exposed. They indicate
information about  doze, user setup information, lock screen
notification settings, assist gesture setup, and whether a suggested
action was completed.

All of the exposed fields require the WRITE_SECURE_SETTINGS permission.

Bug: 116689780
Test: manual (run setup wizard)
Change-Id: If8a96cca216b1d3e3b9329a3f4695caf9f3f248a
2018-10-30 17:18:44 -07:00
sqian
bf916cd022 Merge "Change package to component for Setting's default call redirection service" am: f67ece13ad am: a6bf55bcc6
am: 5cfa939ba0

Change-Id: Ic799f4b0e42aad5f9446478a1954555b9afbc689
2018-10-30 13:25:37 -07:00
sqian
5cfa939ba0 Merge "Change package to component for Setting's default call redirection service" am: f67ece13ad
am: a6bf55bcc6

Change-Id: Ia1d7455d2663c2942dfb298e9222e6c2b8d98529
2018-10-30 13:10:46 -07:00
Seigo Nonaka
ee4b6d85dc Refactor Typeface construction logic
API refactoring:
- Replace Font.getWeight()/getSlant() with Font.getStyle().
- Change Typeface.CustomFallbackBuilder.setItalic() to setSlant()

Implementation refactoring:
- Add hidden builder API for asset manager with cookie. The cookie is
internal, so hide the API as well.
- Replace createFromResources with Typeface.Builder
- Reimplement Typeface.Builder with Typeface.CustomFallbackBuilder

Ground work for b/114479228
- Keep list of FontFamily in the Typeface.

Bug: 114479228
Test: atest CtsTestCases
Test: atest CtsGraphicsTestCases
Test: atest CtsWidgetTestCases
Change-Id: Ifaaa58ddea147644a93158aa075394c2f645617c
2018-10-30 12:18:12 -07:00
Treehugger Robot
f67ece13ad Merge "Change package to component for Setting's default call redirection service" 2018-10-30 19:06:55 +00:00
Phil Weaver
27beee50d3 Make performAccessibilityShortcut a SystemAPI
Also create a new MANAGE_ACCESSIBILITY permission to
perform the shortcut.

Bug: 116118615
Test: make, activate accessibility shortcut
Change-Id: Ic65a0cdf7393429e14cb98f4fb0734d20069b05a
2018-10-30 10:10:41 -07:00
weichinweng
53df942469 Merge "Add CACHED_NAME into call history database when the add call." am: 568faa8ed9 am: 66d504697d
am: aec23b71d6

Change-Id: I7abbb2504d5e228e537ef7562b561674258c7017
2018-10-29 22:56:42 -07:00
weichinweng
aec23b71d6 Merge "Add CACHED_NAME into call history database when the add call." am: 568faa8ed9
am: 66d504697d

Change-Id: Iff5bc13cca9b35c311e05fa71b359702a4f9f556
2018-10-29 22:45:54 -07:00
Treehugger Robot
568faa8ed9 Merge "Add CACHED_NAME into call history database when the add call." 2018-10-30 04:44:35 +00:00
Tony Zhu
a51294bc9e Merge "[Call Screening]Default call screening app setting storage." am: 371786f6b0 am: 56b75cb498
am: 5b3b0ea44b

Change-Id: I32d514581e8fa9403d8412d2cd23fef41860d075
2018-10-29 20:54:24 -07:00
Tony Zhu
5b3b0ea44b Merge "[Call Screening]Default call screening app setting storage." am: 371786f6b0
am: 56b75cb498

Change-Id: I98ac08b917aef63202b006b7440bee4c75ff665f
2018-10-29 20:45:18 -07:00
sqian
28f8a2545d Change package to component for Setting's default call redirection service
Bug: 64959558
Test: Compile
Change-Id: I503b34812869e2b5897033ca765c85fcd4474101
2018-10-29 19:54:13 -07:00
Tony Zhu
371786f6b0 Merge "[Call Screening]Default call screening app setting storage." 2018-10-30 02:43:52 +00:00
Joseph Johnson
367d14a1b5 Merge "Make LAST_SETUP_SHOWN a SystemApi" 2018-10-29 22:03:54 +00:00