Commit Graph

11885 Commits

Author SHA1 Message Date
TreeHugger Robot
b2a0009cce Merge "Added WindowConfigurationProto and friends" 2017-09-18 16:06:22 +00:00
Charles He
2fe81c0605 Merge "Status bar: correctly register disable flags" 2017-09-18 14:49:02 +00:00
Wale Ogunwale
0d5609ba8c Added WindowConfigurationProto and friends
Also added WindowContainerProto and ConfigurationContainerProto
Will be used by cts tests in upcoming CLs that replace StackId APIs.

Test: adb shell dumpsys window --proto
Bug: 64146578
Change-Id: Id6ca2a93e3d15ac696ab54cb241870e973985967
2017-09-18 07:23:23 -07:00
Charles He
ede390982c Status bar: correctly register disable flags
StatusBarManager has two sets of disable flags to control the visibility
of various UI components. These flags are registered in DisableRecord.
This CL fixes a bug where clearing one set of disable flags causes both
sets of flags to be cleared.

Bug: 65813446
Test: runtest systemui
Change-Id: I95948fd2464402b6f2fd123dba34b64aeeb80c90
2017-09-18 14:31:17 +01:00
Selim Cinek
56867b7072 Merge "Increased the text size for colorized notifications" into oc-mr1-dev am: dd3b6c83c6
am: f83e81117a

Change-Id: Ideb598d0c28ce8bb0b84913e4683dda453d522a6
2017-09-15 21:34:25 +00:00
Selim Cinek
f83e81117a Merge "Increased the text size for colorized notifications" into oc-mr1-dev
am: dd3b6c83c6

Change-Id: Ifd1e83f3400bd870d087c1a248bb74b305aa313f
2017-09-15 21:26:46 +00:00
Selim Cinek
dd3b6c83c6 Merge "Increased the text size for colorized notifications" into oc-mr1-dev 2017-09-15 21:20:44 +00:00
Selim Cinek
299b3302ef Increased the text size for colorized notifications
Increased the text sizes a bit to make them more prominent.

Test: add colorized notifications of all styles
Change-Id: Ie22053edcb0297e7c3ee0c43b29cdd0e7b6a4516
Fixes: 	35925915
2017-09-15 11:08:30 -07:00
Jiyong Park
215df9c284 Merge "Merge "Fix missing null checking" into oc-mr1-dev am: 93d436f4bc" into oc-mr1-dev-plus-aosp
am: 2089f92625

Change-Id: Id44a81a44df376ebcaa9efd229b78328d8eaa5ac
2017-09-15 13:56:46 +00:00
Kevin Hufnagle
8f601e7da0 Merge "docs: updated link on RemoteInput page" into oc-dev am: 6087b990df am: 91fb9b2a16 am: 677b6f5a7b
am: 86ca0d2ad4

Change-Id: I9d616a940eac9b25cb1b7b5d630dd6c4401594ae
2017-09-15 11:33:20 +00:00
Lucas Dupin
ea35a29229 Merge "Show big text on AoD" into oc-mr1-dev am: a4996f241f
am: c86252c1dc

Change-Id: I51d691cd2cec04cd9c0b979a87914e9b4cde49ce
2017-09-15 11:21:33 +00:00
Jiyong Park
8aefdab7c3 Merge "Fix missing null checking" into oc-mr1-dev
am: 93d436f4bc

Change-Id: Ib0a68cdf2d45141895191b7e2250ab0505c5a7ea
2017-09-15 02:47:46 +00:00
Kevin Hufnagle
86ca0d2ad4 Merge "docs: updated link on RemoteInput page" into oc-dev am: 6087b990df am: 91fb9b2a16
am: 677b6f5a7b

Change-Id: Ib225f08dd4d53479adab6df0f3559d09fe09ab21
2017-09-15 02:24:50 +00:00
Jiyong Park
93d436f4bc Merge "Fix missing null checking" into oc-mr1-dev 2017-09-15 02:19:19 +00:00
Kevin Hufnagle
677b6f5a7b Merge "docs: updated link on RemoteInput page" into oc-dev am: 6087b990df
am: 91fb9b2a16

Change-Id: Ib5ff83e4ce6c5a172db8f483387ebb6a8a97ae55
2017-09-15 01:01:15 +00:00
Kevin Hufnagle
91fb9b2a16 Merge "docs: updated link on RemoteInput page" into oc-dev
am: 6087b990df

Change-Id: Idc629243c3794565cdfebe7bd737a78d97010295
2017-09-15 00:42:20 +00:00
Jiyong Park
b16d32bc78 Merge "vendor apk is unbundled" into oc-mr1-dev am: a26750e757
am: 6cc659cd9e

Change-Id: If89b2e232e78b78e2b33dd2d529e2718903b8c22
2017-09-15 00:13:49 +00:00
Jiyong Park
63495c2796 Fix missing null checking
Bug: 65666724
Test: build

Change-Id: Ie3fa891da012cbb3f313a33e0e5759f743887480
2017-09-15 08:07:41 +09:00
Lucas Dupin
c86252c1dc Merge "Show big text on AoD" into oc-mr1-dev
am: a4996f241f

Change-Id: Iad619b9585fd3e0859e3588cc5d6dbb604f763e7
2017-09-14 22:32:57 +00:00
TreeHugger Robot
a4996f241f Merge "Show big text on AoD" into oc-mr1-dev 2017-09-14 22:19:41 +00:00
George Mount
c04ea52629 Merge "Fix problem with empty AnimatorSet during fragment removal." into oc-mr1-dev am: 465a956066
am: 42cb4b1d03

Change-Id: I8e6c92ff0c45e3a86efa9574bf14f85f7ec44134
2017-09-14 22:00:36 +00:00
Lucas Dupin
06c5e642aa Show big text on AoD
Test: Receive notification, look at AoD
Change-Id: I4ccb33895b5acf12a6341c22c853b0cf75036497
Fixes: 64128466
2017-09-14 10:10:08 -07:00
Jiyong Park
6cc659cd9e Merge "vendor apk is unbundled" into oc-mr1-dev
am: a26750e757

Change-Id: I218a52a0fff924ca139c96c35df5b3ad0c917216
2017-09-14 14:51:57 +00:00
George Mount
42cb4b1d03 Merge "Fix problem with empty AnimatorSet during fragment removal." into oc-mr1-dev
am: 465a956066

Change-Id: Ieb8f17d3b1c345f27298dd4e461eaa7b780543b7
2017-09-14 02:19:59 +00:00
TreeHugger Robot
a26750e757 Merge "vendor apk is unbundled" into oc-mr1-dev 2017-09-14 01:35:42 +00:00
George Mount
3ceb116d4c Fix problem with empty AnimatorSet during fragment removal.
Bug: 65354043

When an empty AnimatorSet is used in a fragment animation,
it can end immediately. This CL properly detects this
case and handles it properly.

Test: manual, ran fragment CTS
Change-Id: I63bee3818106f9c8e86cdc94af61d6bc8407c789
2017-09-13 13:17:18 -07:00
Amith Yamasani
7bd888bea6 Merge "Remove incorrect note about truncation in the javadoc" 2017-09-12 15:54:47 +00:00
Amith Yamasani
8a0a614f45 Remove incorrect note about truncation in the javadoc
UsageStats is not truncating the events returned by queryEvents.
So removed the javadoc note that is no longer true.

Bug: 65556357
Test: N/A
Change-Id: I8206176951c3a3079b8317043f4cb696ffca67c0
2017-09-11 16:01:04 -07:00
George Mount
e89a95b3e5 Merge "Fix showing views after failed transition to translucent window." into oc-mr1-dev am: 2f35f15ab0
am: 87f68c849f

Change-Id: I70b6b8ca3e61d53de0d03df914295ed655b12755
2017-09-11 18:42:06 +00:00
George Mount
87f68c849f Merge "Fix showing views after failed transition to translucent window." into oc-mr1-dev
am: 2f35f15ab0

Change-Id: Ie360f3af438f0c1b58620048258d7ba666363744
2017-09-11 17:40:46 +00:00
TreeHugger Robot
2f35f15ab0 Merge "Fix showing views after failed transition to translucent window." into oc-mr1-dev 2017-09-11 17:25:33 +00:00
Jorim Jaggi
a72e9bf527 Merge "Fix window movement animations" 2017-09-11 15:06:10 +00:00
George Mount
476aeeaba2 Fix showing views after failed transition to translucent window.
Bug: 65268614

When an activity transition was used with the top activity being
translucent, and the top activity calls finish() instead of
finishAfterTransition(), the transitioned views were not being
drawn properly. The source of the problem was that
setTransitionVisibility() was being used instead of setVisibility().
Transitions normally use setTransitionVisibility() to modify
the view's visibility without triggering an invalidation. But
when we want the view to be invalidated by the visibility change,
setTransitionVisibility() prevents the invalidate() from
actually invalidating the view.

Test: manual
Change-Id: I250ea232052d1a1309d3341504cba77543a94eec
2017-09-08 16:01:10 -07:00
Wale Ogunwale
926aade036 Introducing split-screen windowing modes.
WINDOWING_MODE_SPLIT_SCREEN_PRIMARY is what used to be the docked
windowing mode and is used to indicated the primary container
dirving the split-screen windowing mode.
WINDOWING_MODE_SPLIT_SCREEN_SECONDARY is the windowing mode of any
container to the side/adjacent to the primary split-screen container.
For example, any container that was in fullscreen mode and that should
now be adjacent to the primary split-screen container will.

Test: go/wm-smoke
Test: WM Unit tests via TreeHugger
Change-Id: Idc8560073c613c708cb40ba8449641a6be11d9f1
2017-09-08 05:13:18 -07:00
Jiyong Park
fcad69682a vendor apk is unbundled
Vendor apks has been regarded as bundled apps and thus provided with all
internal libraries under /system/lib and /vendor/lib. However, in new
devices where Treble is fully enabled, system and vendor partitions are
no longer bundled together; system partition can be updated
independently from the vendor partition.

In that case, the apks in vendor partition are considered as unbundled
so that access to /system/lib is limited.

In addition, when the linker namespace is created for apks, information
on whether the apk is in vendor partition or not is given to the
libnativeloader library. The information is used to conditionally
configure the linker namespace for vendors. For examle, vendor apks are
allowed to access /vendor/lib even though they are considered as
unbundled; because vendor apks and vendor libs are still bundled
together in the same vendor partition.

Bug: 63553457
Test: 1) set target as 2017 pixel
2) m -j CtsVendorJniTestCases
3) copy the built apk into /vendor/app/CtsVendorJniTestCases
4) reboot / factory reset
5) adb shell am instrument -w android.jni.vendor.cts

Change-Id: Iadd34af2878c507d4d6ec50153abef4e65604ac9
2017-09-08 08:32:41 +09:00
Wale Ogunwale
6cbbc9a0a1 Limit setActivityType safety check to system process.
WindowConfiguration.setActivityType() has a safety check to help
developers avoid logic errors that can cause an activity or its
parent container to change activity type which can be dangerous.
However, this protection is mainly there for code running in the
system server and shouldn't affect coding running in the client
process. For example, we don't want to crash code running in the
client process because of the way the app decides to combine
various configurations they get from the system. This change limit
the check to just code running in the system process.

Change-Id: Ie315d8d69b5ac03e4fd4ea1e3353a37d097af96d
Fixes: 65403289
Test: bit FrameworksServicesTests:com.android.server.wm.WindowConfigurationTests
2017-09-07 07:09:09 -07:00
TreeHugger Robot
91761cbb72 Merge "Add ACTIVITY_TYPE and STACK_ID constants to Test API" 2017-09-06 23:12:45 +00:00
Steven Timotius
e597ca1578 Add ACTIVITY_TYPE and STACK_ID constants to Test API
These constants will be used by ActivityManagerTestBase

Test: cts-tradefed run commandAndExit cts-dev --module CtsActivityManagerDeviceTestCases
Change-Id: I0f0265edfa6d6b31592fa96bec58f857849932e0
2017-09-06 16:09:53 -07:00
Jorim Jaggi
bb6ee9bb94 Fix window movement animations
Fixes a typo.

Test: Check whether window movement animations still work
Change-Id: I12fa40f15efc157a04683b5aa818dec9ce1f4092
2017-09-06 22:06:18 +00:00
Rubin Xu
d375476bda Merge "Fix resetPasswordWithToken before user unlock" into oc-mr1-dev am: 2e21fba2b5
am: c17f1d412b

Change-Id: If147939b9c74803ca2c6177e770736b0e82fdc96
2017-09-06 12:27:42 +00:00
Rubin Xu
c17f1d412b Merge "Fix resetPasswordWithToken before user unlock" into oc-mr1-dev
am: 2e21fba2b5

Change-Id: I83688cd83cf18f37b3507ebe69d29dbc2669178b
2017-09-06 12:19:51 +00:00
Rubin Xu
7cf4509c31 Fix resetPasswordWithToken before user unlock
1. Fix system server crash when resetPasswordWithToken is called before use
   unlock, due to DPMS enforces user is unlocked when calculating password
   sufficiency.
2. Propogate new password metric from LockSettingsService to DPMS after a
   password reset with token, and fix a bug where stale quality was used.

Bug: 64923343
Bug: 64928518
Bug: 65286643
Test: cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.ManagedProfileTest#testResetPasswordWithTokenBeforeUnlock
Test: cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testResetPasswordWithToken
Test: runtest frameworks-services -p com.android.server.locksettings
Test: cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceAdminHostSideTestApi24#testRunDeviceOwnerPasswordTest
Test: runtest frameworks-core -c android.app.admin.PasswordMetricsTest
Test: runtest frameworks-services -c com.android.server.devicepolicy.DevicePolicyManagerTest
Change-Id: Ibb3736547b3b36da4a8a67af711e08a38427aa56
2017-09-05 14:49:00 +01:00
TreeHugger Robot
e82e1fad14 Merge "Adding user forced app standby to alarms" 2017-09-02 01:15:15 +00:00
Andrii Kulian
555aad412b Merge "Fix NPE in ActivityView on surface destruction" into oc-mr1-dev am: 9352329ee1
am: e68942db8e

Change-Id: I1133759dace1e365516eed5675bea445bdb531e4
2017-09-02 00:48:04 +00:00
Andrii Kulian
e68942db8e Merge "Fix NPE in ActivityView on surface destruction" into oc-mr1-dev
am: 9352329ee1

Change-Id: I51c19df8f9ad2832102a126778fbc5927d61f094
2017-09-02 00:31:22 +00:00
TreeHugger Robot
9352329ee1 Merge "Fix NPE in ActivityView on surface destruction" into oc-mr1-dev 2017-09-02 00:16:48 +00:00
Suprabh Shukla
db6bf66ee3 Adding user forced app standby to alarms
The app op RUN_ANY_IN_BACKGROUND can be set to ignored to indicate that
any alarms for the receiving app will be delayed until the app op is set
to allowed or the app comes into the foreground. Power whitelisted apps
are exempted.

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

Fixes: 64446607
Change-Id: Ic48b52383ad5ccd726c62769cdca25202d1e3814
2017-09-01 15:45:43 -07:00
Andrii Kulian
d93da5c6e2 Fix NPE in ActivityView on surface destruction
Instance variable mSurface in ActivityView was not updated after surface
destroy/create cycle, which lead to NPE when we were trying to release
it again after second destroy callback.

Bug: 63338670
Test: Create app with activityView, cause activity restart.
Change-Id: I96447ebe77d175050565641ba94b748d2b633d99
2017-09-01 21:31:18 +00:00
Benjamin Franz
64affcbf48 Resolve stopship to add P API level
Bug: 64383815
Test: make docs
Change-Id: I317d976f4a360e9c52d4e5cc7dcc42b7c197b217
2017-09-01 13:53:05 +01:00
Julia Reynolds
8c6fe753dd Merge "Add more functionality to channel groups" 2017-09-01 12:49:49 +00:00