309511 Commits

Author SHA1 Message Date
Calin Juravle
112a61bf32 Compile secondary dex files during background dexopt job
am: 574994afde

Change-Id: I204983f6221c07467b450ea9e0bf71b6d15926e1
2017-03-03 00:10:42 +00:00
Calin Juravle
90ac28d618 Add a shell command to force the background dexopt job
am: f7edab63d9

Change-Id: Ie77bc356a9ff4786c23a06d1267dc7ca5e45a90a
2017-03-03 00:08:50 +00:00
Calin Juravle
a0358c9e32 A bit more refactoring in BackgroundDexOptService
am: a57ef16375

Change-Id: Ic258b5484eedcc68650b474acb4fa3eae8589c82
2017-03-03 00:06:59 +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
roger xue
ef027edcc4 move PermissionsSummaryHelper into SettingsLib to share with car/settings
Bug: 34679894
Test: run RunSettingsLibRoboTests -j128

Change-Id: I237534fa457052591285dfce2b36ea15793d04a5
2017-03-02 16:03:37 -08: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
Calin Juravle
9e88c53337 Merge changes from topic 'secondary-dex'
* changes:
  Fix typo in dexopt.secondary system property
  Save package dex usage info after secondary dex reconciliation
  Compile secondary dex files during background dexopt job
  Add a shell command to force the background dexopt job
  A bit more refactoring in BackgroundDexOptService
  [PM] Clean up logic for secondary dex oat files
  Compile secondary dex files in DexManager
  Notify DexManager about new package installs
2017-03-02 23:54:24 +00:00
Garfield Tan
40d7b35fdd Address feedback from API council for INITIAL_URI.
Test: It builds.
Bug: 35813138
Change-Id: Ia30032fb9c556547a8249c2d2ec96cf4cc5a7d90
2017-03-02 15:40:22 -08:00
Andrii Kulian
dbdd9fc08f Revert "Compute merged configuration changes"
This reverts commit 0d8ff25fabae95d5ffc826adbb68b4036d41af41.

Reason for revert: Original CL caused b/35911519

Change-Id: Ice82b04dd00068d10f88c0d248bf95877e12cda3
2017-03-02 23:39:56 +00:00
Bryce Lee
41801b43d8 Save TaskRecord before calling performClearTaskLocked.
If the activity exists in a task that is in persistent storage, the
task reference will be cleared when its brought to the foreground in
this method. Alternatively, if the activity is finished immediately
as a result of clearing task, the task reference will be lost.

Therefore, we must persist the task reference before calling it.

Change-Id: Id38cf6654f5d4f5b727441048dc6b9a7568b574e
Fixes: 35868563
Test: manual (code and bugreport inspection)
2017-03-02 15:27:46 -08: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
Adam Lesinski
a5ca624083 OMS: Introduce default overlays
Default overlays are applied at first boot. They are specified by
package name in system property ro.boot.vendor.overlay.theme as a
semicolon separated list.

Eg:

ro.boot.vendor.overlay=com.android.vendor.overlay;com.android.vendor.overlay_two

Test: manual (remove /data/system/overlays.xml and reboot)
Change-Id: I8a7443a9059ccabfe1a63b075b95f1b2b6db7dbd
2017-03-02 14:38:59 -08:00
Jason Monk
20c0eb4b0d Fix DND status icon not showing
PhoneStatusBarPolicy was holding a cached value for zen mode that
wasn't getting set on startup, remove the cached value and always
get it from ZenController to be safe.

Test: Turn on DND, Kill sysui
Change-Id: Ic02bb0ceb417d491c7a2e238964f98f26799314f
Fixes: 35808491
2017-03-02 17:35:49 -05: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
Daniel Nishi
e40da3c1b7 Save/load calculated cache quotas to a file.
This will prevent us from unnecessarily redoing calculation work
by loading the last caches on boot and shoving them down to
installd.

Bug: 33965858
Test: Framework services tests
Change-Id: Ie94e269aa72bceb1ebe87911eaa42e2d826c1123
2017-03-02 14:22:24 -08: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
33cc60ccc9 Remove the name length limit for system properties.
Bug: http://b/33926793
Test: builds
Change-Id: Ib89b66b7abebc9a28961a0c9032b99947e3db0d6
Merged-In: Ib89b66b7abebc9a28961a0c9032b99947e3db0d6
2017-03-02 14:17:03 -08: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
ad014af09a Fix typo in dexopt.secondary system property
Test: adb shell cmd package bg-dexopt-job
Bug: 32871170

(cherry picked from commit 4466c5ad84e4429284b7d5e13ad8a87c924ea7fc)

Change-Id: Ibfe3111198877ed0d758b68be89afb23c4756053

Merged-In: Ic8a14a3fc5c9aa63f6cb376f337b5bf459997325
2017-03-02 13:14:30 -08:00
Calin Juravle
61fd6eab46 Save package dex usage info after secondary dex reconciliation
Bug: 1833991
Test: add a bogus entry to /syste/data/package-dex-usage.list
      adb shell cmd package reconcile-secondary-dex-files
com.android.google.gms
      wait a bit and check the bogus entry is gone

(cherry picked from commit b1097411028103b6c88ce325af23d2ff1ec746c8)

Change-Id: I23248b11ea07bceb6527f55bf62618d1b2c3d83d

Merged-In: Ic07126bfb8730933081a5e010e3c357d338786e8
2017-03-02 13:14:03 -08:00
Calin Juravle
574994afde Compile secondary dex files during background dexopt job
Extend the backgound dexopt job to compile secondary dex files when
"dalvik.vm.deopt.secondary" system property is set to true.

Test: adb shell cmd package bg-dexopt-job
Bug: 32871170

(cherry picked from commit 51f521c3bf46e6040f36757bc53ea57ddc7be85e)

Change-Id: I220ff4ea26c4eee030ab1a9f4c957a09aa9f2f4c

Merged-In: If3a4b77f785e92c7f2f7869e25ff9b99904f165a
2017-03-02 13:13:45 -08:00
Calin Juravle
f7edab63d9 Add a shell command to force the background dexopt job
Add 'bg-dexopt-job' command to 'adb shell cmd package' which will force
the background  dexopt job to run the optimizations immediately.

Note that the command only runs the background optimizer logic. It may
overlap with the actual job but the job scheduler will not be able to
cancel it. It will also run even if the device is not in the idle
maintenance mode.

Test: adb shell cmd package bg-dexopt-job
Bug: 32871170

(cherry picked from commit cb5f41ea11b1a6fcd0977a64ee146dde8f537076)

Change-Id: I82c781d46fe16e7b7566a5b5ee91be723a2125cb

Merged-In: I8b0112074220b2e09baf13d842401ee1cf306a89
2017-03-02 13:13:12 -08:00
Calin Juravle
a57ef16375 A bit more refactoring in BackgroundDexOptService
Extract convenient methods to help with:
- adding a shell command to run the background dexopt job
- extending idleOptimizations to cover secondary dex files

Test: device boots, background job run.
Bug: 32871170

(cherry picked from commit c660475aafe91269be306c802823cf543005ce36)

Change-Id: I146e4faeea90f2d58144a5dba26ae7f90a36b402

Merged-In: I18fde62a1cb05c030a620722d5f217589beaefb1
2017-03-02 13:12:47 -08: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 c22c30ed1c05c5c24185dc4d380d1c5026923d46)

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 c22c30ed1c05c5c24185dc4d380d1c5026923d46)

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 0d4b8f8b0c963d9a1f5cb6aff11a11195a3df225)

Change-Id: I34008f6d262f19e88a346a36b83e4093b4129105

Merged-In: I0cb7158af249feeb01cf578a7544dda978eede9d
2017-03-02 13:11:28 -08:00
Julia Reynolds
d528684373 Allow resid notification channel group labels.
Test: cts, runtest systemui, runtest systemui-notification, manual
Change-Id: I9e7b43c97fd04057e1a2614876af958cc2f40a99
2017-03-02 21:08:31 +00: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
Philip P. Moltmann
ba6f462602 Add autoFillHint property to view
Bug: 35364993
Test: Ran amended ViewAttributesTest
Change-Id: Ib7d2c3dfd5b4a6b638b56c4583af4c9bdf37e346
2017-03-02 12:46:44 -08:00
Winson Chung
85d3998aa3 Prevent PiP movement while the resize animation is running.
- This was causing numerous artifacts when the user starts touching while
  transitioning into PiP where the move rects clobber the animating rect.

Bug: 35764922
Test: Try touching the PiP while it is entering or exiting PiP
Change-Id: I5a72b5bea694b01aab401d2bb78a493688a9c655
2017-03-02 12:31:02 -08: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