Commit Graph

12913 Commits

Author SHA1 Message Date
Leif Wilden
6d228a7515 Merge "Update javadoc for SearchManager api on TV." 2018-03-01 19:23:31 +00:00
TreeHugger Robot
d71809bb8b Merge "Sanity check to avoice NPE if an app-provided URI is invalid." 2018-03-01 17:31:40 +00:00
TreeHugger Robot
15c3e602e9 Merge "Removed AMS.updatePersistableUriPermission()" 2018-03-01 17:30:33 +00:00
Felipe Leme
98f4c694e0 Sanity check to avoice NPE if an app-provided URI is invalid.
Test: atest VirtualContainerActivityCompatModeTest#testAutofillSync

Fixes: 73790788

Change-Id: Ic73eb800f4532425effb03396f0ab455142ab6dc
2018-02-28 17:43:34 -08:00
TreeHugger Robot
30982facc5 Merge "Finish ops started on behalf of a removed package." 2018-03-01 01:11:35 +00:00
TreeHugger Robot
06b1df657a Merge "Use start/finish app ops in window manager" 2018-03-01 01:11:25 +00:00
TreeHugger Robot
ef71a4cc6e Merge "Rename dumpsys protos to make platform proto names consistent." 2018-03-01 00:54:51 +00:00
Leif Hendrik Wilden
6daeacd076 Update javadoc for SearchManager api on TV.
Bug: 35391427
Test: Looks good.
Change-Id: I19da978a60895aa2c3850d0ccf37c6e54414e7f3
2018-02-28 15:33:32 -08:00
TreeHugger Robot
19130fea91 Merge "More work on issue #73301635: Ability to extract device configuration" 2018-02-28 23:19:13 +00:00
Felipe Leme
988234a343 Removed AMS.updatePersistableUriPermission()
Bug: 72055774

Test: manual verification
Test: atest CtsAppSecurityHostTestCases:ScopedDirectoryAccessTest#testResetDoNotAskAgain,testResetGranted
Test: atest CtsAppSecurityHostTestCases:ScopedDirectoryAccessTest

Change-Id: I90cd9a79a1caa19989e00dbc1a656469bc3221f9
2018-02-28 15:15:37 -08:00
TreeHugger Robot
379374b1d3 Merge "Added an api to query ForcedAppStandby state" 2018-02-28 22:28:30 +00:00
TreeHugger Robot
d5a2e636c0 Merge "Tag foreground notis that use certain services" 2018-02-28 22:09:34 +00:00
Svet Ganov
a7a0db6c93 Finish ops started on behalf of a removed package.
Two issues here - ops stated for a package that went away
by another package were not marked as finished. And when
the process that started the ops died we did not finish
all nested ops.

Test: atest android.permission.cts.AppOpsTest

bug: 64085448

Change-Id: Id57b3043605a65f2dfc1eea50b81793dd86f58d1
2018-02-28 12:42:08 -08:00
Andrii Kulian
58b0948b1f Merge "Use post-execution state for lifecycle callback sequences" 2018-02-28 20:29:23 +00:00
Jeff Sharkey
e0d2c6e7ac Merge "More robust @RequiresPermission handling." 2018-02-28 20:29:01 +00:00
Dianne Hackborn
337e01ac10 More work on issue #73301635: Ability to extract device configuration
Now include Gl extensions (thanks to whoever wrote the code
I copied!).

Tweak the protos a bit to include missing info and correct
some things.

Add some new test APIs that are needed for CTS.

Bug: 73301635
Test: atest CtsActivityManagerDeviceTestCases:ActivityManagerGetConfigTests
Change-Id: Ie3f8173d217468246e8b6c7f45b7cbfcb352d60f
2018-02-28 11:29:20 -08:00
Julia Reynolds
fc64001126 Tag foreground notis that use certain services
- Draw over other apps
- Camera
- Microphone

The icons are not yet clickable, and the system 'drawing over
other apps' notification still appears even when the app's
notification is tagged.

Test: runtest systemui
Bug: 64085448
Change-Id: Ib3b0cdd9adced82f562f256cb81af80dc395440d
2018-02-28 18:48:58 +00:00
Yi Jin
2b30f32212 Rename dumpsys protos to make platform proto names consistent.
All the other dumpsys use XXXServiceDumpProto or XXXDumpProto other
than ones modified here.

The name convention is if the proto describes the top level output of dumpsys,
it should contain `Dump`. This makes the consumer easy to understand the proto
is from dumpsys of a certain service, not data structure of
the service, e.g. WindowManagerServiceProto ->
WindowManagerServiceDumpProto.

Another change here is ActivityManagerService has 4 sub dump protos, so
the top level for each one should be a DumpProto instead of its internal
data struture, e.g. ActivityStackSupervisorProto will just be a field of
AmServiceDumpActivitiesProto, which `dumpsys --proto activities` used to
output ActivityStackSupervisorProto directly.

Bug: 72474563
Test: manual and CTS tests
Change-Id: I1e1ac032d27591083bb5b1b19aac82804215472a
2018-02-28 10:31:54 -08:00
TreeHugger Robot
d2613de5c6 Merge "Update Slice.Builder#addInt javadoc." 2018-02-28 18:23:47 +00:00
yuemingw
edfd36aba0 Better Override APN javadoc.
Add explanation for the possible failure reasons of
addOverrideApn, updateOverrideApn and removeOverrideApn.

Bug: 73750993
Test: test not required

Change-Id: Ic3493043fe6e5fedea006118bfc8dab7219d03ab
2018-02-28 16:42:58 +00:00
TreeHugger Robot
2f3adb4d27 Merge "Revert "Elevate remote/recents animation priority"" 2018-02-28 16:25:31 +00:00
Jorim Jaggi
a8b48ab733 Revert "Elevate remote/recents animation priority"
This reverts commit 574aea0f1b.

Reason for revert: Crashes sometimes (chaselist issue)

Change-Id: I1440ef7a002e85c3e020d424f13073ca2516dd9c
Fixes: 73991490
2018-02-28 14:03:08 +00:00
Andrii Kulian
9956d89cef Use post-execution state for lifecycle callback sequences
onActivityResult callback should always be executed before onResume.
If an activity is in the process of starting or creation, it can be
executed after onStart. If an activity was already resumed, then we
should pause it first, execute onActivityResult, then resume again.
So there are two valid pre-execute states - onStart and onPause.

For cases like the one described above this CL uses post-execution
state to identify valid pre-execute states and will try to use the
one that is closer to the current activity state during execution.

It also moves activity result and new intent callbacks into the same
transaction as the resumed state request, so that all changes can be
handled appropriately on the client side.

Bug: 72547861
Bug: 73348613
Test: TransactionExecutorTests
Test: ActivityLifecycleTests
Change-Id: I0af457d305c73a640040b8b7aee46dbbdfa6038f
2018-02-28 07:36:47 +00:00
Maurice Lam
805ea225b9 Merge "Revert "Small fixes to StatsManager API."" 2018-02-28 07:20:36 +00:00
Maurice Lam
c0df1f2354 Revert "Small fixes to StatsManager API."
This reverts commit 16dcd33abd.

Reason for revert: b/73975175

Bug: 73975175
Change-Id: I5bcccde100900b1370c2e43b8bcfc7d1697e5c72
2018-02-28 04:17:25 +00:00
Winson Chung
a29de13cee Merge "1/ Fixing docked task animation when entering split screen from home" 2018-02-28 03:30:31 +00:00
Winson Chung
c1674270b5 1/ Fixing docked task animation when entering split screen from home
- Update the minimized state when docking an app from home to ensure that
  the animation of the docked task goes to the right bounds
- Temporarily block the invocation of the old recents activity when showing
  recents as a part of setting the windowing mode of another task (this is
  fine right now because quickstep only allows docking via the UI and not
  from the nav bar while another task is open).
- Add proto field so we can determine whether to check the recents activity
  from the split screen CTS tests
- Also fix issue with invisible docked task due to wrong bounds calculated
  due to launcher not notifying the divider of the first docked frame

Bug: 73118672
Test: go/wm-smoke
Test: atest CtsActivityManagerDeviceTestCases:ActivityManagerSplitScreenTests
Test: atest CtsActivityManagerDeviceTestCases:ActivityManagerTransitionSelectionTests

Change-Id: Ib1208501c311de009a9e706103134865c521cb63
2018-02-27 16:49:30 -08:00
Suprabh Shukla
4d64c093cd Added an api to query ForcedAppStandby state
Adding an api which apps can query to check if the user has put them
into forced app standby.
An app may want to do this to manage expectations for any jobs or alarms
it schedules. It can also be used as an indication that the user noticed
unreasonable battery consumption attributed to the app.

Test: atest android.app.cts.ActivityManagerTest#testIsBackgroundRestricted

Bug: 73664209
Change-Id: I870f6c852c500769d3bf99d5a9ba3bf4eb1b65f5
2018-02-27 16:48:25 -08:00
TreeHugger Robot
7e96e0a137 Merge "createAndManageUser should communicate reason of failure to caller" 2018-02-28 00:39:33 +00:00
Tony Mak
2016c0f4f6 Merge "Blue work profile badge - Blue is the new orange" 2018-02-28 00:31:44 +00:00
Andrii Kulian
7cd6e3a0e9 Merge "Fix extra pause report from client" 2018-02-28 00:06:17 +00:00
TreeHugger Robot
ecd5c4a8f7 Merge "Small fixes to StatsManager API." 2018-02-27 22:39:15 +00:00
Andrii Kulian
a6176e3c1f Fix extra pause report from client
Activity pause is now reported from PauseActivityItem.

Fixes: 73020245
Test: Pause activity, check logs.
Change-Id: Iabfb1b1b51dec259f1928607ef7c321b54a93286
2018-02-27 22:23:29 +00:00
Jeff Sharkey
bf6b213f37 More robust @RequiresPermission handling.
The "conditional" value doesn't have any permissions to examine.

Test: builds, boots, "conditional" annotations work
Bug: 73559440
Change-Id: I36177078c1a6aeb7392773548f9c5e4696064e57
2018-02-27 11:16:39 -07:00
Annie Meng
0b0ebb616d Merge "Move transport constant to BackupTransport API" 2018-02-27 17:39:58 +00:00
Christine Franks
fc7c749817 Merge "Add DevicePolicyManager#setDefaultSmsApplication" 2018-02-27 17:13:05 +00:00
Annie Meng
1b9877ab44 Move transport constant to BackupTransport API
Previously, the transport registration extra was a private
constant. Since GMSCore depends on this value being passed, moving
it to a public API prevents having to define it twice in
framework and GMSCore, and ensures compatibility between the two.

TODO: Update GMSCore with this constant once this drops
into GMSCore.

Bug: 72730566
Test: 1) m -j ROBOTEST_FILTER=TransportManagerTest RunFrameworksServicesRoboTests
2) m -j ROBOTEST_FILTER=TransportClientManagerTest RunFrameworksServicesRoboTests

Change-Id: I8f7a2ca0275047a5d3cc1a530cd86499d0170f2f
2018-02-27 15:17:56 +00:00
TreeHugger Robot
d3d139ab1e Merge "Elevate remote/recents animation priority" 2018-02-27 13:49:27 +00:00
Alex Chau
89386bacc6 createAndManageUser should communicate reason of failure to caller
Bug: 71844474
Test: cts-tradefed run singleCommand cts -m CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_LowStorage
Test: cts-tradefed run singleCommand cts -m CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_MaxUsers
Change-Id: I3c069ba86822178fa3f51f1d31cd4792883151cc
2018-02-27 09:12:45 +00:00
Christine Franks
26449eda7a Add DevicePolicyManager#setDefaultSmsApplication
Bug: 73788187
Test: make -j100
Change-Id: I4f379743b9d12109bb8ecae109591abb922463ec
2018-02-26 22:58:05 +00:00
Svet Ganov
f7b4725375 Use start/finish app ops in window manager
Add infrastructure to app ops to specify how to treat mode_default
(for now only for startOp) allowing the caller to decide of this
mode should be treated as success - this is useful if the caller
already performed the default permission checks which determined
that the caller would perform the operation if the mode is default.
This way there is a record in the app ops history that this op
was performed. This is now used by the window manager service
which starts/finishes ops when an alert window is shown/hidden.
The window manager allows adding the window if the mode is default
but the caller has the fallback permission. In this case the
alert window would be shown and we want that noted in the op
history.

Now the window manager properly starts/finishes alert window op
when an alert window is shown/hidden. This is required to allow
SystemUI to badge notifications from apps showing alert windows
or add a dedicated notification if the app has no notifications.

Test: cts-tradefed run cts-dev -m CtsWindowManagerDeviceTestCases

      Added android.server.wm.AppOpAlertWindowAppOpsTest

      cts-tradefed run cts-dev -m CtsPermissionTestCases
          -t android.permission.cts.AppOpsTest

bug:64085448

Change-Id: I9041b1ac287bc5f9ed11d39bb203beba80f3f0f6
2018-02-26 13:29:13 -08:00
tiansiming [田思明]
30bfbfa3e3 Merge "Let sendShowMessage called from hide to show" am: e7d04d728c am: f91fddddd1
am: ef2ac4066b

Change-Id: Ic2dc363d4a26b9c3a10e0b7d1072765501eec383
2018-02-24 03:04:26 +00:00
tiansiming [田思明]
ef2ac4066b Merge "Let sendShowMessage called from hide to show" am: e7d04d728c
am: f91fddddd1

Change-Id: I8aa277a5448b999496b79f6b5721738d3b5f9af7
2018-02-24 02:56:15 +00:00
tiansiming [田思明]
f91fddddd1 Merge "Let sendShowMessage called from hide to show"
am: e7d04d728c

Change-Id: If406d79d0489a9c61322c0937fce2c9a9a5c4dc1
2018-02-24 02:43:03 +00:00
TreeHugger Robot
4e056c8bfa Merge "Explicitly do not support SEARCH_SERVICE on UI_MODE_TYPE_WATCH" 2018-02-24 02:13:27 +00:00
Treehugger Robot
e7d04d728c Merge "Let sendShowMessage called from hide to show" 2018-02-24 01:27:13 +00:00
TreeHugger Robot
b9cacbea94 Merge "Improve reporting of bucketing reason" 2018-02-24 00:24:03 +00:00
Erik Wolsheimer
ac5cecd85d Explicitly do not support SEARCH_SERVICE on UI_MODE_TYPE_WATCH
Bug: 69950606
Change-Id: Ia195e88d8652cd7875d0ce03875034698367001c
(cherry picked from commit 980ba14b921932e85cdc0447af0398778a1c0d64)
2018-02-23 23:45:18 +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