Commit Graph

65104 Commits

Author SHA1 Message Date
Wale Ogunwale
64145dcbeb Revert "Correct error in Configuration.updateFrom"
Change is preventing the device from showing the lock screen
after the boot animation.

This reverts commit 4647acb60e.

Bug: 33098677
Change-Id: If7ecb04b74d5b626c7c3517e7e8d1dc1566ccb17
2016-12-07 16:00:53 +00:00
Robert Carr
4647acb60e Correct error in Configuration.updateFrom
When updating the non direction members of screenLayout
we check that they are not in total undefined, before
accepting the new value in full. This was enough for LONG/SIZE
which are always undefined or set together. It seems we have paths
now where SCREENLAYOUT_ROUND however can be undefined and the others
will be set. In this case if we pass a configuration with SCREENLAYOUT_ROUND_UNDEFINED
but LONG/SIZE set to updateFrom then we will overwrite our previous SCREENLAYOUT_ROUND value.
This triggers extra configuration changes.

Bug: 33098677
Test: bit FrameworksCoreTests:android.content.res.ConfigurationTest
Change-Id: I6eb321d27011a2af2134d0ed5b6864d4cd902dc3
2016-12-06 12:34:35 -08:00
Sergei Vasilinetc
c1e6a12ab5 Merge "Add createHardwareBitmap on GraphicBuffer for SysUI" 2016-11-30 20:53:43 +00:00
TreeHugger Robot
325fa50d8d Merge "Allow setting managing organization for the device" 2016-11-30 19:25:33 +00:00
sergeyv
9a02987642 Add createHardwareBitmap on GraphicBuffer for SysUI
Test: none
bug:30999911
Change-Id: Ic396e25d9e587665e634c3192e14ef4bc3dc78f7
2016-11-30 10:47:12 -08:00
Phil Weaver
7584b074ae Don't invalidate list data during layout. am: a9d976f39a
am: 84a0d97b85

Change-Id: I0dc549674ed7e026cbe15ac6d06626305729e7b8
2016-11-30 18:05:26 +00:00
Phil Weaver
84a0d97b85 Don't invalidate list data during layout.
am: a9d976f39a

Change-Id: I865fda193961bb0e5229cba1034b818572662001
2016-11-30 18:00:54 +00: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
Filip Pavlis
d6d67603cf Merge "Adds data store to provide data abstracion layer for Preferences." 2016-11-30 16:23:02 +00:00
Julia Reynolds
a275351745 Merge "Allow apps to set vibrations pattern for channels" 2016-11-30 15:08:13 +00:00
Julia Reynolds
d8d70fafb1 Merge "Shorten log tag." 2016-11-30 15:00:53 +00:00
TreeHugger Robot
003a827b84 Merge "Stop a blink of the final position of shared element." 2016-11-30 14:15:32 +00:00
Julia Reynolds
7e1ffd737e Shorten log tag.
Bug: 32437842
Test: manual
Change-Id: Id6f77a2dec30a4da695232d70e441398285f14d0
2016-11-30 14:00:52 +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
Filip Pavlis
0b0c6cbdaf Adds data store to provide data abstracion layer for Preferences.
Developers will be able to use PreferenceDataStore to replace default
SharedPreferences to store / retrieve the data.

Test: Separate CTS CL being submitted along this one, see the topic.

Change-Id: Ie46a876dcb14b46b8b2584735c106c25655ec6cf
2016-11-29 16:15:07 +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
Kenny Guy
02c8990bd6 Allow overriding max profile in debugable builds.
Support a system property on debugable builds to
override the max number of managed profiles to
allow easier dogfooding of multiple profiles.
Support 3 different badge colours for managed profiles.

Bug: 30473760
Test: runtest -c com.android.server.pm.UserManagerServiceCreateProfileTest frameworks-services
Test: runtest -c com.android.server.pm.UserManagerServiceUserInfoTest frameworks-services
Test: manual - attempting to create 2 profiles with adb fails, passes once I set the property.
Change-Id: Ie7fb19048a04a01572666f229283152254d0ffc3
2016-11-29 14:09:37 +00:00
Jorim Jaggi
6afa1c78ce Merge "Make LockoutResetCallback oneway" 2016-11-29 12:22:09 +00:00
Esteban Talavera
c9bb378a8b Add user affiliation APIs
Make setAffiliationIds public so that it can be used for COMP.
That way we can allow network logging and other features to
work on devices that have a DO and a managed profile.
Those features are currently restricted to single user devices but we'll
open them up to devices where all users are affiliated.

Also create a getter for that API.

Bug: 32326223
Test: m FrameworksServicesTests &&
 adb install \
   -r ${ANDROID_PRODUCT_OUT}/data/app/FrameworksServicesTests/FrameworksServicesTests.apk &&
 adb shell am instrument -e class com.android.server.devicepolicy.DevicePolicyManagerTest \
   -w com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

Change-Id: Ie443be887a6ca61a7f7a07e137757dceab7eb3d3
2016-11-29 12:15:09 +00:00
Michal Karpinski
0879eb41ca Fix Lint errors for network logging API
Bug: 29748723
Change-Id: I6996162f0f20f6f1881cf5508d140b6f65bf11dc
2016-11-29 10:26:51 +00:00
Selim Cinek
0ec10ac7cf Merge changes from topic 'dyson'
* changes:
  Improved the transformation to an icon further
  Fixed a bug where the last notification could be invisible / faded
  Adapted the shelf color when transitioning
  Fully removed the bottom stack
  Fixed a bug where the first notification was cut off
  Fixed a a bug where clear all was invisible
  Fixed a flicker when expanding quicksettings on the lockscreen
  Added appear and disappear animations for the shelf icons
  Implemented a nicer transition when the icons overflow
  Added the possibility to animate X and refactoring
  Modified heads up experience
  Fixed a bug with not-gone notifications
  Adapted the animation to the full shade
  Fixed the lockscreen positon with a single notificaton
  Made heads up work again
  Fixed the transformation into the shelf
  Used different curve for the icons when expanding
  Refactored the stack animation logic
  Refactored shelf transformation code to support animations
  Improved the transition into the statusbar
  Adapted the icon transformation into the shelf
  Fixed the appearance of the shelf on the lockscreen
  Introduced the Notification shelf
  Refactored the viewstates for more modularity
2016-11-29 00:29:01 +00:00
TreeHugger Robot
82b13b79c6 Merge "Fix NPE when a shared element doesn't have a matching transitionName." 2016-11-28 19:39:47 +00:00
Julia Reynolds
f57de46d0b Allow apps to set vibrations pattern for channels
Test: runtest systemui-notification, cts
Change-Id: I9125e9c437e3888ba7e7582bb3557635a2aea893
2016-11-28 14:34:29 -05:00
TreeHugger Robot
776a2402fa Merge "Revert "Introduce RoughtimeClient"" 2016-11-28 17:54:37 +00:00
Nicolas Prévot
22b2a81f75 Merge "Send callbacks to DO when a user is added or removed." 2016-11-28 16:50:08 +00:00
Darren Krahn
10a092d9a3 Revert "Introduce RoughtimeClient"
This reverts commit 89ef028898.

Change-Id: I74826aa6990891df3be4f931b242398824c370d1
2016-11-28 16:19:40 +00:00
Julia Reynolds
b6c1f99bd9 Allow listeners more snoozing options.
(snooze indeterminately and unsnooze)

Test: runtest systemui-notification and cts tests in same topic.
Change-Id: I5ce74638f55ed796bc6b26af167b32b0040f4222
2016-11-28 08:53:14 -05:00
Victor Chang
51d84f92f1 Add EXTRA_PROVISIONING_SKIP_USER_CONSENT
Bug: 32299699
Test: built successfully

Change-Id: I9516831a75973c2e940da8283b2c42ac6f050c6f
2016-11-28 12:10:37 +00:00
Mahaver Chopra
d0835e45f7 Merge "Add provisioning successful intent" 2016-11-25 19:15:35 +00:00
Mahaver Chopra
3c58cfe2d9 Add provisioning successful intent
Add a new activity intent action which will be launched after
provisioning has successfully completed.

Currently when provisioning is done we junt send an ordered broadcast
for PO and a normal brodcast for DO case. This results in HOME screen
being launched for 2 sec. To remove this jank we have introduced a
new intent action which can be directly received by the DPC in their
post provisioning activity.

Test: b/33138551, this bug tracks the cts coverage for the new action.

Bug: 30956199
Change-Id: I889b0cec74799bb7be93de48d46d5da68f17be92
2016-11-25 16:29:44 +00:00
Bartosz Fabianowski
8d76e72251 Allow DO to access bookkeeping information about its own actions
The getLastSecurityLogRetrievalTime(), getLastBugReportRequestTime()
and getLastNetworkLogRetrievalTime() methods are meant to be used by
system code. However, there is no harm in allowing the DO to access the
information they return - because it is information about actions that
the DO itself took.

The advantage of opening up these methods to the DO is that we can
CTS-test them.

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

Change-Id: I1470fca2a82b9955f7aed5e8b50220bea8b56fc9
2016-11-25 12:36:20 +01:00
TreeHugger Robot
8d4527db19 Merge "Add getBindDeviceAdminTargetUsers API" 2016-11-24 18:02:23 +00:00
Nicolas Prevot
e95c2817f7 Send callbacks to DO when a user is added or removed.
BUG:32764090
Test: manual
Change-Id: Icfac801fd2c9670f3d68cf6971f7aba2332dbb6b
2016-11-24 17:18:25 +00:00