Commit Graph

25220 Commits

Author SHA1 Message Date
Mady Mellor
7e36009dd0 Merge "Make lifecycle events for bubble activity views report normally" into qt-dev 2019-04-25 20:19:30 +00:00
Chavi Weingarten
6ce572ec6c Merge "Added direct call to syncInputTransactions" into qt-dev 2019-04-25 16:27:37 +00:00
Zimuzo Ezeozue
0f6db7d1dd Merge "Change watchdog PackageInfo to PackageConfig" into qt-dev 2019-04-25 09:58:52 +00:00
Sunny Goyal
d40c345536 [DO NOT MERGE] Adding API for defining and invoking DirectActions
DirectActions are abstract actions defined by an Activtiy. The
actual definition of these actions will be available through
the support lib.

This API provides a secure channel for system or assistant to
interact with a running app using these Actions.

Test: atest CtsVoiceInteractionTestCases
Test: added android.voiceinteraction.cts.DirectActionsTest

Bug: 129705716

Change-Id: I0ce568e0d8f41e0fe46306052016a74c7b394efa
2019-04-25 00:06:02 -07:00
chaviw
84dec9f7c6 Added direct call to syncInputTransactions
Previously, there was only a way to inject input after syncing inputs.
However, some tests require a direct call to sync inputs since we need
to ensure the info was propagated to InputManager native before
continuing with the test. This exposes a method just to
syncInputTransactions.

Bug: 130695122
Test: ActivityLifecycleTopResumedStateTests
Test: MultiDisplayPolicyTests
Change-Id: Ie3115741a20d04c743fd854ac421dc3705332488
2019-04-24 17:01:31 -07:00
Zimuzo
1a9aac7b33 Change watchdog PackageInfo to PackageConfig
Test: atest PackageWatchdogTest
Bug: 131165818
Change-Id: Ie3a385468a0de05bc55862e6f71513077d44bbc0
2019-04-24 20:44:52 +01:00
Jeff Sharkey
16641365aa Merge "Rename Environment method to follow attribute." into qt-dev 2019-04-24 18:57:20 +00:00
Mady Mellor
60101c9f29 Make lifecycle events for bubble activity views report normally
There are some extra onPause / onResume events in ActivityView due to
SysUI calling startActivity in onActivityViewReady which happens a bit
before the display being turned on.

This CL posts the startActivity call which is enough to avoid the extra
lifecycle events.

This CL also adds new method on ActivityView to startActivity with your own
ActivityOptions (because posting causes activity transition to occur...)

Test: manual - have Bubbles test APK
             - create a new bubble
             - adb logcat | grep "BubbleActivity"
             - observe the logging to make sure lifecycle events behave
               normally
Bug: 130363466
Change-Id: Ia44d6033e5cff625222006632b7bdc4dc1e59e81
2019-04-24 10:21:34 -07:00
Philip P. Moltmann
4da5dc4df7 Merge "Call PermissionControllerService on workerthread" into qt-dev 2019-04-24 15:28:25 +00:00
TreeHugger Robot
c84e33b3f1 Merge "Remove Settings constants for NetworkStack" into qt-dev 2019-04-24 11:46:25 +00:00
TreeHugger Robot
c37d832194 Merge "Change the test mapping configuration of GTS modules by using "imports."" into qt-dev 2019-04-24 09:36:07 +00:00
Svet Ganov
2224cb827f Address API council feedback
Test: manual

bug:130643623

Change-Id: I489f32858abfa4fe8eeda96cbb103d75e2a87551
2019-04-24 02:14:48 +00:00
Hyundo Moon
007bb68bdb Merge "Make MediaController#getSessionInfo() as @NonNull" into qt-dev 2019-04-24 01:31:39 +00:00
Anil Admal
d4203ddebf Merge "Add separate hasCapabilityName() methods in GnssCapabilities" into qt-dev 2019-04-23 15:32:05 +00:00
Anil Admal
69195f2b92 Merge "Change getGnssCapabilites() return type to @NonNull" into qt-dev 2019-04-23 15:31:48 +00:00
Chiachang Wang
4dd1b47b0b Remove Settings constants for NetworkStack
The definitions reference of these constants are moved from
Settings to DeviceConfig. These definitions are @hide and the
usage in the Settings are removed. Thus, remove the definitions
from API level.

Bug: 123167629
Test: make system-api-stubs-docs-update-current-api \
      test-api-stubs-docs-update-current-api
Test: atest NetworkStackTests
Change-Id: I28c4bf2c0b72e154cea91d11007a9497c7f21570
2019-04-23 09:32:14 +08:00
Sara Kato
9498153dfd Merge "Add @Nullable annotation to getAccessibilityWindowId" into qt-dev 2019-04-23 01:28:23 +00:00
Hyundo Moon
9b72ad0924 Make MediaController#getSessionInfo() as @NonNull
Bug: 131069100
Test: atest CtsMediaTestCases:android.media.cts.MediaSessionTest;
      atest CtsMediaTestCases:android.media.cts.MediaControllerTest;
Change-Id: I5ecf04fd090dc684f5c7a84c1375de1639f7b4bd
2019-04-22 23:59:54 +09:00
Todd Kennedy
6372435f0e deprecate sharedUserId attribute
Shared user ids have caused numerous issues, inconsistencies,
and other random behaviours. They are generally not needed as
proper methodologies -- such as providers and services -- exist
and should be used for cross-package interaction.

We are deprecating the sharedUserId and sharedUserLabel
attributes in Q with the eventual goal of entirely removing them
in a future Android release.

Fixes: 129297713
Test: none. doc only change
Change-Id: Id84e8e22918010b2a42531c0b94aff75689d419b
2019-04-22 05:59:45 -07:00
Jeff Sharkey
8926fc1a51 Rename Environment method to follow attribute.
We recently changed the attribute name, and the Environment method
used to test it should also change.

Bug: 130984886
Test: atest android.appsecurity.cts.ExternalStorageHostTest
Change-Id: I8ed7fa9232a646b2f2f280c4b82dbc6d3cf31426
2019-04-21 09:38:49 -06:00
TreeHugger Robot
4354101749 Merge "Move locale from LanguageDetectionEvent to base class" into qt-dev 2019-04-21 09:02:26 +00:00
Anil Admal
3ba0fa9999 Add separate hasCapabilityName() methods in GnssCapabilities
Fixes: 130802613
Test: Verified on a Pixel device.
Change-Id: I00418f12004b28de666ec2a73203611f73af3e18
2019-04-19 18:26:46 -07:00
Zach Johnson
df512f12a1 Add nullability annotations to android.bluetooth.le.ScanFilter.Builder setServiceSolicitationUuid
Test: compilation
Fixes: 126698824
Change-Id: I4873b46a37df3e103ddc62001cc9f0bc01aea4dc
2019-04-19 22:35:13 +00:00
Anil Admal
ec6ec82ef5 Change getGnssCapabilites() return type to @NonNull
Fixes: 130802725
Test: Manual
Change-Id: I01c3f2aa593c3b5f08b57b77960afc21bb155da7
2019-04-19 15:24:16 -07:00
easoncylee
dba8f1036b Change the test mapping configuration of GTS modules by using "imports."
Reason: Test mapping files of GTS modules should use the indirection to prevent
revealing the module names.

Bug: 130788465

Test: atest --test-mapping frameworks/base/api/TEST_MAPPING
Change-Id: I51d969240fd3a3af7740586693fdc1e89dcf451e
2019-04-19 13:56:19 +00:00
Sara Kato
0fdbae3c46 Add @Nullable annotation to getAccessibilityWindowId
Bug: 126701062
Test: None
Change-Id: I7d13d56f5ffb303431f7e82418134d6f17275ef5
2019-04-19 12:04:51 +00:00
TreeHugger Robot
1b92e90402 Merge "Change argument of MediaSession2.Builder#setExtras() as @NonNull" into qt-dev 2019-04-19 06:52:03 +00:00
TreeHugger Robot
c87a593dee Merge "Add fallback for TEXTURE_TICK" into qt-dev 2019-04-19 05:35:02 +00:00
Hyundo Moon
fb0af60377 Change argument of MediaSession2.Builder#setExtras() as @NonNull
Bug: 130777551
Test: make update-api -j;
Change-Id: I39431850d87a6a5e066b83dbbf39e4e9100ac839
2019-04-19 13:17:39 +09:00
Jin Seok Park
1c41060583 Merge "Rename MediaSession2/MediaController2 methods" into qt-dev 2019-04-19 03:16:11 +00:00
TreeHugger Robot
1f4e4e433d Merge "Make LocaleList.isPseudoLocale a public API" into qt-dev 2019-04-19 03:11:31 +00:00
Nader Jawad
5c5ffcbd7a Merge "Added BlendMode equivalent APIs to replace deprecated PorterDuff variants" into qt-dev 2019-04-18 21:18:32 +00:00
TreeHugger Robot
f96a3cbaa3 Merge "Add @TestApi to StatusBarManager @SystemApi methods" into qt-dev 2019-04-18 19:58:25 +00:00
Mady Mellor
2163249864 Merge "Fix back presses dismissing bubbles when IME is up" into qt-dev 2019-04-18 18:21:22 +00:00
Philip P. Moltmann
188e47bbc5 Call PermissionControllerService on workerthread
As otherwise the mainthread is overwhelmed and blocking.

Test: atest CtsPermissionTestCases:android.permission.cts.PermissionControllerTest
Fixes: 130738002
Change-Id: I1d6cbc60411802cef1c8aedbb6e89430e65b2aa9
2019-04-18 11:05:35 -07:00
Jack Yu
74c8818d79 Merge "Update Multi-OffHost related API definition" into qt-dev 2019-04-18 14:34:28 +00:00
TreeHugger Robot
2631fb58b6 Merge "Ensure Contrast: Address API feedback" into qt-dev 2019-04-18 11:17:43 +00:00
Tony Mak
c30a91702d Move locale from LanguageDetectionEvent to base class
A follow up change of ag/7058048.

Also fixed a wrong nullability annotation, ConversationActions.getHints
should be @NonNull.

Bug: 129344540
Test: atest cts/tests/tests/view/src/android/view/textclassifier/cts/

Change-Id: Iae734b4b27dd3dd8294684330bec198072693a57
2019-04-18 10:25:25 +01:00
Jin Seok Park
6371ac33dd Rename MediaSession2/MediaController2 methods
Bug: 130769139
Test: atest CtsMediaTestCases:android.media.cts.MediaSession2Test
      atest CtsMediaTestCases:android.media.cts.MediaController2Test

Change-Id: Ia6dc5e1b6f723f5827b693748111c6ae556cbe60
2019-04-18 14:58:25 +09:00
Jeff Sharkey
285f6ffff9 Merge "Remove GROUP_ID; not actively being used by apps." into qt-dev 2019-04-18 03:39:26 +00:00
TreeHugger Robot
6e0668c784 Merge "API feedback: getSuppressNotification -> isNotificationSuppressed" into qt-dev 2019-04-18 03:27:45 +00:00
TreeHugger Robot
5ed91dd1cd Merge "Revert "Add android.settings.ACTION_APP_BATTERY_SETTINGS to public API"" into qt-dev 2019-04-17 22:16:24 +00:00
Nader Jawad
531db61ac1 Added BlendMode equivalent APIs to replace deprecated PorterDuff
variants

Updated various framework Views to have equivalent BlendMode APIs
to replace the deprecated PorterDuff equivalents.
Updated InspectableProperty annotations to refer to the same
xml attributes as the original tintmode APIs

Bug: 126726419
Test: Added CTS tests to verify new BlendMode APIs
Change-Id: Id9ab36d3d4d29f351250723e9d13d49bc6062c83
Merged-In: Id9ab36d3d4d29f351250723e9d13d49bc6062c83
2019-04-17 21:11:39 +00:00
Evan Laird
418ba8f03e Add @TestApi to StatusBarManager @SystemApi methods
Enables CTS testing

Test: APIs are in api/test-current
Bug: 130178313
Change-Id: Ie408bc4399cf64018903ef122b8db1e6a9fa9fb1
2019-04-17 16:43:39 -04:00
Michael Wright
665fa7a8d6 Revert "Add android.settings.ACTION_APP_BATTERY_SETTINGS to public API"
This reverts commit c568477004.

Reason for revert: API concerns.
Bug: 129901520

Change-Id: I658de3933353ac93b13ce1f6f6616fd653663152
2019-04-17 20:32:44 +00:00
Adrian Roos
8c7ca4f5c2 Ensure Contrast: Address API feedback
Fixes: 130647853
Test: make checkapi
Test: atest EnsureBarContrastTest NavigationBarColorTest
Change-Id: Iafbdce8476134df56ea5d15155391b10afc9ce94
2019-04-17 21:36:04 +02:00
Jeff Sharkey
5e1ca0e889 Remove GROUP_ID; not actively being used by apps.
Bug: 130744218
Test: none
Change-Id: I2917b84ffcc698d3cbffe7dfbd49c76b21c46515
2019-04-17 13:35:16 -06:00
Svetoslav Ganov
d21ce79b30 Merge "Make storage a restricted permission - framework" into qt-dev 2019-04-17 18:27:06 +00:00
TreeHugger Robot
7269961ae3 Merge "Annotate Part Uri as @NonNull" into qt-dev 2019-04-17 18:10:39 +00:00
Mehdi Alizadeh
de005d26a6 Merge "Make deprecated AppTarget APIs visible" into qt-dev 2019-04-17 13:49:22 +00:00