OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Fix issue where scrims would not go away"
TreeHugger Robot [Wed, 6 Dec 2017 23:58:44 +0000 (23:58 +0000)]
Merge "Fix issue where scrims would not go away"

6 years agoMerge changes from topics "moar_fields", "fc_refactor_score"
TreeHugger Robot [Wed, 6 Dec 2017 23:03:17 +0000 (23:03 +0000)]
Merge changes from topics "moar_fields", "fc_refactor_score"

* changes:
  Implemented autofill field classification on multiple fields and user data.
  Refactored the FieldsClassification score mechanism.

6 years agoMerge "Introduce getProfileSwitchingIcon/Label In CrossProfileApps"
TreeHugger Robot [Wed, 6 Dec 2017 22:56:17 +0000 (22:56 +0000)]
Merge "Introduce getProfileSwitchingIcon/Label In CrossProfileApps"

6 years agobug fix for StatsLogEventWraper tag id
Chenjie Yu [Wed, 6 Dec 2017 06:34:34 +0000 (22:34 -0800)]
bug fix for StatsLogEventWraper tag id
bug fix for ConfigManager fake config

Test: cts test
Change-Id: Ia07992dffb6520074c908151c96da1aa931f97f0

6 years agoMerge "Fix CTS tests failing due to job throttling"
TreeHugger Robot [Wed, 6 Dec 2017 22:33:41 +0000 (22:33 +0000)]
Merge "Fix CTS tests failing due to job throttling"

6 years agoMerge "Change default dnd rules"
TreeHugger Robot [Wed, 6 Dec 2017 22:31:02 +0000 (22:31 +0000)]
Merge "Change default dnd rules"

6 years agoMerge "Deprecate inKeyguardRestrictedInputMode"
TreeHugger Robot [Wed, 6 Dec 2017 22:27:51 +0000 (22:27 +0000)]
Merge "Deprecate inKeyguardRestrictedInputMode"

6 years agoMerge "Extreme battery saver: do not disable animation"
TreeHugger Robot [Wed, 6 Dec 2017 22:23:10 +0000 (22:23 +0000)]
Merge "Extreme battery saver: do not disable animation"

6 years agoMerge "Rename snapshotProfile to createProfileSnapshot for consistency"
TreeHugger Robot [Wed, 6 Dec 2017 22:11:28 +0000 (22:11 +0000)]
Merge "Rename snapshotProfile to createProfileSnapshot for consistency"

6 years agoFix issue where scrims would not go away
Lucas Dupin [Wed, 6 Dec 2017 21:59:25 +0000 (13:59 -0800)]
Fix issue where scrims would not go away

Change-Id: Ibb683d6bddadd5b670da28427d4801e03d575bd8
Fixes: 70245015
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarTest.java

6 years agoMerge "targetSdkVersion float property sanitization"
TreeHugger Robot [Wed, 6 Dec 2017 21:39:03 +0000 (21:39 +0000)]
Merge "targetSdkVersion float property sanitization"

6 years agoMerge "Remove obsolete scrim transition"
Lucas Dupin [Wed, 6 Dec 2017 21:24:12 +0000 (21:24 +0000)]
Merge "Remove obsolete scrim transition"

6 years agoExtreme battery saver: do not disable animation
Makoto Onuki [Wed, 6 Dec 2017 20:51:20 +0000 (12:51 -0800)]
Extreme battery saver: do not disable animation

Bug:68769804
Test: manual
Change-Id: I82fefa5045258ec1adee0f4ab27d31b7950e4a8e

6 years agoChange default dnd rules
Beverly [Mon, 4 Dec 2017 21:30:11 +0000 (16:30 -0500)]
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

6 years agoMerge "SoundPool: remove unused header file"
TreeHugger Robot [Wed, 6 Dec 2017 20:30:16 +0000 (20:30 +0000)]
Merge "SoundPool: remove unused header file"

6 years agoMerge "Make matchesSimple return false if there is a parsing error"
TreeHugger Robot [Wed, 6 Dec 2017 20:14:21 +0000 (20:14 +0000)]
Merge "Make matchesSimple return false if there is a parsing error"

6 years agoRename snapshotProfile to createProfileSnapshot for consistency
Calin Juravle [Tue, 5 Dec 2017 20:33:32 +0000 (12:33 -0800)]
Rename snapshotProfile to createProfileSnapshot for consistency

Test: build
Bug: 30934496
Change-Id: I602262d22509b279383ff2a71e38c8bae059498a

6 years agoMerge "Revert "Migrate some preference theme attributes from SettingsLib""
Antony Sargent [Wed, 6 Dec 2017 19:40:02 +0000 (19:40 +0000)]
Merge "Revert "Migrate some preference theme attributes from SettingsLib""

6 years agoImplemented autofill field classification on multiple fields and user data.
Felipe Leme [Mon, 4 Dec 2017 22:57:09 +0000 (14:57 -0800)]
Implemented autofill field classification on multiple fields and user data.

Test: atest CtsAutoFillServiceTestCases:FieldsClassificationTest
Test: atest CtsAutoFillServiceTestCases:FieldsClassificationScorerTest
Test: atest CtsAutoFillServiceTestCases:UserDataTest

Bug: 68045531

Change-Id: Ia9252cb5b84236a76a1419f4a2669b2e933f5177

6 years agoRefactored the FieldsClassification score mechanism.
Felipe Leme [Mon, 4 Dec 2017 19:22:25 +0000 (11:22 -0800)]
Refactored the FieldsClassification score mechanism.

Before, FillEvent.getFieldsClassification() returned a map of remote ids and
scores. Now, it returns a Map of FieldClassication by AutofillId, which allows
multiple fields and scores for multiple user datas (although the initial
implementation supports only the top match for a field).

This is mostly a refactoring CL, as the implementation is still saving just one
user data entry and one field. But full support is coming next...

Test: atest CtsAutoFillServiceTestCases:FieldsClassificationTest
Test: atest CtsAutoFillServiceTestCases:UserDataTest
Test: atest CtsAutoFillServiceTestCases:FieldsClassificationScorerTest

Bug: 68045531

Change-Id: I08b29f24efbd527216f9bce2343e1bcd4b4554c0

6 years agoMerge "Introduce more user management APIs"
TreeHugger Robot [Wed, 6 Dec 2017 19:10:34 +0000 (19:10 +0000)]
Merge "Introduce more user management APIs"

6 years agoMerge "Don't persist LOCATION_GLOBAL_KILL_SWITCH"
Makoto Onuki [Wed, 6 Dec 2017 18:59:02 +0000 (18:59 +0000)]
Merge "Don't persist LOCATION_GLOBAL_KILL_SWITCH"

6 years agoMerge "Implement ArtManager#snapshotProfile API"
Calin Juravle [Wed, 6 Dec 2017 18:55:56 +0000 (18:55 +0000)]
Merge "Implement ArtManager#snapshotProfile API"

6 years agoMerge "Add connection serivce focus api interface"
Pengquan Meng [Wed, 6 Dec 2017 18:53:10 +0000 (18:53 +0000)]
Merge "Add connection serivce focus api interface"

6 years agoMerge "Introduce ServiceConnection#onNullBinding()"
Chris Tate [Wed, 6 Dec 2017 18:47:17 +0000 (18:47 +0000)]
Merge "Introduce ServiceConnection#onNullBinding()"

6 years agoMerge "[AWARE] Make PeerHandle comparable/hashable" into oc-mr1-dev am: 407809c911
Pankaj Kanwar [Wed, 6 Dec 2017 18:38:59 +0000 (18:38 +0000)]
Merge "[AWARE] Make PeerHandle comparable/hashable" into oc-mr1-dev am: 407809c911
am: 78720f8a69  -s ours

Change-Id: Icbfd89f81e145670b67832be6505c2ec2eae7e6e

6 years agoImplement ArtManager#snapshotProfile API
Calin Juravle [Thu, 30 Nov 2017 02:26:55 +0000 (18:26 -0800)]
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

6 years agoFix CTS tests failing due to job throttling
Amith Yamasani [Wed, 6 Dec 2017 18:26:10 +0000 (10:26 -0800)]
Fix CTS tests failing due to job throttling

Instrumentation package should be immediately marked as active so
that the jobs aren't throttled.

Also, make sure special apps' buckets are correctly initialized.

Fixes: 68900608
Fixes: 69799327
Fixes: 69793822
Fixes: 69788489

Test: atest CtsNetSecPolicyUsesCleartextTrafficTrueTestCases
      atest FrameworksServicesTests:AppIdleHistoryTests
      atest FrameworksServicesTests:AppStandbyControllerTests
      atest CtsNetSecPolicyUsesCleartextTrafficUnspecifiedTestCases
      atest CtsNetSecConfigDownloadManagerTestCases
      atest CtsNetSecPolicyUsesCleartextTrafficFalseTestCases
      cts-tradefed run cts-dev -m CtsAppUsageHostTestCases
      cts-tradefed run cts-dev -m CtsHostsideNetworkTests
      gts-tradefed run gts-dev -m GtsUsageStatsTestCases

Change-Id: Ic880b6f5ed1fdb7912613e882ccf7b2d4e388159

6 years agoMerge "[AWARE] Make PeerHandle comparable/hashable" into oc-mr1-dev
Pankaj Kanwar [Wed, 6 Dec 2017 18:25:41 +0000 (18:25 +0000)]
Merge "[AWARE] Make PeerHandle comparable/hashable" into oc-mr1-dev
am: 407809c911

Change-Id: If36f772a171b4c909878509cefc466bd09ffc142

6 years agoMerge "Adding widgetFeatures so that a provider can indicate a set of supported features"
Sunny Goyal [Wed, 6 Dec 2017 18:25:32 +0000 (18:25 +0000)]
Merge "Adding widgetFeatures so that a provider can indicate a set of supported features"

6 years agoMerge "Enable outgoing emergency calls in LockTask mode."
TreeHugger Robot [Wed, 6 Dec 2017 18:06:44 +0000 (18:06 +0000)]
Merge "Enable outgoing emergency calls in LockTask mode."

6 years agoMerge "Ensure activity stacks have unique ids."
Bryce Lee [Wed, 6 Dec 2017 18:05:51 +0000 (18:05 +0000)]
Merge "Ensure activity stacks have unique ids."

6 years agoMerge "Adds metadata to InstantAppResolveInfo"
TreeHugger Robot [Wed, 6 Dec 2017 18:05:32 +0000 (18:05 +0000)]
Merge "Adds metadata to InstantAppResolveInfo"

6 years agoRevert "Migrate some preference theme attributes from SettingsLib"
Antony Sargent [Wed, 6 Dec 2017 17:54:09 +0000 (17:54 +0000)]
Revert "Migrate some preference theme attributes from SettingsLib"

This reverts commit 77a89a6ca44ffd85f3bfba6cb42d089c288ea196.

Reason for revert: in b/70031670 we discovered some problems in
the support library side change (ag/3136307), and it will take a
little while to fix those problems so we need to temporarily
revert the support library changes to unblock a push of the
support library to google3.

Change-Id: I7d1732a384afb104118142aa79f3f53811acbe1a

6 years agoMerge "Change shared looper tag from ACTIVITY_MANAGER to SYSTEM_SERVER"
TreeHugger Robot [Wed, 6 Dec 2017 18:00:32 +0000 (18:00 +0000)]
Merge "Change shared looper tag from ACTIVITY_MANAGER to SYSTEM_SERVER"

6 years agotargetSdkVersion float property sanitization
John Reck [Wed, 6 Dec 2017 17:46:13 +0000 (09:46 -0800)]
targetSdkVersion float property sanitization

Bug: 70242902
Test: CTS tests checking for exception still pass
Change-Id: I77dd772a6cb7077de058a3ca85b984c2c3f7321e

6 years agoMerge "[AWARE] Make PeerHandle comparable/hashable" into oc-mr1-dev
Pankaj Kanwar [Wed, 6 Dec 2017 17:42:20 +0000 (17:42 +0000)]
Merge "[AWARE] Make PeerHandle comparable/hashable" into oc-mr1-dev

6 years agoMerge "Allow a11y shortcut to toggle framework features"
Phil Weaver [Wed, 6 Dec 2017 17:39:04 +0000 (17:39 +0000)]
Merge "Allow a11y shortcut to toggle framework features"

6 years agoMerge "Limit access to package names in brightness slider data."
Kenny Guy [Wed, 6 Dec 2017 17:08:59 +0000 (17:08 +0000)]
Merge "Limit access to package names in brightness slider data."

6 years agoMerge "Use -Werror in frameworks/base/tools/streaming_proto"
Chih-hung Hsieh [Wed, 6 Dec 2017 17:08:46 +0000 (17:08 +0000)]
Merge "Use -Werror in frameworks/base/tools/streaming_proto"

6 years agoSoundPool: remove unused header file
Wei Jia [Wed, 6 Dec 2017 17:02:33 +0000 (09:02 -0800)]
SoundPool: remove unused header file

Test: compiles
Bug: 63934228
Change-Id: I48014e809a37c8a9ab27d4e4688dd7e604f80119

6 years agoMerge "Add latency logging for rotation"
TreeHugger Robot [Wed, 6 Dec 2017 16:54:45 +0000 (16:54 +0000)]
Merge "Add latency logging for rotation"

6 years agoMerge "Revert "Don't generate irrelevant a11y events - framework""
TreeHugger Robot [Wed, 6 Dec 2017 16:48:16 +0000 (16:48 +0000)]
Merge "Revert "Don't generate irrelevant a11y events - framework""

6 years agoMerge "Automatic zen rules are always priority only"
TreeHugger Robot [Wed, 6 Dec 2017 16:46:45 +0000 (16:46 +0000)]
Merge "Automatic zen rules are always priority only"

6 years agoMerge "SystemUI: Display RAT icon in quick setting when data is off" am: f845bbdfa4...
Wenting Xiong [Wed, 6 Dec 2017 16:43:16 +0000 (16:43 +0000)]
Merge "SystemUI: Display RAT icon in quick setting when data is off" am: f845bbdfa4 am: 592f539419
am: a6cadd4c4b

Change-Id: Ifd8243e5581775d33516e3cdb6059c627191c01f

6 years agoMerge "SystemUI: Display RAT icon in quick setting when data is off" am: f845bbdfa4
Wenting Xiong [Wed, 6 Dec 2017 16:32:09 +0000 (16:32 +0000)]
Merge "SystemUI: Display RAT icon in quick setting when data is off" am: f845bbdfa4
am: 592f539419

Change-Id: I88d871f593ff64ebea1c36f42a8fe59d69d3b6f3

6 years agoMerge "SystemUI: Display RAT icon in quick setting when data is off"
Wenting Xiong [Wed, 6 Dec 2017 16:21:34 +0000 (16:21 +0000)]
Merge "SystemUI: Display RAT icon in quick setting when data is off"
am: f845bbdfa4

Change-Id: I3285f1f9e63cbf3d0487618b5ff636c7637ef9e4

6 years agoMerge "SystemUI: Display RAT icon in quick setting when data is off"
Treehugger Robot [Wed, 6 Dec 2017 16:07:28 +0000 (16:07 +0000)]
Merge "SystemUI: Display RAT icon in quick setting when data is off"

6 years agoMerge "Add system service for slices"
TreeHugger Robot [Wed, 6 Dec 2017 15:58:46 +0000 (15:58 +0000)]
Merge "Add system service for slices"

6 years agoAdds metadata to InstantAppResolveInfo
Patrick Baumann [Tue, 5 Dec 2017 00:12:52 +0000 (16:12 -0800)]
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

6 years agoMerge "Provide start parameters via setters on ActivityStarter."
Bryce Lee [Wed, 6 Dec 2017 15:38:57 +0000 (15:38 +0000)]
Merge "Provide start parameters via setters on ActivityStarter."

6 years agoAdd latency logging for rotation
Jason Monk [Mon, 4 Dec 2017 16:08:41 +0000 (11:08 -0500)]
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

6 years agoMerge "Fix inadvertent paste in the middle of a comment."
TreeHugger Robot [Wed, 6 Dec 2017 14:59:32 +0000 (14:59 +0000)]
Merge "Fix inadvertent paste in the middle of a comment."

6 years agoIntroduce more user management APIs
Alex Chau [Wed, 6 Dec 2017 14:38:25 +0000 (14:38 +0000)]
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

6 years agoAutomatic zen rules are always priority only
Beverly [Mon, 27 Nov 2017 21:21:34 +0000 (16:21 -0500)]
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

6 years agoChange shared looper tag from ACTIVITY_MANAGER to SYSTEM_SERVER
Michael Wright [Wed, 1 Nov 2017 22:24:08 +0000 (22:24 +0000)]
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

6 years agoMerge "Add odm sepolicy support to SELinuxMMAC.java" am: a0c52a8ace am: 5f2f65239b
kaichieh [Wed, 6 Dec 2017 10:34:46 +0000 (10:34 +0000)]
Merge "Add odm sepolicy support to SELinuxMMAC.java" am: a0c52a8ace am: 5f2f65239b
am: 89720a2c83

Change-Id: I60d8ce635f3e1a4c3eac9f7fd1c1ecb2adc86c33

6 years agoMerge "Add odm sepolicy support to SELinuxMMAC.java" am: a0c52a8ace
kaichieh [Wed, 6 Dec 2017 10:21:48 +0000 (10:21 +0000)]
Merge "Add odm sepolicy support to SELinuxMMAC.java" am: a0c52a8ace
am: 5f2f65239b

Change-Id: Ib09918bd84ae40701b30aebe31ef71ffeecdea7e

6 years agoMerge "Add odm sepolicy support to SELinuxMMAC.java"
kaichieh [Wed, 6 Dec 2017 10:11:10 +0000 (10:11 +0000)]
Merge "Add odm sepolicy support to SELinuxMMAC.java"
am: a0c52a8ace

Change-Id: I5cc7ab8916901e1b3622a17676debe023578f1eb

6 years agoMerge "Add odm sepolicy support to SELinuxMMAC.java"
Treehugger Robot [Wed, 6 Dec 2017 10:00:46 +0000 (10:00 +0000)]
Merge "Add odm sepolicy support to SELinuxMMAC.java"

6 years agoProvide start parameters via setters on ActivityStarter.
Bryce Lee [Sat, 2 Dec 2017 06:14:24 +0000 (22:14 -0800)]
Provide start parameters via setters on ActivityStarter.

A number of arguments are sent to ActivityStarter when starting an
activity. Not all parameters are relevant to each invocation and many
are later modified as the starter prepares to start the activity.
This can lead to callers providing default values for fields they do
not care about.

This change now sets parameters individually on ActivityStarter,
since it is a single use item. Differing behavior, such as waiting
for the start result, are captured in this manner. Aditionally,
clients also now call execute to start the activity.

Bug: 64750076
Test: atest FrameworksServicesTests:ActivityStartControllerTests
Test: atest FrameworksServicesTests:ActivityStarterTests
Change-Id: Ifc88ae6547bc9155527c31709bef1784c6406bda

6 years agoMerge "Revert "Add latency logging for rotation""
TreeHugger Robot [Wed, 6 Dec 2017 04:56:46 +0000 (04:56 +0000)]
Merge "Revert "Add latency logging for rotation""

6 years agoMerge "Cleanup of resource limit tests" am: 39f58678db am: da23b08c6c
ludi [Wed, 6 Dec 2017 04:08:23 +0000 (04:08 +0000)]
Merge "Cleanup of resource limit tests" am: 39f58678db am: da23b08c6c
am: cf1a4315f7

Change-Id: If26dc3a8a969ad63f250608427480996c3b02845

6 years agoMerge "Merge "Support scanDirectories with JNI callback function" am: 5747c2b81c...
Android Build Merger (Role) [Wed, 6 Dec 2017 03:57:18 +0000 (03:57 +0000)]
Merge "Merge "Support scanDirectories with JNI callback function" am: 5747c2b81c am: 34be883ebd am: baa1210d25"

6 years agoMerge "Support scanDirectories with JNI callback function" am: 5747c2b81c am: 34be883ebd
kyle_tso [Wed, 6 Dec 2017 03:53:46 +0000 (03:53 +0000)]
Merge "Support scanDirectories with JNI callback function" am: 5747c2b81c am: 34be883ebd
am: baa1210d25

Change-Id: I7145485a3ae3ae3791e8aaefed650874fd41887e

6 years agoMerge "SurfaceControl: Fix Global Transaction locking error."
TreeHugger Robot [Wed, 6 Dec 2017 03:51:41 +0000 (03:51 +0000)]
Merge "SurfaceControl: Fix Global Transaction locking error."

6 years agoMerge "Cleanup of resource limit tests" am: 39f58678db
ludi [Wed, 6 Dec 2017 03:49:56 +0000 (03:49 +0000)]
Merge "Cleanup of resource limit tests" am: 39f58678db
am: da23b08c6c

Change-Id: I102693c752fb8fbaf9c1bac824047b5ed6d3d9c1

6 years agoMerge "Don't remove bonding device from cached device list during inquiry" am: d5410c...
Venkata Jagadeesh [Wed, 6 Dec 2017 03:44:14 +0000 (03:44 +0000)]
Merge "Don't remove bonding device from cached device list during inquiry" am: d5410ca51b am: ca4e402e9b
am: 4fc59dcdb7

Change-Id: I8cc54482e7c8e22c24c6d89a84dfef03dd7f120b

6 years agoMerge "Support scanDirectories with JNI callback function" am: 5747c2b81c
kyle_tso [Wed, 6 Dec 2017 03:42:11 +0000 (03:42 +0000)]
Merge "Support scanDirectories with JNI callback function" am: 5747c2b81c
am: 34be883ebd

Change-Id: I57a54d520cd953c7b99e6815e7894421166368d4

6 years agoMerge "Rename more things in statsd_config.proto."
Stefan Lafon [Wed, 6 Dec 2017 03:38:56 +0000 (03:38 +0000)]
Merge "Rename more things in statsd_config.proto."

6 years agoMerge "Use -Werror in frameworks/base/tests/backup" am: d5dca64f72 am: 6fb084db88
Chih-hung Hsieh [Wed, 6 Dec 2017 03:34:55 +0000 (03:34 +0000)]
Merge "Use -Werror in frameworks/base/tests/backup" am: d5dca64f72 am: 6fb084db88
am: 753faba697

Change-Id: I917ea7c1627f09ed7274dc04481e36cee5c88060

6 years agoMerge "Don't remove bonding device from cached device list during inquiry" am: d5410ca51b
Venkata Jagadeesh [Wed, 6 Dec 2017 03:31:08 +0000 (03:31 +0000)]
Merge "Don't remove bonding device from cached device list during inquiry" am: d5410ca51b
am: ca4e402e9b

Change-Id: Ieac7271cf0d1aaa75f3472685e745b55e006ba67

6 years agoMerge "Cleanup of resource limit tests"
ludi [Wed, 6 Dec 2017 03:29:35 +0000 (03:29 +0000)]
Merge "Cleanup of resource limit tests"
am: 39f58678db

Change-Id: Ifcbc61ad8003c43ba1baff6d4d534192f6498206

6 years agoMerge "Use -Werror in frameworks/base/tests/backup" am: d5dca64f72
Chih-hung Hsieh [Wed, 6 Dec 2017 03:25:11 +0000 (03:25 +0000)]
Merge "Use -Werror in frameworks/base/tests/backup" am: d5dca64f72
am: 6fb084db88

Change-Id: I6d18cc00937896bb227fc1ba30bc6102f84029b3

6 years agoMake matchesSimple return false if there is a parsing error
Tej Singh [Wed, 6 Dec 2017 03:23:42 +0000 (19:23 -0800)]
Make matchesSimple return false if there is a parsing error

Previously, this would return true if there was an error getting
value from the logEvent. This is bad because it would match
if there was an error.

Test: ran unit tests and cts test
Change-Id: I83054c2a1b922ce374312e3091a8b668f6b89a8f

6 years agoMerge "Support scanDirectories with JNI callback function"
kyle_tso [Wed, 6 Dec 2017 03:22:30 +0000 (03:22 +0000)]
Merge "Support scanDirectories with JNI callback function"
am: 5747c2b81c

Change-Id: I8996fb568c4024ccf76a5643049de8cee6f811c6

6 years agoMerge "Don't remove bonding device from cached device list during inquiry"
Venkata Jagadeesh [Wed, 6 Dec 2017 03:17:29 +0000 (03:17 +0000)]
Merge "Don't remove bonding device from cached device list during inquiry"
am: d5410ca51b

Change-Id: Ibef0191ee1863e08ab73226d9e27cbdfa54face2

6 years agoRemove obsolete scrim transition
Lucas Dupin [Wed, 6 Dec 2017 01:00:45 +0000 (17:00 -0800)]
Remove obsolete scrim transition

Scrim transitions should only be orchestrated by the StatusBar.

This method call should never be here, StatusBar#updateScrimController()
already does all the necessary work.

Test: Unlock with fingerprint, observe scrims.
Test: Touch fingerprint sensor after reboot, look at bouncer.
Change-Id: Ieaa11c4034f9c7e91b506fe189afa699e5c7c97c

6 years agoMerge "Use -Werror in frameworks/base/tests/backup"
Chih-hung Hsieh [Wed, 6 Dec 2017 03:12:09 +0000 (03:12 +0000)]
Merge "Use -Werror in frameworks/base/tests/backup"
am: d5dca64f72

Change-Id: Ic05b86f4bbff44e03298e823e9105c664b7ba1e0

6 years agoMerge "Cleanup of resource limit tests"
Treehugger Robot [Wed, 6 Dec 2017 02:58:41 +0000 (02:58 +0000)]
Merge "Cleanup of resource limit tests"

6 years agoMerge "Associate native MeasuredText with Java one."
TreeHugger Robot [Wed, 6 Dec 2017 02:41:58 +0000 (02:41 +0000)]
Merge "Associate native MeasuredText with Java one."

6 years agoMerge "Add logging constant for screen lock settings"
TreeHugger Robot [Wed, 6 Dec 2017 02:18:08 +0000 (02:18 +0000)]
Merge "Add logging constant for screen lock settings"

6 years agoMerge "Support scanDirectories with JNI callback function"
Treehugger Robot [Wed, 6 Dec 2017 02:06:49 +0000 (02:06 +0000)]
Merge "Support scanDirectories with JNI callback function"

6 years agoMerge "Allow caller to specify target to start in setQuietModeEnabled"
TreeHugger Robot [Wed, 6 Dec 2017 01:18:52 +0000 (01:18 +0000)]
Merge "Allow caller to specify target to start in setQuietModeEnabled"

6 years agoRevert "Add latency logging for rotation"
Wale Ogunwale [Wed, 6 Dec 2017 01:12:11 +0000 (01:12 +0000)]
Revert "Add latency logging for rotation"

Causing deadlock in system-server

Bug: 70238465
Bug: 67862696

This reverts commit 453e7c1c079708f78eb13445e7bc7f69312e88d2.

Change-Id: I9d37ff303dee577c36283ccd50f134abd76b556a

6 years agoMerge "Don't remove bonding device from cached device list during inquiry"
Treehugger Robot [Wed, 6 Dec 2017 00:48:40 +0000 (00:48 +0000)]
Merge "Don't remove bonding device from cached device list during inquiry"

6 years agoMerge "Update PhoneStateListener#onCallStateChanged Javadoc."
Jeff Davidson [Wed, 6 Dec 2017 00:39:36 +0000 (00:39 +0000)]
Merge "Update PhoneStateListener#onCallStateChanged Javadoc."

6 years agoFix inadvertent paste in the middle of a comment.
Donald Chai [Wed, 6 Dec 2017 00:29:50 +0000 (16:29 -0800)]
Fix inadvertent paste in the middle of a comment.

Change-Id: I62f574379dcf51f42ea8d0705e273f931c0a430e
Test: N/A

6 years agoMerge "Refactor MeasuredText"
TreeHugger Robot [Wed, 6 Dec 2017 00:27:48 +0000 (00:27 +0000)]
Merge "Refactor MeasuredText"

6 years agoMerge "Use -Werror in frameworks/base/tests/backup"
Chih-hung Hsieh [Wed, 6 Dec 2017 00:25:20 +0000 (00:25 +0000)]
Merge "Use -Werror in frameworks/base/tests/backup"

6 years agoMerge "Let the event flow to MetricsManager. Comment out the size check only."
Yao Chen [Wed, 6 Dec 2017 00:24:27 +0000 (00:24 +0000)]
Merge "Let the event flow to MetricsManager. Comment out the size check only."

6 years agoAdding widgetFeatures so that a provider can indicate a set of
Sunny Goyal [Fri, 20 Oct 2017 22:07:07 +0000 (15:07 -0700)]
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

6 years agoMerge "Expose the MacAddress class in the api"
Hugo Benichi [Tue, 5 Dec 2017 23:58:32 +0000 (23:58 +0000)]
Merge "Expose the MacAddress class in the api"

6 years agoMerge "Add new SystemApi InputMethod attr isVrOnly."
TreeHugger Robot [Tue, 5 Dec 2017 23:51:48 +0000 (23:51 +0000)]
Merge "Add new SystemApi InputMethod attr isVrOnly."

6 years agoMerge "Extreme battery saver: Disable location when screen is off."
Makoto Onuki [Tue, 5 Dec 2017 23:49:30 +0000 (23:49 +0000)]
Merge "Extreme battery saver: Disable location when screen is off."

6 years agoLet the event flow to MetricsManager. Comment out the size check only.
Yao Chen [Tue, 5 Dec 2017 23:29:03 +0000 (15:29 -0800)]
Let the event flow to MetricsManager. Comment out the size check only.

Test: statsd_test, and manual
Change-Id: I862967510eaf4d402471e9dd6b9c85f6037dd7e1

6 years agoMerge "Modifies logs on findNanoAppOnHub"
TreeHugger Robot [Tue, 5 Dec 2017 23:16:03 +0000 (23:16 +0000)]
Merge "Modifies logs on findNanoAppOnHub"

6 years agoAssociate native MeasuredText with Java one.
Seigo Nonaka [Sat, 2 Dec 2017 00:24:19 +0000 (16:24 -0800)]
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

6 years agoRefactor MeasuredText
Seigo Nonaka [Tue, 28 Nov 2017 06:09:49 +0000 (22:09 -0800)]
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

6 years agoEnable outgoing emergency calls in LockTask mode.
Charles He [Tue, 28 Nov 2017 01:11:04 +0000 (17:11 -0800)]
Enable outgoing emergency calls in LockTask mode.

As part of the LockTask 2.0 work, we allow DPCs to enable the system lock
screen in LockTask mode. When the device is protected by a PIN, pattern, or
password, the lock screen will have an entry point to the emergency dialer
which allows the user to make emergency calls (e.g., 911).

Therefore, we whitelist the activities that are necessary to place this
outgoing emergency call when LOCK_TASK_FEATURE_KEYGUARD is enabled.

Bug: 68750910
Test: bit FrameworksServicesTests:com.android.server.am.LockTaskControllerTest
Test: CTS verifier > CTS verifier > Managed provisioning > Device owner tests
      > LockTask UI
Change-Id: Iaeeec2c462b978d2d201c5660024a3dd7283ae07