Commit Graph

75245 Commits

Author SHA1 Message Date
TreeHugger Robot
2117dfc13d Merge "Improve and simplify final polygon drawing" 2017-09-01 12:46:29 +00:00
TreeHugger Robot
4456a99918 Merge "Update DPM.setKeyguardDisabled to also dismiss the keyguard" 2017-09-01 10:59:45 +00:00
Petar Šegina
aee97ac902 Improve and simplify final polygon drawing
The final step of the smart select animation, drawing the outline of all
the rectangles, was not working properly in cases where the rectangles
would touch or intersect, which we cannot guarantee that they won't.

Instead of the previous implementation, we now rely on Path to create
the outline of the rectangles, making much of the code simpler.

Now the polygon generation should work in the general case, which is one
of the prerequisites in getting the smart select animation to work
properly in multiline scenarios.

Test: manual - test the smart select animation with various rectangle
sets
        (100, 100, 500, 500), (300, 300, 700, 700)
        (100, 100, 500, 500), (500, 100, 900, 500)
        (100, 100, 500, 500), (500, 300, 900, 700)
        (100, 100, 500, 500), (300, 300, 700, 500), (200, 500, 400, 700)

Change-Id: I51dd72e18c5efe36df734aa62ab47d57a5946399
2017-09-01 11:57:37 +01: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
TreeHugger Robot
b41b74bfa1 Merge "AOSP format StrictMode" 2017-09-01 01:58:38 +00:00
TreeHugger Robot
d74357d29c Merge "MagnificationGestureHandler refactoring and unit test" 2017-09-01 01:58:16 +00:00
Lei Yu
b868891671 Merge "Hook up AOD knobs to Settings.Global" into oc-mr1-dev am: 67594c6f54
am: 04e7d1fa20

Change-Id: I9b4a60017a5e2273e572d90929d269e31352b5a0
2017-09-01 01:24:17 +00:00
Kurt Nelson
46974a2a46 AOSP format StrictMode
This class predates having a format presubmit and is a mix of formats.

Test: formatting only
Change-Id: I0978ab51e9429131852b05f23c957bb0988bdbcd
2017-08-31 18:06:39 -07:00
Lei Yu
04e7d1fa20 Merge "Hook up AOD knobs to Settings.Global" into oc-mr1-dev
am: 67594c6f54

Change-Id: Ifbb83939c2c2c30048fe43b2092b2afe4c3b234c
2017-09-01 01:01:47 +00:00
Lei Yu
67594c6f54 Merge "Hook up AOD knobs to Settings.Global" into oc-mr1-dev 2017-09-01 00:54:01 +00:00
TreeHugger Robot
78b69408a2 Merge "Documented use of AutofillManager.notifyViewVisibilityChanged()" 2017-09-01 00:01:11 +00:00
Chenjie Yu
e0330bf721 Merge "add StatsLog and its jni" 2017-08-31 23:28:28 +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
Michael Wright
bf5daf4565 Merge "Don't always fallback to clockTick for EFFECT_TICK." into oc-mr1-dev am: b60141b23c
am: b32153e3d2

Change-Id: If9a5a28fc0ac20e63177945800518977b7aec872
2017-08-31 23:04:20 +00:00
TreeHugger Robot
47f4cbdf04 Merge "Added getClientState() to FillEvent; deprecated it on FillEventHistory." 2017-08-31 22:59:02 +00:00
TreeHugger Robot
b7e37475e8 Merge "Suppressing spammy logs when widget inflation fails" 2017-08-31 22:55:51 +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
38f0f5687f Merge changes I7218f17a,I96b7340a am: 111c955d1d
am: 96e763fe71

Change-Id: I21e3d230c91a76b77287d13c93a87db2f197e7d7
2017-08-31 21:53:08 +00:00
Michael Wright
b32153e3d2 Merge "Don't always fallback to clockTick for EFFECT_TICK." into oc-mr1-dev
am: b60141b23c

Change-Id: Ifc2015508739226259f16672f2176623397fe5ab
2017-08-31 21:51:54 +00:00
Mårten Kongstad
96e763fe71 Merge changes I7218f17a,I96b7340a
am: 111c955d1d

Change-Id: I64cb964b751561e87115976866646b1db3858e14
2017-08-31 21:44:25 +00:00
TreeHugger Robot
b60141b23c Merge "Don't always fallback to clockTick for EFFECT_TICK." into oc-mr1-dev 2017-08-31 21:44:01 +00:00
Treehugger Robot
111c955d1d Merge changes I7218f17a,I96b7340a
* changes:
  ResourcesManager: correct @NonNull -> @Nullable
  AAPT2: Allow <overlay> in AndroidManifest.xml
2017-08-31 21:27:42 +00:00
Chenjie Yu
671b1b5b83 add StatsLog and its jni
Test: ran existing tests. Also confirmed with logcat.
Change-Id: I038bbdbd787b1d20e008eda7edf7053875795de2
2017-08-31 14:21:28 -07:00
Felipe Leme
072d18b6f7 Documented use of AutofillManager.notifyViewVisibilityChanged()
Test: mmm -j108 frameworks/base/:doc-comment-check-docs
Bug: 38509603

Change-Id: I83c7089b071a82b7d887cb48c18683b671b0c4d6
2017-08-31 14:05:22 -07:00
jackqdyulei
8443dd0e76 Hook up AOD knobs to Settings.Global
This cl creates AlwaysOnDisplayPolicy, which get values for the
following knobs(go/aod-experiments) from Settings.Global:
1. screen_brightness_array
2. dimming_scrim_array
3. prox_screen_off_delay
4. prox_cooldown_trigger
5. prox_cooldown_period

Also update code to make sure AlwaysOnDisplayPolicy is used
everywhere.

Bug: 64899561
Test: runtest -x AlwaysOnDisplayPolicyTest

Change-Id: I2e83ff980771e67177e4964bd83aa68b2bdca65f
2017-08-31 13:20:04 -07:00
TreeHugger Robot
98eaf2ebd6 Merge "Add VERSION_CODES.P" 2017-08-31 20:16:36 +00:00
Android Build Merger (Role)
7a35f63f66 Merge "Merge "Fixed FillResponse.toString() to display list of datasets." into oc-mr1-dev am: ac2a765a18 am: aad0ef1f40" 2017-08-31 20:12:43 +00:00
Sunny Goyal
0ec83525cf Suppressing spammy logs when widget inflation fails
Test: N/A
Bug: 63061304
Change-Id: I6696856efb3999e2ad2a947604411c163f9d11c1
2017-08-31 20:12:36 +00:00
TreeHugger Robot
95fc70bcec Merge "Changing RemoteViews to using MethodHandles instead of relection" 2017-08-31 20:11:00 +00:00
Felipe Leme
d188da9e17 Merge "Fixed FillResponse.toString() to display list of datasets." into oc-mr1-dev am: ac2a765a18
am: aad0ef1f40

Change-Id: I2b1869ec2eb3f25e9af9b89bd1a4d475b474580f
2017-08-31 20:08:12 +00:00
Eugene Susla
4f8680bb77 MagnificationGestureHandler refactoring and unit test
This is aimed at making MagnificationGestureHandler easier to understand
and reason about

Test: provided unit test + manual magnification test
Change-Id: I958ef0bdd2e6f857a2fab24962b1a06480685732
2017-08-31 13:03:23 -07:00
Felipe Leme
aad0ef1f40 Merge "Fixed FillResponse.toString() to display list of datasets." into oc-mr1-dev
am: ac2a765a18

Change-Id: Ic84ca582b444c145609d79a04232926da6deb118
2017-08-31 19:54:07 +00:00
TreeHugger Robot
ac2a765a18 Merge "Fixed FillResponse.toString() to display list of datasets." into oc-mr1-dev 2017-08-31 19:43:01 +00:00
Makoto Onuki
7bd7a62336 Add VERSION_CODES.P
Bug: 64982450
Test: Build and boot
Change-Id: I0a90033239081c583b10021cbc06d032e206beb4
2017-08-31 18:06:26 +00:00
TreeHugger Robot
25706748aa Merge "Improve rectangle direction generation" 2017-08-31 18:05:23 +00:00
Sunny Goyal
271e32270b Changing RemoteViews to using MethodHandles instead of relection
Test: am instrument -w -e class android.widget.RemoteViewsTest com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Change-Id: I1c1eb58d863e1196a38fadb15e08ad2fdcff1d4d
2017-08-31 17:35:13 +00:00
TreeHugger Robot
f8900f1a48 Merge "Rename roundPercentage to roundRatio" 2017-08-31 17:29:50 +00:00
Petar Šegina
7272925026 Improve rectangle direction generation
The previous solution didn't take into account that the source rectangle
might be at either end of the selection, thus giving it the wrong
direction of CENTER, while it should have been RIGHT or LEFT.

Test: manual - verify that the rectangles expand properly in a smart
select animation when there are multiple rectangles and the source is
not in the center - e.g. a multiline case with the selection starting on
the first line

Change-Id: Id18ab8f9918e74a576503620dae2f7cdd593fb0e
2017-08-31 17:17:00 +01:00
Yohei Yukawa
9402bb4994 Merge "Fix wrong dump output of *Info#flags" into oc-mr1-dev am: c4a8b3625b
am: edaa2ea5b7

Change-Id: I491132d3841b55d258fa9221467815fe7ef6f006
2017-08-31 15:45:40 +00:00
Android Build Merger (Role)
70ee016e21 Merge "Merge changes I49057737,I68e3096d am: 50cf621704 am: f5dcc28b0c am: 30348a8abb" into oc-mr1-dev-plus-aosp 2017-08-31 15:39:42 +00:00
Andreas Gampe
38849ccf26 Merge changes I49057737,I68e3096d am: 50cf621704 am: f5dcc28b0c
am: 30348a8abb

Change-Id: I9755772ab8c8d4c3708ee2a65cda0b0d3f39d30e
2017-08-31 15:35:58 +00:00
Yohei Yukawa
edaa2ea5b7 Merge "Fix wrong dump output of *Info#flags" into oc-mr1-dev
am: c4a8b3625b

Change-Id: I43645394470ca01bd533da378ba9edc3abaa3a3b
2017-08-31 15:32:59 +00:00
Andreas Gampe
30348a8abb Merge changes I49057737,I68e3096d am: 50cf621704
am: f5dcc28b0c

Change-Id: Id25418e3def0b63a8c52671546968017cf350d18
2017-08-31 15:27:52 +00:00
Yohei Yukawa
8f272178a0 Fix wrong dump output of *Info#flags
This CL follows up to a previous CL [1] that introduced an ability to
control filtering level of
 - ActivityInfo#dump()
 - ApplicationInfo#dump()
 - ComponentInfo#dump()
 - ProviderInfo#dump()
 - ResolveInfo#dump()
 - ServiceInfo#dump()
but also masked following outputs as an unexpected side effect.
 - ActivityInfo#flags
 - ApplicationInfo#flags
 - ProviderInfo#flags
 - ServiceInfo#flags

With this CL, above *Info#flags are correctly dumped again.

 [1]: I0d01565babb87e68b840c9756a2ea730d699efc7
      6ac42aeed9

Test: Manually tested as follows.
 1. make -j SoftKeyboard
 2. adb install -r $OUT/system/app/SoftKeyboard/SoftKeyboard.apk
 3. adb shell dumpsys input_method
    -> Check 'com.example.android.softkeyboard' section
      -> make sure ServiceInfo#flags=0x0
      -> make sure ApplicationInfo#flags=0x38a8be44
           FLAG_HAS_CODE (1<<2)
           FLAG_ALLOW_CLEAR_USER_DATA (1<<6)
           FLAG_SUPPORTS_SMALL_SCREENS (1<<9)
           FLAG_SUPPORTS_NORMAL_SCREENS (1<<10)
           FLAG_SUPPORTS_LARGE_SCREENS (1<<11)
           FLAG_RESIZEABLE_FOR_SCREENS (1<<12)
           FLAG_SUPPORTS_SCREEN_DENSITIES (1<<13)
           FLAG_ALLOW_BACKUP (1<<15)
           FLAG_SUPPORTS_XLARGE_SCREENS (1<<19)
           FLAG_STOPPED (1<<21)
           FLAG_SUPPORTS_RTL (1<<22)
           FLAG_INSTALLED (1<<23)
           FLAG_FULL_BACKUP_ONLY (1<<26)
           FLAG_EXTRACT_NATIVE_LIBS (1<<28)
           FLAG_HARDWARE_ACCELERATED (1<<29)
Fixes: 65057767
Change-Id: Icd1e18237e873844791ccdea7f424b6fe76137c0
2017-08-31 15:24:48 +00:00
Andreas Gampe
f5dcc28b0c Merge changes I49057737,I68e3096d
am: 50cf621704

Change-Id: Id66d91bc326461dc3cae4cbae03f3d060761ea7f
2017-08-31 15:15:31 +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
Petar Šegina
0d37b1a71d Rename roundPercentage to roundRatio
Test: manual - verify smart select animation still works
Change-Id: Ic63236a47563b2daef57eeb52dd4fdbbb2cb1780
2017-08-31 15:03:18 +01:00