OSDN Git Service

android-x86/frameworks-base.git
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 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 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 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 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 agoMerge "Also show "last BS off time" in dumpsys power" into pi-dev
Makoto Onuki [Fri, 16 Mar 2018 21:48:20 +0000 (21:48 +0000)]
Merge "Also show "last BS off time" in dumpsys power" into pi-dev

6 years agoDon't truncate empty text on low density
Julia Reynolds [Thu, 15 Mar 2018 19:20:16 +0000 (15:20 -0400)]
Don't truncate empty text on low density

Test: manual inspection
Change-Id: I0c94d23cf0a2b14bc855f5ef39687ece783739c1
Fixes: 74980883

6 years agoCreate snapshot even if no PendingIntent is registered
Robert Berry [Thu, 15 Mar 2018 15:28:05 +0000 (15:28 +0000)]
Create snapshot even if no PendingIntent is registered

When the user first unlocks the phone after booting, the system
app has not yet started. As such, it will not have had a chance to
register a PendingIntent. But if it has ever previously initialized,
the framework can still create a snapshot, and should. Otherwise, it
may be up to 72 hours before the user unlocks their phone again using
the primary method, which adds delay to the key sync.

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

Change-Id: Idfaf53194e6a2f5d5ce0123d72f46197392d2c99

6 years agometrics constant for volume gesture.
Julia Reynolds [Fri, 16 Mar 2018 13:09:45 +0000 (09:09 -0400)]
metrics constant for volume gesture.

Test: make
Bug: 75252670
Change-Id: Ifa4412d8e440d2259c534f5ad7a9914ef4239a6c

6 years agoUnhide getKey() and importKey() and the whole class of RecoveryController.
Aseem Kumar [Mon, 12 Mar 2018 21:34:58 +0000 (14:34 -0700)]
Unhide getKey() and importKey() and the whole class of RecoveryController.
Added @RequiresPermission(android.permission.RECOVER_KEYSTORE) on all
public APIs of RecoveryController.

Bug: 73900159
Test: adb shell am instrument -w -e package \
com.android.server.locksettings.recoverablekeystore \
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

Change-Id: I1047c038603869307d7a2462a2e5635fcd1c94c2

6 years agoAdd new semantic Person fields
Julia Reynolds [Thu, 15 Mar 2018 12:37:10 +0000 (08:37 -0400)]
Add new semantic Person fields

Bug: 74431200
Test: cts
Change-Id: I9eda447ae371ef635e9044a13ba7973bd69520ce

6 years agoMerge "Do not sleep activities in focused stack when keyguard is going away" into...
Bryce Lee [Fri, 16 Mar 2018 19:11:56 +0000 (19:11 +0000)]
Merge "Do not sleep activities in focused stack when keyguard is going away" into pi-dev

6 years agoAdd cycle-clean option in AppLaunch
gopinath [Fri, 16 Mar 2018 02:24:38 +0000 (19:24 -0700)]
Add cycle-clean option in AppLaunch

If cycle-clean is enabled then all the apps will be
killed at the end of the cycle and cache will dropped.

Cycle time is also enabled to measure the sum of launch times
during each cycle.

Above two options will enable use to measure app launch time under
memeory pressue by not killing the app between the launches and
by killing all the apps and dropping the cache before each cycle
and measuring the cycle time.

Bug: b/73091210

Tested : Tested with nodropcache, no force stop between launches
and cycle clean option and the cycle time avg,min and max
is printed as expected.

Change-Id: I8fb22439a9fe191104ce024c8a85a2688068cd60

6 years agoMerge "Deleting Visibility from WifiConfiguration" into pi-dev
Oscar Shu [Fri, 16 Mar 2018 18:45:27 +0000 (18:45 +0000)]
Merge "Deleting Visibility from WifiConfiguration" into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 16 Mar 2018 18:42:12 +0000 (11:42 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I510439c0816ad0b800b0eae982024b580a686333

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 16 Mar 2018 18:21:56 +0000 (11:21 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I657ea734aa601490b7e058c446cac74bd1d2406c

6 years agoMerge "Fix privacy tags based on PWG review meeting." into pi-dev
Yi Jin [Fri, 16 Mar 2018 18:18:11 +0000 (18:18 +0000)]
Merge "Fix privacy tags based on PWG review meeting." into pi-dev

6 years agoMerge "Clear calling UID before resolving intent types." into pi-dev
Bryce Lee [Fri, 16 Mar 2018 18:04:00 +0000 (18:04 +0000)]
Merge "Clear calling UID before resolving intent types." into pi-dev

6 years agoMerge "Renamed getNetworkId and getSystemId" into pi-dev
Jack Yu [Fri, 16 Mar 2018 17:39:54 +0000 (17:39 +0000)]
Merge "Renamed getNetworkId and getSystemId" into pi-dev

6 years agoMerge "autofill: ViewRootImpl.dispatchKeyFromIme() should not be dropped" into pi-dev
Dake Gu [Fri, 16 Mar 2018 17:32:25 +0000 (17:32 +0000)]
Merge "autofill: ViewRootImpl.dispatchKeyFromIme() should not be dropped" into pi-dev

6 years agoAdd null check to RecentTasks.java
Alice Sheng [Fri, 16 Mar 2018 16:45:58 +0000 (09:45 -0700)]
Add null check to RecentTasks.java

isRecentComponentHomeActivity throws a null pointer exception if
mRecentsComponent is null.

Bug: 75261682
Change-Id: Ia177b00ae11a42ddaa13350da686c96cd61436af

6 years agoAlso show "last BS off time" in dumpsys power
Makoto Onuki [Fri, 16 Mar 2018 16:24:36 +0000 (09:24 -0700)]
Also show "last BS off time" in dumpsys power

Change-Id: I53d7727847b84b29bdc8285c50ce59def4378684
Fix: 75024658
Bug: 75024658
Test: Manual test with dumpsys power
Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/BatterySavingStatsTest.java

6 years agoMerge "onUnsyncableAccount: Better docs, main thread" into pi-dev
Philip P. Moltmann [Fri, 16 Mar 2018 16:04:08 +0000 (16:04 +0000)]
Merge "onUnsyncableAccount: Better docs, main thread" into pi-dev

6 years agoMerge "Make PrecomputedText Spannable for supporting selection" into pi-dev
TreeHugger Robot [Fri, 16 Mar 2018 15:43:46 +0000 (15:43 +0000)]
Merge "Make PrecomputedText Spannable for supporting selection" into pi-dev

6 years agoMerge "Fix stuck exiting windows" into pi-dev
Jorim Jaggi [Fri, 16 Mar 2018 14:35:01 +0000 (14:35 +0000)]
Merge "Fix stuck exiting windows" into pi-dev

6 years agoMerge "DisplayCutout: Fix corner cutout issues in SystemUI" into pi-dev
Adrian Roos [Fri, 16 Mar 2018 14:27:30 +0000 (14:27 +0000)]
Merge "DisplayCutout: Fix corner cutout issues in SystemUI" into pi-dev

6 years agoMerge "Enable optional divider in AccessPointPreference" into pi-dev
Adam Newman [Fri, 16 Mar 2018 14:26:25 +0000 (14:26 +0000)]
Merge "Enable optional divider in AccessPointPreference" into pi-dev

6 years agoMerge "Restore "Update packages for 1.0.0-beta1"" into pi-dev
Alan Viverette [Fri, 16 Mar 2018 13:53:46 +0000 (13:53 +0000)]
Merge "Restore "Update packages for 1.0.0-beta1"" into pi-dev

6 years agoMerge "DisplayCutout: Add corner cutout overlay" into pi-dev
Adrian Roos [Fri, 16 Mar 2018 13:01:00 +0000 (13:01 +0000)]
Merge "DisplayCutout: Add corner cutout overlay" into pi-dev

6 years agoMerge "Add uses of hidden APIs from vendor apps" into pi-dev
TreeHugger Robot [Fri, 16 Mar 2018 12:45:47 +0000 (12:45 +0000)]
Merge "Add uses of hidden APIs from vendor apps" into pi-dev

6 years agoMerge "Boost thread priorities when running recents anim" into pi-dev
Jorim Jaggi [Fri, 16 Mar 2018 12:14:48 +0000 (12:14 +0000)]
Merge "Boost thread priorities when running recents anim" into pi-dev

6 years agoMerge "DO NOT MERGE Create a setting for backup/restore agent timeouts" into pi-dev
Annie Meng [Fri, 16 Mar 2018 10:25:32 +0000 (10:25 +0000)]
Merge "DO NOT MERGE Create a setting for backup/restore agent timeouts" into pi-dev

6 years agoAdd uses of hidden APIs from vendor apps
David Brazdil [Tue, 13 Mar 2018 09:41:23 +0000 (09:41 +0000)]
Add uses of hidden APIs from vendor apps

These will move into the dark greylist once we remove the UI toast.
Merge them with light greylist for now.

Bug: 64382372
Bug: 74589747
Bug: 74588266
Bug: 74586173
Bug: 74586969
Test: make
Change-Id: I8c1d3b67b763e8b14a66874705ba7165cf421e72
Merged-In: I5d0ec308a0187d67df6d9a4f0778c9285dc1e2af

6 years agoMediaSession2: Implement getPlayerState/Position/BufferedPosition
Hyundo Moon [Thu, 15 Mar 2018 05:00:07 +0000 (14:00 +0900)]
MediaSession2: Implement getPlayerState/Position/BufferedPosition

Bug: 74578458
Test: Passed CTS
Change-Id: If215e8e16bdce9fdc04ca18ed8d08ed374d13a98

6 years agoMerge "MediaSession2: Implement PlaylistParams replacements" into pi-dev
Jaewan Kim [Fri, 16 Mar 2018 06:35:23 +0000 (06:35 +0000)]
Merge "MediaSession2: Implement PlaylistParams replacements" into pi-dev

6 years agoMerge "Frameworks: Fix system server profiling" into pi-dev
TreeHugger Robot [Fri, 16 Mar 2018 04:00:48 +0000 (04:00 +0000)]
Merge "Frameworks: Fix system server profiling" into pi-dev

6 years agoMerge "Delay DropBox until SettingsProvider becomes ready" into pi-dev
TreeHugger Robot [Fri, 16 Mar 2018 03:36:00 +0000 (03:36 +0000)]
Merge "Delay DropBox until SettingsProvider becomes ready" into pi-dev

6 years agoMediaSession2: Implement PlaylistParams replacements
Jaewan Kim [Wed, 14 Mar 2018 11:37:38 +0000 (20:37 +0900)]
MediaSession2: Implement PlaylistParams replacements

This includes following changes
  - Remove PlaylistParams
  - Implement PlaylistParams replacements. Here's the list.
    - get/setShuffleMode()
    - get/setRepeatMode()
    - Note: Playlist metadata APIs are already submitted (b/74174649)

Bug: 74116823, Bug: 74118768
Test: Run CTS with MediaComponents/runcts.sh
Change-Id: I0267ffeaf92257eb7b81ffc8b6a3f40b5a2f6f9c

6 years agoMerge "Change FUSE_MAX_WRITE's value to 128KB" into pi-dev
TreeHugger Robot [Fri, 16 Mar 2018 03:00:44 +0000 (03:00 +0000)]
Merge "Change FUSE_MAX_WRITE's value to 128KB" into pi-dev

6 years agoMerge "Fix buffer size check in replyRead" into pi-dev
TreeHugger Robot [Fri, 16 Mar 2018 02:57:51 +0000 (02:57 +0000)]
Merge "Fix buffer size check in replyRead" into pi-dev

6 years agoEnable optional divider in AccessPointPreference
Adam Newman [Fri, 9 Mar 2018 00:46:16 +0000 (16:46 -0800)]
Enable optional divider in AccessPointPreference

Create a new preference layout based on layout_preference_two_target
that will allow for the optional use of a second target with a ripple
animation that stops at the hairline divider as well as a toggle for the
hairline divider.

This will enable ConnectedAccessPointPreference to
display a split between the left and right half when a Captive Portal
signin is pending.

Bug: 63929546
Bug: 68031656
Test: make RunSettingsLibRoboTests
Test: manual testing with Captive Portal and normal WiFi networks.

Change-Id: I5c8c513290ed04a8dcc38c3f9d6c149c9cca08aa
(cherry picked from commit c0a8276d9ffd8177c11c74ec4366e9d1d3546e73)

6 years agoMerge "Ensure Surface is recreated if children are detached." into pi-dev
Rob Carr [Fri, 16 Mar 2018 02:41:13 +0000 (02:41 +0000)]
Merge "Ensure Surface is recreated if children are detached." into pi-dev

6 years agoMerge "MediaSession2: Remove MediaSession2#registerPlayerEventCallback()" into pi-dev
Jaewan Kim [Fri, 16 Mar 2018 02:32:44 +0000 (02:32 +0000)]
Merge "MediaSession2: Remove MediaSession2#registerPlayerEventCallback()" into pi-dev

6 years agoMerge "MediaSession2: Remove onPlaylistChanged() without metadata" into pi-dev
Jaewan Kim [Fri, 16 Mar 2018 02:31:36 +0000 (02:31 +0000)]
Merge "MediaSession2: Remove onPlaylistChanged() without metadata" into pi-dev

6 years agoMerge "Add phenotype flag to disable battery saver tron log" into pi-dev
TreeHugger Robot [Fri, 16 Mar 2018 02:30:12 +0000 (02:30 +0000)]
Merge "Add phenotype flag to disable battery saver tron log" into pi-dev

6 years agoMerge "Fix resetting of wallpaper offset." into pi-dev
TreeHugger Robot [Fri, 16 Mar 2018 02:14:51 +0000 (02:14 +0000)]
Merge "Fix resetting of wallpaper offset." into pi-dev

6 years agoMerge "Replace android_color_mode usage with ColorMode." into pi-dev
Peiyong Lin [Fri, 16 Mar 2018 02:05:01 +0000 (02:05 +0000)]
Merge "Replace android_color_mode usage with ColorMode." into pi-dev

6 years agoMediaSession2: Remove MediaSession2#registerPlayerEventCallback()
Jaewan Kim [Thu, 15 Mar 2018 07:16:51 +0000 (16:16 +0900)]
MediaSession2: Remove MediaSession2#registerPlayerEventCallback()

Bug: 74157064
Test: Run CTS with MediaComponents/runcts.sh
Change-Id: Ia976c0ebe9f2b7eff0ae603db96ab106aa045cbc

6 years agoMerge "Use the correct prebuilts for lifecycles." into pi-dev
TreeHugger Robot [Fri, 16 Mar 2018 01:58:23 +0000 (01:58 +0000)]
Merge "Use the correct prebuilts for lifecycles." into pi-dev

6 years agoMediaSession2: Remove onPlaylistChanged() without metadata
Jaewan Kim [Thu, 15 Mar 2018 07:10:34 +0000 (16:10 +0900)]
MediaSession2: Remove onPlaylistChanged() without metadata

Bug: 74174728
Test: Run CTS with MediaComponents/runcts.sh
Change-Id: I84495aa19bc03009c81cdefdf8e65fbff4b7bcb6

6 years agoMerge "Update USB charging strings" into pi-dev
TreeHugger Robot [Fri, 16 Mar 2018 01:44:32 +0000 (01:44 +0000)]
Merge "Update USB charging strings" into pi-dev

6 years agoMerge "Bump activity stop timeout past ANR timeout." into pi-dev
TreeHugger Robot [Fri, 16 Mar 2018 01:41:54 +0000 (01:41 +0000)]
Merge "Bump activity stop timeout past ANR timeout." into pi-dev

6 years agoFix privacy tags based on PWG review meeting.
Yi Jin [Thu, 15 Mar 2018 20:49:44 +0000 (13:49 -0700)]
Fix privacy tags based on PWG review meeting.

1. Remove unnecessary hex_hashs.
2. Make intent extras LOCAL
3. Make mnc EXPLICIT
4. Make diskstats error AUTO since it is only IOException.

It is safe to modify proto numbers since they are not used yet.

Bug: 74837756
Test: flash the changes and call incident -d, also updated go/irpf
Change-Id: Idee0e927515e737c9a42a1dc29cb3c05e6d91ca9

6 years agoMerge "Update JNI to call captureChildLayers" into pi-dev
TreeHugger Robot [Fri, 16 Mar 2018 01:08:06 +0000 (01:08 +0000)]
Merge "Update JNI to call captureChildLayers" into pi-dev

6 years agoMerge "Protecting against trying to launch apps that don't exist" into pi-dev
TreeHugger Robot [Fri, 16 Mar 2018 01:07:09 +0000 (01:07 +0000)]
Merge "Protecting against trying to launch apps that don't exist" into pi-dev

6 years agoMerge "Remove unnecessary static libraries in libmedia2_jni" into pi-dev
TreeHugger Robot [Fri, 16 Mar 2018 00:40:10 +0000 (00:40 +0000)]
Merge "Remove unnecessary static libraries in libmedia2_jni" into pi-dev

6 years agoMerge "MediaSession2: Convert DataSourceDesc to MediaItem2 in MyPlayerEventCallback...
Hyundo Moon [Fri, 16 Mar 2018 00:18:41 +0000 (00:18 +0000)]
Merge "MediaSession2: Convert DataSourceDesc to MediaItem2 in MyPlayerEventCallback" into pi-dev

6 years agoAdd phenotype flag to disable battery saver tron log
Makoto Onuki [Fri, 16 Mar 2018 00:04:34 +0000 (17:04 -0700)]
Add phenotype flag to disable battery saver tron log

- Also improve dumpsys power output.

Example:
===============================================================================
Battery saving stats:
  Battery Saver state: OFF
  Times enabled: 4

  Drain stats:
                     Battery saver OFF                          ON
  NonDoze NonIntr:      0m      0mAh(  0%)      0.0mAh/h          0m      0mAh(  0%)      0.0mAh/h
             Intr:      0m      0mAh(  0%)      0.0mAh/h          0m      0mAh(  0%)      0.0mAh/h
  Deep    NonIntr:      0m      0mAh(  0%)      0.0mAh/h          0m      0mAh(  0%)      0.0mAh/h
             Intr:      0m      0mAh(  0%)      0.0mAh/h          0m      0mAh(  0%)      0.0mAh/h
  Light   NonIntr:      0m      0mAh(  0%)      0.0mAh/h          0m      0mAh(  0%)      0.0mAh/h
             Intr:      0m      0mAh(  0%)      0.0mAh/h          0m      0mAh(  0%)      0.0mAh/h

Battery saver policy (*NOTE* they only apply when battery saver is ON):
  Settings: battery_saver_constants
    value: send_tron_log=true
  Settings: (overlay)
    value:

  vibration_disabled=true
  animation_disabled=false
  fullbackup_deferred=true
  keyvaluebackup_deferred=true
  firewall_disabled=false
  datasaver_disabled=true
  launch_boost_disabled=true
  :
===============================================================================

Bug: 74742911
Fix: 75024658
Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/BatterySavingStatsTest.java
Test: Manual test with "settings put global battery_saver_constants send_tron_log=true" and
  "settings put global battery_saver_constants send_tron_log=false" with
  logcat | grep 'sysui_multi.*,1302,'

Change-Id: If0593273e21ace7899ac95642dc9feef2515eea1

6 years agoMerge "SliceManager: Relax explicit checks on map a little bit" into pi-dev
TreeHugger Robot [Fri, 16 Mar 2018 00:11:53 +0000 (00:11 +0000)]
Merge "SliceManager: Relax explicit checks on map a little bit" into pi-dev

6 years agoApp Time Limits API in UsageStats
Amith Yamasani [Sun, 11 Mar 2018 21:42:06 +0000 (14:42 -0700)]
App Time Limits API in UsageStats

Allow setting groups of apps to control usage time limits on.
Applies only to activity time in the foreground.

Updated UsageStatsTest app to be able to add an observer for
a 30 second timeout across multiple comma separated package
names.

Bug: 74335821
Test: atest FrameworksServicesTests:AppTimeLimitControllerTests
      Install and run frameworks/base/tests/UsageStatsTest

Change-Id: I677c30b4f211f7acf72c9766df3d8c1ac56a4b4e

6 years agoFix resetting of wallpaper offset.
Robert Carr [Fri, 16 Mar 2018 00:03:55 +0000 (17:03 -0700)]
Fix resetting of wallpaper offset.

In the initial implementation I had hoped to eliminate
this call to set position, and when I had to add it back
I forgot to restore the wallpaper offseting. Anyway, setWallpaperOffset
sets this position and we need to make sure its not fighting with
setSurfaceBoundaries.

Bug: 74500386
Test: Manual. go/wm-smoke
Change-Id: Iac5d157090ea512acbe4892d57eee6e1e423f18d

6 years agoonUnsyncableAccount: Better docs, main thread
Philip P. Moltmann [Thu, 15 Mar 2018 23:32:44 +0000 (16:32 -0700)]
onUnsyncableAccount: Better docs, main thread

Describe that AbstractThreadedSyncAdapter.onUnsyncableAccount should return
immediately and call it on main thread.

Test: atest android.content.cts.AccountAccessSameCertTest
            android.content.cts.DeferSyncTest
            android.content.cts.ContentResolverSyncTestCase
    com.android.cts.content.CtsSyncAccountAccessOtherCertTestCases
Fixes: 73750859
Change-Id: Ie9e1aefafe3a4a1b3f0fe8a65803554f07a94c42

6 years agoMerge "Set audio attrs on volume + home button vibrations" into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 23:41:53 +0000 (23:41 +0000)]
Merge "Set audio attrs on volume + home button vibrations" into pi-dev

6 years agoRenamed getNetworkId and getSystemId
Jack Yu [Thu, 15 Mar 2018 20:51:05 +0000 (13:51 -0700)]
Renamed getNetworkId and getSystemId

1. Renamed getNetworkId() to getCdmaNetworkId()
2. Renamed getSystemId() to getCdmaSystemId()

Test: Build
Bug: 74976831
Change-Id: I2a5fb50a59c3239bd3dca5568991a9dff08839fc

6 years agoHide notifications when in Lockdown mode
Chad Brubaker [Thu, 15 Mar 2018 23:37:43 +0000 (16:37 -0700)]
Hide notifications when in Lockdown mode

When the user triggers lockdown the device is put into a secure state,
beyond disabling less secure unlock modalities this should also disable
notifications so that data is not leaked despite the device being
strongly locked.

Fixes: 74564088
Test: Entered lockdown, verified notifications are no longer displayed
on the lockscreen

Change-Id: I4188c36b11a1b0cd496b8032bd246f0413c911c5

6 years agoBump activity stop timeout past ANR timeout.
Robert Carr [Thu, 15 Mar 2018 23:19:07 +0000 (16:19 -0700)]
Bump activity stop timeout past ANR timeout.

Once the activity stop timeout is triggered we may destroy
surfaces triggering native crashes. Imagine though an
app that hung in onStop, and then receives (and fails to handle)
an input event. Since the stop timeout was started before the hang
the stop timeout is very likely to trigger before the ANR timeout
leading to difficult to account for crashes. By the same logic we
bump the toast removal timeout.

Test: Feed it to the monkeys.
Bug: 62536731
Change-Id: I8e357271cfaa9f4077bb5bc92fdbd4584a425e8b

6 years agoMerge "[UI Tweak] Move PIN eSIM error message button position" into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 23:16:47 +0000 (23:16 +0000)]
Merge "[UI Tweak] Move PIN eSIM error message button position" into pi-dev

6 years agoMerge changes from topic "am-4832db20-4618-4c51-930c-c4179c7f0a1b" into oc-dev am...
Wyatt Riley [Thu, 15 Mar 2018 23:06:06 +0000 (23:06 +0000)]
Merge changes from topic "am-4832db20-4618-4c51-930c-c4179c7f0a1b" into oc-dev am: 38860f2cab am: 4b8765ff4a
am: 3b0285794a

Change-Id: I401b79bd0df7cf4e3b423edd70806f2ed7b3d7ea

6 years agoMerge "Removes stats_log proto from uid map in statsd." into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 22:57:09 +0000 (22:57 +0000)]
Merge "Removes stats_log proto from uid map in statsd." into pi-dev

6 years agoMerge "MediaPlayer2Impl: fix null object reference." into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 22:54:49 +0000 (22:54 +0000)]
Merge "MediaPlayer2Impl: fix null object reference." into pi-dev

6 years agoMerge "Adding size suffix to diskstats fields." into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 22:52:39 +0000 (22:52 +0000)]
Merge "Adding size suffix to diskstats fields." into pi-dev

6 years agoFix stuck exiting windows
Jorim Jaggi [Thu, 15 Mar 2018 22:46:12 +0000 (23:46 +0100)]
Fix stuck exiting windows

When a window was marked as exiting because in WS.removeIfPossible
applyAnimationLocked returned true just because AWT was in
mClosing/OpeningApps for the transition, the window wasn't removed
if there was no animation running for the app transition.

Fix this by also calling the animation finished callback when not
running an animation, because other code parts rely on that being
called.

Test: Change language, swipe up, make sure no stuck window
Test: AppWindowTokenTests
Change-Id: I9cfd0c4090a258bc90ba5cf7d71795b6fce7f8ef
Fixes: 72811863

6 years agoBoost thread priorities when running recents anim
Jorim Jaggi [Thu, 15 Mar 2018 19:16:15 +0000 (20:16 +0100)]
Boost thread priorities when running recents anim

To improve scheduling in WM to improve latency.

Bug: 73651529

Test: go/wm-smoke
Test: Trace swiping up, make sure threads have right priority
Change-Id: Ic35c00b70be4877abfe07de4ba1f18648cabd812

6 years agoFrameworks: Fix system server profiling
Andreas Gampe [Thu, 15 Mar 2018 06:13:28 +0000 (23:13 -0700)]
Frameworks: Fix system server profiling

Avoid a race to close the profiling file descriptor.

(cherry picked from commit 5a8ea8c619132b48d279be5fd7761538caf02ec9)

Bug: 74883338
Test: m
Test: am profile start `pid system_server` /data/local/tmp/test.trace && sleep 5s && am profile stop `pid system_server` && adb pull /data/local/tmp/test.trace && [[ $(find test.trace -size +1K) ]] && echo Success
Merged-In: Ib506ce38ac1ac7c0b91079ba9b35aca6ae289d22
Change-Id: Ib506ce38ac1ac7c0b91079ba9b35aca6ae289d22

6 years agoMerge "Fix uid for AppBreadcrumbReported for 3p app" into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 22:46:47 +0000 (22:46 +0000)]
Merge "Fix uid for AppBreadcrumbReported for 3p app" into pi-dev

6 years agoMerge changes from topic "am-4832db20-4618-4c51-930c-c4179c7f0a1b" into oc-dev am...
Wyatt Riley [Thu, 15 Mar 2018 22:27:50 +0000 (22:27 +0000)]
Merge changes from topic "am-4832db20-4618-4c51-930c-c4179c7f0a1b" into oc-dev am: 38860f2cab
am: 4b8765ff4a

Change-Id: Ib91a39ae254922ae56b2911c29b86679d4dd16fb

6 years agoMerge "camera2: Add links for aeState" into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 22:17:22 +0000 (22:17 +0000)]
Merge "camera2: Add links for aeState" into pi-dev

6 years agoMerge changes from topic "am-4832db20-4618-4c51-930c-c4179c7f0a1b" into oc-dev
Wyatt Riley [Thu, 15 Mar 2018 22:14:04 +0000 (22:14 +0000)]
Merge changes from topic "am-4832db20-4618-4c51-930c-c4179c7f0a1b" into oc-dev
am: 38860f2cab

Change-Id: Ief795f6cc13f5877acf0550a144c7f16aaa9a934

6 years agoMerge "Remove comments of privacy.proto to avoid this accidently go to AOSP" into...
Yi Jin [Thu, 15 Mar 2018 22:09:46 +0000 (22:09 +0000)]
Merge "Remove comments of privacy.proto to avoid this accidently go to AOSP" into pi-dev

6 years ago[automerger] DO NOT MERGE Rework thumbnail cleanup am: b514ce9b38 am: b8dad6c644...
Marco Nelissen [Thu, 15 Mar 2018 22:05:35 +0000 (22:05 +0000)]
[automerger] DO NOT MERGE Rework thumbnail cleanup am: b514ce9b38 am: b8dad6c644 am: 019eec3923 skipped: 9d13b0f6ca am: 4ef2cbc58d am: 31ee079d5f am: 6100f6d3b2 am: c077fab855 skipped: 1160018fef am: 957e6ff8fe  -s ours am: 10dd321343  -s ours
am: 9dadab0c7c  -s ours

Change-Id: Id212aa1da51bd755ff548abb1067078e661ab674

6 years agoRemove comments of privacy.proto to avoid this accidently go to AOSP
Yi Jin [Tue, 13 Mar 2018 22:01:00 +0000 (15:01 -0700)]
Remove comments of privacy.proto to avoid this accidently go to AOSP

Bug: 72950747
Test: manual
Change-Id: I06a897170996fc0aa493bda76495c6ef1e484961

6 years agoClear calling UID before resolving intent types.
Bryce Lee [Thu, 15 Mar 2018 22:00:01 +0000 (15:00 -0700)]
Clear calling UID before resolving intent types.

By not clearing the uid, the intent type is not resolved and the
activity fails to launch. This change adds the resolve call to the
cleared UID scope, which previously encapsulated the invocation.

Fixes: 73297146
Test: Open images shortcut from secondary user's Downloads launcher
      icon.

Change-Id: I656a4dcab962ff716bdd2b39441c07a10d5b8c8a

6 years ago[automerger] DO NOT MERGE Rework thumbnail cleanup am: b514ce9b38 am: b8dad6c644...
Marco Nelissen [Thu, 15 Mar 2018 21:57:27 +0000 (21:57 +0000)]
[automerger] DO NOT MERGE Rework thumbnail cleanup am: b514ce9b38 am: b8dad6c644 am: 019eec3923 skipped: 9d13b0f6ca am: 4ef2cbc58d am: 31ee079d5f am: 6100f6d3b2 am: c077fab855 skipped: 1160018fef am: 957e6ff8fe  -s ours
am: 10dd321343  -s ours

Change-Id: I1b97c296b4e205f22eef83a34512bd16e8b6464a

6 years agoProtecting against trying to launch apps that don't exist
Kevin Neas [Tue, 13 Mar 2018 00:36:23 +0000 (17:36 -0700)]
Protecting against trying to launch apps that don't exist

BUG: 74083361

Change-Id: Ia0750bcca2534e794a81f094d5c214af4011c0ce
Test: Locally
(cherry picked from commit cb45b97a539a6460af1ecb43ddc3bf574f8100a9)

6 years agoSliceManager: Relax explicit checks on map a little bit
Jason Monk [Thu, 15 Mar 2018 21:48:47 +0000 (17:48 -0400)]
SliceManager: Relax explicit checks on map a little bit

Test: manual
Bug: 68378561
Change-Id: Iaf7e296dfd7dd355ca755386d1e2fb7b220abc15

6 years agoMerge "update OWNERS Bug: 63633199 Change-Id: I538ca012b68e27106fee8924f588a9fc1aef88...
Chong Zhang [Thu, 15 Mar 2018 21:46:42 +0000 (21:46 +0000)]
Merge "update OWNERS Bug: 63633199 Change-Id: I538ca012b68e27106fee8924f588a9fc1aef88f8" into pi-dev

6 years agoupdate OWNERS
Chong Zhang [Thu, 15 Mar 2018 21:42:37 +0000 (14:42 -0700)]
update OWNERS
Bug: 63633199
Change-Id: I538ca012b68e27106fee8924f588a9fc1aef88f8

6 years agoMerge "fix slow get caps -- DO NOT MERGE" into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 21:40:32 +0000 (21:40 +0000)]
Merge "fix slow get caps -- DO NOT MERGE" into pi-dev

6 years agoMerge changes from topic "am-4832db20-4618-4c51-930c-c4179c7f0a1b" into oc-dev
TreeHugger Robot [Thu, 15 Mar 2018 21:39:46 +0000 (21:39 +0000)]
Merge changes from topic "am-4832db20-4618-4c51-930c-c4179c7f0a1b" into oc-dev

* changes:
  [automerger skipped] DO NOT MERGE: Restoring Network Available Notification to AGnssRil skipped: 3656457fac skipped: d3ef137680
  [automerger skipped] DO NOT MERGE: Restoring Network Available Notification to AGnssRil skipped: 3656457fac
  DO NOT MERGE: Restoring Network Available Notification to AGnssRil

6 years agoEnsure Surface is recreated if children are detached.
Robert Carr [Thu, 15 Mar 2018 21:34:45 +0000 (14:34 -0700)]
Ensure Surface is recreated if children are detached.

If we detach the children of a Surface, then they are stuck
around indefinitely and we can't use the Surface as the result
of a future call to lay-out visible. This should also improve
Surface lifetime-errors as now in the case of cancelling
an exit animation we will fall in to this preserve surface
codepath instead of the destroySurfaceUnchecked block in
WindowStateAnimator#cancelExitAnimationForNextAnimationLocked.

Bug: 68996752
Bug: 62536731
Bug: 72921025
Bug: 72873272
Change-Id: Ib0be6e7447c04d00bff8784d8b8072918d48e0ba

6 years agoUse the correct prebuilts for lifecycles.
Doris Ling [Thu, 15 Mar 2018 21:28:33 +0000 (14:28 -0700)]
Use the correct prebuilts for lifecycles.

The previous change has been reverted due to the proguard issue. That
has been fixed, and we should now re-apply this change.

Change-Id: I2ea5573284488bc0cb3871d4b36221a79fe28181
Fixes: 74834445
Test: make RunSettingsRoboTests

6 years ago[automerger] DO NOT MERGE Rework thumbnail cleanup am: b514ce9b38 am: b8dad6c644...
Marco Nelissen [Thu, 15 Mar 2018 21:26:48 +0000 (21:26 +0000)]
[automerger] DO NOT MERGE Rework thumbnail cleanup am: b514ce9b38 am: b8dad6c644 am: 019eec3923 skipped: 9d13b0f6ca am: 4ef2cbc58d am: 31ee079d5f am: 6100f6d3b2 am: c077fab855 skipped: 1160018fef
am: 957e6ff8fe  -s ours

Change-Id: I0eed35a22a6e3186d8dc37fb2bae76fcbbe0d5ff