Commit Graph

23536 Commits

Author SHA1 Message Date
TreeHugger Robot
d8b240cbb0 Merge "Add TEST_MAPPING for GtsUnofficialApisUsageTestCases" 2019-02-19 03:35:39 +00:00
Jeff Sharkey
c2b55eb98f Merge changes from topic "wrapz"
* changes:
  Add tests for DocumentsContract/Provider.
  Replace ContentInterface with wrapping.
2019-02-18 16:42:07 +00:00
Svetoslav Ganov
bdea76f9ae Merge "Add request object for querying historical ops" 2019-02-18 15:48:19 +00:00
Santos Cordon
c34d735f43 Merge "Add force suspend API to PowerManager." 2019-02-18 10:23:04 +00:00
TreeHugger Robot
4e3524229b Merge "MediaSession2: Make getConnectedControllers() public" 2019-02-18 04:05:21 +00:00
Svet Ganov
23c88db8f4 Add request object for querying historical ops
Test: atest CtsAppOpTestCases

bug:123253745

Change-Id: Ia473f9298a83214f2fdfb1062992b48357965003
2019-02-17 07:35:52 -08:00
TreeHugger Robot
cbb05a317b Merge changes I9ed87db1,Ic0b766f6
* changes:
  Make PermissionControllerManager user aware
  Check same uid for permission and app-op
2019-02-16 22:35:22 +00:00
Philip P. Moltmann
0d05e48371 Check same uid for permission and app-op
In permission checker we used to check the permission for the passed in
uid but the opp-op for the Binder.getCallingUid. In the case the calling
identity was cleared, PermissionChecker ended up checking the app-op of the
current process (often the system server).

Now we check the uid for both the permission and the app-op.

Test: Called PermissionChecker.checkPermission with the calling indentity
cleared.
Fixes: 124116218
Change-Id: Ic0b766f6c75bba1b9dae3e91c6adce85a76ae68f
2019-02-16 12:08:25 -08:00
TreeHugger Robot
2188365b44 Merge "Annotated mTheme field on ContextThemeWrapper with maxTargetSdk P" 2019-02-16 03:48:19 +00:00
Felipe Leme
c4b4cb8a16 Merge "Added DeviceConfig properties to fine tune ContentCapture:" 2019-02-16 03:46:13 +00:00
TreeHugger Robot
d2d04c6e81 Merge "AudioService: Make suspended apps lose audio focus" 2019-02-16 03:30:26 +00:00
Jeff Sharkey
a13887fa63 Replace ContentInterface with wrapping.
After much discussion, we can't safely introduce ContentInterface,
so instead offer ContentResolver.wrap() methods.

Bug: 120974438
Test: manual
Change-Id: I0b399192a19948a8986146efa916375022c38b59
2019-02-15 19:45:18 -07:00
Felipe Leme
d32d8f6f3c Added DeviceConfig properties to fine tune ContentCapture:
- DEVICE_CONFIG_PROPERTY_MAX_BUFFER_SIZE
- DEVICE_CONFIG_PROPERTY_IDLE_FLUSH_FREQUENCY
- DEVICE_CONFIG_PROPERTY_TEXT_CHANGE_FLUSH_FREQUENCY
- DEVICE_CONFIG_PROPERTY_LOG_HISTORY_SIZE
- DEVICE_CONFIG_PROPERTY_LOGGING_LEVEL

Test: manual verification
Test: atest CtsContentCaptureServiceTestCases

Bug: 123096662
Fixes: 121044064
Fixes: 121044306

Change-Id: I08623516bb7ebbe9c900987be853f4f395250016
2019-02-15 17:32:04 -08:00
Jean-Michel Trivi
b2251826e9 AudioService: Make suspended apps lose audio focus
Handle ACTION_PACKAGES_SUSPENDED in AudioService.
Send FOCUS_LOSS to any suspended app that is in the focus
  stack and remove it from the stack
Annotate nullability of package name, AudioAttributes
  and clientId for audio focus.

Bug: 119328282
Test: suspend app with focus, check output of dumpsys audio
Change-Id: I34103f8910146fc573c9efc806e8f1a1ffc722c9
2019-02-15 15:34:55 -08:00
TreeHugger Robot
f7ecba9f15 Merge "APIs for developers to use DeviceDefault.DayNight." 2019-02-15 23:21:19 +00:00
Philip P. Moltmann
7d717842c5 Merge changes from topic "actuallyUsePermissionControllerToRestoreBackup"
* changes:
  Expose permission flag APIs for tests
  Move permission restore code into permission controller.
2019-02-15 21:15:36 +00:00
Jeff Sharkey
23dbb2b498 Merge changes from topic "columnz"
* changes:
  Annotation for ContentProvider columns.
  Add accessor methods to aid testing.
2019-02-15 19:33:48 +00:00
TreeHugger Robot
cba028bc11 Merge "Add API to expose ignore settings whitelist for GTS" 2019-02-15 19:29:12 +00:00
Soonil Nagarkar
5140e4fb86 Add API to expose ignore settings whitelist for GTS
Bug: 124517571
Test: manually
Change-Id: I846f9112c3cc3dde1466ff13e740ccf72c16b833
2019-02-15 19:29:06 +00:00
TreeHugger Robot
54db20ba52 Merge "Un-@hide MicrophoneDirection API" 2019-02-15 19:28:08 +00:00
Nader Jawad
a1eef72673 Annotated mTheme field on ContextThemeWrapper with maxTargetSdk P
Added ContextThemeWrapper#setTheme(Theme) method to programmatically
assign the theme without using a resource id

Change-Id: I043253e65a535abdf8d89d9421d2cff2b41bdb05
Fixes: 123768723
Test: Added CTS test to verify setTheme
2019-02-15 19:06:51 +00:00
Julia Reynolds
fd2ec469ed Merge "Fix API errors" 2019-02-15 18:47:06 +00:00
Santos Cordon
12f92eb6cf Add force suspend API to PowerManager.
Add a hidden system API (protected by DEVICE_POWER) that forces suspend,
ignoring any existing wakelock.  Add a shell cmd to trigger the API
to run.

Bug: 111991113
Test: 'adb shell svc power forcesuspend'
Change-Id: I5a258e1b7c8b1391fe1baf3930dd9d9af47235c9
2019-02-15 17:23:18 +00:00
Philip P. Moltmann
3e4961757b Expose permission flag APIs for tests
tests need to make sure the flags are set correctly.

Bug: 116738135
Test: atest CtsBackupTestCases:android.backup.cts.PermissionTest#testRestorePermReviewed
Change-Id: Ia1000de3594e910c3345e205679bee37be898d17
2019-02-15 08:57:16 -08:00
Amin Shaikh
705ccdee1b APIs for developers to use DeviceDefault.DayNight.
Without this, developers would have to create their own DayNight version
for DeviceDefault. Adding the ThemeOverlay.DeviceDefault.Accent.DayNight
makes it easier to developers to retrieve accent color in xml.

Bug: 123999734
Test: make
Change-Id: I85f0ad6a467b7a6eb0626ce0bc9808b0559c3fa6
2019-02-15 11:56:31 -05:00
Julia Reynolds
79f0277f29 Fix API errors
APIs that were @SystemApi in the last release cannot be changed.

Test: atest CtsSystemApiSignatureTestCases
Bug: 124209375
Change-Id: I631b7dea09e723f509581f82a85da99344b42a09
2019-02-15 11:38:48 -05:00
Jiyong Park
d5acf18a17 Add TEST_MAPPING for GtsUnofficialApisUsageTestCases
Bug: 123701384
Test: m and watch if treehugger triggers the test
Change-Id: Ib1793c778e97e130e33049e962752fbe4c684222
2019-02-15 08:25:42 +00:00
Jaewan Kim
1d20148e8a MediaSession2: Make getConnectedControllers() public
Bug: 124478505
Test: Build
Change-Id: Iee132fca34ccdf89b263a74d727c5bcc5e75d196
2019-02-15 14:52:29 +09:00
Remi NGUYEN VAN
6616e2ab5d Merge "Remove NetworkMonitor dependency on ICaptivePortal" 2019-02-15 05:39:14 +00:00
TreeHugger Robot
3a5211e744 Merge "Changed ContentCaptureService.setContentCaptureWhitelist() to use Set instead of List." 2019-02-15 04:20:23 +00:00
Ralston Da Silva
b3f0928223 Merge "Removing hidden api usage from AutoCompleteTextView" 2019-02-14 23:34:02 +00:00
Jeff Sharkey
0ec586b9d5 Add accessor methods to aid testing.
If you can set things, you should be able to read them back.

Bug: 123601452
Test: manual
Change-Id: I3a842aa873f96872581ec49523e9a3cc1d7dbb50
2019-02-14 15:29:28 -07:00
Felipe Leme
7a3c9f5324 Changed ContentCaptureService.setContentCaptureWhitelist() to use Set instead of List.
(Same for Augmented Autofill)

Bug: 122595322
Test: m update-api

Change-Id: I6753ce2567801da148682c0ccbad7f6abc4d1ecc
2019-02-14 14:13:56 -08:00
TreeHugger Robot
93d196b3a8 Merge "Create a DisableInfo object instead of exposing DISABLE_* flags" 2019-02-14 21:43:30 +00:00
James O'Leary
08211297cf Merge "Encapsulate state & transcription in hints bundle" 2019-02-14 21:25:24 +00:00
TreeHugger Robot
f9723ba1e7 Merge changes from topic "accessibility-usage-dialog"
* changes:
  Make the accessibility op string a SystemApi.
  Add a new intent for reviewing running accessibility services.
2019-02-14 21:04:32 +00:00
John Reck
989bb3714f Merge "Make HardwareRenderer public API" 2019-02-14 20:40:13 +00:00
Maurice Lam
b8e161804d Merge "Add system APIs to implement locale picker" 2019-02-14 20:03:04 +00:00
Benedict Wong
c9ef1542f4 Merge "Add Test Network and Transport types" am: 0dddb902ae am: ffd15698c3
am: dee889a825

Change-Id: Ia9c100ebeb8b54e743820b74ff35d006919e9fbb
2019-02-14 11:08:57 -08:00
Ralston Da Silva
17d7ce6e4a Removing hidden api usage from AutoCompleteTextView
ensureImeVisible() was added to show the keyboard in SearchDialog go/ensureImeVisible-added. A better fix would be to expose a function to setInputMethodMode(), as showDropDown() is public and can be called externally. Adding this new API in this CL.

Bug: 123768913

Test: Added tests to android.widget.AutoCompleteTextViewTest.

Change-Id: I07e53c6d5e93d1e33381f8f87f75a7dee2f2f5a5
2019-02-14 11:02:23 -08:00
Benedict Wong
dee889a825 Merge "Add Test Network and Transport types" am: 0dddb902ae
am: ffd15698c3

Change-Id: I371a4f3bdbbfd001e9694e29843b6b7119b938b0
2019-02-14 10:59:02 -08:00
TreeHugger Robot
dbc9708897 Merge "Add NonNull annotation into unregisterThermalStatusCallback" 2019-02-14 18:53:29 +00:00
TreeHugger Robot
2934daf1ba Merge "Add an intent to launch the permission toggle screen." 2019-02-14 18:40:02 +00:00
Benedict Wong
0dddb902ae Merge "Add Test Network and Transport types" 2019-02-14 18:37:04 +00:00
TreeHugger Robot
1df6e435b0 Merge "Removed unused APIs." 2019-02-14 16:51:29 +00:00
Felipe Leme
0552f41c4e Merge "Add new ContentCapture APIs to let apps change the ContentCaptureContext." 2019-02-14 15:26:27 +00:00
James O'Leary
9c9dd98ee0 Encapsulate state & transcription in hints bundle
Continuation of ag/6226654; edits made per Svetoslav's last comments.

Bug: 122740752
Bug: 123080754
Test: blueline-userdebug build completes successfully.

Change-Id: I3e43137eb6e0d8cae77e14d331150d5a05ede07c
2019-02-14 15:24:08 +00:00
Shafik Nassar
a07b43aec5 Merge "Make Rollback lifetime duration configurable" 2019-02-14 14:19:23 +00:00
Remi NGUYEN VAN
5a1b74b6d5 Remove NetworkMonitor dependency on ICaptivePortal
ICaptivePortal is used in the framework and cannot be used as a
dependency in NetworkMonitor, as the framework class takes precedence
when linking.
Also fix NetworkMonitorTest that was not verifying the right
startCaptivePortalApp call.

(cherry-pick of aosp/904953 with minor conflict in Android.bp)

Test: atest FrameworksNetTests NetworkStackTests
Bug: 124033493
Change-Id: Ib6a89e54312628662b130fbeec18d11e139f09fa
2019-02-14 20:36:40 +09:00
TreeHugger Robot
06363e342c Merge "New API: Settings.ACTION_REQUEST_ENABLE_CONTENT_CAPTURE" 2019-02-14 11:06:25 +00:00