Commit Graph

9722 Commits

Author SHA1 Message Date
Michal Karpinski
803abe7378 Merge "Unhiding network logging API" 2016-12-06 09:54:14 +00:00
Mahaver Chopra
abf86385f8 Merge "Return error code from isProvisioningAllowed" 2016-12-06 09:45:05 +00:00
Ned Burns
df1710dc6e Modify SwipeDismissLayout to perform its own exit animation am: 7d6cb913de am: f9566827f2
am: 768f62aac1

Change-Id: Ibe1a8b9a7cf71b715ae7d4e0157b5cdf1d52e81d
2016-12-06 02:48:01 +00:00
Ned Burns
768f62aac1 Modify SwipeDismissLayout to perform its own exit animation am: 7d6cb913de
am: f9566827f2

Change-Id: I157e10afa6b8c0414c2af25d98bf5913928925f2
2016-12-06 02:38:47 +00:00
Ned Burns
7d6cb913de Modify SwipeDismissLayout to perform its own exit animation
Instead of relying on the window animation system, in the special
case of a swipe-dismiss, disable any default window exit animation
and perform a custom animation. This bypasses some bugs in the
window animator codebase and allows us to have a nice "rebound"
animation if the user doesn't swipe far/fast enough to trigger a
dismiss.

Bug: 33041168
Change-Id: Ied45700d35a59950bacef1ba0650eaa5bc60fadb
2016-12-05 19:38:14 -05:00
TreeHugger Robot
9ce4714273 Merge "Fix monkey NPE" 2016-12-05 22:37:12 +00:00
Michael Kwan
319cfe16f1 Disable swipe-to-dismiss for not cancelable dialogs. am: f7964be938 am: 85ba660b16
am: 1805ba1d76

Change-Id: I23863328b64f95915a7ecb7ceb35448bc10bdfbe
2016-12-05 18:21:14 +00:00
Michael Kwan
85ba660b16 Disable swipe-to-dismiss for not cancelable dialogs.
am: f7964be938

Change-Id: I6d71bb4c6acdc9d994766eebd7a6320356aa3a23
2016-12-05 18:09:10 +00:00
TreeHugger Robot
014505babe Merge "Add EXTRA_PROVISIONING_KEEP_ACCOUNT_ON_MIGRATION" 2016-12-05 17:53:10 +00:00
Mahaver Chopra
849fd6f58e Return error code from isProvisioningAllowed
Added hidden pre condition codes for PO and DO provsioning.
Added hidden api checkProvisioningPreCondition, which returns codes
instead of boolean. Managed provisioning can use this to show
useful debug information and user facing error dialogs.

Test: All DevicePolicyManagerTest pass

Bug: 27467633
Change-Id: I7d2a79921bc3ac2e12d506629a35563fc7ff62bf
2016-12-05 17:48:42 +00:00
Michal Karpinski
ea98e43600 Merge "Fixes in comments for NetworkEvent, DnsEvent and ConnectEvent" 2016-12-05 16:56:12 +00:00
Michal Karpinski
d55b731452 Unhiding network logging API
Unhiding network logging feature API on master in order to add CTS
tests and the like. Feature will still be CPd to MR2 as hidden.

Bug: 29748723
Change-Id: Iae3957d8e678c82b67654cd9f442436ba44ae728
2016-12-05 13:56:38 +00:00
Michal Karpinski
da9d3ad3ac Fixes in comments for NetworkEvent, DnsEvent and ConnectEvent
Test: the APIs will be tested by CTS when unhidden
Bug: 29748723
Change-Id: I3a029afee57b79e3ffd9ef574969ec31156b1293
2016-12-05 13:32:01 +00:00
Michael Kwan
f7964be938 Disable swipe-to-dismiss for not cancelable dialogs.
Bug: 33249829
Change-Id: Ib3d2c9982ece22d1b080b821eaf306f6b686d099
2016-12-02 17:33:56 -08:00
George Mount
3005e17b03 Fix monkey NPE
Bug 33177567

Monkey was causing a commit() while the activity was shutting down.
This protects from an NPE in this unlikely situation.

Test: cts-tradefed run singleCommand cts -d --skip-preconditions
      --skip-connectivity-check -m CtsFragmentTestCases

Change-Id: I832cfa8fb187c61b4d2f5a8a4d0f508d7a435171
2016-12-02 12:45:39 -08:00
TreeHugger Robot
04a7a5370c Merge "Split home stack into home and recents stack" 2016-12-02 19:12:23 +00:00
Jeff Sharkey
37d3eecbac DO NOT MERGE: Check provider access for content changes. am: c813f5dae2
am: 2b7584f5b1

Change-Id: I1a74f306a4d9858a4e9726cd53ab544d28542522
2016-12-02 18:36:36 +00:00
Jeff Sharkey
2b7584f5b1 DO NOT MERGE: Check provider access for content changes.
am: c813f5dae2

Change-Id: I939bca8887198e2578916356d49b0f2f0a2bf3d2
2016-12-02 18:19:46 +00:00
Jean-Michel Trivi
d29d66c787 Merge "Stream types are for volume control" 2016-12-02 17:33:54 +00:00
Matthew Ng
ae1ff4f85f Split home stack into home and recents stack
Refactored functionality of home stack (HOME_STACK_ID) in the code
base to home stack and recents stack (RECENTS_STACK_ID). Also changed
function and variable names from homeStack to homeOrRecentsStack.

Differentiating home and recents stack will allow readablilty and
managing logic between home and recents stacks. For example, for
multi-window minimized dock state, the home and recents stacks can
be set to different rects where the home stack needs to be a fixed
large size while the recents stack is hidden and the dock stack is
animating to be minimized.

Fixes: 32839371
Test: ./run-test android.server.cts and manually tested split and
rotation
Change-Id: I7603359c2dc20e35924664178634eb761e0367a6
2016-12-01 14:20:56 -08:00
Geoffrey Pitsch
aac3cba531 Merge "Listener in createNotificationChannel" 2016-12-01 19:46:09 +00:00
TreeHugger Robot
7075269195 Merge "Add READ_PHONE_NUMBER permission" 2016-12-01 18:27:07 +00:00
Geoffrey Pitsch
e75a66e87a Listener in createNotificationChannel
Necessary for when this will eventually trigger an Activity.
New unit test file for NotificationServiceManager.

Test: runtest systemui-notification (cts tests in separate CL)
Change-Id: I8f3e8e34ddcebb1acb9ddd84bffc68affb4b6e89
2016-12-01 10:59:47 -05:00
Victor Chang
89ee279d05 Add EXTRA_PROVISIONING_KEEP_ACCOUNT_ON_MIGRATION
Test: built successfully
Bug: 32299699
Change-Id: I22a470786c31e4acc010ac2efbc32eb5e47b8b1d
2016-12-01 15:47:30 +00:00
Jeff Sharkey
42bb160818 Merge "Grant MMS Uri permissions as the calling UID." 2016-11-30 23:04:17 +00:00
Jeff Sharkey
7ff418d9a9 Grant MMS Uri permissions as the calling UID.
A recent security fix prevents the system UID from handing out Uri
permission grants directly from itself.  Instead, services need to
issue grants as the original calling UID to ensure that the caller
actually has access to the Uris.

Test: builds, boots, send/recv MMS works in primary/secondary users
Bug: 33231106
Change-Id: Ia9fe19843b52977c8a94ee5349b907beda1882fc
2016-11-30 14:30:02 -07:00
Chad Brubaker
73ec8f963d Add READ_PHONE_NUMBER permission
READ_PHONE_NUMBER allows only access to the phone number and not all the
other things that READ_PHONE_STATE allows access to. READ_PHONE_NUMBER
will be accessible to ephemeral apps while READ_PHONE_STATE will no
longer be.

Test: Verified that getLine1Number works with READ_PHONE_NUMBER from an
epemheral app
Test: cts-tradefed run cts -m CtsPermission2TestCases
Change-Id: I599c19227f886adbe8efe346a78d51e88ab46379
2016-11-30 10:34:15 -08:00
Jean-Michel Trivi
2f7511fd06 Stream types are for volume control
Deprecate methods where stream types are not used for
  volume control operations.
Add a warning in the logs about the use of stream
  types to encourage migration to audio attributes.
Since STREAM_ACCESSIBILITY is added in O for the
  volume of a11y audio, throw an exception when
  trying to use it for playback.

Test: make offline-sdk-docs
Bug: 30955183

Change-Id: I7fcf79f1de68f217a9b19561aa1325ade169dfcf
2016-11-30 09:54:23 -08:00
Bartosz Fabianowski
365a3db470 Allow setting managing organization for the device
The Profile Owner of a managed profile can set a string that will be
shown in the UI to identify the organization managing the profile.
This CL extends the functionality to the Device Owner of a managed
device.

Bug: 32692748
Test: DevicePolicyManagerTest unit test + CTS test in separate CL

Change-Id: I47295da2fd6485ebf0e890da13990a044accaf17
2016-11-30 18:28:10 +01:00
Mahaver Chopra
ffbaf9a06e Merge "Update java doc to reflect EXTRA_USER" 2016-11-30 16:27:47 +00:00
Julia Reynolds
a275351745 Merge "Allow apps to set vibrations pattern for channels" 2016-11-30 15:08:13 +00:00
TreeHugger Robot
003a827b84 Merge "Stop a blink of the final position of shared element." 2016-11-30 14:15:32 +00:00
Mahaver
7074cafc1b Update java doc to reflect EXTRA_USER
Update java doc for ACTION_MANAGED_PROFILE_PROVISIONED to reflect the
fact that the extra EXTRA_USER will contain the managed profile's
user handle.

Test: NA, Just a java doc update.
Bug: 32301911
Change-Id: Icfda56dea69353ede02ddeee88a7adb489e72d36
2016-11-30 13:59:54 +00:00
George Mount
239ba2a3c8 Stop a blink of the final position of shared element.
Sometimes a frame from the final layout position of the shared
element was showing on the first frame of the activity showing.
This pushes the first frame to force it until after the transition
has started.

Test: manual testing

Change-Id: I831ed4b419eaadf1aad9d5efbeb99f04eebd0640
2016-11-30 05:13:24 -08:00
Bartosz Fabianowski
dd7f8dafd8 Allow DO to access DevicePolicyManager.isDeviceManaged()
This CL makes DPM.isDeviceManaged() accessible to the DO so that it
can be CTS-tested.

Bug: 32692748
Test: Device policy manager unit test + CTS & GTS in separate CLs

Change-Id: I5326e86b0ffee81d04bd48f0267044463a899b78
2016-11-30 11:09:22 +01:00
TreeHugger Robot
5ab97721bc Merge "Don't change visibility of fragment Views that aren't visible" 2016-11-30 00:36:05 +00:00
Jeff Sharkey
2683dd13aa Merge "Relax missing service check for normal apps." 2016-11-29 22:16:40 +00:00
George Mount
0c3ab75c6a Don't change visibility of fragment Views that aren't visible
Bug 32864127

When a fragment creates a view that is either invisible or gone,
it should remain that way. This means that the fragment won't have
any animations. When transactions are optimized, transitions
will avoid invisible and gone fragment views, but unoptimized
transactions will lead to failed transitions because none of the
views will be visible.

Test: Ie71902d1b5f5f647c758a1bd60cdfd6814cda29d
Change-Id: If952f81859227a28569d234d8232ff6bb100e74c
2016-11-29 12:43:05 -08:00
Kenny Guy
58feeac96b Merge "Allow overriding max profile in debugable builds." 2016-11-29 20:12:17 +00:00
Adam Lesinski
8fc495ed94 Merge "Fix CTS breakage in Context and Override configurations" 2016-11-29 20:07:38 +00:00
Adam Lesinski
c97019422e Fix CTS breakage in Context and Override configurations
The base Activity resources need to be created differently so that
other configuration contexts can be rebased properly.
Bug:33166230
Test: cts-tradefed run cts --module CtsAndroidAppTestCases --test android.app.cts.ApplyOverrideConfigurationTests

Change-Id: I86def4e2414dc366dd1d5cbc9104c5d0c06a4d61
2016-11-29 20:06:59 +00:00
Jeff Sharkey
589f309909 Relax missing service check for normal apps.
The new missing-service behavior was mostly added for core system
components, so don't wtf() when normal apps ask for missing services.

Continue to emit one-line log for third-party apps so they know why
getSystemService() might be returning null.

Test: builds, boots
Bug: 33109365
Change-Id: I3a6118a3db570d796a26da5b8d63015b13e53a87
2016-11-29 12:56:59 -07:00
George Mount
1dddc057ec Merge "Use transparent instead of null background during Activity Transitions" 2016-11-29 18:26:51 +00:00
TreeHugger Robot
0884abb8ff Merge "Revert "Yet another interface that should be oneway."" 2016-11-29 17:38:37 +00:00
Victor Chang
e061a79041 Merge "Add EXTRA_PROVISIONING_SKIP_USER_CONSENT" 2016-11-29 17:15:55 +00:00
Michal Karpinski
69beada2b5 Merge "Fix Lint errors for network logging API" 2016-11-29 16:42:42 +00:00
TreeHugger Robot
b57bd791bf Merge "Add user affiliation APIs" 2016-11-29 16:09:10 +00:00
Jeff Sharkey
0cfd60888d Revert "Yet another interface that should be oneway."
This reverts commit 55079a9ec2.

Change-Id: Id6d46d2ac2698068b8c78e03c15a4f2047f97e20
2016-11-29 15:41:39 +00:00
George Mount
96eb6ca719 Use transparent instead of null background during Activity Transitions
Bug 32952142

When doing activity transitions, a window is temporarily translucent
during the transition. When a view hierarchy completely covers the
window, the background is never seen and applications can use a
null background to avoid overdraw. However, during the activity
transition, the underlying activity is seen during the transition.
With a null background, the buffer isn't properly cleared and
the uncleared buffer will show strange effects.

This CL forces a transparent background temporarily during the
activity transition to avoid this problem.

Test: manual testing using test application

Change-Id: I63f24dba3c2f810944bcbf07faf309f9f1c5889a
2016-11-29 07:33:14 -08:00
TreeHugger Robot
d25cf04e98 Merge "Add explicit method to dismiss Keyguard" 2016-11-29 14:30:46 +00:00