OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Remove flaky AppWindowToken tests from presubmit"
TreeHugger Robot [Fri, 3 Nov 2017 02:32:12 +0000 (02:32 +0000)]
Merge "Remove flaky AppWindowToken tests from presubmit"

6 years agoMerge "Merge "Added default home values of CDMA roaming indicator" am: a7c51a3d7f...
Jack Yu [Fri, 3 Nov 2017 02:14:56 +0000 (02:14 +0000)]
Merge "Merge "Added default home values of CDMA roaming indicator" am: a7c51a3d7f" into stage-aosp-master am: 55636146d5
am: 1d2bae2a3a

Change-Id: I934746afc46ca5af9ec4b07716604505528f6cd7

6 years agoMerge "Merge "Added default home values of CDMA roaming indicator" am: a7c51a3d7f...
Jack Yu [Fri, 3 Nov 2017 02:02:06 +0000 (02:02 +0000)]
Merge "Merge "Added default home values of CDMA roaming indicator" am: a7c51a3d7f" into stage-aosp-master
am: 55636146d5

Change-Id: Ic9f26d50bf0059e0bc5330dc12d15eb04caba473

6 years agoMerge "Merge "Merge "[framework] Compile secondary dex files in isolation" am: e9e3bf...
Android Build Merger (Role) [Fri, 3 Nov 2017 01:59:31 +0000 (01:59 +0000)]
Merge "Merge "Merge "[framework] Compile secondary dex files in isolation" am: e9e3bfe353" into stage-aosp-master am: 2dcee11c41  -s ours am: 8e16bfd335  -s ours"

6 years agoMerge "Merge "[framework] Compile secondary dex files in isolation" am: e9e3bfe353...
Calin Juravle [Fri, 3 Nov 2017 01:57:50 +0000 (01:57 +0000)]
Merge "Merge "[framework] Compile secondary dex files in isolation" am: e9e3bfe353" into stage-aosp-master am: 2dcee11c41  -s ours
am: 8e16bfd335  -s ours

Change-Id: I412d360beddec3271b79bc5db813ffba486ae738

6 years agoMerge "pull resource power manager stats into statsd"
TreeHugger Robot [Fri, 3 Nov 2017 01:54:40 +0000 (01:54 +0000)]
Merge "pull resource power manager stats into statsd"

6 years agoMerge "[framework] Compile secondary dex files in isolation" am: e9e3bfe353 am: c14fc...
Calin Juravle [Fri, 3 Nov 2017 01:47:57 +0000 (01:47 +0000)]
Merge "[framework] Compile secondary dex files in isolation" am: e9e3bfe353 am: c14fcf466a  -s ours
am: 9879b68de8  -s ours

Change-Id: Ibcab3e7b21962ff7b1a04e927e5b10bcd167e29a

6 years agoMerge "Merge "[framework] Compile secondary dex files in isolation" am: e9e3bfe353...
Calin Juravle [Fri, 3 Nov 2017 01:45:55 +0000 (01:45 +0000)]
Merge "Merge "[framework] Compile secondary dex files in isolation" am: e9e3bfe353" into stage-aosp-master
am: 2dcee11c41  -s ours

Change-Id: Ia5d6d12e917ac4a4b6cce926b61d300c3feb2541

6 years agoMerge "[framework] Compile secondary dex files in isolation" am: e9e3bfe353
Calin Juravle [Fri, 3 Nov 2017 01:39:11 +0000 (01:39 +0000)]
Merge "[framework] Compile secondary dex files in isolation" am: e9e3bfe353
am: c14fcf466a  -s ours

Change-Id: Ib5d2cc1ae84c270ce81bc44f6b413f3288a7b68a

6 years agoMerge "Merge "Added default home values of CDMA roaming indicator" am: a7c51a3d7f...
Android Build Merger (Role) [Fri, 3 Nov 2017 01:37:05 +0000 (01:37 +0000)]
Merge "Merge "Added default home values of CDMA roaming indicator" am: a7c51a3d7f" into stage-aosp-master

6 years agoMerge "Added default home values of CDMA roaming indicator"
Jack Yu [Fri, 3 Nov 2017 01:35:29 +0000 (01:35 +0000)]
Merge "Added default home values of CDMA roaming indicator"
am: a7c51a3d7f

Change-Id: Ia178ace4de625a358f284283fb4a5e5c9b4f7dd4

6 years agoMerge "Merge "[framework] Compile secondary dex files in isolation" am: e9e3bfe353...
Android Build Merger (Role) [Fri, 3 Nov 2017 01:31:51 +0000 (01:31 +0000)]
Merge "Merge "[framework] Compile secondary dex files in isolation" am: e9e3bfe353" into stage-aosp-master

6 years agoMerge "[framework] Compile secondary dex files in isolation"
Calin Juravle [Fri, 3 Nov 2017 01:30:30 +0000 (01:30 +0000)]
Merge "[framework] Compile secondary dex files in isolation"
am: e9e3bfe353

Change-Id: I8f0d9303b3656a298700e26a377d89b7fdd81b4e

6 years agoAdded missing AutofillEventType so lint doesn't complain. am: 3dec72b601
Felipe Leme [Fri, 3 Nov 2017 01:25:43 +0000 (01:25 +0000)]
Added missing AutofillEventType so lint doesn't complain. am: 3dec72b601
am: 3d2f9d1467

Change-Id: I608b1e3ec3c887e50b4daa57cbfdeed0f30d23a0

6 years agoMerge "[framework] Compile secondary dex files in isolation"
Calin Juravle [Fri, 3 Nov 2017 01:21:27 +0000 (01:21 +0000)]
Merge "[framework] Compile secondary dex files in isolation"
am: e9e3bfe353

Change-Id: I7e09a8d5f03b77fa73f13e045e2ec7a2b26eb486

6 years agoMerge changes I4395fb12,I89a77a30
TreeHugger Robot [Fri, 3 Nov 2017 01:19:05 +0000 (01:19 +0000)]
Merge changes I4395fb12,I89a77a30

* changes:
  Expose headerless binary and flags in NanoAppBinary
  Sets up ContextHub service/manager interface for transactions

6 years agoMerge "AAPT2: Introduce command to run unit tests"
TreeHugger Robot [Fri, 3 Nov 2017 01:18:16 +0000 (01:18 +0000)]
Merge "AAPT2: Introduce command to run unit tests"

6 years agoMerge "Added default home values of CDMA roaming indicator"
Treehugger Robot [Fri, 3 Nov 2017 01:13:27 +0000 (01:13 +0000)]
Merge "Added default home values of CDMA roaming indicator"

6 years agoAdded missing AutofillEventType so lint doesn't complain.
Felipe Leme [Fri, 3 Nov 2017 01:08:10 +0000 (01:08 +0000)]
Added missing AutofillEventType so lint doesn't complain.
am: 3dec72b601

Change-Id: I858b95d6b94343c5d6c596c30adf4ad6baa772e6

6 years agoMerge "Add ApkVerityBuilder to contruct the verity tree"
TreeHugger Robot [Fri, 3 Nov 2017 01:06:14 +0000 (01:06 +0000)]
Merge "Add ApkVerityBuilder to contruct the verity tree"

6 years agoMerge "[framework] Compile secondary dex files in isolation"
Treehugger Robot [Fri, 3 Nov 2017 01:05:05 +0000 (01:05 +0000)]
Merge "[framework] Compile secondary dex files in isolation"

6 years agoMerge "Ensure closeSystemDialogs() is not oneway."
TreeHugger Robot [Fri, 3 Nov 2017 01:04:02 +0000 (01:04 +0000)]
Merge "Ensure closeSystemDialogs() is not oneway."

6 years agoMerge "Make the battery saver knobs hidden public,"
TreeHugger Robot [Fri, 3 Nov 2017 00:35:39 +0000 (00:35 +0000)]
Merge "Make the battery saver knobs hidden public,"

6 years agoMerge "Add a setting to control JIT for priv apps."
TreeHugger Robot [Fri, 3 Nov 2017 00:14:59 +0000 (00:14 +0000)]
Merge "Add a setting to control JIT for priv apps."

6 years agoAdded default home values of CDMA roaming indicator
Jack Yu [Thu, 2 Nov 2017 17:08:10 +0000 (10:08 -0700)]
Added default home values of CDMA roaming indicator

Some carriers use the standard roaming indicator number
assigment for roaming indication. Added the default home values
suggested by 3GPP2 C.R1001 table 8.1-1.

Test: Manual
bug: 67855275
Change-Id: Ib0a613ad8caba74645930f3e5188999be08b2116
(cherry picked from commit cf4a8b40a2ff0496c4ccf08f251c0c425fd673f0)

6 years agoMerge "AAPT2: Update tests to reflect new development API 'P'"
Adam Lesinski [Thu, 2 Nov 2017 23:28:32 +0000 (23:28 +0000)]
Merge "AAPT2: Update tests to reflect new development API 'P'"

6 years agoMerge "Added default home values of CDMA roaming indicator"
TreeHugger Robot [Thu, 2 Nov 2017 23:28:07 +0000 (23:28 +0000)]
Merge "Added default home values of CDMA roaming indicator"

6 years agoMerge "Expose some methods in the recents lib."
TreeHugger Robot [Thu, 2 Nov 2017 23:18:07 +0000 (23:18 +0000)]
Merge "Expose some methods in the recents lib."

6 years agoEnsure closeSystemDialogs() is not oneway.
Winson Chung [Thu, 2 Nov 2017 22:57:28 +0000 (15:57 -0700)]
Ensure closeSystemDialogs() is not oneway.

Bug: 68787785
Test: Launch overview with QS down
Change-Id: I136a3d2e45a91abe364027747bca03d4edb454c5

6 years agoMerge "Revert "Make CHANGE_APP_IDLE_STATE a system API""
Andreas Gampe [Thu, 2 Nov 2017 22:45:16 +0000 (22:45 +0000)]
Merge "Revert "Make CHANGE_APP_IDLE_STATE a system API""

6 years agoMerge "1. Enable FIELD_TYPE IDs defined in ProtoOutputStream 2. Migrate CountMetricPr...
TreeHugger Robot [Thu, 2 Nov 2017 22:35:54 +0000 (22:35 +0000)]
Merge "1. Enable FIELD_TYPE IDs defined in ProtoOutputStream 2. Migrate CountMetricProducer to use ProtoOutputStream"

6 years agoAdd ApkVerityBuilder to contruct the verity tree
Victor Hsieh [Tue, 24 Oct 2017 22:46:32 +0000 (15:46 -0700)]
Add ApkVerityBuilder to contruct the verity tree

Test: Locally add some code in PackageManagerService to generate the
      verity tree.  Root hash and the tree is consistent with the output
      of apksig.
Test: With local mod, with apk size of 400/100/20/5 MB, verification
      time is about the same for the existing algorithm before and after
      the refactoring.
Test: With local mod, with a 400 MB apk, verification time of the new
      algorithm is slower (2s) than the 1MB-based algorithm (600ms).
Bug: 30972906

Change-Id: Ie429cf9b80884e56a8e0882e1c125c8a3f8feab4

6 years agoAAPT2: Introduce command to run unit tests
Adam Lesinski [Thu, 2 Nov 2017 22:23:36 +0000 (15:23 -0700)]
AAPT2: Introduce command to run unit tests

This command will execute the aapt2_tests with a parameter
to emit XML test results into the out/dist directory.

Test: manual
Change-Id: I10cf119bb47b7698ddd91b1adf7323e51d169970

6 years agoMerge "PMSCompilerMapping: Hardcode a value for pm.dexopt.shared" am: eb3bff53f6...
Andreas Gampe [Thu, 2 Nov 2017 22:31:46 +0000 (22:31 +0000)]
Merge "PMSCompilerMapping: Hardcode a value for pm.dexopt.shared" am: eb3bff53f6 am: 6f8a3cee0e
am: 36f6ccfdde

Change-Id: If4954cd3058264492cf9e84f898b928da39c6fd4

6 years agoMerge "Give VoiceInteractionService access to shortcuts."
TreeHugger Robot [Thu, 2 Nov 2017 22:26:40 +0000 (22:26 +0000)]
Merge "Give VoiceInteractionService access to shortcuts."

6 years agoMerge "PMSCompilerMapping: Hardcode a value for pm.dexopt.shared" am: eb3bff53f6
Andreas Gampe [Thu, 2 Nov 2017 22:21:57 +0000 (22:21 +0000)]
Merge "PMSCompilerMapping: Hardcode a value for pm.dexopt.shared" am: eb3bff53f6
am: 6f8a3cee0e

Change-Id: Ic2399e02d2102f984defb92c29b3568b94ebb244

6 years agoMerge "PMSCompilerMapping: Hardcode a value for pm.dexopt.shared"
Andreas Gampe [Thu, 2 Nov 2017 22:13:37 +0000 (22:13 +0000)]
Merge "PMSCompilerMapping: Hardcode a value for pm.dexopt.shared"
am: eb3bff53f6

Change-Id: I285d7cf715dc0b2e08d7003cecfd92bfc3b9c8da

6 years agoMerge "Turn default gradient into solid black"
TreeHugger Robot [Thu, 2 Nov 2017 22:06:43 +0000 (22:06 +0000)]
Merge "Turn default gradient into solid black"

6 years agoRevert "Make CHANGE_APP_IDLE_STATE a system API"
Andreas Gampe [Thu, 2 Nov 2017 21:58:15 +0000 (21:58 +0000)]
Revert "Make CHANGE_APP_IDLE_STATE a system API"

This reverts commit c433ee54512c1aa472baad1930a40b319e7ce1a2.

Fails on walleye with:

java.lang.IllegalStateException: Signature|privileged permissions not in privapp-permissions whitelist: {com.android.settings: android.permission.CHANGE_APP_IDLE_STATE, com.android.shell: android.permission.CHANGE_APP_IDLE_
STATE}

Bug: 63527785
Change-Id: I7a30615d20a6c22467a41d4b2d4f84f7702ce195

6 years agoMerge "PMSCompilerMapping: Hardcode a value for pm.dexopt.shared"
Treehugger Robot [Thu, 2 Nov 2017 21:57:29 +0000 (21:57 +0000)]
Merge "PMSCompilerMapping: Hardcode a value for pm.dexopt.shared"

6 years agopull resource power manager stats into statsd
Chenjie Yu [Tue, 31 Oct 2017 20:49:36 +0000 (13:49 -0700)]
pull resource power manager stats into statsd

Test: tested on device and check output
Change-Id: I65932a5527d6099e12546b6928a24f3616e54e16

6 years agoMerge "On standalones, stay in vr mode until standby"
Steven Thomas [Thu, 2 Nov 2017 21:14:15 +0000 (21:14 +0000)]
Merge "On standalones, stay in vr mode until standby"

6 years agoAAPT2: Update tests to reflect new development API 'P'
Adam Lesinski [Thu, 2 Nov 2017 21:12:38 +0000 (14:12 -0700)]
AAPT2: Update tests to reflect new development API 'P'

Bug: 68346913
Test: make aapt2_tests
Change-Id: Ic1435c529b6c80206d2326ac0da076777dffcc9a

6 years agoMerge "Center align AoD2 notifications"
TreeHugger Robot [Thu, 2 Nov 2017 20:54:16 +0000 (20:54 +0000)]
Merge "Center align AoD2 notifications"

6 years agoMerge "Revert "Suppress immersive mode cling in LockTask mode.""
Ian Pedowitz [Thu, 2 Nov 2017 20:45:23 +0000 (20:45 +0000)]
Merge "Revert "Suppress immersive mode cling in LockTask mode.""

6 years agoAdded missing AutofillEventType so lint doesn't complain.
Felipe Leme [Thu, 2 Nov 2017 20:42:17 +0000 (13:42 -0700)]
Added missing AutofillEventType so lint doesn't complain.

Test: In TreeHugger we trust!
Fixes: 68806712

Change-Id: I2f392161e71e0eca25a4a104b67e7d2982c90341

6 years agoMerge "In Accessibility code, wrap Binder.restoreCallingIdentity() in finally{}."
Peter Visontay [Thu, 2 Nov 2017 20:42:19 +0000 (20:42 +0000)]
Merge "In Accessibility code, wrap Binder.restoreCallingIdentity() in finally{}."

6 years agoMerge "Fix StateMachine init/quit race." am: 5c7de22a06 am: 1ef2e98a14
con [Thu, 2 Nov 2017 20:37:07 +0000 (20:37 +0000)]
Merge "Fix StateMachine init/quit race." am: 5c7de22a06 am: 1ef2e98a14
am: 7f404200e0  -s ours

Change-Id: I19eaca9acea75f3d9c4f8aad96f205063db24e0c

6 years agoMerge "Customizable corner radius for dialogs"
TreeHugger Robot [Thu, 2 Nov 2017 20:31:09 +0000 (20:31 +0000)]
Merge "Customizable corner radius for dialogs"

6 years agoMerge "Add metric for imei dialog fragment"
Jeffrey Huang [Thu, 2 Nov 2017 20:30:44 +0000 (20:30 +0000)]
Merge "Add metric for imei dialog fragment"

6 years agoMerge "Fix StateMachine init/quit race." am: 5c7de22a06
con [Thu, 2 Nov 2017 20:28:26 +0000 (20:28 +0000)]
Merge "Fix StateMachine init/quit race." am: 5c7de22a06
am: 1ef2e98a14

Change-Id: If46700cb9701154c97baa8be28457f5fce30ce54

6 years agoMerge "Fix StateMachine init/quit race."
con [Thu, 2 Nov 2017 20:15:35 +0000 (20:15 +0000)]
Merge "Fix StateMachine init/quit race."
am: 5c7de22a06

Change-Id: I26ab138d66366efbcc515e5da0ed21de3e90fa9a

6 years agoMerge "Expose Intent#EXTRA_REASON as a SystemApi."
Jeff Davidson [Thu, 2 Nov 2017 20:10:18 +0000 (20:10 +0000)]
Merge "Expose Intent#EXTRA_REASON as a SystemApi."

6 years agoMerge "Fix StateMachine init/quit race."
con [Thu, 2 Nov 2017 20:05:09 +0000 (20:05 +0000)]
Merge "Fix StateMachine init/quit race."

6 years agoMerge "Make CHANGE_APP_IDLE_STATE a system API"
Amith Yamasani [Thu, 2 Nov 2017 19:49:06 +0000 (19:49 +0000)]
Merge "Make CHANGE_APP_IDLE_STATE a system API"

6 years agoMerge "Avoid isKeyguardShowing() before startKeyguard()"
TreeHugger Robot [Thu, 2 Nov 2017 19:45:34 +0000 (19:45 +0000)]
Merge "Avoid isKeyguardShowing() before startKeyguard()"

6 years agoMerge "Use ScopedPrimitiveArrayRO instead of manually managing Java primitive" am...
Andreas Huber [Thu, 2 Nov 2017 19:37:10 +0000 (19:37 +0000)]
Merge "Use ScopedPrimitiveArrayRO instead of manually managing Java primitive" am: 80bb035d4e am: 89ebce3337
am: 0fb7b7ae93

Change-Id: I7a5ce8d5e379578567b4ccc8aaf5ae41a46e0a8f

6 years agoMerge changes from topic "explicit_shared_compile_reason_cherrypick" am: 5e5fc34b42...
Calin Juravle [Thu, 2 Nov 2017 19:27:01 +0000 (19:27 +0000)]
Merge changes from topic "explicit_shared_compile_reason_cherrypick" am: 5e5fc34b42 am: 64e4210099  -s ours
am: 0cff77d293  -s ours

Change-Id: I2126bc739af9dffe7cacbf9567da065adc3a875b

6 years agoFix spelling mistake in dumpsys output am: 527a2b205c am: fa4c521414 -s ours
Calin Juravle [Thu, 2 Nov 2017 19:22:04 +0000 (19:22 +0000)]
Fix spelling mistake in dumpsys output am: 527a2b205c am: fa4c521414  -s ours
am: fa449825dd  -s ours

Change-Id: Ib9495bd450f663859742fb6eaa147af17985dfb0

6 years agoAdd a setting to control JIT for priv apps.
Alex Salo [Wed, 1 Nov 2017 21:52:59 +0000 (14:52 -0700)]
Add a setting to control JIT for priv apps.

This flag can be controlled by Phenotype starting GmsCore v9.

Bug: 67415855
Test: not needed
Change-Id: I07d31dd209ab0a0e48ce745f1b54be63f5993e5d

6 years agoMerge "Use ScopedPrimitiveArrayRO instead of manually managing Java primitive" am...
Andreas Huber [Thu, 2 Nov 2017 19:10:04 +0000 (19:10 +0000)]
Merge "Use ScopedPrimitiveArrayRO instead of manually managing Java primitive" am: 80bb035d4e
am: 89ebce3337

Change-Id: Ia3abede66803190d1a6ec4ac141eb851207ce05d

6 years agoMerge changes from topic "explicit_shared_compile_reason_cherrypick" am: 5e5fc34b42
Calin Juravle [Thu, 2 Nov 2017 18:59:16 +0000 (18:59 +0000)]
Merge changes from topic "explicit_shared_compile_reason_cherrypick" am: 5e5fc34b42
am: 64e4210099  -s ours

Change-Id: I53aa31310ebf9e1486ad7172e5fd75eb1509ff2d

6 years agoMerge "Use ScopedPrimitiveArrayRO instead of manually managing Java primitive"
Andreas Huber [Thu, 2 Nov 2017 18:58:30 +0000 (18:58 +0000)]
Merge "Use ScopedPrimitiveArrayRO instead of manually managing Java primitive"
am: 80bb035d4e

Change-Id: I35bdd8fe5b80917b8b574e97f10f77df59045efd

6 years agoMerge "Merge "Handle configuration splits when creating the class loader context...
Android Build Merger (Role) [Thu, 2 Nov 2017 18:58:18 +0000 (18:58 +0000)]
Merge "Merge "Handle configuration splits when creating the class loader context" am: 88946d4cf2 am: ee41710ef5  -s ours am: d5b968c75b  -s ours"

6 years agoMerge "Fix possible NPE crash when adding new accounts in Settings."
Lu Chen [Thu, 2 Nov 2017 18:56:57 +0000 (18:56 +0000)]
Merge "Fix possible NPE crash when adding new accounts in Settings."

6 years agoMerge "Handle configuration splits when creating the class loader context" am: 88946d...
Calin Juravle [Thu, 2 Nov 2017 18:56:22 +0000 (18:56 +0000)]
Merge "Handle configuration splits when creating the class loader context" am: 88946d4cf2 am: ee41710ef5  -s ours
am: d5b968c75b  -s ours

Change-Id: Ia7a6bdc5aaaa256fb638e722d1448306a0dc9479

6 years agoFix spelling mistake in dumpsys output am: 527a2b205c
Calin Juravle [Thu, 2 Nov 2017 18:55:30 +0000 (18:55 +0000)]
Fix spelling mistake in dumpsys output am: 527a2b205c
am: fa4c521414  -s ours

Change-Id: I36e808545c34205bf2f3c4f4de457ad3999cf1c5

6 years agoMerge "Merge "Ensure dexopt is executed only with consistent package data" am: 1ad030...
Android Build Merger (Role) [Thu, 2 Nov 2017 18:46:15 +0000 (18:46 +0000)]
Merge "Merge "Ensure dexopt is executed only with consistent package data" am: 1ad0304e7d am: 1c6eeaec1b  -s ours am: eb68bfac36  -s ours"

6 years agoMerge "Handle configuration splits when creating the class loader context" am: 88946d4cf2
Calin Juravle [Thu, 2 Nov 2017 18:44:34 +0000 (18:44 +0000)]
Merge "Handle configuration splits when creating the class loader context" am: 88946d4cf2
am: ee41710ef5  -s ours

Change-Id: I3a80cea56b5a310f8c0e9c6eff5586e98fe5df42

6 years agoMerge changes from topic "explicit_shared_compile_reason_cherrypick"
Calin Juravle [Thu, 2 Nov 2017 18:44:10 +0000 (18:44 +0000)]
Merge changes from topic "explicit_shared_compile_reason_cherrypick"
am: 5e5fc34b42

Change-Id: I5af5a20cae531d5fc93faae00dfbe399f08da766

6 years agoMerge "Ensure dexopt is executed only with consistent package data" am: 1ad0304e7d...
Calin Juravle [Thu, 2 Nov 2017 18:44:10 +0000 (18:44 +0000)]
Merge "Ensure dexopt is executed only with consistent package data" am: 1ad0304e7d am: 1c6eeaec1b  -s ours
am: eb68bfac36  -s ours

Change-Id: I60228e1bb6b2a3fbeecb0c423604aaabf5833501

6 years agoMerge "Add support for minimized mode for right dock side for tablets (1/2)"
TreeHugger Robot [Thu, 2 Nov 2017 18:43:18 +0000 (18:43 +0000)]
Merge "Add support for minimized mode for right dock side for tablets (1/2)"

6 years agoFix StateMachine init/quit race.
Calvin On [Wed, 1 Nov 2017 20:37:18 +0000 (13:37 -0700)]
Fix StateMachine init/quit race.

The quitNow method places the SM_QUIT_CMD at the front
of the queue. This can cause StateMachine to throw exception
if it has not yet processed the SM_INIT_CMD from start().

Bug: 67370902
Test: make checkbuild
Test: StatMachineTest unittest
Change-Id: I409242845854e70b77ad9b2378b69faed076847c
Merged-In: I7cec7bb91e0447e3c565d33cb7c34ccf59566639

6 years agoFix spelling mistake in dumpsys output
Calin Juravle [Thu, 2 Nov 2017 18:39:26 +0000 (18:39 +0000)]
Fix spelling mistake in dumpsys output
am: 527a2b205c

Change-Id: I3bffb95e459adcf0457479f3b87583ba7600fc03

6 years agoMerge "Ensure dexopt is executed only with consistent package data" am: 1ad0304e7d
Calin Juravle [Thu, 2 Nov 2017 18:34:38 +0000 (18:34 +0000)]
Merge "Ensure dexopt is executed only with consistent package data" am: 1ad0304e7d
am: 1c6eeaec1b  -s ours

Change-Id: I506470013e57b288d54eb5bc308eb79c7c224e69

6 years agoMerge "Use ScopedPrimitiveArrayRO instead of manually managing Java primitive"
Treehugger Robot [Thu, 2 Nov 2017 18:33:18 +0000 (18:33 +0000)]
Merge "Use ScopedPrimitiveArrayRO instead of manually managing Java primitive"

6 years agoMerge "Handle configuration splits when creating the class loader context"
Calin Juravle [Thu, 2 Nov 2017 18:28:41 +0000 (18:28 +0000)]
Merge "Handle configuration splits when creating the class loader context"
am: 88946d4cf2

Change-Id: I1ed3175ef2094979477dca44b5f0bf56eb34d880

6 years agoMerge "Ensure dexopt is executed only with consistent package data"
Calin Juravle [Thu, 2 Nov 2017 18:24:12 +0000 (18:24 +0000)]
Merge "Ensure dexopt is executed only with consistent package data"
am: 1ad0304e7d

Change-Id: I32a9c3cf57d0726d7959eb331530fab7f79a7619

6 years agoMerge "Enable Window Dumpsys Section"
TreeHugger Robot [Thu, 2 Nov 2017 18:19:37 +0000 (18:19 +0000)]
Merge "Enable Window Dumpsys Section"

6 years agoMerge changes from topic "explicit_shared_compile_reason_cherrypick"
Treehugger Robot [Thu, 2 Nov 2017 18:13:54 +0000 (18:13 +0000)]
Merge changes from topic "explicit_shared_compile_reason_cherrypick"

* changes:
  Add an explicit reason for the compilation of shared apks
  Fix spelling mistake in dumpsys output

6 years ago1. Enable FIELD_TYPE IDs defined in ProtoOutputStream
yro [Wed, 1 Nov 2017 06:06:53 +0000 (23:06 -0700)]
1. Enable FIELD_TYPE IDs defined in ProtoOutputStream
2. Migrate CountMetricProducer to use ProtoOutputStream

Test: statsd, statsd_test
Change-Id: I33a1ea77a49b045818a48923b2263cb594ab0013

6 years agoMerge "Handle configuration splits when creating the class loader context"
Treehugger Robot [Thu, 2 Nov 2017 18:11:02 +0000 (18:11 +0000)]
Merge "Handle configuration splits when creating the class loader context"

6 years agoMerge "Ensure dexopt is executed only with consistent package data"
Treehugger Robot [Thu, 2 Nov 2017 18:10:42 +0000 (18:10 +0000)]
Merge "Ensure dexopt is executed only with consistent package data"

6 years agoAdd metric for imei dialog fragment
jeffreyhuang [Fri, 27 Oct 2017 18:22:45 +0000 (11:22 -0700)]
Add metric for imei dialog fragment

Bug: 36458278
Test: make RunSettingsRoboTests -j40
Change-Id: I73ac64b8e23bb6f88f3b68e4febf6ca5f9032f23

6 years agoRemove flaky AppWindowToken tests from presubmit
Andrii Kulian [Thu, 2 Nov 2017 18:06:47 +0000 (11:06 -0700)]
Remove flaky AppWindowToken tests from presubmit

Disable presubmit for two tests until further investigation.

Bug: 68267650
Test: bit FrameworksServicesTests:com.android.server.wm.AppWindowTokenTests
Change-Id: Ie402e853c2542f36c9b11c63dd69524cfc3b3a36

6 years agoMerge "Remove the extra mapping of field types in ProtoOutputStream"
Yi Jin [Thu, 2 Nov 2017 17:55:40 +0000 (17:55 +0000)]
Merge "Remove the extra mapping of field types in ProtoOutputStream"

6 years agoGive VoiceInteractionService access to shortcuts.
Dianne Hackborn [Wed, 1 Nov 2017 23:14:26 +0000 (16:14 -0700)]
Give VoiceInteractionService access to shortcuts.

The shortcut manager now has a set of additional packages that
have access, which the voice interaction system service feeds in
to.

Bug: 68760723
Test: CtsVoiceInteractionTestCases
Change-Id: I2a69f83569eb350f405bdd548998570ceef9ea7e

6 years agoExpose headerless binary and flags in NanoAppBinary
Arthur Ishiguro [Mon, 30 Oct 2017 23:41:40 +0000 (16:41 -0700)]
Expose headerless binary and flags in NanoAppBinary

Needed at the service when creating the app binary object to send to the
Context Hub.

Bug: 67734082
Test: Make from root
Change-Id: I4395fb1229fe384ffd5b2f7c3ba49152584a753d

6 years agoSets up ContextHub service/manager interface for transactions
Arthur Ishiguro [Thu, 26 Oct 2017 22:36:22 +0000 (15:36 -0700)]
Sets up ContextHub service/manager interface for transactions

Creates a IContextHubTransactionCallback, a callback that can be invoked
at the service as a proxy after completion of each transaction. The
ContextHubManager generates the callback for every transaction, and
passes it down to the service. This removes the need for the transaction
ID to be tracked at the client application side.

Bug: 67734082
Test: Make from root
Change-Id: I89a77a308671e7a84e50b27eb9c4de012dedc310

6 years agoMerge "Add metric ACTION_WIFI_AUTO_SIGN_IN"
TreeHugger Robot [Thu, 2 Nov 2017 17:38:08 +0000 (17:38 +0000)]
Merge "Add metric ACTION_WIFI_AUTO_SIGN_IN"

6 years agoCustomizable corner radius for dialogs
Lucas Dupin [Wed, 25 Oct 2017 01:15:24 +0000 (18:15 -0700)]
Customizable corner radius for dialogs

Moved default corner radius into an xml config to make it
overridable.

Test: make # launch usb debugging, wifi, and other system dialogs
Bug: 64122537
Change-Id: If9c102e37a6f998da2d97a8ad5aee2de4d25ae9d

6 years agoMake CHANGE_APP_IDLE_STATE a system API
Amith Yamasani [Tue, 31 Oct 2017 20:29:00 +0000 (13:29 -0700)]
Make CHANGE_APP_IDLE_STATE a system API

Allows a privileged app to set standby bucket states for apps.

Bug: 63527785
Test: adb shell am set-standby-bucket com.example.foo 0
Change-Id: I069546555e1b370247f8cd45b2f4c32e6abe15ed

6 years agoAdded default home values of CDMA roaming indicator
Jack Yu [Thu, 2 Nov 2017 17:08:10 +0000 (10:08 -0700)]
Added default home values of CDMA roaming indicator

Some carriers use the standard roaming indicator number
assigment for roaming indication. Added the default home values
suggested by 3GPP2 C.R1001 table 8.1-1.

Test: Manual
bug: 67855275
Change-Id: Ib0a613ad8caba74645930f3e5188999be08b2116

6 years agoMerge "Add prep_taieye"
TreeHugger Robot [Thu, 2 Nov 2017 17:01:06 +0000 (17:01 +0000)]
Merge "Add prep_taieye"

6 years ago[framework] Compile secondary dex files in isolation
Calin Juravle [Wed, 4 Oct 2017 17:53:09 +0000 (10:53 -0700)]
[framework] Compile secondary dex files in isolation

The class loader context adds the overhead of extracting in-memory and
possibly extra verification which is being frowned upon when the loading
happens on the UI thread. Revert the correct fix of compiling secondary
dex files with their loading context until b/64530081 is done.

Partial revert of commit f1ff36f0f99ebb41d0c7e0f3248506a56998fa3f.

(cherry picked from commit 27f926212483e8291a63884e60fa44de4d0df17c)

Test: adb shell cmd package compile -m quicken -f --secondary-dex
com.google.android.gms
Bug: 64530081
Bug: 66984396
Merged-In: Ib2815ce67b224883fe95c28d1424103e56342c6e
Change-Id: Ib2815ce67b224883fe95c28d1424103e56342c6e

6 years agoPMSCompilerMapping: Hardcode a value for pm.dexopt.shared
Andreas Gampe [Thu, 2 Nov 2017 16:35:28 +0000 (09:35 -0700)]
PMSCompilerMapping: Hardcode a value for pm.dexopt.shared

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

Test: make & flash
Bug: 68755013
Change-Id: I59caf79027dd8be2fd698606822a20b19c0d942a

6 years agoAdd an explicit reason for the compilation of shared apks
Calin Juravle [Fri, 15 Sep 2017 18:09:29 +0000 (11:09 -0700)]
Add an explicit reason for the compilation of shared apks

Some devices might find it more beneficial to compile shared apks like gms
or gms modules with quicken rather then speed.

(cherry picked from commit f53201f8c796e8500b76b72e4fad6269d8547369)

Bug: 65591595
Test: build
Merged-In: I90b79e9f6bc4b4d6b3f5c0b90ab95e8880c4ac9d
Change-Id: I90b79e9f6bc4b4d6b3f5c0b90ab95e8880c4ac9d

6 years agoFix spelling mistake in dumpsys output
Calin Juravle [Tue, 26 Sep 2017 20:23:00 +0000 (13:23 -0700)]
Fix spelling mistake in dumpsys output

(cherry picked from commit 94837e35e3c149e81da90f312fbb37f22c8bc90e)

Bug: 65843255
Test: build
Merged-In: Icc748dd14b52641e37b149f51d61a4086e55ed41
Change-Id: Icc748dd14b52641e37b149f51d61a4086e55ed41

6 years agoMerge "Fix CTS regression in running tasks"
Winson Chung [Thu, 2 Nov 2017 16:29:57 +0000 (16:29 +0000)]
Merge "Fix CTS regression in running tasks"

6 years agoHandle configuration splits when creating the class loader context
Calin Juravle [Sat, 2 Sep 2017 00:30:01 +0000 (17:30 -0700)]
Handle configuration splits when creating the class loader context

Configuration splits have no dependencies which can lead to exceptions
when computing their class loader context.

In general, we do not need to compute the class loader context for apks
without code.

This CL addresses the issue by ignoring "code" paths with no actual code.

(cherry picked from commit da09815e2cd3d3968c66a8d52e620ee07d8204dd)

Bug: 65159159
Test: adb install-multiple config_splits
      runtest -x
services/tests/servicestests/src/com/android/server/pm/dex/DexoptUtilsTest.java

Merged-In: Ida1eb901eecba4a4266de73022f6ee4659367873
Change-Id: Ida1eb901eecba4a4266de73022f6ee4659367873