Commit Graph

31363 Commits

Author SHA1 Message Date
Fabian Kozynski
ac881ab149 Merge "Add setting for power menu in lock screen privacy" 2020-04-23 19:38:05 +00:00
Chavi Weingarten
1c908f9ed7 Merge "Add DisplayAreaInfo" into rvc-dev am: 74aa929f63 am: 3ac93f0996 am: da44e4d26e am: 458ec7aa76
Change-Id: Ic8c047b387c98bf7dccfd06bd71089cde196df2e
2020-04-23 17:01:36 +00:00
Chavi Weingarten
3ac93f0996 Merge "Add DisplayAreaInfo" into rvc-dev am: 74aa929f63
Change-Id: Ib7ccd9ab49d9e6eb8b41fe89443fa465fb969ccf
2020-04-23 15:56:50 +00:00
Chavi Weingarten
74aa929f63 Merge "Add DisplayAreaInfo" into rvc-dev 2020-04-23 15:55:20 +00:00
Jacky Kao
0785cfdd1f Merge "Makes AccessibilityNodeInfo#getSourceNodeId as test API" into rvc-dev am: f6f8deea32 am: b6ce1cf0d6 am: 0272eec6ed am: 48ff10d5ba
Change-Id: I8ac059b7bcd8b1bb369339b093cb771c03eb6be9
2020-04-23 02:00:31 +00:00
Jacky Kao
0272eec6ed Merge "Makes AccessibilityNodeInfo#getSourceNodeId as test API" into rvc-dev am: f6f8deea32 am: b6ce1cf0d6
Change-Id: Ieb8b40a6186c923ff1117c86cff83da0e8dbe7e2
2020-04-23 01:46:31 +00:00
Jacky Kao
28e8b30b2b Merge "Makes AccessibilityNodeInfo#getSourceNodeId as test API" into rvc-dev am: f6f8deea32
Change-Id: I621cacb0ca0d1e799df66711ae1065df5ecb6f37
2020-04-23 01:27:05 +00:00
chaviw
d1a2393f6c Add DisplayAreaInfo
Pass DisplayAreaInfo to the client to communicate information about a
specific DisplayArea.

Test: Builds
Bug: 152114574
Change-Id: Iec53ec57d1e5e892d66a1da0bd48b75f91965d20
2020-04-22 14:29:18 -07:00
Hall Liu
1635dd5b89 Expose android.telephony.DisconnectCause
Expose these constants since they're referred to by a public carrier
config key.

Fixes: 145663507
Test: compile
Change-Id: I276761170b3cf5d740f7dbe945834934082a1428
(cherry picked from commit 8e32a5b027)
2020-04-22 21:21:37 +00:00
Hall Liu
ff6215ab56 Merge "Expose android.telephony.DisconnectCause" 2020-04-22 20:21:56 +00:00
Hall Liu
8e32a5b027 Expose android.telephony.DisconnectCause
Expose these constants since they're referred to by a public carrier
config key.

Fixes: 145663507
Test: compile
Change-Id: I276761170b3cf5d740f7dbe945834934082a1428
2020-04-22 11:24:25 -07:00
Philip P. Moltmann
fbc913c2ac Merge "Set attributionTag for noteOp(WRITE_SETTINGS) calls" 2020-04-22 14:57:49 +00:00
Fabian Kozynski
1733d49bb8 Add setting for power menu in lock screen privacy
Adds a new Setting for the user to show or hide power menu content
(cards & passes, controls) when the device is locked (secured). A value
of 0 (default) means hide content and a value of 1 means show.

The setting updates from the notification in the following way:
* If Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS is 1 AND
Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS is 1, the new setting is
set to 1 (the user has allowed sensitive content).
* If at least one of those settings is 0, the new setting is set to 0
(the user has not allowed sensitive content).
* If the settings are not set, the new setting is not set.

Test: build
Test: manual with adb
Bug: 152212779
Change-Id: If6d9436f633bc45330956372ea7f8a40ed22ed52
2020-04-22 13:17:40 +00:00
Jacky Kao
ec8733e497 Makes AccessibilityNodeInfo#getSourceNodeId as test API
For testing the accessibilityNodeInfo constructor methods, making this
method, AccessibilityNodeInfo#getSourceNodeId, to become a testing API.

Bug: 154163930
Bug: 154163953
Test: a11y CTS & unit tests
Change-Id: I9a2ff665996e28d6d5770723d98b49f96eab1f50
2020-04-22 15:43:27 +08:00
Brad Ebinger
01af38428a Merge "Using RegistrationManager was causing unintended public APIs" into rvc-dev am: c05ba6325d am: ae7d445b33 am: 475740d345 am: c1e171e8af
Change-Id: If729ec77bb966e5acf4245dba6009d8aa9641a23
2020-04-21 23:15:57 +00:00
Wale Ogunwale
44fbf11e04 Merge "Allow CTS test to control organized tasks" into rvc-dev am: 201af5078f am: ef931eee02 am: 951fdd64db am: fd1bacac76
Change-Id: I497e7092b40ed6411549c71478b87803850ef56f
2020-04-21 23:10:48 +00:00
Brad Ebinger
475740d345 Merge "Using RegistrationManager was causing unintended public APIs" into rvc-dev am: c05ba6325d am: ae7d445b33
Change-Id: Ib30d02f5515ceccfb9ff2ec12d78f682526af7d4
2020-04-21 22:45:43 +00:00
Brad Ebinger
a3899394b5 Merge "Using RegistrationManager was causing unintended public APIs" into rvc-dev am: c05ba6325d
Change-Id: I4c340986a5f005a9fcfff2b6f60aa2c0831923c0
2020-04-21 22:38:03 +00:00
Brad Ebinger
c05ba6325d Merge "Using RegistrationManager was causing unintended public APIs" into rvc-dev 2020-04-21 22:33:37 +00:00
Wale Ogunwale
951fdd64db Merge "Allow CTS test to control organized tasks" into rvc-dev am: 201af5078f am: ef931eee02
Change-Id: I4ed81bb4af88b677642df9ba9471920c235ff2ab
2020-04-21 22:27:47 +00:00
Wale Ogunwale
089608a0a3 Merge "Allow CTS test to control organized tasks" into rvc-dev am: 201af5078f
Change-Id: I43787a43ea79d506ece2358a00fb952688fe34e6
2020-04-21 22:15:45 +00:00
Wale Ogunwale
201af5078f Merge "Allow CTS test to control organized tasks" into rvc-dev 2020-04-21 22:01:40 +00:00
Philip P. Moltmann
01628ba180 Set attributionTag for noteOp(WRITE_SETTINGS) calls
Test: atest FrameworksNetTests
Bug: 136595429
Change-Id: I33f787644c44d7b0e5ce17a433820cfcd985cdfb
Exempt-From-Owner-Approval: Merge from AOSP
2020-04-21 21:46:34 +00:00
TreeHugger Robot
a108f1ad23 Merge "Add currentUiModeSupportsErrorDialogs() into ActivityTaskManager." into rvc-dev am: 6b74050d48 am: c92f564c38 am: 995ba0935b am: 25f27abe6a
Change-Id: I02b25d72a21cf93cca8412c770753d83cd63e69b
2020-04-21 19:26:55 +00:00
TreeHugger Robot
c92f564c38 Merge "Add currentUiModeSupportsErrorDialogs() into ActivityTaskManager." into rvc-dev am: 6b74050d48
Change-Id: I2e6738265d5df69e1e6afaaf1355282fdff5b334
2020-04-21 18:50:56 +00:00
TreeHugger Robot
6b74050d48 Merge "Add currentUiModeSupportsErrorDialogs() into ActivityTaskManager." into rvc-dev 2020-04-21 18:35:44 +00:00
Nikita Dubrovsky
ec0d63e9fc Merge "Rename RichContentReceiver.SOURCE_MENU to SOURCE_CLIPBOARD" 2020-04-21 18:14:25 +00:00
Yuncheol Heo
5d9b2710da Add currentUiModeSupportsErrorDialogs() into ActivityTaskManager.
The method will be used in AnrTests to check if the system can support ANR Dialog or not.

Bug: 149510025
Test: atest AnrTests
Change-Id: I7a78be06fcf3c4882931aaea1d330b2cebdc2d84
2020-04-21 16:24:22 +00:00
TreeHugger Robot
ee55c77e09 Merge "Add Activity non-config instance map-like API" 2020-04-21 13:12:25 +00:00
Linus Tufvesson
41fe46bc20 Merge "Make ActivityViews backing virtual display private" into rvc-dev am: 3bfec32633 am: 7745b320f3 am: cce6612df8 am: 5533f8dc60
Change-Id: Iba2daf0ef744be689f935bdda4d65c8d41af1252
2020-04-20 14:31:54 +00:00
Linus Tufvesson
7745b320f3 Merge "Make ActivityViews backing virtual display private" into rvc-dev am: 3bfec32633
Change-Id: Ieb031f9be5e1813a1196a7d91d344543355ec0da
2020-04-20 14:04:09 +00:00
Linus Tufvesson
3bfec32633 Merge "Make ActivityViews backing virtual display private" into rvc-dev 2020-04-20 14:00:28 +00:00
Nikita Dubrovsky
bc495089fd Rename RichContentReceiver.SOURCE_MENU to SOURCE_CLIPBOARD
Using "menu" was ambiguous since ACTION_PROCESS_TEXT is also triggered
via the menu but has its own enum value.

Bug: 152068298
Bug: 154151141
Test: ran tests
  atest CtsWidgetTestCases:TextViewRichContentReceiverTest
Change-Id: I3805577e9d7bbf55d40339d37820cd7f510da37e
2020-04-19 22:55:37 -07:00
Wale Ogunwale
20ab6d4999 Allow CTS test to control organized tasks
Changes to allow CTS test to control organized task so we can have the
tests run the same way sys-ui is driving things now. Control is given
back to sys-ui once the test is done running.

Bug: 149338177
Test: atest CtsWindowManagerDeviceTestCases:SplitScreenTests
Change-Id: I74a03ee3411f5b10ea4e26c1cc3c663dc394dd97
2020-04-19 19:09:33 -07:00
Nicholas Ambur
ac42a7c999 Merge "add KeyphraseEnrollmentInfo to TestApi" into rvc-dev am: 01b4d5cb13
Change-Id: I316ee034119f08155ac51cfc4a6e38a4287a4e35
2020-04-18 02:25:09 +00:00
Nicholas Ambur
d3c1f27b0c add KeyphraseEnrollmentInfo to TestApi
KeyphraseEnrollmentInfo is used for testing the system enrollment
application support within GTS.

Bug: 153264697
Test: gts-tradefed run gts-dev -m GtsAssistIntentTestCases \
-t com.google.android.assist.gts.KeyphraseModelManagerTest# \
testAllSystemKeyphrasesAndLocales

Change-Id: I66558cf849f2815f2c917d128f9f9cc0673750ef
Merged-In: I66558cf849f2815f2c917d128f9f9cc0673750ef
2020-04-17 22:12:13 +00:00
Nicholas Ambur
b766f2d8bf Merge "add KeyphraseEnrollmentInfo to TestApi" 2020-04-17 22:04:29 +00:00
Nikita Dubrovsky
b66a027f1d Merge "Integrate ACTION_PROCESS_TEXT with RichContentReceiver" 2020-04-17 17:16:04 +00:00
Jake Wharton
4fa4197a41 Add Activity non-config instance map-like API
This re-deprecates the single instance non-config instance API. Previously this was deprecated in favor of retained fragments. It was then undeprecated and platform fragments were deprecated (although those two events were not related).

The problem here is that there needs to be a composable mechanism of retaining non-config instances for libraries to use.
This is evidenced in Activity.java itself which already emulates a map internal by using a type and named fields.
The Jetpack library (nee support library) has historically needed this as well, and has been forced to resort to marking the single non-config instance API as final, exposing a differently-named overload, and then coalescing everything into a single type with named fields, just like Activity.java.

This change adds a class-keyed map-like API so that anyone can hook in without being directly in the activity subtype hierarchy.

Unlike the single non-config instance API, the map-like API has a few different behaviors:

- You can store an instance into the map anytime between onCreate and onDestroy (including inside those two lifecycle methods). The old API had a dedicated callback. You can use isChangingConfiguration() in onDestroy to conditionally create the retained instance.
- Stored instances are available for the entire lifetime of the activity instance. The old API cleared the non-config object in onResume.
- By virtue of the previous behavior, instances are retained across multiple config changes without having to re-create the state.

While behaviorally different from the old API, this is more in line with the behavior of retained fragments or non-framework solutions like Jetpack fragments and view models.

A compatibility shim for this in Jetpack will be added.

Bug: 152476567
Test: atest ActivityNonConfigInstanceTest
Change-Id: Ib2484d43327dd52e9cceac1f7201a5b4f694f7bb
2020-04-17 12:44:34 -04:00
TreeHugger Robot
8f34725822 Merge "Mark more directory getter APIs @TestApi" into rvc-dev am: 5ac047d365 am: 63c1271fbc am: 04ddd8759a am: f63b392570
Change-Id: I36c5448aea94ea91d888e350bbc231e2f902834b
2020-04-17 16:31:18 +00:00
TreeHugger Robot
63c1271fbc Merge "Mark more directory getter APIs @TestApi" into rvc-dev am: 5ac047d365
Change-Id: I0c36668774a2ec2b2710f06f51b474c48f14a849
2020-04-17 15:41:20 +00:00
Jerry Chang
e63ae2f84f Mark more directory getter APIs @TestApi
To have a way to verify behavior of more directories, mark more
directory getter APIs @TestApi.

Bug: 148664742
Test: atest SysConfigTest#testStageWhitelist
Change-Id: I2d22412935b24ec4c33d8d1b3a7fbb7df4a08841
2020-04-17 14:50:48 +08:00
Nicholas Ambur
d94f1f7c3c add KeyphraseEnrollmentInfo to TestApi
KeyphraseEnrollmentInfo is used for testing the system enrollment
application support within GTS.

Bug: 153264697
Test: gts-tradefed run gts-dev -m GtsAssistIntentTestCases \
-t com.google.android.assist.gts.KeyphraseModelManagerTest# \
testAllSystemKeyphrasesAndLocales

Change-Id: I66558cf849f2815f2c917d128f9f9cc0673750ef
2020-04-16 22:02:20 -07:00
Ming-Shin Lu
19566e6d34 Merge "Add test APIs for makeCustomAnimation" into rvc-dev am: 49ccdb557f am: c1e19880fd am: 47b0836f9f am: 8843e5feac
Change-Id: I14bcf42e0aa3edc824e167795d37c1c8a7247df9
2020-04-17 04:29:42 +00:00
Ming-Shin Lu
c1e19880fd Merge "Add test APIs for makeCustomAnimation" into rvc-dev am: 49ccdb557f
Change-Id: If0b278f6a4252f887a2b590ac3613e6c20dfa375
2020-04-17 03:54:17 +00:00
Ming-Shin Lu
49ccdb557f Merge "Add test APIs for makeCustomAnimation" into rvc-dev 2020-04-17 03:33:51 +00:00
Nikita Dubrovsky
90b8d4995a Integrate ACTION_PROCESS_TEXT with RichContentReceiver
Bug: 152068298
Bug: 152808432
Test: Ran existing/new tests for ACTION_PROCESS_TEXT
  atest FrameworksCoreTests:TextViewTest
  atest FrameworksCoreTests:TextViewProcessTextTest
Change-Id: Idf88839f96087cdc403ea1b5413c238413e005d3
2020-04-16 14:54:55 -07:00
Linus Tufvesson
db1f2ec052 Make ActivityViews backing virtual display private
Bug: 150310377
Test: atest CtsWindowManagerDeviceTestCases:ActivityViewTest
Test: Used bubbles test app to verify that it's still happy when using
private VDs

Change-Id: I02c6840b1f908a5177c217494de0110f5ce78f7e
2020-04-16 15:50:48 +01:00
Brad Ebinger
db3e8ee013 Using RegistrationManager was causing unintended public APIs
Remove the dependency on this interface until it is intended
to be public.

Fixes: 153908410
Test: atest CtsTelephonyTestCases
Change-Id: Iad82b7d06738468861bd49164fbb4b4dafb8c014
2020-04-14 15:17:46 -07:00
Winson Chung
94cb950999 Merge "Send task description changed though task org taskInfoChanged" into rvc-dev am: 3908fb22b6 am: 068eabcc85 am: 1a24a44553 am: 81cc3656e6
Change-Id: I198b311d55e5eac904f15379c31848d65111cd06
2020-04-13 18:22:43 +00:00