OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Add new hidden API uses to light greylist" into pi-dev
David Brazdil [Wed, 21 Mar 2018 16:28:17 +0000 (16:28 +0000)]
Merge "Add new hidden API uses to light greylist" into pi-dev

6 years agoMerge "Get rid of upperbound on wireless charging anim" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 16:26:12 +0000 (16:26 +0000)]
Merge "Get rid of upperbound on wireless charging anim" into pi-dev

6 years agoMerge "Update logging util to not crash on null" into pi-dev
Salvador Martinez [Wed, 21 Mar 2018 16:23:26 +0000 (16:23 +0000)]
Merge "Update logging util to not crash on null" into pi-dev

6 years agoMerge "UsageEvents for slices pinning" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 16:07:32 +0000 (16:07 +0000)]
Merge "UsageEvents for slices pinning" into pi-dev

6 years agoMerge "Ensure rotate disable2 flag can be set on boot" into pi-dev
Mike Digman [Wed, 21 Mar 2018 16:03:00 +0000 (16:03 +0000)]
Merge "Ensure rotate disable2 flag can be set on boot" into pi-dev

6 years agoMerge "Update IME/keyboard switcher navbar icon to GM" into pi-dev
Mike Digman [Wed, 21 Mar 2018 16:02:45 +0000 (16:02 +0000)]
Merge "Update IME/keyboard switcher navbar icon to GM" into pi-dev

6 years agoMerge "Distinguish between bringing stack to front and delivering to top." into pi-dev
Bryce Lee [Wed, 21 Mar 2018 15:58:08 +0000 (15:58 +0000)]
Merge "Distinguish between bringing stack to front and delivering to top." into pi-dev

6 years agoMerge "Add unit test for ActivityStackSupervisor#testApplySleepTokensLocked." into...
Bryce Lee [Wed, 21 Mar 2018 15:57:48 +0000 (15:57 +0000)]
Merge "Add unit test for ActivityStackSupervisor#testApplySleepTokensLocked." into pi-dev

6 years agoAdd new hidden API uses to light greylist
David Brazdil [Tue, 20 Mar 2018 19:48:01 +0000 (19:48 +0000)]
Add new hidden API uses to light greylist

From common apps.

Bug: 64382372
Bug: 74430927
Test: make
Change-Id: I81c38a78fcdc7c33f54cd25823b301ba29638019

6 years agoMerge "Restore state if password change fails" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 15:41:34 +0000 (15:41 +0000)]
Merge "Restore state if password change fails" into pi-dev

6 years agoMerge "Update QS customizer add tiles string." into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 15:33:49 +0000 (15:33 +0000)]
Merge "Update QS customizer add tiles string." into pi-dev

6 years agoMerge "Intercept touches in the emulated DisplayCutout" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 15:31:38 +0000 (15:31 +0000)]
Merge "Intercept touches in the emulated DisplayCutout" into pi-dev

6 years agoMerge "DO NOT MERGE Update references to backup/restore agent timeouts" into pi-dev
Annie Meng [Wed, 21 Mar 2018 15:18:35 +0000 (15:18 +0000)]
Merge "DO NOT MERGE Update references to backup/restore agent timeouts" into pi-dev

6 years agoMerge "More APIs on hidden API light greylist / vendor list" into pi-dev
David Brazdil [Wed, 21 Mar 2018 15:14:54 +0000 (15:14 +0000)]
Merge "More APIs on hidden API light greylist / vendor list" into pi-dev

6 years agoMerge "Rename persist.traced.enable to sys.traced.enable_override" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 15:09:25 +0000 (15:09 +0000)]
Merge "Rename persist.traced.enable to sys.traced.enable_override" into pi-dev

6 years agoMerge "Animate clock after unlocking" into pi-dev
Lucas Dupin [Wed, 21 Mar 2018 15:02:44 +0000 (15:02 +0000)]
Merge "Animate clock after unlocking" into pi-dev

6 years agoGet rid of upperbound on wireless charging anim
Beverly [Mon, 19 Mar 2018 14:42:06 +0000 (10:42 -0400)]
Get rid of upperbound on wireless charging anim

Previously, if the battery percentage was above 95%, then
wireless charging wouldn't turn the screen on nor play the
wireless charging animation. Now the charging
animation will trigger even if battery percentage is above 95%.

Test: manual
Change-Id: I531334548d41cba8a1a4c28dff484d3f2dfefe01
Fixes: 75029514

6 years agoMore APIs on hidden API light greylist / vendor list
David Brazdil [Wed, 21 Mar 2018 14:27:20 +0000 (14:27 +0000)]
More APIs on hidden API light greylist / vendor list

New scan after updates.

Bug: 64382372
Bug: 76062566
Test: make
Change-Id: Ia2c67222bddccb0b7f607ee0ce8951611a668dc3

6 years agoUsageEvents for slices pinning
Jason Monk [Wed, 14 Mar 2018 13:20:39 +0000 (09:20 -0400)]
UsageEvents for slices pinning

Test: atest frameworks/base/services/tests/servicestests
Bug: 73455786
Change-Id: I6a37f5525c29d3f47aa37e262c8834840309ba44

6 years agoRename persist.traced.enable to sys.traced.enable_override
Hector Dearman [Wed, 21 Mar 2018 11:55:19 +0000 (11:55 +0000)]
Rename persist.traced.enable to sys.traced.enable_override

Allowing for both a default in the system
image and an override form the server requires at least two properties.
Given that we're using two properties anyway we can change the
server override to match the pattern of the other flags and not be
a persisted setting.

Test: Manual.
Bug: b/76077784
Merged-In: I98932085430cdeaf4ccd036a0751f119c0cdeb3c
Change-Id: I98932085430cdeaf4ccd036a0751f119c0cdeb3c

6 years agoMerge "Correct exiting pip animation state." into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 13:29:37 +0000 (13:29 +0000)]
Merge "Correct exiting pip animation state." into pi-dev

6 years agoMerge "Amend package whitelist." into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 12:52:46 +0000 (12:52 +0000)]
Merge "Amend package whitelist." into pi-dev

6 years agoMerge "DisplayCutout: make dock divider cutout aware" into pi-dev
Adrian Roos [Wed, 21 Mar 2018 12:52:15 +0000 (12:52 +0000)]
Merge "DisplayCutout: make dock divider cutout aware" into pi-dev

6 years agoMerge "Add RecoverySession importKeyChainSnapshot method" into pi-dev
Robert Berry [Wed, 21 Mar 2018 12:25:37 +0000 (12:25 +0000)]
Merge "Add RecoverySession importKeyChainSnapshot method" into pi-dev

6 years agoMerge "Use the new root cert file under the core/ folder" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 12:10:23 +0000 (12:10 +0000)]
Merge "Use the new root cert file under the core/ folder" into pi-dev

6 years agoRestore state if password change fails
Rubin Xu [Wed, 21 Mar 2018 09:13:44 +0000 (09:13 +0000)]
Restore state if password change fails

Bug: 73299306
Fixes: 73299306
Test: Call LockPatternUtils.clearLock() with wrong password,
      make sure device still unlocks after reboot
Change-Id: I640fc62cbe0c0c57e980455d4f499df02dee0832

6 years agoMerge "Add API WebView.getWebViewLooper()" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 11:59:28 +0000 (11:59 +0000)]
Merge "Add API WebView.getWebViewLooper()" into pi-dev

6 years agoUpdate QS customizer add tiles string.
Amin Shaikh [Wed, 21 Mar 2018 11:39:24 +0000 (07:39 -0400)]
Update QS customizer add tiles string.

Change-Id: Iddea2dd8bd48b980e083fac447e905616031b365
Fixes: 27961533
Test: visual

6 years agoMerge "Enable hidden API blacklist" into pi-dev
Nicolas Geoffray [Wed, 21 Mar 2018 10:50:30 +0000 (10:50 +0000)]
Merge "Enable hidden API blacklist" into pi-dev

6 years agoMerge "Add hidden API uses to light greylist" into pi-dev
David Brazdil [Wed, 21 Mar 2018 10:33:07 +0000 (10:33 +0000)]
Merge "Add hidden API uses to light greylist" into pi-dev

6 years agoAdd RecoverySession importKeyChainSnapshot method
Robert Berry [Mon, 19 Mar 2018 18:00:46 +0000 (18:00 +0000)]
Add RecoverySession importKeyChainSnapshot method

This imports the keys directly into the keystore of LockSettingsService,
allowing them to be accessed via the RecoveryController getKey method.
This is better as it does not expose raw key material to any app.

Bug: 74345822
Test: runtest frameworks-services -p \
      com.android.server.locksettings.recoverablekeystore

Change-Id: I4991b0cff1d2fa2e5bd0b53a71c096499e93e98b

6 years agoMerge "Temporarily whitelist platform test packages for hidden API" into pi-dev
David Brazdil [Wed, 21 Mar 2018 10:12:57 +0000 (10:12 +0000)]
Merge "Temporarily whitelist platform test packages for hidden API" into pi-dev

6 years agoAmend package whitelist.
Mathew Inwood [Thu, 15 Mar 2018 14:05:53 +0000 (14:05 +0000)]
Amend package whitelist.

Now that Antons cleanup of all packages is complete, we can generate this
whitelist from those packages that specify

  LOCAL_PRIVATE_PLATFORM_APIS := true

This is the resulting list of packages. This change also includes fixes to
the method; previously, packges that didn't specify any certificate may
have been exluded.

Test: Verify that device boots.
This is a cherry-pick of change I1f578322135274b80708d4bb7664f7732ac33cc7
from AOSP.

Bug: 64382372
Change-Id: Iada043cb85f9b3281893ed9a2828771b8f1ef045

6 years agoMerge "Add new Intent start a package's Open By Default page directly." into pi-dev
Ben Lin [Wed, 21 Mar 2018 06:07:45 +0000 (06:07 +0000)]
Merge "Add new Intent start a package's Open By Default page directly." into pi-dev

6 years agoUse the new root cert file under the core/ folder
Bo Zhu [Wed, 21 Mar 2018 05:44:18 +0000 (22:44 -0700)]
Use the new root cert file under the core/ folder

This CL also adds an alias param to the RecoverySession#start method.

Bug: 76033708
Test: runtest frameworks-services -p \
      com.android.server.locksettings.recoverablekeystore

Change-Id: I870f4f89bd6e319e1687a981aa04af0d23f3c922

6 years agoMerge "Allow statsd to be given empty config." into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 05:34:16 +0000 (05:34 +0000)]
Merge "Allow statsd to be given empty config." into pi-dev

6 years agoMerge "Create task record with window container controller when adding task" into...
Winson Chung [Wed, 21 Mar 2018 04:37:02 +0000 (04:37 +0000)]
Merge "Create task record with window container controller when adding task" into pi-dev

6 years agoMerge "Stop creating PrecomputedText in StaticLayout" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 04:28:54 +0000 (04:28 +0000)]
Merge "Stop creating PrecomputedText in StaticLayout" into pi-dev

6 years agoMerge changes from topic "SoundTriggerJobService-steps" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 03:27:56 +0000 (03:27 +0000)]
Merge changes from topic "SoundTriggerJobService-steps" into pi-dev

* changes:
  Throttle number of sound trigger operations / day
  Add SoundTriggerDetectionService
  Expose SoundTriggerManager and SoundTrigger APIs

6 years agoMerge "Fix confusing Log.e message in SpellCheckerSession" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 03:25:49 +0000 (03:25 +0000)]
Merge "Fix confusing Log.e message in SpellCheckerSession" into pi-dev

6 years agoMerge "Screen off animation" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 02:57:19 +0000 (02:57 +0000)]
Merge "Screen off animation" into pi-dev

6 years agoMerge "Get current and default brightness configs." into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 02:31:19 +0000 (02:31 +0000)]
Merge "Get current and default brightness configs." into pi-dev

6 years agoAnimate clock after unlocking
Lucas Dupin [Tue, 20 Mar 2018 04:32:19 +0000 (21:32 -0700)]
Animate clock after unlocking

Change-Id: I660e493e3909bf74a9d6b8f60009899ebf5dffe5
Fixes: 74586970
Test: visual

6 years agoMerge "Fix docs for LocationRequest#setLowPowerMode()" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 02:20:10 +0000 (02:20 +0000)]
Merge "Fix docs for LocationRequest#setLowPowerMode()" into pi-dev

6 years agoMerge "Use AsyncTask.SERIAL_EXECUTOR as the default executor for scan" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 02:05:12 +0000 (02:05 +0000)]
Merge "Use AsyncTask.SERIAL_EXECUTOR as the default executor for scan" into pi-dev

6 years agoStop creating PrecomputedText in StaticLayout
Seigo Nonaka [Tue, 20 Mar 2018 22:18:59 +0000 (15:18 -0700)]
Stop creating PrecomputedText in StaticLayout

No performance regressions are expected

android.text.PrecomputedTextPerfTest:
  create NoStyled Hyphenation                  : 17,849,966 -> 17,858,570: (+0.0%)
  create NoStyled Hyphenation WidthOnly        : 17,814,338 -> 17,801,205: (-0.1%)
  create NoStyled NoHyphenation                :  7,123,449 ->  7,068,308: (-0.8%)
  create NoStyled NoHyphenation WidthOnly      :  7,108,169 ->  7,074,908: (-0.5%)
  create Styled Hyphenation                    : 12,179,203 -> 12,131,020: (-0.4%)
  create Styled Hyphenation WidthOnly          : 12,112,347 -> 12,241,311: (+1.1%)
  create Styled NoHyphenation                  : 11,870,126 -> 11,880,442: (+0.1%)
  create Styled NoHyphenation WidthOnly        : 11,836,742 -> 11,860,292: (+0.2%)

android.text.StaticLayoutPerfTest:
  create PrecomputedText Balanced Hyphenation  :    697,713 ->    691,148: (-0.9%)
  create PrecomputedText Balanced NoHyphenation:    517,113 ->    498,106: (-3.7%)
  create PrecomputedText Greedy Hyphenation    :    468,243 ->    455,015: (-2.8%)
  create PrecomputedText Greedy NoHyphenation  :    479,514 ->    461,617: (-3.7%)
  create RandomText Balanced Hyphenation       : 17,183,044 -> 17,049,811: (-0.8%)
  create RandomText Balanced NoHyphenation     :  7,183,745 ->  7,025,070: (-2.2%)
  create RandomText Greedy Hyphenation         :  7,130,841 ->  6,995,785: (-1.9%)
  create RandomText Greedy NoHyphenation       :  7,122,398 ->  7,037,074: (-1.2%)

  draw PrecomputedText NoStyled                :    520,306 ->    551,465: (+6.0%)
  draw PrecomputedText NoStyled WithoutCache   :    545,773 ->    566,956: (+3.9%)
  draw PrecomputedText Styled                  :    826,044 ->    838,979: (+1.6%)
  draw PrecomputedText Styled WithoutCache     :    829,958 ->    841,749: (+1.4%)
  draw RandomText NoStyled                     :    537,079 ->    545,428: (+1.6%)
  draw RandomText NoStyled WithoutCache        :  6,473,166 ->  6,445,194: (-0.4%)
  draw RandomText Styled                       :    995,033 ->  1,015,913: (+2.1%)
  draw RandomText Styled WithoutCache          :  2,725,313 ->  2,770,604: (+1.7%)

android.widget.TextViewPrecomputedTextPerfTest:
  newLayout PrecomputedText                    :    754,311 ->    718,130: (-4.8%)
  newLayout PrecomputedText Selectable         : 17,716,239 -> 17,484,046: (-1.3%)
  newLayout RandomText                         : 16,657,952 -> 16,511,625: (-0.9%)
  newLayout RandomText Selectable              : 17,675,222 -> 17,520,653: (-0.9%)
  onDraw PrecomputedText                       :  1,307,123 ->  1,280,009: (-2.1%)
  onDraw PrecomputedText Selectable            : 17,613,031 -> 17,404,379: (-1.2%)
  onDraw RandomText                            : 17,369,256 -> 17,295,363: (-0.4%)
  onDraw RandomText Selectable                 : 18,207,392 -> 18,077,660: (-0.7%)
  onMeasure PrecomputedText                    :    748,537 ->    739,128: (-1.3%)
  onMeasure PrecomputedText Selectable         : 17,842,953 -> 17,784,459: (-0.3%)
  onMeasure RandomText                         : 16,633,454 -> 16,549,182: (-0.5%)
  onMeasure RandomText Selectable              : 18,022,286 -> 17,873,919: (-0.8%)
  setText PrecomputedText                      :    120,769 ->    119,496: (-1.1%)
  setText PrecomputedText Selectable           :    162,411 ->    150,809: (-7.1%)
  setText RandomText                           :     11,096 ->     10,956: (-1.3%)
  setText RandomText Selectable                :     48,852 ->     48,593: (-0.5%)

Bug: 72998298
Test: atest CtsWidgetTestCases:EditTextTest
    CtsWidgetTestCases:TextViewFadingEdgeTest
    FrameworksCoreTests:TextViewFallbackLineSpacingTest
    FrameworksCoreTests:TextViewTest FrameworksCoreTests:TypefaceTest
    CtsGraphicsTestCases:TypefaceTest CtsWidgetTestCases:TextViewTest
    CtsTextTestCases FrameworksCoreTests:android.text
    CtsWidgetTestCases:TextViewPrecomputedTextTest

Change-Id: I3af758ecc5a15975c4e59c6378faf7c14c3bd65b

6 years agoFix confusing Log.e message in SpellCheckerSession
Yohei Yukawa [Tue, 20 Mar 2018 23:28:59 +0000 (16:28 -0700)]
Fix confusing Log.e message in SpellCheckerSession

With this CL, calling SpellCheckerSession#close() multiple times will
no longer show the following error message in logcat, which was quite
confusing.

  E SpellCheckerSession: ignoring processOrEnqueueTask due to
    unexpected mState=TASK_CLOSE scp.mWhat=TASK_CLOSE

Note that with a recent CL [1], we now more often see the above
message.  A typical scenario is:

  1. App creates SpellCheckerSession x.
  2. App calls x.close().
  3. x is garbage-collected. ART calls x.finalize(), which internally
     calls x.close() again.

 [1]: I4e00c3a2cec93d1dacff20546e481fe757279661
      9b64367193ffb252f869fb9f65a60b51a654119e

Bug: 72974646
Fix: 72974646
Test: Made sure that no error message in question with a test app
      that calls SpellCheckerSession#close() multiple times then
      trigger SpellCheckerSession#finalize().
Change-Id: Ie9690860e6d0406dc6746cd03c28f693e65c1dde

6 years agoMerge "Disable app_stacks and last_kmsg until they get selinux permissions." into...
TreeHugger Robot [Wed, 21 Mar 2018 01:13:21 +0000 (01:13 +0000)]
Merge "Disable app_stacks and last_kmsg until they get selinux permissions." into pi-dev

6 years agoMerge "heif: address api review comments" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 01:04:15 +0000 (01:04 +0000)]
Merge "heif: address api review comments" into pi-dev

6 years agoMerge changes from topic "heads_up_redesign" into pi-dev
Selim Cinek [Wed, 21 Mar 2018 00:53:50 +0000 (00:53 +0000)]
Merge changes from topic "heads_up_redesign" into pi-dev

* changes:
  Added new appear and disappear animations for heads up
  Polished the heads up experience
  Removed the heads up scrim and replaced it with more elevation
  Insetting heads up notifications
  Ensured that the heads-up notifications are always rounded

6 years agoMerge "Distinguish between createSurface error codes." into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 00:40:19 +0000 (00:40 +0000)]
Merge "Distinguish between createSurface error codes." into pi-dev

6 years agoMerge "Move the trusted root CA certs for RecoverableKeyStore to our own folder"...
TreeHugger Robot [Wed, 21 Mar 2018 00:38:35 +0000 (00:38 +0000)]
Merge "Move the trusted root CA certs for RecoverableKeyStore to our own folder" into pi-dev

6 years agoMerge "Fix recovery of stats data from previous input while using ProtoOutputStream...
Howard Ro [Wed, 21 Mar 2018 00:31:23 +0000 (00:31 +0000)]
Merge "Fix recovery of stats data from previous input while using ProtoOutputStream" into pi-dev

6 years agoMerge "API Review: Documentation improvement for standby buckets" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 00:08:28 +0000 (00:08 +0000)]
Merge "API Review: Documentation improvement for standby buckets" into pi-dev

6 years agoMerge "GPS metrics collection" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 00:07:03 +0000 (00:07 +0000)]
Merge "GPS metrics collection" into pi-dev

6 years agoMerge "Introduce new constructor for not copying NoCopySpan" into pi-dev
TreeHugger Robot [Wed, 21 Mar 2018 00:06:40 +0000 (00:06 +0000)]
Merge "Introduce new constructor for not copying NoCopySpan" into pi-dev

6 years agoFix docs for LocationRequest#setLowPowerMode()
Yu-Han Yang [Tue, 20 Mar 2018 22:43:56 +0000 (15:43 -0700)]
Fix docs for LocationRequest#setLowPowerMode()

Bug: 74218111
Change-Id: Ib77a58c21e2cc3601221c8b5cc13eb416dccfbc9
Fixes: 74218111
Test: N/A

6 years agoMerge "Fingerprint vibrate doesn't change based on DND" into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 23:54:01 +0000 (23:54 +0000)]
Merge "Fingerprint vibrate doesn't change based on DND" into pi-dev

6 years agoDO NOT MERGE Update references to backup/restore agent timeouts
Annie Meng [Thu, 15 Mar 2018 14:45:46 +0000 (14:45 +0000)]
DO NOT MERGE Update references to backup/restore agent timeouts

With the newly created Global setting for backup/restore agent timeouts
(backup_agent_timeout_parameters introduced in ag/3731401), update
references in backup and restore code to get the timeout values from
the setting instead of referencing constants in BMS.
This makes these timeouts configurable outside of the framework.

The default value of the setting is the same as the constants in BMS so
this should have no change on the timeout values used in the backup and
restore flow.

Bug: 70276070
Test: 1) m -j RunFrameworksServicesRoboTests
Change-Id: I0259bba76d0fed48158b8316f430b315ea98086e

6 years agoMerge "Fingerprint navigation settings is a secure setting" into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 23:46:06 +0000 (23:46 +0000)]
Merge "Fingerprint navigation settings is a secure setting" into pi-dev

6 years agoMerge "Ability to hide/unhide suspended app notifications" into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 23:38:36 +0000 (23:38 +0000)]
Merge "Ability to hide/unhide suspended app notifications" into pi-dev

6 years agoMerge "Better javadoc and rename several methods in ApnSetting." into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 23:38:10 +0000 (23:38 +0000)]
Merge "Better javadoc and rename several methods in ApnSetting." into pi-dev

6 years agoMerge "Check if the given user is unlocked when unlock by token" into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 23:36:37 +0000 (23:36 +0000)]
Merge "Check if the given user is unlocked when unlock by token" into pi-dev

6 years agoMerge "Add alpha Strings to CellIdentityTdscdma" into pi-dev
Nathan Harold [Tue, 20 Mar 2018 23:35:58 +0000 (23:35 +0000)]
Merge "Add alpha Strings to CellIdentityTdscdma" into pi-dev

6 years agoMerge "Fix pulling interval may become 0 in cts" into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 23:31:24 +0000 (23:31 +0000)]
Merge "Fix pulling interval may become 0 in cts" into pi-dev

6 years agoMerge "Revert "Dispatch global settings changes to all users."" into pi-dev
Makoto Onuki [Tue, 20 Mar 2018 23:31:02 +0000 (23:31 +0000)]
Merge "Revert "Dispatch global settings changes to all users."" into pi-dev

6 years agoRevert "Dispatch global settings changes to all users."
Makoto Onuki [Tue, 20 Mar 2018 23:27:47 +0000 (23:27 +0000)]
Revert "Dispatch global settings changes to all users."

This reverts commit 989157e1a6ae6049769a6d02af518cf9cd21bd79.

Reason for revert: Crashing stuff -- http://b/76031092

Bug: 76031092
Change-Id: I190280b4f7bd2c6fda5d88fe25fd609d1cf6d7fb

6 years agoDisable app_stacks and last_kmsg until they get selinux permissions.
Yi Jin [Tue, 20 Mar 2018 22:51:14 +0000 (15:51 -0700)]
Disable app_stacks and last_kmsg until they get selinux permissions.

Bug: 73487276
Test: atest CtsIncidentHostTestCases:com.android.server.cts.IncidentdIsolatedTest
and atest CtsIncidentHostTestCases:com.android.server.cts.IncidentdTest

Change-Id: Ifc0813d59c243a1b4afa150bbcfa4b072a044ffc

6 years agoMerge "Prevent callbacks after onStop is called." into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 23:00:45 +0000 (23:00 +0000)]
Merge "Prevent callbacks after onStop is called." into pi-dev

6 years agoScreen off animation
Lucas Dupin [Thu, 8 Feb 2018 21:14:50 +0000 (13:14 -0800)]
Screen off animation

SysUI can now control the screen off animation as long as
config_dozeAfterScreenOff is set to false.

The current implementation collapses the notification shade and moves
the clock whenever the use is on the lock screen, or will fade the
scrims and show the clock when the keyguard is occluded.

Display state change (on, doze, doze_suspended) is delayed to let the
animations occur at 60Hz.

Test: atest packages/SystemUI/tests/src/com/android/systemui/doze/DozeUiTest.java
Test: atest packages/SystemUI/tests/src/com/android/systemui/doze/DozeWallpaperStateTest.java
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Test: atest tests/src/com/android/systemui/statusbar/phone/DozeScrimControllerTest.java
Test: atest tests/src/com/android/systemui/statusbar/phone/DozeParametersTest.java
Test: atest packages/SystemUI/tests/src/com/android/systemui/keyguard/WakefulnessLifecycleTest.java
Fixes: 73178121
Change-Id: Id5d964452f342d4e97bedf1084efa808604e602c

6 years agoAllow statsd to be given empty config.
David Chen [Tue, 20 Mar 2018 21:38:56 +0000 (14:38 -0700)]
Allow statsd to be given empty config.

Statsd clients may want to set an empty config temporarily, so it's
more convenient to allow them to set an empty config instead of
having to use the removeConfig and then having to remember to call
StatsManager#setDataFetchOperation.

Test: Added unit-tests and check they pass on marlin-eng.
Bug: 74997752
Change-Id: I2e762e5ec01e5a2c9a3469fb330b53fefbd734d6

6 years agoCreate task record with window container controller when adding task
Winson Chung [Wed, 14 Mar 2018 18:36:42 +0000 (11:36 -0700)]
Create task record with window container controller when adding task

- Call through the stack to create the task record completely instead of
  creating the record directly when adding a new task. If adding the task
  fails, also remove the task from the stack
- Remove unused caching members (they were never set) optimization when
  adding tasks

Bug: 73898704
Test: Manual, install APK from bug, and start up to ensure that SysUI
      does not crash

Change-Id: I5ef778e6e8ff90c225dadcf8494de5e09798bd8b

6 years agoMerge "Mark eraseSubscriptions as @SystemApi." into pi-dev
Jiuyu Sun [Tue, 20 Mar 2018 22:53:31 +0000 (22:53 +0000)]
Merge "Mark eraseSubscriptions as @SystemApi." into pi-dev

6 years agoMerge "Use transaction for local activity relaunch" into pi-dev
Andrii Kulian [Tue, 20 Mar 2018 22:42:21 +0000 (22:42 +0000)]
Merge "Use transaction for local activity relaunch" into pi-dev

6 years agoMerge "Ensure QS contains at least 6 tiles." into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 22:40:53 +0000 (22:40 +0000)]
Merge "Ensure QS contains at least 6 tiles." into pi-dev

6 years agoAdd alpha Strings to CellIdentityTdscdma
Nathan Harold [Mon, 19 Mar 2018 23:59:40 +0000 (16:59 -0700)]
Add alpha Strings to CellIdentityTdscdma

Add equivalent alphaLong and alphaShort to
TD-SCDMA so that it's equivalent to LTE, WCDMA,
GSM, etc.

Bug: 75980473
Test: compilation
Change-Id: Ibaa8a7daafb44f7fc94f0fd6aaa193b67793eea4

6 years agoAdded new appear and disappear animations for heads up
Selim Cinek [Sat, 17 Mar 2018 00:37:50 +0000 (17:37 -0700)]
Added new appear and disappear animations for heads up

The heads up notifications now appear directly out of the
statusbar icon in a smoother way. This also fixes the
landscape presentation, which was completely wrong
before.

Test: runtest systemui
Change-Id: I84e65d5216f74a9eb1717d3e7c111d66c0b43c65
Fixes: 72748440

6 years agoPolished the heads up experience
Selim Cinek [Thu, 15 Mar 2018 19:13:51 +0000 (12:13 -0700)]
Polished the heads up experience

Test: runtest systemui
Fixes: 72748440
Change-Id: I7025119675ed260b5fe53593ea3764918593cc5e

6 years agoRemoved the heads up scrim and replaced it with more elevation
Selim Cinek [Thu, 15 Mar 2018 16:17:47 +0000 (09:17 -0700)]
Removed the heads up scrim and replaced it with more elevation

Fixes: 72748440
Test: runtest systemui
Change-Id: Id1eb413a2a44589727d212c0fefe3a1b742bb25e

6 years agoInsetting heads up notifications
Selim Cinek [Wed, 28 Feb 2018 01:35:47 +0000 (17:35 -0800)]
Insetting heads up notifications

Heads up notifications are now corretly respecting insets.
instead of overlapping with any possible notches, we're
insetting heads up notifications and splitting the main
content from the header.

Fixes: 72748440
Test: runtest systemui
Change-Id: Ie53ea31fef4e468239c4346f9d1f192bcb26e11d

6 years agoEnsured that the heads-up notifications are always rounded
Selim Cinek [Wed, 28 Feb 2018 01:05:45 +0000 (17:05 -0800)]
Ensured that the heads-up notifications are always rounded

Previously they would have a random rounding. We're now introducing
a roundness manager that isolates this from the notification list.

Bug: 72748440
Test: runtest systemui
Change-Id: I5e9e7528a55536c802b5262168664e47fbec310e

6 years agoMerge "[DO NOT MERGE] Make TCMS multi-user-aware" into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 22:20:22 +0000 (22:20 +0000)]
Merge "[DO NOT MERGE] Make TCMS multi-user-aware" into pi-dev

6 years agoMove the trusted root CA certs for RecoverableKeyStore to our own folder
Bo Zhu [Tue, 20 Mar 2018 21:27:07 +0000 (14:27 -0700)]
Move the trusted root CA certs for RecoverableKeyStore to our own folder

Bug: 74621071
Test: runtest frameworks-core -p android.security.keystore.recovery
Change-Id: I3668594b29f56832f2a1fe78b01f585c897bf952

6 years agoUpdate IME/keyboard switcher navbar icon to GM
Mike Digman [Tue, 20 Mar 2018 20:45:55 +0000 (13:45 -0700)]
Update IME/keyboard switcher navbar icon to GM

Change-Id: Ie0510fd5cc7bb71c5d451288b02c9acd56615c0a
Fixes: 74761137
Test: manual

6 years agoMerge "Don't set override display info for ActivityView" into pi-dev
Andrii Kulian [Tue, 20 Mar 2018 22:01:27 +0000 (22:01 +0000)]
Merge "Don't set override display info for ActivityView" into pi-dev

6 years agoMerge "Wait with reparenting back until all app animations are done" into pi-dev
Jorim Jaggi [Tue, 20 Mar 2018 22:01:10 +0000 (22:01 +0000)]
Merge "Wait with reparenting back until all app animations are done" into pi-dev

6 years agoFix recovery of stats data from previous input while using
yro [Fri, 16 Mar 2018 02:42:05 +0000 (19:42 -0700)]
Fix recovery of stats data from previous input while using
ProtoOutputStream

- Specify the length of message to avoid libprotoutil from thinking that
we are trying to write bool
- We only attach the previous dump file to the upload file where config
key matches
- Store ConfigMetricsReport (instead of ConfigMetricsReportList) onto
disk
- Stop use stack after scope in StorageManager
- Migrate UidMap to use ProtoOutputStream and renaming variables to
prevent confusion

Bug: 74021554
Bug: 75968524
Test: manual test, statsd_test, CTS tests
Change-Id: Iedf52633d7f5b985f5a934a3fb5a0c3c3b2e7fd1

6 years agoWait with reparenting back until all app animations are done
Jorim Jaggi [Mon, 19 Mar 2018 13:53:23 +0000 (14:53 +0100)]
Wait with reparenting back until all app animations are done

An activity A that has a shorter animation that is above another
activity B with a longer animation in the same task, the animation
layer would put the B on top of A, but from the hierarchy, A needs
to be on top of B. Thus, we defer reparenting A to the original
hierarchy such that it stays on top of B until B finishes
animating.

Test: Above scenario
Test: AnimatingAppWindowTokenRegistryTest
Fixes: 75246892
Change-Id: I73796376c1cbeb8327262a304911ce2abfbbb0b6

6 years agoMerge "Camera2: Deprecate LENS_RADIAL_DISTORTION, add LENS_DISTORTION" into pi-dev
Eino-Ville Talvala [Tue, 20 Mar 2018 21:58:15 +0000 (21:58 +0000)]
Merge "Camera2: Deprecate LENS_RADIAL_DISTORTION, add LENS_DISTORTION" into pi-dev

6 years agoMerge "Fix cutoff g in "Restarting"/"Shutting down" messages." into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 21:58:01 +0000 (21:58 +0000)]
Merge "Fix cutoff g in "Restarting"/"Shutting down" messages." into pi-dev

6 years agoMerge "Revert "Revert "Add setting for enabling CPU frequency scaling.""" into pi-dev
Alice Sheng [Tue, 20 Mar 2018 21:56:40 +0000 (21:56 +0000)]
Merge "Revert "Revert "Add setting for enabling CPU frequency scaling.""" into pi-dev

6 years agoMerge "[DO NOT MERGE] Eliminate duplicate layers in A11yService#getWindows()" into...
TreeHugger Robot [Tue, 20 Mar 2018 21:46:40 +0000 (21:46 +0000)]
Merge "[DO NOT MERGE] Eliminate duplicate layers in A11yService#getWindows()" into pi-dev

6 years agoFingerprint navigation settings is a secure setting
Kevin Chyn [Tue, 20 Mar 2018 21:42:39 +0000 (14:42 -0700)]
Fingerprint navigation settings is a secure setting

Fixes: 76025501

Test: turning on/off the navigation setting actually turns on/off
      the ability to swipe the notification panel

Change-Id: I465fcebfc1e248bd37a609f404462ae8a45cf31b

6 years agoEnsure rotate disable2 flag can be set on boot
Mike Digman [Tue, 20 Mar 2018 19:14:54 +0000 (12:14 -0700)]
Ensure rotate disable2 flag can be set on boot

SUW sometimes calls disable2 before getView() is non-null.

Change-Id: I6a201e05da5e1d72829f469487279d2c607f6eed
Fixes: 75291849
Test: manual

6 years agoAbility to hide/unhide suspended app notifications
Beverly [Tue, 6 Mar 2018 20:02:44 +0000 (15:02 -0500)]
Ability to hide/unhide suspended app notifications

Test: NotificationListenerVerifierActivity.java
Test: atest NotificationDataTest NotificationListenerServiceTest NotificationManagerServiceTest
Bug: 73965645
Change-Id: I49a02e9fd84dfaa1891437a5d8fc52109a43cded

6 years agoMerge "[DO NOT MERGE] Magnify status bar" into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 21:39:52 +0000 (21:39 +0000)]
Merge "[DO NOT MERGE] Magnify status bar" into pi-dev

6 years agoDistinguish between bringing stack to front and delivering to top.
Bryce Lee [Mon, 19 Mar 2018 22:29:49 +0000 (15:29 -0700)]
Distinguish between bringing stack to front and delivering to top.

When we are in split-screen mode and are delivering an intent an
activity in an unfocused task, we report back we are bringing the
task to front. This is sometimes incorrect as the task is already
visible.

This changelist addresses this issue by checking the launch stack's
position in split-screen. If it is the topmost stack of its type,
then we will report back START_DELIVERED_TO_TOP instead of
START_TASK_TO_FRONT.

Change-Id: Ic900a8195a40fd485551a90d1a66e055b0b2539b
Fixes: 72411159
Test: atest FrameworksServicesTests:ActivityStarterTests#testSplitScreenDeliverToTop
Test: atest FrameworksServicesTests:ActivityStarterTests#testSplitScreenTaskToFront

6 years agoMerge "Log visual interruptions to usagestats." into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 21:34:01 +0000 (21:34 +0000)]
Merge "Log visual interruptions to usagestats." into pi-dev

6 years agoIntroduce new constructor for not copying NoCopySpan
Seigo Nonaka [Tue, 20 Mar 2018 02:02:39 +0000 (19:02 -0700)]
Introduce new constructor for not copying NoCopySpan

To hold the original text in PrecomputedText, need to create
SpannableString, but copying NoCopySpan causes some side effect.
This CL introduces a way of copying SpannableString/SpannedString
with all spans other than NoCopySpan.

Bug: 72998298
Bug: 35638900
Test: atest CtsWidgetTestCases:EditTextTest
    CtsWidgetTestCases:TextViewFadingEdgeTest
    FrameworksCoreTests:TextViewFallbackLineSpacingTest
    FrameworksCoreTests:TextViewTest FrameworksCoreTests:TypefaceTest
    CtsGraphicsTestCases:TypefaceTest CtsWidgetTestCases:TextViewTest
    CtsTextTestCases FrameworksCoreTests:android.text
    CtsWidgetTestCases:TextViewPrecomputedTextTest

Change-Id: I20dea2114ccaa54b16ff679c97682a5003f9a4c1

6 years agoMerge "Make SYSTEM_INTERACTION a SystemApi" into pi-dev
TreeHugger Robot [Tue, 20 Mar 2018 21:31:58 +0000 (21:31 +0000)]
Merge "Make SYSTEM_INTERACTION a SystemApi" into pi-dev