Commit Graph

12856 Commits

Author SHA1 Message Date
TreeHugger Robot
b9cacbea94 Merge "Improve reporting of bucketing reason" 2018-02-24 00:24:03 +00:00
TreeHugger Robot
aa360efee0 Merge changes from topic "wipedata"
* changes:
  Rename WipeDataWithReason API to wipeData.
  Block adb from changing certain settings value when corresponding user restriction is on.
2018-02-23 22:54:44 +00:00
TreeHugger Robot
f46aade7d8 Merge "Make mapIntentToUri understand meta-data hookup" 2018-02-23 20:25:56 +00:00
Amith Yamasani
119be9a5fc Improve reporting of bucketing reason
Keep track of main and sub reason for bucket change

Bug: 73178753
Test: atest AppIdleHistoryTests
Change-Id: I4936281ac06046bb5ffed9f3306efa24c7fd47ab
2018-02-23 10:45:39 -08:00
TreeHugger Robot
6dcc9de2fe Merge "New APIs to let app developers manage autofill semantics when reusing views." 2018-02-23 18:26:36 +00:00
yuemingw
8227e5b9d2 Rename WipeDataWithReason API to wipeData.
Bug: 71818126
Test: run cts --module DevicePolicyManager -t com.android.cts.devicepolicy.ManagedProfileTest#testWipeDataWithReason
Change-Id: I5e2e445fffeebc0d15cb312e3679181f8934fc76
2018-02-23 16:06:02 +00:00
Jason Monk
f200887b30 Make mapIntentToUri understand meta-data hookup
Test: uiservicestests
Bug: 73741418
Change-Id: I399476b94d59996828405d7fbcc4f6aa532f49d8
2018-02-23 08:59:31 -05:00
Bernardo Rufino
7524b7228a Merge "Extend XML parser to allow optional requiredFlags attribute for <include /> rules in <full-backup-content> specification" 2018-02-23 09:29:21 +00:00
TreeHugger Robot
23ea41c4e7 Merge "Using ParceledListSlice for {get|set}AppStandbyBuckets" 2018-02-23 09:28:33 +00:00
TreeHugger Robot
2ca8fcec2d Merge changes from topic "update_mapping"
* changes:
  Rework how pinning works
  Follow prebuilt/API update
2018-02-23 06:51:31 +00:00
Dake Gu
09571f8943 Merge "autofill: pass keyevent from fillui to app" 2018-02-23 01:35:55 +00:00
Jason Monk
f09c8c168d Merge "Move metadata key from Slice to SliceManager" 2018-02-23 01:03:33 +00:00
Jason Monk
38df280a67 Rework how pinning works
pin/unpin don't require special permissions, just permissions to the
slice, and they stop when the app dies.

Test: uiservicestests
Change-Id: I1d1b6afc7e5577091e55c9cbb58f56337b470acf
2018-02-22 19:40:31 -05:00
Andrii Kulian
9a33438cd1 Merge "Improve AM lifecycle event logs" 2018-02-22 22:54:53 +00:00
TreeHugger Robot
53f259280f Merge "Better javadoc for DevicePolicyManager#getTransferOwnershipBundle." 2018-02-22 21:17:02 +00:00
Felipe Leme
42b9793d0f New APIs to let app developers manage autofill semantics when reusing views.
From the Autofill workflow point of view, each view has an unique AutofillId
that is used to semantically, semantically identify the view. Currently, once
the View's AutofillId is set it cannot be changed, which make it hard to reuse
views for optimization (for example, in a RecyclerView).

This change introduces 2 new APIs (View.setAutofillId() and
Activity.getNextAutofillId()) that let app developers reuse views without
breaking their logical autofill semantics.

Fixes: 73555342

Test: atest CtsAutoFillServiceTestCases:MutableAutofillIdTest
Test: atest CtsAutoFillServiceTestCases

Change-Id: I35fe07b10657f17d7b260f90f578ca7a13782a18
2018-02-22 12:47:24 -08:00
TreeHugger Robot
93891ea8aa Merge "Split query permission from update permission" 2018-02-22 19:58:38 +00:00
arangelov
dc63bd7a87 Better javadoc for DevicePolicyManager#getTransferOwnershipBundle.
Test: None
Bug: 73751387
Change-Id: I627fe9825823191e3853deba9bb08da09fbf7c5e
2018-02-22 18:21:37 +00:00
Gus Prevas
9c0951304d Merge "Deprecates methods on WearableExtender.Builder which have not been honored since Wear 1.0." 2018-02-22 18:06:54 +00:00
Mady Mellor
3267ed8f74 Move metadata key from Slice to SliceManager
Bug: 73741418 
Test: make -j20
Change-Id: Ia22b47d8b6d278944566641b07fcfb0fb7662d07
2018-02-22 18:06:13 +00:00
Wale Ogunwale
3d529f764e Merge "Fixed issue with relaunching activity in the stopped state" 2018-02-22 17:20:44 +00:00
TreeHugger Robot
cfa8785e1f Merge "Docs: small documentation fixes for formatting and typos." 2018-02-22 14:36:05 +00:00
Benjamin Franz
751cbc64b6 Merge "Update lock task features name and javadoc" 2018-02-22 14:08:33 +00:00
Wale Ogunwale
5527a50ad4 Fixed issue with relaunching activity in the stopped state
- Cycle activity back to the stopped state if relaunched while the
activity is in the stopped state.
- Also, process Activity.recreate() request locally. After the
activity life cycler changes/clean-up we no longer need to request
the relaunch from the server since it is much easier now to cycle
the activity back to its previous state without help from the server
side.

Change-Id: Ie63420361a50d3dee2cbbcc2bbd34f3099c93996
Fixes: 64610483
Test: atest CtsActivityManagerDeviceTestCases:ActivityLifecycleTests
2018-02-22 06:01:48 -08:00
Michal Karpinski
b5e0931dcd Extend XML parser to allow optional requiredFlags attribute
for <include /> rules in <full-backup-content> specification

Give an app developer the option to include files based on the
transport flags exposed by the transport. This allows conditionally
including files as long as the transport identifies itself as
for instance encrypted or device-to-device.

Extend the parsing mechanism to read optional requiredFlags
attributes, and extend existing structures to encompass
that data for BackupAgent to retrieve and act on it
based on FullBackupDataOutput#getTransportFlags().

-- Changes in robotests/

The old version of this CL (that already got reverted) broke our Robolectric
suite because it added an inner class to FullBackup and a dependency on it from
BackupAgent. FullBackup wasn't being built from Android tree (instead it was in
a prebuilt Robolectric snapshot jar of the framework) but BackupAgent was,
which resulted in not finding the inner class.

So, also in this CL. Changing our tests to include everything under
platform/base/core/java/android/app/backup from Android tree.
`m -j RunFrameworksServicesRoboTests` is green now

Bug: 72484288
Test: m -j RunFrameworksServicesRoboTests
Test: runtest frameworks-core -c android.app.backup.FullBackupTest
Test: make cts -j40 && cts-tradefed run cts -m CtsBackupHostTestCases -t android.cts.backup.FullbackupRulesHostSideTest
Change-Id: Ideaed59f8337257aa6a882ff0ce80c170b17d55e
2018-02-22 13:18:02 +00:00
Annie Meng
69ad4a1565 Merge "Add TestApis for updateTransportAttributes GTS tests" 2018-02-22 12:22:42 +00:00
Benjamin Miller
edbc4c4784 Docs: small documentation fixes for formatting and typos.
Test: make ds-docs
Bug: 73753042

Change-Id: Iaf8065de45b03a59e1327d3872bb790da276d230
2018-02-22 09:04:36 +00:00
Suprabh Shukla
868bde247c Using ParceledListSlice for {get|set}AppStandbyBuckets
UsageStats.getAppStandbyBuckets and setAppStandbyBuckets deal with large
maps of packages to buckets which may exceed the IPC transaction size
limit. Using ParceledListSlice to send and receive data across binder.

Test: atest android.app.usage.cts.UsageStatsTest#testGetAppStandbyBuckets
And manually:
adb shell am get-standby-bucket --user 0
adb shell am set-standby-bucket <package1> active <package2> rare ...
Locally, added protectionLevel development to permission
CHANGE_APP_IDLE_STATE and tested setAppStandbyBuckets with a test app.

Bug: 70890569
Change-Id: Ic1fb0465137d1b830d3ad1fbf3ac8698a409c623
2018-02-21 21:23:09 -08:00
Andrii Kulian
d25680cb3d Improve AM lifecycle event logs
Add missing lifecycle event logs and provide more detailed
reasons.

Test: Open and switch between apps, observe lifecycle event logs
Change-Id: I403c8d84afec9c950ea3a8fc88600cf554e015f4
2018-02-21 15:16:58 -08:00
Dake Gu
6a20a194dd autofill: pass keyevent from fillui to app
Since autofill window was made to have window focus, app lost the
ability to accept physical keyboard typing. User can no longer
type on physical keyboard to filter autofill result.

This CL dispatches unhandled keyevent(e.g. A/B/C) from autofill
window to app ViewRootImpl in a similar way InputMethodService
dispatches keyevent to app's ViewRoot.

The unhandled key is sent to app window's ViewRootImpl
PreImeStage so that the keystroke could be translated to CJK by IME.

This CL does not affect fullscreen autofill window for TV  where app
window is fully covered: user has to close fullscreen autofill window
first.

Bug: 72951156
Test: atest CtsAutoFillServiceTestCases:LoginActivityTest

Change-Id: I8e50cfdfe8d5691d2b248d85f924c38488ca30f4
2018-02-21 13:56:39 -08:00
Gus Prevas
b5f9cf540d Deprecates methods on WearableExtender.Builder which have not been honored since Wear 1.0.
Bug: 67605167
Change-Id: I3c9a0b607fd85e4784b29784035a9b0772c94228
2018-02-21 20:49:09 +00:00
TreeHugger Robot
72e94b6556 Merge changes I30c76f2a,I83d3f0d2
* changes:
  Fixed the launch animation for groups
  Removed the notification action background
2018-02-21 20:19:54 +00:00
TreeHugger Robot
6c9afb62e5 Merge "Add StringDef annotation for SYSTEM_SETTINGS_WHITELIST" 2018-02-21 19:23:49 +00:00
Selim Cinek
a5afd2a3cb Merge "Added a targetAPi check to the user name requirement" 2018-02-21 19:06:59 +00:00
yuemingw
93ffce616a Add StringDef annotation for SYSTEM_SETTINGS_WHITELIST
Bug: 70336454
Test: manual
Change-Id: Ifebce382ec9a4a08831e433a1c7974d3a43e306d
2018-02-21 17:33:05 +00:00
Makoto Onuki
2ebb021231 Merge "Shortcut permissions for default text classifier" 2018-02-21 17:22:28 +00:00
Jorim Jaggi
9b58f2ddf8 Fix app start logging
Our old trampoline logic doesn't work anymore, as some app starts
are distributed between multiple tasks, which now means multiple
stacks as well.

Instead, track app starts by windowing mode.

Test: Open/close apps, adb logcat -b events
Test: AppStartTests
Change-Id: If106f12ec98fd69ff7d0c4dabff28f88d2096a0b
Fixes: 72953633
2018-02-21 13:31:15 +01:00
Bernardo Rufino
756d00b9b8 Merge "Revert "Extend XML parser to allow optional requiredFlags attribute"" 2018-02-21 11:00:11 +00:00
Selim Cinek
9034386c24 Added a targetAPi check to the user name requirement
Change-Id: I5ba972eff6e45545f6100e30ce4290665fa1ca6c
Fixes: 72814121
Test: add messaging notification with targetAPI < P without a name, observe no crash
2018-02-20 19:41:01 -08:00
Maurice Lam
3b4dc851cd Revert "Extend XML parser to allow optional requiredFlags attribute"
This reverts commit 34b769d32b.

Reason for revert: b/73663127

Change-Id: I8595039777d69994f6fcc1f9a6911d202c8adbbf
2018-02-21 02:05:30 +00:00
Selim Cinek
ed64a14cf7 Removed the notification action background
Also added conditional paddings when inline
replying, such that the layout looks good.
This refactors the overall layout design and ensures
that smart replies and other content that is on
the bottom are always visible.

Bug: 69168591
Test: add notification, reply, no action background
Change-Id: I83d3f0d2512f0cf8c8b9db0edc7b27cbb109aeb9
2018-02-20 22:48:42 +00:00
Makoto Onuki
700feef8a6 Shortcut permissions for default text classifier
- Add two shortcut related permissions as SystemAPI for the default
text classifier.

- The default text classifier package name still comes from the
system resource.

Bug: 73083596
Bug: 71555985
Test: atest CtsPermission2TestCases
Test: Manual test with a test package, with the following in config.xml
<string name="config_defaultTextClassifierPackage" translatable="false">com.example.android.pm.shortcutlauncherdemo</string>

Change-Id: I19081d9d6ba0b33eb25d19aa55b4fe2f26a75897
2018-02-20 12:14:18 -08:00
TreeHugger Robot
df0d0f1a84 Merge "Extend XML parser to allow optional requiredFlags attribute for <include /> rules in <full-backup-content> specification" 2018-02-20 19:20:00 +00:00
TreeHugger Robot
414189fefe Merge "APIs to watch active op changes" 2018-02-20 18:46:57 +00:00
Kodlee Yin
3feba764d6 Merge "Add Notification.Action.SEMANTIC_ACTION_CALL" 2018-02-20 18:39:19 +00:00
Michal Karpinski
34b769d32b Extend XML parser to allow optional requiredFlags attribute
for <include /> rules in <full-backup-content> specification

Give an app developer the option to include files based on the
transport flags exposed by the transport. This allows conditionally
including files as long as the transport identifies itself as
for instance encrypted or device-to-device.

Extend the parsing mechanism to read optional requiredFlags
attributes, and extend existing structures to encompass
that data for BackupAgent to retrieve and act on it
based on FullBackupDataOutput#getTransportFlags().

Bug: 72484288
Test: runtest frameworks-core -c android.app.backup.FullBackupTest
Test: make cts -j40 && cts-tradefed run cts -m CtsBackupHostTestCases -t android.cts.backup.FullbackupRulesHostSideTest
Change-Id: Ibf12995796963f87ed19d9e357ae8546037e5f53
2018-02-20 13:46:16 +00:00
Benjamin Franz
caffa7789c Update lock task features name and javadoc
Remove reference to recent and replace by overview. Also throw an IAE
if recents is enabled without home.

Also address API council feedback for ActivityOption.setLockTaskMode

Bug: 72807036
Bug: 72799389
Bug: 71790952
Bug: 71866618
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Change-Id: I70bed3b46137870e6bf0af5bf7f0846dc51f91ab
2018-02-19 16:47:28 +00:00
Bernardo Rufino
b331d1f1ef Merge "Add local transport parameters for transport flags GTS test" 2018-02-18 18:00:22 +00:00
TreeHugger Robot
0c200baed4 Merge "Minor autofill changes to support compat mode CTS tests." 2018-02-17 11:17:05 +00:00
Svetoslav Ganov
2d20fb47f4 APIs to watch active op changes
System singed components can watch for starting/finishing of
long running app ops. Also protected the APIs to watch op mode
changes with a singature permission for the cross-uid use case.

Test: atest com.android.server.appops.AppOpsActiveWatcherTest

bug:64085448

Change-Id: Id7fe79ce1de4c5690b4f52786424ec5a5d9eb0fa
2018-02-16 18:29:04 -08:00