Commit Graph

11862 Commits

Author SHA1 Message Date
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
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
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
TreeHugger Robot
4456a99918 Merge "Update DPM.setKeyguardDisabled to also dismiss the keyguard" 2017-09-01 10:59:45 +00:00
TreeHugger Robot
6307647e24 Merge "Create a flag to allow starting managed user in background" 2017-09-01 09:59:49 +00:00
Benjamin Franz
32a3bf3521 Update DPM.setKeyguardDisabled to also dismiss the keyguard
Currently if the keyguard is shown, setKeyguardDisabled does not
dismiss it but disables it for the future. This change also dismisses
the keyguard in this situation.

Test: manual
Bug: 64383815
Change-Id: Idb89f363510a18c741d335d96d11c5492c0eaee3
2017-09-01 09:19:39 +01:00
TreeHugger Robot
bc0134c1f5 Merge "Introducing activityType window configuration." 2017-09-01 02:16:21 +00:00
Mårten Kongstad
58396d4e49 Merge changes I7218f17a,I96b7340a am: 111c955d1d am: 96e763fe71 am: 38f0f5687f
am: 4f4a341402

Change-Id: Ibe4fdcdfaa1948001d884eaa099cc84258ad68bc
2017-08-31 23:18:09 +00:00
Mårten Kongstad
4f4a341402 Merge changes I7218f17a,I96b7340a am: 111c955d1d am: 96e763fe71
am: 38f0f5687f

Change-Id: I8d3c46d10463f4c64f7ef96006c31c1343710f53
2017-08-31 22:03:11 +00:00
Wale Ogunwale
6fbde9fccb Introducing activityType window configuration.
Used to represent the current activity type of the window
configuration which can be undefined, standard, home, recents, or
assistant. This information if currently represented in a few ways in
the window heirarchy e.g. with stack id or with fields in tasks and
activities. This change allows us to represent the idea in a more
structure way without overloading concepts like stack ids.

Test: bit FrameworksServicesTests:com.android.server.wm.ConfigurationContainerTests
Test: bit FrameworksServicesTests:com.android.server.wm.WindowConfigurationTests
Test: go/wm-smoke
Change-Id: I7d7283c72e806972eeb3a8dab448f195dd6cd811
2017-08-31 15:02:04 -07:00
Mårten Kongstad
96e763fe71 Merge changes I7218f17a,I96b7340a
am: 111c955d1d

Change-Id: I64cb964b751561e87115976866646b1db3858e14
2017-08-31 21:44:25 +00:00
Benjamin Franz
77c94a9c03 Create a flag to allow starting managed user in background
Currently DPM.createAndManageUser does not start the user in the
background, leading to a potential race between user having access to
the secondary user and admin having time to push policies. To mitigate
this we're adding a flag that allows secondary users to be started in
background as part of the API. The admin can then apply policies before
switching to that user.

Bug: 64382185
Test: cts-tradefed run singleCommand cts -m DevicePolicyManager --test
com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_StartUserInBackground
--abi arm64-v8a
Change-Id: Id6f6ab7584a249680c8554c21977cbb69a220332
2017-08-31 16:11:47 +01:00
Mårten Kongstad
7a242216a9 ResourcesManager: correct @NonNull -> @Nullable
To clear all overlay packages, the caller of
ResourcesManager#applyNewResourceDirsLocked will pass in null as the
second argument. Fix typo where the argument's annotation misspelled
@Nullable as @NonNull.

Change-Id: I7218f17ac8f121924e722d3e00d3ebdc4d6f3382
2017-08-31 14:50:10 +02:00
Benjamin Franz
326be27572 Merge "Profile Owner API to clear application data" 2017-08-31 08:59:30 +00:00
Julia Reynolds
005c8b9098 Add more functionality to channel groups
Description, blocking, links to/from the app

Test: cts, runtest systemui-notification
Bug: 63927402
Change-Id: Icc8caf319651f9ac2d622fb54110270c89bdff61
2017-08-30 17:07:58 -04:00
Jeff Sharkey
595987e619 Merge "Augment network stats based on SubscriptionPlan." into oc-mr1-dev am: f31cf45e82
am: 8ab5f7f324

Change-Id: Ica24924ff8e5c95bd14114fb0a1d82c21a7d30d4
2017-08-30 19:27:49 +00:00
Jeff Sharkey
f31cf45e82 Merge "Augment network stats based on SubscriptionPlan." into oc-mr1-dev 2017-08-30 19:01:18 +00:00
Jeff Sharkey
f4de294297 Augment network stats based on SubscriptionPlan.
When a carrier provides an "anchor" of data usage at a specific
moment in time, augment the network statistics used by warning/limit
thresholds and Settings UI.  For example, if the OS measured 500MB
of usage, but the carrier says only 400MB has been used, we "squish"
down the OS measured usage to match that anchor.

Callers using the hidden API will have their data augmented by
default, and the public API offers a way to opt-into augmentation.

Thorough testing to verify behavior.

Test: bit FrameworksNetTests:android.net.,com.android.server.net.
Test: cts-tradefed run commandAndExit cts-dev -m CtsUsageStatsTestCases -t android.app.usage.cts.NetworkUsageStatsTest
Bug: 64534190
Change-Id: Id3d4d7625bbf04f57643e51dbf376e3fa0ea8eca
2017-08-30 10:01:10 -06:00
Jorim Jaggi
e7d2b85068 Nuke everything obsoleted by task snapshots
Test: go/wm-smoke
Change-Id: If9c9c2e66d97d6a5fa94d0d62ae7459fdde2a9a0
2017-08-30 14:59:36 +02:00
Christopher Tate
4531b36031 Merge "Note cross-user permission requirement for relevant wallpaper operations" into oc-mr1-dev am: a050d6302f
am: 5296d3cc22

Change-Id: Iab41d0294670605f1d7ba933d534ed872d1d9b64
2017-08-30 02:01:06 +00:00
TreeHugger Robot
a050d6302f Merge "Note cross-user permission requirement for relevant wallpaper operations" into oc-mr1-dev 2017-08-29 23:47:50 +00:00
Benjamin Franz
a77e35782c Profile Owner API to clear application data
This new API lets DOs clear application data on a per package basis. It
can be used to reset misbehaving packages as well as for a light-weight
session model where employees log in to a device and have their data
cleared when they log out.

Test: cts-tradefed run singleCommand cts -m DevicePolicyManager --test
com.android.cts.devicepolicy.DeviceOwnerTest#testClearApplicationData
--abi arm64-v8a
Bug: 63910199
Change-Id: I6a03ae90fffe6159172ea7e46f9b8b69efeabcfe
2017-08-29 12:18:02 +01:00
Felipe Leme
f3ee0b4c84 Merge "Hides the Save UI while handling a pending intent from CustomDescription." into oc-mr1-dev am: 55309e79cf
am: 1f9f8597e9

Change-Id: Ie57ae681b0068f4b060aa1a8c87c92cb511ca9ed
2017-08-29 03:38:45 +00:00