Commit Graph

309295 Commits

Author SHA1 Message Date
Calin Juravle
2c1939b02e [PM] Clean up logic for secondary dex oat files am: e69fba3f7f am: 110e897eaa
am: 29f08b9f1b  -s ours

Change-Id: I9d1626a88d2d3743f2ca2c2493c8a46d3cbaf80c
2017-03-03 03:40:41 +00:00
Calin Juravle
2a65fd0d37 Compile secondary dex files in DexManager am: 7218363a92 am: 468be64cf2
am: 97b4de24d2  -s ours

Change-Id: I243bf467552438f5085b609a23d1a6161e28506b
2017-03-03 03:39:42 +00:00
Calin Juravle
876b2865d3 Notify DexManager about new package installs am: fcd672fca3 am: 27ea592098
am: a6adb97aa0  -s ours

Change-Id: Iaad413350849a6e1fc225d26d50977f5a4983f0f
2017-03-03 03:38:34 +00:00
TreeHugger Robot
d11f127428 Merge "Make sure to call the original reply-to receiver when..." 2017-03-03 02:53:20 +00:00
TreeHugger Robot
75323c1889 Merge "Resize task to fullscreen when moving from pinned stack." 2017-03-03 02:37:28 +00:00
TreeHugger Robot
5603a16e9e Merge "Fix issue #35365651: ActivityManager.getPackageImportance() doesn't..." 2017-03-03 01:50:15 +00:00
Rob Carr
2ff633cbc3 Merge "Revert "Modify SurfaceView to use SurfaceFlinger child surfaces."" 2017-03-03 01:19:08 +00:00
Rob Carr
2e65f7c4e3 Merge "Revert "Correct dissapearing SurfaceView during exit animations."" 2017-03-03 01:17:04 +00:00
Rob Carr
115d2dbf93 Merge "Revert "SurfaceView: Include surfaceInsets in position calculation"" 2017-03-03 01:16:28 +00:00
Rob Carr
1c6d32ab10 Revert "Correct dissapearing SurfaceView during exit animations."
This reverts commit 026a6c45e7.

Change-Id: I3ff0d64ca9f91aef4b5a53ed47e4d05f0d128e11
2017-03-03 01:15:48 +00:00
Rob Carr
8009012644 Revert "SurfaceView: Include surfaceInsets in position calculation"
This reverts commit 8c31e1db2a.

Change-Id: Id25f493ca272878c2105f9cd302db1e05284998d
2017-03-03 01:15:36 +00:00
Makoto Onuki
3e7d845161 Make sure to call the original reply-to receiver when...
replacing a queued broadcast.

- Also don't replace a broadcast for a different user.

Test: Manual test with the following test code:

Intent intent = new Intent(Intent.ACTION_PROVIDER_CHANGED)
        .addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING);
AlarmManager alm = this.getSystemService(AlarmManager.class);
long time = SystemClock.elapsedRealtime() + 5 * 1000;
for (int i = 0; i < 5; i++) {
    alm.setExact(AlarmManager.ELAPSED_REALTIME, time,
            PendingIntent.getBroadcast(this, i, intent, PendingIntent.FLAG_UPDATE_CURRENT));
}

Without this CL, after the alarm fires, AlarmManagerService.mBroadcastRefCount
is left > 0 and the wake lock is held forever.

With this CL, mBroadcastRefCount eventually gets back to 0.

Bug: 35779096
Change-Id: I4e21c94b08f25f9ca1242182670ff4a69f8bd9f2
2017-03-02 16:58:14 -08:00
Jeff Tinker
3896db1475 Revert "Modify SurfaceView to use SurfaceFlinger child surfaces."
This reverts commit 693f3432ae.

P0: When playing encrypted content the Fugu displays a blank screen.

Test: with topic "surfaceview-without-wm" reverted, encrypted playback
works on ToT oc-release. See repro steps in 35917840#12.

bug:35917840

Change-Id: I37fa1e427daff3a1c18ed1c92d035421d891f67c
2017-03-03 00:48:00 +00:00
Calin Juravle
29f08b9f1b [PM] Clean up logic for secondary dex oat files am: e69fba3f7f
am: 110e897eaa

Change-Id: I83d161595df4d1fee18652b8432a1950fb6f367d
2017-03-03 00:24:38 +00:00
Calin Juravle
97b4de24d2 Compile secondary dex files in DexManager am: 7218363a92
am: 468be64cf2

Change-Id: Ie0ebc07e2cf4fd4892b9171e1823d63414eef194
2017-03-03 00:23:39 +00:00
Calin Juravle
a6adb97aa0 Notify DexManager about new package installs am: fcd672fca3
am: 27ea592098

Change-Id: I3a71f8d4a6fcdad25b0b90a800d109bdeb16b3eb
2017-03-03 00:22:33 +00:00
Calin Juravle
110e897eaa [PM] Clean up logic for secondary dex oat files
am: e69fba3f7f

Change-Id: I223b27221acf25e628003dde0f63cffe66779753
2017-03-03 00:05:07 +00:00
Calin Juravle
468be64cf2 Compile secondary dex files in DexManager
am: 7218363a92

Change-Id: I53e7864b097cf9cff702e9185bb1c9091d97fe63
2017-03-03 00:03:17 +00:00
Calin Juravle
27ea592098 Notify DexManager about new package installs
am: fcd672fca3

Change-Id: I63514deebef293d52f7811023b0915cf655514f6
2017-03-03 00:01:03 +00:00
Andrii Kulian
b5144655c2 Merge "Revert "Compute merged configuration changes"" 2017-03-02 23:58:44 +00:00
Andrii Kulian
dbdd9fc08f Revert "Compute merged configuration changes"
This reverts commit 0d8ff25fab.

Reason for revert: Original CL caused b/35911519

Change-Id: Ice82b04dd00068d10f88c0d248bf95877e12cda3
2017-03-02 23:39:56 +00:00
TreeHugger Robot
4f357c0812 Merge "Fix potential use-after-free in LayerUpdateQueue" 2017-03-02 23:16:27 +00:00
Ray Essick
72a489c035 Merge "Javadoc for the recently added getMetrics()" 2017-03-02 23:04:03 +00:00
TreeHugger Robot
e1c54d53f1 Merge "Update SkiaDisplayList to use the modified SkLiteDL" 2017-03-02 22:45:35 +00:00
Peter Qiu
eea3e49b44 Merge "hotspot2: expose string constants for cert type and auth methods" am: 603fb2ef56 am: d919593b9d
am: 19df6d208e

Change-Id: I184f1a40a9dc854071915609dc13322d0fc86a97
2017-03-02 22:30:40 +00:00
Peter Qiu
19df6d208e Merge "hotspot2: expose string constants for cert type and auth methods" am: 603fb2ef56
am: d919593b9d

Change-Id: I04651e913216903316e8625672cf62609e76058d
2017-03-02 22:26:00 +00:00
Peter Qiu
d919593b9d Merge "hotspot2: expose string constants for cert type and auth methods"
am: 603fb2ef56

Change-Id: I6ae4811e97a99c04a423c1390d87a8c21f4ae416
2017-03-02 22:21:27 +00:00
TreeHugger Robot
653d1e1f32 Merge "Fix accessibility description of battery saver in QS" 2017-03-02 22:21:09 +00:00
Elliott Hughes
cb0629eaa1 Merge "Remove the name length limit for system properties." 2017-03-02 22:15:21 +00:00
Treehugger Robot
603fb2ef56 Merge "hotspot2: expose string constants for cert type and auth methods" 2017-03-02 22:11:01 +00:00
Calin Juravle
3c954e9e01 Merge "Update package use info when the app data is updated" 2017-03-02 21:34:56 +00:00
John Reck
fc29f7acd1 Fix potential use-after-free in LayerUpdateQueue
Change-Id: I090af2191576175b165a9db574a80123c16f0778
Fixes: 26548204
Test: Builds & hwui unit tests pass
2017-03-02 13:30:15 -08:00
TreeHugger Robot
8fb42cc3b2 Merge "Let ResourcesManager generate CompatResources" 2017-03-02 21:28:27 +00:00
TreeHugger Robot
02b5f45bfe Merge "Add API to indicate which tile was long-clicked." 2017-03-02 21:18:58 +00:00
Calin Juravle
e69fba3f7f [PM] Clean up logic for secondary dex oat files
Add logic in DexManager to reconcile secondary dex records with the
actual files on disk. If secondary dex files are moved or removed then
DexManager will remove the generated oat files during the call to
reconcileSecondaryOdex() and update its internal state.

Add 'adb shell cmd package reconcile-secondary-dex packageName' which
will force DexManager to sync its data with the actual secondary dex
files.

Test: devices bots
      runtest -x .../PackageDexUsageTests.java
      runtest -x .../DexManagerTests.java
      adb shell cmd package reconcile-secondary-dex
com.android.google.gms (after artificially/temporarily renaming some
dex files)

Bug: 32871170

(cherry picked from commit c22c30ed1c)

Change-Id: Ied9fcbfe367ed3a8250a9ba8d202518b264c64e8

Merged-In: Id2d72dc89995f89cf1ddf79ae4e992afd3f3c127
2017-03-02 13:12:21 -08:00
Calin Juravle
7218363a92 Compile secondary dex files in DexManager
Add logic for secondary dex compilation in DexManager. Also, extend the
`cmd package compile` command with '--secondary-dex' option which will
compile all used secondary dex files for the given package.

Test: flash & boot,
      cmd package compile --secondary-dex -f -m speed
com.google.android.gms
Bug: 32871170

(cherry picked from commit c22c30ed1c)

Change-Id: I3cf26edbfb5e9f3683e608bb2a596e1ab5682bd4

Merged-In: Ia2b95cb70d26c4ead5cb650047641b0881ca84ae
2017-03-02 13:11:52 -08:00
Calin Juravle
fcd672fca3 Notify DexManager about new package installs
This will update the internal cache so that the secondary dex files of
the new package can be found when loaded.

Test: runtest -x .../DexManagerTests.java

Bug: 32871170

(cherry picked from commit 0d4b8f8b0c)

Change-Id: I34008f6d262f19e88a346a36b83e4093b4129105

Merged-In: I0cb7158af249feeb01cf578a7544dda978eede9d
2017-03-02 13:11:28 -08:00
Lei Yu
296417a9e7 Merge "Add enums for battery settings page." 2017-03-02 21:05:44 +00:00
Antony Sargent
16bc3dd1e5 Merge "New design for instant apps in app details header" 2017-03-02 21:03:39 +00:00
TreeHugger Robot
ecf3c76cc2 Merge "Fix NavGesture version" 2017-03-02 21:03:13 +00:00
TreeHugger Robot
c231d5fd72 Merge "Fix emergency only edge case" 2017-03-02 21:01:53 +00:00
Calin Juravle
e9f0fe9274 Merge "Use DexManager logic to decide if a package is used by other apps" 2017-03-02 20:56:08 +00:00
TreeHugger Robot
467c8dca16 Merge "SurfaceView: Include surfaceInsets in position calculation" 2017-03-02 20:53:08 +00:00
Jason Monk
e5c3ed1864 Fix accessibility description of battery saver in QS
Change-Id: I412a4f15c8a7c77a087f63d9331204d72e1dcb98
Fixes: 35617900
Test: enable accessibility, select battery saver
2017-03-02 15:28:32 -05:00
TreeHugger Robot
53fc3cdd5c Merge "Fix NDK access to recycle'd bitmaps" 2017-03-02 20:28:29 +00:00
Derek Sollenberger
ea1fe9b9d6 Update SkiaDisplayList to use the modified SkLiteDL
SkLiteDL is no longer refcounted or a subclass of SkDrawable.

Test: on device testing in SkiaGL mode
Change-Id: I9ad53d764a26ab382d80d54908325962f2075802
2017-03-02 15:28:19 -05:00
TreeHugger Robot
6b3733cac0 Merge "Correct dissapearing SurfaceView during exit animations." 2017-03-02 20:20:44 +00:00
TreeHugger Robot
c8f0100248 Merge "Adding platform constants for various install reasons." 2017-03-02 19:58:07 +00:00
TreeHugger Robot
67a14e1124 Merge "Force ephemeral apps to have correct targetSdk/targetSandbox temporarily" 2017-03-02 19:56:50 +00:00
Calin Juravle
99dd37b3c5 Update package use info when the app data is updated
- clear usesByOtherApps flag when the package is updated
- delete secondary dex usage data when the app data is destroyed

Test: runtest -x .../PackageDexUsageTests.java
      runtest -x .../DexManagerTests.java
Bug: 32871170
Bug: 35381405

Change-Id: I3a249b9e8680e745fa678c7ce61b4ae764078fb9
2017-03-02 11:50:54 -08:00