OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "Use APEX boot image for profilebootclasspath"
Mathieu Chartier [Wed, 25 Sep 2019 17:43:23 +0000 (17:43 +0000)]
Merge "Use APEX boot image for profilebootclasspath"

5 years agoMerge "Remove MediaPlayer2"
Marco Nelissen [Wed, 25 Sep 2019 17:15:59 +0000 (17:15 +0000)]
Merge "Remove MediaPlayer2"

5 years agoMerge "Refactor DexViewBuilder"
Treehugger Robot [Wed, 25 Sep 2019 16:57:37 +0000 (16:57 +0000)]
Merge "Refactor DexViewBuilder"

5 years agoUse APEX boot image for profilebootclasspath
Mathieu Chartier [Fri, 20 Sep 2019 23:07:51 +0000 (16:07 -0700)]
Use APEX boot image for profilebootclasspath

To get profiling info, we need to avoid having compiled code.

Also pass down the --count-hotness-in-compiled-code for measuring
performance in compiled code.

Bug: 139883463
Test: manual
Change-Id: Ib02b476522b7709172fc06d6517446cad59045d4

5 years agoMerge "Wait for the profile to not be empty in BootImageProfileTest"
Mathieu Chartier [Wed, 25 Sep 2019 15:54:59 +0000 (15:54 +0000)]
Merge "Wait for the profile to not be empty in BootImageProfileTest"

5 years agoRemove MediaPlayer2
Marco Nelissen [Tue, 24 Sep 2019 16:27:22 +0000 (09:27 -0700)]
Remove MediaPlayer2

Bug: 141546997
Test: build, boot
Change-Id: I1550c14f3a0967910809cc2415d10f62c967bd44
Merged-In: I1550c14f3a0967910809cc2415d10f62c967bd44

5 years agoMerge changes from topic "flicker-move"
Jorim Jaggi [Wed, 25 Sep 2019 13:03:18 +0000 (13:03 +0000)]
Merge changes from topic "flicker-move"

* changes:
  Ignore flicker tests with open bugs
  Don't remove flicker test logs from device for easier debugging
  Reduce delays on Flicker test rotation
  Make OpenAppCold/Warm tests compatible with AOSP
  Make Flicker Tests compatible with current AOSP

5 years agoMerge "Check ANDROID_I18N_ROOT when starting the runtime"
vichang [Wed, 25 Sep 2019 12:01:15 +0000 (12:01 +0000)]
Merge "Check ANDROID_I18N_ROOT when starting the runtime"

5 years agoMerge "Use SubscriptionManager.ACTION_DEFAULT_SUBSCRIPTION_CHANGED instead"
Treehugger Robot [Wed, 25 Sep 2019 09:01:43 +0000 (09:01 +0000)]
Merge "Use SubscriptionManager.ACTION_DEFAULT_SUBSCRIPTION_CHANGED instead"

5 years agoMerge "Fix TestNetworkAgentWrapper flakiness"
Chalard Jean [Wed, 25 Sep 2019 08:58:34 +0000 (08:58 +0000)]
Merge "Fix TestNetworkAgentWrapper flakiness"

5 years agoMerge "Add documentation for *.sysprop"
Treehugger Robot [Wed, 25 Sep 2019 03:01:21 +0000 (03:01 +0000)]
Merge "Add documentation for *.sysprop"

5 years agoMerge "Move NetworkStack AIDLs to NetworkStack folder"
Treehugger Robot [Wed, 25 Sep 2019 02:05:06 +0000 (02:05 +0000)]
Merge "Move NetworkStack AIDLs to NetworkStack folder"

5 years agoUse SubscriptionManager.ACTION_DEFAULT_SUBSCRIPTION_CHANGED instead
Taesu Lee [Sun, 22 Sep 2019 23:06:31 +0000 (08:06 +0900)]
Use SubscriptionManager.ACTION_DEFAULT_SUBSCRIPTION_CHANGED instead

Change deprecated TelephonyIntents.ACTION_DEFAULT_SUBSCRIPTION_CHANGED
as SubscriptionManager.ACTION_DEFAULT_SUBSCRIPTION_CHANGED.
And clean up the code to
 - use int type for subscription Id
 - get new default PhoneId corresponding to new default SubId for no
 value

Test: Manual

Change-Id: I3084ca5d477c7f3861061ee2b17906fd2e7e5d46
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
5 years agoWait for the profile to not be empty in BootImageProfileTest
Mathieu Chartier [Tue, 24 Sep 2019 20:11:26 +0000 (13:11 -0700)]
Wait for the profile to not be empty in BootImageProfileTest

Keep trying to force profile saves until it's not empty. This handles
the case when the system server isn't started enough to save a profile
yet. This can be affected by boot time fluctuations if we don't wait.

Test: atest BootImageProfileTest
Bug: 139883463

Change-Id: I98b359412f919bd64c2cd2a5b7d6659d1cef113d

5 years agoMerge "Followup to CL 1103896"
Oscar Shu [Tue, 24 Sep 2019 22:06:27 +0000 (22:06 +0000)]
Merge "Followup to CL 1103896"

5 years agoMerge "AppOpsService: Watch op mode changes when an AppOp restriction dies"
Treehugger Robot [Tue, 24 Sep 2019 20:22:30 +0000 (20:22 +0000)]
Merge "AppOpsService: Watch op mode changes when an AppOp restriction dies"

5 years agoAppOpsService: Watch op mode changes when an AppOp restriction dies
Bruno Martins [Sun, 30 Dec 2018 16:02:59 +0000 (16:02 +0000)]
AppOpsService: Watch op mode changes when an AppOp restriction dies

On binder death, ensure that any associated watched ops are not left
dangling in an active state.

Test: manual, ops states are now propagated properly after apps are killed
Change-Id: I060d9fabc555e609ad529c612fcb7712f0cea0a6
Merged-In: Ied66c7f49e1c483870048563d08fb57410f004ef

5 years agoMerge "Rename ANDROID_RUNTIME_ROOT to ANDROID_ART_ROOT following APEX module name...
Martin Stjernholm [Tue, 24 Sep 2019 17:40:05 +0000 (17:40 +0000)]
Merge "Rename ANDROID_RUNTIME_ROOT to ANDROID_ART_ROOT following APEX module name change."

5 years agoCheck ANDROID_I18N_ROOT when starting the runtime
Victor Chang [Tue, 24 Sep 2019 13:55:02 +0000 (14:55 +0100)]
Check ANDROID_I18N_ROOT when starting the runtime

Bug: 137009149
Test: treehugger
Change-Id: I0f34d433c73a44c051724769067bd6ccf5d4a0db

5 years agoAdd documentation for *.sysprop
Jiyong Park [Sat, 21 Sep 2019 05:03:09 +0000 (14:03 +0900)]
Add documentation for *.sysprop

Bug: 141246285
Test: N/A
Change-Id: Ia90dd8fc75a9caa3b90c4e3adfb1252a5b1c19c4

5 years agoMerge "Add an API to dump incident report for dumpstate"
Mike Ma [Tue, 24 Sep 2019 01:07:25 +0000 (01:07 +0000)]
Merge "Add an API to dump incident report for dumpstate"

5 years agoAdd an API to dump incident report for dumpstate
Mike Ma [Wed, 21 Aug 2019 21:52:46 +0000 (14:52 -0700)]
Add an API to dump incident report for dumpstate

Instead of just relying on the regular iteration through the system
services inside dumpstate, add another API to IIncidentManager
dedicated for dumpstate.

- It is only callable by dumpstate() (check the calling uid)
- It has the same behavior as the current call inside dump()

Advantages:
- More explicit function name, right next to takeIncidentReport will
  make it easier to keep them in sync.
- Nobody else can call it, make security easier.
- If dumpstate calls it explicitly, it can skip the 10 second timeout
- The regular dump() call should provide debugging data about
  incidentd itself, for example timestamps for the most recent N
  incident reports taken and the current state of the work directory,
  allowing us to debug incidentd itself.

Bug: 137493082
Test: Manually trigger a bug report, and verify
      /proto/incident_log.proto in the zip file.

Change-Id: I19139c765b53ede63d3beb3ea3ac40ada1aba42d
Merged-In: I19139c765b53ede63d3beb3ea3ac40ada1aba42d

5 years agoMerge changes Iea1d2ae2,I1d3c8e48
Treehugger Robot [Mon, 23 Sep 2019 22:04:11 +0000 (22:04 +0000)]
Merge changes Iea1d2ae2,I1d3c8e48

* changes:
  Build java_sdk_libraries with much less sources
  Add RequiresApi annotations to LocationProvider

5 years agoMerge "TextureVuew rebind GL texture, if AHB content has changed"
John Reck [Mon, 23 Sep 2019 20:00:14 +0000 (20:00 +0000)]
Merge "TextureVuew rebind GL texture, if AHB content has changed"

5 years agoMerge "Add test for boot image profile collection"
Mathieu Chartier [Mon, 23 Sep 2019 16:34:38 +0000 (16:34 +0000)]
Merge "Add test for boot image profile collection"

5 years agoMerge "Host users of libutils trace use libcutils."
Steven Moreland [Mon, 23 Sep 2019 16:23:06 +0000 (16:23 +0000)]
Merge "Host users of libutils trace use libcutils."

5 years agoMerge "AudioService: add TEST_MAPPING for pre-submit tests"
Jean-Michel Trivi [Mon, 23 Sep 2019 15:59:40 +0000 (15:59 +0000)]
Merge "AudioService: add TEST_MAPPING for pre-submit tests"

5 years agoMerge " Create integrity directory and OWNERS"
Ömer Nebil Yaveroğlu [Mon, 23 Sep 2019 11:24:43 +0000 (11:24 +0000)]
Merge " Create integrity directory and OWNERS"

5 years agoAudioService: add TEST_MAPPING for pre-submit tests
Jean-Michel Trivi [Wed, 18 Sep 2019 22:58:44 +0000 (15:58 -0700)]
AudioService: add TEST_MAPPING for pre-submit tests

  Run AudioManager and AudioFocus CTS tests whenever a class
in audio service is changed.

Bug: 139315190
Test: verify this change caused those tests to be run during presubmit
Change-Id: I17a49fad6856ae28ef1951d64a43b04f44be4079
Merged-In: I17a49fad6856ae28ef1951d64a43b04f44be4079

5 years agoMerge "Deprecate redundant IMS APIs in TelephonyManager."
Treehugger Robot [Sat, 21 Sep 2019 08:27:35 +0000 (08:27 +0000)]
Merge "Deprecate redundant IMS APIs in TelephonyManager."

5 years agoFollowup to CL 1103896
xshu [Wed, 21 Aug 2019 20:40:18 +0000 (13:40 -0700)]
Followup to CL 1103896

Optimizes the logic that ensures the default randomized MAC is not
returned.

Bug: 137796328
Test: atest MacAddressTest
Change-Id: Ie95d7a020bfac8850b8a67e4d396de77db22e1db

5 years agoAdd test for boot image profile collection
Mathieu Chartier [Thu, 29 Aug 2019 22:26:58 +0000 (15:26 -0700)]
Add test for boot image profile collection

Test that the expected properties are set.

Test that saving the system server profile contains both the boot image
profile and system server profile.

The test requires root to run.

Bug: 139883463
Test: atest BootImageProfileTest

(cherry picked from commit f7849d916ae3d81bf73911fedb5fe38fff33f2af)

Change-Id: Id7fa4ecc507864c2855da276025be076e5768df1
Merged-In: I6bb39337ba07be58b7dc2b314a8ee92154256f17

5 years agoTextureVuew rebind GL texture, if AHB content has changed
Stan Iliev [Thu, 1 Aug 2019 18:41:52 +0000 (14:41 -0400)]
TextureVuew rebind GL texture, if AHB content has changed

Bug: 138674291
Test: Ran apps with TextureView and CTS
Change-Id: Ieecf7daf160761de719356644ddaeda8f9c068e1

5 years agoHost users of libutils trace use libcutils.
Steven Moreland [Wed, 18 Sep 2019 19:58:11 +0000 (12:58 -0700)]
Host users of libutils trace use libcutils.

Reducing device/host differences. This is now required since libutils
Trace.h always calls the libcutils functions, instead of before where
it only called these functions on device.

Bug: 124524556
Test: build & boot
Change-Id: Ic096ed7caf8ca59292b3427a16c4e2545d12dfd9

5 years agoRename ANDROID_RUNTIME_ROOT to ANDROID_ART_ROOT following APEX module name change.
Martin Stjernholm [Fri, 20 Sep 2019 15:14:22 +0000 (16:14 +0100)]
Rename ANDROID_RUNTIME_ROOT to ANDROID_ART_ROOT following APEX module name change.

Test: Boot
Bug: 135753770
Change-Id: I930027fb0ad18d9d06165bbfbfe54d88bc28530d

5 years agoMerge "aapt2: disable leak detection"
Treehugger Robot [Fri, 20 Sep 2019 09:58:45 +0000 (09:58 +0000)]
Merge "aapt2: disable leak detection"

5 years agoFix TestNetworkAgentWrapper flakiness
Chalard Jean [Fri, 20 Sep 2019 08:19:31 +0000 (17:19 +0900)]
Fix TestNetworkAgentWrapper flakiness

The underlying issue here is that before aosp/986824 the call to
waitForIdle is the local ConnectivityServiceTest function, but
after that patch TestNetworkAgentWrapper has an identically
named member that only wait for its own handler.

Bug: 141341704
Test: ConnectivityServiceTest --generate-new-metrics 100
Change-Id: I38709cc69ec7a261c1c6e008abe03d2882e2083d

5 years agoMerge "Document that SystemProperties.set() can throw RuntimeException"
Treehugger Robot [Fri, 20 Sep 2019 05:53:03 +0000 (05:53 +0000)]
Merge "Document that SystemProperties.set() can throw RuntimeException"

5 years agoMerge "WiredAccessoryManager: fix connected state logic for Extcon"
Treehugger Robot [Fri, 20 Sep 2019 01:07:07 +0000 (01:07 +0000)]
Merge "WiredAccessoryManager: fix connected state logic for Extcon"

5 years agoMerge "Allow ImsService to return network error codes"
Brad Ebinger [Thu, 19 Sep 2019 23:31:07 +0000 (23:31 +0000)]
Merge "Allow ImsService to return network error codes"

5 years agoAllow ImsService to return network error codes
Brad Ebinger [Tue, 27 Aug 2019 23:49:26 +0000 (16:49 -0700)]
Allow ImsService to return network error codes

Adds new API for SMS over IMS that allows the ImsService
to pass 3GPP TS 24.011 error codes from the network for
better debugging/metrics collection.

Test: manual
Bug: 138239529
Merged-In: I5d1f41b90595238011eb0d1dc0ae0415157bb469
Change-Id: I5d1f41b90595238011eb0d1dc0ae0415157bb469

5 years agoMerge "Add jji@google.com to am/OWNERS file."
Treehugger Robot [Thu, 19 Sep 2019 20:22:35 +0000 (20:22 +0000)]
Merge "Add jji@google.com to am/OWNERS file."

5 years agoaapt2: disable leak detection
Steven Moreland [Thu, 19 Sep 2019 18:08:47 +0000 (11:08 -0700)]
aapt2: disable leak detection

When building with SANATIZE_HOST=address and ASAN_OPTIONS="" in order to
test that leaks are removed from AIDL, was hitting leaks here.
Explicitly setting ASAN_OPTIONS here so that we can detect leaks in
other host tools.

Bug: 141312058
Test: AIDL's runtests_asan.sh
Change-Id: Ibc599ab75bbf63eab1c7747d17952390a7967e87

5 years agoDocument that SystemProperties.set() can throw RuntimeException
Tom Cherry [Thu, 19 Sep 2019 15:28:27 +0000 (08:28 -0700)]
Document that SystemProperties.set() can throw RuntimeException

Bug: 140148206
Test: n/a
Change-Id: I32df2ed4979edcc0d9abc46830ebd3defc431c57

5 years agoMerge "Exposing flickerlib classes and layer tracing to sysui"
Treehugger Robot [Thu, 19 Sep 2019 13:42:49 +0000 (13:42 +0000)]
Merge "Exposing flickerlib classes and layer tracing to sysui"

5 years agoMerge "Use filter_packages to unbunden metalava"
Treehugger Robot [Thu, 19 Sep 2019 13:24:46 +0000 (13:24 +0000)]
Merge "Use filter_packages to unbunden metalava"

5 years agoMerge "Mirror fs-verity ownership UID to Java"
Treehugger Robot [Thu, 19 Sep 2019 00:26:31 +0000 (00:26 +0000)]
Merge "Mirror fs-verity ownership UID to Java"

5 years agoRefactor DexViewBuilder
Eric Holk [Tue, 17 Sep 2019 20:28:34 +0000 (13:28 -0700)]
Refactor DexViewBuilder

The code was previously pretty messy and hard to follow. This reworks some
things to make it more manageable. Among the changes:

* Pull out fragments of code into their own method, so the high level steps are
  more apparent in methods like DexViewBuilder::Start.
* Pull frequently used types into global constants in dex_layout_compiler.cc.
* Rework register handling to track liveness so a strict stack discipline is no
  longer needed.

Change-Id: Idb4b41f88c96a1ac4efb2c7b9bed05c2de0da999

5 years agoAdd jji@google.com to am/OWNERS file.
Hui Yu [Wed, 18 Sep 2019 21:57:59 +0000 (14:57 -0700)]
Add jji@google.com to am/OWNERS file.

Bug: NA
Test: NA
Change-Id: I5c5f0d1e75a66e772c95304a3dbd936a471e9a17

5 years agoMirror fs-verity ownership UID to Java
Victor Hsieh [Wed, 18 Sep 2019 21:33:54 +0000 (14:33 -0700)]
Mirror fs-verity ownership UID to Java

This has been done in system/core, so mirroring for later use.
https://android-review.googlesource.com/c/platform/system/core/+/1115493

Test: compile
Bug: 112038744
Change-Id: I2d7f5d38caae0b6ada1f208b3d71d937d527716e

5 years agoMerge "Bugreport progress notification should use the bug icon."
Treehugger Robot [Wed, 18 Sep 2019 18:37:38 +0000 (18:37 +0000)]
Merge "Bugreport progress notification should use the bug icon."

5 years agoMerge "Expose ConnectionService Handler to remove flaky tests"
Brad Ebinger [Wed, 18 Sep 2019 17:56:29 +0000 (17:56 +0000)]
Merge "Expose ConnectionService Handler to remove flaky tests"

5 years agoMerge "Use UnlockMethodCache#canSkipBouncer in user switcher"
Treehugger Robot [Wed, 18 Sep 2019 17:11:28 +0000 (17:11 +0000)]
Merge "Use UnlockMethodCache#canSkipBouncer in user switcher"

5 years ago Create integrity directory and OWNERS
Song Pan [Wed, 18 Sep 2019 09:38:48 +0000 (10:38 +0100)]
 Create integrity directory and OWNERS

Integrity component will live in System Server, which can be called by
PackageManagerService to check the integrity of an install. This commit
sets up the directory and OWNERS access.

Test: N/A
Change-Id: I5610ea575c455c3301ace4d816033d88eb349b12

5 years agoIgnore flicker tests with open bugs
Nataniel Borges [Wed, 18 Sep 2019 14:10:03 +0000 (16:10 +0200)]
Ignore flicker tests with open bugs

Some flicker tests are failing because of open bugs. Mark them as
ignored until the bugs are fixed to prevent test failures.

Test: atest FlickerTests
Change-Id: If9216bccc32d64cd32ff87fae785df200eae8b79

5 years agoDon't remove flicker test logs from device for easier debugging
Nataniel Borges [Tue, 3 Sep 2019 11:57:51 +0000 (13:57 +0200)]
Don't remove flicker test logs from device for easier debugging

Test: atest FlickerTests
Change-Id: Id8a7869967df2ccd2e905c61cc1a348ae06d4430

5 years agoReduce delays on Flicker test rotation
Nataniel Borges [Mon, 2 Sep 2019 14:37:01 +0000 (16:37 +0200)]
Reduce delays on Flicker test rotation

Flicker tests currently wait 3 seconds until the screen rotation have
been complete. This long delay may hide some issues. Reduce delay to 1
second.

Test: atest FlickerTests
Change-Id: I1646086018fac52c0751ff70fff1f5082fee4685

5 years agoMake OpenAppCold/Warm tests compatible with AOSP
Nataniel Borges [Mon, 2 Sep 2019 14:34:47 +0000 (16:34 +0200)]
Make OpenAppCold/Warm tests compatible with AOSP

Test: atest FlickerTests
Change-Id: Ib1071b125597e73a5c72e22e9107ae4d29f5cb7f

5 years agoMerge "Implement stats logging for Compatibility API."
Anna Trostanetski [Wed, 18 Sep 2019 12:25:47 +0000 (12:25 +0000)]
Merge "Implement stats logging for Compatibility API."

5 years agoMake Flicker Tests compatible with current AOSP
Nataniel Borges [Mon, 9 Sep 2019 15:29:23 +0000 (17:29 +0200)]
Make Flicker Tests compatible with current AOSP

Current status:
atest FlickerTests: Passed: 132, Failed: 11, Ignored: 0

Test: atest FlickerTests
Change-Id: I581005fd293631630a3939eeaae485c1fd41ebb9

5 years agoMerge "Add isApplicationOnUicc API"
Treehugger Robot [Wed, 18 Sep 2019 02:00:54 +0000 (02:00 +0000)]
Merge "Add isApplicationOnUicc API"

5 years agoMerge "Add new onSmsStatusReportReceived() without message reference"
Treehugger Robot [Tue, 17 Sep 2019 22:28:35 +0000 (22:28 +0000)]
Merge "Add new onSmsStatusReportReceived() without message reference"

5 years agoMerge "HwBinder: don't rely on kernel headers."
Steven Moreland [Tue, 17 Sep 2019 21:49:31 +0000 (21:49 +0000)]
Merge "HwBinder: don't rely on kernel headers."

5 years agoWiredAccessoryManager: fix connected state logic for Extcon
Eric Laurent [Fri, 21 Jun 2019 18:39:28 +0000 (11:39 -0700)]
WiredAccessoryManager: fix connected state logic for Extcon

Bug: 134120683
Test: make
Change-Id: I618031968a4131ee153994deca55d192cbc598b3
Merged-In: I618031968a4131ee153994deca55d192cbc598b3

5 years agoExpose ConnectionService Handler to remove flaky tests
Brad Ebinger [Thu, 12 Sep 2019 01:06:51 +0000 (18:06 -0700)]
Expose ConnectionService Handler to remove flaky tests

Test: atest TelecomUnitTests
Change-Id: Ibb80b5739083ad9f85ee06f4d9f0017f4cb605bd

5 years agoMerge "Fix descriptions for default SIM in global preferences"
Amit Mahajan [Tue, 17 Sep 2019 17:18:04 +0000 (17:18 +0000)]
Merge "Fix descriptions for default SIM in global preferences"

5 years agoMerge "Use bionic platform headers."
Christopher Ferris [Tue, 17 Sep 2019 16:33:25 +0000 (16:33 +0000)]
Merge "Use bionic platform headers."

5 years agoBuild java_sdk_libraries with much less sources
Jiyong Park [Tue, 17 Sep 2019 05:51:28 +0000 (14:51 +0900)]
Build java_sdk_libraries with much less sources

This change fixes a regression that java_sdk_libraries under
frameworks/base were built with all framework sources.

Bug: 141149570
Test: m
Change-Id: Iea1d2ae20ca1c5b514a52d8b2a22e8a1d7543efd

5 years agoAdd RequiresApi annotations to LocationProvider
Soonil Nagarkar [Mon, 15 Apr 2019 20:22:52 +0000 (13:22 -0700)]
Add RequiresApi annotations to LocationProvider

Ensures that lint tests can run properly from client code which uses
this library.

Bug: 130188099
Test: manual
Merged-In: I1d3c8e486c38633d73c405f2c6f9b350ef1e6946
(cherry picked from commit 44efeaef4da29e1d0a9add7b89151ff0f12ff148)
Change-Id: I1d3c8e486c38633d73c405f2c6f9b350ef1e6946

5 years agoFix descriptions for default SIM in global preferences
Taesu Lee [Tue, 17 Sep 2019 04:34:46 +0000 (13:34 +0900)]
Fix descriptions for default SIM in global preferences

Test: Not required.

Change-Id: I7f32eb495b53d13aba50b07d86e63f0549e9e6bb
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
5 years agoMerge "VintfObject: Fix getHalNamesAndVersions doc"
Yifan Hong [Mon, 16 Sep 2019 23:58:51 +0000 (23:58 +0000)]
Merge "VintfObject: Fix getHalNamesAndVersions doc"

5 years agoMerge "Ignore physics animation tests that have suddenly become flaky."
Treehugger Robot [Mon, 16 Sep 2019 21:32:43 +0000 (21:32 +0000)]
Merge "Ignore physics animation tests that have suddenly become flaky."

5 years agoMerge "Add carrier config KEY_CALL_FORWARDING_WHEN_UNREACHABLE_SUPPORTED_BOOL"
Jordan Liu [Mon, 16 Sep 2019 21:28:03 +0000 (21:28 +0000)]
Merge "Add carrier config KEY_CALL_FORWARDING_WHEN_UNREACHABLE_SUPPORTED_BOOL"

5 years agoMerge "AudioService: fix missing CEC message on unmute after vol down"
Jean-Michel Trivi [Mon, 16 Sep 2019 21:04:08 +0000 (21:04 +0000)]
Merge "AudioService: fix missing CEC message on unmute after vol down"

5 years agoIgnore physics animation tests that have suddenly become flaky.
Joshua Tsuji [Thu, 12 Sep 2019 19:16:40 +0000 (15:16 -0400)]
Ignore physics animation tests that have suddenly become flaky.

Test: atest SystemUITests
Change-Id: Ia15f767fdb251338a7e7b15be7836b6928e48ba5
Merged-In: Ia15f767fdb251338a7e7b15be7836b6928e48ba5
(cherry picked from commit 2b991d91c6d6a2341a06be329962d2f5a8f3ee28)

5 years agoUse bionic platform headers.
Christopher Ferris [Thu, 12 Sep 2019 02:08:52 +0000 (19:08 -0700)]
Use bionic platform headers.

Bug: 130763340

Test: Builds.
Change-Id: Ieed72d4e15c0ce0dfc3a4f3383ea6563905bc236
Merged-In: Ieed72d4e15c0ce0dfc3a4f3383ea6563905bc236
(cherry picked from commit 8269f3a3770d83b139cc3b3571d72eb30f62191f)

5 years agoExposing flickerlib classes and layer tracing to sysui
Winson Chung [Fri, 30 Aug 2019 23:49:13 +0000 (16:49 -0700)]
Exposing flickerlib classes and layer tracing to sysui

- Allow recents component to enable/disable layer tracing
- Expose flickerlib classes for use with sysui/launcher tests
- Allow trace files to be moved to a path that the client can read
- Ensure layers are flattened with depth traversal to encode ordering

Bug: 140244969
Test: atest FlickerTests
Change-Id: I7af5699ff5b8a4bc62c1a8105c67b31bc45a2236
Merged-In: Ia0934ec7c2b9484fa6c85f5aa8d9b2e5e6f7dc0f

5 years agoImplement stats logging for Compatibility API.
atrost [Wed, 28 Aug 2019 14:40:37 +0000 (15:40 +0100)]
Implement stats logging for Compatibility API.

Add a new atom and log from both the app process API and the system server API
Bug: 136794938
Bug: 138378110
Test: statsd_testdrive 228

Change-Id: I80f07d0beb30c779c4bce70bebf2bb4ab22f6bfe
Merged-In: I80f07d0beb30c779c4bce70bebf2bb4ab22f6bfe

5 years agoAdd new onSmsStatusReportReceived() without message reference
Taesu Lee [Fri, 30 Aug 2019 05:44:06 +0000 (14:44 +0900)]
Add new onSmsStatusReportReceived() without message reference

IMS providers must generate unique token and don't need to parse the PDU
to get the message reference for new onSmsStatusReportReceived() API.
The platform will extract the message reference from the PDU and return
it to the IMS providers via acknowledgeSmsReport(). And @Deprecated tag
is added on existing onSmsStatusReportReceived() API.
This CL includes some fixing doc bug and description for APIs also.

Test: atest FrameworksTelephonyTests:ImsSmsDispatcherTest

Change-Id: Ib788e291f2e70c3e062319e17e2c9efe33f31164
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
5 years agoUse filter_packages to unbunden metalava
Jiyong Park [Sun, 15 Sep 2019 11:19:02 +0000 (20:19 +0900)]
Use filter_packages to unbunden metalava

This change fixes a problem that entire framework source files are given
to metalava even when many of the source files are not for public. Using
the new property filter_packages, only source files that belongs to the
public packages are given to metalava.

This CL also changes the name of the filegroup 'framework-srcs' to
'framework-non-updatable-sources' to better describe its contents. In
addition, a build-time only library 'framework-all' is introduced. This
library produces a header jar for all framework sources for both
non-updatable and updatable parts. It is put to the classpath when
invoking metalava to give information on the hidden classes that were
filtered-out.

Bug: 140764681
Test: m
Change-Id: I6e16679109ac07820e35037754d4327442c014f2

5 years agoMerge "SoundPool: Do not sleep on stop for USAGE_GAME or on BUFFER_END"
Andy Hung [Fri, 13 Sep 2019 21:18:56 +0000 (21:18 +0000)]
Merge "SoundPool: Do not sleep on stop for USAGE_GAME or on BUFFER_END"

5 years agoMerge "Listeners of active emergency numbers"
Shuo Qian [Fri, 13 Sep 2019 19:50:16 +0000 (19:50 +0000)]
Merge "Listeners of active emergency numbers"

5 years agoMerge "WindowOrientationListener: Check if proposed rotation is in range"
Treehugger Robot [Fri, 13 Sep 2019 18:57:50 +0000 (18:57 +0000)]
Merge "WindowOrientationListener: Check if proposed rotation is in range"

5 years agoAudioService: fix missing CEC message on unmute after vol down
Jean-Michel Trivi [Wed, 11 Sep 2019 17:34:03 +0000 (10:34 -0700)]
AudioService: fix missing CEC message on unmute after vol down

  Group in one method sending volume / mute updates to HDMI CEC
when applicable. Use this method, maybeSendSystemAudioStatusCommand,
to avoid code duplication.
  Add missing synchronization in onUnmuteStream for stream mute check.
  When STREAM_MUSIC is unmuted, also call
maybeSendSystemAudioStatusCommand for a mute adjust, to ensure
other CEC devices' UI is in sync with the internal state.

Bug: 136977965
Test: with ATV device in system audio mode, mute with remote, then \
  press vol down on TV remote, verify TV display matches ATV UI    \
  with current volume.

Change-Id: I279a97871ba98e67f282bf148969ba41ed3f6062

5 years agoSoundPool: Do not sleep on stop for USAGE_GAME or on BUFFER_END
Andy Hung [Tue, 10 Sep 2019 21:49:46 +0000 (14:49 -0700)]
SoundPool: Do not sleep on stop for USAGE_GAME or on BUFFER_END

Test: SoundPoolApplication, SoundPoolOggTest, Games
Bug: 139787914
Bug: 139788416
Bug: 140579743
Bug: 140779732
Merged-In: I83b9b1d61b65dcc4a73d676e1f8be1e022c70302
Change-Id: I83b9b1d61b65dcc4a73d676e1f8be1e022c70302
(cherry picked from commit a527524356a9a6bc9597e4d06cee5c02cf936a68)

5 years agoMerge "Fix QuotaController constants."
Treehugger Robot [Fri, 13 Sep 2019 17:14:40 +0000 (17:14 +0000)]
Merge "Fix QuotaController constants."

5 years agoMerge "Add nullability anotations"
Tao Bao [Fri, 13 Sep 2019 17:04:12 +0000 (17:04 +0000)]
Merge "Add nullability anotations"

5 years agoMerge "Honor HDMI_CONTROL_ENABLED setting in AudioService"
Treehugger Robot [Fri, 13 Sep 2019 16:58:19 +0000 (16:58 +0000)]
Merge "Honor HDMI_CONTROL_ENABLED setting in AudioService"

5 years agoMerge "Check FIPS_mode() rather than explicitly calling BORINGSSL_self_test."
Tobias Thierer [Fri, 13 Sep 2019 16:56:06 +0000 (16:56 +0000)]
Merge "Check FIPS_mode() rather than explicitly calling BORINGSSL_self_test."

5 years agoListeners of active emergency numbers
Shuo Qian [Wed, 4 Sep 2019 23:21:10 +0000 (16:21 -0700)]
Listeners of active emergency numbers

1) Introduce a new signature-level system permission allowing system apps to listen the
 active emergency number, placed by calls or texts.

2) Add PhoneStateListener API surface to provide a mechanism to listen the
outgoing call emergency number or outgoing sms emergency number.

Bug: 135204580
Test: atest
Change-Id: I6e6bce6d4b97d492ca20302002911f9daa20767e
Merged-In: I6e6bce6d4b97d492ca20302002911f9daa20767e
(cherry picked from commit 7a1eb6d56b3fb37c746664887b6f754e8d09d715)

5 years agoBugreport progress notification should use the bug icon.
Dan Sandler [Fri, 13 Sep 2019 02:27:09 +0000 (22:27 -0400)]
Bugreport progress notification should use the bug icon.

(Don't worry, stat_sys_adb isn't going away, but it will
only be used by the ADB notification now.)

Bug: 138661761
Test: initiate bugreport from globalactions
Change-Id: I238659d50f70bfbc047133d89afb76f78ec841f9

5 years agoFix QuotaController constants.
Kweku Adams [Fri, 13 Sep 2019 01:39:24 +0000 (18:39 -0700)]
Fix QuotaController constants.

1. QuotaController wasn't using the updated constants on system start.
It would only use the updated constants if they were changed after
system start.
2. Updating ACTIVE limits to more workable numbers.

Bug: 137166468
Test: atest com.android.server.job.controllers.QuotaControllerTest
Change-Id: I3e2848446b20f7258fac2d96566c96aea5715949

5 years agoHonor HDMI_CONTROL_ENABLED setting in AudioService
Madhava Srinivasan [Mon, 26 Aug 2019 20:15:31 +0000 (22:15 +0200)]
Honor HDMI_CONTROL_ENABLED setting in AudioService

This change updates how AudioService is updated of changes to Hdmi Cec
status (enable/disable) and availablity.

Bug: 138956107
Bug: 138373017
Test: Android TV STB: make; flashall;Volume -/+; HDMI control enable/disable.
Change-Id: Iaf83a45206be076858e13d113ba772ed5c59ef60
Merged-In: Iaf83a45206be076858e13d113ba772ed5c59ef60

5 years agoMerge "Remove android.permission.PermissionManager from blacklist"
Mathieu Chartier [Thu, 12 Sep 2019 18:20:14 +0000 (18:20 +0000)]
Merge "Remove android.permission.PermissionManager from blacklist"

5 years agoRemove android.permission.PermissionManager from blacklist
Mathieu Chartier [Thu, 12 Sep 2019 16:19:07 +0000 (09:19 -0700)]
Remove android.permission.PermissionManager from blacklist

This is getting pulled in from somewhere, removing to fix
PreloadCheck test.

Bug: 140912480
Test: atest PreloadCheck
Change-Id: I8eea07930732865cc72fea0e352a1704d1c26118

5 years agoAdd nullability anotations
Kyeongkab.Nam [Thu, 12 Sep 2019 02:33:39 +0000 (11:33 +0900)]
Add nullability anotations

Add missing nullability for applyPayload.

Test: manual
Change-Id: Iafce9091767bd7a31937b0be329ede6639239d73

5 years agoMerge "Revert "Revert "Remove a misleading "flush" function."""
Christian Wailes [Wed, 11 Sep 2019 18:23:50 +0000 (18:23 +0000)]
Merge "Revert "Revert "Remove a misleading "flush" function."""

5 years agoVintfObject: Fix getHalNamesAndVersions doc
Yifan Hong [Wed, 11 Sep 2019 02:59:24 +0000 (19:59 -0700)]
VintfObject: Fix getHalNamesAndVersions doc

Test: CTS device info collect
Bug: 140832836
Change-Id: Iddc3c36d15370baa661e485b76c490a5d2b7815c

5 years agoMerge changes from topic "protobuf-3.9.1"
Colin Cross [Wed, 11 Sep 2019 18:00:16 +0000 (18:00 +0000)]
Merge changes from topic "protobuf-3.9.1"

* changes:
  Convert statsd_test and statsd_benchmark to proto lite
  Adapt to google::protobuf::uint64 type change

5 years agoMerge "Track changes to CountryTimeZones API"
Neil Fuller [Wed, 11 Sep 2019 10:58:38 +0000 (10:58 +0000)]
Merge "Track changes to CountryTimeZones API"