OSDN Git Service

android-x86/frameworks-base.git
6 years agoMediaSession2: Implement MediaLibrarySession#notifyChildrenChanged()
Jaewan Kim [Mon, 19 Feb 2018 08:49:35 +0000 (17:49 +0900)]
MediaSession2: Implement MediaLibrarySession#notifyChildrenChanged()

Test: Run all MediaComponents tests once
Bug: 72787989
Change-Id: I5bdcb8460109831fb5349d1437b775f8f7b7ddf0

6 years agoMediaSession2: Implement subscribe/unsubscribe
Jaewan Kim [Mon, 19 Feb 2018 06:20:29 +0000 (15:20 +0900)]
MediaSession2: Implement subscribe/unsubscribe

Bug: 72786292
Test: Run all MediaComponents tests
Change-Id: I0871f883d638292fb75b2bd8c9bd4d680e4a1d0b

6 years agoMediaSession2: Remove rating style from session
Hyundo Moon [Wed, 21 Feb 2018 06:29:26 +0000 (15:29 +0900)]
MediaSession2: Remove rating style from session

Bug: 73615699
Test: Passed MediaController2Test
Change-Id: Icc35bf982e0943ba7586003bf30dd6dfa90d747e

6 years agoMerge "MediaSession2: Remove SessionPlayer2"
TreeHugger Robot [Wed, 21 Feb 2018 16:32:37 +0000 (16:32 +0000)]
Merge "MediaSession2: Remove SessionPlayer2"

6 years agoMerge "Don't resume until keyguard is gone"
Andrii Kulian [Wed, 21 Feb 2018 16:19:45 +0000 (16:19 +0000)]
Merge "Don't resume until keyguard is gone"

6 years agoMerge "Build android.test.base/legacy against SDK"
TreeHugger Robot [Wed, 21 Feb 2018 15:56:08 +0000 (15:56 +0000)]
Merge "Build android.test.base/legacy against SDK"

6 years agoMerge "Fix ANR"
Jorim Jaggi [Wed, 21 Feb 2018 15:28:13 +0000 (15:28 +0000)]
Merge "Fix ANR"

6 years agoMerge "Fix app start logging"
Jorim Jaggi [Wed, 21 Feb 2018 15:12:33 +0000 (15:12 +0000)]
Merge "Fix app start logging"

6 years agoMerge "Fix crash in AppErrors and clean up code"
TreeHugger Robot [Wed, 21 Feb 2018 14:29:26 +0000 (14:29 +0000)]
Merge "Fix crash in AppErrors and clean up code"

6 years agoMerge "MediaBrowser2: Rearrange API arguments in relevant order"
TreeHugger Robot [Wed, 21 Feb 2018 13:27:16 +0000 (13:27 +0000)]
Merge "MediaBrowser2: Rearrange API arguments in relevant order"

6 years agoFix app start logging
Jorim Jaggi [Mon, 19 Feb 2018 16:48:44 +0000 (17:48 +0100)]
Fix app start logging

Our old trampoline logic doesn't work anymore, as some app starts
are distributed between multiple tasks, which now means multiple
stacks as well.

Instead, track app starts by windowing mode.

Test: Open/close apps, adb logcat -b events
Test: AppStartTests
Change-Id: If106f12ec98fd69ff7d0c4dabff28f88d2096a0b
Fixes: 72953633

6 years agoMerge "[Magnifier-23] Fix invisible cursor in magnifier"
Mihai Popa [Wed, 21 Feb 2018 11:51:34 +0000 (11:51 +0000)]
Merge "[Magnifier-23] Fix invisible cursor in magnifier"

6 years agoMerge "Revert "Extend XML parser to allow optional requiredFlags attribute""
Bernardo Rufino [Wed, 21 Feb 2018 11:00:11 +0000 (11:00 +0000)]
Merge "Revert "Extend XML parser to allow optional requiredFlags attribute""

6 years agoMediaBrowser2: Rearrange API arguments in relevant order
Hyundo Moon [Wed, 21 Feb 2018 10:10:09 +0000 (19:10 +0900)]
MediaBrowser2: Rearrange API arguments in relevant order

Test: Passed MediaBrowser2Test
Change-Id: Ic7a9955235e77d9d9bd9f59ac70987c1d6e61140

6 years agoMediaSession2: Remove SessionPlayer2
Jaewan Kim [Wed, 21 Feb 2018 09:50:32 +0000 (18:50 +0900)]
MediaSession2: Remove SessionPlayer2

MediaPlayer2 will provide implementation of MediaPlayerInterface

Test: Run all MediaComponents test once
Change-Id: Iecdbbcd0cbbdb191cdb228cf09d828565e13fc3d

6 years agoMerge "Remove uses of libcore.util.Objects.hashCode / equals."
Narayan Kamath [Wed, 21 Feb 2018 09:34:42 +0000 (09:34 +0000)]
Merge "Remove uses of libcore.util.Objects.hashCode / equals."

6 years agoMerge "Replace Entity Presets with hints and an explicit factory."
Richard Ledley [Wed, 21 Feb 2018 09:33:05 +0000 (09:33 +0000)]
Merge "Replace Entity Presets with hints and an explicit factory."

6 years agoMerge "Fix string format in App launch"
TreeHugger Robot [Wed, 21 Feb 2018 07:15:22 +0000 (07:15 +0000)]
Merge "Fix string format in App launch"

6 years agoMerge "Add sungsoo@ to OWNERS"
Sungsoo Lim [Wed, 21 Feb 2018 06:27:22 +0000 (06:27 +0000)]
Merge "Add sungsoo@ to OWNERS"

6 years agoMerge "Only emit debug logging when requested."
TreeHugger Robot [Wed, 21 Feb 2018 05:42:14 +0000 (05:42 +0000)]
Merge "Only emit debug logging when requested."

6 years agoMerge "MediaLibrarySession: Add notifySearchResultChanged"
TreeHugger Robot [Wed, 21 Feb 2018 03:41:55 +0000 (03:41 +0000)]
Merge "MediaLibrarySession: Add notifySearchResultChanged"

6 years agoMerge "Remove the extra logging for debugging decryption errors"
TreeHugger Robot [Wed, 21 Feb 2018 03:37:06 +0000 (03:37 +0000)]
Merge "Remove the extra logging for debugging decryption errors"

6 years agoDon't resume until keyguard is gone
Andrii Kulian [Fri, 16 Feb 2018 22:40:42 +0000 (14:40 -0800)]
Don't resume until keyguard is gone

If we try to resume top activity immediately after we remove
the sleep token and something else in the system will call
ActivityStackSupervisor#ensureActivitiesVisibleLocked(), then
the activity will be immediately stopped. This not only introduces
an extra unnecessary cycle, but also leads to other with
activities ending in a wrong state or cycling through states
indefinitely.

Bug: 73003134
Bug: 73062280
Bug: 71582913
Test: Launch an app or go to launcher, lock and unlock, observe lifecycle logs.
Change-Id: Ic0117a55e27c8a67de4ce24ca349bc842d356093

6 years agoMerge "Disambiguate apps that share uid for job/bucket purposes"
TreeHugger Robot [Wed, 21 Feb 2018 03:34:30 +0000 (03:34 +0000)]
Merge "Disambiguate apps that share uid for job/bucket purposes"

6 years agoMerge "Tweak FingerprintDialog layout"
TreeHugger Robot [Wed, 21 Feb 2018 03:34:20 +0000 (03:34 +0000)]
Merge "Tweak FingerprintDialog layout"

6 years agoMerge "Fix two broken tests in PersistentKeyChainSnapshotTest"
TreeHugger Robot [Wed, 21 Feb 2018 03:10:05 +0000 (03:10 +0000)]
Merge "Fix two broken tests in PersistentKeyChainSnapshotTest"

6 years agoMerge "Disable recents onboarding for test automation"
TreeHugger Robot [Wed, 21 Feb 2018 02:58:28 +0000 (02:58 +0000)]
Merge "Disable recents onboarding for test automation"

6 years agoMerge "Fix IMMS debug shell command"
TreeHugger Robot [Wed, 21 Feb 2018 02:58:23 +0000 (02:58 +0000)]
Merge "Fix IMMS debug shell command"

6 years agoMerge "Create display if necessary when adding windows."
TreeHugger Robot [Wed, 21 Feb 2018 02:58:18 +0000 (02:58 +0000)]
Merge "Create display if necessary when adding windows."

6 years agoMerge "Reparent the webview_zygote to be a child of the main app_process zygote....
Robert Sesek [Wed, 21 Feb 2018 02:47:07 +0000 (02:47 +0000)]
Merge "Reparent the webview_zygote to be a child of the main app_process zygote." am: 1c81aa6375 am: 486190f87b
am: 0dd7cf0bb3

Change-Id: I9468ec63053f35814ec45b18572966d8adc93f3e

6 years agoMerge "Change verity hash algorithm to pad the last chunk"
TreeHugger Robot [Wed, 21 Feb 2018 02:37:49 +0000 (02:37 +0000)]
Merge "Change verity hash algorithm to pad the last chunk"

6 years agoMerge "Reparent the webview_zygote to be a child of the main app_process zygote....
Robert Sesek [Wed, 21 Feb 2018 02:33:14 +0000 (02:33 +0000)]
Merge "Reparent the webview_zygote to be a child of the main app_process zygote." am: 1c81aa6375
am: 486190f87b

Change-Id: I683dbbf730bfd02e43cb67bfcaa0df56d69c9796

6 years agoMerge "Reparent the webview_zygote to be a child of the main app_process zygote."
Robert Sesek [Wed, 21 Feb 2018 02:16:22 +0000 (02:16 +0000)]
Merge "Reparent the webview_zygote to be a child of the main app_process zygote."
am: 1c81aa6375

Change-Id: I2af77c52ea7aca058ab1a1fc224968760e6c3ac5

6 years agoRevert "Extend XML parser to allow optional requiredFlags attribute"
Maurice Lam [Wed, 21 Feb 2018 02:05:30 +0000 (02:05 +0000)]
Revert "Extend XML parser to allow optional requiredFlags attribute"

This reverts commit 34b769d32b41fc75cf93f504e7a2117095084a8d.

Reason for revert: b/73663127

Change-Id: I8595039777d69994f6fcc1f9a6911d202c8adbbf

6 years agoAdd sungsoo@ to OWNERS
Sungsoo Lim [Wed, 21 Feb 2018 01:41:11 +0000 (10:41 +0900)]
Add sungsoo@ to OWNERS

Test: no
Change-Id: I5cf110bd6f99b20f5ed2fc5d2ccdba318b0d99f8

6 years agoMerge "MediaController2: Implement setRating()"
Hyundo Moon [Wed, 21 Feb 2018 01:35:40 +0000 (01:35 +0000)]
Merge "MediaController2: Implement setRating()"

6 years agoFix string format in App launch
gopinath [Wed, 21 Feb 2018 01:24:33 +0000 (17:24 -0800)]
Fix string format in App launch

Change-Id: I22676ab95d39b8b92118eb48145b0d7614d0f03f

6 years agoMerge "Prevent quickscrub when swipe up has already started"
TreeHugger Robot [Wed, 21 Feb 2018 01:10:33 +0000 (01:10 +0000)]
Merge "Prevent quickscrub when swipe up has already started"

6 years agoMerge "Auto-gen AndroidTest.xml for CorePerfTests so atest can run it."
TreeHugger Robot [Wed, 21 Feb 2018 00:58:37 +0000 (00:58 +0000)]
Merge "Auto-gen AndroidTest.xml for CorePerfTests so atest can run it."

6 years agoMerge "Add twasilczyk and randolphs to broadcast radio directories OWNERS."
Tomasz Wasilczyk [Wed, 21 Feb 2018 00:51:37 +0000 (00:51 +0000)]
Merge "Add twasilczyk and randolphs to broadcast radio directories OWNERS."

6 years agoMerge "Reparent the webview_zygote to be a child of the main app_process zygote."
Treehugger Robot [Wed, 21 Feb 2018 00:43:56 +0000 (00:43 +0000)]
Merge "Reparent the webview_zygote to be a child of the main app_process zygote."

6 years agoMerge "Add proto for USB default screen"
TreeHugger Robot [Wed, 21 Feb 2018 00:34:06 +0000 (00:34 +0000)]
Merge "Add proto for USB default screen"

6 years agoMerge "Consider shared libs when precreating WebView classloader." am: f9fd8dfcc0...
Torne (Richard Coles) [Wed, 21 Feb 2018 00:33:41 +0000 (00:33 +0000)]
Merge "Consider shared libs when precreating WebView classloader." am: f9fd8dfcc0 am: 424f3ab432
am: b65864e2e7  -s ours

Change-Id: If64c370667fa23fef5dac31cdb90f5eb97b6dd94

6 years agoMerge "VideoView2: Remove redundant listeners"
TreeHugger Robot [Wed, 21 Feb 2018 00:27:13 +0000 (00:27 +0000)]
Merge "VideoView2: Remove redundant listeners"

6 years agoMerge "Add sungsoo@ to OWNERS"
TreeHugger Robot [Wed, 21 Feb 2018 00:25:18 +0000 (00:25 +0000)]
Merge "Add sungsoo@ to OWNERS"

6 years agoMerge "Consider shared libs when precreating WebView classloader." am: f9fd8dfcc0
Torne (Richard Coles) [Wed, 21 Feb 2018 00:17:22 +0000 (00:17 +0000)]
Merge "Consider shared libs when precreating WebView classloader." am: f9fd8dfcc0
am: 424f3ab432

Change-Id: I21f031e97f750b8837eb9c698005fd3f112631ca

6 years agoMerge "Consider shared libs when precreating WebView classloader."
Torne (Richard Coles) [Wed, 21 Feb 2018 00:03:58 +0000 (00:03 +0000)]
Merge "Consider shared libs when precreating WebView classloader."
am: f9fd8dfcc0

Change-Id: I2e326ffb47a95c01bf5e67320bbf8aa8193916af

6 years agoDisambiguate apps that share uid for job/bucket purposes
Christopher Tate [Tue, 20 Feb 2018 23:57:17 +0000 (15:57 -0800)]
Disambiguate apps that share uid for job/bucket purposes

Specifically, we no longer update our cached standby state bookkeeping for
*all* apps under that uid when a standby policy change notification comes
in.  We weren't properly handling shared uids; and now we are.

Change-Id: I4bda6233ebeff259cc63bdb8a4febbc83f2e1043
Fixes: 73663980
Test: atest CtsJobSchedulerTestCases

6 years agoMerge "Add new reason code for call failed by unobtainable number" am: 4122fd23dc...
Brad Ebinger [Tue, 20 Feb 2018 23:44:12 +0000 (23:44 +0000)]
Merge "Add new reason code for call failed by unobtainable number" am: 4122fd23dc am: ffe0e51f47
am: e73631c161

Change-Id: I0b72033ace19075e4acd8f7a9eaec3770bb07836

6 years agoMerge "Adds anomaly detection to max duration metrics."
TreeHugger Robot [Tue, 20 Feb 2018 23:38:00 +0000 (23:38 +0000)]
Merge "Adds anomaly detection to max duration metrics."

6 years agoMerge "Remove a few atoms from the timestamp truncating whitelist."
TreeHugger Robot [Tue, 20 Feb 2018 23:35:06 +0000 (23:35 +0000)]
Merge "Remove a few atoms from the timestamp truncating whitelist."

6 years agoChange verity hash algorithm to pad the last chunk
Victor Hsieh [Tue, 20 Feb 2018 23:22:28 +0000 (15:22 -0800)]
Change verity hash algorithm to pad the last chunk

As the result, all existing cases takes complete chunk for hashing.

Also bump to version number.

Test: without also bumping the version, apk with 0x401 hash won't install
Test: apk with 0x411 hash installs
Bug: 30972906
Change-Id: I48c15c886ac6eab4512f1b2b9744b07e746c6211

6 years agoDisable recents onboarding for test automation
Robb Glasser [Tue, 20 Feb 2018 21:28:53 +0000 (13:28 -0800)]
Disable recents onboarding for test automation

The recents onboarding blocks UI automated tests. It should be disabled
if we're running in a test harness.

Bug: 73549472

Test: Tried permutations of setting persist.quickstep.onboarding.enabled
and ro.test_harness to true/false and verified the recents onboarding
pop up was present/absent when expected.

Change-Id: I7502c1873619db19294658b2b7a4ddc64f8d3b4e

6 years agoMerge "Change KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL to false" am: 8343a47035 am: de958...
Pankaj Kanwar [Tue, 20 Feb 2018 23:29:10 +0000 (23:29 +0000)]
Merge "Change KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL to false" am: 8343a47035 am: de9585fe28
am: 44b27e486a

Change-Id: I2849ed28eaff8666364dbb9848b4a08c952f5d17

6 years agoMerge "Fix ConnectivityServiceTest for NATT Keepalive" am: 6d5aea8811 am: ad96984eb5
nharold [Tue, 20 Feb 2018 23:21:59 +0000 (23:21 +0000)]
Merge "Fix ConnectivityServiceTest for NATT Keepalive" am: 6d5aea8811 am: ad96984eb5
am: 0a177afbb8

Change-Id: I2ce9d740b82f591b847150ec1eaffa39bfbd0241

6 years agoMerge "Add new reason code for call failed by unobtainable number" am: 4122fd23dc
Brad Ebinger [Tue, 20 Feb 2018 23:20:48 +0000 (23:20 +0000)]
Merge "Add new reason code for call failed by unobtainable number" am: 4122fd23dc
am: ffe0e51f47

Change-Id: I9b706c18b2d184b303adb526ee7adf86dd7e9ee9

6 years agoMerge "Change KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL to false" am: 8343a47035
Pankaj Kanwar [Tue, 20 Feb 2018 23:13:33 +0000 (23:13 +0000)]
Merge "Change KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL to false" am: 8343a47035
am: de9585fe28

Change-Id: I11bcc2948e8efeea731299c5b8d642e155c1a2d5

6 years agoRemove the extra logging for debugging decryption errors
Bo Zhu [Tue, 20 Feb 2018 23:09:33 +0000 (15:09 -0800)]
Remove the extra logging for debugging decryption errors

Test: adb shell am instrument -w -e package \
com.android.server.locksettings.recoverablekeystore \
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

Change-Id: Ie01eea9256584632994fd8d9f31570a86f582051

6 years agoMerge "Fix ConnectivityServiceTest for NATT Keepalive" am: 6d5aea8811
nharold [Tue, 20 Feb 2018 23:07:53 +0000 (23:07 +0000)]
Merge "Fix ConnectivityServiceTest for NATT Keepalive" am: 6d5aea8811
am: ad96984eb5

Change-Id: I3c28cbb55f8226776792df9cacf1b5e527389157

6 years agoMerge "Add new reason code for call failed by unobtainable number"
Brad Ebinger [Tue, 20 Feb 2018 23:02:55 +0000 (23:02 +0000)]
Merge "Add new reason code for call failed by unobtainable number"
am: 4122fd23dc

Change-Id: Ib390ec02187fd27687dddc334bf2fcc791012c8e

6 years agoMerge "MediaFormat: declare key for AAC decoder DRC effect type"
TreeHugger Robot [Tue, 20 Feb 2018 22:58:34 +0000 (22:58 +0000)]
Merge "MediaFormat: declare key for AAC decoder DRC effect type"

6 years agoMerge "Change KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL to false"
Pankaj Kanwar [Tue, 20 Feb 2018 22:57:52 +0000 (22:57 +0000)]
Merge "Change KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL to false"
am: 8343a47035

Change-Id: I4940e0ba4e86db861c75e910329aaf8fadd0e7e1

6 years agoMerge "Fix bug in edge case for statsd anomaly tracking."
TreeHugger Robot [Tue, 20 Feb 2018 22:56:02 +0000 (22:56 +0000)]
Merge "Fix bug in edge case for statsd anomaly tracking."

6 years agoMerge "Fix ConnectivityServiceTest for NATT Keepalive"
nharold [Tue, 20 Feb 2018 22:55:38 +0000 (22:55 +0000)]
Merge "Fix ConnectivityServiceTest for NATT Keepalive"
am: 6d5aea8811

Change-Id: Idbdffc7bbd2d9a96f6e6052810722df04a20a65c

6 years agoAuto-gen AndroidTest.xml for CorePerfTests so atest can run it.
Kevin Cheng [Tue, 20 Feb 2018 22:27:17 +0000 (14:27 -0800)]
Auto-gen AndroidTest.xml for CorePerfTests so atest can run it.

Bug: 68946306
Test: atest CorePerfTests
https://sponge.corp.google.com/target?id=5238c8a7-0016-485f-9eb4-7a91fe86c454&target=CorePerfTests&searchFor=&show=ALL&sortBy=STATUS
Change-Id: I4fe680dddb51151e17546704f554813a588e5f86

6 years agoFix two broken tests in PersistentKeyChainSnapshotTest
Bo Zhu [Tue, 20 Feb 2018 22:49:49 +0000 (14:49 -0800)]
Fix two broken tests in PersistentKeyChainSnapshotTest

Bug: 73609806
Test: adb shell am instrument -w -e package \
com.android.server.locksettings.recoverablekeystore \
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

Change-Id: I6c054fe8069c2016f8952380c0e083c6eb2b6a23

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Tue, 20 Feb 2018 22:38:50 +0000 (22:38 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoAdd proto for USB default screen
Jerry Zhang [Tue, 13 Feb 2018 02:12:41 +0000 (18:12 -0800)]
Add proto for USB default screen

Bug: 62876645
Test: none
Change-Id: I08de7910c9d7f62760edfcfca24a9807606d7346

6 years agoFix IMMS debug shell command
Yohei Yukawa [Tue, 20 Feb 2018 22:16:30 +0000 (07:16 +0900)]
Fix IMMS debug shell command

It turns out the previous CL [1] introduced a new option not as
  adb shell cmd input_method refresh_debug_properties
but as a sub command of
  adb shell cmd input_method ime refresh_debug_properties
or
  adb shell ime refresh_debug_properties

This is not what we intended.

With this CL, 'refresh_debug_properties' is recognized as a sub
command of 'adb shell cmd input_method' as we intended.

 [1]: Ibf9dab3d9c138b5f04e053d41ee4fd248c78e4da
      75a92392218a12eaabd2187724f7175ef38d362b

Bug: 37617707
Test: Verify following command reverts the behavior to the
      previous one:
        adb root
        adb shell setprop debug.optimize_startinput false
        adb shell cmd input_method refresh_debug_properties
Test: The following command is not recognized.
        adb shell ime refresh_debug_properties
Change-Id: I89b0900f402940d5943e1a6c6e236592b5cefc78

6 years agoMerge changes I86c37b6d,I976b29bf
TreeHugger Robot [Tue, 20 Feb 2018 22:08:46 +0000 (22:08 +0000)]
Merge changes I86c37b6d,I976b29bf

* changes:
  Frameworks: Disable two recoverablekeystore tests
  Frameworks: Fix JUnit4 test annotations

6 years agoReparent the webview_zygote to be a child of the main app_process zygote.
Robert Sesek [Wed, 17 Jan 2018 23:48:18 +0000 (18:48 -0500)]
Reparent the webview_zygote to be a child of the main app_process zygote.

This uses the new ZygoteProcess.startChildZygote() method to launch the
webview_zygote, rather than having init start it. This will share more
memory between the app_process and the webview_zygote, reducing the
overall system footprint.

Bug: 63749735
Test: m
Test: Launch "Third-party licenses" activity from Settings, and it
      renders correctly via the WebView.
Change-Id: I3e39cd8adb9c099c92ee34640428916d90cb2b8f

6 years agoMerge "Consider shared libs when precreating WebView classloader."
Treehugger Robot [Tue, 20 Feb 2018 21:59:54 +0000 (21:59 +0000)]
Merge "Consider shared libs when precreating WebView classloader."

6 years agoCreate display if necessary when adding windows.
Bryce Lee [Tue, 20 Feb 2018 18:41:58 +0000 (10:41 -0800)]
Create display if necessary when adding windows.

It is possible for a window to be added to a display before
ActivityManagerService has processed a display creation. In this
case, the relevant WindowManager and ActivityManager containers have
not been created. This will prevent the client from proceeding.

This changelist addresses this problem by allowing the WindowManager
DisplayContent to be created in this specific scenario. When the
ActivityManager side processes the new display, it will be associated
with the existing DisplayContent.

Change-Id: I1bc7d11f5cc538f35b5f7b0a8303d48fba370ea0
Fixes: 73292997
Test: cts-tradefed run singleCommand cts-dev --module CtsMediaTestCases --test android.media.cts.EncodeVirtualDisplayWithCompositionTest

6 years agoAdds anomaly detection to max duration metrics.
David Chen [Tue, 13 Feb 2018 01:24:40 +0000 (17:24 -0800)]
Adds anomaly detection to max duration metrics.

Statsd supports anomaly detection for max duration, which is
conceptually like asking for an anomaly on the current duration.
There was a bug previously in the logic for max duration since we
recorded a duration every time a dimension went into pause. Now, we
only record a max duration when the dimension goes into stop.

When a dimension inside the MaxDurationTracker leaves the started
state, we need to check if we still need to keep an anomaly alarm
set. It's possible that we just immediately set an alarm with the
same timestamp as what was just deleted.

Test: Added some unit-tests and tested on marlin-eng.
Change-Id: I09c82cd266b4cc6e1c893ad166e602bf08baca0e

6 years agoFix bug in edge case for statsd anomaly tracking.
David Chen [Tue, 20 Feb 2018 21:22:53 +0000 (13:22 -0800)]
Fix bug in edge case for statsd anomaly tracking.

Getting a past bucket value will always crash for anomalies
configured to track only the most recent one bucket.

Test: N/A
Change-Id: I2cd1c82fe8ba4cecb4fac21038bb5f04a60c360e

6 years agoRemove a few atoms from the timestamp truncating whitelist.
Yangster-mac [Tue, 20 Feb 2018 21:12:27 +0000 (13:12 -0800)]
Remove a few atoms from the timestamp truncating whitelist.

Test: statsd test
Change-Id: Ic6a152cb400bef33139357d60f6d0feca855ade2

6 years agoMerge "Reorganize MeasuredText API (2nd)"
Seigo Nonaka [Tue, 20 Feb 2018 21:14:53 +0000 (21:14 +0000)]
Merge "Reorganize MeasuredText API (2nd)"

6 years agoMerge "Deprecate Movie.java"
Leon Scroggins [Tue, 20 Feb 2018 21:08:14 +0000 (21:08 +0000)]
Merge "Deprecate Movie.java"

6 years agoMerge "Add new reason code for call failed by unobtainable number"
Brad Ebinger [Tue, 20 Feb 2018 21:00:08 +0000 (21:00 +0000)]
Merge "Add new reason code for call failed by unobtainable number"

6 years agoMerge "Pass DEXOPT_INSTALL_WITH_DEX_METADATA_FILE for first boot" am: 0ea144f4bf...
Mathieu Chartier [Tue, 20 Feb 2018 20:54:12 +0000 (20:54 +0000)]
Merge "Pass DEXOPT_INSTALL_WITH_DEX_METADATA_FILE for first boot" am: 0ea144f4bf am: 8deca3f06f
am: 50450452cf

Change-Id: I83f4b209123177012e73bbb9b4ea71bc30365e48

6 years agoMerge "Change KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL to false"
Pankaj Kanwar [Tue, 20 Feb 2018 20:48:12 +0000 (20:48 +0000)]
Merge "Change KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL to false"

6 years agoMerge "WifiTile: Avoid NPE during boot phase" am: b23150ffa9 am: 0d90a0690b
Bruno Martins [Tue, 20 Feb 2018 20:47:22 +0000 (20:47 +0000)]
Merge "WifiTile: Avoid NPE during boot phase" am: b23150ffa9 am: 0d90a0690b
am: a0f75f5963

Change-Id: I2d4ffcaf46a860e474be2d167e5a3d845b34f41a

6 years agoMerge "Timestamp Truncating whitelist."
TreeHugger Robot [Tue, 20 Feb 2018 20:41:29 +0000 (20:41 +0000)]
Merge "Timestamp Truncating whitelist."

6 years agoConsider shared libs when precreating WebView classloader.
Torne (Richard Coles) [Tue, 19 Sep 2017 19:21:29 +0000 (15:21 -0400)]
Consider shared libs when precreating WebView classloader.

The change to handling of the deprecated Apache HTTP library means that
the WebView implementation package might have a non-empty shared library
list. Make sure to fetch shared libraries when querying WebView
implementations, and take them into account when constructing both the
actual classpath to be used to precreate the classloader, and when
deciding what the cache key for the precreated classloader should be.

Change-Id: I5e1409358d935e1c9f325db434bc6d4ef8ead759
Merged-In: I5e1409358d935e1c9f325db434bc6d4ef8ead759
Fixes: 65574359
Test: launch anything that uses WebView
(cherry picked from commit 4fd8aa51e4de5a7c93841571e30ff10077d1b125)

6 years agoMerge "Pass DEXOPT_INSTALL_WITH_DEX_METADATA_FILE for first boot" am: 0ea144f4bf
Mathieu Chartier [Tue, 20 Feb 2018 20:40:00 +0000 (20:40 +0000)]
Merge "Pass DEXOPT_INSTALL_WITH_DEX_METADATA_FILE for first boot" am: 0ea144f4bf
am: 8deca3f06f

Change-Id: Idefc228d35212f4014e9bb204e54b58c904ee94c

6 years agoOnly emit debug logging when requested.
Jeff Sharkey [Tue, 20 Feb 2018 20:36:14 +0000 (13:36 -0700)]
Only emit debug logging when requested.

Test: builds, boots
Bug: 72556865
Change-Id: I69d5d760221ef907eeea38490f56243f0a3b9dcb

6 years agoMerge "WifiTile: Avoid NPE during boot phase" am: b23150ffa9
Bruno Martins [Tue, 20 Feb 2018 20:34:09 +0000 (20:34 +0000)]
Merge "WifiTile: Avoid NPE during boot phase" am: b23150ffa9
am: 0d90a0690b

Change-Id: I65e814b392cc0891f970223c2ded27c7420205dc

6 years agoMerge "Pass DEXOPT_INSTALL_WITH_DEX_METADATA_FILE for first boot"
Mathieu Chartier [Tue, 20 Feb 2018 20:26:00 +0000 (20:26 +0000)]
Merge "Pass DEXOPT_INSTALL_WITH_DEX_METADATA_FILE for first boot"
am: 0ea144f4bf

Change-Id: Icdd5128db27b701e76656f1e3e5ae230dbd15daa

6 years agoMerge "MediaPlayer2: use MediaPlayer2::Create()"
TreeHugger Robot [Tue, 20 Feb 2018 20:24:34 +0000 (20:24 +0000)]
Merge "MediaPlayer2: use MediaPlayer2::Create()"

6 years agoMerge "WifiTile: Avoid NPE during boot phase"
Bruno Martins [Tue, 20 Feb 2018 20:20:51 +0000 (20:20 +0000)]
Merge "WifiTile: Avoid NPE during boot phase"
am: b23150ffa9

Change-Id: Ib4748cb4814e4f6f1c5e7579284522ac55df329f

6 years agoMerge "Allow QS to be any height."
TreeHugger Robot [Tue, 20 Feb 2018 20:16:45 +0000 (20:16 +0000)]
Merge "Allow QS to be any height."

6 years agoMerge "Need to add report id and sequence number to uniquely mark a incident report...
TreeHugger Robot [Tue, 20 Feb 2018 20:09:51 +0000 (20:09 +0000)]
Merge "Need to add report id and sequence number to uniquely mark a incident report data."

6 years agoMerge "Remove mResizedWhileNotDragResizing"
Rob Carr [Tue, 20 Feb 2018 20:09:29 +0000 (20:09 +0000)]
Merge "Remove mResizedWhileNotDragResizing"

6 years agoMerge "Work on issue #63937884: Heavyweight Apps/Game Mode"
TreeHugger Robot [Tue, 20 Feb 2018 20:02:39 +0000 (20:02 +0000)]
Merge "Work on issue #63937884: Heavyweight Apps/Game Mode"

6 years agoAdd twasilczyk and randolphs to broadcast radio directories OWNERS.
Tomasz Wasilczyk [Fri, 16 Feb 2018 09:44:49 +0000 (01:44 -0800)]
Add twasilczyk and randolphs to broadcast radio directories OWNERS.

Test: none
Change-Id: Ib21e81a8e77f7bc321e0ff71fa259e63956bf9ae

6 years agoMerge "Fixed Security Exception issue when inflating notification"
TreeHugger Robot [Tue, 20 Feb 2018 19:30:42 +0000 (19:30 +0000)]
Merge "Fixed Security Exception issue when inflating notification"

6 years agoMerge "Extend XML parser to allow optional requiredFlags attribute for <include ...
TreeHugger Robot [Tue, 20 Feb 2018 19:20:00 +0000 (19:20 +0000)]
Merge "Extend XML parser to allow optional requiredFlags attribute for <include /> rules in <full-backup-content> specification"

6 years agoMerge "Pre-P cannot change alarms/media dnd policy"
TreeHugger Robot [Tue, 20 Feb 2018 19:19:52 +0000 (19:19 +0000)]
Merge "Pre-P cannot change alarms/media dnd policy"

6 years agoMerge "Fix ConnectivityServiceTest for NATT Keepalive"
nharold [Tue, 20 Feb 2018 19:17:23 +0000 (19:17 +0000)]
Merge "Fix ConnectivityServiceTest for NATT Keepalive"

6 years agoTweak FingerprintDialog layout
Kevin Chyn [Wed, 7 Feb 2018 00:30:31 +0000 (16:30 -0800)]
Tweak FingerprintDialog layout

Bug: 72475614

Test: manual, layout looks good
Change-Id: I2af6a8b8c803d2829a365b3c9a35d19de4b8020e