Commit Graph

12832 Commits

Author SHA1 Message Date
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
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
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
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
Svet Ganov
47b37aa034 Minor autofill changes to support compat mode CTS tests.
Bug: 72811561
Test: atest CtsAutoFillServiceTestCases:VirtualContainerActivityCompatModeTest

Change-Id: I6ec2563cea75afc77a1598805988d8e6c433c574
2018-02-16 18:01:17 -08:00
Jeff Sharkey
5e4bebb891 Merge "Better handling of NTP-based clocks." 2018-02-16 22:13:01 +00:00
Jeff Sharkey
9911a28adb Better handling of NTP-based clocks.
Now that we have a nice Clock abstraction, we can use it to represent
a clock backed by an NTP fix.  (This makes testing logic much easier
to write.)

We now rely completely on NetworkTimeUpdateService to keep our NTP
fix up to date, instead of trying to refresh in the middle of
critical paths which could trigger random ANRs.

Add internal FallbackClock to make it easier to handle missing NTP
fixes.  Add internal SimpleClock to let implementers focus on single
millis() method.

Test: bit FrameworksNetTests:com.android.server.net.NetworkStatsServiceTest
Test: bit FrameworksServicesTests:com.android.server.NetworkPolicyManagerServiceTest
Bug: 69714690, 72320957
Change-Id: Ic32cdcbe093d08b73b0e4b23d6910b23ea8e1968
Exempt-From-Owner-Approval: approved in previous PS
2018-02-16 22:11:35 +00:00
Rajeev Kumar
334899b0d8 Merge "Implement atom puller for ProcessMemoryState." 2018-02-16 21:52:22 +00:00
Jeff Sharkey
2ab510ee24 Merge "Add RequiresFeature annotation." 2018-02-16 20:45:41 +00:00
Jeff Sharkey
98af2e4fec Add RequiresFeature annotation.
Certain APIs require that a device have a specific feature to operate
correctly, so start annotating them.

Test: builds, boots
Bug: 72284763
Change-Id: Ie2f30284bdfdb6acc4067f434eba3b5433837606
Exempt-From-Owner-Approval: simple annotations
2018-02-16 20:45:22 +00:00
Kodlee Yin
cda5b09e32 Add Notification.Action.SEMANTIC_ACTION_CALL
Adds the Call semantic action which allows apps to declare an action as
one that will perform a call. No logical changes.

Test: none
Bug: 67717177
Change-Id: I2bc63122ca285ba504f004da05ea79db74c01e08
2018-02-16 11:02:18 -08:00
Bernardo Rufino
eaa78b92a5 Add local transport parameters for transport flags GTS test
Added parameters for local transport in secure setting for setting up
local transport to test transport flags GTS test.

Test: GTS test in topic CL.
Bug: 73100304
Change-Id: If654175d91fdf1ea68db0f3320d59b2b770a4db3
2018-02-16 16:25:47 +00:00
Annie Meng
9a2e77c3cc Add TestApis for updateTransportAttributes GTS tests
These TestApis are getters to access BackupManagerService transport
attributes. This is to validate that BackupManager.updateTransportAttributes
system api succeeds when testing in GTS (see ag/3615301).

Bug: 72485407
Test: gts-tradefed run gts -m GtsBackupHostTestCases -t com.google.android.gts.backup.BackupManagerTransportAttributesHostSideTest
Change-Id: I0edb1aa0fd776e062f800cf7a79de5cd2e2436df
2018-02-16 12:06:47 +00:00
Peter Visontay
1cfc06a1e5 Merge "Remove the OP_REQUEST_DELETE_PACKAGES op from the list of runtime permissions." 2018-02-16 09:54:09 +00:00
Felipe Leme
5b32ebe4df Improved Autofill logging.
Test: manual verification
Bug: 73172668

Change-Id: I8c77f2a792f3195efa44f44a4c9888c355eaee3c
2018-02-15 15:04:51 -08:00
Rajeev Kumar
22d92b76bc Implement atom puller for ProcessMemoryState.
We would like to gather memory metrics of the processes when LMKD kills
a process. By gathering this info we would be able to analyze and improve
system health by potentially reducing memory footprint of the processes
contributing to the memory pressure on the device.

This feature would be available on production builds.

Perf analysis:
On an average getMemoryStateForProcesses method call takes
0.59 milli seconds per process.

To know more about this see: http://go/android-p-memory-metrics

Bug: 72177881
Test: Tested manually
Change-Id: Ice94c2d937a5c84bc205981d99588a30f686ff9b
2018-02-15 13:43:55 -08:00
Peter Visontay
827f231aea Remove the OP_REQUEST_DELETE_PACKAGES op from the list of runtime permissions.
It was added to that list by mistake.

Bug: 63907873
Test: CtsPermissionTestCases:AppOpsTest
Test: built the platform
Change-Id: I30448bfe5a0816303c9900bd120b1db57f78bc54
2018-02-15 17:48:16 +00:00
TreeHugger Robot
4db3ca08dc Merge "Add Backup and Restore directory OWNERS" 2018-02-15 17:14:16 +00:00
Michal Karpinski
c31222f009 Add Backup and Restore directory OWNERS
Bug: 73454476
Change-Id: Id28cbf7d919e95720c51d6a14388e9fea9d84650
2018-02-15 14:50:44 +00:00
David Brazdil
66f75f9ce1 Merge "Update hidden API toast message" am: 10034d94cf am: 42ab3eeb4c
am: 0a6ca96902

Change-Id: I2cc692827716043e0f9065c9c1be932642ed5856
2018-02-15 14:40:43 +00:00
David Brazdil
0a6ca96902 Merge "Update hidden API toast message" am: 10034d94cf
am: 42ab3eeb4c

Change-Id: I6c82dc811f3118733d3afffa7ddb6d5016d4f075
2018-02-15 13:14:49 +00:00
David Brazdil
42ab3eeb4c Merge "Update hidden API toast message"
am: 10034d94cf

Change-Id: I7e5c4c5333be8d1bc5722b0924c31a8ad94be29e
2018-02-15 13:01:54 +00:00
David Brazdil
10034d94cf Merge "Update hidden API toast message" 2018-02-15 11:55:15 +00:00
David Brazdil
5234d559b4 Update hidden API toast message
Change the toast message shown by an Activity when VMRuntime reports
that the app has used a private API.
(a) fix a typo: compatiblity -> compatibility
(b) change guidance from "please consult log" to "go to <url> for
    more info" where devs can learn how to proceed if their app does
    have compatibility issues.

Bug: 64382372
Test: make, visual
Change-Id: Idbe32a724438bb7b0826d0b4e11ef505015cb321
2018-02-15 09:09:55 +00:00
TreeHugger Robot
ce3f5d00f9 Merge "Added new AM method: updatePersistableUriPermission()" 2018-02-15 06:59:31 +00:00
TreeHugger Robot
67d9a90b63 Merge "Fix javadoc to match event payload content." 2018-02-15 06:17:39 +00:00
TreeHugger Robot
f781a621cb Merge "Clear lifecycle description on recycle and improve logging." 2018-02-15 05:31:17 +00:00