OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge changes I7bd99fc0,I329bc929 am: deee2e12de am: 71ae6b3aab -s ours
Calin Juravle [Wed, 1 Nov 2017 22:42:56 +0000 (22:42 +0000)]
Merge changes I7bd99fc0,I329bc929 am: deee2e12de am: 71ae6b3aab  -s ours
am: ad0cc34ddd  -s ours

Change-Id: I2a017d5eb99446d9834a3941f67d2d2fd234fe30

6 years agoMerge "Fix slice permissions to allow uri grants"
Lucas Dupin [Wed, 1 Nov 2017 22:32:29 +0000 (22:32 +0000)]
Merge "Fix slice permissions to allow uri grants"

6 years agoMerge changes I7bd99fc0,I329bc929 am: deee2e12de
Calin Juravle [Wed, 1 Nov 2017 22:29:53 +0000 (22:29 +0000)]
Merge changes I7bd99fc0,I329bc929 am: deee2e12de
am: 71ae6b3aab  -s ours

Change-Id: Ia35c56d89cc56f315418da14ab0b19f2839a972e

6 years agoMerge changes I7bd99fc0,I329bc929
Calin Juravle [Wed, 1 Nov 2017 22:20:06 +0000 (22:20 +0000)]
Merge changes I7bd99fc0,I329bc929
am: deee2e12de

Change-Id: I52905bf3d6971332b216c8b5f18a695a4bbd23c5

6 years agoMerge "Fix PixelCopyTest failure in CTS"
TreeHugger Robot [Wed, 1 Nov 2017 22:09:36 +0000 (22:09 +0000)]
Merge "Fix PixelCopyTest failure in CTS"

6 years agoMerge changes I7bd99fc0,I329bc929
Treehugger Robot [Wed, 1 Nov 2017 21:52:34 +0000 (21:52 +0000)]
Merge changes I7bd99fc0,I329bc929

* changes:
  Save PackageDexUsage on PMS shutdown
  Record dex files users in the dex-usage list

6 years agoMerge "[framework] Add check that classpath is up to date to getDexOptNeeded" am...
Calin Juravle [Wed, 1 Nov 2017 21:39:02 +0000 (21:39 +0000)]
Merge "[framework] Add check that classpath is up to date to getDexOptNeeded" am: 945b1dc43e am: 8952f058ff
am: b3145221ae  -s ours

Change-Id: Ic6fae72706502b6681b710ddfd35fccd4d0b0b61

6 years agoMerge "Display the number of LTE signal bars is based on RSRP only" am: 896dd7cdb7...
Jordan Liu [Wed, 1 Nov 2017 21:30:38 +0000 (21:30 +0000)]
Merge "Display the number of LTE signal bars is based on RSRP only" am: 896dd7cdb7 am: 973005e208
am: ffb55f273b

Change-Id: I9a130303a18bdb239d3fddc31ed57b9a942df166

6 years agoMerge "Debug: Remove obsolete InstructionCount code." am: f5a8edeaf0 am: 47659c3351
Narayan Kamath [Wed, 1 Nov 2017 21:17:51 +0000 (21:17 +0000)]
Merge "Debug: Remove obsolete InstructionCount code." am: f5a8edeaf0 am: 47659c3351
am: 39343bf215

Change-Id: I79f3b2ec2a2ef449703867dea4dced63ab1b63ad

6 years agoMerge "[framework] Add check that classpath is up to date to getDexOptNeeded" am...
Calin Juravle [Wed, 1 Nov 2017 21:13:56 +0000 (21:13 +0000)]
Merge "[framework] Add check that classpath is up to date to getDexOptNeeded" am: 945b1dc43e
am: 8952f058ff

Change-Id: Iad6377ad17a93948ae41b23d7f49669577869669

6 years agoMerge "PMSCompilerMapping: Hardcode a value for pm.dexopt.inactive" am: dc616ab11c...
Narayan Kamath [Wed, 1 Nov 2017 21:10:48 +0000 (21:10 +0000)]
Merge "PMSCompilerMapping: Hardcode a value for pm.dexopt.inactive" am: dc616ab11c am: cfb01b3f3f
am: 7dc51259cd

Change-Id: Ie72e549707b50d2b9b419e6fc2fbc82301ad3805

6 years agoMerge "Display the number of LTE signal bars is based on RSRP only" am: 896dd7cdb7
Jordan Liu [Wed, 1 Nov 2017 21:03:35 +0000 (21:03 +0000)]
Merge "Display the number of LTE signal bars is based on RSRP only" am: 896dd7cdb7
am: 973005e208

Change-Id: I5da4891c575f92e1703ddbe445b3f662e18c6ca9

6 years agoMerge "Merge "Federate platform docs against support library API file" into stage...
Android Build Merger (Role) [Wed, 1 Nov 2017 21:02:22 +0000 (21:02 +0000)]
Merge "Merge "Federate platform docs against support library API file" into stage-aosp-master am: 4ede13e1f5  -s ours am: e8bb602327"

6 years agoMerge "Revert "Fix overactive media routing""
TreeHugger Robot [Wed, 1 Nov 2017 21:01:48 +0000 (21:01 +0000)]
Merge "Revert "Fix overactive media routing""

6 years agoMerge "Federate platform docs against support library API file" into stage-aosp-maste...
Alan Viverette [Wed, 1 Nov 2017 20:58:27 +0000 (20:58 +0000)]
Merge "Federate platform docs against support library API file" into stage-aosp-master am: 4ede13e1f5  -s ours
am: e8bb602327

Change-Id: Ibae4b017135378e12cb836b9874853507086dfac

6 years agoMerge "Add window manager tracing"
TreeHugger Robot [Wed, 1 Nov 2017 20:58:12 +0000 (20:58 +0000)]
Merge "Add window manager tracing"

6 years agoMerge "Debug: Remove obsolete InstructionCount code." am: f5a8edeaf0
Narayan Kamath [Wed, 1 Nov 2017 20:56:50 +0000 (20:56 +0000)]
Merge "Debug: Remove obsolete InstructionCount code." am: f5a8edeaf0
am: 47659c3351

Change-Id: I1d4b929ead3af4ef3f9d28de2a3e905d124e718c

6 years agoMerge "PMSCompilerMapping: Hardcode a value for pm.dexopt.inactive" am: dc616ab11c
Narayan Kamath [Wed, 1 Nov 2017 20:51:37 +0000 (20:51 +0000)]
Merge "PMSCompilerMapping: Hardcode a value for pm.dexopt.inactive" am: dc616ab11c
am: cfb01b3f3f

Change-Id: I69346b88c5ae62d4e520de25334fe9056a817994

6 years agoMerge "Federate platform docs against support library API file" into stage-aosp-master
Alan Viverette [Wed, 1 Nov 2017 20:44:31 +0000 (20:44 +0000)]
Merge "Federate platform docs against support library API file" into stage-aosp-master
am: 4ede13e1f5  -s ours

Change-Id: Id389db628eb0eb307e6401323b41612e4f89b1de

6 years agoMerge "[framework] Add check that classpath is up to date to getDexOptNeeded"
Calin Juravle [Wed, 1 Nov 2017 20:15:44 +0000 (20:15 +0000)]
Merge "[framework] Add check that classpath is up to date to getDexOptNeeded"
am: 945b1dc43e

Change-Id: Ib9865f950f595ab840ceb3afd60ad52d33cb5c01

6 years agoFix slice permissions to allow uri grants
Jason Monk [Wed, 1 Nov 2017 20:01:40 +0000 (16:01 -0400)]
Fix slice permissions to allow uri grants

Also bypass when caller is self.

Test: bind own app's slice.
Bug: 68751119
Change-Id: I7b4b0f2a81bf6168cb81b03056c6b75e17808036

6 years agoSave PackageDexUsage on PMS shutdown
Calin Juravle [Fri, 28 Jul 2017 23:13:35 +0000 (16:13 -0700)]
Save PackageDexUsage on PMS shutdown

This ensures that we persist the in memory data between restarts (makes
testing much easier).

(cherry picked from commit 14876bd21a4a4e7d78d36f910493269f14b2e905)

Bug: 64151900
Test: Manual, flash + restart + check the dex usage file

(cherry picked from commit 6ef7f0b8c6e72e849a220513425a9fd37804af90)

Merged-In: I7bd99fc03c3a40cbbf5d615886f857b5f84f438c
Change-Id: I7bd99fc03c3a40cbbf5d615886f857b5f84f438c

6 years agoRecord dex files users in the dex-usage list
Calin Juravle [Sat, 4 Feb 2017 00:55:49 +0000 (16:55 -0800)]
Record dex files users in the dex-usage list

Add the users of the dex files in the package-dex-usage.list. This will
provide more data on why a package is marked as shared and not optimized
using profiles.

(cherry picked from commit 535a4753e313bdc2ae3e8be9f50606b82edcce0c)

Test: runtest -x .../DexManagerTests.java
      users of the dex files are recorded in package-dex-usage.list

Bug: 63778376
Merged-In: I329bc929b17fa0afe1531f3e6879f6160157a787
Change-Id: I329bc929b17fa0afe1531f3e6879f6160157a787

6 years agoFix PixelCopyTest failure in CTS
Romain Guy [Wed, 1 Nov 2017 16:50:28 +0000 (09:50 -0700)]
Fix PixelCopyTest failure in CTS

This feature needs support for renderable float textures, but the checks
were only guaranteeing support for float texture reads.

Bug: 68754504
Test: CtsViewTestCases

Change-Id: I0ce4a81cb8e09c10a5f1e65234685767a24ef8c4

6 years agoMerge "[framework] Add check that classpath is up to date to getDexOptNeeded"
Treehugger Robot [Wed, 1 Nov 2017 19:54:44 +0000 (19:54 +0000)]
Merge "[framework] Add check that classpath is up to date to getDexOptNeeded"

6 years agoMerge "Adding multi layer aggregation in DurationMetric"
TreeHugger Robot [Wed, 1 Nov 2017 19:27:56 +0000 (19:27 +0000)]
Merge "Adding multi layer aggregation in DurationMetric"

6 years agoRevert "Fix overactive media routing"
Eric Laurent [Wed, 1 Nov 2017 18:39:02 +0000 (18:39 +0000)]
Revert "Fix overactive media routing"

This reverts commit 18341301443d0c8e1bd4fc1ba9a7c909593eb918.

NullPointerException when converting prevState to int with prevState == null at line 171 in AudioPlayerStateMonitor.java

Bug: 68748062
Bug: 65376604
Change-Id: Ib4b457e890a7ee8d9e347df7042dbad5e3018031

6 years agoMerge "Adjust preference alignment."
TreeHugger Robot [Wed, 1 Nov 2017 18:49:22 +0000 (18:49 +0000)]
Merge "Adjust preference alignment."

6 years agoMerge "Reduce a11y shortcut timeout from 1.5sec to 1sec"
Eugene Susla [Wed, 1 Nov 2017 18:33:11 +0000 (18:33 +0000)]
Merge "Reduce a11y shortcut timeout from 1.5sec to 1sec"

6 years agoAdd window manager tracing
Adrian Roos [Wed, 27 Sep 2017 16:11:46 +0000 (18:11 +0200)]
Add window manager tracing

Bug: 64831661
Test: adb shell cmd wm tracing start && adb shell cmd wm tracing stop
Test: runtest -x services/tests/servicestests/src/com/android/server/wm/WindowTracingTest.java
Change-Id: I6ebbb25fea8dd07ac8773edad61cc8b14dcda6a7

6 years agoMerge "Display the number of LTE signal bars is based on RSRP only"
Jordan Liu [Wed, 1 Nov 2017 18:00:31 +0000 (18:00 +0000)]
Merge "Display the number of LTE signal bars is based on RSRP only"
am: 896dd7cdb7

Change-Id: Ic2bc88b627ba2110e16103f027843c7b90131e31

6 years agoMerge "Debug: Remove obsolete InstructionCount code."
Narayan Kamath [Wed, 1 Nov 2017 17:50:16 +0000 (17:50 +0000)]
Merge "Debug: Remove obsolete InstructionCount code."
am: f5a8edeaf0

Change-Id: Ia070e4dee54ac652545b174881defca2abbfd5df

6 years agoMerge "Display the number of LTE signal bars is based on RSRP only"
Jordan Liu [Wed, 1 Nov 2017 17:47:58 +0000 (17:47 +0000)]
Merge "Display the number of LTE signal bars is based on RSRP only"

6 years agoMerge "Adds logging to push settings changed to statsd."
TreeHugger Robot [Wed, 1 Nov 2017 17:41:22 +0000 (17:41 +0000)]
Merge "Adds logging to push settings changed to statsd."

6 years agoMerge "Updates uidmap to update snapshots and upload."
TreeHugger Robot [Wed, 1 Nov 2017 17:40:10 +0000 (17:40 +0000)]
Merge "Updates uidmap to update snapshots and upload."

6 years agoMerge "PMSCompilerMapping: Hardcode a value for pm.dexopt.inactive"
Narayan Kamath [Wed, 1 Nov 2017 17:39:12 +0000 (17:39 +0000)]
Merge "PMSCompilerMapping: Hardcode a value for pm.dexopt.inactive"
am: dc616ab11c

Change-Id: I6b4e8042eb9c657950157dcc49121b24efc196c1

6 years agoMerge "Refactor incident_helper to use protoutil and cppstream plugin."
TreeHugger Robot [Wed, 1 Nov 2017 17:31:06 +0000 (17:31 +0000)]
Merge "Refactor incident_helper to use protoutil and cppstream plugin."

6 years agoMerge "Debug: Remove obsolete InstructionCount code."
Narayan Kamath [Wed, 1 Nov 2017 17:27:40 +0000 (17:27 +0000)]
Merge "Debug: Remove obsolete InstructionCount code."

6 years agoMerge "PMSCompilerMapping: Hardcode a value for pm.dexopt.inactive"
Treehugger Robot [Wed, 1 Nov 2017 17:23:27 +0000 (17:23 +0000)]
Merge "PMSCompilerMapping: Hardcode a value for pm.dexopt.inactive"

6 years agoMerge "Remove orientation restriction to only fullscreen activities."
Bryce Lee [Wed, 1 Nov 2017 17:17:54 +0000 (17:17 +0000)]
Merge "Remove orientation restriction to only fullscreen activities."

6 years agoMerge "ExifInterface: prefer metadata from image track"
Chong Zhang [Wed, 1 Nov 2017 17:09:26 +0000 (17:09 +0000)]
Merge "ExifInterface: prefer metadata from image track"

6 years agoMerge "Redact filter text when autofill UI is dumped, as it could contain PII."
TreeHugger Robot [Wed, 1 Nov 2017 17:07:55 +0000 (17:07 +0000)]
Merge "Redact filter text when autofill UI is dumped, as it could contain PII."

6 years agoAdding multi layer aggregation in DurationMetric
Yao Chen [Tue, 31 Oct 2017 05:57:06 +0000 (22:57 -0700)]
Adding multi layer aggregation in DurationMetric

Newly supported metrics examples:

1) Compute [Total|Max] duration of [an app] holding [ANY] wake lock while [this app] is in
   [background] and [screen off], bucket size 30seconds, and slice output by uid.

2) Compute [Total|Max] duration of [ANY app] holding [ANY] wake lock while [this app] is in
   [background] and [screen off], bucket size 30 seconds.

+ DurationMetric proto has a "what" which is a SimpleCondition. It defines the atom level start
  and stop of the duration timer, and it has its atom dimension. e.g., for wake locks, the atom
  dimensions wil be uid and wl name.

+ Now dimension is explicitly specified in SimpleCondition proto instead of inferred from the "link"

+ Added support for "Or" and "Max" through 2 layers of aggregation.

TODO: (1) The way we track slicedCondition in duration metric is not efficient. optimize!
      (2) The output dimension should all use int32 instead of KeyMatcher. Fix in a future cl.

Test: Added some unit tests using gmock. Will add more unit tests.

Change-Id: I58a827624f01f9a54fcb80709c4de4ff94a8bc67

6 years agoMerge "Federate platform docs against support library API file" into stage-aosp-master
TreeHugger Robot [Wed, 1 Nov 2017 16:38:14 +0000 (16:38 +0000)]
Merge "Federate platform docs against support library API file" into stage-aosp-master

6 years agoAAPT2: Allow for nested inline xmls am: c8f5fc284c
Michael Wachenschwanz [Wed, 1 Nov 2017 15:58:21 +0000 (15:58 +0000)]
AAPT2: Allow for nested inline xmls am: c8f5fc284c
am: 114616b27d

Change-Id: I6638dd9b1f8cb65b9260c38091be754531eb7c2b

6 years agoAAPT2: Allow for nested inline xmls
Michael Wachenschwanz [Wed, 1 Nov 2017 15:49:39 +0000 (15:49 +0000)]
AAPT2: Allow for nested inline xmls
am: c8f5fc284c

Change-Id: Ie80ba078d893d1b894d289645dae84fa2af58c40

6 years ago[framework] Add check that classpath is up to date to getDexOptNeeded
Calin Juravle [Tue, 12 Sep 2017 07:58:33 +0000 (00:58 -0700)]
[framework] Add check that classpath is up to date to getDexOptNeeded

(cherry picked from commit 576e6c0cbb0231d6650dee70319d7443c601fa1b)

Bug: 62269291
Test: manual, install new apk/splits and force updates.
I used com.android.cts.classloadersplitapp as the test app.
1) install-multiple split apks with dependency: Base -> A -> B
2) push an update for A
3) adb shell cmd package compile
4) check that A & B got recompiled and that B was because a class loader
context mismatch (e.g. "ClassLoaderContext classpath element checksum
mismatch for position 1.").

Merged-In: I4092562966413dc8976c9d41b26a90bbb9e37e1e
Change-Id: I4092562966413dc8976c9d41b26a90bbb9e37e1e

6 years agoPMSCompilerMapping: Hardcode a value for pm.dexopt.inactive
Narayan Kamath [Wed, 1 Nov 2017 15:01:48 +0000 (15:01 +0000)]
PMSCompilerMapping: Hardcode a value for pm.dexopt.inactive

This is a temporary hack while we sort out the larger issues.

Test: make & flash
Bug: 68755013

Change-Id: I39f2e7f2e39f4d886ea5fa3d91648404347485ef

6 years agoDebug: Remove obsolete InstructionCount code.
Narayan Kamath [Tue, 30 May 2017 17:04:36 +0000 (18:04 +0100)]
Debug: Remove obsolete InstructionCount code.

Support for instruction counting has been removed from ART
and the VMDebug APIs in question throw UnsupportedOperationException
unconditionally.

Test: make

Change-Id: Ibcaa160f755a5708bc6fbef3a783acfc26f0ba90

6 years agoMerge "Don't show notification shade on keyguard when disabled."
Charles He [Wed, 1 Nov 2017 08:54:24 +0000 (08:54 +0000)]
Merge "Don't show notification shade on keyguard when disabled."

6 years agoDisplay the number of LTE signal bars is based on RSRP only
Wenting Xiong [Wed, 18 Oct 2017 06:05:49 +0000 (15:05 +0900)]
Display the number of LTE signal bars is based on RSRP only

Some carriers require to display the number of LTE signal bars is
based on RSRP only.
This carrier config is used to control it.

Test: manual - Checked that the number of LTE signal bars display
which base on RSRP only can be controlled by carrier config.
Bug: 67831028

Change-Id: I077ef253f34fc503a591dcb3f01d60ab6573f298

6 years agoMerge "Fix overactive media routing"
TreeHugger Robot [Wed, 1 Nov 2017 04:10:23 +0000 (04:10 +0000)]
Merge "Fix overactive media routing"

6 years agoRemove orientation restriction to only fullscreen activities.
Bryce Lee [Wed, 1 Nov 2017 02:50:54 +0000 (19:50 -0700)]
Remove orientation restriction to only fullscreen activities.

This changelist removes checks that enforce that only fullscreen,
opaque activities may request orientation changes. An application
may itself be compatible with the change and update their SDK level.
However, it is possible they use a library that has not itself been
updated and still leverages this feature for non-fullscreen
activities.

Change-Id: Ie1d300e3531fc8c588d2124dea698e4a876713c2
Fixes: 68684796
Test: bit FrameworksServicesTests:com.android.server.wm.AppWindowTokenTests

6 years agoMerge "Change the location of current profiles for secondary dex files" am: 80c3c7093...
Calin Juravle [Wed, 1 Nov 2017 03:12:47 +0000 (03:12 +0000)]
Merge "Change the location of current profiles for secondary dex files" am: 80c3c70930 am: babf30ed97  -s ours
am: 42884cf71d  -s ours

Change-Id: Id7947cf3c70f9bc2d0c176f2e52b2ced99cf9640

6 years agoMerge changes Ia0623d38,Iaabd5d8b,I579bb12f,Ia9930edd am: 2b1357fe90 am: e9e84a1dca...
Calin Juravle [Wed, 1 Nov 2017 03:03:54 +0000 (03:03 +0000)]
Merge changes Ia0623d38,Iaabd5d8b,I579bb12f,Ia9930edd am: 2b1357fe90 am: e9e84a1dca  -s ours
am: cc005fdf6f  -s ours

Change-Id: Ibe8105f8f77e011509d371b9d863b9799b0980d1

6 years agoMerge "Change the location of current profiles for secondary dex files" am: 80c3c70930
Calin Juravle [Wed, 1 Nov 2017 03:02:34 +0000 (03:02 +0000)]
Merge "Change the location of current profiles for secondary dex files" am: 80c3c70930
am: babf30ed97  -s ours

Change-Id: If6b337b351ffa637da6fd52def6b937d250e5522

6 years agoMerge "Merge "Reduce app size by downgrading inactive apps" am: 8bcd66d35f am: b11556...
Android Build Merger (Role) [Wed, 1 Nov 2017 02:57:47 +0000 (02:57 +0000)]
Merge "Merge "Reduce app size by downgrading inactive apps" am: 8bcd66d35f am: b11556fcf6  -s ours am: 28ff2fbec5  -s ours"

6 years agoMerge "Fix for incorrect proximity alert interval setting"
TreeHugger Robot [Wed, 1 Nov 2017 02:57:19 +0000 (02:57 +0000)]
Merge "Fix for incorrect proximity alert interval setting"

6 years agoMerge "Reduce app size by downgrading inactive apps" am: 8bcd66d35f am: b11556fcf6...
Shubham Ajmera [Wed, 1 Nov 2017 02:54:34 +0000 (02:54 +0000)]
Merge "Reduce app size by downgrading inactive apps" am: 8bcd66d35f am: b11556fcf6  -s ours
am: 28ff2fbec5  -s ours

Change-Id: Ib8a3d303bbf4642be30294d27aedf6b053facf92

6 years agoMerge changes Ia0623d38,Iaabd5d8b,I579bb12f,Ia9930edd am: 2b1357fe90
Calin Juravle [Wed, 1 Nov 2017 02:51:28 +0000 (02:51 +0000)]
Merge changes Ia0623d38,Iaabd5d8b,I579bb12f,Ia9930edd am: 2b1357fe90
am: e9e84a1dca  -s ours

Change-Id: I25e1264c880dbc54f5e67ee98eac566bbdf4536b

6 years agoMerge "Change the location of current profiles for secondary dex files"
Calin Juravle [Wed, 1 Nov 2017 02:48:59 +0000 (02:48 +0000)]
Merge "Change the location of current profiles for secondary dex files"
am: 80c3c70930

Change-Id: I5ece1daa5796915c0dc6d19e791a0e81c311feb7

6 years agoMerge "Generate constants for enum values."
Stefan Lafon [Wed, 1 Nov 2017 02:44:58 +0000 (02:44 +0000)]
Merge "Generate constants for enum values."

6 years agoMerge changes Ia0623d38,Iaabd5d8b,I579bb12f,Ia9930edd
Calin Juravle [Wed, 1 Nov 2017 02:43:04 +0000 (02:43 +0000)]
Merge changes Ia0623d38,Iaabd5d8b,I579bb12f,Ia9930edd
am: 2b1357fe90

Change-Id: Iee60be352c2e742fdd1d3f7ce15e58e455ac1ead

6 years agoMerge "Reduce app size by downgrading inactive apps" am: 8bcd66d35f
Shubham Ajmera [Wed, 1 Nov 2017 02:41:28 +0000 (02:41 +0000)]
Merge "Reduce app size by downgrading inactive apps" am: 8bcd66d35f
am: b11556fcf6  -s ours

Change-Id: I3daf016f968eeae3010fcde9d079b7f9ff2d7e48

6 years agoMerge "Allow managed services on watches"
TreeHugger Robot [Wed, 1 Nov 2017 02:40:45 +0000 (02:40 +0000)]
Merge "Allow managed services on watches"

6 years agoMerge "Reduce app size by downgrading inactive apps"
Shubham Ajmera [Wed, 1 Nov 2017 02:31:46 +0000 (02:31 +0000)]
Merge "Reduce app size by downgrading inactive apps"
am: 8bcd66d35f

Change-Id: I4bfba3f7eb16442a7a69466cf72b22198acde6c4

6 years agoMerge "Change the location of current profiles for secondary dex files"
Treehugger Robot [Wed, 1 Nov 2017 02:22:48 +0000 (02:22 +0000)]
Merge "Change the location of current profiles for secondary dex files"

6 years agoMerge changes Ia0623d38,Iaabd5d8b,I579bb12f,Ia9930edd
Treehugger Robot [Wed, 1 Nov 2017 02:21:42 +0000 (02:21 +0000)]
Merge changes Ia0623d38,Iaabd5d8b,I579bb12f,Ia9930edd

* changes:
  Fix splits class loader context for non dependant splits
  Encode the entire class loader context for dex2oat
  Add a command line option to optimize individual splits
  Refactor the arguments passed to dexopt invocations

6 years agoMerge "Reduce app size by downgrading inactive apps"
Treehugger Robot [Wed, 1 Nov 2017 02:19:57 +0000 (02:19 +0000)]
Merge "Reduce app size by downgrading inactive apps"

6 years agoMerge "Adds APIs to extract/import arrays of primitive Java types out of/into a HwBlo...
Andreas Huber [Wed, 1 Nov 2017 01:51:25 +0000 (01:51 +0000)]
Merge "Adds APIs to extract/import arrays of primitive Java types out of/into a HwBlob." am: a546c38130 am: 33569ca480
am: 4b5806cea6

Change-Id: I202635b9b7c0800eadfe0923e29c94d2dd39dcb5

6 years agoMerge changes I2ef3737f,If080281f am: bb3de35e5f am: 18a93665a0 -s ours
Mathieu Chartier [Wed, 1 Nov 2017 01:44:49 +0000 (01:44 +0000)]
Merge changes I2ef3737f,If080281f am: bb3de35e5f am: 18a93665a0  -s ours
am: ad8030f578  -s ours

Change-Id: If3dc1463089b22f16617077bf4de1303a1c523c0

6 years agoMerge "Change storage migration to use quota APIs." am: 0fccecc6a0 am: 83fabf2fd6...
Jeff Sharkey [Wed, 1 Nov 2017 01:35:21 +0000 (01:35 +0000)]
Merge "Change storage migration to use quota APIs." am: 0fccecc6a0 am: 83fabf2fd6  -s ours
am: 034d66ec5d  -s ours

Change-Id: I08a0a73e8238a1a6caf876665aa01e7c3384a1b0

6 years agoAdds logging to push settings changed to statsd.
David Chen [Tue, 24 Oct 2017 19:52:52 +0000 (12:52 -0700)]
Adds logging to push settings changed to statsd.

Introduces atom and logging for every time a setting is updated.
We also include the previous value to validate our logging
data quality. We need to add the INTERACT_ACROSS_USERS_FULL
permission to prevent a security exception during testing; since the
logging occurs from system_server uid, this security exception should
not occur normally.

Test: Manual by inspecting the statsd output while toggling settings.
Change-Id: I92ca2afa596e54e61936e22611d749bb60ccb364

6 years agoMerge "Reland "HIDL Java getService now the same as C++."" am: c1616f6820 am: 0c6f0240b2
Steven Moreland [Wed, 1 Nov 2017 01:19:01 +0000 (01:19 +0000)]
Merge "Reland "HIDL Java getService now the same as C++."" am: c1616f6820 am: 0c6f0240b2
am: be0f18fe3d

Change-Id: If15ebb8582478ebcc8d45a2ace0c8f2825932dc9

6 years agoMerge "Correct stackstack typo"
TreeHugger Robot [Wed, 1 Nov 2017 00:43:38 +0000 (00:43 +0000)]
Merge "Correct stackstack typo"

6 years agoMerge changes Icb5ea78e,I1cf97299
Winson Chung [Wed, 1 Nov 2017 00:42:27 +0000 (00:42 +0000)]
Merge changes Icb5ea78e,I1cf97299

* changes:
  Move more calls to the lib.
  Migrating some animation spec logic to shared lib

6 years agoReduce a11y shortcut timeout from 1.5sec to 1sec
Eugene Susla [Wed, 1 Nov 2017 00:10:41 +0000 (17:10 -0700)]
Reduce a11y shortcut timeout from 1.5sec to 1sec

Fixes: 63914635
Test: ensure shortcut delay is still 3sec before dialog confirmation and
1sec afterwards
Change-Id: I1b9d8eeb93358d036f2f6d048f85a379d996d758

6 years agoMerge "Adds APIs to extract/import arrays of primitive Java types out of/into a HwBlo...
Andreas Huber [Wed, 1 Nov 2017 00:03:34 +0000 (00:03 +0000)]
Merge "Adds APIs to extract/import arrays of primitive Java types out of/into a HwBlob." am: a546c38130
am: 33569ca480

Change-Id: Ic3048cf4539b112027089726b529e3c0838c40f4

6 years agoMerge changes I2ef3737f,If080281f am: bb3de35e5f
Mathieu Chartier [Tue, 31 Oct 2017 23:57:53 +0000 (23:57 +0000)]
Merge changes I2ef3737f,If080281f am: bb3de35e5f
am: 18a93665a0  -s ours

Change-Id: Ic8b4862eca342e5b9705c16879d800005a2291bf

6 years agoRefactor incident_helper to use protoutil and cppstream plugin.
Yi Jin [Wed, 18 Oct 2017 01:29:33 +0000 (18:29 -0700)]
Refactor incident_helper to use protoutil and cppstream plugin.

1. Split the parsers to its own file to prevent all the parsers in one
gaint file.

2. Completely get rid of protobuf-cpp-full in incident_helper, use
ProtoOutputStream and cppstream instead, the incident_helper binary is
reduced from ~500K to ~113K.

3. Write data to protobuf even its values are zero/default, the reason
is for example we have a repeated int32 orders = 1; and people
explicitly append 0 so the total repeated field has 10 values, if zero
is not written to serialized data, this repeated field will only have 9
values which is not what we want at first place. This also aligns with
the default protobuf serialization behavior in incident_helper_test.

4. Use Android.bp for protoutil lib since it is not able to depend on
libs compiled by .mk file, it works the other way.

5. Add a new custom message option for streaming_proto, if specified,
the cppstream will create extra metadata to get field ids by field name.
A Table class is created in incident_helper to use it.

Bug: 67860303
Test: unit tested as well as on device test
Change-Id: I8e136fd15f343a4a623d20910ec64b622b478a3e

6 years agoMerge "Fixing javadoc typo from gerrit 3027804"
TreeHugger Robot [Tue, 31 Oct 2017 23:52:11 +0000 (23:52 +0000)]
Merge "Fixing javadoc typo from gerrit 3027804"

6 years agoMerge "Change storage migration to use quota APIs." am: 0fccecc6a0
Jeff Sharkey [Tue, 31 Oct 2017 23:48:13 +0000 (23:48 +0000)]
Merge "Change storage migration to use quota APIs." am: 0fccecc6a0
am: 83fabf2fd6  -s ours

Change-Id: I9023d8214f0f899d6065a074a92e80dea7359280

6 years agoMerge "Reland "HIDL Java getService now the same as C++."" am: c1616f6820
Steven Moreland [Tue, 31 Oct 2017 23:40:34 +0000 (23:40 +0000)]
Merge "Reland "HIDL Java getService now the same as C++."" am: c1616f6820
am: 0c6f0240b2

Change-Id: I35ee525aaa1563cc6d8fde5dac1e38e04803bb38

6 years agoFix for incorrect proximity alert interval setting
Lifu Tang [Tue, 31 Oct 2017 23:29:35 +0000 (16:29 -0700)]
Fix for incorrect proximity alert interval setting

LOCATION_BACKGROUND_THROTTLE_PROXIMITY_ALERT_INTERVAL_MS
should be used as the value for proximity alert interval.
However, LOCATION_BACKGROUND_THROTTLE_INTERVAL_MS is used
instead.

Bug: 64937144
Bug: 36197768
Test: manual
Change-Id: I589c5eecc2f331992cd057364b472afeb8bde756

6 years agoUpdates uidmap to update snapshots and upload.
David Chen [Wed, 25 Oct 2017 18:49:03 +0000 (11:49 -0700)]
Updates uidmap to update snapshots and upload.

We send a snapshot of all installed apps with their uids every time
a user is added or removed and when statsd is started.
We keep track of the latest timestamp when a config key has retrieved
the UID map data. This allows us to remove older data when we're
guaranteed that all config sources have retrieved the old data.

Test: Added more unit tests to UidMap_test and passed on marlin-eng.
Change-Id: I34a3d61e75eedec44b98d896d7f6db0bc383f46a

6 years agoAAPT2: Allow for nested inline xmls
Michael Wachenschwanz [Tue, 31 Oct 2017 02:06:23 +0000 (19:06 -0700)]
AAPT2: Allow for nested inline xmls

Add recursion to InlineXmlFormatParser::Consume for handling nested
aapt:attr

Change-Id: Iabf98945b4f5ef22a3b8fdc4ca2bac092a377629
Fixes: 64385167
Test: make aapt2_tests
(cherry picked from commit 7b6b02bd13aea90b938c3ab3b1eaa3fb5043f931)

6 years agoMerge "WebView: misc docs changes in WebViewClient"
TreeHugger Robot [Tue, 31 Oct 2017 23:12:51 +0000 (23:12 +0000)]
Merge "WebView: misc docs changes in WebViewClient"

6 years agoMerge "Adds APIs to extract/import arrays of primitive Java types out of/into a HwBlob."
Andreas Huber [Tue, 31 Oct 2017 23:08:26 +0000 (23:08 +0000)]
Merge "Adds APIs to extract/import arrays of primitive Java types out of/into a HwBlob."
am: a546c38130

Change-Id: I969ec51ed8fc6c7e11e7cfe7c4e1a3d6aa5802de

6 years agoRedact filter text when autofill UI is dumped, as it could contain PII.
Felipe Leme [Tue, 31 Oct 2017 22:24:11 +0000 (15:24 -0700)]
Redact filter text when autofill UI is dumped, as it could contain PII.

Bug: no
Test: manual verification

Change-Id: I517ebac97a0a95e90a2f5d457e0f4d3ff70a6155

6 years agoMerge "Adds APIs to extract/import arrays of primitive Java types out of/into a HwBlob."
Treehugger Robot [Tue, 31 Oct 2017 22:59:34 +0000 (22:59 +0000)]
Merge "Adds APIs to extract/import arrays of primitive Java types out of/into a HwBlob."

6 years agoMerge "Add READ_PHONE_STATE to MediaProvider."
TreeHugger Robot [Tue, 31 Oct 2017 22:39:59 +0000 (22:39 +0000)]
Merge "Add READ_PHONE_STATE to MediaProvider."

6 years agoMerge changes I2ef3737f,If080281f
Mathieu Chartier [Tue, 31 Oct 2017 22:31:32 +0000 (22:31 +0000)]
Merge changes I2ef3737f,If080281f
am: bb3de35e5f

Change-Id: Ibe1af669d200057f1d91142299055694b55b5660

6 years agoChange the location of current profiles for secondary dex files
Calin Juravle [Thu, 27 Jul 2017 23:05:25 +0000 (16:05 -0700)]
Change the location of current profiles for secondary dex files

Move the secondary dex profiles inside the oat folder. This makes it
easier to clean them up and "protects" them against apps which may delete
unknown files from their directories (e.g. search).

(cherry picked from commit eec18f41e2ecbdf95dab6584e72a64f827bb89f7)

Bug: 62336157
Test: Manual: boot the device, use the app, check the profiles are
collected in the new location.

Merged-In: I2fbce7591589d162775e4652b12e4698083adcff
Change-Id: I2fbce7591589d162775e4652b12e4698083adcff

6 years agoMerge "Change storage migration to use quota APIs."
Jeff Sharkey [Tue, 31 Oct 2017 22:22:21 +0000 (22:22 +0000)]
Merge "Change storage migration to use quota APIs."
am: 0fccecc6a0

Change-Id: I15f1aa9f01b5cef928b8b68e2568bf67e1e387b9

6 years agoMerge "Reland "HIDL Java getService now the same as C++.""
Steven Moreland [Tue, 31 Oct 2017 22:16:18 +0000 (22:16 +0000)]
Merge "Reland "HIDL Java getService now the same as C++.""
am: c1616f6820

Change-Id: I5d53c369ae9cb1bc963b06e734cf9c47ad61265f

6 years agoFix splits class loader context for non dependant splits
Calin Juravle [Fri, 14 Jul 2017 23:40:07 +0000 (16:40 -0700)]
Fix splits class loader context for non dependant splits

If the app doesn't request for splits to be loaded in isolation or does
not declare inter-split dependencies, then all the splits are loaded in
the base apk class loader (in the order of they are defined).

Fix the class loader context passed to dex2oat to reflect the runtime
loading logic.

(cherry picked from commit 305aeea38f96f0b94ad4be5cb979dd9cf98cf7df)

Bug: 38138251
Test: runtest -x
services/tests/servicestests/src/com/android/server/pm/dex/DexoptUtilsTest.java

Merged-In: Ia0623d38883ae244fd16c0afb053fef016bf260a
Change-Id: Ia0623d38883ae244fd16c0afb053fef016bf260a

6 years agoEncode the entire class loader context for dex2oat
Calin Juravle [Thu, 13 Jul 2017 01:52:49 +0000 (18:52 -0700)]
Encode the entire class loader context for dex2oat

Until now the split dependencies were passed as a flatten list to dex2oat.
In the presence of DelegateLastClassLoaders this is no longer enough to
ensure the correctness of the compilation.

This CL encodes the split dependencies together with their declared class
loader in a format accepted by dex2oat.

(partially cherry picked from commit 19da1cf72e8c448743a8c27ac6d73424ae42c7ec)

Bug: 38138251
Test: runtest -x
services/tests/servicestests/src/com/android/server/pm/dex/DexoptUtilsTest.java

Merged-In: Iaabd5d8bd5e6d027a8de5a408777fd517063d9f1
Change-Id: Iaabd5d8bd5e6d027a8de5a408777fd517063d9f1

6 years agoMerge "Set updated system package's mExtra"
TreeHugger Robot [Tue, 31 Oct 2017 21:59:53 +0000 (21:59 +0000)]
Merge "Set updated system package's mExtra"

6 years agoReduce app size by downgrading inactive apps
Shubham Ajmera [Thu, 25 May 2017 00:46:36 +0000 (17:46 -0700)]
Reduce app size by downgrading inactive apps

This will trigger when the device will have low space.
Active apps here refer to the apps which were either active
in foregrond or in background and also used by other packages.
Apps which are inactive for X days downgraded to verify. X is
determined by sysprop pm.dexopt.unopt_after_inactive_days

If the system properties are not set, no effect will take place.

The above operations will take place in background dexopt service.
If user uses the app again, it will again be speed-compiled when
background dexopt service starts next time.

(cherry picked from commit 246dccf9327631597767afe418ce43ae6d07d102)

Bug: 36598475
Test: manual
* Remove the check in the code that allows downgrade only when
  the space is low on the device.
* adb root
* Set pm.dexopt_unopt_after_inactive_days to 600
* Make sure the current time of the device is correctly set
* Install 2 non system apps - B, C
* Downgrade B to extract
* Upgrade a system apps to speed-profile - E
* Downgrade a system app to quicken - G
* adb shell cmd package bg-dexopt-job

Expected Results:
* Extract - B
* Verify - C
* There should not be any entries for apps E an G
  in dalvik_cache

Merged-In: I68f9f617d6722a7ba8b00aa2181cb38a165cfc51
Change-Id: I68f9f617d6722a7ba8b00aa2181cb38a165cfc51

6 years agoAdd a command line option to optimize individual splits
Calin Juravle [Mon, 17 Jul 2017 22:23:21 +0000 (15:23 -0700)]
Add a command line option to optimize individual splits

The new option is "--split SplitName" and applies to "adb shell cmd
package compile" command.

Usage example:
adb shell cmd package compile -m speed --split split_feature_a.apk
com.android.cts.classloadersplitapp

(cherry picked from commit b6f844d28cc7a7bf2b477a904263fcbe9b26d2c4)

Bug: 38138251

Test: adb install-multiple CtsClassloaderSplitApp.apk
CtsClassloaderSplitAppFeatureA.apk CtsClassloaderSplitAppFeatureB.apk
      adb shell cmd package compile -m speed --split split_feature_a.apk
com.android.cts.classloadersplitapp
      check the status of split_feature_a
      runtest -x
services/tests/servicestests/src/com/android/server/pm/dex/DexoptOptionsTests.java

Merged-In: I579bb12fa6699f99cd3824f185bd9352fb8007c5
Change-Id: I579bb12fa6699f99cd3824f185bd9352fb8007c5