309376 Commits

Author SHA1 Message Date
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
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
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
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
TreeHugger Robot
2862dad3fd Merge "Change from literal to constant in AccessPointPreference." 2017-03-02 19:48:56 +00:00
Jason Monk
d43a7ab3a2 Add API to indicate which tile was long-clicked.
Test: make
Change-Id: I5ff5a3ed954e231b6d63e02bf64bfe771cd78b0f
Fixes: 34832801
2017-03-02 14:46:10 -05:00
TreeHugger Robot
adfbe12f7d Merge "The system can post notifications for any package" 2017-03-02 19:42:49 +00:00
Jason Monk
4eb01a20c4 Fix NavGesture version
Test: make
Change-Id: Ib9925ac5f01d0d08ef7f37222f0e78321753b464
2017-03-02 14:33:47 -05:00
jackqdyulei
a2a1434ee7 Add enums for battery settings page.
Bug: 35063415
Test: Manual
Change-Id: If2d8cb88bd4a91458747730dc9f352fe828de7ad
2017-03-02 11:20:42 -08:00
TreeHugger Robot
fdd15778b3 Merge "Revert "Add new key purpose Wrap Key to KeyProperties.java and"" 2017-03-02 19:20:38 +00:00
TreeHugger Robot
7d724ab505 Merge "Copy callback list to avoid crash" 2017-03-02 19:15:26 +00:00
Jason Monk
8996b94e57 Fix emergency only edge case
When the default sub id doesn't exist and there is only one other
sub id currently, assume that is meant to be the default and use
that to pull emergency state.

Also switch to SparseArray for performance and betterness.

Change-Id: I976de6abb58c46bce0c56793442c0377a39a7071
Fixes: 34119642
Test: runtest systemui
2017-03-02 14:00:05 -05:00
Dianne Hackborn
45e69d6de9 Fix issue #35365651: ActivityManager.getPackageImportance() doesn't...
...return the highest importance of all processes

Also clean up the importance constants to correctly reflect the
current state of the system.

Test: run activity test, added new conditions to it for this.
Change-Id: I25c4351b017c4a703212f604079e13f7d4fead5b
2017-03-02 10:47:24 -08:00
Bryce Lee
596ec855c3 Merge "Remove activity from task if not set properly." 2017-03-02 18:40:56 +00:00
Robert Carr
8c31e1db2a SurfaceView: Include surfaceInsets in position calculation
Previously the WM was taking care of this.

Fixes: 35588318
Fixes: 34888808
Test: Manual
Change-Id: I8b48d89f830bbef43b0132d191b29552e9c35702
2017-03-02 10:38:40 -08:00
Dianne Hackborn
594ea5f8b0 Merge "Implement issue #34842682: Add ability to limit permissions based on features" 2017-03-02 18:31:15 +00:00
Steve McKay
415f41ba20 Add extra indicating honored query arguments.
Rename QUERY_RESULT_SIZE to EXTRA_TOTAL_SIZE.

Change-Id: I18f1e0b77362c6f898bc4d5846e21dfb205be19a
Test: Manual
Bug: 30927484
2017-03-02 10:23:23 -08:00
Frank Salim
66925ecc64 Revert "Add new key purpose Wrap Key to KeyProperties.java and"
This reverts commit eb30e64f3fac192404a6ae3c162a0770201a7dc2.

Reason for revert: Remove partial support for wrapped key import

Test: CTS tested
Change-Id: I8008494860534257fa983e1a5169d0ed034621f7
2017-03-02 11:16:09 -07:00
Sundeep Ghuman
eede005897 Change from literal to constant in AccessPointPreference.
Bug: b/35854026
Test: NA - non-functional refactor
Change-Id: Ic50ca3e6c9364446bc07207f8bb9a76a27a114c2
2017-03-02 18:07:09 +00:00
Jason Monk
bd60e5bf2e Let ResourcesManager generate CompatResources
This will let the ResourcesImpl be updated and handle null cases
better.

Test: Select text while composing email.
Change-Id: Ia8aed22f02b040a202db9cbb2bc02687c693cfa1
Fixes: 34761805
Fixes: 35869547
2017-03-02 12:55:00 -05:00
Julia Reynolds
77f5317003 Merge "Allow translatable channel names." 2017-03-02 17:50:10 +00:00
Shubham Ajmera
2fa62c5c64 Merge "Fix Javadoc for StrictMode#permitUnbufferdIo" am: b8648ae07a am: c847aae2cf
am: 6404cc18bf

Change-Id: I92ee23cc68a6a204f0cb936c6242475a49a27145
2017-03-02 17:41:36 +00:00
TreeHugger Robot
e6f98079dd Merge "Disable flaky test" 2017-03-02 17:39:15 +00:00
Shubham Ajmera
6404cc18bf Merge "Fix Javadoc for StrictMode#permitUnbufferdIo" am: b8648ae07a
am: c847aae2cf

Change-Id: Ic8a35213b2699c28a0427a0930b330a3a35a34ad
2017-03-02 17:36:11 +00:00
Shubham Ajmera
c847aae2cf Merge "Fix Javadoc for StrictMode#permitUnbufferdIo"
am: b8648ae07a

Change-Id: I86adc3e40c083c999b717384ae38e437a17a9557
2017-03-02 17:32:14 +00:00
Treehugger Robot
b8648ae07a Merge "Fix Javadoc for StrictMode#permitUnbufferdIo" 2017-03-02 17:23:45 +00:00
Narayan Kamath
84b5511535 fd_utils: switch to libbase logging.
Test: make, boots
Change-Id: I4976508f489ca15af0484f75a9ef02ed575beff5
2017-03-02 17:11:00 +00:00
Narayan Kamath
a352d2473a fd_utils: add missing logging for a couple of failure cases.
Also start using libbase style logging. Other log statements will
be converted in a follow up.

Test: make
Bug: 33579623
Change-Id: I34bb2ccab57e5bdd22aa35be8f8dcb68fdc4e097
2017-03-02 17:11:00 +00:00
Bryce Lee
7fbeb8a5d7 Remove mTask from AppWindowToken.
mTask was a duplicate reference to the WindowContainer's parent. The
main benefit of this refenrece was type, as its callers require an
instance of type Task.

With the introduction of the method getTask, we can shift away from
this variable and instead directly cast the parent here. If the
window hierarchy changes in the future (such as AppWindowToken parent
types not being Task), we can re-evaluate and adjust how task is
returned.

Test: manual
Change-Id: Idd6bba1121056ed79745911efe838edfa685bbf2
2017-03-02 09:07:50 -08:00
Charlie Tsai
3f7408fcd9 Merge "Add the test function for rectangle shadow" 2017-03-02 16:51:56 +00:00
Anton Philippov
deb244d3e5 Add more instrumentation to BackupManagerService
Test: manual
Change-Id: I41096b47f594c5254f499778bab996dfdfc13f66
2017-03-02 16:50:50 +00:00