Commit Graph

85036 Commits

Author SHA1 Message Date
TreeHugger Robot
e34be4a6ef Merge "Change default dnd rules" 2017-12-06 22:31:02 +00:00
TreeHugger Robot
dac644cd4a Merge "Deprecate inKeyguardRestrictedInputMode" 2017-12-06 22:27:51 +00:00
TreeHugger Robot
ed29cd94f5 Merge "targetSdkVersion float property sanitization" 2017-12-06 21:39:03 +00:00
Beverly
26eba879f2 Change default dnd rules
- Created new DND Sleeping rule
- Weekend and weeknight automatic DND rules are no longer default,
they are considered user-added
- enforceDefaultRulesExist in ZenModeHelper ensures default rules are
always in the DND automatic rule list (especially important on upgrade
from O -> P)

Bug: 63077372
Test: manual
Change-Id: Ie6e89bb5d7b4483c297c142c4c56d03caa9a53e8
2017-12-06 15:40:25 -05:00
TreeHugger Robot
a044c1d27e Merge "Introduce more user management APIs" 2017-12-06 19:10:34 +00:00
Makoto Onuki
0e86a24986 Merge "Don't persist LOCATION_GLOBAL_KILL_SWITCH" 2017-12-06 18:59:02 +00:00
Calin Juravle
79533269de Merge "Implement ArtManager#snapshotProfile API" 2017-12-06 18:55:56 +00:00
Chris Tate
f10f83d507 Merge "Introduce ServiceConnection#onNullBinding()" 2017-12-06 18:47:17 +00:00
Calin Juravle
fd9f8ae973 Implement ArtManager#snapshotProfile API
Complete the implementation of ArtManager#snapshotProfile. The snapshot is
performed by calling the installer and then return to the caller via the
specified callback.

Bug: 30934496
Test: gts-tradefed -m GtsAndroidRuntimeManagerHostTestCases
Change-Id: I87131487846d91d79a56041445420376b61ca8e7
2017-12-06 18:29:06 +00:00
Sunny Goyal
839edb1781 Merge "Adding widgetFeatures so that a provider can indicate a set of supported features" 2017-12-06 18:25:32 +00:00
TreeHugger Robot
9e33289902 Merge "Adds metadata to InstantAppResolveInfo" 2017-12-06 18:05:32 +00:00
TreeHugger Robot
347a6f8862 Merge "Change shared looper tag from ACTIVITY_MANAGER to SYSTEM_SERVER" 2017-12-06 18:00:32 +00:00
John Reck
c888788cb9 targetSdkVersion float property sanitization
Bug: 70242902
Test: CTS tests checking for exception still pass
Change-Id: I77dd772a6cb7077de058a3ca85b984c2c3f7321e
2017-12-06 09:46:13 -08:00
Phil Weaver
3834e91e13 Merge "Allow a11y shortcut to toggle framework features" 2017-12-06 17:39:04 +00:00
Kenny Guy
f41ee681ed Merge "Limit access to package names in brightness slider data." 2017-12-06 17:08:59 +00:00
TreeHugger Robot
b5f48b2392 Merge "Add latency logging for rotation" 2017-12-06 16:54:45 +00:00
TreeHugger Robot
57a69f683c Merge "Revert "Don't generate irrelevant a11y events - framework"" 2017-12-06 16:48:16 +00:00
TreeHugger Robot
a084819342 Merge "Automatic zen rules are always priority only" 2017-12-06 16:46:45 +00:00
TreeHugger Robot
2e24967956 Merge "Add system service for slices" 2017-12-06 15:58:46 +00:00
Patrick Baumann
709ee1551d Adds metadata to InstantAppResolveInfo
This change introduces a metadata Bundle to the InstantAppResolveInfo
type to be passed along to the Instant App installer in the case of
resolution. This can be used by the resolver and installer to improve
launch by avoiding IPC to fetch needed data that lives in the resolver.

Change-Id: I0b9c168dd8803f5398d222384ebd436c787e1a48
Fixes: 68223794
Test: manual - modified resolver to populate data, verified in installer
2017-12-06 15:38:59 +00:00
Jason Monk
ea03be1056 Add latency logging for rotation
Move LatencyTracker and sysui_latency to make this possible

Fixes: 67862696
Test: atest
platform_testing/tests/perf/PerfTransitionTest/src/com/android/apptransition/tests/LatencyTests.java#testRotationLatency

Change-Id: I42e3218355c162d4ba04b0f2c49e031156b5a357
2017-12-06 15:02:17 +00:00
Alex Chau
af9bb8d99e Introduce more user management APIs
- boolean stopUser(ComponentName admin, UserHandle userHandle)
- boolean logoutUser(ComponentName admin)
- List<UserHandle> getManageableUsers(ComponentName admin)
- Introduced Injector.binderWithCleanCallingIdentity

Bug: 67580550
Test: manually try each added API with a DPC on both primary and non-prijmray user.
Test: CTS tracked in b/67581357
Change-Id: I9789b9b29978d47bc22be6ecad6c5577e0f8eb5b
2017-12-06 14:38:25 +00:00
Beverly
bf16c14cbf Automatic zen rules are always priority only
- Default automatic rules are priority only
- Existing user-created rules will be changed to priority only
- New user-created rules will always be priority only
- Metrics for new dialogs and zen preference controllers

Test: manual
Bug: 63077372
Change-Id: I8694d10ebdfa67ba96f4936c74eae17b450e32af
2017-12-06 09:28:39 -05:00
Michael Wright
daf72b1bd1 Change shared looper tag from ACTIVITY_MANAGER to SYSTEM_SERVER
Most of these are shared, so enabling all ActivityManager logging just
to get looper traces seems wrong.

Test: build, trace with system_server tag, see looper info
Change-Id: I3741dbacab25f5c02f6f8d17f0c8377d8f842776
2017-12-06 13:21:11 +00:00
TreeHugger Robot
057087457b Merge "Revert "Add latency logging for rotation"" 2017-12-06 04:56:46 +00:00
TreeHugger Robot
473b5606c9 Merge "SurfaceControl: Fix Global Transaction locking error." 2017-12-06 03:51:41 +00:00
TreeHugger Robot
5399403867 Merge "Associate native MeasuredText with Java one." 2017-12-06 02:41:58 +00:00
TreeHugger Robot
8cb0cf0aa9 Merge "Allow caller to specify target to start in setQuietModeEnabled" 2017-12-06 01:18:52 +00:00
Wale Ogunwale
79c1f22243 Revert "Add latency logging for rotation"
Causing deadlock in system-server

Bug: 70238465
Bug: 67862696

This reverts commit 453e7c1c07.

Change-Id: I9d37ff303dee577c36283ccd50f134abd76b556a
2017-12-06 01:12:11 +00:00
TreeHugger Robot
1616cb741c Merge "Refactor MeasuredText" 2017-12-06 00:27:48 +00:00
Sunny Goyal
f5e0fd78fd Adding widgetFeatures so that a provider can indicate a set of
supported features

Bug: 63931362
Bug: 36537581
Test: Added CTS for new APIs
Change-Id: I2bd3278bfdf40d88fc8e6f72bfbc7505c64accff
2017-12-05 16:23:46 -08:00
Hugo Benichi
fc9696e489 Merge "Expose the MacAddress class in the api" 2017-12-05 23:58:32 +00:00
TreeHugger Robot
c3e9e8ae13 Merge "Add new SystemApi InputMethod attr isVrOnly." 2017-12-05 23:51:48 +00:00
TreeHugger Robot
153daa89e7 Merge "Modifies logs on findNanoAppOnHub" 2017-12-05 23:16:03 +00:00
Seigo Nonaka
6f1868b813 Associate native MeasuredText with Java one.
To measure text beforehand, remove static layout dependency from
MeasuredText. Now MeasuredText can compute native measured text
by itself and StaticLayout use it for line breaking.

This CL introduce one additional JNI method call per paragraph during
line breaking but looks negligible cost.

Here is a raw performance test result on walleye-userdebug.

StaticLayoutPerfTest (median, N=100):
createRandom:          7,879,440 -> 7,964,789 (+1.08%)
createRandom Balanced: 7,835,192 -> 7,848,151 (+0.17%)

TextViewOnMeasurePerfTest (median, N=100):
measure_AtMost:       92,599,175 ->  93,027,121 (+0.47%)
measure_Exactly:      89,949,922 ->  90,439,886 (+0.54%)
measure_Unspecified: 148,645,916 -> 150,047,694 (+0.94%)

Bug: 67504091
Test: bit CtsTextTestCases:*
Test: bit CtsWidgetTestCases:*
Test: bit CtsGraphicsTestCases:*
Test: bit FrameworksCoreTests:android.text.StaticLayoutTest
Change-Id: Ie932903845645e50cfa0cb428babb31a44babc47
2017-12-05 14:56:06 -08:00
Seigo Nonaka
f1644f735d Refactor MeasuredText
This is 2nd attempt of I58d3020a3fa560d05576e18888fbfe46e2975e8f

The root cause of the crash is passing end offset instead of passing
length. This CL contains that fix and also has a test case for that.

This refactoring contains:
- Add lots of comments.
- Mark private the internal fields and introduce accessors and helper
  methods.
- Factor out the auto grow array implementation to another class.
- Use SynchronizedPool for pool implementation.
- Introduce three build methods for each use case.
- Hide addStyleRun and compute all necessary informations in build method.

Locally verified that this doesn't cause performance regressions.
Here is a raw performance test result on walleye-userdebug.

StaticLayoutPerfTest (median, N=100):
createRandom:          7,846,449 -> 8,003,903 (+2.01%)
createRandom Balanced: 7,810,436 -> 7,919,200 (+1.40%)

TextViewOnMeasurePerfTest (median, N=100):
measure_AtMost:       94,276,376 ->  94,124,658 (-0.16%)
measure_Exactly:      91,629,352 ->  91,617,639 (-0.01%)
measure_Unspecified: 151,006,181 -> 150,957,598 (-0.03%)

Test: bit CtsTextTestCases:*
Test: bit CtsGraphicsTestCases:*
Test: bit CtsWidgetTestCases:*
Test: bit FrameworksCoreTests:android.text.StaticLayoutTest
Bug: 65024629
Bug: 70146381
Change-Id: I772f60444d0fe87f59609977af5ef712cab3eb37
2017-12-05 14:49:53 -08:00
Makoto Onuki
53f0e02919 Don't persist LOCATION_GLOBAL_KILL_SWITCH
Bug: 68769804
Test: manual test
Test: atest ${ANDROID_BUILD_TOP}/frameworks/base/core/tests/coretests/src/android/provider/SettingsBackupTest.java
Test: atest ${ANDROID_BUILD_TOP}/frameworks/base/core/tests/coretests/src/android/provider/SettingsProviderTest.java
Test: atest SettingsProviderTest

Change-Id: I448e1aad10b517b41f58a15459c6dd1fbaf36478
2017-12-05 14:34:29 -08:00
Chien-Yu Chen
1f272d89e3 Merge "camera: Add AF scene change key" 2017-12-05 22:19:39 +00:00
TreeHugger Robot
864599ee02 Merge "Bluetooth HID Device: Remove BluetoothHidDeviceAppConfiguration (2/4)" 2017-12-05 22:10:09 +00:00
Tarandeep Singh
b360b995c9 Add new SystemApi InputMethod attr isVrOnly.
In order to support VR-only InputMethod, new attribute 'isVrOnly' is
added.

Bug: 63037786
Test: atest InputMethodInfoTest
Change-Id: Iab936df9972212f56277ef9c18d9e1f67f92a913
2017-12-05 13:37:14 -08:00
TreeHugger Robot
b0021b386f Merge "Public access to static methods in ZenModeConfig" 2017-12-05 21:34:42 +00:00
Eugene Susla
d4128ec0df Revert "Don't generate irrelevant a11y events - framework"
This reverts commit 8ddfb4794f.

Test: presubmit
Bug: 69975306
Change-Id: I05cb545eb0adc77298dddf2dea2997ef36b58a5f
2017-12-05 13:08:51 -08:00
TreeHugger Robot
1523386d85 Merge "PooledLambda" 2017-12-05 20:38:25 +00:00
Alex Chau
1beccb0fc2 Merge "Introduce logout button and DevicePolicyManager API to enable it" 2017-12-05 20:16:24 +00:00
Dianne Hackborn
d5b9266f01 Merge "Add major version code to platform." 2017-12-05 20:12:17 +00:00
Robert Carr
c5fc461116 SurfaceControl: Fix Global Transaction locking error.
Simple mistake. Change from one branch didn't get propagated forward
during review.

Bug: 69974273
Test: Boots
Change-Id: I4df8a939f2b38202ada2d1dc150b56ec5dc8f496
2017-12-05 11:55:40 -08:00
Beverly
be6d3524b6 Public access to static methods in ZenModeConfig
Edits to ScheduleCalendar and ScheduleConditionProvider tests

Test: runtest -x frameworks/base/services/tests/notification/src/com/android/server/notification/ScheduleCalendarTest.java
runtest -x frameworks/base/services/tests/notification/src/com/android/server/notification/ScheduleConditionProviderTest.java$
Bug: 63077372
Change-Id: I0662c230f1f2df867f9b64d69aab3bcb88696b61
2017-12-05 14:43:46 -05:00
Calin Juravle
d3392daa3b Merge "Add SystemApis to expose runtime profile information" 2017-12-05 19:10:34 +00:00
Eugene Susla
2f5ee71ec8 PooledLambda
This introduces PooledLambda - a way of obtaining lambdas without the
allocations overhead.

See PooledLambda javadoc for a guide and PooledLambdaSample for code samples
of useful usages.

Test: ensure samples of PooledLambdaSample work as described.
Change-Id: I46f8ad27bc1de07e19f6e39f89d2cafe4238497a
2017-12-05 10:46:59 -08:00
Jason Monk
8f5f7ff5fa Add system service for slices
Will be used to manage permissions and possibly pinned state for slices.

Test: manual
Change-Id: Ie53f4988f817ac5b920087567dbac751e2857dbf
2017-12-05 13:37:37 -05:00