OSDN Git Service

android-x86/frameworks-base.git
6 years agoClear the frame buffer for F16 pixel format
Stan Iliev [Fri, 23 Mar 2018 14:50:11 +0000 (10:50 -0400)]
Clear the frame buffer for F16 pixel format

This is a workaround for Qualcomm bug and should be reverted
after a proper fixed is found.

Bug: 74976293
Test: Ran Photo app
Change-Id: I9e0a4634f02c3553635f058eb588b510a63273ba

6 years agoMerge "Remove unneeded sysui notifications" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 19:16:55 +0000 (19:16 +0000)]
Merge "Remove unneeded sysui notifications" into pi-dev

6 years agoMerge "Disabler AppStateTracker debug log" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 19:10:16 +0000 (19:10 +0000)]
Merge "Disabler AppStateTracker debug log" into pi-dev

6 years agoMerge "Revert "Make PrecomputedText Spannable for supporting selection"" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 19:02:34 +0000 (19:02 +0000)]
Merge "Revert "Make PrecomputedText Spannable for supporting selection"" into pi-dev

6 years agoMerge changes Ifc6355e2,Ia8afa338 into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 18:48:32 +0000 (18:48 +0000)]
Merge changes Ifc6355e2,Ia8afa338 into pi-dev

* changes:
  DisplayCutout: Correctly apply light status bar
  Letterboxing: ensure bar contrast

6 years agoMerge "Cosmetic changes on Field Classification TODOs and docs." into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 18:44:24 +0000 (18:44 +0000)]
Merge "Cosmetic changes on Field Classification TODOs and docs." into pi-dev

6 years agoMerge "Add setting for enabling CPU frequency scaling." into pi-dev
Alice Sheng [Mon, 19 Mar 2018 18:41:40 +0000 (18:41 +0000)]
Merge "Add setting for enabling CPU frequency scaling." into pi-dev

6 years agoMerge "Bluetooth: preserve one advertisement slot for GMS core" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 18:28:28 +0000 (18:28 +0000)]
Merge "Bluetooth: preserve one advertisement slot for GMS core" into pi-dev

6 years agoMerge "Fixed AutofillManager.isAutofillUiShowing()" into pi-dev
Felipe Leme [Mon, 19 Mar 2018 18:27:20 +0000 (18:27 +0000)]
Merge "Fixed AutofillManager.isAutofillUiShowing()" into pi-dev

6 years agoFixed AutofillManager.isAutofillUiShowing()
Felipe Leme [Mon, 19 Mar 2018 18:15:00 +0000 (11:15 -0700)]
Fixed AutofillManager.isAutofillUiShowing()

It was using & instead of &&

Test: not really
Bug: 75652829
Bug: 74527545

Change-Id: Ib8ca79ba6ec35d2fc97f042db2152b03d334ce30

6 years agoMerge "Fix Javadoc of DevicePolicyManager#setStorageEncryption to reflect that it...
Alex Kershaw [Mon, 19 Mar 2018 18:17:23 +0000 (18:17 +0000)]
Merge "Fix Javadoc of DevicePolicyManager#setStorageEncryption to reflect that it's a no-op (and silent fail) when called from a non-system user." into pi-dev

6 years agoMerge "Deletes default allowed_log_sources in statsd." into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 18:14:18 +0000 (18:14 +0000)]
Merge "Deletes default allowed_log_sources in statsd." into pi-dev

6 years agoMerge "Display that MAC is randomized in About Phones" into pi-dev
Jong Wook Kim [Mon, 19 Mar 2018 18:14:08 +0000 (18:14 +0000)]
Merge "Display that MAC is randomized in About Phones" into pi-dev

6 years agoMerge "Fix PackageParser tests" into pi-dev
Adrian Roos [Mon, 19 Mar 2018 18:02:22 +0000 (18:02 +0000)]
Merge "Fix PackageParser tests" into pi-dev

6 years agoMerge "Resolve STATSD and batterystats race condition" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 18:00:40 +0000 (18:00 +0000)]
Merge "Resolve STATSD and batterystats race condition" into pi-dev

6 years agoMerge "Don't use IPC in isolateProcess" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 17:56:14 +0000 (17:56 +0000)]
Merge "Don't use IPC in isolateProcess" into pi-dev

6 years agoMerge changes I72119772,I124e4cc0,I462d4dfc into pi-dev
Chavi Weingarten [Mon, 19 Mar 2018 17:40:31 +0000 (17:40 +0000)]
Merge changes I72119772,I124e4cc0,I462d4dfc into pi-dev

* changes:
  Clear all options from Task when any ActivityRecord consumes the options.
  Revert "Set options on startingActivity instead of topActivity"
  Revert "Set options for activity being brought to front."

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 17:24:17 +0000 (17:24 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 17:22:52 +0000 (17:22 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Fix KeyButtonDrawable dark intensity logic error" into pi-dev
Mike Digman [Mon, 19 Mar 2018 17:22:39 +0000 (17:22 +0000)]
Merge "Fix KeyButtonDrawable dark intensity logic error" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 17:17:52 +0000 (17:17 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 17:17:12 +0000 (17:17 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Add disable2 flag for rotate suggestions" into pi-dev
Mike Digman [Mon, 19 Mar 2018 17:13:30 +0000 (17:13 +0000)]
Merge "Add disable2 flag for rotate suggestions" into pi-dev

6 years agoMerge "Light greylist additions." into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 17:08:45 +0000 (17:08 +0000)]
Merge "Light greylist additions." into pi-dev

6 years agoRevert "Make PrecomputedText Spannable for supporting selection"
Seigo Nonaka [Mon, 19 Mar 2018 17:04:30 +0000 (17:04 +0000)]
Revert "Make PrecomputedText Spannable for supporting selection"

Crash on Sheets APp
This reverts commit 80ed5a35a90b62b8070d861b9755e230bd679951.

Bug: 75652829
Change-Id: I40ddd1b9754e74fbd90d7a029cce9c6a7ede0777
Test: Manual

6 years agoMerge "Update mobile data off dialog." into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 16:58:23 +0000 (16:58 +0000)]
Merge "Update mobile data off dialog." into pi-dev

6 years agoDisplayCutout: Correctly apply light status bar
Adrian Roos [Mon, 19 Mar 2018 16:47:12 +0000 (17:47 +0100)]
DisplayCutout: Correctly apply light status bar

Fixes an issue where light navigation bar was not
properly applied in landscape where the letterbox
does not overlap with the status bar.

This removes a hack that is no longer necessary
now that we track exactly if the letterbox overlaps
the system bars and put them into black-background
mode if so.

Bug: 72696928
Test: Open API Demos > Activity > Max Aspect Ratio > Any; rotate to landscape, verify that status bar is light.
Change-Id: Ifc6355e2eeadf0821c9ac82ce78c812916de5034

6 years agoMerge "Enable cleartext for captive portal apps" into pi-dev
Lorenzo Colitti [Mon, 19 Mar 2018 16:49:47 +0000 (16:49 +0000)]
Merge "Enable cleartext for captive portal apps" into pi-dev

6 years agoMerge "Frameworks: Make MockUtils more robust" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 16:47:30 +0000 (16:47 +0000)]
Merge "Frameworks: Make MockUtils more robust" into pi-dev

6 years agoMerge "Removed flaky annotation from testFocusedWindowMultipleDisplays" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 16:46:19 +0000 (16:46 +0000)]
Merge "Removed flaky annotation from testFocusedWindowMultipleDisplays" into pi-dev

6 years agoMerge "Whitelist FullBackupDataOutput" into pi-dev
Sarah Edris [Mon, 19 Mar 2018 16:42:39 +0000 (16:42 +0000)]
Merge "Whitelist FullBackupDataOutput" into pi-dev

6 years agoDisabler AppStateTracker debug log
Makoto Onuki [Mon, 19 Mar 2018 16:39:56 +0000 (09:39 -0700)]
Disabler AppStateTracker debug log

Bug: 75934261
Change-Id: I0c09472073b90366441e6f63f8621c12b99265b2
Fix: 75934261
Test: boot
Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/AppStateTrackerTest.java

6 years agoRemove unneeded sysui notifications
Julia Reynolds [Sun, 18 Mar 2018 18:54:27 +0000 (14:54 -0400)]
Remove unneeded sysui notifications

Test: atest SystemUITests
Bug: 75436062
Change-Id: I45810c494f9f55595d3b0aeda7f23493411f4f71

6 years agoMerge "Softens one of the battery strings per UI request" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 16:27:41 +0000 (16:27 +0000)]
Merge "Softens one of the battery strings per UI request" into pi-dev

6 years agoMerge "StatsManager log lines should be in logcat" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 16:18:53 +0000 (16:18 +0000)]
Merge "StatsManager log lines should be in logcat" into pi-dev

6 years agoDisplay that MAC is randomized in About Phones
Jong Wook Kim [Wed, 14 Mar 2018 18:16:06 +0000 (11:16 -0700)]
Display that MAC is randomized in About Phones

When Connected MAC Randomization is enabled and the device is
disconnected, there isn't a valid MAC address to display since we don't
know what the device's next MAC address is going to be.

In such cases, display "MAC address is randomized" instead of an invalid
MAC address in About Phones page.

Bug: 73663275
Test: make RunSettingsLibRoboTests -j40
Change-Id: I0a4df2b1b0823632b26f90e097c26f47dd5a0a67

6 years agoMerge "Insert correct app transition events for recents anim" into pi-dev
Jorim Jaggi [Mon, 19 Mar 2018 15:36:05 +0000 (15:36 +0000)]
Merge "Insert correct app transition events for recents anim" into pi-dev

6 years agoMerge "Fix SyncResutl.delayUntil javadoc" into pi-dev
Makoto Onuki [Mon, 19 Mar 2018 15:12:36 +0000 (15:12 +0000)]
Merge "Fix SyncResutl.delayUntil javadoc" into pi-dev

6 years agoLetterboxing: ensure bar contrast
Adrian Roos [Thu, 15 Mar 2018 14:41:13 +0000 (15:41 +0100)]
Letterboxing: ensure bar contrast

Ensures that any bars that draw over a letterbox draw their own
background such that they always have contrast.

This fixes an issue, where if a light status / navigation bar app was
letterboxed, the bar would still draw dark icons over the now black
letterbox, making the icons unreadable.

To do so, splits the letterbox into a layout and an apply surface
changes phase.

Change-Id: Ia8afa3386d75d9a72434d701b867c3ebc35cc36f
Fixes: 72696928
Test: Open a letterboxed app with a white navigation bar, verify it is visible
Test: ApiDemos > App > Activity > Max Aspect Ratio > 1:1, verify navbar is visible

6 years agoInsert correct app transition events for recents anim
Jorim Jaggi [Thu, 15 Mar 2018 14:51:32 +0000 (15:51 +0100)]
Insert correct app transition events for recents anim

The transition delay will be the latency until all the leashes
were created etc. Thus, the actual latency is going to be in
WINDOWS_DRAWN_DELAY.

Also fix an issue where we inadvertently started a transition,
and then the transition logger was hanging.

Bug: 72967764
Test: Swipe up from home button, observe eventlog
Change-Id: I2b1fb7d9d694a629a33653c1fa3d5ed47f53de6b

6 years agoUpdate mobile data off dialog.
Amin Shaikh [Fri, 9 Mar 2018 19:50:59 +0000 (14:50 -0500)]
Update mobile data off dialog.

Show the mobile data turn off dialog until the user taps the turn off
button. All subsequent toggles will immediately toggle data on/off. Also
update the message copy.

Fixes: 74072757
Test: runtest systemui && manual
Change-Id: I489d5c3c19d52a6f531b1b925b3210019412243b

6 years agoLight greylist additions.
Mathew Inwood [Mon, 19 Mar 2018 14:31:17 +0000 (14:31 +0000)]
Light greylist additions.

Gathered from dogfood bugreports.

Test: m

Bug: 74940461
Change-Id: I08a450f987ae0e87ab6f7306e9d89a7ca3368f70

6 years agoFix PackageParser tests
Adrian Roos [Mon, 19 Mar 2018 13:51:02 +0000 (14:51 +0100)]
Fix PackageParser tests

Also adds the well-known-fields test to presubmit to prevent
similar breakage in the future.

Change-Id: I717396802b5978b2da9de78a6203303082663d38
Fixes: 75450512
Test: atest PackageParserTest

6 years agoRemoved flaky annotation from testFocusedWindowMultipleDisplays
Wale Ogunwale [Mon, 19 Mar 2018 14:35:32 +0000 (07:35 -0700)]
Removed flaky annotation from testFocusedWindowMultipleDisplays

No longer flaky

https://dashboards.corp.google.com/google::_550f6bcf_09dd_4963_b94c_d243e37d002f?f=class_name:in:com.android.server.wm.DisplayContentTests&f=test_name:in:com.android.server.wm.DisplayContentTests.testFocusedWindowMultipleDisplays&f=run_date_usec:eq:(null)&f=presubmit:in:false&f=build_id:eq:(null)

Change-Id: I10504a24144e7636ab7205a079415f6d4eeba043
Fixes: 37908381
Test: self

6 years agoMerge "ConfirmationDialog: Fail if accessibility services are running." into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 14:27:16 +0000 (14:27 +0000)]
Merge "ConfirmationDialog: Fail if accessibility services are running." into pi-dev

6 years agoWhitelist FullBackupDataOutput
Sarah Edris [Mon, 19 Mar 2018 12:48:28 +0000 (12:48 +0000)]
Whitelist FullBackupDataOutput

Bug: 74424953
Test: N/A
Change-Id: I3b0386fa004352ef32cb03ba2c53a53bd0f6e1f1

6 years agoMerge "Fix test failure" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 14:02:13 +0000 (14:02 +0000)]
Merge "Fix test failure" into pi-dev

6 years agoMerge "Add more hidden APIs on the light greylist" into pi-dev
David Brazdil [Mon, 19 Mar 2018 13:31:55 +0000 (13:31 +0000)]
Merge "Add more hidden APIs on the light greylist" into pi-dev

6 years agoMerge "Fix lockscreen notification launch animation" into pi-dev
Jorim Jaggi [Mon, 19 Mar 2018 13:23:30 +0000 (13:23 +0000)]
Merge "Fix lockscreen notification launch animation" into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 19 Mar 2018 13:12:52 +0000 (06:12 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Icb81b9c2336d04310365592f1cccb53dad0c0403

6 years agoMerge "Trace currently resumed app" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 13:06:30 +0000 (13:06 +0000)]
Merge "Trace currently resumed app" into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 19 Mar 2018 12:57:48 +0000 (05:57 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I43866a852ad32c8acdcbd994e24f1604d32ee2af

6 years agoMerge "Close file descriptors of ProfilerInfo" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 12:53:21 +0000 (12:53 +0000)]
Merge "Close file descriptors of ProfilerInfo" into pi-dev

6 years agoMerge "Don't allow focus on activity in minimized split-screen." into pi-dev
Wale Ogunwale [Mon, 19 Mar 2018 12:30:08 +0000 (12:30 +0000)]
Merge "Don't allow focus on activity in minimized split-screen." into pi-dev

6 years agoMerge "DPM: Fix isActivePasswordSufficient for non-FBE devices" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 11:20:27 +0000 (11:20 +0000)]
Merge "DPM: Fix isActivePasswordSufficient for non-FBE devices" into pi-dev

6 years agoFix Javadoc of DevicePolicyManager#setStorageEncryption to reflect that
Alex Kershaw [Fri, 16 Mar 2018 14:31:04 +0000 (14:31 +0000)]
Fix Javadoc of DevicePolicyManager#setStorageEncryption to reflect that
it's a no-op (and silent fail) when called from a non-system user.

DevicePolicyManagerService#setStorageEncryption also has its Javadoc
fixed.

Bug: 74591983
Change-Id: Ie191ad255cbfcade921d172641f134d6c49a17b1
Fixes: 74591983
Test: N/A - just javadoc changed

6 years agoAdd more hidden APIs on the light greylist
David Brazdil [Fri, 16 Mar 2018 17:24:51 +0000 (17:24 +0000)]
Add more hidden APIs on the light greylist

Uses reported by the public.

Bug: 64382372
Bug: 74524607
Bug: 74271830
Bug: 74498446
Bug: 74272004
Bug: 74322289
Bug: 74278847
Bug: 74175716
Bug: 74131602
Bug: 74357020
Bug: 74265544
Bug: 74130810
Bug: 74537180
Bug: 74496079
Bug: 74600951
Test: make
Change-Id: I884e76101bdd3d6b08a690810a5b4f5e09306980

6 years agoMerge "MediaSession2: Implement fastForward() / rewind()" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 10:45:03 +0000 (10:45 +0000)]
Merge "MediaSession2: Implement fastForward() / rewind()" into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 19 Mar 2018 09:49:10 +0000 (02:49 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ic2f2032f012221333c28ad0793693f2575434e54

6 years agoMediaSession2: Implement fastForward() / rewind()
Jaewan Kim [Thu, 15 Mar 2018 11:31:06 +0000 (20:31 +0900)]
MediaSession2: Implement fastForward() / rewind()

Bug: 74724709
Test: Run CTS with MediaComponents/runcts.sh
Change-Id: Ibd313dc6eed82a5d7cc9fc156f7851aba13f9e29

6 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 19 Mar 2018 08:34:02 +0000 (01:34 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I689307250cc85c025fca7fd0a0ffbfe30f909fb1

6 years agoMerge "Delete TODO about renumbering statd atoms" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 05:54:22 +0000 (05:54 +0000)]
Merge "Delete TODO about renumbering statd atoms" into pi-dev

6 years agoMerge changes I3ffb6e97,I689df136,Ia67a8eb6 into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 05:49:27 +0000 (05:49 +0000)]
Merge changes I3ffb6e97,I689df136,Ia67a8eb6 into pi-dev

* changes:
  Statsd: remove DurationAnomalyTracker.resetStorage
  Statsd AnomalyDetection stopAlarm also checks old
  Statsd AnomalyDetection improvements

6 years agoMerge "Disable scrim focus on AOD" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 05:03:50 +0000 (05:03 +0000)]
Merge "Disable scrim focus on AOD" into pi-dev

6 years agoMerge "Remove Context requirement from updatable" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 04:02:29 +0000 (04:02 +0000)]
Merge "Remove Context requirement from updatable" into pi-dev

6 years agoMerge changes Ia438f4a2,I356c2d57 into pi-dev
Lucas Dupin [Mon, 19 Mar 2018 03:11:51 +0000 (03:11 +0000)]
Merge changes Ia438f4a2,I356c2d57 into pi-dev

* changes:
  Bouncer notification and QS scrim
  Fix bouncer not showing on top of QS or notif

6 years agoMerge "SystemUI: Temporarily disable test" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 01:18:22 +0000 (01:18 +0000)]
Merge "SystemUI: Temporarily disable test" into pi-dev

6 years agoFrameworks: Make MockUtils more robust
Andreas Gampe [Sun, 18 Mar 2018 23:46:24 +0000 (16:46 -0700)]
Frameworks: Make MockUtils more robust

Avoid a NullPointerException.

Bug: 75459260
Test: mmma frameworks/base/services/tests/servicestests
Change-Id: I2e273b3bd808226507e5e50b537d70edb25950a6

6 years agoMerge "Writes the resource table proto out when writing a LoadedApk." into pi-dev
Cory Smith [Sun, 18 Mar 2018 22:59:27 +0000 (22:59 +0000)]
Merge "Writes the resource table proto out when writing a LoadedApk." into pi-dev

6 years agoSystemUI: Temporarily disable test
Andreas Gampe [Sun, 18 Mar 2018 22:35:39 +0000 (15:35 -0700)]
SystemUI: Temporarily disable test

Bug: 75329085
Test: none
Exempt-From-Owner-Approval: Let TH pass while investigating
Change-Id: I4c007e5162502f0064b65a89408882e4c348e0db

6 years agoWrites the resource table proto out when writing a LoadedApk.
corysmith@google.com [Tue, 13 Mar 2018 16:04:10 +0000 (12:04 -0400)]
Writes the resource table proto out when writing a LoadedApk.

Small fixes for consistancy to use constants instead of strings.

Change-Id: I33439c376e1634b7957730ce16e241b0f5bb92f8
Fixes: 74594854
Test: Manual, tested against blaze test //javatests/com/google/devtools/build/android:UnitTests

6 years agoStatsManager log lines should be in logcat
Bookatz [Sat, 17 Mar 2018 00:13:33 +0000 (17:13 -0700)]
StatsManager log lines should be in logcat

Change the Slog.d to Slog.w and enable them, so that we can see them.
They seem to represent important failure events when people call the
public API into StatsManager.

Bug: 74997752
Test: none
Change-Id: I1c577b32358158f73453a8a3066013e0f3733d87

6 years agoBouncer notification and QS scrim
Lucas Dupin [Tue, 13 Mar 2018 21:00:24 +0000 (14:00 -0700)]
Bouncer notification and QS scrim

Show front scrim when the notification panel is expanded,
otherwise pin would be overlayed on top of notifications.

Change-Id: Ia438f4a2794eb9510ec05ad86cc8c19e2e716358
Fixes: 74550013
Test: double tap on notification when locked
Test: tap on QS edit button when locked
Test: unlock by swipping up
Test: fling quickly on keyguard

6 years agoMerge "Modify time only mode flag into set of values instead of just one." into pi-dev
Michael Kwan [Sat, 17 Mar 2018 22:05:38 +0000 (22:05 +0000)]
Merge "Modify time only mode flag into set of values instead of just one." into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Sat, 17 Mar 2018 15:22:58 +0000 (15:22 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Add placeholder on DND settings screen." into pi-dev
Julia Reynolds [Sat, 17 Mar 2018 14:28:41 +0000 (14:28 +0000)]
Merge "Add placeholder on DND settings screen." into pi-dev

6 years agoRemove Context requirement from updatable
Christofer Ã…kersten [Thu, 15 Mar 2018 11:24:39 +0000 (20:24 +0900)]
Remove Context requirement from updatable

Bug: 74843539
Test: runtest-cts-MediaComponents && atest VideoView2Test
Change-Id: Iba5422f8d092205316ec3fa2c10da6d3f983fde6

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 17 Mar 2018 06:33:48 +0000 (23:33 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I4f0cac1ca19646cb5e45c5d84814883a3c11c1d6

6 years agoMerge "Docstring Updates for applyTransportModeTransform" into pi-dev
TreeHugger Robot [Sat, 17 Mar 2018 03:44:46 +0000 (03:44 +0000)]
Merge "Docstring Updates for applyTransportModeTransform" into pi-dev

6 years agoMerge "Don't truncate empty text on low density" into pi-dev
Julia Reynolds [Sat, 17 Mar 2018 01:36:04 +0000 (01:36 +0000)]
Merge "Don't truncate empty text on low density" into pi-dev

6 years agoMerge "Add new semantic Person fields" into pi-dev
Julia Reynolds [Sat, 17 Mar 2018 01:35:20 +0000 (01:35 +0000)]
Merge "Add new semantic Person fields" into pi-dev

6 years agoAdd placeholder on DND settings screen.
Julia Reynolds [Thu, 15 Mar 2018 13:27:31 +0000 (09:27 -0400)]
Add placeholder on DND settings screen.

Test: make
Bug: 74321426
Change-Id: Ie457b3c994a0d851d835a56a01c28a0acbf102e3

6 years agoMerge "Add cycle-clean option in AppLaunch" into pi-dev
Gopinath Elanchezhian [Sat, 17 Mar 2018 00:55:05 +0000 (00:55 +0000)]
Merge "Add cycle-clean option in AppLaunch" into pi-dev

6 years agoDocstring Updates for applyTransportModeTransform
Nathan Harold [Tue, 6 Mar 2018 21:22:22 +0000 (13:22 -0800)]
Docstring Updates for applyTransportModeTransform

-Add anotations to usages of PolicyDirection for
 apply...() methods.
-Update the comments on DIRECTION_IN and DIRECTION_OUT
 to better reflect their current usage.
-Add a better explanation to the rekey procedure doc.
-Remove disused createTunnelInterface() stub.

Bug: 73751066
Test: make docs
Merged-In: I9f2ec864466148a18899f1e952c74a525902ccbc
Change-Id: I9f2ec864466148a18899f1e952c74a525902ccbc
(cherry picked from commit f4cdf25a906d0f52ffd76508d660b843b13b3ff8)

6 years agoDon't use IPC in isolateProcess
John Reck [Sat, 17 Mar 2018 00:27:17 +0000 (17:27 -0700)]
Don't use IPC in isolateProcess

Fixes: 74395652
Test: hwuiunit passes in 'shell stop' state (pseudo-isolated process),
      manually checked non-isolated processes still have working vsync
      via systrace of RT animations demo

Change-Id: I630ea011dc7eb2efa265b25673d3304b3b2510d3

6 years agoResolve STATSD and batterystats race condition
Mike Ma [Wed, 14 Mar 2018 01:53:21 +0000 (18:53 -0700)]
Resolve STATSD and batterystats race condition

Both STATSD and batterystats need to read uid cpu info. However, uid cpu
stats needs to be cleared from time to time to conserve memory. To
resolve this race condition, only batterystats will remove uid stats,
both from readers and from the kernel, also with a delay, so that STATSD
can access such info before it is removed.

Refactored readers to reuse some common code. Also removed string reader
from KernelUidCpuFreqTimeReader completely since binary reader has been
working fine for a while.

Change-Id: I209bdcec642e1a29a44b566ce98ebbfaaacb4e6a
Fixes: 72172569
Test: BatteryStatsCpuTimesTest
Test: KernelUidCpuActiveTimeReaderTest
Test: KernelUidCpuClusterTimeReaderTest
Test: KernelUidCpuFreqTimeReaderTest

6 years agoMerge "Hide notifications when in Lockdown mode" into pi-dev
Chad Brubaker [Sat, 17 Mar 2018 00:16:34 +0000 (00:16 +0000)]
Merge "Hide notifications when in Lockdown mode" into pi-dev

6 years agoMerge "Add null check to RecentTasks.java" into pi-dev
Wale Ogunwale [Fri, 16 Mar 2018 23:53:29 +0000 (23:53 +0000)]
Merge "Add null check to RecentTasks.java" into pi-dev

6 years agoClear all options from Task when any ActivityRecord consumes the options.
chaviw [Thu, 15 Mar 2018 21:26:29 +0000 (14:26 -0700)]
Clear all options from Task when any ActivityRecord consumes the options.

Multiple ActivityRecords can get the same options if they are in some state of
being launched. If the Task starts and already has ActivityRecords in the Task,
they will also get the new options. It's pretty difficult to prevent that since
they are being moved to the front, even though another activity will launch on
top. Instead, just clear all ActivityRecord's options in the same Task so only
one is ever consumed.

Fixes: 74611027
Test: Launch activity then background. Open second activity from
notification. When pressing back, window animation should start.
Test: Launch activity, press home, launch same activity. Starting
animation occurs on the second launch.
Test: testsApplyOptionsLocked

Change-Id: I72119772851102cbb71d59527c5f0256b575752b

6 years agoRevert "Set options on startingActivity instead of topActivity"
chaviw [Thu, 15 Mar 2018 21:24:14 +0000 (14:24 -0700)]
Revert "Set options on startingActivity instead of topActivity"

This reverts commit ee6f81b20286e5942ce738763e3b8713dfc7c9ac.

Bug: 74611027

6 years agoRevert "Set options for activity being brought to front."
chaviw [Thu, 15 Mar 2018 21:23:55 +0000 (14:23 -0700)]
Revert "Set options for activity being brought to front."

This reverts commit df750a3f190ce7ad704971d7f684019780e2741a.

Bug: 74611027

6 years agoMerge "Allow carrier-privileged apps to register telephony listeners." into pi-dev
Jeff Davidson [Fri, 16 Mar 2018 23:48:51 +0000 (23:48 +0000)]
Merge "Allow carrier-privileged apps to register telephony listeners." into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Fri, 16 Mar 2018 23:30:49 +0000 (23:30 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Create snapshot even if no PendingIntent is registered" into pi-dev
Robert Berry [Fri, 16 Mar 2018 23:13:53 +0000 (23:13 +0000)]
Merge "Create snapshot even if no PendingIntent is registered" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Fri, 16 Mar 2018 22:59:32 +0000 (22:59 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoDelete TODO about renumbering statd atoms
Bookatz [Fri, 16 Mar 2018 22:47:57 +0000 (15:47 -0700)]
Delete TODO about renumbering statd atoms

Test: none
Bug: 72553942
Change-Id: If59ee407dffaed713a3a2f7543314aef3e70ef2c

6 years agoMerge "App Time Limits API in UsageStats" into pi-dev
TreeHugger Robot [Fri, 16 Mar 2018 22:40:46 +0000 (22:40 +0000)]
Merge "App Time Limits API in UsageStats" into pi-dev

6 years agoMerge "Unhide getKey() and importKey() and the whole class of RecoveryController...
Aseem Kumar [Fri, 16 Mar 2018 22:27:37 +0000 (22:27 +0000)]
Merge "Unhide getKey() and importKey() and the whole class of RecoveryController. Added @RequiresPermission(android.permission.RECOVER_KEYSTORE) on all public APIs of RecoveryController." into pi-dev

6 years agoStatsd: remove DurationAnomalyTracker.resetStorage
Bookatz [Fri, 16 Mar 2018 22:25:49 +0000 (15:25 -0700)]
Statsd: remove DurationAnomalyTracker.resetStorage

The explicit resetStorage function in the subclass isn't needed.
It does exactly what its superclass does.
The previous check for !mAlarms.empty() was actually not needed, since
there can be legit cases where !mAlarms.empty() (namely, when the
mMostRecentBucket is moved forward initially - we may call reset, but we
still want the old alarms to remain).

Test: still pass
Change-Id: I3ffb6e97c02b75170c246f57d55ccf59cd368b9c
Fixes: 74607818

6 years agoSoftens one of the battery strings per UI request
Salvador Martinez [Fri, 16 Mar 2018 22:15:30 +0000 (15:15 -0700)]
Softens one of the battery strings per UI request

Bug: 74448640
Test: robotests updated
Change-Id: I25a18dcad343fd0eeeeac504570eea7a1a325a1a