Commit Graph

23631 Commits

Author SHA1 Message Date
Ricky Wai
ccac071827 Merge "SystemAPI for setting app details activity state" 2019-02-22 20:19:03 +00:00
Ecco Park
e334ea7de8 Merge "Passpoint: add FQDN and Provider name field in WifiInfo" 2019-02-22 19:07:26 +00:00
Ecco Park
957e868f31 Merge "passpoint: remove NETWORK_SETUP_WIZARD permission" 2019-02-22 19:01:38 +00:00
Mady Mellor
ffafec1f62 Merge "Remove title API from bubble metadata" 2019-02-22 17:43:04 +00:00
Nikita Ioffe
3cbd4a584e Merge "Require INSTALL_PACKAGES permission for setInstallAsApex" 2019-02-22 17:04:17 +00:00
Tyler Gunn
d490ce1483 Merge "Change data types on CallIdentification API." 2019-02-22 15:21:44 +00:00
Nikita Ioffe
4501c11cb0 Require INSTALL_PACKAGES permission for setInstallAsApex
Bug: 123314638
Fixes: 123314638
Test: apex_e2e_tests
Change-Id: I2a78a5e7496554c0c3eecbfd28f2d793b4ba2196
2019-02-22 14:03:41 +00:00
Wale Ogunwale
c6506833e3 Merge "Added some TestApi that are already used by CTS" 2019-02-22 12:51:57 +00:00
Hyundo Moon
280dd70418 Merge "Add MediaController#getSessionInfo()" 2019-02-22 11:18:48 +00:00
Hyundo Moon
5fc8db02e0 Add MediaController#getSessionInfo()
Bug: 125663825
Test: Passed MediaControllerTest
Change-Id: I458cfd94575dd2303ec2bdd8996205d765d31957
2019-02-22 20:08:29 +09:00
TreeHugger Robot
36898720bd Merge "Bluesky API council review" 2019-02-22 05:21:14 +00:00
Philip P. Moltmann
933c8e06e8 Merge changes from topics "policy_fixed_set_via_perm_controller", "protect-policy-flags"
* changes:
  Ask Perm Controller to set policy-fixed perms
  Guard changing policy_fixed flag behind permission
2019-02-22 04:39:31 +00:00
Wale Ogunwale
691af68a3c Added some TestApi that are already used by CTS
Allows us to remove the use of private platform API from CTS.

Bug: 124134247
Test: builds
Change-Id: Iceb81ff7c9385e877d2612fbb7b506245d116928
2019-02-21 20:15:56 -08:00
Mady Mellor
138f4c9ac5 Remove title API from bubble metadata
Test: atest NotificationTest (with the cts cl)
Bug: 124909846
Change-Id: Ia4611d4f63da0213ae0ff737355743396404b6e2
2019-02-21 18:25:33 -08:00
Leo Hsu
ab28fff9f9 Add UserManager APIs to SystemApi.
Bug: 124940146
Test: make
Change-Id: I1cac9a6106b3da099e08f10f2c08d90e9f515e42
2019-02-22 01:08:14 +00:00
Felipe Leme
9873510af3 Merge "Refactored Autofill properties that are optimized on application level." 2019-02-22 01:02:46 +00:00
Philip P. Moltmann
41df9f94ae Ask Perm Controller to set policy-fixed perms
This is much slower than the old way as we need to call into a different
process. On the other hand this handles the following cases correctly:
- foreground / background permissions
- pre-M apps
- split permissions

Test: CtsDevicePolicyManagerTestCases:com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testPermissionGrant,testPermissionPolicy,testPermissionMixedPolicies,testPermissionAppUpdate,testPermissionGrantPreMApp
Change-Id: I5cd139ad29e5b77b77b02e12c75eb774984a7759
Bug: 124128308
2019-02-21 16:56:25 -08:00
Philip P. Moltmann
2a537a6ef5 Guard changing policy_fixed flag behind permission
- Allow an app to change policy_fixed permissions
- Disallow apps >= Q to change the polic_fixed flag

Bug: 124128308
Test: Changed permissions that were policy_fixed
Change-Id: Ia94bae1b993bd8a18c93f866df2114c740fa17bd
2019-02-21 16:56:25 -08:00
TreeHugger Robot
432b9640a6 Merge "Add annotations for ImageReader/ImageWriter factory methods" 2019-02-22 00:27:43 +00:00
gomo
3796ab1bf3 Bluesky API council review
Making method names clearer and adding more annotations.

Bug: 124882841
Test: Current Tests Pass.
Change-Id: Ic36f9ac6e69280f3efa9f812fee1ff6e4e4b1773
2019-02-21 15:28:25 -08:00
Lucas Dupin
3b5741c560 Merge "Make DynamicDrawableSpan#ALIGN_CENTER public API" 2019-02-21 22:16:35 +00:00
Michele Berionne
f8bfbbb96a Merge "Add checks on multisim capabilities." 2019-02-21 21:24:44 +00:00
Felipe Leme
a4f39cd150 Refactored Autofill properties that are optimized on application level.
Prior to this CL we were just caching whether the service supported compatibility mode for the app,
but now we're also caching the logging level and whether the app is whitelisted for augmented
autofill - although right now the augmented autofill info is not used, it will allow us to trigger
it in the scenarios where autofill is disabled for the app.

Bug: 123099842
Bug: 123100824
Test: atest CtsAutoFillServiceTestCases:AugmentedLoginActivityTest \
            CtsAutoFillServiceTestCases:VirtualContainerActivityCompatModeTest
      atest CtsAutoFillServiceTestCases # sanity check, although still flaky

Change-Id: Iaf8ea6634ca94e5e61131890ec17c96c2fbb329a
2019-02-21 10:44:39 -08:00
Lucas Dupin
660d7fc4e8 Make DynamicDrawableSpan#ALIGN_CENTER public API
Bug: 123340905
Test: make update-api
Test: atest DynamicDrawableSpanTest
Change-Id: I0951091710a46434425359b148a9e7ea0adbc3d1
2019-02-21 09:59:51 -08:00
Ricky Wai
92cd00622b SystemAPI for setting app details activity state
Priv-app can use it to enable / disable AppDetailsActivity of an app

Bug: 124378857
Test: Able to compile
Change-Id: I3122d7c1a18362cecdcea17b14d21b7c0ce12754
2019-02-21 17:31:13 +00:00
Mady Mellor
5c9cd6879c Merge "Add API so apps can know when a user dismisses a bubble" 2019-02-21 17:14:56 +00:00
Jiyong Park
a952175999 Add TEST_MAPPING for CtsSystemApiSignatureTestCases
Bug: 124209375
Test: m and watch if treehugger triggers the test
Change-Id: I2c4320ffc5ac30b9b6ac4991570dee9415bb2ca0
2019-02-21 20:59:16 +09:00
Felipe Leme
5cb9cb529b Removed deprecated ContentCaptureEventsRequest
Test: m update-api
Test: atest CtsContentCaptureServiceTestCases

Fixes: 121051220

Change-Id: Ica14c64e59f82628c2cbe46853aa09be897d1ace
2019-02-20 22:46:24 -08:00
TreeHugger Robot
15b7740dce Merge "Introduce playback capture opt-out" 2019-02-21 05:36:36 +00:00
TreeHugger Robot
3ffadce8b9 Merge "Optimized Content Capture workflow by caching some state at the application level." 2019-02-21 05:34:34 +00:00
Jeff Sharkey
f862750207 Merge "Flesh out CR.getTypeDrawable() with more details." 2019-02-21 04:39:53 +00:00
Felipe Leme
326f15a392 Optimized Content Capture workflow by caching some state at the application level.
Content Capture for an activity and/or package is only available when the Content Capture service
explicitly whitelists it. As the whitelist is kept at system-server level, it's better to fetch that
info when the application is started and cache it locally, so we can optimize the
ContentCaptureManager APIs to return quickly when it's disabled.

This CL also caches other values such as the buffer parameters.

Test: atest CtsContentCaptureServiceTestCases

Bug: 120494182
Bug: 121202151

Change-Id: I9d5211bca496ffa85ba9efc2a7bb32411834b787
2019-02-20 18:44:05 -08:00
Kevin Rocard
9ce6e56c00 Introduce playback capture opt-out
Test: adb shell audiorecorder --target /data/file.raw
Bug: 111453086
Change-Id: Ie09f7161bf19b158e31f4a18e9c9a27c70382686
Signed-off-by: Kevin Rocard <krocard@google.com>
2019-02-21 00:43:33 +00:00
Robert Berry
669be0445c Introduce audio playback capture API
This API allows an app to record what other apps are playing
with some privacy restrictions.

Test: CTS
Bug: 111453086
Change-Id: I98ed789afb792acf90876499aa5eb8a47359b265
2019-02-21 00:42:48 +00:00
Shuo Qian
0f5ff11af1 Merge "Add Prefix per Carrier requirement" 2019-02-20 23:24:35 +00:00
Leland Miller
6ead427b4e Merge "Split RCS events into API and internal classes" am: 609ea873b7 am: 7b46efda19
am: 720a31725d

Change-Id: Id2d914dcb2088ea676c448ff7068ac7229913182
2019-02-20 14:10:06 -08:00
Makoto Onuki
3d44f6379c Merge "Fix boost charging, also expose test API" 2019-02-20 22:06:05 +00:00
Ecco Park
5d14d0a528 passpoint: remove NETWORK_SETUP_WIZARD permission
This permission is not required as SetupWizard does not have the UI to
manage Passpoint profile.

Bug: 124301934
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I3bca539249c31124205c69e3304d697f0c072087
Signed-off-by: Ecco Park <eccopark@google.com>
2019-02-20 13:29:51 -08:00
Nathan Harold
e3d149bbdd Merge "Expose the Radio HAL Version for Test Purposes" am: a6dda25ac9 am: 225ef93d21
am: 0025fc3286

Change-Id: I3fb947c31e5a6fb46d0216fed77e8655ac43492f
2019-02-20 13:10:40 -08:00
Leland Miller
720a31725d Merge "Split RCS events into API and internal classes" am: 609ea873b7
am: 7b46efda19

Change-Id: I2fc31c0fdc1e8eb203830dff9a7914e56ebda413
2019-02-20 13:05:37 -08:00
Nathan Harold
0025fc3286 Merge "Expose the Radio HAL Version for Test Purposes" am: a6dda25ac9
am: 225ef93d21

Change-Id: Ie4b60e4ba25b69eaef298887ca803b428620e33d
2019-02-20 12:42:50 -08:00
TreeHugger Robot
beaf39ba1d Merge "Add some @IntRange" 2019-02-20 20:42:05 +00:00
Treehugger Robot
609ea873b7 Merge "Split RCS events into API and internal classes" 2019-02-20 20:01:14 +00:00
Yin-Chia Yeh
e7c158f114 Add annotations for ImageReader/ImageWriter factory methods
Test: make update-api && make
Bug: 124766727
Change-Id: I7f7c5afd013370ab6e42c28b96b3cfa93e8dc615
2019-02-20 10:48:04 -08:00
John Reck
24faae952b Add some @IntRange
IntRange just matches what would have resulted in an
IllegalArgumentException, no new restrictions

Fixes: 124767261
Test: N/A
Change-Id: Iad04587f2c10008798098fc56481e45de4c64c0b
2019-02-20 10:27:02 -08:00
Jeff Sharkey
806bece3be Flesh out CR.getTypeDrawable() with more details.
Providing icons for MIME types is generally useful, but we also
need to provide a label and content description.  This interface
can be extended internally to surface details about special MIME
types, such as "image/vnd.google.panorama360+jpg".

Bug: 122887179, 120791890
Test: atest android.content.cts.ContentResolverTest
Change-Id: Ibe655896315b9a9662dfdace3ee8ffacf1302eb8
2019-02-20 18:26:16 +00:00
TreeHugger Robot
b431a8ab3e Merge "Add visibility config for assistant, home and emergency role." 2019-02-20 18:16:13 +00:00
TreeHugger Robot
1671308c29 Merge "API adjustments for Picture serialization discussion" 2019-02-20 18:00:28 +00:00
Nathan Harold
a6dda25ac9 Merge "Expose the Radio HAL Version for Test Purposes" 2019-02-20 17:50:41 +00:00
TreeHugger Robot
4cac1f42f0 Merge "Move TextClassifier.getLocalTextClassifier() API." 2019-02-20 16:40:21 +00:00